Skip to content

Commit b75a249

Browse files
1 parent c501ca6 commit b75a249

23 files changed

+2611
-0
lines changed

src/Solar.php

Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
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;
19+
20+
use Google\Client;
21+
22+
/**
23+
* Service definition for Solar (v1).
24+
*
25+
* <p>
26+
* Solar API.</p>
27+
*
28+
* <p>
29+
* For more information about this service, see the API
30+
* <a href="https://developers.google.com/maps/documentation/solar" target="_blank">Documentation</a>
31+
* </p>
32+
*
33+
* @author Google, Inc.
34+
*/
35+
class Solar extends \Google\Service
36+
{
37+
/** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
38+
const CLOUD_PLATFORM =
39+
"https://www.googleapis.com/auth/cloud-platform";
40+
41+
public $buildingInsights;
42+
public $dataLayers;
43+
public $geoTiff;
44+
45+
/**
46+
* Constructs the internal representation of the Solar service.
47+
*
48+
* @param Client|array $clientOrConfig The client used to deliver requests, or a
49+
* config array to pass to a new Client instance.
50+
* @param string $rootUrl The root URL used for requests to the service.
51+
*/
52+
public function __construct($clientOrConfig = [], $rootUrl = null)
53+
{
54+
parent::__construct($clientOrConfig);
55+
$this->rootUrl = $rootUrl ?: 'https://solar.googleapis.com/';
56+
$this->servicePath = '';
57+
$this->batchPath = 'batch';
58+
$this->version = 'v1';
59+
$this->serviceName = 'solar';
60+
61+
$this->buildingInsights = new Solar\Resource\BuildingInsights(
62+
$this,
63+
$this->serviceName,
64+
'buildingInsights',
65+
[
66+
'methods' => [
67+
'findClosest' => [
68+
'path' => 'v1/buildingInsights:findClosest',
69+
'httpMethod' => 'GET',
70+
'parameters' => [
71+
'location.latitude' => [
72+
'location' => 'query',
73+
'type' => 'number',
74+
],
75+
'location.longitude' => [
76+
'location' => 'query',
77+
'type' => 'number',
78+
],
79+
'requiredQuality' => [
80+
'location' => 'query',
81+
'type' => 'string',
82+
],
83+
],
84+
],
85+
]
86+
]
87+
);
88+
$this->dataLayers = new Solar\Resource\DataLayers(
89+
$this,
90+
$this->serviceName,
91+
'dataLayers',
92+
[
93+
'methods' => [
94+
'get' => [
95+
'path' => 'v1/dataLayers:get',
96+
'httpMethod' => 'GET',
97+
'parameters' => [
98+
'location.latitude' => [
99+
'location' => 'query',
100+
'type' => 'number',
101+
],
102+
'location.longitude' => [
103+
'location' => 'query',
104+
'type' => 'number',
105+
],
106+
'pixelSizeMeters' => [
107+
'location' => 'query',
108+
'type' => 'number',
109+
],
110+
'radiusMeters' => [
111+
'location' => 'query',
112+
'type' => 'number',
113+
],
114+
'requiredQuality' => [
115+
'location' => 'query',
116+
'type' => 'string',
117+
],
118+
'view' => [
119+
'location' => 'query',
120+
'type' => 'string',
121+
],
122+
],
123+
],
124+
]
125+
]
126+
);
127+
$this->geoTiff = new Solar\Resource\GeoTiff(
128+
$this,
129+
$this->serviceName,
130+
'geoTiff',
131+
[
132+
'methods' => [
133+
'get' => [
134+
'path' => 'v1/geoTiff:get',
135+
'httpMethod' => 'GET',
136+
'parameters' => [
137+
'id' => [
138+
'location' => 'query',
139+
'type' => 'string',
140+
],
141+
],
142+
],
143+
]
144+
]
145+
);
146+
}
147+
}
148+
149+
// Adding a class alias for backwards compatibility with the previous class name.
150+
class_alias(Solar::class, 'Google_Service_Solar');

src/Solar/BuildingInsights.php

Lines changed: 214 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,214 @@
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\Solar;
19+
20+
class BuildingInsights extends \Google\Model
21+
{
22+
/**
23+
* @var string
24+
*/
25+
public $administrativeArea;
26+
protected $boundingBoxType = LatLngBox::class;
27+
protected $boundingBoxDataType = '';
28+
protected $centerType = LatLng::class;
29+
protected $centerDataType = '';
30+
protected $imageryDateType = Date::class;
31+
protected $imageryDateDataType = '';
32+
protected $imageryProcessedDateType = Date::class;
33+
protected $imageryProcessedDateDataType = '';
34+
/**
35+
* @var string
36+
*/
37+
public $imageryQuality;
38+
/**
39+
* @var string
40+
*/
41+
public $name;
42+
/**
43+
* @var string
44+
*/
45+
public $postalCode;
46+
/**
47+
* @var string
48+
*/
49+
public $regionCode;
50+
protected $solarPotentialType = SolarPotential::class;
51+
protected $solarPotentialDataType = '';
52+
/**
53+
* @var string
54+
*/
55+
public $statisticalArea;
56+
57+
/**
58+
* @param string
59+
*/
60+
public function setAdministrativeArea($administrativeArea)
61+
{
62+
$this->administrativeArea = $administrativeArea;
63+
}
64+
/**
65+
* @return string
66+
*/
67+
public function getAdministrativeArea()
68+
{
69+
return $this->administrativeArea;
70+
}
71+
/**
72+
* @param LatLngBox
73+
*/
74+
public function setBoundingBox(LatLngBox $boundingBox)
75+
{
76+
$this->boundingBox = $boundingBox;
77+
}
78+
/**
79+
* @return LatLngBox
80+
*/
81+
public function getBoundingBox()
82+
{
83+
return $this->boundingBox;
84+
}
85+
/**
86+
* @param LatLng
87+
*/
88+
public function setCenter(LatLng $center)
89+
{
90+
$this->center = $center;
91+
}
92+
/**
93+
* @return LatLng
94+
*/
95+
public function getCenter()
96+
{
97+
return $this->center;
98+
}
99+
/**
100+
* @param Date
101+
*/
102+
public function setImageryDate(Date $imageryDate)
103+
{
104+
$this->imageryDate = $imageryDate;
105+
}
106+
/**
107+
* @return Date
108+
*/
109+
public function getImageryDate()
110+
{
111+
return $this->imageryDate;
112+
}
113+
/**
114+
* @param Date
115+
*/
116+
public function setImageryProcessedDate(Date $imageryProcessedDate)
117+
{
118+
$this->imageryProcessedDate = $imageryProcessedDate;
119+
}
120+
/**
121+
* @return Date
122+
*/
123+
public function getImageryProcessedDate()
124+
{
125+
return $this->imageryProcessedDate;
126+
}
127+
/**
128+
* @param string
129+
*/
130+
public function setImageryQuality($imageryQuality)
131+
{
132+
$this->imageryQuality = $imageryQuality;
133+
}
134+
/**
135+
* @return string
136+
*/
137+
public function getImageryQuality()
138+
{
139+
return $this->imageryQuality;
140+
}
141+
/**
142+
* @param string
143+
*/
144+
public function setName($name)
145+
{
146+
$this->name = $name;
147+
}
148+
/**
149+
* @return string
150+
*/
151+
public function getName()
152+
{
153+
return $this->name;
154+
}
155+
/**
156+
* @param string
157+
*/
158+
public function setPostalCode($postalCode)
159+
{
160+
$this->postalCode = $postalCode;
161+
}
162+
/**
163+
* @return string
164+
*/
165+
public function getPostalCode()
166+
{
167+
return $this->postalCode;
168+
}
169+
/**
170+
* @param string
171+
*/
172+
public function setRegionCode($regionCode)
173+
{
174+
$this->regionCode = $regionCode;
175+
}
176+
/**
177+
* @return string
178+
*/
179+
public function getRegionCode()
180+
{
181+
return $this->regionCode;
182+
}
183+
/**
184+
* @param SolarPotential
185+
*/
186+
public function setSolarPotential(SolarPotential $solarPotential)
187+
{
188+
$this->solarPotential = $solarPotential;
189+
}
190+
/**
191+
* @return SolarPotential
192+
*/
193+
public function getSolarPotential()
194+
{
195+
return $this->solarPotential;
196+
}
197+
/**
198+
* @param string
199+
*/
200+
public function setStatisticalArea($statisticalArea)
201+
{
202+
$this->statisticalArea = $statisticalArea;
203+
}
204+
/**
205+
* @return string
206+
*/
207+
public function getStatisticalArea()
208+
{
209+
return $this->statisticalArea;
210+
}
211+
}
212+
213+
// Adding a class alias for backwards compatibility with the previous class name.
214+
class_alias(BuildingInsights::class, 'Google_Service_Solar_BuildingInsights');

0 commit comments

Comments
 (0)