Skip to content

Commit 6322ae9

Browse files
1 parent c833d8a commit 6322ae9

7 files changed

Lines changed: 450 additions & 1 deletion

File tree

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\HomeGraphService;
19+
20+
class ComponentTraitUpdates extends \Google\Collection
21+
{
22+
protected $collection_key = 'traitData';
23+
/**
24+
* Required. ID of the component from the device provider.
25+
*
26+
* @var string
27+
*/
28+
public $componentId;
29+
protected $traitDataType = TraitData::class;
30+
protected $traitDataDataType = 'array';
31+
32+
/**
33+
* Required. ID of the component from the device provider.
34+
*
35+
* @param string $componentId
36+
*/
37+
public function setComponentId($componentId)
38+
{
39+
$this->componentId = $componentId;
40+
}
41+
/**
42+
* @return string
43+
*/
44+
public function getComponentId()
45+
{
46+
return $this->componentId;
47+
}
48+
/**
49+
* Required. The updated trait data for the component.
50+
*
51+
* @param TraitData[] $traitData
52+
*/
53+
public function setTraitData($traitData)
54+
{
55+
$this->traitData = $traitData;
56+
}
57+
/**
58+
* @return TraitData[]
59+
*/
60+
public function getTraitData()
61+
{
62+
return $this->traitData;
63+
}
64+
}
65+
66+
// Adding a class alias for backwards compatibility with the previous class name.
67+
class_alias(ComponentTraitUpdates::class, 'Google_Service_HomeGraphService_ComponentTraitUpdates');

src/HomeGraphService/EventData.php

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\HomeGraphService;
19+
20+
class EventData extends \Google\Model
21+
{
22+
/**
23+
* Required. The actual event payload.
24+
*
25+
* @var array[]
26+
*/
27+
public $event;
28+
/**
29+
* Required. The unique event ID from the device provider.
30+
*
31+
* @var string
32+
*/
33+
public $eventId;
34+
/**
35+
* Required. The timestamp of the event.
36+
*
37+
* @var string
38+
*/
39+
public $eventTime;
40+
41+
/**
42+
* Required. The actual event payload.
43+
*
44+
* @param array[] $event
45+
*/
46+
public function setEvent($event)
47+
{
48+
$this->event = $event;
49+
}
50+
/**
51+
* @return array[]
52+
*/
53+
public function getEvent()
54+
{
55+
return $this->event;
56+
}
57+
/**
58+
* Required. The unique event ID from the device provider.
59+
*
60+
* @param string $eventId
61+
*/
62+
public function setEventId($eventId)
63+
{
64+
$this->eventId = $eventId;
65+
}
66+
/**
67+
* @return string
68+
*/
69+
public function getEventId()
70+
{
71+
return $this->eventId;
72+
}
73+
/**
74+
* Required. The timestamp of the event.
75+
*
76+
* @param string $eventTime
77+
*/
78+
public function setEventTime($eventTime)
79+
{
80+
$this->eventTime = $eventTime;
81+
}
82+
/**
83+
* @return string
84+
*/
85+
public function getEventTime()
86+
{
87+
return $this->eventTime;
88+
}
89+
}
90+
91+
// Adding a class alias for backwards compatibility with the previous class name.
92+
class_alias(EventData::class, 'Google_Service_HomeGraphService_EventData');

src/HomeGraphService/Events.php

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\HomeGraphService;
19+
20+
class Events extends \Google\Collection
21+
{
22+
protected $collection_key = 'events';
23+
/**
24+
* Optional. The ID of the provider component if the events are associated
25+
* with a specific component. Optional for WHDM events, required for UDDM
26+
* events.
27+
*
28+
* @var string
29+
*/
30+
public $componentId;
31+
protected $eventsType = EventData::class;
32+
protected $eventsDataType = 'array';
33+
34+
/**
35+
* Optional. The ID of the provider component if the events are associated
36+
* with a specific component. Optional for WHDM events, required for UDDM
37+
* events.
38+
*
39+
* @param string $componentId
40+
*/
41+
public function setComponentId($componentId)
42+
{
43+
$this->componentId = $componentId;
44+
}
45+
/**
46+
* @return string
47+
*/
48+
public function getComponentId()
49+
{
50+
return $this->componentId;
51+
}
52+
/**
53+
* Required. List of events associated with the component.
54+
*
55+
* @param EventData[] $events
56+
*/
57+
public function setEvents($events)
58+
{
59+
$this->events = $events;
60+
}
61+
/**
62+
* @return EventData[]
63+
*/
64+
public function getEvents()
65+
{
66+
return $this->events;
67+
}
68+
}
69+
70+
// Adding a class alias for backwards compatibility with the previous class name.
71+
class_alias(Events::class, 'Google_Service_HomeGraphService_Events');
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\HomeGraphService;
19+
20+
class HomeEvents extends \Google\Collection
21+
{
22+
protected $collection_key = 'events';
23+
/**
24+
* Required. / Unique identifier for the device.
25+
*
26+
* @var string
27+
*/
28+
public $deviceId;
29+
protected $eventsType = Events::class;
30+
protected $eventsDataType = 'array';
31+
32+
/**
33+
* Required. / Unique identifier for the device.
34+
*
35+
* @param string $deviceId
36+
*/
37+
public function setDeviceId($deviceId)
38+
{
39+
$this->deviceId = $deviceId;
40+
}
41+
/**
42+
* @return string
43+
*/
44+
public function getDeviceId()
45+
{
46+
return $this->deviceId;
47+
}
48+
/**
49+
* Required. List of events for the item.
50+
*
51+
* @param Events[] $events
52+
*/
53+
public function setEvents($events)
54+
{
55+
$this->events = $events;
56+
}
57+
/**
58+
* @return Events[]
59+
*/
60+
public function getEvents()
61+
{
62+
return $this->events;
63+
}
64+
}
65+
66+
// Adding a class alias for backwards compatibility with the previous class name.
67+
class_alias(HomeEvents::class, 'Google_Service_HomeGraphService_HomeEvents');
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\HomeGraphService;
19+
20+
class HomeTraitUpdates extends \Google\Collection
21+
{
22+
protected $collection_key = 'components';
23+
protected $componentsType = ComponentTraitUpdates::class;
24+
protected $componentsDataType = 'array';
25+
/**
26+
* Required. Unique identifier for the device.
27+
*
28+
* @var string
29+
*/
30+
public $deviceId;
31+
32+
/**
33+
* Required. Trait updates for each component.
34+
*
35+
* @param ComponentTraitUpdates[] $components
36+
*/
37+
public function setComponents($components)
38+
{
39+
$this->components = $components;
40+
}
41+
/**
42+
* @return ComponentTraitUpdates[]
43+
*/
44+
public function getComponents()
45+
{
46+
return $this->components;
47+
}
48+
/**
49+
* Required. Unique identifier for the device.
50+
*
51+
* @param string $deviceId
52+
*/
53+
public function setDeviceId($deviceId)
54+
{
55+
$this->deviceId = $deviceId;
56+
}
57+
/**
58+
* @return string
59+
*/
60+
public function getDeviceId()
61+
{
62+
return $this->deviceId;
63+
}
64+
}
65+
66+
// Adding a class alias for backwards compatibility with the previous class name.
67+
class_alias(HomeTraitUpdates::class, 'Google_Service_HomeGraphService_HomeTraitUpdates');

0 commit comments

Comments
 (0)