source: vendor/google/apiclient-services/src/Dns/Resource/ResourceRecordSets.php

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

Upload project files

  • Property mode set to 100644
File size: 6.7 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\ResourceRecordSet;
21use Google\Service\Dns\ResourceRecordSetsDeleteResponse;
22use Google\Service\Dns\ResourceRecordSetsListResponse;
23
24/**
25 * The "resourceRecordSets" collection of methods.
26 * Typical usage is:
27 * <code>
28 * $dnsService = new Google\Service\Dns(...);
29 * $resourceRecordSets = $dnsService->resourceRecordSets;
30 * </code>
31 */
32class ResourceRecordSets extends \Google\Service\Resource
33{
34 /**
35 * Creates a new ResourceRecordSet. (resourceRecordSets.create)
36 *
37 * @param string $project Identifies the project addressed by this request.
38 * @param string $managedZone Identifies the managed zone addressed by this
39 * request. Can be the managed zone name or ID.
40 * @param ResourceRecordSet $postBody
41 * @param array $optParams Optional parameters.
42 *
43 * @opt_param string clientOperationId For mutating operation requests only. An
44 * optional identifier specified by the client. Must be unique for operation
45 * resources in the Operations collection.
46 * @return ResourceRecordSet
47 * @throws \Google\Service\Exception
48 */
49 public function create($project, $managedZone, ResourceRecordSet $postBody, $optParams = [])
50 {
51 $params = ['project' => $project, 'managedZone' => $managedZone, 'postBody' => $postBody];
52 $params = array_merge($params, $optParams);
53 return $this->call('create', [$params], ResourceRecordSet::class);
54 }
55 /**
56 * Deletes a previously created ResourceRecordSet. (resourceRecordSets.delete)
57 *
58 * @param string $project Identifies the project addressed by this request.
59 * @param string $managedZone Identifies the managed zone addressed by this
60 * request. Can be the managed zone name or ID.
61 * @param string $name Fully qualified domain name.
62 * @param string $type RRSet type.
63 * @param array $optParams Optional parameters.
64 *
65 * @opt_param string clientOperationId For mutating operation requests only. An
66 * optional identifier specified by the client. Must be unique for operation
67 * resources in the Operations collection.
68 * @return ResourceRecordSetsDeleteResponse
69 * @throws \Google\Service\Exception
70 */
71 public function delete($project, $managedZone, $name, $type, $optParams = [])
72 {
73 $params = ['project' => $project, 'managedZone' => $managedZone, 'name' => $name, 'type' => $type];
74 $params = array_merge($params, $optParams);
75 return $this->call('delete', [$params], ResourceRecordSetsDeleteResponse::class);
76 }
77 /**
78 * Fetches the representation of an existing ResourceRecordSet.
79 * (resourceRecordSets.get)
80 *
81 * @param string $project Identifies the project addressed by this request.
82 * @param string $managedZone Identifies the managed zone addressed by this
83 * request. Can be the managed zone name or ID.
84 * @param string $name Fully qualified domain name.
85 * @param string $type RRSet type.
86 * @param array $optParams Optional parameters.
87 *
88 * @opt_param string clientOperationId For mutating operation requests only. An
89 * optional identifier specified by the client. Must be unique for operation
90 * resources in the Operations collection.
91 * @return ResourceRecordSet
92 * @throws \Google\Service\Exception
93 */
94 public function get($project, $managedZone, $name, $type, $optParams = [])
95 {
96 $params = ['project' => $project, 'managedZone' => $managedZone, 'name' => $name, 'type' => $type];
97 $params = array_merge($params, $optParams);
98 return $this->call('get', [$params], ResourceRecordSet::class);
99 }
100 /**
101 * Enumerates ResourceRecordSets that you have created but not yet deleted.
102 * (resourceRecordSets.listResourceRecordSets)
103 *
104 * @param string $project Identifies the project addressed by this request.
105 * @param string $managedZone Identifies the managed zone addressed by this
106 * request. Can be the managed zone name or ID.
107 * @param array $optParams Optional parameters.
108 *
109 * @opt_param int maxResults Optional. Maximum number of results to be returned.
110 * If unspecified, the server decides how many results to return.
111 * @opt_param string name Restricts the list to return only records with this
112 * fully qualified domain name.
113 * @opt_param string pageToken Optional. A tag returned by a previous list
114 * request that was truncated. Use this parameter to continue a previous list
115 * request.
116 * @opt_param string type Restricts the list to return only records of this
117 * type. If present, the "name" parameter must also be present.
118 * @return ResourceRecordSetsListResponse
119 * @throws \Google\Service\Exception
120 */
121 public function listResourceRecordSets($project, $managedZone, $optParams = [])
122 {
123 $params = ['project' => $project, 'managedZone' => $managedZone];
124 $params = array_merge($params, $optParams);
125 return $this->call('list', [$params], ResourceRecordSetsListResponse::class);
126 }
127 /**
128 * Applies a partial update to an existing ResourceRecordSet.
129 * (resourceRecordSets.patch)
130 *
131 * @param string $project Identifies the project addressed by this request.
132 * @param string $managedZone Identifies the managed zone addressed by this
133 * request. Can be the managed zone name or ID.
134 * @param string $name Fully qualified domain name.
135 * @param string $type RRSet type.
136 * @param ResourceRecordSet $postBody
137 * @param array $optParams Optional parameters.
138 *
139 * @opt_param string clientOperationId For mutating operation requests only. An
140 * optional identifier specified by the client. Must be unique for operation
141 * resources in the Operations collection.
142 * @return ResourceRecordSet
143 * @throws \Google\Service\Exception
144 */
145 public function patch($project, $managedZone, $name, $type, ResourceRecordSet $postBody, $optParams = [])
146 {
147 $params = ['project' => $project, 'managedZone' => $managedZone, 'name' => $name, 'type' => $type, 'postBody' => $postBody];
148 $params = array_merge($params, $optParams);
149 return $this->call('patch', [$params], ResourceRecordSet::class);
150 }
151}
152
153// Adding a class alias for backwards compatibility with the previous class name.
154class_alias(ResourceRecordSets::class, 'Google_Service_Dns_Resource_ResourceRecordSets');
Note: See TracBrowser for help on using the repository browser.