[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\Dfareporting\Resource;
|
---|
| 19 |
|
---|
| 20 | use Google\Service\Dfareporting\ChangeLog;
|
---|
| 21 | use Google\Service\Dfareporting\ChangeLogsListResponse;
|
---|
| 22 |
|
---|
| 23 | /**
|
---|
| 24 | * The "changeLogs" collection of methods.
|
---|
| 25 | * Typical usage is:
|
---|
| 26 | * <code>
|
---|
| 27 | * $dfareportingService = new Google\Service\Dfareporting(...);
|
---|
| 28 | * $changeLogs = $dfareportingService->changeLogs;
|
---|
| 29 | * </code>
|
---|
| 30 | */
|
---|
| 31 | class ChangeLogs extends \Google\Service\Resource
|
---|
| 32 | {
|
---|
| 33 | /**
|
---|
| 34 | * Gets one change log by ID. (changeLogs.get)
|
---|
| 35 | *
|
---|
| 36 | * @param string $profileId User profile ID associated with this request.
|
---|
| 37 | * @param string $id Change log ID.
|
---|
| 38 | * @param array $optParams Optional parameters.
|
---|
| 39 | * @return ChangeLog
|
---|
| 40 | * @throws \Google\Service\Exception
|
---|
| 41 | */
|
---|
| 42 | public function get($profileId, $id, $optParams = [])
|
---|
| 43 | {
|
---|
| 44 | $params = ['profileId' => $profileId, 'id' => $id];
|
---|
| 45 | $params = array_merge($params, $optParams);
|
---|
| 46 | return $this->call('get', [$params], ChangeLog::class);
|
---|
| 47 | }
|
---|
| 48 | /**
|
---|
| 49 | * Retrieves a list of change logs. This method supports paging.
|
---|
| 50 | * (changeLogs.listChangeLogs)
|
---|
| 51 | *
|
---|
| 52 | * @param string $profileId User profile ID associated with this request.
|
---|
| 53 | * @param array $optParams Optional parameters.
|
---|
| 54 | *
|
---|
| 55 | * @opt_param string action Select only change logs with the specified action.
|
---|
| 56 | * @opt_param string ids Select only change logs with these IDs.
|
---|
| 57 | * @opt_param string maxChangeTime Select only change logs whose change time is
|
---|
| 58 | * before the specified maxChangeTime.The time should be formatted as an RFC3339
|
---|
| 59 | * date/time string. For example, for 10:54 PM on July 18th, 2015, in the
|
---|
| 60 | * America/New York time zone, the format is "2015-07-18T22:54:00-04:00". In
|
---|
| 61 | * other words, the year, month, day, the letter T, the hour (24-hour clock
|
---|
| 62 | * system), minute, second, and then the time zone offset.
|
---|
| 63 | * @opt_param int maxResults Maximum number of results to return.
|
---|
| 64 | * @opt_param string minChangeTime Select only change logs whose change time is
|
---|
| 65 | * after the specified minChangeTime.The time should be formatted as an RFC3339
|
---|
| 66 | * date/time string. For example, for 10:54 PM on July 18th, 2015, in the
|
---|
| 67 | * America/New York time zone, the format is "2015-07-18T22:54:00-04:00". In
|
---|
| 68 | * other words, the year, month, day, the letter T, the hour (24-hour clock
|
---|
| 69 | * system), minute, second, and then the time zone offset.
|
---|
| 70 | * @opt_param string objectIds Select only change logs with these object IDs.
|
---|
| 71 | * @opt_param string objectType Select only change logs with the specified
|
---|
| 72 | * object type.
|
---|
| 73 | * @opt_param string pageToken Value of the nextPageToken from the previous
|
---|
| 74 | * result page.
|
---|
| 75 | * @opt_param string searchString Select only change logs whose object ID, user
|
---|
| 76 | * name, old or new values match the search string.
|
---|
| 77 | * @opt_param string userProfileIds Select only change logs with these user
|
---|
| 78 | * profile IDs.
|
---|
| 79 | * @return ChangeLogsListResponse
|
---|
| 80 | * @throws \Google\Service\Exception
|
---|
| 81 | */
|
---|
| 82 | public function listChangeLogs($profileId, $optParams = [])
|
---|
| 83 | {
|
---|
| 84 | $params = ['profileId' => $profileId];
|
---|
| 85 | $params = array_merge($params, $optParams);
|
---|
| 86 | return $this->call('list', [$params], ChangeLogsListResponse::class);
|
---|
| 87 | }
|
---|
| 88 | }
|
---|
| 89 |
|
---|
| 90 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 91 | class_alias(ChangeLogs::class, 'Google_Service_Dfareporting_Resource_ChangeLogs');
|
---|