google-api-client 0.25.0 → 0.26.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (265) hide show
  1. checksums.yaml +4 -4
  2. data/{CONTRIBUTING.md → .github/CONTRIBUTING.md} +0 -0
  3. data/.github/ISSUE_TEMPLATE/bug_report.md +36 -0
  4. data/.github/ISSUE_TEMPLATE/feature_request.md +21 -0
  5. data/.github/ISSUE_TEMPLATE/support_request.md +7 -0
  6. data/.kokoro/build.bat +8 -0
  7. data/.kokoro/build.sh +36 -0
  8. data/.kokoro/common.cfg +22 -0
  9. data/.kokoro/continuous/common.cfg +20 -0
  10. data/.kokoro/continuous/linux.cfg +15 -0
  11. data/.kokoro/continuous/osx.cfg +3 -0
  12. data/.kokoro/continuous/windows.cfg +3 -0
  13. data/.kokoro/osx.sh +35 -0
  14. data/.kokoro/presubmit/common.cfg +19 -0
  15. data/.kokoro/presubmit/linux.cfg +14 -0
  16. data/.kokoro/presubmit/osx.cfg +3 -0
  17. data/.kokoro/presubmit/windows.cfg +3 -0
  18. data/.kokoro/trampoline.sh +24 -0
  19. data/.kokoro/windows.sh +32 -0
  20. data/CHANGELOG.md +83 -0
  21. data/Gemfile +2 -2
  22. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  23. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +3 -1
  24. data/generated/google/apis/alertcenter_v1beta1.rb +5 -3
  25. data/generated/google/apis/alertcenter_v1beta1/classes.rb +110 -101
  26. data/generated/google/apis/alertcenter_v1beta1/representations.rb +13 -0
  27. data/generated/google/apis/alertcenter_v1beta1/service.rb +83 -76
  28. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  29. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +7 -0
  30. data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +2 -0
  31. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +1 -1
  32. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  33. data/generated/google/apis/androidenterprise_v1/classes.rb +129 -44
  34. data/generated/google/apis/androidenterprise_v1/representations.rb +48 -0
  35. data/generated/google/apis/androidenterprise_v1/service.rb +218 -0
  36. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  37. data/generated/google/apis/androidmanagement_v1/classes.rb +1 -1
  38. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  39. data/generated/google/apis/androidpublisher_v3/classes.rb +8 -0
  40. data/generated/google/apis/androidpublisher_v3/representations.rb +1 -0
  41. data/generated/google/apis/appengine_v1.rb +1 -1
  42. data/generated/google/apis/appengine_v1beta.rb +1 -1
  43. data/generated/google/apis/bigquery_v2.rb +1 -1
  44. data/generated/google/apis/bigquery_v2/classes.rb +87 -29
  45. data/generated/google/apis/bigquery_v2/representations.rb +21 -0
  46. data/generated/google/apis/bigquery_v2/service.rb +7 -9
  47. data/generated/google/apis/calendar_v3.rb +2 -2
  48. data/generated/google/apis/calendar_v3/classes.rb +14 -6
  49. data/generated/google/apis/classroom_v1.rb +1 -1
  50. data/generated/google/apis/classroom_v1/service.rb +1 -1
  51. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  52. data/generated/google/apis/cloudasset_v1beta1/classes.rb +14 -10
  53. data/generated/google/apis/cloudasset_v1beta1/service.rb +4 -4
  54. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  55. data/generated/google/apis/clouddebugger_v2/classes.rb +2 -2
  56. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  57. data/generated/google/apis/cloudfunctions_v1/classes.rb +2 -3
  58. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  59. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +2 -3
  60. data/generated/google/apis/cloudiot_v1.rb +1 -1
  61. data/generated/google/apis/cloudiot_v1/classes.rb +127 -0
  62. data/generated/google/apis/cloudiot_v1/representations.rb +70 -0
  63. data/generated/google/apis/cloudiot_v1/service.rb +172 -2
  64. data/generated/google/apis/cloudkms_v1.rb +1 -1
  65. data/generated/google/apis/cloudkms_v1/service.rb +107 -0
  66. data/generated/google/apis/{cloudiot_v1beta1.rb → cloudscheduler_v1beta1.rb} +8 -12
  67. data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +882 -0
  68. data/generated/google/apis/cloudscheduler_v1beta1/representations.rb +264 -0
  69. data/generated/google/apis/cloudscheduler_v1beta1/service.rb +445 -0
  70. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  71. data/generated/google/apis/cloudsearch_v1/classes.rb +79 -1
  72. data/generated/google/apis/cloudsearch_v1/representations.rb +44 -0
  73. data/generated/google/apis/cloudsearch_v1/service.rb +88 -3
  74. data/generated/google/apis/composer_v1.rb +1 -1
  75. data/generated/google/apis/composer_v1/classes.rb +9 -0
  76. data/generated/google/apis/composer_v1/representations.rb +1 -0
  77. data/generated/google/apis/compute_alpha.rb +1 -1
  78. data/generated/google/apis/compute_alpha/classes.rb +938 -117
  79. data/generated/google/apis/compute_alpha/representations.rb +310 -2
  80. data/generated/google/apis/compute_alpha/service.rb +1203 -245
  81. data/generated/google/apis/compute_beta.rb +1 -1
  82. data/generated/google/apis/compute_beta/classes.rb +1175 -219
  83. data/generated/google/apis/compute_beta/representations.rb +375 -2
  84. data/generated/google/apis/compute_beta/service.rb +907 -139
  85. data/generated/google/apis/compute_v1.rb +1 -1
  86. data/generated/google/apis/compute_v1/classes.rb +1485 -143
  87. data/generated/google/apis/compute_v1/representations.rb +503 -0
  88. data/generated/google/apis/compute_v1/service.rb +1375 -85
  89. data/generated/google/apis/container_v1.rb +3 -3
  90. data/generated/google/apis/container_v1/classes.rb +99 -6
  91. data/generated/google/apis/container_v1/representations.rb +39 -0
  92. data/generated/google/apis/container_v1/service.rb +2 -2
  93. data/generated/google/apis/container_v1beta1.rb +3 -3
  94. data/generated/google/apis/container_v1beta1/classes.rb +162 -9
  95. data/generated/google/apis/container_v1beta1/representations.rb +80 -0
  96. data/generated/google/apis/container_v1beta1/service.rb +3 -3
  97. data/generated/google/apis/content_v2.rb +1 -1
  98. data/generated/google/apis/content_v2/classes.rb +40 -32
  99. data/generated/google/apis/content_v2/representations.rb +0 -1
  100. data/generated/google/apis/content_v2/service.rb +3 -3
  101. data/generated/google/apis/content_v2_1.rb +35 -0
  102. data/generated/google/apis/content_v2_1/classes.rb +9104 -0
  103. data/generated/google/apis/content_v2_1/representations.rb +3967 -0
  104. data/generated/google/apis/content_v2_1/service.rb +3463 -0
  105. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  106. data/generated/google/apis/dataflow_v1b3/classes.rb +82 -0
  107. data/generated/google/apis/dataflow_v1b3/representations.rb +33 -0
  108. data/generated/google/apis/dataflow_v1b3/service.rb +97 -6
  109. data/generated/google/apis/dataproc_v1.rb +1 -1
  110. data/generated/google/apis/dataproc_v1/classes.rb +15 -1
  111. data/generated/google/apis/dataproc_v1/representations.rb +2 -0
  112. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  113. data/generated/google/apis/dataproc_v1beta2/classes.rb +125 -1
  114. data/generated/google/apis/dataproc_v1beta2/representations.rb +41 -0
  115. data/generated/google/apis/dialogflow_v2.rb +1 -1
  116. data/generated/google/apis/dialogflow_v2/classes.rb +13 -6
  117. data/generated/google/apis/dialogflow_v2/service.rb +2 -0
  118. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  119. data/generated/google/apis/dialogflow_v2beta1/classes.rb +26 -6
  120. data/generated/google/apis/dialogflow_v2beta1/representations.rb +12 -0
  121. data/generated/google/apis/dialogflow_v2beta1/service.rb +261 -12
  122. data/generated/google/apis/dlp_v2.rb +1 -1
  123. data/generated/google/apis/dlp_v2/classes.rb +4 -4
  124. data/generated/google/apis/dns_v1beta2.rb +1 -1
  125. data/generated/google/apis/dns_v1beta2/classes.rb +326 -0
  126. data/generated/google/apis/dns_v1beta2/representations.rb +149 -0
  127. data/generated/google/apis/dns_v1beta2/service.rb +246 -0
  128. data/generated/google/apis/drive_v2.rb +3 -3
  129. data/generated/google/apis/drive_v3.rb +3 -3
  130. data/generated/google/apis/driveactivity_v2.rb +37 -0
  131. data/generated/google/apis/driveactivity_v2/classes.rb +1388 -0
  132. data/generated/google/apis/driveactivity_v2/representations.rb +799 -0
  133. data/generated/google/apis/driveactivity_v2/service.rb +89 -0
  134. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  135. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +8 -1
  136. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +1 -0
  137. data/generated/google/apis/firebasehosting_v1beta1.rb +3 -2
  138. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +43 -17
  139. data/generated/google/apis/firebasehosting_v1beta1/representations.rb +13 -0
  140. data/generated/google/apis/firebasehosting_v1beta1/service.rb +74 -1
  141. data/generated/google/apis/firestore_v1.rb +1 -1
  142. data/generated/google/apis/firestore_v1/classes.rb +2225 -520
  143. data/generated/google/apis/firestore_v1/representations.rb +800 -33
  144. data/generated/google/apis/firestore_v1/service.rb +526 -0
  145. data/generated/google/apis/fitness_v1.rb +1 -1
  146. data/generated/google/apis/fitness_v1/classes.rb +1 -2
  147. data/generated/google/apis/fitness_v1/service.rb +7 -3
  148. data/generated/google/apis/games_management_v1management.rb +1 -4
  149. data/generated/google/apis/games_v1.rb +1 -4
  150. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  151. data/generated/google/apis/genomics_v2alpha1/classes.rb +6 -1
  152. data/generated/google/apis/gmail_v1.rb +2 -2
  153. data/generated/google/apis/iap_v1.rb +34 -0
  154. data/generated/google/apis/iap_v1/classes.rb +308 -0
  155. data/generated/google/apis/iap_v1/representations.rb +126 -0
  156. data/generated/google/apis/iap_v1/service.rb +725 -0
  157. data/generated/google/apis/iap_v1beta1.rb +1 -1
  158. data/generated/google/apis/iap_v1beta1/classes.rb +0 -132
  159. data/generated/google/apis/iap_v1beta1/representations.rb +0 -32
  160. data/generated/google/apis/jobs_v2.rb +1 -1
  161. data/generated/google/apis/jobs_v2/classes.rb +8 -9
  162. data/generated/google/apis/jobs_v3.rb +1 -1
  163. data/generated/google/apis/jobs_v3/classes.rb +6 -6
  164. data/generated/google/apis/jobs_v3/service.rb +8 -8
  165. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  166. data/generated/google/apis/jobs_v3p1beta1/classes.rb +9 -9
  167. data/generated/google/apis/jobs_v3p1beta1/service.rb +8 -8
  168. data/generated/google/apis/monitoring_v3.rb +1 -1
  169. data/generated/google/apis/monitoring_v3/classes.rb +20 -7
  170. data/generated/google/apis/monitoring_v3/representations.rb +1 -0
  171. data/generated/google/apis/monitoring_v3/service.rb +0 -365
  172. data/generated/google/apis/pagespeedonline_v5.rb +32 -0
  173. data/generated/google/apis/pagespeedonline_v5/classes.rb +724 -0
  174. data/generated/google/apis/pagespeedonline_v5/representations.rb +315 -0
  175. data/generated/google/apis/pagespeedonline_v5/service.rb +116 -0
  176. data/generated/google/apis/people_v1.rb +3 -3
  177. data/generated/google/apis/pubsub_v1.rb +1 -1
  178. data/generated/google/apis/pubsub_v1/classes.rb +63 -12
  179. data/generated/google/apis/pubsub_v1/representations.rb +15 -0
  180. data/generated/google/apis/pubsub_v1/service.rb +26 -18
  181. data/generated/google/apis/redis_v1.rb +2 -3
  182. data/generated/google/apis/redis_v1/service.rb +1 -2
  183. data/generated/google/apis/redis_v1beta1.rb +2 -3
  184. data/generated/google/apis/redis_v1beta1/service.rb +1 -2
  185. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  186. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +2 -2
  187. data/generated/google/apis/script_v1.rb +24 -6
  188. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  189. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +66 -1
  190. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +30 -0
  191. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +89 -0
  192. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  193. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  194. data/generated/google/apis/servicemanagement_v1/classes.rb +7 -0
  195. data/generated/google/apis/servicemanagement_v1/representations.rb +1 -0
  196. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  197. data/generated/google/apis/servicenetworking_v1beta/classes.rb +84 -37
  198. data/generated/google/apis/servicenetworking_v1beta/representations.rb +15 -0
  199. data/generated/google/apis/servicenetworking_v1beta/service.rb +132 -43
  200. data/generated/google/apis/serviceusage_v1.rb +1 -1
  201. data/generated/google/apis/serviceusage_v1/classes.rb +1 -1
  202. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  203. data/generated/google/apis/serviceusage_v1beta1/classes.rb +1 -1
  204. data/generated/google/apis/sheets_v4.rb +4 -4
  205. data/generated/google/apis/slides_v1.rb +4 -4
  206. data/generated/google/apis/slides_v1/classes.rb +187 -2
  207. data/generated/google/apis/slides_v1/representations.rb +67 -0
  208. data/generated/google/apis/slides_v1/service.rb +4 -3
  209. data/generated/google/apis/sourcerepo_v1.rb +2 -2
  210. data/generated/google/apis/sourcerepo_v1/service.rb +1 -1
  211. data/generated/google/apis/speech_v1.rb +1 -1
  212. data/generated/google/apis/speech_v1/classes.rb +58 -10
  213. data/generated/google/apis/speech_v1/representations.rb +29 -1
  214. data/generated/google/apis/{speech_v1beta1.rb → speech_v1p1beta1.rb} +6 -6
  215. data/generated/google/apis/speech_v1p1beta1/classes.rb +922 -0
  216. data/generated/google/apis/speech_v1p1beta1/representations.rb +294 -0
  217. data/generated/google/apis/{speech_v1beta1 → speech_v1p1beta1}/service.rb +33 -35
  218. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  219. data/generated/google/apis/sqladmin_v1beta4/classes.rb +64 -3
  220. data/generated/google/apis/sqladmin_v1beta4/representations.rb +31 -0
  221. data/generated/google/apis/storage_v1.rb +1 -1
  222. data/generated/google/apis/storage_v1/classes.rb +54 -0
  223. data/generated/google/apis/storage_v1/representations.rb +31 -0
  224. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  225. data/generated/google/apis/streetviewpublish_v1/classes.rb +26 -0
  226. data/generated/google/apis/streetviewpublish_v1/representations.rb +4 -0
  227. data/generated/google/apis/streetviewpublish_v1/service.rb +29 -3
  228. data/generated/google/apis/tasks_v1.rb +1 -1
  229. data/generated/google/apis/testing_v1.rb +1 -1
  230. data/generated/google/apis/testing_v1/classes.rb +49 -19
  231. data/generated/google/apis/testing_v1/representations.rb +20 -2
  232. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  233. data/generated/google/apis/toolresults_v1beta3/classes.rb +77 -70
  234. data/generated/google/apis/vault_v1.rb +1 -1
  235. data/generated/google/apis/vault_v1/classes.rb +78 -7
  236. data/generated/google/apis/vault_v1/representations.rb +34 -1
  237. data/generated/google/apis/vault_v1/service.rb +141 -0
  238. data/generated/google/apis/vision_v1.rb +1 -1
  239. data/generated/google/apis/vision_v1/classes.rb +33 -0
  240. data/generated/google/apis/vision_v1/representations.rb +16 -0
  241. data/generated/google/apis/vision_v1/service.rb +2 -2
  242. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  243. data/generated/google/apis/vision_v1p1beta1/classes.rb +33 -0
  244. data/generated/google/apis/vision_v1p1beta1/representations.rb +16 -0
  245. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  246. data/generated/google/apis/vision_v1p2beta1/classes.rb +33 -0
  247. data/generated/google/apis/vision_v1p2beta1/representations.rb +16 -0
  248. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  249. data/google-api-client.gemspec +1 -1
  250. data/lib/google/api_client/auth/installed_app.rb +17 -2
  251. data/lib/google/api_client/client_secrets.rb +1 -1
  252. data/lib/google/apis/core/download.rb +2 -2
  253. data/lib/google/apis/errors.rb +9 -0
  254. data/lib/google/apis/generator/annotator.rb +2 -2
  255. data/lib/google/apis/version.rb +1 -1
  256. metadata +46 -17
  257. data/generated/google/apis/cloudiot_v1beta1/classes.rb +0 -959
  258. data/generated/google/apis/cloudiot_v1beta1/representations.rb +0 -375
  259. data/generated/google/apis/cloudiot_v1beta1/service.rb +0 -618
  260. data/generated/google/apis/dfareporting_v3_0.rb +0 -40
  261. data/generated/google/apis/dfareporting_v3_0/classes.rb +0 -12119
  262. data/generated/google/apis/dfareporting_v3_0/representations.rb +0 -4336
  263. data/generated/google/apis/dfareporting_v3_0/service.rb +0 -8701
  264. data/generated/google/apis/speech_v1beta1/classes.rb +0 -480
  265. data/generated/google/apis/speech_v1beta1/representations.rb +0 -194
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/dlp/docs/
28
28
  module DlpV2
29
29
  VERSION = 'V2'
30
- REVISION = '20181030'
30
+ REVISION = '20181204'
31
31
 
32
32
  # View and manage your data across Google Cloud Platform services
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -1161,8 +1161,8 @@ module Google
1161
1161
  # Pseudonymization method that generates surrogates via cryptographic hashing.
1162
1162
  # Uses SHA-256.
1163
1163
  # The key size must be either 32 or 64 bytes.
1164
- # Outputs a 32 byte digest as an uppercase hex string
1165
- # (for example, 41D1567F7F99F1DC2A5FAB886DEE5BEE).
1164
+ # Outputs a base64 encoded representation of the hashed output
1165
+ # (for example, L7k0BHmF1ha5U3NfGykjro4xWi1MPVQPjhMAZbSV9mM=).
1166
1166
  # Currently, only string and integer values can be hashed.
1167
1167
  class GooglePrivacyDlpV2CryptoHashConfig
1168
1168
  include Google::Apis::Core::Hashable
@@ -4066,8 +4066,8 @@ module Google
4066
4066
  # Pseudonymization method that generates surrogates via cryptographic hashing.
4067
4067
  # Uses SHA-256.
4068
4068
  # The key size must be either 32 or 64 bytes.
4069
- # Outputs a 32 byte digest as an uppercase hex string
4070
- # (for example, 41D1567F7F99F1DC2A5FAB886DEE5BEE).
4069
+ # Outputs a base64 encoded representation of the hashed output
4070
+ # (for example, L7k0BHmF1ha5U3NfGykjro4xWi1MPVQPjhMAZbSV9mM=).
4071
4071
  # Currently, only string and integer values can be hashed.
4072
4072
  # Corresponds to the JSON property `cryptoHashConfig`
4073
4073
  # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2CryptoHashConfig]
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/cloud-dns
26
26
  module DnsV1beta2
27
27
  VERSION = 'V1beta2'
28
- REVISION = '20181015'
28
+ REVISION = '20181115'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -361,6 +361,13 @@ module Google
361
361
  # @return [Google::Apis::DnsV1beta2::ManagedZoneDnsSecConfig]
362
362
  attr_accessor :dnssec_config
363
363
 
364
+ # The presence for this field indicates that outbound forwarding is enabled for
365
+ # this zone. The value of this field contains the set of destinations to forward
366
+ # to.
367
+ # Corresponds to the JSON property `forwardingConfig`
368
+ # @return [Google::Apis::DnsV1beta2::ManagedZoneForwardingConfig]
369
+ attr_accessor :forwarding_config
370
+
364
371
  # Unique identifier for the resource; defined by the server (output only)
365
372
  # Corresponds to the JSON property `id`
366
373
  # @return [Fixnum]
@@ -419,6 +426,7 @@ module Google
419
426
  @description = args[:description] if args.key?(:description)
420
427
  @dns_name = args[:dns_name] if args.key?(:dns_name)
421
428
  @dnssec_config = args[:dnssec_config] if args.key?(:dnssec_config)
429
+ @forwarding_config = args[:forwarding_config] if args.key?(:forwarding_config)
422
430
  @id = args[:id] if args.key?(:id)
423
431
  @kind = args[:kind] if args.key?(:kind)
424
432
  @labels = args[:labels] if args.key?(:labels)
@@ -470,6 +478,59 @@ module Google
470
478
  end
471
479
  end
472
480
 
481
+ #
482
+ class ManagedZoneForwardingConfig
483
+ include Google::Apis::Core::Hashable
484
+
485
+ # Identifies what kind of resource this is. Value: the fixed string "dns#
486
+ # managedZoneForwardingConfig".
487
+ # Corresponds to the JSON property `kind`
488
+ # @return [String]
489
+ attr_accessor :kind
490
+
491
+ # List of target name servers to forward to. Cloud DNS will select the best
492
+ # available name server if more than one target is given.
493
+ # Corresponds to the JSON property `targetNameServers`
494
+ # @return [Array<Google::Apis::DnsV1beta2::ManagedZoneForwardingConfigNameServerTarget>]
495
+ attr_accessor :target_name_servers
496
+
497
+ def initialize(**args)
498
+ update!(**args)
499
+ end
500
+
501
+ # Update properties of this object
502
+ def update!(**args)
503
+ @kind = args[:kind] if args.key?(:kind)
504
+ @target_name_servers = args[:target_name_servers] if args.key?(:target_name_servers)
505
+ end
506
+ end
507
+
508
+ #
509
+ class ManagedZoneForwardingConfigNameServerTarget
510
+ include Google::Apis::Core::Hashable
511
+
512
+ # IPv4 address of a target name server.
513
+ # Corresponds to the JSON property `ipv4Address`
514
+ # @return [String]
515
+ attr_accessor :ipv4_address
516
+
517
+ # Identifies what kind of resource this is. Value: the fixed string "dns#
518
+ # managedZoneForwardingConfigNameServerTarget".
519
+ # Corresponds to the JSON property `kind`
520
+ # @return [String]
521
+ attr_accessor :kind
522
+
523
+ def initialize(**args)
524
+ update!(**args)
525
+ end
526
+
527
+ # Update properties of this object
528
+ def update!(**args)
529
+ @ipv4_address = args[:ipv4_address] if args.key?(:ipv4_address)
530
+ @kind = args[:kind] if args.key?(:kind)
531
+ end
532
+ end
533
+
473
534
  #
474
535
  class ManagedZoneOperationsListResponse
475
536
  include Google::Apis::Core::Hashable
@@ -740,6 +801,247 @@ module Google
740
801
  end
741
802
  end
742
803
 
804
+ #
805
+ class PoliciesListResponse
806
+ include Google::Apis::Core::Hashable
807
+
808
+ # Elements common to every response.
809
+ # Corresponds to the JSON property `header`
810
+ # @return [Google::Apis::DnsV1beta2::ResponseHeader]
811
+ attr_accessor :header
812
+
813
+ # Type of resource.
814
+ # Corresponds to the JSON property `kind`
815
+ # @return [String]
816
+ attr_accessor :kind
817
+
818
+ # The presence of this field indicates that there exist more results following
819
+ # your last page of results in pagination order. To fetch them, make another
820
+ # list request using this value as your page token.
821
+ # In this way you can retrieve the complete contents of even very large
822
+ # collections one page at a time. However, if the contents of the collection
823
+ # change between the first and last paginated list request, the set of all
824
+ # elements returned will be an inconsistent view of the collection. There is no
825
+ # way to retrieve a consistent snapshot of a collection larger than the maximum
826
+ # page size.
827
+ # Corresponds to the JSON property `nextPageToken`
828
+ # @return [String]
829
+ attr_accessor :next_page_token
830
+
831
+ # The policy resources.
832
+ # Corresponds to the JSON property `policies`
833
+ # @return [Array<Google::Apis::DnsV1beta2::Policy>]
834
+ attr_accessor :policies
835
+
836
+ def initialize(**args)
837
+ update!(**args)
838
+ end
839
+
840
+ # Update properties of this object
841
+ def update!(**args)
842
+ @header = args[:header] if args.key?(:header)
843
+ @kind = args[:kind] if args.key?(:kind)
844
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
845
+ @policies = args[:policies] if args.key?(:policies)
846
+ end
847
+ end
848
+
849
+ #
850
+ class PoliciesPatchResponse
851
+ include Google::Apis::Core::Hashable
852
+
853
+ # Elements common to every response.
854
+ # Corresponds to the JSON property `header`
855
+ # @return [Google::Apis::DnsV1beta2::ResponseHeader]
856
+ attr_accessor :header
857
+
858
+ # A policy is a collection of rules applied to one or more networks that specify
859
+ # forwarding behavior for that network.
860
+ # Corresponds to the JSON property `policy`
861
+ # @return [Google::Apis::DnsV1beta2::Policy]
862
+ attr_accessor :policy
863
+
864
+ def initialize(**args)
865
+ update!(**args)
866
+ end
867
+
868
+ # Update properties of this object
869
+ def update!(**args)
870
+ @header = args[:header] if args.key?(:header)
871
+ @policy = args[:policy] if args.key?(:policy)
872
+ end
873
+ end
874
+
875
+ #
876
+ class PoliciesUpdateResponse
877
+ include Google::Apis::Core::Hashable
878
+
879
+ # Elements common to every response.
880
+ # Corresponds to the JSON property `header`
881
+ # @return [Google::Apis::DnsV1beta2::ResponseHeader]
882
+ attr_accessor :header
883
+
884
+ # A policy is a collection of rules applied to one or more networks that specify
885
+ # forwarding behavior for that network.
886
+ # Corresponds to the JSON property `policy`
887
+ # @return [Google::Apis::DnsV1beta2::Policy]
888
+ attr_accessor :policy
889
+
890
+ def initialize(**args)
891
+ update!(**args)
892
+ end
893
+
894
+ # Update properties of this object
895
+ def update!(**args)
896
+ @header = args[:header] if args.key?(:header)
897
+ @policy = args[:policy] if args.key?(:policy)
898
+ end
899
+ end
900
+
901
+ # A policy is a collection of rules applied to one or more networks that specify
902
+ # forwarding behavior for that network.
903
+ class Policy
904
+ include Google::Apis::Core::Hashable
905
+
906
+ # Sets an alternative name server for the associated networks. When specified,
907
+ # all DNS queries are forwarded to a name server that you choose. Names such as .
908
+ # internal are not available when an alternative name server is specified.
909
+ # Corresponds to the JSON property `alternativeNameServerConfig`
910
+ # @return [Google::Apis::DnsV1beta2::PolicyAlternativeNameServerConfig]
911
+ attr_accessor :alternative_name_server_config
912
+
913
+ # A mutable string of at most 1024 characters associated with this resource for
914
+ # the user's convenience. Has no effect on the policy's function.
915
+ # Corresponds to the JSON property `description`
916
+ # @return [String]
917
+ attr_accessor :description
918
+
919
+ # Allows networks bound to this policy to receive DNS queries sent by VMs or
920
+ # applications over VPN connections. When enabled, a virtual IP address will be
921
+ # allocated from each of the sub-networks that are bound to this policy.
922
+ # Corresponds to the JSON property `enableInboundForwarding`
923
+ # @return [Boolean]
924
+ attr_accessor :enable_inbound_forwarding
925
+ alias_method :enable_inbound_forwarding?, :enable_inbound_forwarding
926
+
927
+ # Unique identifier for the resource; defined by the server (output only).
928
+ # Corresponds to the JSON property `id`
929
+ # @return [Fixnum]
930
+ attr_accessor :id
931
+
932
+ # Identifies what kind of resource this is. Value: the fixed string "dns#policy".
933
+ # Corresponds to the JSON property `kind`
934
+ # @return [String]
935
+ attr_accessor :kind
936
+
937
+ # User assigned name for this policy.
938
+ # Corresponds to the JSON property `name`
939
+ # @return [String]
940
+ attr_accessor :name
941
+
942
+ # List of network names specifying networks to which this policy is applied.
943
+ # Corresponds to the JSON property `networks`
944
+ # @return [Array<Google::Apis::DnsV1beta2::PolicyNetwork>]
945
+ attr_accessor :networks
946
+
947
+ def initialize(**args)
948
+ update!(**args)
949
+ end
950
+
951
+ # Update properties of this object
952
+ def update!(**args)
953
+ @alternative_name_server_config = args[:alternative_name_server_config] if args.key?(:alternative_name_server_config)
954
+ @description = args[:description] if args.key?(:description)
955
+ @enable_inbound_forwarding = args[:enable_inbound_forwarding] if args.key?(:enable_inbound_forwarding)
956
+ @id = args[:id] if args.key?(:id)
957
+ @kind = args[:kind] if args.key?(:kind)
958
+ @name = args[:name] if args.key?(:name)
959
+ @networks = args[:networks] if args.key?(:networks)
960
+ end
961
+ end
962
+
963
+ #
964
+ class PolicyAlternativeNameServerConfig
965
+ include Google::Apis::Core::Hashable
966
+
967
+ # Identifies what kind of resource this is. Value: the fixed string "dns#
968
+ # policyAlternativeNameServerConfig".
969
+ # Corresponds to the JSON property `kind`
970
+ # @return [String]
971
+ attr_accessor :kind
972
+
973
+ # Sets an alternative name server for the associated networks. When specified,
974
+ # all DNS queries are forwarded to a name server that you choose. Names such as .
975
+ # internal are not available when an alternative name server is specified.
976
+ # Corresponds to the JSON property `targetNameServers`
977
+ # @return [Array<Google::Apis::DnsV1beta2::PolicyAlternativeNameServerConfigTargetNameServer>]
978
+ attr_accessor :target_name_servers
979
+
980
+ def initialize(**args)
981
+ update!(**args)
982
+ end
983
+
984
+ # Update properties of this object
985
+ def update!(**args)
986
+ @kind = args[:kind] if args.key?(:kind)
987
+ @target_name_servers = args[:target_name_servers] if args.key?(:target_name_servers)
988
+ end
989
+ end
990
+
991
+ #
992
+ class PolicyAlternativeNameServerConfigTargetNameServer
993
+ include Google::Apis::Core::Hashable
994
+
995
+ # IPv4 address to forward to.
996
+ # Corresponds to the JSON property `ipv4Address`
997
+ # @return [String]
998
+ attr_accessor :ipv4_address
999
+
1000
+ # Identifies what kind of resource this is. Value: the fixed string "dns#
1001
+ # policyAlternativeNameServerConfigTargetNameServer".
1002
+ # Corresponds to the JSON property `kind`
1003
+ # @return [String]
1004
+ attr_accessor :kind
1005
+
1006
+ def initialize(**args)
1007
+ update!(**args)
1008
+ end
1009
+
1010
+ # Update properties of this object
1011
+ def update!(**args)
1012
+ @ipv4_address = args[:ipv4_address] if args.key?(:ipv4_address)
1013
+ @kind = args[:kind] if args.key?(:kind)
1014
+ end
1015
+ end
1016
+
1017
+ #
1018
+ class PolicyNetwork
1019
+ include Google::Apis::Core::Hashable
1020
+
1021
+ # Identifies what kind of resource this is. Value: the fixed string "dns#
1022
+ # policyNetwork".
1023
+ # Corresponds to the JSON property `kind`
1024
+ # @return [String]
1025
+ attr_accessor :kind
1026
+
1027
+ # The fully qualified URL of the GCE private network to bind to. This should be
1028
+ # formatted like https://www.googleapis.com/compute/v1/projects/`project`/global/
1029
+ # networks/`network`
1030
+ # Corresponds to the JSON property `networkUrl`
1031
+ # @return [String]
1032
+ attr_accessor :network_url
1033
+
1034
+ def initialize(**args)
1035
+ update!(**args)
1036
+ end
1037
+
1038
+ # Update properties of this object
1039
+ def update!(**args)
1040
+ @kind = args[:kind] if args.key?(:kind)
1041
+ @network_url = args[:network_url] if args.key?(:network_url)
1042
+ end
1043
+ end
1044
+
743
1045
  # A project resource. The project is a top level container for resources
744
1046
  # including Cloud DNS ManagedZones. Projects can be created only in the APIs
745
1047
  # console.
@@ -811,6 +1113,16 @@ module Google
811
1113
  # @return [Fixnum]
812
1114
  attr_accessor :networks_per_managed_zone
813
1115
 
1116
+ # Maximum allowed number of networks per policy.
1117
+ # Corresponds to the JSON property `networksPerPolicy`
1118
+ # @return [Fixnum]
1119
+ attr_accessor :networks_per_policy
1120
+
1121
+ # Maximum allowed number of policies per project.
1122
+ # Corresponds to the JSON property `policies`
1123
+ # @return [Fixnum]
1124
+ attr_accessor :policies
1125
+
814
1126
  # Maximum allowed number of ResourceRecords per ResourceRecordSet.
815
1127
  # Corresponds to the JSON property `resourceRecordsPerRrset`
816
1128
  # @return [Fixnum]
@@ -832,6 +1144,16 @@ module Google
832
1144
  # @return [Fixnum]
833
1145
  attr_accessor :rrsets_per_managed_zone
834
1146
 
1147
+ # Maximum allowed number of target name servers per managed forwarding zone.
1148
+ # Corresponds to the JSON property `targetNameServersPerManagedZone`
1149
+ # @return [Fixnum]
1150
+ attr_accessor :target_name_servers_per_managed_zone
1151
+
1152
+ # Maximum allowed number of alternative target name servers per policy.
1153
+ # Corresponds to the JSON property `targetNameServersPerPolicy`
1154
+ # @return [Fixnum]
1155
+ attr_accessor :target_name_servers_per_policy
1156
+
835
1157
  # Maximum allowed size for total rrdata in one ChangesCreateRequest in bytes.
836
1158
  # Corresponds to the JSON property `totalRrdataSizePerChange`
837
1159
  # @return [Fixnum]
@@ -853,10 +1175,14 @@ module Google
853
1175
  @managed_zones = args[:managed_zones] if args.key?(:managed_zones)
854
1176
  @managed_zones_per_network = args[:managed_zones_per_network] if args.key?(:managed_zones_per_network)
855
1177
  @networks_per_managed_zone = args[:networks_per_managed_zone] if args.key?(:networks_per_managed_zone)
1178
+ @networks_per_policy = args[:networks_per_policy] if args.key?(:networks_per_policy)
1179
+ @policies = args[:policies] if args.key?(:policies)
856
1180
  @resource_records_per_rrset = args[:resource_records_per_rrset] if args.key?(:resource_records_per_rrset)
857
1181
  @rrset_additions_per_change = args[:rrset_additions_per_change] if args.key?(:rrset_additions_per_change)
858
1182
  @rrset_deletions_per_change = args[:rrset_deletions_per_change] if args.key?(:rrset_deletions_per_change)
859
1183
  @rrsets_per_managed_zone = args[:rrsets_per_managed_zone] if args.key?(:rrsets_per_managed_zone)
1184
+ @target_name_servers_per_managed_zone = args[:target_name_servers_per_managed_zone] if args.key?(:target_name_servers_per_managed_zone)
1185
+ @target_name_servers_per_policy = args[:target_name_servers_per_policy] if args.key?(:target_name_servers_per_policy)
860
1186
  @total_rrdata_size_per_change = args[:total_rrdata_size_per_change] if args.key?(:total_rrdata_size_per_change)
861
1187
  @whitelisted_key_specs = args[:whitelisted_key_specs] if args.key?(:whitelisted_key_specs)
862
1188
  end
@@ -70,6 +70,18 @@ module Google
70
70
  include Google::Apis::Core::JsonObjectSupport
71
71
  end
72
72
 
73
+ class ManagedZoneForwardingConfig
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class ManagedZoneForwardingConfigNameServerTarget
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
73
85
  class ManagedZoneOperationsListResponse
74
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
87
 
@@ -112,6 +124,48 @@ module Google
112
124
  include Google::Apis::Core::JsonObjectSupport
113
125
  end
114
126
 
127
+ class PoliciesListResponse
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class PoliciesPatchResponse
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class PoliciesUpdateResponse
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class Policy
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class PolicyAlternativeNameServerConfig
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class PolicyAlternativeNameServerConfigTargetNameServer
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class PolicyNetwork
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
115
169
  class Project
116
170
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
171
 
@@ -225,6 +279,8 @@ module Google
225
279
  property :dns_name, as: 'dnsName'
226
280
  property :dnssec_config, as: 'dnssecConfig', class: Google::Apis::DnsV1beta2::ManagedZoneDnsSecConfig, decorator: Google::Apis::DnsV1beta2::ManagedZoneDnsSecConfig::Representation
227
281
 
282
+ property :forwarding_config, as: 'forwardingConfig', class: Google::Apis::DnsV1beta2::ManagedZoneForwardingConfig, decorator: Google::Apis::DnsV1beta2::ManagedZoneForwardingConfig::Representation
283
+
228
284
  property :id, :numeric_string => true, as: 'id'
229
285
  property :kind, as: 'kind'
230
286
  hash :labels, as: 'labels'
@@ -248,6 +304,23 @@ module Google
248
304
  end
249
305
  end
250
306
 
307
+ class ManagedZoneForwardingConfig
308
+ # @private
309
+ class Representation < Google::Apis::Core::JsonRepresentation
310
+ property :kind, as: 'kind'
311
+ collection :target_name_servers, as: 'targetNameServers', class: Google::Apis::DnsV1beta2::ManagedZoneForwardingConfigNameServerTarget, decorator: Google::Apis::DnsV1beta2::ManagedZoneForwardingConfigNameServerTarget::Representation
312
+
313
+ end
314
+ end
315
+
316
+ class ManagedZoneForwardingConfigNameServerTarget
317
+ # @private
318
+ class Representation < Google::Apis::Core::JsonRepresentation
319
+ property :ipv4_address, as: 'ipv4Address'
320
+ property :kind, as: 'kind'
321
+ end
322
+ end
323
+
251
324
  class ManagedZoneOperationsListResponse
252
325
  # @private
253
326
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -325,6 +398,78 @@ module Google
325
398
  end
326
399
  end
327
400
 
401
+ class PoliciesListResponse
402
+ # @private
403
+ class Representation < Google::Apis::Core::JsonRepresentation
404
+ property :header, as: 'header', class: Google::Apis::DnsV1beta2::ResponseHeader, decorator: Google::Apis::DnsV1beta2::ResponseHeader::Representation
405
+
406
+ property :kind, as: 'kind'
407
+ property :next_page_token, as: 'nextPageToken'
408
+ collection :policies, as: 'policies', class: Google::Apis::DnsV1beta2::Policy, decorator: Google::Apis::DnsV1beta2::Policy::Representation
409
+
410
+ end
411
+ end
412
+
413
+ class PoliciesPatchResponse
414
+ # @private
415
+ class Representation < Google::Apis::Core::JsonRepresentation
416
+ property :header, as: 'header', class: Google::Apis::DnsV1beta2::ResponseHeader, decorator: Google::Apis::DnsV1beta2::ResponseHeader::Representation
417
+
418
+ property :policy, as: 'policy', class: Google::Apis::DnsV1beta2::Policy, decorator: Google::Apis::DnsV1beta2::Policy::Representation
419
+
420
+ end
421
+ end
422
+
423
+ class PoliciesUpdateResponse
424
+ # @private
425
+ class Representation < Google::Apis::Core::JsonRepresentation
426
+ property :header, as: 'header', class: Google::Apis::DnsV1beta2::ResponseHeader, decorator: Google::Apis::DnsV1beta2::ResponseHeader::Representation
427
+
428
+ property :policy, as: 'policy', class: Google::Apis::DnsV1beta2::Policy, decorator: Google::Apis::DnsV1beta2::Policy::Representation
429
+
430
+ end
431
+ end
432
+
433
+ class Policy
434
+ # @private
435
+ class Representation < Google::Apis::Core::JsonRepresentation
436
+ property :alternative_name_server_config, as: 'alternativeNameServerConfig', class: Google::Apis::DnsV1beta2::PolicyAlternativeNameServerConfig, decorator: Google::Apis::DnsV1beta2::PolicyAlternativeNameServerConfig::Representation
437
+
438
+ property :description, as: 'description'
439
+ property :enable_inbound_forwarding, as: 'enableInboundForwarding'
440
+ property :id, :numeric_string => true, as: 'id'
441
+ property :kind, as: 'kind'
442
+ property :name, as: 'name'
443
+ collection :networks, as: 'networks', class: Google::Apis::DnsV1beta2::PolicyNetwork, decorator: Google::Apis::DnsV1beta2::PolicyNetwork::Representation
444
+
445
+ end
446
+ end
447
+
448
+ class PolicyAlternativeNameServerConfig
449
+ # @private
450
+ class Representation < Google::Apis::Core::JsonRepresentation
451
+ property :kind, as: 'kind'
452
+ collection :target_name_servers, as: 'targetNameServers', class: Google::Apis::DnsV1beta2::PolicyAlternativeNameServerConfigTargetNameServer, decorator: Google::Apis::DnsV1beta2::PolicyAlternativeNameServerConfigTargetNameServer::Representation
453
+
454
+ end
455
+ end
456
+
457
+ class PolicyAlternativeNameServerConfigTargetNameServer
458
+ # @private
459
+ class Representation < Google::Apis::Core::JsonRepresentation
460
+ property :ipv4_address, as: 'ipv4Address'
461
+ property :kind, as: 'kind'
462
+ end
463
+ end
464
+
465
+ class PolicyNetwork
466
+ # @private
467
+ class Representation < Google::Apis::Core::JsonRepresentation
468
+ property :kind, as: 'kind'
469
+ property :network_url, as: 'networkUrl'
470
+ end
471
+ end
472
+
328
473
  class Project
329
474
  # @private
330
475
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -344,10 +489,14 @@ module Google
344
489
  property :managed_zones, as: 'managedZones'
345
490
  property :managed_zones_per_network, as: 'managedZonesPerNetwork'
346
491
  property :networks_per_managed_zone, as: 'networksPerManagedZone'
492
+ property :networks_per_policy, as: 'networksPerPolicy'
493
+ property :policies, as: 'policies'
347
494
  property :resource_records_per_rrset, as: 'resourceRecordsPerRrset'
348
495
  property :rrset_additions_per_change, as: 'rrsetAdditionsPerChange'
349
496
  property :rrset_deletions_per_change, as: 'rrsetDeletionsPerChange'
350
497
  property :rrsets_per_managed_zone, as: 'rrsetsPerManagedZone'
498
+ property :target_name_servers_per_managed_zone, as: 'targetNameServersPerManagedZone'
499
+ property :target_name_servers_per_policy, as: 'targetNameServersPerPolicy'
351
500
  property :total_rrdata_size_per_change, as: 'totalRrdataSizePerChange'
352
501
  collection :whitelisted_key_specs, as: 'whitelistedKeySpecs', class: Google::Apis::DnsV1beta2::DnsKeySpec, decorator: Google::Apis::DnsV1beta2::DnsKeySpec::Representation
353
502