source: vendor/google/apiclient-services/src/Pollen.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.4 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 Pollen (v1).
24 *
25 * <p>
26 * The Pollen API.</p>
27 *
28 * <p>
29 * For more information about this service, see the API
30 * <a href="https://developers.google.com/maps/documentation/pollen" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class Pollen 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 $forecast;
42 public $mapTypes_heatmapTiles;
43 public $rootUrlTemplate;
44
45 /**
46 * Constructs the internal representation of the Pollen 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://pollen.googleapis.com/';
56 $this->rootUrlTemplate = $rootUrl ?: 'https://pollen.UNIVERSE_DOMAIN/';
57 $this->servicePath = '';
58 $this->batchPath = 'batch';
59 $this->version = 'v1';
60 $this->serviceName = 'pollen';
61
62 $this->forecast = new Pollen\Resource\Forecast(
63 $this,
64 $this->serviceName,
65 'forecast',
66 [
67 'methods' => [
68 'lookup' => [
69 'path' => 'v1/forecast:lookup',
70 'httpMethod' => 'GET',
71 'parameters' => [
72 'days' => [
73 'location' => 'query',
74 'type' => 'integer',
75 ],
76 'languageCode' => [
77 'location' => 'query',
78 'type' => 'string',
79 ],
80 'location.latitude' => [
81 'location' => 'query',
82 'type' => 'number',
83 ],
84 'location.longitude' => [
85 'location' => 'query',
86 'type' => 'number',
87 ],
88 'pageSize' => [
89 'location' => 'query',
90 'type' => 'integer',
91 ],
92 'pageToken' => [
93 'location' => 'query',
94 'type' => 'string',
95 ],
96 'plantsDescription' => [
97 'location' => 'query',
98 'type' => 'boolean',
99 ],
100 ],
101 ],
102 ]
103 ]
104 );
105 $this->mapTypes_heatmapTiles = new Pollen\Resource\MapTypesHeatmapTiles(
106 $this,
107 $this->serviceName,
108 'heatmapTiles',
109 [
110 'methods' => [
111 'lookupHeatmapTile' => [
112 'path' => 'v1/mapTypes/{mapType}/heatmapTiles/{zoom}/{x}/{y}',
113 'httpMethod' => 'GET',
114 'parameters' => [
115 'mapType' => [
116 'location' => 'path',
117 'type' => 'string',
118 'required' => true,
119 ],
120 'zoom' => [
121 'location' => 'path',
122 'type' => 'integer',
123 'required' => true,
124 ],
125 'x' => [
126 'location' => 'path',
127 'type' => 'integer',
128 'required' => true,
129 ],
130 'y' => [
131 'location' => 'path',
132 'type' => 'integer',
133 'required' => true,
134 ],
135 ],
136 ],
137 ]
138 ]
139 );
140 }
141}
142
143// Adding a class alias for backwards compatibility with the previous class name.
144class_alias(Pollen::class, 'Google_Service_Pollen');
Note: See TracBrowser for help on using the repository browser.