source: vendor/google/apiclient-services/src/VersionHistory.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: 5.7 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 VersionHistory (v1).
24 *
25 * <p>
26 * Version History API - Prod</p>
27 *
28 * <p>
29 * For more information about this service, see the API
30 * <a href="https://developers.chrome.com/versionhistory" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class VersionHistory extends \Google\Service
36{
37
38
39 public $platforms;
40 public $platforms_channels;
41 public $platforms_channels_versions;
42 public $platforms_channels_versions_releases;
43 public $rootUrlTemplate;
44
45 /**
46 * Constructs the internal representation of the VersionHistory 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://versionhistory.googleapis.com/';
56 $this->rootUrlTemplate = $rootUrl ?: 'https://versionhistory.UNIVERSE_DOMAIN/';
57 $this->servicePath = '';
58 $this->batchPath = 'batch';
59 $this->version = 'v1';
60 $this->serviceName = 'versionhistory';
61
62 $this->platforms = new VersionHistory\Resource\Platforms(
63 $this,
64 $this->serviceName,
65 'platforms',
66 [
67 'methods' => [
68 'list' => [
69 'path' => 'v1/{+parent}/platforms',
70 'httpMethod' => 'GET',
71 'parameters' => [
72 'parent' => [
73 'location' => 'path',
74 'type' => 'string',
75 'required' => true,
76 ],
77 'pageSize' => [
78 'location' => 'query',
79 'type' => 'integer',
80 ],
81 'pageToken' => [
82 'location' => 'query',
83 'type' => 'string',
84 ],
85 ],
86 ],
87 ]
88 ]
89 );
90 $this->platforms_channels = new VersionHistory\Resource\PlatformsChannels(
91 $this,
92 $this->serviceName,
93 'channels',
94 [
95 'methods' => [
96 'list' => [
97 'path' => 'v1/{+parent}/channels',
98 'httpMethod' => 'GET',
99 'parameters' => [
100 'parent' => [
101 'location' => 'path',
102 'type' => 'string',
103 'required' => true,
104 ],
105 'pageSize' => [
106 'location' => 'query',
107 'type' => 'integer',
108 ],
109 'pageToken' => [
110 'location' => 'query',
111 'type' => 'string',
112 ],
113 ],
114 ],
115 ]
116 ]
117 );
118 $this->platforms_channels_versions = new VersionHistory\Resource\PlatformsChannelsVersions(
119 $this,
120 $this->serviceName,
121 'versions',
122 [
123 'methods' => [
124 'list' => [
125 'path' => 'v1/{+parent}/versions',
126 'httpMethod' => 'GET',
127 'parameters' => [
128 'parent' => [
129 'location' => 'path',
130 'type' => 'string',
131 'required' => true,
132 ],
133 'filter' => [
134 'location' => 'query',
135 'type' => 'string',
136 ],
137 'orderBy' => [
138 'location' => 'query',
139 'type' => 'string',
140 ],
141 'pageSize' => [
142 'location' => 'query',
143 'type' => 'integer',
144 ],
145 'pageToken' => [
146 'location' => 'query',
147 'type' => 'string',
148 ],
149 ],
150 ],
151 ]
152 ]
153 );
154 $this->platforms_channels_versions_releases = new VersionHistory\Resource\PlatformsChannelsVersionsReleases(
155 $this,
156 $this->serviceName,
157 'releases',
158 [
159 'methods' => [
160 'list' => [
161 'path' => 'v1/{+parent}/releases',
162 'httpMethod' => 'GET',
163 'parameters' => [
164 'parent' => [
165 'location' => 'path',
166 'type' => 'string',
167 'required' => true,
168 ],
169 'filter' => [
170 'location' => 'query',
171 'type' => 'string',
172 ],
173 'orderBy' => [
174 'location' => 'query',
175 'type' => 'string',
176 ],
177 'pageSize' => [
178 'location' => 'query',
179 'type' => 'integer',
180 ],
181 'pageToken' => [
182 'location' => 'query',
183 'type' => 'string',
184 ],
185 ],
186 ],
187 ]
188 ]
189 );
190 }
191}
192
193// Adding a class alias for backwards compatibility with the previous class name.
194class_alias(VersionHistory::class, 'Google_Service_VersionHistory');
Note: See TracBrowser for help on using the repository browser.