[e3d4e0a] | 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 | namespace Google\Service\DisplayVideo\Resource;
|
---|
| 19 |
|
---|
| 20 | use Google\Service\DisplayVideo\FloodlightActivity;
|
---|
| 21 | use Google\Service\DisplayVideo\ListFloodlightActivitiesResponse;
|
---|
| 22 |
|
---|
| 23 | /**
|
---|
| 24 | * The "floodlightActivities" collection of methods.
|
---|
| 25 | * Typical usage is:
|
---|
| 26 | * <code>
|
---|
| 27 | * $displayvideoService = new Google\Service\DisplayVideo(...);
|
---|
| 28 | * $floodlightActivities = $displayvideoService->floodlightGroups_floodlightActivities;
|
---|
| 29 | * </code>
|
---|
| 30 | */
|
---|
| 31 | class FloodlightGroupsFloodlightActivities extends \Google\Service\Resource
|
---|
| 32 | {
|
---|
| 33 | /**
|
---|
| 34 | * Gets a Floodlight activity. (floodlightActivities.get)
|
---|
| 35 | *
|
---|
| 36 | * @param string $floodlightGroupId Required. The ID of the parent Floodlight
|
---|
| 37 | * group to which the requested Floodlight activity belongs.
|
---|
| 38 | * @param string $floodlightActivityId Required. The ID of the Floodlight
|
---|
| 39 | * activity to fetch.
|
---|
| 40 | * @param array $optParams Optional parameters.
|
---|
| 41 | *
|
---|
| 42 | * @opt_param string partnerId Required. The ID of the partner through which the
|
---|
| 43 | * Floodlight activity is being accessed.
|
---|
| 44 | * @return FloodlightActivity
|
---|
| 45 | * @throws \Google\Service\Exception
|
---|
| 46 | */
|
---|
| 47 | public function get($floodlightGroupId, $floodlightActivityId, $optParams = [])
|
---|
| 48 | {
|
---|
| 49 | $params = ['floodlightGroupId' => $floodlightGroupId, 'floodlightActivityId' => $floodlightActivityId];
|
---|
| 50 | $params = array_merge($params, $optParams);
|
---|
| 51 | return $this->call('get', [$params], FloodlightActivity::class);
|
---|
| 52 | }
|
---|
| 53 | /**
|
---|
| 54 | * Lists Floodlight activities in a Floodlight group.
|
---|
| 55 | * (floodlightActivities.listFloodlightGroupsFloodlightActivities)
|
---|
| 56 | *
|
---|
| 57 | * @param string $floodlightGroupId Required. The ID of the parent Floodlight
|
---|
| 58 | * group to which the requested Floodlight activities belong.
|
---|
| 59 | * @param array $optParams Optional parameters.
|
---|
| 60 | *
|
---|
| 61 | * @opt_param string orderBy Optional. Field by which to sort the list.
|
---|
| 62 | * Acceptable values are: * `displayName` (default) * `floodlightActivityId` The
|
---|
| 63 | * default sorting order is ascending. To specify descending order for a field,
|
---|
| 64 | * a suffix "desc" should be added to the field name. Example: `displayName
|
---|
| 65 | * desc`.
|
---|
| 66 | * @opt_param int pageSize Optional. Requested page size. Must be between `1`
|
---|
| 67 | * and `100`. If unspecified will default to `100`. Returns error code
|
---|
| 68 | * `INVALID_ARGUMENT` if an invalid value is specified.
|
---|
| 69 | * @opt_param string pageToken Optional. A token identifying a page of results
|
---|
| 70 | * the server should return. Typically, this is the value of next_page_token
|
---|
| 71 | * returned from the previous call to `ListFloodlightActivities` method. If not
|
---|
| 72 | * specified, the first page of results will be returned.
|
---|
| 73 | * @opt_param string partnerId Required. The ID of the partner through which the
|
---|
| 74 | * Floodlight activities are being accessed.
|
---|
| 75 | * @return ListFloodlightActivitiesResponse
|
---|
| 76 | * @throws \Google\Service\Exception
|
---|
| 77 | */
|
---|
| 78 | public function listFloodlightGroupsFloodlightActivities($floodlightGroupId, $optParams = [])
|
---|
| 79 | {
|
---|
| 80 | $params = ['floodlightGroupId' => $floodlightGroupId];
|
---|
| 81 | $params = array_merge($params, $optParams);
|
---|
| 82 | return $this->call('list', [$params], ListFloodlightActivitiesResponse::class);
|
---|
| 83 | }
|
---|
| 84 | }
|
---|
| 85 |
|
---|
| 86 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 87 | class_alias(FloodlightGroupsFloodlightActivities::class, 'Google_Service_DisplayVideo_Resource_FloodlightGroupsFloodlightActivities');
|
---|