source: vendor/google/apiclient-services/src/AuthorizedBuyersMarketplace.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: 21.3 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 AuthorizedBuyersMarketplace (v1).
24 *
25 * <p>
26 * The Authorized Buyers Marketplace API lets buyers programmatically discover
27 * inventory; propose, retrieve and negotiate deals with publishers.</p>
28 *
29 * <p>
30 * For more information about this service, see the API
31 * <a href="https://developers.google.com/authorized-buyers/apis/marketplace/reference/rest/" target="_blank">Documentation</a>
32 * </p>
33 *
34 * @author Google, Inc.
35 */
36class AuthorizedBuyersMarketplace extends \Google\Service
37{
38 /** See, create, edit, and delete your Authorized Buyers Marketplace entities.. */
39 const AUTHORIZED_BUYERS_MARKETPLACE =
40 "https://www.googleapis.com/auth/authorized-buyers-marketplace";
41
42 public $bidders_auctionPackages;
43 public $bidders_finalizedDeals;
44 public $buyers_auctionPackages;
45 public $buyers_clients;
46 public $buyers_clients_users;
47 public $buyers_finalizedDeals;
48 public $buyers_proposals;
49 public $buyers_proposals_deals;
50 public $buyers_publisherProfiles;
51 public $rootUrlTemplate;
52
53 /**
54 * Constructs the internal representation of the AuthorizedBuyersMarketplace
55 * service.
56 *
57 * @param Client|array $clientOrConfig The client used to deliver requests, or a
58 * config array to pass to a new Client instance.
59 * @param string $rootUrl The root URL used for requests to the service.
60 */
61 public function __construct($clientOrConfig = [], $rootUrl = null)
62 {
63 parent::__construct($clientOrConfig);
64 $this->rootUrl = $rootUrl ?: 'https://authorizedbuyersmarketplace.googleapis.com/';
65 $this->rootUrlTemplate = $rootUrl ?: 'https://authorizedbuyersmarketplace.UNIVERSE_DOMAIN/';
66 $this->servicePath = '';
67 $this->batchPath = 'batch';
68 $this->version = 'v1';
69 $this->serviceName = 'authorizedbuyersmarketplace';
70
71 $this->bidders_auctionPackages = new AuthorizedBuyersMarketplace\Resource\BiddersAuctionPackages(
72 $this,
73 $this->serviceName,
74 'auctionPackages',
75 [
76 'methods' => [
77 'list' => [
78 'path' => 'v1/{+parent}/auctionPackages',
79 'httpMethod' => 'GET',
80 'parameters' => [
81 'parent' => [
82 'location' => 'path',
83 'type' => 'string',
84 'required' => true,
85 ],
86 'filter' => [
87 'location' => 'query',
88 'type' => 'string',
89 ],
90 'orderBy' => [
91 'location' => 'query',
92 'type' => 'string',
93 ],
94 'pageSize' => [
95 'location' => 'query',
96 'type' => 'integer',
97 ],
98 'pageToken' => [
99 'location' => 'query',
100 'type' => 'string',
101 ],
102 ],
103 ],
104 ]
105 ]
106 );
107 $this->bidders_finalizedDeals = new AuthorizedBuyersMarketplace\Resource\BiddersFinalizedDeals(
108 $this,
109 $this->serviceName,
110 'finalizedDeals',
111 [
112 'methods' => [
113 'list' => [
114 'path' => 'v1/{+parent}/finalizedDeals',
115 'httpMethod' => 'GET',
116 'parameters' => [
117 'parent' => [
118 'location' => 'path',
119 'type' => 'string',
120 'required' => true,
121 ],
122 'filter' => [
123 'location' => 'query',
124 'type' => 'string',
125 ],
126 'orderBy' => [
127 'location' => 'query',
128 'type' => 'string',
129 ],
130 'pageSize' => [
131 'location' => 'query',
132 'type' => 'integer',
133 ],
134 'pageToken' => [
135 'location' => 'query',
136 'type' => 'string',
137 ],
138 ],
139 ],
140 ]
141 ]
142 );
143 $this->buyers_auctionPackages = new AuthorizedBuyersMarketplace\Resource\BuyersAuctionPackages(
144 $this,
145 $this->serviceName,
146 'auctionPackages',
147 [
148 'methods' => [
149 'get' => [
150 'path' => 'v1/{+name}',
151 'httpMethod' => 'GET',
152 'parameters' => [
153 'name' => [
154 'location' => 'path',
155 'type' => 'string',
156 'required' => true,
157 ],
158 ],
159 ],'list' => [
160 'path' => 'v1/{+parent}/auctionPackages',
161 'httpMethod' => 'GET',
162 'parameters' => [
163 'parent' => [
164 'location' => 'path',
165 'type' => 'string',
166 'required' => true,
167 ],
168 'filter' => [
169 'location' => 'query',
170 'type' => 'string',
171 ],
172 'orderBy' => [
173 'location' => 'query',
174 'type' => 'string',
175 ],
176 'pageSize' => [
177 'location' => 'query',
178 'type' => 'integer',
179 ],
180 'pageToken' => [
181 'location' => 'query',
182 'type' => 'string',
183 ],
184 ],
185 ],'subscribe' => [
186 'path' => 'v1/{+name}:subscribe',
187 'httpMethod' => 'POST',
188 'parameters' => [
189 'name' => [
190 'location' => 'path',
191 'type' => 'string',
192 'required' => true,
193 ],
194 ],
195 ],'subscribeClients' => [
196 'path' => 'v1/{+auctionPackage}:subscribeClients',
197 'httpMethod' => 'POST',
198 'parameters' => [
199 'auctionPackage' => [
200 'location' => 'path',
201 'type' => 'string',
202 'required' => true,
203 ],
204 ],
205 ],'unsubscribe' => [
206 'path' => 'v1/{+name}:unsubscribe',
207 'httpMethod' => 'POST',
208 'parameters' => [
209 'name' => [
210 'location' => 'path',
211 'type' => 'string',
212 'required' => true,
213 ],
214 ],
215 ],'unsubscribeClients' => [
216 'path' => 'v1/{+auctionPackage}:unsubscribeClients',
217 'httpMethod' => 'POST',
218 'parameters' => [
219 'auctionPackage' => [
220 'location' => 'path',
221 'type' => 'string',
222 'required' => true,
223 ],
224 ],
225 ],
226 ]
227 ]
228 );
229 $this->buyers_clients = new AuthorizedBuyersMarketplace\Resource\BuyersClients(
230 $this,
231 $this->serviceName,
232 'clients',
233 [
234 'methods' => [
235 'activate' => [
236 'path' => 'v1/{+name}:activate',
237 'httpMethod' => 'POST',
238 'parameters' => [
239 'name' => [
240 'location' => 'path',
241 'type' => 'string',
242 'required' => true,
243 ],
244 ],
245 ],'create' => [
246 'path' => 'v1/{+parent}/clients',
247 'httpMethod' => 'POST',
248 'parameters' => [
249 'parent' => [
250 'location' => 'path',
251 'type' => 'string',
252 'required' => true,
253 ],
254 ],
255 ],'deactivate' => [
256 'path' => 'v1/{+name}:deactivate',
257 'httpMethod' => 'POST',
258 'parameters' => [
259 'name' => [
260 'location' => 'path',
261 'type' => 'string',
262 'required' => true,
263 ],
264 ],
265 ],'get' => [
266 'path' => 'v1/{+name}',
267 'httpMethod' => 'GET',
268 'parameters' => [
269 'name' => [
270 'location' => 'path',
271 'type' => 'string',
272 'required' => true,
273 ],
274 ],
275 ],'list' => [
276 'path' => 'v1/{+parent}/clients',
277 'httpMethod' => 'GET',
278 'parameters' => [
279 'parent' => [
280 'location' => 'path',
281 'type' => 'string',
282 'required' => true,
283 ],
284 'filter' => [
285 'location' => 'query',
286 'type' => 'string',
287 ],
288 'pageSize' => [
289 'location' => 'query',
290 'type' => 'integer',
291 ],
292 'pageToken' => [
293 'location' => 'query',
294 'type' => 'string',
295 ],
296 ],
297 ],'patch' => [
298 'path' => 'v1/{+name}',
299 'httpMethod' => 'PATCH',
300 'parameters' => [
301 'name' => [
302 'location' => 'path',
303 'type' => 'string',
304 'required' => true,
305 ],
306 'updateMask' => [
307 'location' => 'query',
308 'type' => 'string',
309 ],
310 ],
311 ],
312 ]
313 ]
314 );
315 $this->buyers_clients_users = new AuthorizedBuyersMarketplace\Resource\BuyersClientsUsers(
316 $this,
317 $this->serviceName,
318 'users',
319 [
320 'methods' => [
321 'activate' => [
322 'path' => 'v1/{+name}:activate',
323 'httpMethod' => 'POST',
324 'parameters' => [
325 'name' => [
326 'location' => 'path',
327 'type' => 'string',
328 'required' => true,
329 ],
330 ],
331 ],'create' => [
332 'path' => 'v1/{+parent}/users',
333 'httpMethod' => 'POST',
334 'parameters' => [
335 'parent' => [
336 'location' => 'path',
337 'type' => 'string',
338 'required' => true,
339 ],
340 ],
341 ],'deactivate' => [
342 'path' => 'v1/{+name}:deactivate',
343 'httpMethod' => 'POST',
344 'parameters' => [
345 'name' => [
346 'location' => 'path',
347 'type' => 'string',
348 'required' => true,
349 ],
350 ],
351 ],'delete' => [
352 'path' => 'v1/{+name}',
353 'httpMethod' => 'DELETE',
354 'parameters' => [
355 'name' => [
356 'location' => 'path',
357 'type' => 'string',
358 'required' => true,
359 ],
360 ],
361 ],'get' => [
362 'path' => 'v1/{+name}',
363 'httpMethod' => 'GET',
364 'parameters' => [
365 'name' => [
366 'location' => 'path',
367 'type' => 'string',
368 'required' => true,
369 ],
370 ],
371 ],'list' => [
372 'path' => 'v1/{+parent}/users',
373 'httpMethod' => 'GET',
374 'parameters' => [
375 'parent' => [
376 'location' => 'path',
377 'type' => 'string',
378 'required' => true,
379 ],
380 'pageSize' => [
381 'location' => 'query',
382 'type' => 'integer',
383 ],
384 'pageToken' => [
385 'location' => 'query',
386 'type' => 'string',
387 ],
388 ],
389 ],
390 ]
391 ]
392 );
393 $this->buyers_finalizedDeals = new AuthorizedBuyersMarketplace\Resource\BuyersFinalizedDeals(
394 $this,
395 $this->serviceName,
396 'finalizedDeals',
397 [
398 'methods' => [
399 'addCreative' => [
400 'path' => 'v1/{+deal}:addCreative',
401 'httpMethod' => 'POST',
402 'parameters' => [
403 'deal' => [
404 'location' => 'path',
405 'type' => 'string',
406 'required' => true,
407 ],
408 ],
409 ],'get' => [
410 'path' => 'v1/{+name}',
411 'httpMethod' => 'GET',
412 'parameters' => [
413 'name' => [
414 'location' => 'path',
415 'type' => 'string',
416 'required' => true,
417 ],
418 ],
419 ],'list' => [
420 'path' => 'v1/{+parent}/finalizedDeals',
421 'httpMethod' => 'GET',
422 'parameters' => [
423 'parent' => [
424 'location' => 'path',
425 'type' => 'string',
426 'required' => true,
427 ],
428 'filter' => [
429 'location' => 'query',
430 'type' => 'string',
431 ],
432 'orderBy' => [
433 'location' => 'query',
434 'type' => 'string',
435 ],
436 'pageSize' => [
437 'location' => 'query',
438 'type' => 'integer',
439 ],
440 'pageToken' => [
441 'location' => 'query',
442 'type' => 'string',
443 ],
444 ],
445 ],'pause' => [
446 'path' => 'v1/{+name}:pause',
447 'httpMethod' => 'POST',
448 'parameters' => [
449 'name' => [
450 'location' => 'path',
451 'type' => 'string',
452 'required' => true,
453 ],
454 ],
455 ],'resume' => [
456 'path' => 'v1/{+name}:resume',
457 'httpMethod' => 'POST',
458 'parameters' => [
459 'name' => [
460 'location' => 'path',
461 'type' => 'string',
462 'required' => true,
463 ],
464 ],
465 ],'setReadyToServe' => [
466 'path' => 'v1/{+deal}:setReadyToServe',
467 'httpMethod' => 'POST',
468 'parameters' => [
469 'deal' => [
470 'location' => 'path',
471 'type' => 'string',
472 'required' => true,
473 ],
474 ],
475 ],
476 ]
477 ]
478 );
479 $this->buyers_proposals = new AuthorizedBuyersMarketplace\Resource\BuyersProposals(
480 $this,
481 $this->serviceName,
482 'proposals',
483 [
484 'methods' => [
485 'accept' => [
486 'path' => 'v1/{+name}:accept',
487 'httpMethod' => 'POST',
488 'parameters' => [
489 'name' => [
490 'location' => 'path',
491 'type' => 'string',
492 'required' => true,
493 ],
494 ],
495 ],'addNote' => [
496 'path' => 'v1/{+proposal}:addNote',
497 'httpMethod' => 'POST',
498 'parameters' => [
499 'proposal' => [
500 'location' => 'path',
501 'type' => 'string',
502 'required' => true,
503 ],
504 ],
505 ],'cancelNegotiation' => [
506 'path' => 'v1/{+proposal}:cancelNegotiation',
507 'httpMethod' => 'POST',
508 'parameters' => [
509 'proposal' => [
510 'location' => 'path',
511 'type' => 'string',
512 'required' => true,
513 ],
514 ],
515 ],'get' => [
516 'path' => 'v1/{+name}',
517 'httpMethod' => 'GET',
518 'parameters' => [
519 'name' => [
520 'location' => 'path',
521 'type' => 'string',
522 'required' => true,
523 ],
524 ],
525 ],'list' => [
526 'path' => 'v1/{+parent}/proposals',
527 'httpMethod' => 'GET',
528 'parameters' => [
529 'parent' => [
530 'location' => 'path',
531 'type' => 'string',
532 'required' => true,
533 ],
534 'filter' => [
535 'location' => 'query',
536 'type' => 'string',
537 ],
538 'pageSize' => [
539 'location' => 'query',
540 'type' => 'integer',
541 ],
542 'pageToken' => [
543 'location' => 'query',
544 'type' => 'string',
545 ],
546 ],
547 ],'patch' => [
548 'path' => 'v1/{+name}',
549 'httpMethod' => 'PATCH',
550 'parameters' => [
551 'name' => [
552 'location' => 'path',
553 'type' => 'string',
554 'required' => true,
555 ],
556 'updateMask' => [
557 'location' => 'query',
558 'type' => 'string',
559 ],
560 ],
561 ],'sendRfp' => [
562 'path' => 'v1/{+buyer}/proposals:sendRfp',
563 'httpMethod' => 'POST',
564 'parameters' => [
565 'buyer' => [
566 'location' => 'path',
567 'type' => 'string',
568 'required' => true,
569 ],
570 ],
571 ],
572 ]
573 ]
574 );
575 $this->buyers_proposals_deals = new AuthorizedBuyersMarketplace\Resource\BuyersProposalsDeals(
576 $this,
577 $this->serviceName,
578 'deals',
579 [
580 'methods' => [
581 'batchUpdate' => [
582 'path' => 'v1/{+parent}/deals:batchUpdate',
583 'httpMethod' => 'POST',
584 'parameters' => [
585 'parent' => [
586 'location' => 'path',
587 'type' => 'string',
588 'required' => true,
589 ],
590 ],
591 ],'get' => [
592 'path' => 'v1/{+name}',
593 'httpMethod' => 'GET',
594 'parameters' => [
595 'name' => [
596 'location' => 'path',
597 'type' => 'string',
598 'required' => true,
599 ],
600 ],
601 ],'list' => [
602 'path' => 'v1/{+parent}/deals',
603 'httpMethod' => 'GET',
604 'parameters' => [
605 'parent' => [
606 'location' => 'path',
607 'type' => 'string',
608 'required' => true,
609 ],
610 'pageSize' => [
611 'location' => 'query',
612 'type' => 'integer',
613 ],
614 'pageToken' => [
615 'location' => 'query',
616 'type' => 'string',
617 ],
618 ],
619 ],'patch' => [
620 'path' => 'v1/{+name}',
621 'httpMethod' => 'PATCH',
622 'parameters' => [
623 'name' => [
624 'location' => 'path',
625 'type' => 'string',
626 'required' => true,
627 ],
628 'updateMask' => [
629 'location' => 'query',
630 'type' => 'string',
631 ],
632 ],
633 ],
634 ]
635 ]
636 );
637 $this->buyers_publisherProfiles = new AuthorizedBuyersMarketplace\Resource\BuyersPublisherProfiles(
638 $this,
639 $this->serviceName,
640 'publisherProfiles',
641 [
642 'methods' => [
643 'get' => [
644 'path' => 'v1/{+name}',
645 'httpMethod' => 'GET',
646 'parameters' => [
647 'name' => [
648 'location' => 'path',
649 'type' => 'string',
650 'required' => true,
651 ],
652 ],
653 ],'list' => [
654 'path' => 'v1/{+parent}/publisherProfiles',
655 'httpMethod' => 'GET',
656 'parameters' => [
657 'parent' => [
658 'location' => 'path',
659 'type' => 'string',
660 'required' => true,
661 ],
662 'filter' => [
663 'location' => 'query',
664 'type' => 'string',
665 ],
666 'pageSize' => [
667 'location' => 'query',
668 'type' => 'integer',
669 ],
670 'pageToken' => [
671 'location' => 'query',
672 'type' => 'string',
673 ],
674 ],
675 ],
676 ]
677 ]
678 );
679 }
680}
681
682// Adding a class alias for backwards compatibility with the previous class name.
683class_alias(AuthorizedBuyersMarketplace::class, 'Google_Service_AuthorizedBuyersMarketplace');
Note: See TracBrowser for help on using the repository browser.