google-api-client 0.15.0 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -172,6 +172,12 @@ module Google
172
172
  include Google::Apis::Core::JsonObjectSupport
173
173
  end
174
174
 
175
+ class GooglePrivacyDlpV2beta1CustomInfoType
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
175
181
  class GooglePrivacyDlpV2beta1DatastoreKey
176
182
  class Representation < Google::Apis::Core::JsonRepresentation; end
177
183
 
@@ -208,6 +214,12 @@ module Google
208
214
  include Google::Apis::Core::JsonObjectSupport
209
215
  end
210
216
 
217
+ class GooglePrivacyDlpV2beta1Dictionary
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
211
223
  class GooglePrivacyDlpV2beta1EntityId
212
224
  class Representation < Google::Apis::Core::JsonRepresentation; end
213
225
 
@@ -628,6 +640,12 @@ module Google
628
640
  include Google::Apis::Core::JsonObjectSupport
629
641
  end
630
642
 
643
+ class GooglePrivacyDlpV2beta1WordList
644
+ class Representation < Google::Apis::Core::JsonRepresentation; end
645
+
646
+ include Google::Apis::Core::JsonObjectSupport
647
+ end
648
+
631
649
  class GoogleProtobufEmpty
632
650
  class Representation < Google::Apis::Core::JsonRepresentation; end
633
651
 
@@ -891,6 +909,16 @@ module Google
891
909
  end
892
910
  end
893
911
 
912
+ class GooglePrivacyDlpV2beta1CustomInfoType
913
+ # @private
914
+ class Representation < Google::Apis::Core::JsonRepresentation
915
+ property :dictionary, as: 'dictionary', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Dictionary, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1Dictionary::Representation
916
+
917
+ property :info_type, as: 'infoType', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InfoType, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InfoType::Representation
918
+
919
+ end
920
+ end
921
+
894
922
  class GooglePrivacyDlpV2beta1DatastoreKey
895
923
  # @private
896
924
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -952,6 +980,14 @@ module Google
952
980
  end
953
981
  end
954
982
 
983
+ class GooglePrivacyDlpV2beta1Dictionary
984
+ # @private
985
+ class Representation < Google::Apis::Core::JsonRepresentation
986
+ property :word_list, as: 'wordList', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1WordList, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1WordList::Representation
987
+
988
+ end
989
+ end
990
+
955
991
  class GooglePrivacyDlpV2beta1EntityId
956
992
  # @private
957
993
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1098,6 +1134,8 @@ module Google
1098
1134
  class GooglePrivacyDlpV2beta1InspectConfig
1099
1135
  # @private
1100
1136
  class Representation < Google::Apis::Core::JsonRepresentation
1137
+ collection :custom_info_types, as: 'customInfoTypes', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1CustomInfoType, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1CustomInfoType::Representation
1138
+
1101
1139
  property :exclude_types, as: 'excludeTypes'
1102
1140
  property :include_quote, as: 'includeQuote'
1103
1141
  collection :info_type_limits, as: 'infoTypeLimits', class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InfoTypeLimit, decorator: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InfoTypeLimit::Representation
@@ -1643,6 +1681,13 @@ module Google
1643
1681
  end
1644
1682
  end
1645
1683
 
1684
+ class GooglePrivacyDlpV2beta1WordList
1685
+ # @private
1686
+ class Representation < Google::Apis::Core::JsonRepresentation
1687
+ collection :words, as: 'words'
1688
+ end
1689
+ end
1690
+
1646
1691
  class GoogleProtobufEmpty
1647
1692
  # @private
1648
1693
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -0,0 +1,43 @@
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/dns_v1beta2/service.rb'
16
+ require 'google/apis/dns_v1beta2/classes.rb'
17
+ require 'google/apis/dns_v1beta2/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Google Cloud DNS API
22
+ #
23
+ # Configures and serves authoritative DNS records.
24
+ #
25
+ # @see https://developers.google.com/cloud-dns
26
+ module DnsV1beta2
27
+ VERSION = 'V1beta2'
28
+ REVISION = '20171019'
29
+
30
+ # View and manage your data across Google Cloud Platform services
31
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
32
+
33
+ # View your data across Google Cloud Platform services
34
+ AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
35
+
36
+ # View your DNS records hosted by Google Cloud DNS
37
+ AUTH_NDEV_CLOUDDNS_READONLY = 'https://www.googleapis.com/auth/ndev.clouddns.readonly'
38
+
39
+ # View and manage your DNS records hosted by Google Cloud DNS
40
+ AUTH_NDEV_CLOUDDNS_READWRITE = 'https://www.googleapis.com/auth/ndev.clouddns.readwrite'
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,915 @@
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
+ # An atomic update to a collection of ResourceRecordSets.
26
+ class Change
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Which ResourceRecordSets to add?
30
+ # Corresponds to the JSON property `additions`
31
+ # @return [Array<Google::Apis::DnsV1beta2::ResourceRecordSet>]
32
+ attr_accessor :additions
33
+
34
+ # Which ResourceRecordSets to remove? Must match existing data exactly.
35
+ # Corresponds to the JSON property `deletions`
36
+ # @return [Array<Google::Apis::DnsV1beta2::ResourceRecordSet>]
37
+ attr_accessor :deletions
38
+
39
+ # Unique identifier for the resource; defined by the server (output only).
40
+ # Corresponds to the JSON property `id`
41
+ # @return [String]
42
+ attr_accessor :id
43
+
44
+ # If the DNS queries for the zone will be served.
45
+ # Corresponds to the JSON property `isServing`
46
+ # @return [Boolean]
47
+ attr_accessor :is_serving
48
+ alias_method :is_serving?, :is_serving
49
+
50
+ # Identifies what kind of resource this is. Value: the fixed string "dns#change".
51
+ # Corresponds to the JSON property `kind`
52
+ # @return [String]
53
+ attr_accessor :kind
54
+
55
+ # The time that this operation was started by the server (output only). This is
56
+ # in RFC3339 text format.
57
+ # Corresponds to the JSON property `startTime`
58
+ # @return [String]
59
+ attr_accessor :start_time
60
+
61
+ # Status of the operation (output only).
62
+ # Corresponds to the JSON property `status`
63
+ # @return [String]
64
+ attr_accessor :status
65
+
66
+ def initialize(**args)
67
+ update!(**args)
68
+ end
69
+
70
+ # Update properties of this object
71
+ def update!(**args)
72
+ @additions = args[:additions] if args.key?(:additions)
73
+ @deletions = args[:deletions] if args.key?(:deletions)
74
+ @id = args[:id] if args.key?(:id)
75
+ @is_serving = args[:is_serving] if args.key?(:is_serving)
76
+ @kind = args[:kind] if args.key?(:kind)
77
+ @start_time = args[:start_time] if args.key?(:start_time)
78
+ @status = args[:status] if args.key?(:status)
79
+ end
80
+ end
81
+
82
+ # The response to a request to enumerate Changes to a ResourceRecordSets
83
+ # collection.
84
+ class ChangesListResponse
85
+ include Google::Apis::Core::Hashable
86
+
87
+ # The requested changes.
88
+ # Corresponds to the JSON property `changes`
89
+ # @return [Array<Google::Apis::DnsV1beta2::Change>]
90
+ attr_accessor :changes
91
+
92
+ # Elements common to every response.
93
+ # Corresponds to the JSON property `header`
94
+ # @return [Google::Apis::DnsV1beta2::ResponseHeader]
95
+ attr_accessor :header
96
+
97
+ # Type of resource.
98
+ # Corresponds to the JSON property `kind`
99
+ # @return [String]
100
+ attr_accessor :kind
101
+
102
+ # The presence of this field indicates that there exist more results following
103
+ # your last page of results in pagination order. To fetch them, make another
104
+ # list request using this value as your pagination token.
105
+ # In this way you can retrieve the complete contents of even very large
106
+ # collections one page at a time. However, if the contents of the collection
107
+ # change between the first and last paginated list request, the set of all
108
+ # elements returned will be an inconsistent view of the collection. There is no
109
+ # way to retrieve a "snapshot" of collections larger than the maximum page size.
110
+ # Corresponds to the JSON property `nextPageToken`
111
+ # @return [String]
112
+ attr_accessor :next_page_token
113
+
114
+ def initialize(**args)
115
+ update!(**args)
116
+ end
117
+
118
+ # Update properties of this object
119
+ def update!(**args)
120
+ @changes = args[:changes] if args.key?(:changes)
121
+ @header = args[:header] if args.key?(:header)
122
+ @kind = args[:kind] if args.key?(:kind)
123
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
124
+ end
125
+ end
126
+
127
+ # A DNSSEC key pair.
128
+ class DnsKey
129
+ include Google::Apis::Core::Hashable
130
+
131
+ # String mnemonic specifying the DNSSEC algorithm of this key. Immutable after
132
+ # creation time.
133
+ # Corresponds to the JSON property `algorithm`
134
+ # @return [String]
135
+ attr_accessor :algorithm
136
+
137
+ # The time that this resource was created in the control plane. This is in
138
+ # RFC3339 text format. Output only.
139
+ # Corresponds to the JSON property `creationTime`
140
+ # @return [String]
141
+ attr_accessor :creation_time
142
+
143
+ # A mutable string of at most 1024 characters associated with this resource for
144
+ # the user's convenience. Has no effect on the resource's function.
145
+ # Corresponds to the JSON property `description`
146
+ # @return [String]
147
+ attr_accessor :description
148
+
149
+ # Cryptographic hashes of the DNSKEY resource record associated with this DnsKey.
150
+ # These digests are needed to construct a DS record that points at this DNS key.
151
+ # Output only.
152
+ # Corresponds to the JSON property `digests`
153
+ # @return [Array<Google::Apis::DnsV1beta2::DnsKeyDigest>]
154
+ attr_accessor :digests
155
+
156
+ # Unique identifier for the resource; defined by the server (output only).
157
+ # Corresponds to the JSON property `id`
158
+ # @return [String]
159
+ attr_accessor :id
160
+
161
+ # Active keys will be used to sign subsequent changes to the ManagedZone.
162
+ # Inactive keys will still be present as DNSKEY Resource Records for the use of
163
+ # resolvers validating existing signatures.
164
+ # Corresponds to the JSON property `isActive`
165
+ # @return [Boolean]
166
+ attr_accessor :is_active
167
+ alias_method :is_active?, :is_active
168
+
169
+ # Length of the key in bits. Specified at creation time then immutable.
170
+ # Corresponds to the JSON property `keyLength`
171
+ # @return [Fixnum]
172
+ attr_accessor :key_length
173
+
174
+ # The key tag is a non-cryptographic hash of the a DNSKEY resource record
175
+ # associated with this DnsKey. The key tag can be used to identify a DNSKEY more
176
+ # quickly (but it is not a unique identifier). In particular, the key tag is
177
+ # used in a parent zone's DS record to point at the DNSKEY in this child
178
+ # ManagedZone. The key tag is a number in the range [0, 65535] and the algorithm
179
+ # to calculate it is specified in RFC4034 Appendix B. Output only.
180
+ # Corresponds to the JSON property `keyTag`
181
+ # @return [Fixnum]
182
+ attr_accessor :key_tag
183
+
184
+ # Identifies what kind of resource this is. Value: the fixed string "dns#dnsKey".
185
+ # Corresponds to the JSON property `kind`
186
+ # @return [String]
187
+ attr_accessor :kind
188
+
189
+ # Base64 encoded public half of this key. Output only.
190
+ # Corresponds to the JSON property `publicKey`
191
+ # @return [String]
192
+ attr_accessor :public_key
193
+
194
+ # One of "KEY_SIGNING" or "ZONE_SIGNING". Keys of type KEY_SIGNING have the
195
+ # Secure Entry Point flag set and, when active, will be used to sign only
196
+ # resource record sets of type DNSKEY. Otherwise, the Secure Entry Point flag
197
+ # will be cleared and this key will be used to sign only resource record sets of
198
+ # other types. Immutable after creation time.
199
+ # Corresponds to the JSON property `type`
200
+ # @return [String]
201
+ attr_accessor :type
202
+
203
+ def initialize(**args)
204
+ update!(**args)
205
+ end
206
+
207
+ # Update properties of this object
208
+ def update!(**args)
209
+ @algorithm = args[:algorithm] if args.key?(:algorithm)
210
+ @creation_time = args[:creation_time] if args.key?(:creation_time)
211
+ @description = args[:description] if args.key?(:description)
212
+ @digests = args[:digests] if args.key?(:digests)
213
+ @id = args[:id] if args.key?(:id)
214
+ @is_active = args[:is_active] if args.key?(:is_active)
215
+ @key_length = args[:key_length] if args.key?(:key_length)
216
+ @key_tag = args[:key_tag] if args.key?(:key_tag)
217
+ @kind = args[:kind] if args.key?(:kind)
218
+ @public_key = args[:public_key] if args.key?(:public_key)
219
+ @type = args[:type] if args.key?(:type)
220
+ end
221
+ end
222
+
223
+ #
224
+ class DnsKeyDigest
225
+ include Google::Apis::Core::Hashable
226
+
227
+ # The base-16 encoded bytes of this digest. Suitable for use in a DS resource
228
+ # record.
229
+ # Corresponds to the JSON property `digest`
230
+ # @return [String]
231
+ attr_accessor :digest
232
+
233
+ # Specifies the algorithm used to calculate this digest.
234
+ # Corresponds to the JSON property `type`
235
+ # @return [String]
236
+ attr_accessor :type
237
+
238
+ def initialize(**args)
239
+ update!(**args)
240
+ end
241
+
242
+ # Update properties of this object
243
+ def update!(**args)
244
+ @digest = args[:digest] if args.key?(:digest)
245
+ @type = args[:type] if args.key?(:type)
246
+ end
247
+ end
248
+
249
+ # Parameters for DnsKey key generation. Used for generating initial keys for a
250
+ # new ManagedZone and as default when adding a new DnsKey.
251
+ class DnsKeySpec
252
+ include Google::Apis::Core::Hashable
253
+
254
+ # String mnemonic specifying the DNSSEC algorithm of this key.
255
+ # Corresponds to the JSON property `algorithm`
256
+ # @return [String]
257
+ attr_accessor :algorithm
258
+
259
+ # Length of the keys in bits.
260
+ # Corresponds to the JSON property `keyLength`
261
+ # @return [Fixnum]
262
+ attr_accessor :key_length
263
+
264
+ # One of "KEY_SIGNING" or "ZONE_SIGNING". Keys of type KEY_SIGNING have the
265
+ # Secure Entry Point flag set and, when active, will be used to sign only
266
+ # resource record sets of type DNSKEY. Otherwise, the Secure Entry Point flag
267
+ # will be cleared and this key will be used to sign only resource record sets of
268
+ # other types.
269
+ # Corresponds to the JSON property `keyType`
270
+ # @return [String]
271
+ attr_accessor :key_type
272
+
273
+ # Identifies what kind of resource this is. Value: the fixed string "dns#
274
+ # dnsKeySpec".
275
+ # Corresponds to the JSON property `kind`
276
+ # @return [String]
277
+ attr_accessor :kind
278
+
279
+ def initialize(**args)
280
+ update!(**args)
281
+ end
282
+
283
+ # Update properties of this object
284
+ def update!(**args)
285
+ @algorithm = args[:algorithm] if args.key?(:algorithm)
286
+ @key_length = args[:key_length] if args.key?(:key_length)
287
+ @key_type = args[:key_type] if args.key?(:key_type)
288
+ @kind = args[:kind] if args.key?(:kind)
289
+ end
290
+ end
291
+
292
+ # The response to a request to enumerate DnsKeys in a ManagedZone.
293
+ class DnsKeysListResponse
294
+ include Google::Apis::Core::Hashable
295
+
296
+ # The requested resources.
297
+ # Corresponds to the JSON property `dnsKeys`
298
+ # @return [Array<Google::Apis::DnsV1beta2::DnsKey>]
299
+ attr_accessor :dns_keys
300
+
301
+ # Elements common to every response.
302
+ # Corresponds to the JSON property `header`
303
+ # @return [Google::Apis::DnsV1beta2::ResponseHeader]
304
+ attr_accessor :header
305
+
306
+ # Type of resource.
307
+ # Corresponds to the JSON property `kind`
308
+ # @return [String]
309
+ attr_accessor :kind
310
+
311
+ # The presence of this field indicates that there exist more results following
312
+ # your last page of results in pagination order. To fetch them, make another
313
+ # list request using this value as your pagination token.
314
+ # In this way you can retrieve the complete contents of even very large
315
+ # collections one page at a time. However, if the contents of the collection
316
+ # change between the first and last paginated list request, the set of all
317
+ # elements returned will be an inconsistent view of the collection. There is no
318
+ # way to retrieve a "snapshot" of collections larger than the maximum page size.
319
+ # Corresponds to the JSON property `nextPageToken`
320
+ # @return [String]
321
+ attr_accessor :next_page_token
322
+
323
+ def initialize(**args)
324
+ update!(**args)
325
+ end
326
+
327
+ # Update properties of this object
328
+ def update!(**args)
329
+ @dns_keys = args[:dns_keys] if args.key?(:dns_keys)
330
+ @header = args[:header] if args.key?(:header)
331
+ @kind = args[:kind] if args.key?(:kind)
332
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
333
+ end
334
+ end
335
+
336
+ # A zone is a subtree of the DNS namespace under one administrative
337
+ # responsibility. A ManagedZone is a resource that represents a DNS zone hosted
338
+ # by the Cloud DNS service.
339
+ class ManagedZone
340
+ include Google::Apis::Core::Hashable
341
+
342
+ # The time that this resource was created on the server. This is in RFC3339 text
343
+ # format. Output only.
344
+ # Corresponds to the JSON property `creationTime`
345
+ # @return [String]
346
+ attr_accessor :creation_time
347
+
348
+ # A mutable string of at most 1024 characters associated with this resource for
349
+ # the user's convenience. Has no effect on the managed zone's function.
350
+ # Corresponds to the JSON property `description`
351
+ # @return [String]
352
+ attr_accessor :description
353
+
354
+ # The DNS name of this managed zone, for instance "example.com.".
355
+ # Corresponds to the JSON property `dnsName`
356
+ # @return [String]
357
+ attr_accessor :dns_name
358
+
359
+ # DNSSEC configuration.
360
+ # Corresponds to the JSON property `dnssecConfig`
361
+ # @return [Google::Apis::DnsV1beta2::ManagedZoneDnsSecConfig]
362
+ attr_accessor :dnssec_config
363
+
364
+ # Unique identifier for the resource; defined by the server (output only)
365
+ # Corresponds to the JSON property `id`
366
+ # @return [Fixnum]
367
+ attr_accessor :id
368
+
369
+ # Identifies what kind of resource this is. Value: the fixed string "dns#
370
+ # managedZone".
371
+ # Corresponds to the JSON property `kind`
372
+ # @return [String]
373
+ attr_accessor :kind
374
+
375
+ # User assigned name for this resource. Must be unique within the project. The
376
+ # name must be 1-63 characters long, must begin with a letter, end with a letter
377
+ # or digit, and only contain lowercase letters, digits or dashes.
378
+ # Corresponds to the JSON property `name`
379
+ # @return [String]
380
+ attr_accessor :name
381
+
382
+ # Optionally specifies the NameServerSet for this ManagedZone. A NameServerSet
383
+ # is a set of DNS name servers that all host the same ManagedZones. Most users
384
+ # will leave this field unset.
385
+ # Corresponds to the JSON property `nameServerSet`
386
+ # @return [String]
387
+ attr_accessor :name_server_set
388
+
389
+ # Delegate your managed_zone to these virtual name servers; defined by the
390
+ # server (output only)
391
+ # Corresponds to the JSON property `nameServers`
392
+ # @return [Array<String>]
393
+ attr_accessor :name_servers
394
+
395
+ def initialize(**args)
396
+ update!(**args)
397
+ end
398
+
399
+ # Update properties of this object
400
+ def update!(**args)
401
+ @creation_time = args[:creation_time] if args.key?(:creation_time)
402
+ @description = args[:description] if args.key?(:description)
403
+ @dns_name = args[:dns_name] if args.key?(:dns_name)
404
+ @dnssec_config = args[:dnssec_config] if args.key?(:dnssec_config)
405
+ @id = args[:id] if args.key?(:id)
406
+ @kind = args[:kind] if args.key?(:kind)
407
+ @name = args[:name] if args.key?(:name)
408
+ @name_server_set = args[:name_server_set] if args.key?(:name_server_set)
409
+ @name_servers = args[:name_servers] if args.key?(:name_servers)
410
+ end
411
+ end
412
+
413
+ #
414
+ class ManagedZoneDnsSecConfig
415
+ include Google::Apis::Core::Hashable
416
+
417
+ # Specifies parameters that will be used for generating initial DnsKeys for this
418
+ # ManagedZone. Output only while state is not OFF.
419
+ # Corresponds to the JSON property `defaultKeySpecs`
420
+ # @return [Array<Google::Apis::DnsV1beta2::DnsKeySpec>]
421
+ attr_accessor :default_key_specs
422
+
423
+ # Identifies what kind of resource this is. Value: the fixed string "dns#
424
+ # managedZoneDnsSecConfig".
425
+ # Corresponds to the JSON property `kind`
426
+ # @return [String]
427
+ attr_accessor :kind
428
+
429
+ # Specifies the mechanism used to provide authenticated denial-of-existence
430
+ # responses. Output only while state is not OFF.
431
+ # Corresponds to the JSON property `nonExistence`
432
+ # @return [String]
433
+ attr_accessor :non_existence
434
+
435
+ # Specifies whether DNSSEC is enabled, and what mode it is in.
436
+ # Corresponds to the JSON property `state`
437
+ # @return [String]
438
+ attr_accessor :state
439
+
440
+ def initialize(**args)
441
+ update!(**args)
442
+ end
443
+
444
+ # Update properties of this object
445
+ def update!(**args)
446
+ @default_key_specs = args[:default_key_specs] if args.key?(:default_key_specs)
447
+ @kind = args[:kind] if args.key?(:kind)
448
+ @non_existence = args[:non_existence] if args.key?(:non_existence)
449
+ @state = args[:state] if args.key?(:state)
450
+ end
451
+ end
452
+
453
+ #
454
+ class ManagedZoneOperationsListResponse
455
+ include Google::Apis::Core::Hashable
456
+
457
+ # Elements common to every response.
458
+ # Corresponds to the JSON property `header`
459
+ # @return [Google::Apis::DnsV1beta2::ResponseHeader]
460
+ attr_accessor :header
461
+
462
+ # Type of resource.
463
+ # Corresponds to the JSON property `kind`
464
+ # @return [String]
465
+ attr_accessor :kind
466
+
467
+ # The presence of this field indicates that there exist more results following
468
+ # your last page of results in pagination order. To fetch them, make another
469
+ # list request using this value as your page token.
470
+ # In this way you can retrieve the complete contents of even very large
471
+ # collections one page at a time. However, if the contents of the collection
472
+ # change between the first and last paginated list request, the set of all
473
+ # elements returned will be an inconsistent view of the collection. There is no
474
+ # way to retrieve a consistent snapshot of a collection larger than the maximum
475
+ # page size.
476
+ # Corresponds to the JSON property `nextPageToken`
477
+ # @return [String]
478
+ attr_accessor :next_page_token
479
+
480
+ # The operation resources.
481
+ # Corresponds to the JSON property `operations`
482
+ # @return [Array<Google::Apis::DnsV1beta2::Operation>]
483
+ attr_accessor :operations
484
+
485
+ def initialize(**args)
486
+ update!(**args)
487
+ end
488
+
489
+ # Update properties of this object
490
+ def update!(**args)
491
+ @header = args[:header] if args.key?(:header)
492
+ @kind = args[:kind] if args.key?(:kind)
493
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
494
+ @operations = args[:operations] if args.key?(:operations)
495
+ end
496
+ end
497
+
498
+ #
499
+ class ManagedZonesDeleteResponse
500
+ include Google::Apis::Core::Hashable
501
+
502
+ # Elements common to every response.
503
+ # Corresponds to the JSON property `header`
504
+ # @return [Google::Apis::DnsV1beta2::ResponseHeader]
505
+ attr_accessor :header
506
+
507
+ def initialize(**args)
508
+ update!(**args)
509
+ end
510
+
511
+ # Update properties of this object
512
+ def update!(**args)
513
+ @header = args[:header] if args.key?(:header)
514
+ end
515
+ end
516
+
517
+ #
518
+ class ManagedZonesListResponse
519
+ include Google::Apis::Core::Hashable
520
+
521
+ # Elements common to every response.
522
+ # Corresponds to the JSON property `header`
523
+ # @return [Google::Apis::DnsV1beta2::ResponseHeader]
524
+ attr_accessor :header
525
+
526
+ # Type of resource.
527
+ # Corresponds to the JSON property `kind`
528
+ # @return [String]
529
+ attr_accessor :kind
530
+
531
+ # The managed zone resources.
532
+ # Corresponds to the JSON property `managedZones`
533
+ # @return [Array<Google::Apis::DnsV1beta2::ManagedZone>]
534
+ attr_accessor :managed_zones
535
+
536
+ # The presence of this field indicates that there exist more results following
537
+ # your last page of results in pagination order. To fetch them, make another
538
+ # list request using this value as your page token.
539
+ # In this way you can retrieve the complete contents of even very large
540
+ # collections one page at a time. However, if the contents of the collection
541
+ # change between the first and last paginated list request, the set of all
542
+ # elements returned will be an inconsistent view of the collection. There is no
543
+ # way to retrieve a consistent snapshot of a collection larger than the maximum
544
+ # page size.
545
+ # Corresponds to the JSON property `nextPageToken`
546
+ # @return [String]
547
+ attr_accessor :next_page_token
548
+
549
+ def initialize(**args)
550
+ update!(**args)
551
+ end
552
+
553
+ # Update properties of this object
554
+ def update!(**args)
555
+ @header = args[:header] if args.key?(:header)
556
+ @kind = args[:kind] if args.key?(:kind)
557
+ @managed_zones = args[:managed_zones] if args.key?(:managed_zones)
558
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
559
+ end
560
+ end
561
+
562
+ # An operation represents a successful mutation performed on a Cloud DNS
563
+ # resource. Operations provide: - An audit log of server resource mutations. - A
564
+ # way to recover/retry API calls in the case where the response is never
565
+ # received by the caller. Use the caller specified client_operation_id.
566
+ class Operation
567
+ include Google::Apis::Core::Hashable
568
+
569
+ # Only populated if the operation targeted a DnsKey (output only).
570
+ # Corresponds to the JSON property `dnsKeyContext`
571
+ # @return [Google::Apis::DnsV1beta2::OperationDnsKeyContext]
572
+ attr_accessor :dns_key_context
573
+
574
+ # Unique identifier for the resource. This is the client_operation_id if the
575
+ # client specified it when the mutation was initiated, otherwise, it is
576
+ # generated by the server. The name must be 1-63 characters long and match the
577
+ # regular expression [-a-z0-9]? (output only)
578
+ # Corresponds to the JSON property `id`
579
+ # @return [String]
580
+ attr_accessor :id
581
+
582
+ # Identifies what kind of resource this is. Value: the fixed string "dns#
583
+ # operation".
584
+ # Corresponds to the JSON property `kind`
585
+ # @return [String]
586
+ attr_accessor :kind
587
+
588
+ # The time that this operation was started by the server. This is in RFC3339
589
+ # text format (output only).
590
+ # Corresponds to the JSON property `startTime`
591
+ # @return [String]
592
+ attr_accessor :start_time
593
+
594
+ # Status of the operation. Can be one of the following: "PENDING" or "DONE" (
595
+ # output only).
596
+ # Corresponds to the JSON property `status`
597
+ # @return [String]
598
+ attr_accessor :status
599
+
600
+ # Type of the operation. Operations include insert, update, and delete (output
601
+ # only).
602
+ # Corresponds to the JSON property `type`
603
+ # @return [String]
604
+ attr_accessor :type
605
+
606
+ # User who requested the operation, for example: user@example.com. cloud-dns-
607
+ # system for operations automatically done by the system. (output only)
608
+ # Corresponds to the JSON property `user`
609
+ # @return [String]
610
+ attr_accessor :user
611
+
612
+ # Only populated if the operation targeted a ManagedZone (output only).
613
+ # Corresponds to the JSON property `zoneContext`
614
+ # @return [Google::Apis::DnsV1beta2::OperationManagedZoneContext]
615
+ attr_accessor :zone_context
616
+
617
+ def initialize(**args)
618
+ update!(**args)
619
+ end
620
+
621
+ # Update properties of this object
622
+ def update!(**args)
623
+ @dns_key_context = args[:dns_key_context] if args.key?(:dns_key_context)
624
+ @id = args[:id] if args.key?(:id)
625
+ @kind = args[:kind] if args.key?(:kind)
626
+ @start_time = args[:start_time] if args.key?(:start_time)
627
+ @status = args[:status] if args.key?(:status)
628
+ @type = args[:type] if args.key?(:type)
629
+ @user = args[:user] if args.key?(:user)
630
+ @zone_context = args[:zone_context] if args.key?(:zone_context)
631
+ end
632
+ end
633
+
634
+ #
635
+ class OperationDnsKeyContext
636
+ include Google::Apis::Core::Hashable
637
+
638
+ # A DNSSEC key pair.
639
+ # Corresponds to the JSON property `newValue`
640
+ # @return [Google::Apis::DnsV1beta2::DnsKey]
641
+ attr_accessor :new_value
642
+
643
+ # A DNSSEC key pair.
644
+ # Corresponds to the JSON property `oldValue`
645
+ # @return [Google::Apis::DnsV1beta2::DnsKey]
646
+ attr_accessor :old_value
647
+
648
+ def initialize(**args)
649
+ update!(**args)
650
+ end
651
+
652
+ # Update properties of this object
653
+ def update!(**args)
654
+ @new_value = args[:new_value] if args.key?(:new_value)
655
+ @old_value = args[:old_value] if args.key?(:old_value)
656
+ end
657
+ end
658
+
659
+ #
660
+ class OperationManagedZoneContext
661
+ include Google::Apis::Core::Hashable
662
+
663
+ # A zone is a subtree of the DNS namespace under one administrative
664
+ # responsibility. A ManagedZone is a resource that represents a DNS zone hosted
665
+ # by the Cloud DNS service.
666
+ # Corresponds to the JSON property `newValue`
667
+ # @return [Google::Apis::DnsV1beta2::ManagedZone]
668
+ attr_accessor :new_value
669
+
670
+ # A zone is a subtree of the DNS namespace under one administrative
671
+ # responsibility. A ManagedZone is a resource that represents a DNS zone hosted
672
+ # by the Cloud DNS service.
673
+ # Corresponds to the JSON property `oldValue`
674
+ # @return [Google::Apis::DnsV1beta2::ManagedZone]
675
+ attr_accessor :old_value
676
+
677
+ def initialize(**args)
678
+ update!(**args)
679
+ end
680
+
681
+ # Update properties of this object
682
+ def update!(**args)
683
+ @new_value = args[:new_value] if args.key?(:new_value)
684
+ @old_value = args[:old_value] if args.key?(:old_value)
685
+ end
686
+ end
687
+
688
+ # A project resource. The project is a top level container for resources
689
+ # including Cloud DNS ManagedZones. Projects can be created only in the APIs
690
+ # console.
691
+ class Project
692
+ include Google::Apis::Core::Hashable
693
+
694
+ # User assigned unique identifier for the resource (output only).
695
+ # Corresponds to the JSON property `id`
696
+ # @return [String]
697
+ attr_accessor :id
698
+
699
+ # Identifies what kind of resource this is. Value: the fixed string "dns#project"
700
+ # .
701
+ # Corresponds to the JSON property `kind`
702
+ # @return [String]
703
+ attr_accessor :kind
704
+
705
+ # Unique numeric identifier for the resource; defined by the server (output only)
706
+ # .
707
+ # Corresponds to the JSON property `number`
708
+ # @return [Fixnum]
709
+ attr_accessor :number
710
+
711
+ # Limits associated with a Project.
712
+ # Corresponds to the JSON property `quota`
713
+ # @return [Google::Apis::DnsV1beta2::Quota]
714
+ attr_accessor :quota
715
+
716
+ def initialize(**args)
717
+ update!(**args)
718
+ end
719
+
720
+ # Update properties of this object
721
+ def update!(**args)
722
+ @id = args[:id] if args.key?(:id)
723
+ @kind = args[:kind] if args.key?(:kind)
724
+ @number = args[:number] if args.key?(:number)
725
+ @quota = args[:quota] if args.key?(:quota)
726
+ end
727
+ end
728
+
729
+ # Limits associated with a Project.
730
+ class Quota
731
+ include Google::Apis::Core::Hashable
732
+
733
+ # Maximum allowed number of DnsKeys per ManagedZone.
734
+ # Corresponds to the JSON property `dnsKeysPerManagedZone`
735
+ # @return [Fixnum]
736
+ attr_accessor :dns_keys_per_managed_zone
737
+
738
+ # Identifies what kind of resource this is. Value: the fixed string "dns#quota".
739
+ # Corresponds to the JSON property `kind`
740
+ # @return [String]
741
+ attr_accessor :kind
742
+
743
+ # Maximum allowed number of managed zones in the project.
744
+ # Corresponds to the JSON property `managedZones`
745
+ # @return [Fixnum]
746
+ attr_accessor :managed_zones
747
+
748
+ # Maximum allowed number of ResourceRecords per ResourceRecordSet.
749
+ # Corresponds to the JSON property `resourceRecordsPerRrset`
750
+ # @return [Fixnum]
751
+ attr_accessor :resource_records_per_rrset
752
+
753
+ # Maximum allowed number of ResourceRecordSets to add per ChangesCreateRequest.
754
+ # Corresponds to the JSON property `rrsetAdditionsPerChange`
755
+ # @return [Fixnum]
756
+ attr_accessor :rrset_additions_per_change
757
+
758
+ # Maximum allowed number of ResourceRecordSets to delete per
759
+ # ChangesCreateRequest.
760
+ # Corresponds to the JSON property `rrsetDeletionsPerChange`
761
+ # @return [Fixnum]
762
+ attr_accessor :rrset_deletions_per_change
763
+
764
+ # Maximum allowed number of ResourceRecordSets per zone in the project.
765
+ # Corresponds to the JSON property `rrsetsPerManagedZone`
766
+ # @return [Fixnum]
767
+ attr_accessor :rrsets_per_managed_zone
768
+
769
+ # Maximum allowed size for total rrdata in one ChangesCreateRequest in bytes.
770
+ # Corresponds to the JSON property `totalRrdataSizePerChange`
771
+ # @return [Fixnum]
772
+ attr_accessor :total_rrdata_size_per_change
773
+
774
+ # DNSSEC algorithm and key length types that can be used for DnsKeys.
775
+ # Corresponds to the JSON property `whitelistedKeySpecs`
776
+ # @return [Array<Google::Apis::DnsV1beta2::DnsKeySpec>]
777
+ attr_accessor :whitelisted_key_specs
778
+
779
+ def initialize(**args)
780
+ update!(**args)
781
+ end
782
+
783
+ # Update properties of this object
784
+ def update!(**args)
785
+ @dns_keys_per_managed_zone = args[:dns_keys_per_managed_zone] if args.key?(:dns_keys_per_managed_zone)
786
+ @kind = args[:kind] if args.key?(:kind)
787
+ @managed_zones = args[:managed_zones] if args.key?(:managed_zones)
788
+ @resource_records_per_rrset = args[:resource_records_per_rrset] if args.key?(:resource_records_per_rrset)
789
+ @rrset_additions_per_change = args[:rrset_additions_per_change] if args.key?(:rrset_additions_per_change)
790
+ @rrset_deletions_per_change = args[:rrset_deletions_per_change] if args.key?(:rrset_deletions_per_change)
791
+ @rrsets_per_managed_zone = args[:rrsets_per_managed_zone] if args.key?(:rrsets_per_managed_zone)
792
+ @total_rrdata_size_per_change = args[:total_rrdata_size_per_change] if args.key?(:total_rrdata_size_per_change)
793
+ @whitelisted_key_specs = args[:whitelisted_key_specs] if args.key?(:whitelisted_key_specs)
794
+ end
795
+ end
796
+
797
+ # A unit of data that will be returned by the DNS servers.
798
+ class ResourceRecordSet
799
+ include Google::Apis::Core::Hashable
800
+
801
+ # Identifies what kind of resource this is. Value: the fixed string "dns#
802
+ # resourceRecordSet".
803
+ # Corresponds to the JSON property `kind`
804
+ # @return [String]
805
+ attr_accessor :kind
806
+
807
+ # For example, www.example.com.
808
+ # Corresponds to the JSON property `name`
809
+ # @return [String]
810
+ attr_accessor :name
811
+
812
+ # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1).
813
+ # Corresponds to the JSON property `rrdatas`
814
+ # @return [Array<String>]
815
+ attr_accessor :rrdatas
816
+
817
+ # As defined in RFC 4034 (section 3.2).
818
+ # Corresponds to the JSON property `signatureRrdatas`
819
+ # @return [Array<String>]
820
+ attr_accessor :signature_rrdatas
821
+
822
+ # Number of seconds that this ResourceRecordSet can be cached by resolvers.
823
+ # Corresponds to the JSON property `ttl`
824
+ # @return [Fixnum]
825
+ attr_accessor :ttl
826
+
827
+ # The identifier of a supported record type, for example, A, AAAA, MX, TXT, and
828
+ # so on.
829
+ # Corresponds to the JSON property `type`
830
+ # @return [String]
831
+ attr_accessor :type
832
+
833
+ def initialize(**args)
834
+ update!(**args)
835
+ end
836
+
837
+ # Update properties of this object
838
+ def update!(**args)
839
+ @kind = args[:kind] if args.key?(:kind)
840
+ @name = args[:name] if args.key?(:name)
841
+ @rrdatas = args[:rrdatas] if args.key?(:rrdatas)
842
+ @signature_rrdatas = args[:signature_rrdatas] if args.key?(:signature_rrdatas)
843
+ @ttl = args[:ttl] if args.key?(:ttl)
844
+ @type = args[:type] if args.key?(:type)
845
+ end
846
+ end
847
+
848
+ #
849
+ class ResourceRecordSetsListResponse
850
+ include Google::Apis::Core::Hashable
851
+
852
+ # Elements common to every response.
853
+ # Corresponds to the JSON property `header`
854
+ # @return [Google::Apis::DnsV1beta2::ResponseHeader]
855
+ attr_accessor :header
856
+
857
+ # Type of resource.
858
+ # Corresponds to the JSON property `kind`
859
+ # @return [String]
860
+ attr_accessor :kind
861
+
862
+ # The presence of this field indicates that there exist more results following
863
+ # your last page of results in pagination order. To fetch them, make another
864
+ # list request using this value as your pagination token.
865
+ # In this way you can retrieve the complete contents of even very large
866
+ # collections one page at a time. However, if the contents of the collection
867
+ # change between the first and last paginated list request, the set of all
868
+ # elements returned will be an inconsistent view of the collection. There is no
869
+ # way to retrieve a consistent snapshot of a collection larger than the maximum
870
+ # page size.
871
+ # Corresponds to the JSON property `nextPageToken`
872
+ # @return [String]
873
+ attr_accessor :next_page_token
874
+
875
+ # The resource record set resources.
876
+ # Corresponds to the JSON property `rrsets`
877
+ # @return [Array<Google::Apis::DnsV1beta2::ResourceRecordSet>]
878
+ attr_accessor :rrsets
879
+
880
+ def initialize(**args)
881
+ update!(**args)
882
+ end
883
+
884
+ # Update properties of this object
885
+ def update!(**args)
886
+ @header = args[:header] if args.key?(:header)
887
+ @kind = args[:kind] if args.key?(:kind)
888
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
889
+ @rrsets = args[:rrsets] if args.key?(:rrsets)
890
+ end
891
+ end
892
+
893
+ # Elements common to every response.
894
+ class ResponseHeader
895
+ include Google::Apis::Core::Hashable
896
+
897
+ # For mutating operation requests that completed successfully. This is the
898
+ # client_operation_id if the client specified it, otherwise it is generated by
899
+ # the server (output only).
900
+ # Corresponds to the JSON property `operationId`
901
+ # @return [String]
902
+ attr_accessor :operation_id
903
+
904
+ def initialize(**args)
905
+ update!(**args)
906
+ end
907
+
908
+ # Update properties of this object
909
+ def update!(**args)
910
+ @operation_id = args[:operation_id] if args.key?(:operation_id)
911
+ end
912
+ end
913
+ end
914
+ end
915
+ end