source: vendor/google/apiclient-services/src/AuthorizedBuyersMarketplace/Resource/BuyersPublisherProfiles.php

Last change on this file was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 2 weeks ago

Upload project files

  • Property mode set to 100644
File size: 3.2 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\AuthorizedBuyersMarketplace\Resource;
19
20use Google\Service\AuthorizedBuyersMarketplace\ListPublisherProfilesResponse;
21use Google\Service\AuthorizedBuyersMarketplace\PublisherProfile;
22
23/**
24 * The "publisherProfiles" collection of methods.
25 * Typical usage is:
26 * <code>
27 * $authorizedbuyersmarketplaceService = new Google\Service\AuthorizedBuyersMarketplace(...);
28 * $publisherProfiles = $authorizedbuyersmarketplaceService->buyers_publisherProfiles;
29 * </code>
30 */
31class BuyersPublisherProfiles extends \Google\Service\Resource
32{
33 /**
34 * Gets the requested publisher profile by name. (publisherProfiles.get)
35 *
36 * @param string $name Required. Name of the publisher profile. Format:
37 * `buyers/{buyerId}/publisherProfiles/{publisherProfileId}`
38 * @param array $optParams Optional parameters.
39 * @return PublisherProfile
40 * @throws \Google\Service\Exception
41 */
42 public function get($name, $optParams = [])
43 {
44 $params = ['name' => $name];
45 $params = array_merge($params, $optParams);
46 return $this->call('get', [$params], PublisherProfile::class);
47 }
48 /**
49 * Lists publisher profiles. The returned publisher profiles aren't in any
50 * defined order. The order of the results might change. A new publisher profile
51 * can appear in any place in the list of returned results.
52 * (publisherProfiles.listBuyersPublisherProfiles)
53 *
54 * @param string $parent Required. Parent that owns the collection of publisher
55 * profiles Format: `buyers/{buyerId}`
56 * @param array $optParams Optional parameters.
57 *
58 * @opt_param string filter Optional query string using the [Cloud API list
59 * filtering] (https://developers.google.com/authorized-buyers/apis/guides/list-
60 * filters) syntax.
61 * @opt_param int pageSize Requested page size. The server may return fewer
62 * results than requested. If requested more than 500, the server will return
63 * 500 results per page. If unspecified, the server will pick a default page
64 * size of 100.
65 * @opt_param string pageToken The page token as returned from a previous
66 * ListPublisherProfilesResponse.
67 * @return ListPublisherProfilesResponse
68 * @throws \Google\Service\Exception
69 */
70 public function listBuyersPublisherProfiles($parent, $optParams = [])
71 {
72 $params = ['parent' => $parent];
73 $params = array_merge($params, $optParams);
74 return $this->call('list', [$params], ListPublisherProfilesResponse::class);
75 }
76}
77
78// Adding a class alias for backwards compatibility with the previous class name.
79class_alias(BuyersPublisherProfiles::class, 'Google_Service_AuthorizedBuyersMarketplace_Resource_BuyersPublisherProfiles');
Note: See TracBrowser for help on using the repository browser.