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