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
18/**
19 * Service definition for PlusDomains (v1).
20 *
21 * <p>
22 * Builds on top of the Google+ platform for Google Apps Domains.</p>
23 *
24 * <p>
25 * For more information about this service, see the API
26 * <a href="https://developers.google.com/+/domains/" target="_blank">Documentation</a>
27 * </p>
28 *
29 * @author Google, Inc.
30 */
31class Google_Service_PlusDomains extends Google_Service
32{
33  /** View your circles and the people and pages in them. */
34  const PLUS_CIRCLES_READ =
35      "https://www.googleapis.com/auth/plus.circles.read";
36  /** View your basic profile info, including your age range and language. */
37  const PLUS_LOGIN =
38      "https://www.googleapis.com/auth/plus.login";
39  /** Associate you with your personal info on Google. */
40  const PLUS_ME =
41      "https://www.googleapis.com/auth/plus.me";
42  /** Send your photos and videos to Google+. */
43  const PLUS_MEDIA_UPLOAD =
44      "https://www.googleapis.com/auth/plus.media.upload";
45  /** View your own Google+ profile and profiles visible to you. */
46  const PLUS_PROFILES_READ =
47      "https://www.googleapis.com/auth/plus.profiles.read";
48  /** View your Google+ posts, comments, and stream. */
49  const PLUS_STREAM_READ =
50      "https://www.googleapis.com/auth/plus.stream.read";
51  /** View your email address. */
52  const USERINFO_EMAIL =
53      "https://www.googleapis.com/auth/userinfo.email";
54  /** See your personal info, including any personal info you've made publicly available. */
55  const USERINFO_PROFILE =
56      "https://www.googleapis.com/auth/userinfo.profile";
57
58  public $activities;
59  public $audiences;
60  public $circles;
61  public $comments;
62  public $media;
63  public $people;
64
65  /**
66   * Constructs the internal representation of the PlusDomains service.
67   *
68   * @param Google_Client $client
69   */
70  public function __construct(Google_Client $client)
71  {
72    parent::__construct($client);
73    $this->rootUrl = 'https://www.googleapis.com/';
74    $this->servicePath = 'plusDomains/v1/';
75    $this->batchPath = 'batch/plusDomains/v1';
76    $this->version = 'v1';
77    $this->serviceName = 'plusDomains';
78
79    $this->activities = new Google_Service_PlusDomains_Resource_Activities(
80        $this,
81        $this->serviceName,
82        'activities',
83        array(
84          'methods' => array(
85            'get' => array(
86              'path' => 'activities/{activityId}',
87              'httpMethod' => 'GET',
88              'parameters' => array(
89                'activityId' => array(
90                  'location' => 'path',
91                  'type' => 'string',
92                  'required' => true,
93                ),
94              ),
95            ),'list' => array(
96              'path' => 'people/{userId}/activities/{collection}',
97              'httpMethod' => 'GET',
98              'parameters' => array(
99                'userId' => array(
100                  'location' => 'path',
101                  'type' => 'string',
102                  'required' => true,
103                ),
104                'collection' => array(
105                  'location' => 'path',
106                  'type' => 'string',
107                  'required' => true,
108                ),
109                'maxResults' => array(
110                  'location' => 'query',
111                  'type' => 'integer',
112                ),
113                'pageToken' => array(
114                  'location' => 'query',
115                  'type' => 'string',
116                ),
117              ),
118            ),
119          )
120        )
121    );
122    $this->audiences = new Google_Service_PlusDomains_Resource_Audiences(
123        $this,
124        $this->serviceName,
125        'audiences',
126        array(
127          'methods' => array(
128            'list' => array(
129              'path' => 'people/{userId}/audiences',
130              'httpMethod' => 'GET',
131              'parameters' => array(
132                'userId' => array(
133                  'location' => 'path',
134                  'type' => 'string',
135                  'required' => true,
136                ),
137                'maxResults' => array(
138                  'location' => 'query',
139                  'type' => 'integer',
140                ),
141                'pageToken' => array(
142                  'location' => 'query',
143                  'type' => 'string',
144                ),
145              ),
146            ),
147          )
148        )
149    );
150    $this->circles = new Google_Service_PlusDomains_Resource_Circles(
151        $this,
152        $this->serviceName,
153        'circles',
154        array(
155          'methods' => array(
156            'list' => array(
157              'path' => 'people/{userId}/circles',
158              'httpMethod' => 'GET',
159              'parameters' => array(
160                'userId' => array(
161                  'location' => 'path',
162                  'type' => 'string',
163                  'required' => true,
164                ),
165                'maxResults' => array(
166                  'location' => 'query',
167                  'type' => 'integer',
168                ),
169                'pageToken' => array(
170                  'location' => 'query',
171                  'type' => 'string',
172                ),
173              ),
174            ),
175          )
176        )
177    );
178    $this->comments = new Google_Service_PlusDomains_Resource_Comments(
179        $this,
180        $this->serviceName,
181        'comments',
182        array(
183          'methods' => array(
184            'get' => array(
185              'path' => 'comments/{commentId}',
186              'httpMethod' => 'GET',
187              'parameters' => array(
188                'commentId' => array(
189                  'location' => 'path',
190                  'type' => 'string',
191                  'required' => true,
192                ),
193              ),
194            ),'list' => array(
195              'path' => 'activities/{activityId}/comments',
196              'httpMethod' => 'GET',
197              'parameters' => array(
198                'activityId' => array(
199                  'location' => 'path',
200                  'type' => 'string',
201                  'required' => true,
202                ),
203                'maxResults' => array(
204                  'location' => 'query',
205                  'type' => 'integer',
206                ),
207                'pageToken' => array(
208                  'location' => 'query',
209                  'type' => 'string',
210                ),
211                'sortOrder' => array(
212                  'location' => 'query',
213                  'type' => 'string',
214                ),
215              ),
216            ),
217          )
218        )
219    );
220    $this->media = new Google_Service_PlusDomains_Resource_Media(
221        $this,
222        $this->serviceName,
223        'media',
224        array(
225          'methods' => array(
226            'insert' => array(
227              'path' => 'people/{userId}/media/{collection}',
228              'httpMethod' => 'POST',
229              'parameters' => array(
230                'userId' => array(
231                  'location' => 'path',
232                  'type' => 'string',
233                  'required' => true,
234                ),
235                'collection' => array(
236                  'location' => 'path',
237                  'type' => 'string',
238                  'required' => true,
239                ),
240              ),
241            ),
242          )
243        )
244    );
245    $this->people = new Google_Service_PlusDomains_Resource_People(
246        $this,
247        $this->serviceName,
248        'people',
249        array(
250          'methods' => array(
251            'get' => array(
252              'path' => 'people/{userId}',
253              'httpMethod' => 'GET',
254              'parameters' => array(
255                'userId' => array(
256                  'location' => 'path',
257                  'type' => 'string',
258                  'required' => true,
259                ),
260              ),
261            ),'list' => array(
262              'path' => 'people/{userId}/people/{collection}',
263              'httpMethod' => 'GET',
264              'parameters' => array(
265                'userId' => array(
266                  'location' => 'path',
267                  'type' => 'string',
268                  'required' => true,
269                ),
270                'collection' => array(
271                  'location' => 'path',
272                  'type' => 'string',
273                  'required' => true,
274                ),
275                'maxResults' => array(
276                  'location' => 'query',
277                  'type' => 'integer',
278                ),
279                'orderBy' => array(
280                  'location' => 'query',
281                  'type' => 'string',
282                ),
283                'pageToken' => array(
284                  'location' => 'query',
285                  'type' => 'string',
286                ),
287              ),
288            ),'listByActivity' => array(
289              'path' => 'activities/{activityId}/people/{collection}',
290              'httpMethod' => 'GET',
291              'parameters' => array(
292                'activityId' => array(
293                  'location' => 'path',
294                  'type' => 'string',
295                  'required' => true,
296                ),
297                'collection' => array(
298                  'location' => 'path',
299                  'type' => 'string',
300                  'required' => true,
301                ),
302                'maxResults' => array(
303                  'location' => 'query',
304                  'type' => 'integer',
305                ),
306                'pageToken' => array(
307                  'location' => 'query',
308                  'type' => 'string',
309                ),
310              ),
311            ),
312          )
313        )
314    );
315  }
316}
317