source: vendor/google/apiclient-services/src/DisplayVideo/Resource/InventorySourceGroupsAssignedInventorySources.php

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

Upload project files

  • Property mode set to 100644
File size: 7.6 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\DisplayVideo\Resource;
19
20use Google\Service\DisplayVideo\AssignedInventorySource;
21use Google\Service\DisplayVideo\BulkEditAssignedInventorySourcesRequest;
22use Google\Service\DisplayVideo\BulkEditAssignedInventorySourcesResponse;
23use Google\Service\DisplayVideo\DisplayvideoEmpty;
24use Google\Service\DisplayVideo\ListAssignedInventorySourcesResponse;
25
26/**
27 * The "assignedInventorySources" collection of methods.
28 * Typical usage is:
29 * <code>
30 * $displayvideoService = new Google\Service\DisplayVideo(...);
31 * $assignedInventorySources = $displayvideoService->inventorySourceGroups_assignedInventorySources;
32 * </code>
33 */
34class InventorySourceGroupsAssignedInventorySources extends \Google\Service\Resource
35{
36 /**
37 * Bulk edits multiple assignments between inventory sources and a single
38 * inventory source group. The operation will delete the assigned inventory
39 * sources provided in
40 * BulkEditAssignedInventorySourcesRequest.deleted_assigned_inventory_sources
41 * and then create the assigned inventory sources provided in
42 * BulkEditAssignedInventorySourcesRequest.created_assigned_inventory_sources.
43 * (assignedInventorySources.bulkEdit)
44 *
45 * @param string $inventorySourceGroupId Required. The ID of the inventory
46 * source group to which the assignments are assigned.
47 * @param BulkEditAssignedInventorySourcesRequest $postBody
48 * @param array $optParams Optional parameters.
49 * @return BulkEditAssignedInventorySourcesResponse
50 * @throws \Google\Service\Exception
51 */
52 public function bulkEdit($inventorySourceGroupId, BulkEditAssignedInventorySourcesRequest $postBody, $optParams = [])
53 {
54 $params = ['inventorySourceGroupId' => $inventorySourceGroupId, 'postBody' => $postBody];
55 $params = array_merge($params, $optParams);
56 return $this->call('bulkEdit', [$params], BulkEditAssignedInventorySourcesResponse::class);
57 }
58 /**
59 * Creates an assignment between an inventory source and an inventory source
60 * group. (assignedInventorySources.create)
61 *
62 * @param string $inventorySourceGroupId Required. The ID of the inventory
63 * source group to which the assignment will be assigned.
64 * @param AssignedInventorySource $postBody
65 * @param array $optParams Optional parameters.
66 *
67 * @opt_param string advertiserId The ID of the advertiser that owns the parent
68 * inventory source group. The parent partner will not have access to this
69 * assigned inventory source.
70 * @opt_param string partnerId The ID of the partner that owns the parent
71 * inventory source group. Only this partner will have write access to this
72 * assigned inventory source.
73 * @return AssignedInventorySource
74 * @throws \Google\Service\Exception
75 */
76 public function create($inventorySourceGroupId, AssignedInventorySource $postBody, $optParams = [])
77 {
78 $params = ['inventorySourceGroupId' => $inventorySourceGroupId, 'postBody' => $postBody];
79 $params = array_merge($params, $optParams);
80 return $this->call('create', [$params], AssignedInventorySource::class);
81 }
82 /**
83 * Deletes the assignment between an inventory source and an inventory source
84 * group. (assignedInventorySources.delete)
85 *
86 * @param string $inventorySourceGroupId Required. The ID of the inventory
87 * source group to which this assignment is assigned.
88 * @param string $assignedInventorySourceId Required. The ID of the assigned
89 * inventory source to delete.
90 * @param array $optParams Optional parameters.
91 *
92 * @opt_param string advertiserId The ID of the advertiser that owns the parent
93 * inventory source group. The parent partner does not have access to this
94 * assigned inventory source.
95 * @opt_param string partnerId The ID of the partner that owns the parent
96 * inventory source group. Only this partner has write access to this assigned
97 * inventory source.
98 * @return DisplayvideoEmpty
99 * @throws \Google\Service\Exception
100 */
101 public function delete($inventorySourceGroupId, $assignedInventorySourceId, $optParams = [])
102 {
103 $params = ['inventorySourceGroupId' => $inventorySourceGroupId, 'assignedInventorySourceId' => $assignedInventorySourceId];
104 $params = array_merge($params, $optParams);
105 return $this->call('delete', [$params], DisplayvideoEmpty::class);
106 }
107 /**
108 * Lists inventory sources assigned to an inventory source group.
109 * (assignedInventorySources.listInventorySourceGroupsAssignedInventorySources)
110 *
111 * @param string $inventorySourceGroupId Required. The ID of the inventory
112 * source group to which these assignments are assigned.
113 * @param array $optParams Optional parameters.
114 *
115 * @opt_param string advertiserId The ID of the advertiser that has access to
116 * the assignment. If the parent inventory source group is partner-owned, only
117 * advertisers to which the parent group is explicitly shared can access the
118 * assigned inventory source.
119 * @opt_param string filter Allows filtering by assigned inventory source
120 * fields. Supported syntax: * Filter expressions are made up of one or more
121 * restrictions. * Restrictions can be combined by the `OR` logical operator. *
122 * A restriction has the form of `{field} {operator} {value}`. * All fields must
123 * use the `EQUALS (=)` operator. Supported fields: *
124 * `assignedInventorySourceId` The length of this field should be no more than
125 * 500 characters. Reference our [filter `LIST` requests](/display-
126 * video/api/guides/how-tos/filters) guide for more information.
127 * @opt_param string orderBy Field by which to sort the list. Acceptable values
128 * are: * `assignedInventorySourceId` (default) The default sorting order is
129 * ascending. To specify descending order for a field, a suffix " desc" should
130 * be added to the field name. Example: `assignedInventorySourceId desc`.
131 * @opt_param int pageSize Requested page size. Must be between `1` and `100`.
132 * If unspecified will default to `100`. Returns error code `INVALID_ARGUMENT`
133 * if an invalid value is specified.
134 * @opt_param string pageToken A token identifying a page of results the server
135 * should return. Typically, this is the value of next_page_token returned from
136 * the previous call to `ListAssignedInventorySources` method. If not specified,
137 * the first page of results will be returned.
138 * @opt_param string partnerId The ID of the partner that has access to the
139 * assignment. If the parent inventory source group is advertiser-owned, the
140 * assignment cannot be accessed via a partner.
141 * @return ListAssignedInventorySourcesResponse
142 * @throws \Google\Service\Exception
143 */
144 public function listInventorySourceGroupsAssignedInventorySources($inventorySourceGroupId, $optParams = [])
145 {
146 $params = ['inventorySourceGroupId' => $inventorySourceGroupId];
147 $params = array_merge($params, $optParams);
148 return $this->call('list', [$params], ListAssignedInventorySourcesResponse::class);
149 }
150}
151
152// Adding a class alias for backwards compatibility with the previous class name.
153class_alias(InventorySourceGroupsAssignedInventorySources::class, 'Google_Service_DisplayVideo_Resource_InventorySourceGroupsAssignedInventorySources');
Note: See TracBrowser for help on using the repository browser.