source: vendor/google/apiclient-services/src/AirQuality.php@ e3d4e0a

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

Upload project files

  • Property mode set to 100644
File size: 4.2 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 AirQuality (v1).
24 *
25 * <p>
26 * The Air Quality API.</p>
27 *
28 * <p>
29 * For more information about this service, see the API
30 * <a href="https://developers.google.com/maps/documentation/air-quality" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class AirQuality 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 $currentConditions;
42 public $forecast;
43 public $history;
44 public $mapTypes_heatmapTiles;
45 public $rootUrlTemplate;
46
47 /**
48 * Constructs the internal representation of the AirQuality service.
49 *
50 * @param Client|array $clientOrConfig The client used to deliver requests, or a
51 * config array to pass to a new Client instance.
52 * @param string $rootUrl The root URL used for requests to the service.
53 */
54 public function __construct($clientOrConfig = [], $rootUrl = null)
55 {
56 parent::__construct($clientOrConfig);
57 $this->rootUrl = $rootUrl ?: 'https://airquality.googleapis.com/';
58 $this->rootUrlTemplate = $rootUrl ?: 'https://airquality.UNIVERSE_DOMAIN/';
59 $this->servicePath = '';
60 $this->batchPath = 'batch';
61 $this->version = 'v1';
62 $this->serviceName = 'airquality';
63
64 $this->currentConditions = new AirQuality\Resource\CurrentConditions(
65 $this,
66 $this->serviceName,
67 'currentConditions',
68 [
69 'methods' => [
70 'lookup' => [
71 'path' => 'v1/currentConditions:lookup',
72 'httpMethod' => 'POST',
73 'parameters' => [],
74 ],
75 ]
76 ]
77 );
78 $this->forecast = new AirQuality\Resource\Forecast(
79 $this,
80 $this->serviceName,
81 'forecast',
82 [
83 'methods' => [
84 'lookup' => [
85 'path' => 'v1/forecast:lookup',
86 'httpMethod' => 'POST',
87 'parameters' => [],
88 ],
89 ]
90 ]
91 );
92 $this->history = new AirQuality\Resource\History(
93 $this,
94 $this->serviceName,
95 'history',
96 [
97 'methods' => [
98 'lookup' => [
99 'path' => 'v1/history:lookup',
100 'httpMethod' => 'POST',
101 'parameters' => [],
102 ],
103 ]
104 ]
105 );
106 $this->mapTypes_heatmapTiles = new AirQuality\Resource\MapTypesHeatmapTiles(
107 $this,
108 $this->serviceName,
109 'heatmapTiles',
110 [
111 'methods' => [
112 'lookupHeatmapTile' => [
113 'path' => 'v1/mapTypes/{mapType}/heatmapTiles/{zoom}/{x}/{y}',
114 'httpMethod' => 'GET',
115 'parameters' => [
116 'mapType' => [
117 'location' => 'path',
118 'type' => 'string',
119 'required' => true,
120 ],
121 'zoom' => [
122 'location' => 'path',
123 'type' => 'integer',
124 'required' => true,
125 ],
126 'x' => [
127 'location' => 'path',
128 'type' => 'integer',
129 'required' => true,
130 ],
131 'y' => [
132 'location' => 'path',
133 'type' => 'integer',
134 'required' => true,
135 ],
136 ],
137 ],
138 ]
139 ]
140 );
141 }
142}
143
144// Adding a class alias for backwards compatibility with the previous class name.
145class_alias(AirQuality::class, 'Google_Service_AirQuality');
Note: See TracBrowser for help on using the repository browser.