source: vendor/google/apiclient-services/src/Solar.php

Last change on this file was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 7 days ago

Upload project files

  • Property mode set to 100644
File size: 4.9 KB
Line 
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
18namespace Google\Service;
19
20use 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 */
35class 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 public $rootUrlTemplate;
45
46 /**
47 * Constructs the internal representation of the Solar service.
48 *
49 * @param Client|array $clientOrConfig The client used to deliver requests, or a
50 * config array to pass to a new Client instance.
51 * @param string $rootUrl The root URL used for requests to the service.
52 */
53 public function __construct($clientOrConfig = [], $rootUrl = null)
54 {
55 parent::__construct($clientOrConfig);
56 $this->rootUrl = $rootUrl ?: 'https://solar.googleapis.com/';
57 $this->rootUrlTemplate = $rootUrl ?: 'https://solar.UNIVERSE_DOMAIN/';
58 $this->servicePath = '';
59 $this->batchPath = 'batch';
60 $this->version = 'v1';
61 $this->serviceName = 'solar';
62
63 $this->buildingInsights = new Solar\Resource\BuildingInsights(
64 $this,
65 $this->serviceName,
66 'buildingInsights',
67 [
68 'methods' => [
69 'findClosest' => [
70 'path' => 'v1/buildingInsights:findClosest',
71 'httpMethod' => 'GET',
72 'parameters' => [
73 'experiments' => [
74 'location' => 'query',
75 'type' => 'string',
76 'repeated' => true,
77 ],
78 'location.latitude' => [
79 'location' => 'query',
80 'type' => 'number',
81 ],
82 'location.longitude' => [
83 'location' => 'query',
84 'type' => 'number',
85 ],
86 'requiredQuality' => [
87 'location' => 'query',
88 'type' => 'string',
89 ],
90 ],
91 ],
92 ]
93 ]
94 );
95 $this->dataLayers = new Solar\Resource\DataLayers(
96 $this,
97 $this->serviceName,
98 'dataLayers',
99 [
100 'methods' => [
101 'get' => [
102 'path' => 'v1/dataLayers:get',
103 'httpMethod' => 'GET',
104 'parameters' => [
105 'exactQualityRequired' => [
106 'location' => 'query',
107 'type' => 'boolean',
108 ],
109 'experiments' => [
110 'location' => 'query',
111 'type' => 'string',
112 'repeated' => true,
113 ],
114 'location.latitude' => [
115 'location' => 'query',
116 'type' => 'number',
117 ],
118 'location.longitude' => [
119 'location' => 'query',
120 'type' => 'number',
121 ],
122 'pixelSizeMeters' => [
123 'location' => 'query',
124 'type' => 'number',
125 ],
126 'radiusMeters' => [
127 'location' => 'query',
128 'type' => 'number',
129 ],
130 'requiredQuality' => [
131 'location' => 'query',
132 'type' => 'string',
133 ],
134 'view' => [
135 'location' => 'query',
136 'type' => 'string',
137 ],
138 ],
139 ],
140 ]
141 ]
142 );
143 $this->geoTiff = new Solar\Resource\GeoTiff(
144 $this,
145 $this->serviceName,
146 'geoTiff',
147 [
148 'methods' => [
149 'get' => [
150 'path' => 'v1/geoTiff:get',
151 'httpMethod' => 'GET',
152 'parameters' => [
153 'id' => [
154 'location' => 'query',
155 'type' => 'string',
156 ],
157 ],
158 ],
159 ]
160 ]
161 );
162 }
163}
164
165// Adding a class alias for backwards compatibility with the previous class name.
166class_alias(Solar::class, 'Google_Service_Solar');
Note: See TracBrowser for help on using the repository browser.