PluginProbe
Authorizer / 2.6.10
Authorizer v2.6.10
3.15.3 3.15.2 3.15.1 3.15.0 3.14.3 3.14.4 3.14.2 3.14.1 2.8.1 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7 2.8.8 2.9.0 2.9.1 2.9.10 2.9.11 2.9.12 2.9.13 2.9.2 2.9.3 2.9.6 All 126 releases
authorizer / vendor / google-api-php-client / src / Google / Service / Webfonts.php

Webfonts.php in Authorizer 2.6.10, at vendor/google-api-php-client/src/Google/Service/Webfonts.php

211 lines 4.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
4 * use this file except in compliance with the License. You may obtain a copy of
5 * the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 * License for the specific language governing permissions and limitations under
13 * the License.
14 */
15
16 /**
17 * Service definition for Webfonts (v1).
18 *
19 * <p>
20 * The Google Fonts Developer API.</p>
21 *
22 * <p>
23 * For more information about this service, see the API
24 * <a href="https://developers.google.com/fonts/docs/developer_api" target="_blank">Documentation</a>
25 * </p>
26 *
27 * @author Google, Inc.
28 */
29 class Google_Service_Webfonts extends Google_Service
30 {
31
32
33 public $webfonts;
34
35
36 /**
37 * Constructs the internal representation of the Webfonts service.
38 *
39 * @param Google_Client $client
40 */
41 public function __construct(Google_Client $client)
42 {
43 parent::__construct($client);
44 $this->rootUrl = 'https://www.googleapis.com/';
45 $this->servicePath = 'webfonts/v1/';
46 $this->version = 'v1';
47 $this->serviceName = 'webfonts';
48
49 $this->webfonts = new Google_Service_Webfonts_Webfonts_Resource(
50 $this,
51 $this->serviceName,
52 'webfonts',
53 array(
54 'methods' => array(
55 'list' => array(
56 'path' => 'webfonts',
57 'httpMethod' => 'GET',
58 'parameters' => array(
59 'sort' => array(
60 'location' => 'query',
61 'type' => 'string',
62 ),
63 ),
64 ),
65 )
66 )
67 );
68 }
69 }
70
71
72 /**
73 * The "webfonts" collection of methods.
74 * Typical usage is:
75 * <code>
76 * $webfontsService = new Google_Service_Webfonts(...);
77 * $webfonts = $webfontsService->webfonts;
78 * </code>
79 */
80 class Google_Service_Webfonts_Webfonts_Resource extends Google_Service_Resource
81 {
82
83 /**
84 * Retrieves the list of fonts currently served by the Google Fonts Developer
85 * API (webfonts.listWebfonts)
86 *
87 * @param array $optParams Optional parameters.
88 *
89 * @opt_param string sort Enables sorting of the list
90 * @return Google_Service_Webfonts_WebfontList
91 */
92 public function listWebfonts($optParams = array())
93 {
94 $params = array();
95 $params = array_merge($params, $optParams);
96 return $this->call('list', array($params), "Google_Service_Webfonts_WebfontList");
97 }
98 }
99
100
101
102
103 class Google_Service_Webfonts_Webfont extends Google_Collection
104 {
105 protected $collection_key = 'variants';
106 protected $internal_gapi_mappings = array(
107 );
108 public $category;
109 public $family;
110 public $files;
111 public $kind;
112 public $lastModified;
113 public $subsets;
114 public $variants;
115 public $version;
116
117
118 public function setCategory($category)
119 {
120 $this->category = $category;
121 }
122 public function getCategory()
123 {
124 return $this->category;
125 }
126 public function setFamily($family)
127 {
128 $this->family = $family;
129 }
130 public function getFamily()
131 {
132 return $this->family;
133 }
134 public function setFiles($files)
135 {
136 $this->files = $files;
137 }
138 public function getFiles()
139 {
140 return $this->files;
141 }
142 public function setKind($kind)
143 {
144 $this->kind = $kind;
145 }
146 public function getKind()
147 {
148 return $this->kind;
149 }
150 public function setLastModified($lastModified)
151 {
152 $this->lastModified = $lastModified;
153 }
154 public function getLastModified()
155 {
156 return $this->lastModified;
157 }
158 public function setSubsets($subsets)
159 {
160 $this->subsets = $subsets;
161 }
162 public function getSubsets()
163 {
164 return $this->subsets;
165 }
166 public function setVariants($variants)
167 {
168 $this->variants = $variants;
169 }
170 public function getVariants()
171 {
172 return $this->variants;
173 }
174 public function setVersion($version)
175 {
176 $this->version = $version;
177 }
178 public function getVersion()
179 {
180 return $this->version;
181 }
182 }
183
184 class Google_Service_Webfonts_WebfontList extends Google_Collection
185 {
186 protected $collection_key = 'items';
187 protected $internal_gapi_mappings = array(
188 );
189 protected $itemsType = 'Google_Service_Webfonts_Webfont';
190 protected $itemsDataType = 'array';
191 public $kind;
192
193
194 public function setItems($items)
195 {
196 $this->items = $items;
197 }
198 public function getItems()
199 {
200 return $this->items;
201 }
202 public function setKind($kind)
203 {
204 $this->kind = $kind;
205 }
206 public function getKind()
207 {
208 return $this->kind;
209 }
210 }
211