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 PlayMovies (v1).
20 *
21 * <p>
22 * Gets the delivery status of titles for Google Play Movies Partners.</p>
23 *
24 * <p>
25 * For more information about this service, see the API
26 * <a href="https://developers.google.com/playmoviespartner/" target="_blank">Documentation</a>
27 * </p>
28 *
29 * @author Google, Inc.
30 */
31class Google_Service_PlayMovies extends Google_Service
32{
33  /** View the digital assets you publish on Google Play Movies and TV. */
34  const PLAYMOVIES_PARTNER_READONLY =
35      "https://www.googleapis.com/auth/playmovies_partner.readonly";
36
37  public $accounts_avails;
38  public $accounts_orders;
39  public $accounts_storeInfos;
40  public $accounts_storeInfos_country;
41
42  /**
43   * Constructs the internal representation of the PlayMovies service.
44   *
45   * @param Google_Client $client
46   */
47  public function __construct(Google_Client $client)
48  {
49    parent::__construct($client);
50    $this->rootUrl = 'https://playmoviespartner.googleapis.com/';
51    $this->servicePath = '';
52    $this->version = 'v1';
53    $this->serviceName = 'playmoviespartner';
54
55    $this->accounts_avails = new Google_Service_PlayMovies_Resource_AccountsAvails(
56        $this,
57        $this->serviceName,
58        'avails',
59        array(
60          'methods' => array(
61            'get' => array(
62              'path' => 'v1/accounts/{accountId}/avails/{availId}',
63              'httpMethod' => 'GET',
64              'parameters' => array(
65                'accountId' => array(
66                  'location' => 'path',
67                  'type' => 'string',
68                  'required' => true,
69                ),
70                'availId' => array(
71                  'location' => 'path',
72                  'type' => 'string',
73                  'required' => true,
74                ),
75              ),
76            ),'list' => array(
77              'path' => 'v1/accounts/{accountId}/avails',
78              'httpMethod' => 'GET',
79              'parameters' => array(
80                'accountId' => array(
81                  'location' => 'path',
82                  'type' => 'string',
83                  'required' => true,
84                ),
85                'pphNames' => array(
86                  'location' => 'query',
87                  'type' => 'string',
88                  'repeated' => true,
89                ),
90                'altId' => array(
91                  'location' => 'query',
92                  'type' => 'string',
93                ),
94                'studioNames' => array(
95                  'location' => 'query',
96                  'type' => 'string',
97                  'repeated' => true,
98                ),
99                'territories' => array(
100                  'location' => 'query',
101                  'type' => 'string',
102                  'repeated' => true,
103                ),
104                'title' => array(
105                  'location' => 'query',
106                  'type' => 'string',
107                ),
108                'videoIds' => array(
109                  'location' => 'query',
110                  'type' => 'string',
111                  'repeated' => true,
112                ),
113                'pageToken' => array(
114                  'location' => 'query',
115                  'type' => 'string',
116                ),
117                'pageSize' => array(
118                  'location' => 'query',
119                  'type' => 'integer',
120                ),
121                'altIds' => array(
122                  'location' => 'query',
123                  'type' => 'string',
124                  'repeated' => true,
125                ),
126              ),
127            ),
128          )
129        )
130    );
131    $this->accounts_orders = new Google_Service_PlayMovies_Resource_AccountsOrders(
132        $this,
133        $this->serviceName,
134        'orders',
135        array(
136          'methods' => array(
137            'get' => array(
138              'path' => 'v1/accounts/{accountId}/orders/{orderId}',
139              'httpMethod' => 'GET',
140              'parameters' => array(
141                'accountId' => array(
142                  'location' => 'path',
143                  'type' => 'string',
144                  'required' => true,
145                ),
146                'orderId' => array(
147                  'location' => 'path',
148                  'type' => 'string',
149                  'required' => true,
150                ),
151              ),
152            ),'list' => array(
153              'path' => 'v1/accounts/{accountId}/orders',
154              'httpMethod' => 'GET',
155              'parameters' => array(
156                'accountId' => array(
157                  'location' => 'path',
158                  'type' => 'string',
159                  'required' => true,
160                ),
161                'status' => array(
162                  'location' => 'query',
163                  'type' => 'string',
164                  'repeated' => true,
165                ),
166                'name' => array(
167                  'location' => 'query',
168                  'type' => 'string',
169                ),
170                'studioNames' => array(
171                  'location' => 'query',
172                  'type' => 'string',
173                  'repeated' => true,
174                ),
175                'pageToken' => array(
176                  'location' => 'query',
177                  'type' => 'string',
178                ),
179                'customId' => array(
180                  'location' => 'query',
181                  'type' => 'string',
182                ),
183                'videoIds' => array(
184                  'location' => 'query',
185                  'type' => 'string',
186                  'repeated' => true,
187                ),
188                'pageSize' => array(
189                  'location' => 'query',
190                  'type' => 'integer',
191                ),
192                'pphNames' => array(
193                  'location' => 'query',
194                  'type' => 'string',
195                  'repeated' => true,
196                ),
197              ),
198            ),
199          )
200        )
201    );
202    $this->accounts_storeInfos = new Google_Service_PlayMovies_Resource_AccountsStoreInfos(
203        $this,
204        $this->serviceName,
205        'storeInfos',
206        array(
207          'methods' => array(
208            'list' => array(
209              'path' => 'v1/accounts/{accountId}/storeInfos',
210              'httpMethod' => 'GET',
211              'parameters' => array(
212                'accountId' => array(
213                  'location' => 'path',
214                  'type' => 'string',
215                  'required' => true,
216                ),
217                'pageSize' => array(
218                  'location' => 'query',
219                  'type' => 'integer',
220                ),
221                'mids' => array(
222                  'location' => 'query',
223                  'type' => 'string',
224                  'repeated' => true,
225                ),
226                'pphNames' => array(
227                  'location' => 'query',
228                  'type' => 'string',
229                  'repeated' => true,
230                ),
231                'countries' => array(
232                  'location' => 'query',
233                  'type' => 'string',
234                  'repeated' => true,
235                ),
236                'name' => array(
237                  'location' => 'query',
238                  'type' => 'string',
239                ),
240                'studioNames' => array(
241                  'location' => 'query',
242                  'type' => 'string',
243                  'repeated' => true,
244                ),
245                'seasonIds' => array(
246                  'location' => 'query',
247                  'type' => 'string',
248                  'repeated' => true,
249                ),
250                'videoIds' => array(
251                  'location' => 'query',
252                  'type' => 'string',
253                  'repeated' => true,
254                ),
255                'videoId' => array(
256                  'location' => 'query',
257                  'type' => 'string',
258                ),
259                'pageToken' => array(
260                  'location' => 'query',
261                  'type' => 'string',
262                ),
263              ),
264            ),
265          )
266        )
267    );
268    $this->accounts_storeInfos_country = new Google_Service_PlayMovies_Resource_AccountsStoreInfosCountry(
269        $this,
270        $this->serviceName,
271        'country',
272        array(
273          'methods' => array(
274            'get' => array(
275              'path' => 'v1/accounts/{accountId}/storeInfos/{videoId}/country/{country}',
276              'httpMethod' => 'GET',
277              'parameters' => array(
278                'accountId' => array(
279                  'location' => 'path',
280                  'type' => 'string',
281                  'required' => true,
282                ),
283                'videoId' => array(
284                  'location' => 'path',
285                  'type' => 'string',
286                  'required' => true,
287                ),
288                'country' => array(
289                  'location' => 'path',
290                  'type' => 'string',
291                  'required' => true,
292                ),
293              ),
294            ),
295          )
296        )
297    );
298  }
299}
300