diff --git a/src/Solar.php b/src/Solar.php new file mode 100644 index 0000000000..8e9931e6c5 --- /dev/null +++ b/src/Solar.php @@ -0,0 +1,150 @@ + + * Solar API.
+ * + *+ * For more information about this service, see the API + * Documentation + *
+ * + * @author Google, Inc. + */ +class Solar extends \Google\Service +{ + /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + + public $buildingInsights; + public $dataLayers; + public $geoTiff; + + /** + * Constructs the internal representation of the Solar service. + * + * @param Client|array $clientOrConfig The client used to deliver requests, or a + * config array to pass to a new Client instance. + * @param string $rootUrl The root URL used for requests to the service. + */ + public function __construct($clientOrConfig = [], $rootUrl = null) + { + parent::__construct($clientOrConfig); + $this->rootUrl = $rootUrl ?: 'https://solar.googleapis.com/'; + $this->servicePath = ''; + $this->batchPath = 'batch'; + $this->version = 'v1'; + $this->serviceName = 'solar'; + + $this->buildingInsights = new Solar\Resource\BuildingInsights( + $this, + $this->serviceName, + 'buildingInsights', + [ + 'methods' => [ + 'findClosest' => [ + 'path' => 'v1/buildingInsights:findClosest', + 'httpMethod' => 'GET', + 'parameters' => [ + 'location.latitude' => [ + 'location' => 'query', + 'type' => 'number', + ], + 'location.longitude' => [ + 'location' => 'query', + 'type' => 'number', + ], + 'requiredQuality' => [ + 'location' => 'query', + 'type' => 'string', + ], + ], + ], + ] + ] + ); + $this->dataLayers = new Solar\Resource\DataLayers( + $this, + $this->serviceName, + 'dataLayers', + [ + 'methods' => [ + 'get' => [ + 'path' => 'v1/dataLayers:get', + 'httpMethod' => 'GET', + 'parameters' => [ + 'location.latitude' => [ + 'location' => 'query', + 'type' => 'number', + ], + 'location.longitude' => [ + 'location' => 'query', + 'type' => 'number', + ], + 'pixelSizeMeters' => [ + 'location' => 'query', + 'type' => 'number', + ], + 'radiusMeters' => [ + 'location' => 'query', + 'type' => 'number', + ], + 'requiredQuality' => [ + 'location' => 'query', + 'type' => 'string', + ], + 'view' => [ + 'location' => 'query', + 'type' => 'string', + ], + ], + ], + ] + ] + ); + $this->geoTiff = new Solar\Resource\GeoTiff( + $this, + $this->serviceName, + 'geoTiff', + [ + 'methods' => [ + 'get' => [ + 'path' => 'v1/geoTiff:get', + 'httpMethod' => 'GET', + 'parameters' => [ + 'id' => [ + 'location' => 'query', + 'type' => 'string', + ], + ], + ], + ] + ] + ); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Solar::class, 'Google_Service_Solar'); diff --git a/src/Solar/BuildingInsights.php b/src/Solar/BuildingInsights.php new file mode 100644 index 0000000000..1786a06b75 --- /dev/null +++ b/src/Solar/BuildingInsights.php @@ -0,0 +1,214 @@ +administrativeArea = $administrativeArea; + } + /** + * @return string + */ + public function getAdministrativeArea() + { + return $this->administrativeArea; + } + /** + * @param LatLngBox + */ + public function setBoundingBox(LatLngBox $boundingBox) + { + $this->boundingBox = $boundingBox; + } + /** + * @return LatLngBox + */ + public function getBoundingBox() + { + return $this->boundingBox; + } + /** + * @param LatLng + */ + public function setCenter(LatLng $center) + { + $this->center = $center; + } + /** + * @return LatLng + */ + public function getCenter() + { + return $this->center; + } + /** + * @param Date + */ + public function setImageryDate(Date $imageryDate) + { + $this->imageryDate = $imageryDate; + } + /** + * @return Date + */ + public function getImageryDate() + { + return $this->imageryDate; + } + /** + * @param Date + */ + public function setImageryProcessedDate(Date $imageryProcessedDate) + { + $this->imageryProcessedDate = $imageryProcessedDate; + } + /** + * @return Date + */ + public function getImageryProcessedDate() + { + return $this->imageryProcessedDate; + } + /** + * @param string + */ + public function setImageryQuality($imageryQuality) + { + $this->imageryQuality = $imageryQuality; + } + /** + * @return string + */ + public function getImageryQuality() + { + return $this->imageryQuality; + } + /** + * @param string + */ + public function setName($name) + { + $this->name = $name; + } + /** + * @return string + */ + public function getName() + { + return $this->name; + } + /** + * @param string + */ + public function setPostalCode($postalCode) + { + $this->postalCode = $postalCode; + } + /** + * @return string + */ + public function getPostalCode() + { + return $this->postalCode; + } + /** + * @param string + */ + public function setRegionCode($regionCode) + { + $this->regionCode = $regionCode; + } + /** + * @return string + */ + public function getRegionCode() + { + return $this->regionCode; + } + /** + * @param SolarPotential + */ + public function setSolarPotential(SolarPotential $solarPotential) + { + $this->solarPotential = $solarPotential; + } + /** + * @return SolarPotential + */ + public function getSolarPotential() + { + return $this->solarPotential; + } + /** + * @param string + */ + public function setStatisticalArea($statisticalArea) + { + $this->statisticalArea = $statisticalArea; + } + /** + * @return string + */ + public function getStatisticalArea() + { + return $this->statisticalArea; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(BuildingInsights::class, 'Google_Service_Solar_BuildingInsights'); diff --git a/src/Solar/CashPurchaseSavings.php b/src/Solar/CashPurchaseSavings.php new file mode 100644 index 0000000000..6c667e0b9c --- /dev/null +++ b/src/Solar/CashPurchaseSavings.php @@ -0,0 +1,108 @@ +outOfPocketCost = $outOfPocketCost; + } + /** + * @return Money + */ + public function getOutOfPocketCost() + { + return $this->outOfPocketCost; + } + /** + * @param float + */ + public function setPaybackYears($paybackYears) + { + $this->paybackYears = $paybackYears; + } + /** + * @return float + */ + public function getPaybackYears() + { + return $this->paybackYears; + } + /** + * @param Money + */ + public function setRebateValue(Money $rebateValue) + { + $this->rebateValue = $rebateValue; + } + /** + * @return Money + */ + public function getRebateValue() + { + return $this->rebateValue; + } + /** + * @param SavingsOverTime + */ + public function setSavings(SavingsOverTime $savings) + { + $this->savings = $savings; + } + /** + * @return SavingsOverTime + */ + public function getSavings() + { + return $this->savings; + } + /** + * @param Money + */ + public function setUpfrontCost(Money $upfrontCost) + { + $this->upfrontCost = $upfrontCost; + } + /** + * @return Money + */ + public function getUpfrontCost() + { + return $this->upfrontCost; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CashPurchaseSavings::class, 'Google_Service_Solar_CashPurchaseSavings'); diff --git a/src/Solar/DataLayers.php b/src/Solar/DataLayers.php new file mode 100644 index 0000000000..ce7fecc355 --- /dev/null +++ b/src/Solar/DataLayers.php @@ -0,0 +1,185 @@ +annualFluxUrl = $annualFluxUrl; + } + /** + * @return string + */ + public function getAnnualFluxUrl() + { + return $this->annualFluxUrl; + } + /** + * @param string + */ + public function setDsmUrl($dsmUrl) + { + $this->dsmUrl = $dsmUrl; + } + /** + * @return string + */ + public function getDsmUrl() + { + return $this->dsmUrl; + } + /** + * @param string[] + */ + public function setHourlyShadeUrls($hourlyShadeUrls) + { + $this->hourlyShadeUrls = $hourlyShadeUrls; + } + /** + * @return string[] + */ + public function getHourlyShadeUrls() + { + return $this->hourlyShadeUrls; + } + /** + * @param Date + */ + public function setImageryDate(Date $imageryDate) + { + $this->imageryDate = $imageryDate; + } + /** + * @return Date + */ + public function getImageryDate() + { + return $this->imageryDate; + } + /** + * @param Date + */ + public function setImageryProcessedDate(Date $imageryProcessedDate) + { + $this->imageryProcessedDate = $imageryProcessedDate; + } + /** + * @return Date + */ + public function getImageryProcessedDate() + { + return $this->imageryProcessedDate; + } + /** + * @param string + */ + public function setImageryQuality($imageryQuality) + { + $this->imageryQuality = $imageryQuality; + } + /** + * @return string + */ + public function getImageryQuality() + { + return $this->imageryQuality; + } + /** + * @param string + */ + public function setMaskUrl($maskUrl) + { + $this->maskUrl = $maskUrl; + } + /** + * @return string + */ + public function getMaskUrl() + { + return $this->maskUrl; + } + /** + * @param string + */ + public function setMonthlyFluxUrl($monthlyFluxUrl) + { + $this->monthlyFluxUrl = $monthlyFluxUrl; + } + /** + * @return string + */ + public function getMonthlyFluxUrl() + { + return $this->monthlyFluxUrl; + } + /** + * @param string + */ + public function setRgbUrl($rgbUrl) + { + $this->rgbUrl = $rgbUrl; + } + /** + * @return string + */ + public function getRgbUrl() + { + return $this->rgbUrl; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(DataLayers::class, 'Google_Service_Solar_DataLayers'); diff --git a/src/Solar/Date.php b/src/Solar/Date.php new file mode 100644 index 0000000000..fc2a9102e3 --- /dev/null +++ b/src/Solar/Date.php @@ -0,0 +1,80 @@ +day = $day; + } + /** + * @return int + */ + public function getDay() + { + return $this->day; + } + /** + * @param int + */ + public function setMonth($month) + { + $this->month = $month; + } + /** + * @return int + */ + public function getMonth() + { + return $this->month; + } + /** + * @param int + */ + public function setYear($year) + { + $this->year = $year; + } + /** + * @return int + */ + public function getYear() + { + return $this->year; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Date::class, 'Google_Service_Solar_Date'); diff --git a/src/Solar/FinancedPurchaseSavings.php b/src/Solar/FinancedPurchaseSavings.php new file mode 100644 index 0000000000..53c0132a85 --- /dev/null +++ b/src/Solar/FinancedPurchaseSavings.php @@ -0,0 +1,92 @@ +annualLoanPayment = $annualLoanPayment; + } + /** + * @return Money + */ + public function getAnnualLoanPayment() + { + return $this->annualLoanPayment; + } + /** + * @param float + */ + public function setLoanInterestRate($loanInterestRate) + { + $this->loanInterestRate = $loanInterestRate; + } + /** + * @return float + */ + public function getLoanInterestRate() + { + return $this->loanInterestRate; + } + /** + * @param Money + */ + public function setRebateValue(Money $rebateValue) + { + $this->rebateValue = $rebateValue; + } + /** + * @return Money + */ + public function getRebateValue() + { + return $this->rebateValue; + } + /** + * @param SavingsOverTime + */ + public function setSavings(SavingsOverTime $savings) + { + $this->savings = $savings; + } + /** + * @return SavingsOverTime + */ + public function getSavings() + { + return $this->savings; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(FinancedPurchaseSavings::class, 'Google_Service_Solar_FinancedPurchaseSavings'); diff --git a/src/Solar/FinancialAnalysis.php b/src/Solar/FinancialAnalysis.php new file mode 100644 index 0000000000..a7bcd623ad --- /dev/null +++ b/src/Solar/FinancialAnalysis.php @@ -0,0 +1,160 @@ +averageKwhPerMonth = $averageKwhPerMonth; + } + /** + * @return float + */ + public function getAverageKwhPerMonth() + { + return $this->averageKwhPerMonth; + } + /** + * @param CashPurchaseSavings + */ + public function setCashPurchaseSavings(CashPurchaseSavings $cashPurchaseSavings) + { + $this->cashPurchaseSavings = $cashPurchaseSavings; + } + /** + * @return CashPurchaseSavings + */ + public function getCashPurchaseSavings() + { + return $this->cashPurchaseSavings; + } + /** + * @param bool + */ + public function setDefaultBill($defaultBill) + { + $this->defaultBill = $defaultBill; + } + /** + * @return bool + */ + public function getDefaultBill() + { + return $this->defaultBill; + } + /** + * @param FinancedPurchaseSavings + */ + public function setFinancedPurchaseSavings(FinancedPurchaseSavings $financedPurchaseSavings) + { + $this->financedPurchaseSavings = $financedPurchaseSavings; + } + /** + * @return FinancedPurchaseSavings + */ + public function getFinancedPurchaseSavings() + { + return $this->financedPurchaseSavings; + } + /** + * @param FinancialDetails + */ + public function setFinancialDetails(FinancialDetails $financialDetails) + { + $this->financialDetails = $financialDetails; + } + /** + * @return FinancialDetails + */ + public function getFinancialDetails() + { + return $this->financialDetails; + } + /** + * @param LeasingSavings + */ + public function setLeasingSavings(LeasingSavings $leasingSavings) + { + $this->leasingSavings = $leasingSavings; + } + /** + * @return LeasingSavings + */ + public function getLeasingSavings() + { + return $this->leasingSavings; + } + /** + * @param Money + */ + public function setMonthlyBill(Money $monthlyBill) + { + $this->monthlyBill = $monthlyBill; + } + /** + * @return Money + */ + public function getMonthlyBill() + { + return $this->monthlyBill; + } + /** + * @param int + */ + public function setPanelConfigIndex($panelConfigIndex) + { + $this->panelConfigIndex = $panelConfigIndex; + } + /** + * @return int + */ + public function getPanelConfigIndex() + { + return $this->panelConfigIndex; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(FinancialAnalysis::class, 'Google_Service_Solar_FinancialAnalysis'); diff --git a/src/Solar/FinancialDetails.php b/src/Solar/FinancialDetails.php new file mode 100644 index 0000000000..a2ea72089d --- /dev/null +++ b/src/Solar/FinancialDetails.php @@ -0,0 +1,194 @@ +costOfElectricityWithoutSolar = $costOfElectricityWithoutSolar; + } + /** + * @return Money + */ + public function getCostOfElectricityWithoutSolar() + { + return $this->costOfElectricityWithoutSolar; + } + /** + * @param Money + */ + public function setFederalIncentive(Money $federalIncentive) + { + $this->federalIncentive = $federalIncentive; + } + /** + * @return Money + */ + public function getFederalIncentive() + { + return $this->federalIncentive; + } + /** + * @param float + */ + public function setInitialAcKwhPerYear($initialAcKwhPerYear) + { + $this->initialAcKwhPerYear = $initialAcKwhPerYear; + } + /** + * @return float + */ + public function getInitialAcKwhPerYear() + { + return $this->initialAcKwhPerYear; + } + /** + * @param Money + */ + public function setLifetimeSrecTotal(Money $lifetimeSrecTotal) + { + $this->lifetimeSrecTotal = $lifetimeSrecTotal; + } + /** + * @return Money + */ + public function getLifetimeSrecTotal() + { + return $this->lifetimeSrecTotal; + } + /** + * @param bool + */ + public function setNetMeteringAllowed($netMeteringAllowed) + { + $this->netMeteringAllowed = $netMeteringAllowed; + } + /** + * @return bool + */ + public function getNetMeteringAllowed() + { + return $this->netMeteringAllowed; + } + /** + * @param float + */ + public function setPercentageExportedToGrid($percentageExportedToGrid) + { + $this->percentageExportedToGrid = $percentageExportedToGrid; + } + /** + * @return float + */ + public function getPercentageExportedToGrid() + { + return $this->percentageExportedToGrid; + } + /** + * @param Money + */ + public function setRemainingLifetimeUtilityBill(Money $remainingLifetimeUtilityBill) + { + $this->remainingLifetimeUtilityBill = $remainingLifetimeUtilityBill; + } + /** + * @return Money + */ + public function getRemainingLifetimeUtilityBill() + { + return $this->remainingLifetimeUtilityBill; + } + /** + * @param float + */ + public function setSolarPercentage($solarPercentage) + { + $this->solarPercentage = $solarPercentage; + } + /** + * @return float + */ + public function getSolarPercentage() + { + return $this->solarPercentage; + } + /** + * @param Money + */ + public function setStateIncentive(Money $stateIncentive) + { + $this->stateIncentive = $stateIncentive; + } + /** + * @return Money + */ + public function getStateIncentive() + { + return $this->stateIncentive; + } + /** + * @param Money + */ + public function setUtilityIncentive(Money $utilityIncentive) + { + $this->utilityIncentive = $utilityIncentive; + } + /** + * @return Money + */ + public function getUtilityIncentive() + { + return $this->utilityIncentive; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(FinancialDetails::class, 'Google_Service_Solar_FinancialDetails'); diff --git a/src/Solar/HttpBody.php b/src/Solar/HttpBody.php new file mode 100644 index 0000000000..df492aedec --- /dev/null +++ b/src/Solar/HttpBody.php @@ -0,0 +1,81 @@ +contentType = $contentType; + } + /** + * @return string + */ + public function getContentType() + { + return $this->contentType; + } + /** + * @param string + */ + public function setData($data) + { + $this->data = $data; + } + /** + * @return string + */ + public function getData() + { + return $this->data; + } + /** + * @param array[] + */ + public function setExtensions($extensions) + { + $this->extensions = $extensions; + } + /** + * @return array[] + */ + public function getExtensions() + { + return $this->extensions; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(HttpBody::class, 'Google_Service_Solar_HttpBody'); diff --git a/src/Solar/LatLng.php b/src/Solar/LatLng.php new file mode 100644 index 0000000000..8affa915ac --- /dev/null +++ b/src/Solar/LatLng.php @@ -0,0 +1,44 @@ +latitude = $latitude; + } + public function getLatitude() + { + return $this->latitude; + } + public function setLongitude($longitude) + { + $this->longitude = $longitude; + } + public function getLongitude() + { + return $this->longitude; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(LatLng::class, 'Google_Service_Solar_LatLng'); diff --git a/src/Solar/LatLngBox.php b/src/Solar/LatLngBox.php new file mode 100644 index 0000000000..38fe0b99bf --- /dev/null +++ b/src/Solar/LatLngBox.php @@ -0,0 +1,58 @@ +ne = $ne; + } + /** + * @return LatLng + */ + public function getNe() + { + return $this->ne; + } + /** + * @param LatLng + */ + public function setSw(LatLng $sw) + { + $this->sw = $sw; + } + /** + * @return LatLng + */ + public function getSw() + { + return $this->sw; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(LatLngBox::class, 'Google_Service_Solar_LatLngBox'); diff --git a/src/Solar/LeasingSavings.php b/src/Solar/LeasingSavings.php new file mode 100644 index 0000000000..1c31cdc177 --- /dev/null +++ b/src/Solar/LeasingSavings.php @@ -0,0 +1,94 @@ +annualLeasingCost = $annualLeasingCost; + } + /** + * @return Money + */ + public function getAnnualLeasingCost() + { + return $this->annualLeasingCost; + } + /** + * @param bool + */ + public function setLeasesAllowed($leasesAllowed) + { + $this->leasesAllowed = $leasesAllowed; + } + /** + * @return bool + */ + public function getLeasesAllowed() + { + return $this->leasesAllowed; + } + /** + * @param bool + */ + public function setLeasesSupported($leasesSupported) + { + $this->leasesSupported = $leasesSupported; + } + /** + * @return bool + */ + public function getLeasesSupported() + { + return $this->leasesSupported; + } + /** + * @param SavingsOverTime + */ + public function setSavings(SavingsOverTime $savings) + { + $this->savings = $savings; + } + /** + * @return SavingsOverTime + */ + public function getSavings() + { + return $this->savings; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(LeasingSavings::class, 'Google_Service_Solar_LeasingSavings'); diff --git a/src/Solar/Money.php b/src/Solar/Money.php new file mode 100644 index 0000000000..d9208e522e --- /dev/null +++ b/src/Solar/Money.php @@ -0,0 +1,80 @@ +currencyCode = $currencyCode; + } + /** + * @return string + */ + public function getCurrencyCode() + { + return $this->currencyCode; + } + /** + * @param int + */ + public function setNanos($nanos) + { + $this->nanos = $nanos; + } + /** + * @return int + */ + public function getNanos() + { + return $this->nanos; + } + /** + * @param string + */ + public function setUnits($units) + { + $this->units = $units; + } + /** + * @return string + */ + public function getUnits() + { + return $this->units; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Money::class, 'Google_Service_Solar_Money'); diff --git a/src/Solar/Resource/BuildingInsights.php b/src/Solar/Resource/BuildingInsights.php new file mode 100644 index 0000000000..898305d577 --- /dev/null +++ b/src/Solar/Resource/BuildingInsights.php @@ -0,0 +1,58 @@ + + * $solarService = new Google\Service\Solar(...); + * $buildingInsights = $solarService->buildingInsights; + * + */ +class BuildingInsights extends \Google\Service\Resource +{ + /** + * Locates the closest building to a query point. Returns an error with code + * `NOT_FOUND` if there are no buildings within approximately 50m of the query + * point. (buildingInsights.findClosest) + * + * @param array $optParams Optional parameters. + * + * @opt_param double location.latitude The latitude in degrees. It must be in + * the range [-90.0, +90.0]. + * @opt_param double location.longitude The longitude in degrees. It must be in + * the range [-180.0, +180.0]. + * @opt_param string requiredQuality Optional. The minimum quality level allowed + * in the results. No result with lower quality than this will be returned. Not + * specifying this is equivalent to restricting to HIGH quality only. + * @return BuildingInsightsModel + * @throws \Google\Service\Exception + */ + public function findClosest($optParams = []) + { + $params = []; + $params = array_merge($params, $optParams); + return $this->call('findClosest', [$params], BuildingInsightsModel::class); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(BuildingInsights::class, 'Google_Service_Solar_Resource_BuildingInsights'); diff --git a/src/Solar/Resource/DataLayers.php b/src/Solar/Resource/DataLayers.php new file mode 100644 index 0000000000..88d855e5e4 --- /dev/null +++ b/src/Solar/Resource/DataLayers.php @@ -0,0 +1,72 @@ + + * $solarService = new Google\Service\Solar(...); + * $dataLayers = $solarService->dataLayers; + * + */ +class DataLayers extends \Google\Service\Resource +{ + /** + * Gets solar information for a region surrounding a location. Returns an error + * with code `NOT_FOUND` if the location is outside the coverage area. + * (dataLayers.get) + * + * @param array $optParams Optional parameters. + * + * @opt_param double location.latitude The latitude in degrees. It must be in + * the range [-90.0, +90.0]. + * @opt_param double location.longitude The longitude in degrees. It must be in + * the range [-180.0, +180.0]. + * @opt_param float pixelSizeMeters Optional. The minimum scale, in meters per + * pixel, of the data to return. Values of 0.1 (the default, if this field is + * not set explicitly), 0.25, 0.5, and 1.0 are supported. Imagery components + * whose normal resolution is less than `pixel_size_meters` will be returned at + * the resolution specified by `pixel_size_meters`; imagery components whose + * normal resolution is equal to or greater than `pixel_size_meters` will be + * returned at that normal resolution. + * @opt_param float radiusMeters Required. The radius, in meters, defining the + * region surrounding that centre point for which data should be returned. The + * limitations on this value are: * Any value up to 100m can always be + * specified. * Values over 100m can be specified, as long as `radius_meters` <= + * `pixel_size_meters * 1000`. * However, for values over 175m, the + * `DataLayerView` in the request must not include monthly flux or hourly shade. + * @opt_param string requiredQuality Optional. The minimum quality level allowed + * in the results. No result with lower quality than this will be returned. Not + * specifying this is equivalent to restricting to HIGH quality only. + * @opt_param string view Optional. The desired subset of the data to return. + * @return DataLayersModel + * @throws \Google\Service\Exception + */ + public function get($optParams = []) + { + $params = []; + $params = array_merge($params, $optParams); + return $this->call('get', [$params], DataLayersModel::class); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(DataLayers::class, 'Google_Service_Solar_Resource_DataLayers'); diff --git a/src/Solar/Resource/GeoTiff.php b/src/Solar/Resource/GeoTiff.php new file mode 100644 index 0000000000..86356a262e --- /dev/null +++ b/src/Solar/Resource/GeoTiff.php @@ -0,0 +1,50 @@ + + * $solarService = new Google\Service\Solar(...); + * $geoTiff = $solarService->geoTiff; + * + */ +class GeoTiff extends \Google\Service\Resource +{ + /** + * Returns an image by its ID. (geoTiff.get) + * + * @param array $optParams Optional parameters. + * + * @opt_param string id Required. The ID of the asset being requested. + * @return HttpBody + * @throws \Google\Service\Exception + */ + public function get($optParams = []) + { + $params = []; + $params = array_merge($params, $optParams); + return $this->call('get', [$params], HttpBody::class); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GeoTiff::class, 'Google_Service_Solar_Resource_GeoTiff'); diff --git a/src/Solar/RoofSegmentSizeAndSunshineStats.php b/src/Solar/RoofSegmentSizeAndSunshineStats.php new file mode 100644 index 0000000000..9c0841f299 --- /dev/null +++ b/src/Solar/RoofSegmentSizeAndSunshineStats.php @@ -0,0 +1,128 @@ +azimuthDegrees = $azimuthDegrees; + } + /** + * @return float + */ + public function getAzimuthDegrees() + { + return $this->azimuthDegrees; + } + /** + * @param LatLngBox + */ + public function setBoundingBox(LatLngBox $boundingBox) + { + $this->boundingBox = $boundingBox; + } + /** + * @return LatLngBox + */ + public function getBoundingBox() + { + return $this->boundingBox; + } + /** + * @param LatLng + */ + public function setCenter(LatLng $center) + { + $this->center = $center; + } + /** + * @return LatLng + */ + public function getCenter() + { + return $this->center; + } + /** + * @param float + */ + public function setPitchDegrees($pitchDegrees) + { + $this->pitchDegrees = $pitchDegrees; + } + /** + * @return float + */ + public function getPitchDegrees() + { + return $this->pitchDegrees; + } + /** + * @param float + */ + public function setPlaneHeightAtCenterMeters($planeHeightAtCenterMeters) + { + $this->planeHeightAtCenterMeters = $planeHeightAtCenterMeters; + } + /** + * @return float + */ + public function getPlaneHeightAtCenterMeters() + { + return $this->planeHeightAtCenterMeters; + } + /** + * @param SizeAndSunshineStats + */ + public function setStats(SizeAndSunshineStats $stats) + { + $this->stats = $stats; + } + /** + * @return SizeAndSunshineStats + */ + public function getStats() + { + return $this->stats; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(RoofSegmentSizeAndSunshineStats::class, 'Google_Service_Solar_RoofSegmentSizeAndSunshineStats'); diff --git a/src/Solar/RoofSegmentSummary.php b/src/Solar/RoofSegmentSummary.php new file mode 100644 index 0000000000..b7d11ddc92 --- /dev/null +++ b/src/Solar/RoofSegmentSummary.php @@ -0,0 +1,116 @@ +azimuthDegrees = $azimuthDegrees; + } + /** + * @return float + */ + public function getAzimuthDegrees() + { + return $this->azimuthDegrees; + } + /** + * @param int + */ + public function setPanelsCount($panelsCount) + { + $this->panelsCount = $panelsCount; + } + /** + * @return int + */ + public function getPanelsCount() + { + return $this->panelsCount; + } + /** + * @param float + */ + public function setPitchDegrees($pitchDegrees) + { + $this->pitchDegrees = $pitchDegrees; + } + /** + * @return float + */ + public function getPitchDegrees() + { + return $this->pitchDegrees; + } + /** + * @param int + */ + public function setSegmentIndex($segmentIndex) + { + $this->segmentIndex = $segmentIndex; + } + /** + * @return int + */ + public function getSegmentIndex() + { + return $this->segmentIndex; + } + /** + * @param float + */ + public function setYearlyEnergyDcKwh($yearlyEnergyDcKwh) + { + $this->yearlyEnergyDcKwh = $yearlyEnergyDcKwh; + } + /** + * @return float + */ + public function getYearlyEnergyDcKwh() + { + return $this->yearlyEnergyDcKwh; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(RoofSegmentSummary::class, 'Google_Service_Solar_RoofSegmentSummary'); diff --git a/src/Solar/SavingsOverTime.php b/src/Solar/SavingsOverTime.php new file mode 100644 index 0000000000..48e422f11d --- /dev/null +++ b/src/Solar/SavingsOverTime.php @@ -0,0 +1,124 @@ +financiallyViable = $financiallyViable; + } + /** + * @return bool + */ + public function getFinanciallyViable() + { + return $this->financiallyViable; + } + /** + * @param Money + */ + public function setPresentValueOfSavingsLifetime(Money $presentValueOfSavingsLifetime) + { + $this->presentValueOfSavingsLifetime = $presentValueOfSavingsLifetime; + } + /** + * @return Money + */ + public function getPresentValueOfSavingsLifetime() + { + return $this->presentValueOfSavingsLifetime; + } + /** + * @param Money + */ + public function setPresentValueOfSavingsYear20(Money $presentValueOfSavingsYear20) + { + $this->presentValueOfSavingsYear20 = $presentValueOfSavingsYear20; + } + /** + * @return Money + */ + public function getPresentValueOfSavingsYear20() + { + return $this->presentValueOfSavingsYear20; + } + /** + * @param Money + */ + public function setSavingsLifetime(Money $savingsLifetime) + { + $this->savingsLifetime = $savingsLifetime; + } + /** + * @return Money + */ + public function getSavingsLifetime() + { + return $this->savingsLifetime; + } + /** + * @param Money + */ + public function setSavingsYear1(Money $savingsYear1) + { + $this->savingsYear1 = $savingsYear1; + } + /** + * @return Money + */ + public function getSavingsYear1() + { + return $this->savingsYear1; + } + /** + * @param Money + */ + public function setSavingsYear20(Money $savingsYear20) + { + $this->savingsYear20 = $savingsYear20; + } + /** + * @return Money + */ + public function getSavingsYear20() + { + return $this->savingsYear20; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SavingsOverTime::class, 'Google_Service_Solar_SavingsOverTime'); diff --git a/src/Solar/SizeAndSunshineStats.php b/src/Solar/SizeAndSunshineStats.php new file mode 100644 index 0000000000..d0ee61b528 --- /dev/null +++ b/src/Solar/SizeAndSunshineStats.php @@ -0,0 +1,81 @@ +areaMeters2 = $areaMeters2; + } + /** + * @return float + */ + public function getAreaMeters2() + { + return $this->areaMeters2; + } + /** + * @param float + */ + public function setGroundAreaMeters2($groundAreaMeters2) + { + $this->groundAreaMeters2 = $groundAreaMeters2; + } + /** + * @return float + */ + public function getGroundAreaMeters2() + { + return $this->groundAreaMeters2; + } + /** + * @param float[] + */ + public function setSunshineQuantiles($sunshineQuantiles) + { + $this->sunshineQuantiles = $sunshineQuantiles; + } + /** + * @return float[] + */ + public function getSunshineQuantiles() + { + return $this->sunshineQuantiles; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SizeAndSunshineStats::class, 'Google_Service_Solar_SizeAndSunshineStats'); diff --git a/src/Solar/SolarPanel.php b/src/Solar/SolarPanel.php new file mode 100644 index 0000000000..3f19263f2e --- /dev/null +++ b/src/Solar/SolarPanel.php @@ -0,0 +1,96 @@ +center = $center; + } + /** + * @return LatLng + */ + public function getCenter() + { + return $this->center; + } + /** + * @param string + */ + public function setOrientation($orientation) + { + $this->orientation = $orientation; + } + /** + * @return string + */ + public function getOrientation() + { + return $this->orientation; + } + /** + * @param int + */ + public function setSegmentIndex($segmentIndex) + { + $this->segmentIndex = $segmentIndex; + } + /** + * @return int + */ + public function getSegmentIndex() + { + return $this->segmentIndex; + } + /** + * @param float + */ + public function setYearlyEnergyDcKwh($yearlyEnergyDcKwh) + { + $this->yearlyEnergyDcKwh = $yearlyEnergyDcKwh; + } + /** + * @return float + */ + public function getYearlyEnergyDcKwh() + { + return $this->yearlyEnergyDcKwh; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SolarPanel::class, 'Google_Service_Solar_SolarPanel'); diff --git a/src/Solar/SolarPanelConfig.php b/src/Solar/SolarPanelConfig.php new file mode 100644 index 0000000000..2b642b4083 --- /dev/null +++ b/src/Solar/SolarPanelConfig.php @@ -0,0 +1,79 @@ +panelsCount = $panelsCount; + } + /** + * @return int + */ + public function getPanelsCount() + { + return $this->panelsCount; + } + /** + * @param RoofSegmentSummary[] + */ + public function setRoofSegmentSummaries($roofSegmentSummaries) + { + $this->roofSegmentSummaries = $roofSegmentSummaries; + } + /** + * @return RoofSegmentSummary[] + */ + public function getRoofSegmentSummaries() + { + return $this->roofSegmentSummaries; + } + /** + * @param float + */ + public function setYearlyEnergyDcKwh($yearlyEnergyDcKwh) + { + $this->yearlyEnergyDcKwh = $yearlyEnergyDcKwh; + } + /** + * @return float + */ + public function getYearlyEnergyDcKwh() + { + return $this->yearlyEnergyDcKwh; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SolarPanelConfig::class, 'Google_Service_Solar_SolarPanelConfig'); diff --git a/src/Solar/SolarPotential.php b/src/Solar/SolarPotential.php new file mode 100644 index 0000000000..5e3c923c33 --- /dev/null +++ b/src/Solar/SolarPotential.php @@ -0,0 +1,267 @@ +buildingStats = $buildingStats; + } + /** + * @return SizeAndSunshineStats + */ + public function getBuildingStats() + { + return $this->buildingStats; + } + /** + * @param float + */ + public function setCarbonOffsetFactorKgPerMwh($carbonOffsetFactorKgPerMwh) + { + $this->carbonOffsetFactorKgPerMwh = $carbonOffsetFactorKgPerMwh; + } + /** + * @return float + */ + public function getCarbonOffsetFactorKgPerMwh() + { + return $this->carbonOffsetFactorKgPerMwh; + } + /** + * @param FinancialAnalysis[] + */ + public function setFinancialAnalyses($financialAnalyses) + { + $this->financialAnalyses = $financialAnalyses; + } + /** + * @return FinancialAnalysis[] + */ + public function getFinancialAnalyses() + { + return $this->financialAnalyses; + } + /** + * @param float + */ + public function setMaxArrayAreaMeters2($maxArrayAreaMeters2) + { + $this->maxArrayAreaMeters2 = $maxArrayAreaMeters2; + } + /** + * @return float + */ + public function getMaxArrayAreaMeters2() + { + return $this->maxArrayAreaMeters2; + } + /** + * @param int + */ + public function setMaxArrayPanelsCount($maxArrayPanelsCount) + { + $this->maxArrayPanelsCount = $maxArrayPanelsCount; + } + /** + * @return int + */ + public function getMaxArrayPanelsCount() + { + return $this->maxArrayPanelsCount; + } + /** + * @param float + */ + public function setMaxSunshineHoursPerYear($maxSunshineHoursPerYear) + { + $this->maxSunshineHoursPerYear = $maxSunshineHoursPerYear; + } + /** + * @return float + */ + public function getMaxSunshineHoursPerYear() + { + return $this->maxSunshineHoursPerYear; + } + /** + * @param float + */ + public function setPanelCapacityWatts($panelCapacityWatts) + { + $this->panelCapacityWatts = $panelCapacityWatts; + } + /** + * @return float + */ + public function getPanelCapacityWatts() + { + return $this->panelCapacityWatts; + } + /** + * @param float + */ + public function setPanelHeightMeters($panelHeightMeters) + { + $this->panelHeightMeters = $panelHeightMeters; + } + /** + * @return float + */ + public function getPanelHeightMeters() + { + return $this->panelHeightMeters; + } + /** + * @param int + */ + public function setPanelLifetimeYears($panelLifetimeYears) + { + $this->panelLifetimeYears = $panelLifetimeYears; + } + /** + * @return int + */ + public function getPanelLifetimeYears() + { + return $this->panelLifetimeYears; + } + /** + * @param float + */ + public function setPanelWidthMeters($panelWidthMeters) + { + $this->panelWidthMeters = $panelWidthMeters; + } + /** + * @return float + */ + public function getPanelWidthMeters() + { + return $this->panelWidthMeters; + } + /** + * @param RoofSegmentSizeAndSunshineStats[] + */ + public function setRoofSegmentStats($roofSegmentStats) + { + $this->roofSegmentStats = $roofSegmentStats; + } + /** + * @return RoofSegmentSizeAndSunshineStats[] + */ + public function getRoofSegmentStats() + { + return $this->roofSegmentStats; + } + /** + * @param SolarPanelConfig[] + */ + public function setSolarPanelConfigs($solarPanelConfigs) + { + $this->solarPanelConfigs = $solarPanelConfigs; + } + /** + * @return SolarPanelConfig[] + */ + public function getSolarPanelConfigs() + { + return $this->solarPanelConfigs; + } + /** + * @param SolarPanel[] + */ + public function setSolarPanels($solarPanels) + { + $this->solarPanels = $solarPanels; + } + /** + * @return SolarPanel[] + */ + public function getSolarPanels() + { + return $this->solarPanels; + } + /** + * @param SizeAndSunshineStats + */ + public function setWholeRoofStats(SizeAndSunshineStats $wholeRoofStats) + { + $this->wholeRoofStats = $wholeRoofStats; + } + /** + * @return SizeAndSunshineStats + */ + public function getWholeRoofStats() + { + return $this->wholeRoofStats; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SolarPotential::class, 'Google_Service_Solar_SolarPotential');