google-api-client 0.15.0 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (227) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +75 -0
  3. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  4. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +17 -35
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +0 -2
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +958 -82
  7. data/generated/google/apis/admin_directory_v1.rb +1 -1
  8. data/generated/google/apis/admin_directory_v1/classes.rb +147 -0
  9. data/generated/google/apis/admin_directory_v1/representations.rb +54 -0
  10. data/generated/google/apis/admin_directory_v1/service.rb +71 -1
  11. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  12. data/generated/google/apis/androidenterprise_v1/classes.rb +18 -19
  13. data/generated/google/apis/androidenterprise_v1/service.rb +39 -0
  14. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  15. data/generated/google/apis/androidmanagement_v1/classes.rb +12 -11
  16. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  17. data/generated/google/apis/androidpublisher_v2/classes.rb +0 -189
  18. data/generated/google/apis/androidpublisher_v2/representations.rb +0 -120
  19. data/generated/google/apis/androidpublisher_v2/service.rb +0 -35
  20. data/generated/google/apis/appengine_v1.rb +1 -1
  21. data/generated/google/apis/appengine_v1/classes.rb +1 -46
  22. data/generated/google/apis/appengine_v1/representations.rb +0 -17
  23. data/generated/google/apis/appengine_v1/service.rb +5 -1
  24. data/generated/google/apis/appengine_v1alpha.rb +1 -1
  25. data/generated/google/apis/appengine_v1alpha/classes.rb +0 -45
  26. data/generated/google/apis/appengine_v1alpha/representations.rb +0 -17
  27. data/generated/google/apis/appengine_v1alpha/service.rb +5 -1
  28. data/generated/google/apis/appengine_v1beta.rb +1 -1
  29. data/generated/google/apis/appengine_v1beta/classes.rb +5 -47
  30. data/generated/google/apis/appengine_v1beta/representations.rb +0 -17
  31. data/generated/google/apis/appengine_v1beta/service.rb +5 -1
  32. data/generated/google/apis/appengine_v1beta4.rb +1 -1
  33. data/generated/google/apis/appengine_v1beta4/classes.rb +44 -45
  34. data/generated/google/apis/appengine_v1beta4/representations.rb +16 -17
  35. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  36. data/generated/google/apis/appengine_v1beta5/classes.rb +4 -46
  37. data/generated/google/apis/appengine_v1beta5/representations.rb +0 -17
  38. data/generated/google/apis/bigquery_v2.rb +1 -1
  39. data/generated/google/apis/bigquery_v2/classes.rb +41 -24
  40. data/generated/google/apis/bigquery_v2/representations.rb +3 -0
  41. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  42. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +3 -7
  43. data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +0 -1
  44. data/generated/google/apis/calendar_v3.rb +1 -1
  45. data/generated/google/apis/calendar_v3/service.rb +15 -3
  46. data/generated/google/apis/classroom_v1.rb +4 -1
  47. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  48. data/generated/google/apis/cloudbuild_v1/classes.rb +26 -0
  49. data/generated/google/apis/cloudbuild_v1/representations.rb +14 -0
  50. data/generated/google/apis/cloudbuild_v1/service.rb +91 -0
  51. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  52. data/generated/google/apis/cloudfunctions_v1/classes.rb +482 -0
  53. data/generated/google/apis/cloudfunctions_v1/representations.rb +210 -0
  54. data/generated/google/apis/cloudfunctions_v1/service.rb +288 -0
  55. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  56. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +119 -0
  57. data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +68 -0
  58. data/generated/google/apis/cloudfunctions_v1beta2/service.rb +77 -0
  59. data/generated/google/apis/cloudiot_v1.rb +1 -1
  60. data/generated/google/apis/cloudiot_v1/service.rb +7 -3
  61. data/generated/google/apis/cloudiot_v1beta1.rb +1 -1
  62. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  63. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +2 -4
  64. data/generated/google/apis/cloudtasks_v2beta2/representations.rb +2 -2
  65. data/generated/google/apis/cloudtasks_v2beta2/service.rb +4 -14
  66. data/generated/google/apis/cloudtrace_v2.rb +1 -1
  67. data/generated/google/apis/cloudtrace_v2/classes.rb +10 -7
  68. data/generated/google/apis/cloudtrace_v2/representations.rb +2 -2
  69. data/generated/google/apis/compute_alpha.rb +1 -1
  70. data/generated/google/apis/compute_alpha/classes.rb +143 -83
  71. data/generated/google/apis/compute_alpha/representations.rb +50 -30
  72. data/generated/google/apis/compute_alpha/service.rb +171 -5
  73. data/generated/google/apis/compute_beta.rb +1 -1
  74. data/generated/google/apis/compute_beta/classes.rb +47 -43
  75. data/generated/google/apis/compute_beta/representations.rb +1 -2
  76. data/generated/google/apis/compute_beta/service.rb +60 -5
  77. data/generated/google/apis/compute_v1.rb +1 -1
  78. data/generated/google/apis/compute_v1/classes.rb +1326 -168
  79. data/generated/google/apis/compute_v1/representations.rb +402 -0
  80. data/generated/google/apis/compute_v1/service.rb +751 -5
  81. data/generated/google/apis/container_v1beta1.rb +1 -1
  82. data/generated/google/apis/content_v2.rb +1 -1
  83. data/generated/google/apis/content_v2/classes.rb +23 -16
  84. data/generated/google/apis/content_v2/service.rb +142 -162
  85. data/generated/google/apis/content_v2sandbox.rb +1 -1
  86. data/generated/google/apis/content_v2sandbox/service.rb +43 -43
  87. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  88. data/generated/google/apis/dataflow_v1b3/classes.rb +44 -35
  89. data/generated/google/apis/dataflow_v1b3/representations.rb +6 -17
  90. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  91. data/generated/google/apis/dataproc_v1beta2/classes.rb +39 -37
  92. data/generated/google/apis/dataproc_v1beta2/service.rb +30 -30
  93. data/generated/google/apis/datastore_v1.rb +1 -1
  94. data/generated/google/apis/datastore_v1/classes.rb +39 -60
  95. data/generated/google/apis/datastore_v1/representations.rb +27 -0
  96. data/generated/google/apis/datastore_v1/service.rb +34 -0
  97. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  98. data/generated/google/apis/datastore_v1beta3/classes.rb +39 -60
  99. data/generated/google/apis/datastore_v1beta3/representations.rb +27 -0
  100. data/generated/google/apis/datastore_v1beta3/service.rb +34 -0
  101. data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
  102. data/generated/google/apis/deploymentmanager_alpha/classes.rb +108 -0
  103. data/generated/google/apis/deploymentmanager_alpha/representations.rb +50 -0
  104. data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
  105. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +6 -0
  106. data/generated/google/apis/deploymentmanager_v2beta/representations.rb +1 -0
  107. data/generated/google/apis/dlp_v2beta1.rb +1 -1
  108. data/generated/google/apis/dlp_v2beta1/classes.rb +116 -10
  109. data/generated/google/apis/dlp_v2beta1/representations.rb +45 -0
  110. data/generated/google/apis/dns_v1beta2.rb +43 -0
  111. data/generated/google/apis/dns_v1beta2/classes.rb +915 -0
  112. data/generated/google/apis/dns_v1beta2/representations.rb +368 -0
  113. data/generated/google/apis/dns_v1beta2/service.rb +769 -0
  114. data/generated/google/apis/drive_v2.rb +1 -1
  115. data/generated/google/apis/drive_v2/classes.rb +6 -0
  116. data/generated/google/apis/drive_v2/representations.rb +2 -0
  117. data/generated/google/apis/drive_v2/service.rb +51 -8
  118. data/generated/google/apis/drive_v3.rb +1 -1
  119. data/generated/google/apis/drive_v3/classes.rb +6 -0
  120. data/generated/google/apis/drive_v3/representations.rb +2 -0
  121. data/generated/google/apis/drive_v3/service.rb +45 -7
  122. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  123. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +25 -0
  124. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +15 -0
  125. data/generated/google/apis/firebaseremoteconfig_v1.rb +1 -1
  126. data/generated/google/apis/firebaseremoteconfig_v1/classes.rb +21 -1
  127. data/generated/google/apis/firebaseremoteconfig_v1/representations.rb +2 -0
  128. data/generated/google/apis/firebaserules_v1.rb +1 -1
  129. data/generated/google/apis/firebaserules_v1/classes.rb +26 -0
  130. data/generated/google/apis/firebaserules_v1/representations.rb +15 -0
  131. data/generated/google/apis/firebaserules_v1/service.rb +37 -0
  132. data/generated/google/apis/firestore_v1beta1/classes.rb +29 -146
  133. data/generated/google/apis/firestore_v1beta1/representations.rb +8 -27
  134. data/generated/google/apis/firestore_v1beta1/service.rb +4 -8
  135. data/generated/google/apis/genomics_v1alpha2.rb +1 -1
  136. data/generated/google/apis/genomics_v1alpha2/classes.rb +18 -0
  137. data/generated/google/apis/genomics_v1alpha2/representations.rb +2 -0
  138. data/generated/google/apis/iam_v1.rb +1 -1
  139. data/generated/google/apis/iam_v1/classes.rb +5 -7
  140. data/generated/google/apis/language_v1.rb +1 -1
  141. data/generated/google/apis/language_v1/classes.rb +78 -0
  142. data/generated/google/apis/language_v1/representations.rb +45 -0
  143. data/generated/google/apis/language_v1/service.rb +30 -0
  144. data/generated/google/apis/language_v1beta2.rb +1 -1
  145. data/generated/google/apis/language_v1beta2/classes.rb +3 -1
  146. data/generated/google/apis/logging_v2.rb +1 -1
  147. data/generated/google/apis/logging_v2/classes.rb +9 -0
  148. data/generated/google/apis/logging_v2/representations.rb +1 -0
  149. data/generated/google/apis/logging_v2/service.rb +517 -0
  150. data/generated/google/apis/logging_v2beta1.rb +1 -1
  151. data/generated/google/apis/logging_v2beta1/classes.rb +9 -0
  152. data/generated/google/apis/logging_v2beta1/representations.rb +1 -0
  153. data/generated/google/apis/manufacturers_v1.rb +1 -1
  154. data/generated/google/apis/manufacturers_v1/classes.rb +6 -6
  155. data/generated/google/apis/manufacturers_v1/representations.rb +1 -1
  156. data/generated/google/apis/ml_v1.rb +1 -1
  157. data/generated/google/apis/ml_v1/classes.rb +22 -6
  158. data/generated/google/apis/ml_v1/service.rb +8 -2
  159. data/generated/google/apis/monitoring_v3.rb +1 -1
  160. data/generated/google/apis/monitoring_v3/classes.rb +358 -0
  161. data/generated/google/apis/monitoring_v3/representations.rb +145 -0
  162. data/generated/google/apis/monitoring_v3/service.rb +229 -0
  163. data/generated/google/apis/oslogin_v1alpha.rb +1 -1
  164. data/generated/google/apis/oslogin_v1alpha/classes.rb +13 -8
  165. data/generated/google/apis/oslogin_v1alpha/representations.rb +1 -0
  166. data/generated/google/apis/oslogin_v1alpha/service.rb +36 -1
  167. data/generated/google/apis/oslogin_v1beta.rb +1 -1
  168. data/generated/google/apis/oslogin_v1beta/classes.rb +9 -4
  169. data/generated/google/apis/oslogin_v1beta/representations.rb +1 -0
  170. data/generated/google/apis/oslogin_v1beta/service.rb +36 -1
  171. data/generated/google/apis/partners_v2.rb +1 -1
  172. data/generated/google/apis/partners_v2/classes.rb +7 -60
  173. data/generated/google/apis/partners_v2/representations.rb +1 -0
  174. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  175. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  176. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +6 -4
  177. data/generated/google/apis/script_v1.rb +2 -2
  178. data/generated/google/apis/script_v1/classes.rb +57 -51
  179. data/generated/google/apis/script_v1/representations.rb +0 -1
  180. data/generated/google/apis/script_v1/service.rb +2 -2
  181. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  182. data/generated/google/apis/servicecontrol_v1/classes.rb +5 -2
  183. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  184. data/generated/google/apis/servicemanagement_v1/classes.rb +13 -31
  185. data/generated/google/apis/serviceuser_v1.rb +1 -1
  186. data/generated/google/apis/serviceuser_v1/classes.rb +13 -31
  187. data/generated/google/apis/sheets_v4.rb +1 -1
  188. data/generated/google/apis/sheets_v4/classes.rb +1 -2
  189. data/generated/google/apis/slides_v1.rb +1 -1
  190. data/generated/google/apis/slides_v1/classes.rb +505 -11
  191. data/generated/google/apis/slides_v1/representations.rb +220 -0
  192. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  193. data/generated/google/apis/sourcerepo_v1/classes.rb +1 -1
  194. data/generated/google/apis/speech_v1.rb +1 -1
  195. data/generated/google/apis/speech_v1/classes.rb +10 -1
  196. data/generated/google/apis/speech_v1/representations.rb +1 -0
  197. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  198. data/generated/google/apis/sqladmin_v1beta4/classes.rb +127 -0
  199. data/generated/google/apis/sqladmin_v1beta4/representations.rb +63 -0
  200. data/generated/google/apis/sqladmin_v1beta4/service.rb +42 -0
  201. data/generated/google/apis/storage_v1.rb +1 -1
  202. data/generated/google/apis/storage_v1/service.rb +51 -72
  203. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  204. data/generated/google/apis/streetviewpublish_v1/classes.rb +1 -61
  205. data/generated/google/apis/streetviewpublish_v1/service.rb +2 -1
  206. data/generated/google/apis/testing_v1.rb +1 -1
  207. data/generated/google/apis/testing_v1/classes.rb +8 -3
  208. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  209. data/generated/google/apis/toolresults_v1beta3/classes.rb +17 -16
  210. data/generated/google/apis/videointelligence_v1beta1.rb +1 -1
  211. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  212. data/generated/google/apis/youtube_partner_v1/classes.rb +108 -0
  213. data/generated/google/apis/youtube_partner_v1/representations.rb +49 -0
  214. data/generated/google/apis/youtube_partner_v1/service.rb +42 -0
  215. data/google-api-client.gemspec +1 -1
  216. data/lib/google/apis/generator/model.rb +9 -3
  217. data/lib/google/apis/generator/templates/_class.tmpl +1 -1
  218. data/lib/google/apis/version.rb +1 -1
  219. metadata +14 -12
  220. data/generated/google/apis/playmoviespartner_v1.rb +0 -34
  221. data/generated/google/apis/playmoviespartner_v1/classes.rb +0 -782
  222. data/generated/google/apis/playmoviespartner_v1/representations.rb +0 -191
  223. data/generated/google/apis/playmoviespartner_v1/service.rb +0 -354
  224. data/generated/google/apis/qpx_express_v1.rb +0 -31
  225. data/generated/google/apis/qpx_express_v1/classes.rb +0 -1274
  226. data/generated/google/apis/qpx_express_v1/representations.rb +0 -473
  227. data/generated/google/apis/qpx_express_v1/service.rb +0 -101
@@ -0,0 +1,368 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module DnsV1beta2
24
+
25
+ class Change
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class ChangesListResponse
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class DnsKey
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class DnsKeyDigest
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class DnsKeySpec
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class DnsKeysListResponse
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class ManagedZone
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class ManagedZoneDnsSecConfig
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class ManagedZoneOperationsListResponse
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class ManagedZonesDeleteResponse
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class ManagedZonesListResponse
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class Operation
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class OperationDnsKeyContext
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class OperationManagedZoneContext
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class Project
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class Quota
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class ResourceRecordSet
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class ResourceRecordSetsListResponse
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class ResponseHeader
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class Change
140
+ # @private
141
+ class Representation < Google::Apis::Core::JsonRepresentation
142
+ collection :additions, as: 'additions', class: Google::Apis::DnsV1beta2::ResourceRecordSet, decorator: Google::Apis::DnsV1beta2::ResourceRecordSet::Representation
143
+
144
+ collection :deletions, as: 'deletions', class: Google::Apis::DnsV1beta2::ResourceRecordSet, decorator: Google::Apis::DnsV1beta2::ResourceRecordSet::Representation
145
+
146
+ property :id, as: 'id'
147
+ property :is_serving, as: 'isServing'
148
+ property :kind, as: 'kind'
149
+ property :start_time, as: 'startTime'
150
+ property :status, as: 'status'
151
+ end
152
+ end
153
+
154
+ class ChangesListResponse
155
+ # @private
156
+ class Representation < Google::Apis::Core::JsonRepresentation
157
+ collection :changes, as: 'changes', class: Google::Apis::DnsV1beta2::Change, decorator: Google::Apis::DnsV1beta2::Change::Representation
158
+
159
+ property :header, as: 'header', class: Google::Apis::DnsV1beta2::ResponseHeader, decorator: Google::Apis::DnsV1beta2::ResponseHeader::Representation
160
+
161
+ property :kind, as: 'kind'
162
+ property :next_page_token, as: 'nextPageToken'
163
+ end
164
+ end
165
+
166
+ class DnsKey
167
+ # @private
168
+ class Representation < Google::Apis::Core::JsonRepresentation
169
+ property :algorithm, as: 'algorithm'
170
+ property :creation_time, as: 'creationTime'
171
+ property :description, as: 'description'
172
+ collection :digests, as: 'digests', class: Google::Apis::DnsV1beta2::DnsKeyDigest, decorator: Google::Apis::DnsV1beta2::DnsKeyDigest::Representation
173
+
174
+ property :id, as: 'id'
175
+ property :is_active, as: 'isActive'
176
+ property :key_length, as: 'keyLength'
177
+ property :key_tag, as: 'keyTag'
178
+ property :kind, as: 'kind'
179
+ property :public_key, as: 'publicKey'
180
+ property :type, as: 'type'
181
+ end
182
+ end
183
+
184
+ class DnsKeyDigest
185
+ # @private
186
+ class Representation < Google::Apis::Core::JsonRepresentation
187
+ property :digest, as: 'digest'
188
+ property :type, as: 'type'
189
+ end
190
+ end
191
+
192
+ class DnsKeySpec
193
+ # @private
194
+ class Representation < Google::Apis::Core::JsonRepresentation
195
+ property :algorithm, as: 'algorithm'
196
+ property :key_length, as: 'keyLength'
197
+ property :key_type, as: 'keyType'
198
+ property :kind, as: 'kind'
199
+ end
200
+ end
201
+
202
+ class DnsKeysListResponse
203
+ # @private
204
+ class Representation < Google::Apis::Core::JsonRepresentation
205
+ collection :dns_keys, as: 'dnsKeys', class: Google::Apis::DnsV1beta2::DnsKey, decorator: Google::Apis::DnsV1beta2::DnsKey::Representation
206
+
207
+ property :header, as: 'header', class: Google::Apis::DnsV1beta2::ResponseHeader, decorator: Google::Apis::DnsV1beta2::ResponseHeader::Representation
208
+
209
+ property :kind, as: 'kind'
210
+ property :next_page_token, as: 'nextPageToken'
211
+ end
212
+ end
213
+
214
+ class ManagedZone
215
+ # @private
216
+ class Representation < Google::Apis::Core::JsonRepresentation
217
+ property :creation_time, as: 'creationTime'
218
+ property :description, as: 'description'
219
+ property :dns_name, as: 'dnsName'
220
+ property :dnssec_config, as: 'dnssecConfig', class: Google::Apis::DnsV1beta2::ManagedZoneDnsSecConfig, decorator: Google::Apis::DnsV1beta2::ManagedZoneDnsSecConfig::Representation
221
+
222
+ property :id, :numeric_string => true, as: 'id'
223
+ property :kind, as: 'kind'
224
+ property :name, as: 'name'
225
+ property :name_server_set, as: 'nameServerSet'
226
+ collection :name_servers, as: 'nameServers'
227
+ end
228
+ end
229
+
230
+ class ManagedZoneDnsSecConfig
231
+ # @private
232
+ class Representation < Google::Apis::Core::JsonRepresentation
233
+ collection :default_key_specs, as: 'defaultKeySpecs', class: Google::Apis::DnsV1beta2::DnsKeySpec, decorator: Google::Apis::DnsV1beta2::DnsKeySpec::Representation
234
+
235
+ property :kind, as: 'kind'
236
+ property :non_existence, as: 'nonExistence'
237
+ property :state, as: 'state'
238
+ end
239
+ end
240
+
241
+ class ManagedZoneOperationsListResponse
242
+ # @private
243
+ class Representation < Google::Apis::Core::JsonRepresentation
244
+ property :header, as: 'header', class: Google::Apis::DnsV1beta2::ResponseHeader, decorator: Google::Apis::DnsV1beta2::ResponseHeader::Representation
245
+
246
+ property :kind, as: 'kind'
247
+ property :next_page_token, as: 'nextPageToken'
248
+ collection :operations, as: 'operations', class: Google::Apis::DnsV1beta2::Operation, decorator: Google::Apis::DnsV1beta2::Operation::Representation
249
+
250
+ end
251
+ end
252
+
253
+ class ManagedZonesDeleteResponse
254
+ # @private
255
+ class Representation < Google::Apis::Core::JsonRepresentation
256
+ property :header, as: 'header', class: Google::Apis::DnsV1beta2::ResponseHeader, decorator: Google::Apis::DnsV1beta2::ResponseHeader::Representation
257
+
258
+ end
259
+ end
260
+
261
+ class ManagedZonesListResponse
262
+ # @private
263
+ class Representation < Google::Apis::Core::JsonRepresentation
264
+ property :header, as: 'header', class: Google::Apis::DnsV1beta2::ResponseHeader, decorator: Google::Apis::DnsV1beta2::ResponseHeader::Representation
265
+
266
+ property :kind, as: 'kind'
267
+ collection :managed_zones, as: 'managedZones', class: Google::Apis::DnsV1beta2::ManagedZone, decorator: Google::Apis::DnsV1beta2::ManagedZone::Representation
268
+
269
+ property :next_page_token, as: 'nextPageToken'
270
+ end
271
+ end
272
+
273
+ class Operation
274
+ # @private
275
+ class Representation < Google::Apis::Core::JsonRepresentation
276
+ property :dns_key_context, as: 'dnsKeyContext', class: Google::Apis::DnsV1beta2::OperationDnsKeyContext, decorator: Google::Apis::DnsV1beta2::OperationDnsKeyContext::Representation
277
+
278
+ property :id, as: 'id'
279
+ property :kind, as: 'kind'
280
+ property :start_time, as: 'startTime'
281
+ property :status, as: 'status'
282
+ property :type, as: 'type'
283
+ property :user, as: 'user'
284
+ property :zone_context, as: 'zoneContext', class: Google::Apis::DnsV1beta2::OperationManagedZoneContext, decorator: Google::Apis::DnsV1beta2::OperationManagedZoneContext::Representation
285
+
286
+ end
287
+ end
288
+
289
+ class OperationDnsKeyContext
290
+ # @private
291
+ class Representation < Google::Apis::Core::JsonRepresentation
292
+ property :new_value, as: 'newValue', class: Google::Apis::DnsV1beta2::DnsKey, decorator: Google::Apis::DnsV1beta2::DnsKey::Representation
293
+
294
+ property :old_value, as: 'oldValue', class: Google::Apis::DnsV1beta2::DnsKey, decorator: Google::Apis::DnsV1beta2::DnsKey::Representation
295
+
296
+ end
297
+ end
298
+
299
+ class OperationManagedZoneContext
300
+ # @private
301
+ class Representation < Google::Apis::Core::JsonRepresentation
302
+ property :new_value, as: 'newValue', class: Google::Apis::DnsV1beta2::ManagedZone, decorator: Google::Apis::DnsV1beta2::ManagedZone::Representation
303
+
304
+ property :old_value, as: 'oldValue', class: Google::Apis::DnsV1beta2::ManagedZone, decorator: Google::Apis::DnsV1beta2::ManagedZone::Representation
305
+
306
+ end
307
+ end
308
+
309
+ class Project
310
+ # @private
311
+ class Representation < Google::Apis::Core::JsonRepresentation
312
+ property :id, as: 'id'
313
+ property :kind, as: 'kind'
314
+ property :number, :numeric_string => true, as: 'number'
315
+ property :quota, as: 'quota', class: Google::Apis::DnsV1beta2::Quota, decorator: Google::Apis::DnsV1beta2::Quota::Representation
316
+
317
+ end
318
+ end
319
+
320
+ class Quota
321
+ # @private
322
+ class Representation < Google::Apis::Core::JsonRepresentation
323
+ property :dns_keys_per_managed_zone, as: 'dnsKeysPerManagedZone'
324
+ property :kind, as: 'kind'
325
+ property :managed_zones, as: 'managedZones'
326
+ property :resource_records_per_rrset, as: 'resourceRecordsPerRrset'
327
+ property :rrset_additions_per_change, as: 'rrsetAdditionsPerChange'
328
+ property :rrset_deletions_per_change, as: 'rrsetDeletionsPerChange'
329
+ property :rrsets_per_managed_zone, as: 'rrsetsPerManagedZone'
330
+ property :total_rrdata_size_per_change, as: 'totalRrdataSizePerChange'
331
+ collection :whitelisted_key_specs, as: 'whitelistedKeySpecs', class: Google::Apis::DnsV1beta2::DnsKeySpec, decorator: Google::Apis::DnsV1beta2::DnsKeySpec::Representation
332
+
333
+ end
334
+ end
335
+
336
+ class ResourceRecordSet
337
+ # @private
338
+ class Representation < Google::Apis::Core::JsonRepresentation
339
+ property :kind, as: 'kind'
340
+ property :name, as: 'name'
341
+ collection :rrdatas, as: 'rrdatas'
342
+ collection :signature_rrdatas, as: 'signatureRrdatas'
343
+ property :ttl, as: 'ttl'
344
+ property :type, as: 'type'
345
+ end
346
+ end
347
+
348
+ class ResourceRecordSetsListResponse
349
+ # @private
350
+ class Representation < Google::Apis::Core::JsonRepresentation
351
+ property :header, as: 'header', class: Google::Apis::DnsV1beta2::ResponseHeader, decorator: Google::Apis::DnsV1beta2::ResponseHeader::Representation
352
+
353
+ property :kind, as: 'kind'
354
+ property :next_page_token, as: 'nextPageToken'
355
+ collection :rrsets, as: 'rrsets', class: Google::Apis::DnsV1beta2::ResourceRecordSet, decorator: Google::Apis::DnsV1beta2::ResourceRecordSet::Representation
356
+
357
+ end
358
+ end
359
+
360
+ class ResponseHeader
361
+ # @private
362
+ class Representation < Google::Apis::Core::JsonRepresentation
363
+ property :operation_id, as: 'operationId'
364
+ end
365
+ end
366
+ end
367
+ end
368
+ end
@@ -0,0 +1,769 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module DnsV1beta2
23
+ # Google Cloud DNS API
24
+ #
25
+ # Configures and serves authoritative DNS records.
26
+ #
27
+ # @example
28
+ # require 'google/apis/dns_v1beta2'
29
+ #
30
+ # Dns = Google::Apis::DnsV1beta2 # Alias the module
31
+ # service = Dns::DnsService.new
32
+ #
33
+ # @see https://developers.google.com/cloud-dns
34
+ class DnsService < Google::Apis::Core::BaseService
35
+ # @return [String]
36
+ # API key. Your API key identifies your project and provides you with API access,
37
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
+ attr_accessor :key
39
+
40
+ # @return [String]
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
+ # Overrides userIp if both are provided.
44
+ attr_accessor :quota_user
45
+
46
+ # @return [String]
47
+ # IP address of the site where the request originates. Use this if you want to
48
+ # enforce per-user limits.
49
+ attr_accessor :user_ip
50
+
51
+ def initialize
52
+ super('https://www.googleapis.com/', 'dns/v1beta2/projects/')
53
+ @batch_path = 'batch/dns/v1beta2'
54
+ end
55
+
56
+ # Atomically update the ResourceRecordSet collection.
57
+ # @param [String] project
58
+ # Identifies the project addressed by this request.
59
+ # @param [String] managed_zone
60
+ # Identifies the managed zone addressed by this request. Can be the managed zone
61
+ # name or id.
62
+ # @param [Google::Apis::DnsV1beta2::Change] change_object
63
+ # @param [String] client_operation_id
64
+ # For mutating operation requests only. An optional identifier specified by the
65
+ # client. Must be unique for operation resources in the Operations collection.
66
+ # @param [String] fields
67
+ # Selector specifying which fields to include in a partial response.
68
+ # @param [String] quota_user
69
+ # Available to use for quota purposes for server-side applications. Can be any
70
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
71
+ # Overrides userIp if both are provided.
72
+ # @param [String] user_ip
73
+ # IP address of the site where the request originates. Use this if you want to
74
+ # enforce per-user limits.
75
+ # @param [Google::Apis::RequestOptions] options
76
+ # Request-specific options
77
+ #
78
+ # @yield [result, err] Result & error if block supplied
79
+ # @yieldparam result [Google::Apis::DnsV1beta2::Change] parsed result object
80
+ # @yieldparam err [StandardError] error object if request failed
81
+ #
82
+ # @return [Google::Apis::DnsV1beta2::Change]
83
+ #
84
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
85
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
86
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
87
+ def create_change(project, managed_zone, change_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
88
+ command = make_simple_command(:post, '{project}/managedZones/{managedZone}/changes', options)
89
+ command.request_representation = Google::Apis::DnsV1beta2::Change::Representation
90
+ command.request_object = change_object
91
+ command.response_representation = Google::Apis::DnsV1beta2::Change::Representation
92
+ command.response_class = Google::Apis::DnsV1beta2::Change
93
+ command.params['project'] = project unless project.nil?
94
+ command.params['managedZone'] = managed_zone unless managed_zone.nil?
95
+ command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
96
+ command.query['fields'] = fields unless fields.nil?
97
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
98
+ command.query['userIp'] = user_ip unless user_ip.nil?
99
+ execute_or_queue_command(command, &block)
100
+ end
101
+
102
+ # Fetch the representation of an existing Change.
103
+ # @param [String] project
104
+ # Identifies the project addressed by this request.
105
+ # @param [String] managed_zone
106
+ # Identifies the managed zone addressed by this request. Can be the managed zone
107
+ # name or id.
108
+ # @param [String] change_id
109
+ # The identifier of the requested change, from a previous
110
+ # ResourceRecordSetsChangeResponse.
111
+ # @param [String] client_operation_id
112
+ # For mutating operation requests only. An optional identifier specified by the
113
+ # client. Must be unique for operation resources in the Operations collection.
114
+ # @param [String] fields
115
+ # Selector specifying which fields to include in a partial response.
116
+ # @param [String] quota_user
117
+ # Available to use for quota purposes for server-side applications. Can be any
118
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
119
+ # Overrides userIp if both are provided.
120
+ # @param [String] user_ip
121
+ # IP address of the site where the request originates. Use this if you want to
122
+ # enforce per-user limits.
123
+ # @param [Google::Apis::RequestOptions] options
124
+ # Request-specific options
125
+ #
126
+ # @yield [result, err] Result & error if block supplied
127
+ # @yieldparam result [Google::Apis::DnsV1beta2::Change] parsed result object
128
+ # @yieldparam err [StandardError] error object if request failed
129
+ #
130
+ # @return [Google::Apis::DnsV1beta2::Change]
131
+ #
132
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
133
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
134
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
135
+ def get_change(project, managed_zone, change_id, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
136
+ command = make_simple_command(:get, '{project}/managedZones/{managedZone}/changes/{changeId}', options)
137
+ command.response_representation = Google::Apis::DnsV1beta2::Change::Representation
138
+ command.response_class = Google::Apis::DnsV1beta2::Change
139
+ command.params['project'] = project unless project.nil?
140
+ command.params['managedZone'] = managed_zone unless managed_zone.nil?
141
+ command.params['changeId'] = change_id unless change_id.nil?
142
+ command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
143
+ command.query['fields'] = fields unless fields.nil?
144
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
145
+ command.query['userIp'] = user_ip unless user_ip.nil?
146
+ execute_or_queue_command(command, &block)
147
+ end
148
+
149
+ # Enumerate Changes to a ResourceRecordSet collection.
150
+ # @param [String] project
151
+ # Identifies the project addressed by this request.
152
+ # @param [String] managed_zone
153
+ # Identifies the managed zone addressed by this request. Can be the managed zone
154
+ # name or id.
155
+ # @param [Fixnum] max_results
156
+ # Optional. Maximum number of results to be returned. If unspecified, the server
157
+ # will decide how many results to return.
158
+ # @param [String] page_token
159
+ # Optional. A tag returned by a previous list request that was truncated. Use
160
+ # this parameter to continue a previous list request.
161
+ # @param [String] sort_by
162
+ # Sorting criterion. The only supported value is change sequence.
163
+ # @param [String] sort_order
164
+ # Sorting order direction: 'ascending' or 'descending'.
165
+ # @param [String] fields
166
+ # Selector specifying which fields to include in a partial response.
167
+ # @param [String] quota_user
168
+ # Available to use for quota purposes for server-side applications. Can be any
169
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
170
+ # Overrides userIp if both are provided.
171
+ # @param [String] user_ip
172
+ # IP address of the site where the request originates. Use this if you want to
173
+ # enforce per-user limits.
174
+ # @param [Google::Apis::RequestOptions] options
175
+ # Request-specific options
176
+ #
177
+ # @yield [result, err] Result & error if block supplied
178
+ # @yieldparam result [Google::Apis::DnsV1beta2::ChangesListResponse] parsed result object
179
+ # @yieldparam err [StandardError] error object if request failed
180
+ #
181
+ # @return [Google::Apis::DnsV1beta2::ChangesListResponse]
182
+ #
183
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
184
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
185
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
186
+ def list_changes(project, managed_zone, max_results: nil, page_token: nil, sort_by: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
187
+ command = make_simple_command(:get, '{project}/managedZones/{managedZone}/changes', options)
188
+ command.response_representation = Google::Apis::DnsV1beta2::ChangesListResponse::Representation
189
+ command.response_class = Google::Apis::DnsV1beta2::ChangesListResponse
190
+ command.params['project'] = project unless project.nil?
191
+ command.params['managedZone'] = managed_zone unless managed_zone.nil?
192
+ command.query['maxResults'] = max_results unless max_results.nil?
193
+ command.query['pageToken'] = page_token unless page_token.nil?
194
+ command.query['sortBy'] = sort_by unless sort_by.nil?
195
+ command.query['sortOrder'] = sort_order unless sort_order.nil?
196
+ command.query['fields'] = fields unless fields.nil?
197
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
198
+ command.query['userIp'] = user_ip unless user_ip.nil?
199
+ execute_or_queue_command(command, &block)
200
+ end
201
+
202
+ # Fetch the representation of an existing DnsKey.
203
+ # @param [String] project
204
+ # Identifies the project addressed by this request.
205
+ # @param [String] managed_zone
206
+ # Identifies the managed zone addressed by this request. Can be the managed zone
207
+ # name or id.
208
+ # @param [String] dns_key_id
209
+ # The identifier of the requested DnsKey.
210
+ # @param [String] client_operation_id
211
+ # For mutating operation requests only. An optional identifier specified by the
212
+ # client. Must be unique for operation resources in the Operations collection.
213
+ # @param [String] digest_type
214
+ # An optional comma-separated list of digest types to compute and display for
215
+ # key signing keys. If omitted, the recommended digest type will be computed and
216
+ # displayed.
217
+ # @param [String] fields
218
+ # Selector specifying which fields to include in a partial response.
219
+ # @param [String] quota_user
220
+ # Available to use for quota purposes for server-side applications. Can be any
221
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
222
+ # Overrides userIp if both are provided.
223
+ # @param [String] user_ip
224
+ # IP address of the site where the request originates. Use this if you want to
225
+ # enforce per-user limits.
226
+ # @param [Google::Apis::RequestOptions] options
227
+ # Request-specific options
228
+ #
229
+ # @yield [result, err] Result & error if block supplied
230
+ # @yieldparam result [Google::Apis::DnsV1beta2::DnsKey] parsed result object
231
+ # @yieldparam err [StandardError] error object if request failed
232
+ #
233
+ # @return [Google::Apis::DnsV1beta2::DnsKey]
234
+ #
235
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
236
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
237
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
238
+ def get_dns_key(project, managed_zone, dns_key_id, client_operation_id: nil, digest_type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
239
+ command = make_simple_command(:get, '{project}/managedZones/{managedZone}/dnsKeys/{dnsKeyId}', options)
240
+ command.response_representation = Google::Apis::DnsV1beta2::DnsKey::Representation
241
+ command.response_class = Google::Apis::DnsV1beta2::DnsKey
242
+ command.params['project'] = project unless project.nil?
243
+ command.params['managedZone'] = managed_zone unless managed_zone.nil?
244
+ command.params['dnsKeyId'] = dns_key_id unless dns_key_id.nil?
245
+ command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
246
+ command.query['digestType'] = digest_type unless digest_type.nil?
247
+ command.query['fields'] = fields unless fields.nil?
248
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
249
+ command.query['userIp'] = user_ip unless user_ip.nil?
250
+ execute_or_queue_command(command, &block)
251
+ end
252
+
253
+ # Enumerate DnsKeys to a ResourceRecordSet collection.
254
+ # @param [String] project
255
+ # Identifies the project addressed by this request.
256
+ # @param [String] managed_zone
257
+ # Identifies the managed zone addressed by this request. Can be the managed zone
258
+ # name or id.
259
+ # @param [String] digest_type
260
+ # An optional comma-separated list of digest types to compute and display for
261
+ # key signing keys. If omitted, the recommended digest type will be computed and
262
+ # displayed.
263
+ # @param [Fixnum] max_results
264
+ # Optional. Maximum number of results to be returned. If unspecified, the server
265
+ # will decide how many results to return.
266
+ # @param [String] page_token
267
+ # Optional. A tag returned by a previous list request that was truncated. Use
268
+ # this parameter to continue a previous list request.
269
+ # @param [String] fields
270
+ # Selector specifying which fields to include in a partial response.
271
+ # @param [String] quota_user
272
+ # Available to use for quota purposes for server-side applications. Can be any
273
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
274
+ # Overrides userIp if both are provided.
275
+ # @param [String] user_ip
276
+ # IP address of the site where the request originates. Use this if you want to
277
+ # enforce per-user limits.
278
+ # @param [Google::Apis::RequestOptions] options
279
+ # Request-specific options
280
+ #
281
+ # @yield [result, err] Result & error if block supplied
282
+ # @yieldparam result [Google::Apis::DnsV1beta2::DnsKeysListResponse] parsed result object
283
+ # @yieldparam err [StandardError] error object if request failed
284
+ #
285
+ # @return [Google::Apis::DnsV1beta2::DnsKeysListResponse]
286
+ #
287
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
288
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
289
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
290
+ def list_dns_keys(project, managed_zone, digest_type: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
291
+ command = make_simple_command(:get, '{project}/managedZones/{managedZone}/dnsKeys', options)
292
+ command.response_representation = Google::Apis::DnsV1beta2::DnsKeysListResponse::Representation
293
+ command.response_class = Google::Apis::DnsV1beta2::DnsKeysListResponse
294
+ command.params['project'] = project unless project.nil?
295
+ command.params['managedZone'] = managed_zone unless managed_zone.nil?
296
+ command.query['digestType'] = digest_type unless digest_type.nil?
297
+ command.query['maxResults'] = max_results unless max_results.nil?
298
+ command.query['pageToken'] = page_token unless page_token.nil?
299
+ command.query['fields'] = fields unless fields.nil?
300
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
301
+ command.query['userIp'] = user_ip unless user_ip.nil?
302
+ execute_or_queue_command(command, &block)
303
+ end
304
+
305
+ # Fetch the representation of an existing Operation.
306
+ # @param [String] project
307
+ # Identifies the project addressed by this request.
308
+ # @param [String] managed_zone
309
+ # Identifies the managed zone addressed by this request.
310
+ # @param [String] operation
311
+ # Identifies the operation addressed by this request.
312
+ # @param [String] client_operation_id
313
+ # For mutating operation requests only. An optional identifier specified by the
314
+ # client. Must be unique for operation resources in the Operations collection.
315
+ # @param [String] fields
316
+ # Selector specifying which fields to include in a partial response.
317
+ # @param [String] quota_user
318
+ # Available to use for quota purposes for server-side applications. Can be any
319
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
320
+ # Overrides userIp if both are provided.
321
+ # @param [String] user_ip
322
+ # IP address of the site where the request originates. Use this if you want to
323
+ # enforce per-user limits.
324
+ # @param [Google::Apis::RequestOptions] options
325
+ # Request-specific options
326
+ #
327
+ # @yield [result, err] Result & error if block supplied
328
+ # @yieldparam result [Google::Apis::DnsV1beta2::Operation] parsed result object
329
+ # @yieldparam err [StandardError] error object if request failed
330
+ #
331
+ # @return [Google::Apis::DnsV1beta2::Operation]
332
+ #
333
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
334
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
335
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
336
+ def get_managed_zone_operation(project, managed_zone, operation, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
337
+ command = make_simple_command(:get, '{project}/managedZones/{managedZone}/operations/{operation}', options)
338
+ command.response_representation = Google::Apis::DnsV1beta2::Operation::Representation
339
+ command.response_class = Google::Apis::DnsV1beta2::Operation
340
+ command.params['project'] = project unless project.nil?
341
+ command.params['managedZone'] = managed_zone unless managed_zone.nil?
342
+ command.params['operation'] = operation unless operation.nil?
343
+ command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
344
+ command.query['fields'] = fields unless fields.nil?
345
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
346
+ command.query['userIp'] = user_ip unless user_ip.nil?
347
+ execute_or_queue_command(command, &block)
348
+ end
349
+
350
+ # Enumerate Operations for the given ManagedZone.
351
+ # @param [String] project
352
+ # Identifies the project addressed by this request.
353
+ # @param [String] managed_zone
354
+ # Identifies the managed zone addressed by this request.
355
+ # @param [Fixnum] max_results
356
+ # Optional. Maximum number of results to be returned. If unspecified, the server
357
+ # will decide how many results to return.
358
+ # @param [String] page_token
359
+ # Optional. A tag returned by a previous list request that was truncated. Use
360
+ # this parameter to continue a previous list request.
361
+ # @param [String] sort_by
362
+ # Sorting criterion. The only supported values are START_TIME and ID.
363
+ # @param [String] fields
364
+ # Selector specifying which fields to include in a partial response.
365
+ # @param [String] quota_user
366
+ # Available to use for quota purposes for server-side applications. Can be any
367
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
368
+ # Overrides userIp if both are provided.
369
+ # @param [String] user_ip
370
+ # IP address of the site where the request originates. Use this if you want to
371
+ # enforce per-user limits.
372
+ # @param [Google::Apis::RequestOptions] options
373
+ # Request-specific options
374
+ #
375
+ # @yield [result, err] Result & error if block supplied
376
+ # @yieldparam result [Google::Apis::DnsV1beta2::ManagedZoneOperationsListResponse] parsed result object
377
+ # @yieldparam err [StandardError] error object if request failed
378
+ #
379
+ # @return [Google::Apis::DnsV1beta2::ManagedZoneOperationsListResponse]
380
+ #
381
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
382
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
383
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
384
+ def list_managed_zone_operations(project, managed_zone, max_results: nil, page_token: nil, sort_by: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
385
+ command = make_simple_command(:get, '{project}/managedZones/{managedZone}/operations', options)
386
+ command.response_representation = Google::Apis::DnsV1beta2::ManagedZoneOperationsListResponse::Representation
387
+ command.response_class = Google::Apis::DnsV1beta2::ManagedZoneOperationsListResponse
388
+ command.params['project'] = project unless project.nil?
389
+ command.params['managedZone'] = managed_zone unless managed_zone.nil?
390
+ command.query['maxResults'] = max_results unless max_results.nil?
391
+ command.query['pageToken'] = page_token unless page_token.nil?
392
+ command.query['sortBy'] = sort_by unless sort_by.nil?
393
+ command.query['fields'] = fields unless fields.nil?
394
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
395
+ command.query['userIp'] = user_ip unless user_ip.nil?
396
+ execute_or_queue_command(command, &block)
397
+ end
398
+
399
+ # Create a new ManagedZone.
400
+ # @param [String] project
401
+ # Identifies the project addressed by this request.
402
+ # @param [Google::Apis::DnsV1beta2::ManagedZone] managed_zone_object
403
+ # @param [String] client_operation_id
404
+ # For mutating operation requests only. An optional identifier specified by the
405
+ # client. Must be unique for operation resources in the Operations collection.
406
+ # @param [String] fields
407
+ # Selector specifying which fields to include in a partial response.
408
+ # @param [String] quota_user
409
+ # Available to use for quota purposes for server-side applications. Can be any
410
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
411
+ # Overrides userIp if both are provided.
412
+ # @param [String] user_ip
413
+ # IP address of the site where the request originates. Use this if you want to
414
+ # enforce per-user limits.
415
+ # @param [Google::Apis::RequestOptions] options
416
+ # Request-specific options
417
+ #
418
+ # @yield [result, err] Result & error if block supplied
419
+ # @yieldparam result [Google::Apis::DnsV1beta2::ManagedZone] parsed result object
420
+ # @yieldparam err [StandardError] error object if request failed
421
+ #
422
+ # @return [Google::Apis::DnsV1beta2::ManagedZone]
423
+ #
424
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
425
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
426
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
427
+ def create_managed_zone(project, managed_zone_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
428
+ command = make_simple_command(:post, '{project}/managedZones', options)
429
+ command.request_representation = Google::Apis::DnsV1beta2::ManagedZone::Representation
430
+ command.request_object = managed_zone_object
431
+ command.response_representation = Google::Apis::DnsV1beta2::ManagedZone::Representation
432
+ command.response_class = Google::Apis::DnsV1beta2::ManagedZone
433
+ command.params['project'] = project unless project.nil?
434
+ command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
435
+ command.query['fields'] = fields unless fields.nil?
436
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
437
+ command.query['userIp'] = user_ip unless user_ip.nil?
438
+ execute_or_queue_command(command, &block)
439
+ end
440
+
441
+ # Delete a previously created ManagedZone.
442
+ # @param [String] project
443
+ # Identifies the project addressed by this request.
444
+ # @param [String] managed_zone
445
+ # Identifies the managed zone addressed by this request. Can be the managed zone
446
+ # name or id.
447
+ # @param [String] client_operation_id
448
+ # For mutating operation requests only. An optional identifier specified by the
449
+ # client. Must be unique for operation resources in the Operations collection.
450
+ # @param [String] fields
451
+ # Selector specifying which fields to include in a partial response.
452
+ # @param [String] quota_user
453
+ # Available to use for quota purposes for server-side applications. Can be any
454
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
455
+ # Overrides userIp if both are provided.
456
+ # @param [String] user_ip
457
+ # IP address of the site where the request originates. Use this if you want to
458
+ # enforce per-user limits.
459
+ # @param [Google::Apis::RequestOptions] options
460
+ # Request-specific options
461
+ #
462
+ # @yield [result, err] Result & error if block supplied
463
+ # @yieldparam result [Google::Apis::DnsV1beta2::ManagedZonesDeleteResponse] parsed result object
464
+ # @yieldparam err [StandardError] error object if request failed
465
+ #
466
+ # @return [Google::Apis::DnsV1beta2::ManagedZonesDeleteResponse]
467
+ #
468
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
469
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
470
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
471
+ def delete_managed_zone(project, managed_zone, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
472
+ command = make_simple_command(:delete, '{project}/managedZones/{managedZone}', options)
473
+ command.response_representation = Google::Apis::DnsV1beta2::ManagedZonesDeleteResponse::Representation
474
+ command.response_class = Google::Apis::DnsV1beta2::ManagedZonesDeleteResponse
475
+ command.params['project'] = project unless project.nil?
476
+ command.params['managedZone'] = managed_zone unless managed_zone.nil?
477
+ command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
478
+ command.query['fields'] = fields unless fields.nil?
479
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
480
+ command.query['userIp'] = user_ip unless user_ip.nil?
481
+ execute_or_queue_command(command, &block)
482
+ end
483
+
484
+ # Fetch the representation of an existing ManagedZone.
485
+ # @param [String] project
486
+ # Identifies the project addressed by this request.
487
+ # @param [String] managed_zone
488
+ # Identifies the managed zone addressed by this request. Can be the managed zone
489
+ # name or id.
490
+ # @param [String] client_operation_id
491
+ # For mutating operation requests only. An optional identifier specified by the
492
+ # client. Must be unique for operation resources in the Operations collection.
493
+ # @param [String] fields
494
+ # Selector specifying which fields to include in a partial response.
495
+ # @param [String] quota_user
496
+ # Available to use for quota purposes for server-side applications. Can be any
497
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
498
+ # Overrides userIp if both are provided.
499
+ # @param [String] user_ip
500
+ # IP address of the site where the request originates. Use this if you want to
501
+ # enforce per-user limits.
502
+ # @param [Google::Apis::RequestOptions] options
503
+ # Request-specific options
504
+ #
505
+ # @yield [result, err] Result & error if block supplied
506
+ # @yieldparam result [Google::Apis::DnsV1beta2::ManagedZone] parsed result object
507
+ # @yieldparam err [StandardError] error object if request failed
508
+ #
509
+ # @return [Google::Apis::DnsV1beta2::ManagedZone]
510
+ #
511
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
512
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
513
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
514
+ def get_managed_zone(project, managed_zone, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
515
+ command = make_simple_command(:get, '{project}/managedZones/{managedZone}', options)
516
+ command.response_representation = Google::Apis::DnsV1beta2::ManagedZone::Representation
517
+ command.response_class = Google::Apis::DnsV1beta2::ManagedZone
518
+ command.params['project'] = project unless project.nil?
519
+ command.params['managedZone'] = managed_zone unless managed_zone.nil?
520
+ command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
521
+ command.query['fields'] = fields unless fields.nil?
522
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
523
+ command.query['userIp'] = user_ip unless user_ip.nil?
524
+ execute_or_queue_command(command, &block)
525
+ end
526
+
527
+ # Enumerate ManagedZones that have been created but not yet deleted.
528
+ # @param [String] project
529
+ # Identifies the project addressed by this request.
530
+ # @param [String] dns_name
531
+ # Restricts the list to return only zones with this domain name.
532
+ # @param [Fixnum] max_results
533
+ # Optional. Maximum number of results to be returned. If unspecified, the server
534
+ # will decide how many results to return.
535
+ # @param [String] page_token
536
+ # Optional. A tag returned by a previous list request that was truncated. Use
537
+ # this parameter to continue a previous list request.
538
+ # @param [String] fields
539
+ # Selector specifying which fields to include in a partial response.
540
+ # @param [String] quota_user
541
+ # Available to use for quota purposes for server-side applications. Can be any
542
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
543
+ # Overrides userIp if both are provided.
544
+ # @param [String] user_ip
545
+ # IP address of the site where the request originates. Use this if you want to
546
+ # enforce per-user limits.
547
+ # @param [Google::Apis::RequestOptions] options
548
+ # Request-specific options
549
+ #
550
+ # @yield [result, err] Result & error if block supplied
551
+ # @yieldparam result [Google::Apis::DnsV1beta2::ManagedZonesListResponse] parsed result object
552
+ # @yieldparam err [StandardError] error object if request failed
553
+ #
554
+ # @return [Google::Apis::DnsV1beta2::ManagedZonesListResponse]
555
+ #
556
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
557
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
558
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
559
+ def list_managed_zones(project, dns_name: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
560
+ command = make_simple_command(:get, '{project}/managedZones', options)
561
+ command.response_representation = Google::Apis::DnsV1beta2::ManagedZonesListResponse::Representation
562
+ command.response_class = Google::Apis::DnsV1beta2::ManagedZonesListResponse
563
+ command.params['project'] = project unless project.nil?
564
+ command.query['dnsName'] = dns_name unless dns_name.nil?
565
+ command.query['maxResults'] = max_results unless max_results.nil?
566
+ command.query['pageToken'] = page_token unless page_token.nil?
567
+ command.query['fields'] = fields unless fields.nil?
568
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
569
+ command.query['userIp'] = user_ip unless user_ip.nil?
570
+ execute_or_queue_command(command, &block)
571
+ end
572
+
573
+ # Update an existing ManagedZone. This method supports patch semantics.
574
+ # @param [String] project
575
+ # Identifies the project addressed by this request.
576
+ # @param [String] managed_zone
577
+ # Identifies the managed zone addressed by this request. Can be the managed zone
578
+ # name or id.
579
+ # @param [Google::Apis::DnsV1beta2::ManagedZone] managed_zone_object
580
+ # @param [String] client_operation_id
581
+ # For mutating operation requests only. An optional identifier specified by the
582
+ # client. Must be unique for operation resources in the Operations collection.
583
+ # @param [String] fields
584
+ # Selector specifying which fields to include in a partial response.
585
+ # @param [String] quota_user
586
+ # Available to use for quota purposes for server-side applications. Can be any
587
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
588
+ # Overrides userIp if both are provided.
589
+ # @param [String] user_ip
590
+ # IP address of the site where the request originates. Use this if you want to
591
+ # enforce per-user limits.
592
+ # @param [Google::Apis::RequestOptions] options
593
+ # Request-specific options
594
+ #
595
+ # @yield [result, err] Result & error if block supplied
596
+ # @yieldparam result [Google::Apis::DnsV1beta2::Operation] parsed result object
597
+ # @yieldparam err [StandardError] error object if request failed
598
+ #
599
+ # @return [Google::Apis::DnsV1beta2::Operation]
600
+ #
601
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
602
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
603
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
604
+ def patch_managed_zone(project, managed_zone, managed_zone_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
605
+ command = make_simple_command(:patch, '{project}/managedZones/{managedZone}', options)
606
+ command.request_representation = Google::Apis::DnsV1beta2::ManagedZone::Representation
607
+ command.request_object = managed_zone_object
608
+ command.response_representation = Google::Apis::DnsV1beta2::Operation::Representation
609
+ command.response_class = Google::Apis::DnsV1beta2::Operation
610
+ command.params['project'] = project unless project.nil?
611
+ command.params['managedZone'] = managed_zone unless managed_zone.nil?
612
+ command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
613
+ command.query['fields'] = fields unless fields.nil?
614
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
615
+ command.query['userIp'] = user_ip unless user_ip.nil?
616
+ execute_or_queue_command(command, &block)
617
+ end
618
+
619
+ # Update an existing ManagedZone.
620
+ # @param [String] project
621
+ # Identifies the project addressed by this request.
622
+ # @param [String] managed_zone
623
+ # Identifies the managed zone addressed by this request. Can be the managed zone
624
+ # name or id.
625
+ # @param [Google::Apis::DnsV1beta2::ManagedZone] managed_zone_object
626
+ # @param [String] client_operation_id
627
+ # For mutating operation requests only. An optional identifier specified by the
628
+ # client. Must be unique for operation resources in the Operations collection.
629
+ # @param [String] fields
630
+ # Selector specifying which fields to include in a partial response.
631
+ # @param [String] quota_user
632
+ # Available to use for quota purposes for server-side applications. Can be any
633
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
634
+ # Overrides userIp if both are provided.
635
+ # @param [String] user_ip
636
+ # IP address of the site where the request originates. Use this if you want to
637
+ # enforce per-user limits.
638
+ # @param [Google::Apis::RequestOptions] options
639
+ # Request-specific options
640
+ #
641
+ # @yield [result, err] Result & error if block supplied
642
+ # @yieldparam result [Google::Apis::DnsV1beta2::Operation] parsed result object
643
+ # @yieldparam err [StandardError] error object if request failed
644
+ #
645
+ # @return [Google::Apis::DnsV1beta2::Operation]
646
+ #
647
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
648
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
649
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
650
+ def update_managed_zone(project, managed_zone, managed_zone_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
651
+ command = make_simple_command(:put, '{project}/managedZones/{managedZone}', options)
652
+ command.request_representation = Google::Apis::DnsV1beta2::ManagedZone::Representation
653
+ command.request_object = managed_zone_object
654
+ command.response_representation = Google::Apis::DnsV1beta2::Operation::Representation
655
+ command.response_class = Google::Apis::DnsV1beta2::Operation
656
+ command.params['project'] = project unless project.nil?
657
+ command.params['managedZone'] = managed_zone unless managed_zone.nil?
658
+ command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
659
+ command.query['fields'] = fields unless fields.nil?
660
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
661
+ command.query['userIp'] = user_ip unless user_ip.nil?
662
+ execute_or_queue_command(command, &block)
663
+ end
664
+
665
+ # Fetch the representation of an existing Project.
666
+ # @param [String] project
667
+ # Identifies the project addressed by this request.
668
+ # @param [String] client_operation_id
669
+ # For mutating operation requests only. An optional identifier specified by the
670
+ # client. Must be unique for operation resources in the Operations collection.
671
+ # @param [String] fields
672
+ # Selector specifying which fields to include in a partial response.
673
+ # @param [String] quota_user
674
+ # Available to use for quota purposes for server-side applications. Can be any
675
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
676
+ # Overrides userIp if both are provided.
677
+ # @param [String] user_ip
678
+ # IP address of the site where the request originates. Use this if you want to
679
+ # enforce per-user limits.
680
+ # @param [Google::Apis::RequestOptions] options
681
+ # Request-specific options
682
+ #
683
+ # @yield [result, err] Result & error if block supplied
684
+ # @yieldparam result [Google::Apis::DnsV1beta2::Project] parsed result object
685
+ # @yieldparam err [StandardError] error object if request failed
686
+ #
687
+ # @return [Google::Apis::DnsV1beta2::Project]
688
+ #
689
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
690
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
691
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
692
+ def get_project(project, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
693
+ command = make_simple_command(:get, '{project}', options)
694
+ command.response_representation = Google::Apis::DnsV1beta2::Project::Representation
695
+ command.response_class = Google::Apis::DnsV1beta2::Project
696
+ command.params['project'] = project unless project.nil?
697
+ command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
698
+ command.query['fields'] = fields unless fields.nil?
699
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
700
+ command.query['userIp'] = user_ip unless user_ip.nil?
701
+ execute_or_queue_command(command, &block)
702
+ end
703
+
704
+ # Enumerate ResourceRecordSets that have been created but not yet deleted.
705
+ # @param [String] project
706
+ # Identifies the project addressed by this request.
707
+ # @param [String] managed_zone
708
+ # Identifies the managed zone addressed by this request. Can be the managed zone
709
+ # name or id.
710
+ # @param [Fixnum] max_results
711
+ # Optional. Maximum number of results to be returned. If unspecified, the server
712
+ # will decide how many results to return.
713
+ # @param [String] name
714
+ # Restricts the list to return only records with this fully qualified domain
715
+ # name.
716
+ # @param [String] page_token
717
+ # Optional. A tag returned by a previous list request that was truncated. Use
718
+ # this parameter to continue a previous list request.
719
+ # @param [String] type
720
+ # Restricts the list to return only records of this type. If present, the "name"
721
+ # parameter must also be present.
722
+ # @param [String] fields
723
+ # Selector specifying which fields to include in a partial response.
724
+ # @param [String] quota_user
725
+ # Available to use for quota purposes for server-side applications. Can be any
726
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
727
+ # Overrides userIp if both are provided.
728
+ # @param [String] user_ip
729
+ # IP address of the site where the request originates. Use this if you want to
730
+ # enforce per-user limits.
731
+ # @param [Google::Apis::RequestOptions] options
732
+ # Request-specific options
733
+ #
734
+ # @yield [result, err] Result & error if block supplied
735
+ # @yieldparam result [Google::Apis::DnsV1beta2::ResourceRecordSetsListResponse] parsed result object
736
+ # @yieldparam err [StandardError] error object if request failed
737
+ #
738
+ # @return [Google::Apis::DnsV1beta2::ResourceRecordSetsListResponse]
739
+ #
740
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
741
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
742
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
743
+ def list_resource_record_sets(project, managed_zone, max_results: nil, name: nil, page_token: nil, type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
744
+ command = make_simple_command(:get, '{project}/managedZones/{managedZone}/rrsets', options)
745
+ command.response_representation = Google::Apis::DnsV1beta2::ResourceRecordSetsListResponse::Representation
746
+ command.response_class = Google::Apis::DnsV1beta2::ResourceRecordSetsListResponse
747
+ command.params['project'] = project unless project.nil?
748
+ command.params['managedZone'] = managed_zone unless managed_zone.nil?
749
+ command.query['maxResults'] = max_results unless max_results.nil?
750
+ command.query['name'] = name unless name.nil?
751
+ command.query['pageToken'] = page_token unless page_token.nil?
752
+ command.query['type'] = type unless type.nil?
753
+ command.query['fields'] = fields unless fields.nil?
754
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
755
+ command.query['userIp'] = user_ip unless user_ip.nil?
756
+ execute_or_queue_command(command, &block)
757
+ end
758
+
759
+ protected
760
+
761
+ def apply_command_defaults(command)
762
+ command.query['key'] = key unless key.nil?
763
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
764
+ command.query['userIp'] = user_ip unless user_ip.nil?
765
+ end
766
+ end
767
+ end
768
+ end
769
+ end