source: vendor/google/apiclient-services/src/Dns/Resource/Changes.php@ f9c482b

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

Upload new project files

  • Property mode set to 100644
File size: 4.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\Dns\Resource;
19
20use Google\Service\Dns\Change;
21use Google\Service\Dns\ChangesListResponse;
22
23/**
24 * The "changes" collection of methods.
25 * Typical usage is:
26 * <code>
27 * $dnsService = new Google\Service\Dns(...);
28 * $changes = $dnsService->changes;
29 * </code>
30 */
31class Changes extends \Google\Service\Resource
32{
33 /**
34 * Atomically updates the ResourceRecordSet collection. (changes.create)
35 *
36 * @param string $project Identifies the project addressed by this request.
37 * @param string $managedZone Identifies the managed zone addressed by this
38 * request. Can be the managed zone name or ID.
39 * @param Change $postBody
40 * @param array $optParams Optional parameters.
41 *
42 * @opt_param string clientOperationId For mutating operation requests only. An
43 * optional identifier specified by the client. Must be unique for operation
44 * resources in the Operations collection.
45 * @return Change
46 * @throws \Google\Service\Exception
47 */
48 public function create($project, $managedZone, Change $postBody, $optParams = [])
49 {
50 $params = ['project' => $project, 'managedZone' => $managedZone, 'postBody' => $postBody];
51 $params = array_merge($params, $optParams);
52 return $this->call('create', [$params], Change::class);
53 }
54 /**
55 * Fetches the representation of an existing Change. (changes.get)
56 *
57 * @param string $project Identifies the project addressed by this request.
58 * @param string $managedZone Identifies the managed zone addressed by this
59 * request. Can be the managed zone name or ID.
60 * @param string $changeId The identifier of the requested change, from a
61 * previous ResourceRecordSetsChangeResponse.
62 * @param array $optParams Optional parameters.
63 *
64 * @opt_param string clientOperationId For mutating operation requests only. An
65 * optional identifier specified by the client. Must be unique for operation
66 * resources in the Operations collection.
67 * @return Change
68 * @throws \Google\Service\Exception
69 */
70 public function get($project, $managedZone, $changeId, $optParams = [])
71 {
72 $params = ['project' => $project, 'managedZone' => $managedZone, 'changeId' => $changeId];
73 $params = array_merge($params, $optParams);
74 return $this->call('get', [$params], Change::class);
75 }
76 /**
77 * Enumerates Changes to a ResourceRecordSet collection. (changes.listChanges)
78 *
79 * @param string $project Identifies the project addressed by this request.
80 * @param string $managedZone Identifies the managed zone addressed by this
81 * request. Can be the managed zone name or ID.
82 * @param array $optParams Optional parameters.
83 *
84 * @opt_param int maxResults Optional. Maximum number of results to be returned.
85 * If unspecified, the server decides how many results to return.
86 * @opt_param string pageToken Optional. A tag returned by a previous list
87 * request that was truncated. Use this parameter to continue a previous list
88 * request.
89 * @opt_param string sortBy Sorting criterion. The only supported value is
90 * change sequence.
91 * @opt_param string sortOrder Sorting order direction: 'ascending' or
92 * 'descending'.
93 * @return ChangesListResponse
94 * @throws \Google\Service\Exception
95 */
96 public function listChanges($project, $managedZone, $optParams = [])
97 {
98 $params = ['project' => $project, 'managedZone' => $managedZone];
99 $params = array_merge($params, $optParams);
100 return $this->call('list', [$params], ChangesListResponse::class);
101 }
102}
103
104// Adding a class alias for backwards compatibility with the previous class name.
105class_alias(Changes::class, 'Google_Service_Dns_Resource_Changes');
Note: See TracBrowser for help on using the repository browser.