google-api-client 0.11.2 → 0.11.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (246) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -1
  3. data/README.md +6 -0
  4. data/api_names.yaml +1 -0
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +38 -38
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +13 -13
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +10 -10
  8. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +201 -201
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +46 -46
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +119 -119
  12. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  13. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +52 -9
  14. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +9 -0
  15. data/generated/google/apis/adsense_v1_4.rb +1 -1
  16. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +926 -926
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +149 -149
  19. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  20. data/generated/google/apis/androidenterprise_v1/classes.rb +18 -11
  21. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
  22. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  23. data/generated/google/apis/appengine_v1.rb +1 -1
  24. data/generated/google/apis/appengine_v1/classes.rb +1487 -1487
  25. data/generated/google/apis/appengine_v1/representations.rb +229 -229
  26. data/generated/google/apis/appengine_v1/service.rb +188 -188
  27. data/generated/google/apis/appstate_v1.rb +1 -1
  28. data/generated/google/apis/bigquery_v2.rb +1 -1
  29. data/generated/google/apis/bigquery_v2/classes.rb +15 -10
  30. data/generated/google/apis/calendar_v3.rb +1 -1
  31. data/generated/google/apis/calendar_v3/service.rb +10 -4
  32. data/generated/google/apis/classroom_v1.rb +26 -17
  33. data/generated/google/apis/classroom_v1/classes.rb +990 -990
  34. data/generated/google/apis/classroom_v1/representations.rb +239 -239
  35. data/generated/google/apis/classroom_v1/service.rb +853 -853
  36. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  37. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  38. data/generated/google/apis/cloudbuild_v1/classes.rb +627 -627
  39. data/generated/google/apis/cloudbuild_v1/representations.rb +116 -116
  40. data/generated/google/apis/cloudbuild_v1/service.rb +162 -157
  41. data/generated/google/apis/clouddebugger_v2/classes.rb +258 -258
  42. data/generated/google/apis/clouddebugger_v2/representations.rb +80 -80
  43. data/generated/google/apis/clouddebugger_v2/service.rb +163 -163
  44. data/generated/google/apis/clouderrorreporting_v1beta1.rb +3 -4
  45. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +202 -167
  46. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +53 -37
  47. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +50 -51
  48. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  49. data/generated/google/apis/cloudkms_v1.rb +1 -1
  50. data/generated/google/apis/cloudkms_v1/classes.rb +628 -622
  51. data/generated/google/apis/cloudkms_v1/representations.rb +134 -133
  52. data/generated/google/apis/cloudkms_v1/service.rb +190 -190
  53. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  54. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +835 -835
  55. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +138 -138
  56. data/generated/google/apis/cloudresourcemanager_v1/service.rb +474 -474
  57. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +386 -386
  59. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +75 -75
  60. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +64 -64
  61. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  62. data/generated/google/apis/cloudtrace_v1/classes.rb +114 -114
  63. data/generated/google/apis/cloudtrace_v1/representations.rb +23 -23
  64. data/generated/google/apis/cloudtrace_v1/service.rb +14 -14
  65. data/generated/google/apis/compute_beta.rb +1 -1
  66. data/generated/google/apis/compute_beta/classes.rb +66 -25
  67. data/generated/google/apis/compute_beta/representations.rb +16 -0
  68. data/generated/google/apis/compute_beta/service.rb +85 -3
  69. data/generated/google/apis/compute_v1.rb +1 -1
  70. data/generated/google/apis/compute_v1/classes.rb +375 -24
  71. data/generated/google/apis/compute_v1/representations.rb +155 -0
  72. data/generated/google/apis/compute_v1/service.rb +481 -3
  73. data/generated/google/apis/container_v1.rb +1 -1
  74. data/generated/google/apis/container_v1/classes.rb +301 -301
  75. data/generated/google/apis/container_v1/representations.rb +59 -59
  76. data/generated/google/apis/container_v1/service.rb +178 -178
  77. data/generated/google/apis/content_v2.rb +1 -1
  78. data/generated/google/apis/content_v2/classes.rb +37 -2
  79. data/generated/google/apis/content_v2/representations.rb +15 -0
  80. data/generated/google/apis/content_v2/service.rb +58 -3
  81. data/generated/google/apis/dataflow_v1b3.rb +4 -1
  82. data/generated/google/apis/dataflow_v1b3/classes.rb +3514 -3279
  83. data/generated/google/apis/dataflow_v1b3/representations.rb +530 -440
  84. data/generated/google/apis/dataflow_v1b3/service.rb +378 -137
  85. data/generated/google/apis/dataproc_v1.rb +1 -1
  86. data/generated/google/apis/dataproc_v1/classes.rb +446 -446
  87. data/generated/google/apis/dataproc_v1/representations.rb +96 -96
  88. data/generated/google/apis/dataproc_v1/service.rb +302 -302
  89. data/generated/google/apis/datastore_v1.rb +1 -1
  90. data/generated/google/apis/datastore_v1/classes.rb +370 -374
  91. data/generated/google/apis/datastore_v1/representations.rb +120 -120
  92. data/generated/google/apis/datastore_v1/service.rb +62 -62
  93. data/generated/google/apis/dns_v1.rb +1 -1
  94. data/generated/google/apis/dns_v2beta1.rb +1 -1
  95. data/generated/google/apis/doubleclickbidmanager_v1.rb +3 -0
  96. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  97. data/generated/google/apis/drive_v2.rb +1 -1
  98. data/generated/google/apis/drive_v2/classes.rb +24 -21
  99. data/generated/google/apis/drive_v3.rb +1 -1
  100. data/generated/google/apis/drive_v3/classes.rb +24 -22
  101. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  102. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +148 -149
  103. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +42 -42
  104. data/generated/google/apis/firebaserules_v1/classes.rb +71 -71
  105. data/generated/google/apis/firebaserules_v1/representations.rb +22 -22
  106. data/generated/google/apis/firebaserules_v1/service.rb +68 -68
  107. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  108. data/generated/google/apis/games_management_v1management.rb +1 -1
  109. data/generated/google/apis/games_v1.rb +1 -1
  110. data/generated/google/apis/genomics_v1.rb +1 -1
  111. data/generated/google/apis/genomics_v1/classes.rb +2348 -2348
  112. data/generated/google/apis/genomics_v1/representations.rb +430 -430
  113. data/generated/google/apis/genomics_v1/service.rb +1159 -1159
  114. data/generated/google/apis/gmail_v1.rb +1 -1
  115. data/generated/google/apis/gmail_v1/service.rb +2 -2
  116. data/generated/google/apis/iam_v1.rb +1 -1
  117. data/generated/google/apis/iam_v1/classes.rb +305 -298
  118. data/generated/google/apis/iam_v1/representations.rb +97 -96
  119. data/generated/google/apis/iam_v1/service.rb +86 -86
  120. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  121. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  122. data/generated/google/apis/kgsearch_v1/service.rb +10 -10
  123. data/generated/google/apis/language_v1.rb +4 -4
  124. data/generated/google/apis/language_v1/classes.rb +452 -452
  125. data/generated/google/apis/language_v1/representations.rb +93 -93
  126. data/generated/google/apis/language_v1/service.rb +48 -48
  127. data/generated/google/apis/language_v1beta1.rb +4 -4
  128. data/generated/google/apis/language_v1beta1/classes.rb +84 -84
  129. data/generated/google/apis/language_v1beta1/representations.rb +22 -22
  130. data/generated/google/apis/language_v1beta1/service.rb +3 -3
  131. data/generated/google/apis/logging_v2.rb +1 -1
  132. data/generated/google/apis/logging_v2/classes.rb +884 -873
  133. data/generated/google/apis/logging_v2/representations.rb +167 -166
  134. data/generated/google/apis/logging_v2/service.rb +430 -430
  135. data/generated/google/apis/logging_v2beta1.rb +1 -1
  136. data/generated/google/apis/logging_v2beta1/classes.rb +550 -539
  137. data/generated/google/apis/logging_v2beta1/representations.rb +124 -123
  138. data/generated/google/apis/logging_v2beta1/service.rb +292 -292
  139. data/generated/google/apis/manufacturers_v1/classes.rb +322 -322
  140. data/generated/google/apis/manufacturers_v1/representations.rb +66 -66
  141. data/generated/google/apis/ml_v1.rb +1 -1
  142. data/generated/google/apis/ml_v1/classes.rb +501 -494
  143. data/generated/google/apis/ml_v1/representations.rb +92 -91
  144. data/generated/google/apis/ml_v1/service.rb +190 -190
  145. data/generated/google/apis/monitoring_v3.rb +1 -1
  146. data/generated/google/apis/monitoring_v3/classes.rb +878 -878
  147. data/generated/google/apis/monitoring_v3/representations.rb +176 -176
  148. data/generated/google/apis/monitoring_v3/service.rb +223 -262
  149. data/generated/google/apis/oauth2_v2.rb +1 -1
  150. data/generated/google/apis/partners_v2.rb +1 -1
  151. data/generated/google/apis/partners_v2/classes.rb +1506 -1506
  152. data/generated/google/apis/partners_v2/representations.rb +370 -370
  153. data/generated/google/apis/partners_v2/service.rb +393 -393
  154. data/generated/google/apis/people_v1.rb +13 -13
  155. data/generated/google/apis/people_v1/classes.rb +597 -594
  156. data/generated/google/apis/people_v1/representations.rb +121 -121
  157. data/generated/google/apis/people_v1/service.rb +39 -48
  158. data/generated/google/apis/plus_domains_v1.rb +1 -1
  159. data/generated/google/apis/plus_v1.rb +1 -1
  160. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  161. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +323 -327
  162. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +100 -100
  163. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +184 -184
  164. data/generated/google/apis/pubsub_v1.rb +1 -1
  165. data/generated/google/apis/pubsub_v1/classes.rb +178 -178
  166. data/generated/google/apis/pubsub_v1/representations.rb +55 -55
  167. data/generated/google/apis/pubsub_v1/service.rb +357 -357
  168. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  169. data/generated/google/apis/runtimeconfig_v1/classes.rb +20 -20
  170. data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
  171. data/generated/google/apis/runtimeconfig_v1/service.rb +12 -7
  172. data/generated/google/apis/script_v1.rb +16 -16
  173. data/generated/google/apis/script_v1/classes.rb +113 -113
  174. data/generated/google/apis/script_v1/representations.rb +28 -28
  175. data/generated/google/apis/script_v1/service.rb +4 -4
  176. data/generated/google/apis/searchconsole_v1.rb +1 -1
  177. data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
  178. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  179. data/generated/google/apis/searchconsole_v1/service.rb +6 -6
  180. data/generated/google/apis/servicecontrol_v1.rb +4 -4
  181. data/generated/google/apis/servicecontrol_v1/classes.rb +1146 -1145
  182. data/generated/google/apis/servicecontrol_v1/representations.rb +203 -203
  183. data/generated/google/apis/servicecontrol_v1/service.rb +57 -57
  184. data/generated/google/apis/servicemanagement_v1.rb +4 -4
  185. data/generated/google/apis/servicemanagement_v1/classes.rb +3486 -3360
  186. data/generated/google/apis/servicemanagement_v1/representations.rb +342 -329
  187. data/generated/google/apis/servicemanagement_v1/service.rb +260 -250
  188. data/generated/google/apis/serviceuser_v1.rb +1 -1
  189. data/generated/google/apis/serviceuser_v1/classes.rb +2716 -2596
  190. data/generated/google/apis/serviceuser_v1/representations.rb +391 -379
  191. data/generated/google/apis/serviceuser_v1/service.rb +16 -16
  192. data/generated/google/apis/sheets_v4.rb +1 -1
  193. data/generated/google/apis/sheets_v4/classes.rb +4255 -4252
  194. data/generated/google/apis/sheets_v4/representations.rb +548 -548
  195. data/generated/google/apis/sheets_v4/service.rb +170 -170
  196. data/generated/google/apis/slides_v1.rb +4 -4
  197. data/generated/google/apis/slides_v1/classes.rb +2945 -2916
  198. data/generated/google/apis/slides_v1/representations.rb +700 -697
  199. data/generated/google/apis/slides_v1/service.rb +44 -44
  200. data/generated/google/apis/sourcerepo_v1.rb +2 -2
  201. data/generated/google/apis/sourcerepo_v1/classes.rb +419 -410
  202. data/generated/google/apis/sourcerepo_v1/representations.rb +88 -87
  203. data/generated/google/apis/sourcerepo_v1/service.rb +67 -58
  204. data/generated/google/apis/spanner_v1/classes.rb +2187 -2187
  205. data/generated/google/apis/spanner_v1/representations.rb +323 -323
  206. data/generated/google/apis/spanner_v1/service.rb +383 -383
  207. data/generated/google/apis/speech_v1beta1.rb +1 -1
  208. data/generated/google/apis/speech_v1beta1/classes.rb +226 -226
  209. data/generated/google/apis/speech_v1beta1/representations.rb +44 -44
  210. data/generated/google/apis/speech_v1beta1/service.rb +37 -32
  211. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  212. data/generated/google/apis/sqladmin_v1beta4/classes.rb +10 -28
  213. data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -16
  214. data/generated/google/apis/sqladmin_v1beta4/service.rb +1 -1
  215. data/generated/google/apis/storage_v1.rb +1 -1
  216. data/generated/google/apis/storage_v1/classes.rb +26 -0
  217. data/generated/google/apis/storage_v1/representations.rb +15 -0
  218. data/generated/google/apis/storage_v1/service.rb +168 -42
  219. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  220. data/generated/google/apis/storagetransfer_v1/classes.rb +218 -218
  221. data/generated/google/apis/storagetransfer_v1/representations.rb +47 -47
  222. data/generated/google/apis/storagetransfer_v1/service.rb +68 -68
  223. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  224. data/generated/google/apis/toolresults_v1beta3/classes.rb +7 -4
  225. data/generated/google/apis/toolresults_v1beta3/service.rb +9 -8
  226. data/generated/google/apis/translate_v2.rb +11 -4
  227. data/generated/google/apis/translate_v2/classes.rb +140 -37
  228. data/generated/google/apis/translate_v2/representations.rb +62 -15
  229. data/generated/google/apis/translate_v2/service.rb +119 -66
  230. data/generated/google/apis/vision_v1.rb +1 -1
  231. data/generated/google/apis/vision_v1/classes.rb +1265 -1273
  232. data/generated/google/apis/vision_v1/representations.rb +202 -202
  233. data/generated/google/apis/vision_v1/service.rb +4 -4
  234. data/generated/google/apis/webmasters_v3.rb +1 -1
  235. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  236. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  237. data/generated/google/apis/youtube_partner_v1/classes.rb +2 -1
  238. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  239. data/generated/google/apis/youtubereporting_v1/classes.rb +91 -91
  240. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  241. data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
  242. data/lib/google/apis/core/api_command.rb +43 -10
  243. data/lib/google/apis/core/json_representation.rb +1 -1
  244. data/lib/google/apis/options.rb +6 -2
  245. data/lib/google/apis/version.rb +1 -1
  246. metadata +3 -3
@@ -1336,23 +1336,20 @@ module Google
1336
1336
  class AutoscalingPolicyCustomMetricUtilization
1337
1337
  include Google::Apis::Core::Hashable
1338
1338
 
1339
- # The identifier of the Stackdriver Monitoring metric. The metric cannot have
1340
- # negative values and should be a utilization metric, which means that the
1339
+ # The identifier (type) of the Stackdriver Monitoring metric. The metric cannot
1340
+ # have negative values and should be a utilization metric, which means that the
1341
1341
  # number of virtual machines handling requests should increase or decrease
1342
- # proportionally to the metric. The metric must also have a label of compute.
1343
- # googleapis.com/resource_id with the value of the instance's unique ID,
1344
- # although this alone does not guarantee that the metric is valid.
1345
- # For example, the following is a valid metric:
1346
- # compute.googleapis.com/instance/network/received_bytes_count
1347
- # The following is not a valid metric because it does not increase or decrease
1348
- # based on usage:
1349
- # compute.googleapis.com/instance/cpu/reserved_cores
1342
+ # proportionally to the metric.
1343
+ # The metric must have a value type of INT64 or DOUBLE.
1350
1344
  # Corresponds to the JSON property `metric`
1351
1345
  # @return [String]
1352
1346
  attr_accessor :metric
1353
1347
 
1354
- # Target value of the metric which autoscaler should maintain. Must be a
1348
+ # The target value of the metric that autoscaler should maintain. This must be a
1355
1349
  # positive value.
1350
+ # For example, a good metric to use as a utilization_target is compute.
1351
+ # googleapis.com/instance/network/received_bytes_count. The autoscaler will work
1352
+ # to keep this value constant for each of the instances.
1356
1353
  # Corresponds to the JSON property `utilizationTarget`
1357
1354
  # @return [Float]
1358
1355
  attr_accessor :utilization_target
@@ -1893,7 +1890,7 @@ module Google
1893
1890
  # @return [String]
1894
1891
  attr_accessor :oauth2_client_secret
1895
1892
 
1896
- #
1893
+ # [Output Only] SHA256 hash value for the field oauth2_client_secret above.
1897
1894
  # Corresponds to the JSON property `oauth2ClientSecretSha256`
1898
1895
  # @return [String]
1899
1896
  attr_accessor :oauth2_client_secret_sha256
@@ -3418,7 +3415,7 @@ module Google
3418
3415
  # @return [Fixnum]
3419
3416
  attr_accessor :id
3420
3417
 
3421
- # [Output Ony] Type of the resource. Always compute#firewall for firewall rules.
3418
+ # [Output Only] Type of the resource. Always compute#firewall for firewall rules.
3422
3419
  # Corresponds to the JSON property `kind`
3423
3420
  # @return [String]
3424
3421
  attr_accessor :kind
@@ -3635,13 +3632,14 @@ module Google
3635
3632
  # The IP address that this forwarding rule is serving on behalf of.
3636
3633
  # For global forwarding rules, the address must be a global IP. For regional
3637
3634
  # forwarding rules, the address must live in the same region as the forwarding
3638
- # rule. By default, this field is empty and an ephemeral IP from the same scope (
3639
- # global or regional) will be assigned.
3635
+ # rule. By default, this field is empty and an ephemeral IPv4 address from the
3636
+ # same scope (global or regional) will be assigned. A regional forwarding rule
3637
+ # supports IPv4 only. A global forwarding rule supports either IPv4 or IPv6.
3640
3638
  # When the load balancing scheme is INTERNAL, this can only be an RFC 1918 IP
3641
3639
  # address belonging to the network/subnetwork configured for the forwarding rule.
3642
3640
  # A reserved address cannot be used. If the field is empty, the IP address will
3643
3641
  # be automatically allocated from the internal IP range of the subnetwork or
3644
- # network configured for this forwarding rule. Only IPv4 is supported.
3642
+ # network configured for this forwarding rule.
3645
3643
  # Corresponds to the JSON property `IPAddress`
3646
3644
  # @return [String]
3647
3645
  attr_accessor :ip_address
@@ -4775,11 +4773,11 @@ module Google
4775
4773
  attr_accessor :family
4776
4774
 
4777
4775
  # A list of features to enable on the guest OS. Applicable for bootable images
4778
- # only. Currently, only one feature can be enabled, VIRTIO_SCSCI_MULTIQUEUE,
4776
+ # only. Currently, only one feature can be enabled, VIRTIO_SCSI_MULTIQUEUE,
4779
4777
  # which allows each virtual CPU to have its own queue. For Windows images, you
4780
- # can only enable VIRTIO_SCSCI_MULTIQUEUE on images with driver version 1.2.0.
4778
+ # can only enable VIRTIO_SCSI_MULTIQUEUE on images with driver version 1.2.0.
4781
4779
  # 1621 or higher. Linux images with kernel versions 3.17 and higher will support
4782
- # VIRTIO_SCSCI_MULTIQUEUE.
4780
+ # VIRTIO_SCSI_MULTIQUEUE.
4783
4781
  # For new Windows images, the server might also populate this field with the
4784
4782
  # value WINDOWS, to indicate that this is a Windows image. This value is purely
4785
4783
  # informational and does not enable or disable any features.
@@ -5084,6 +5082,12 @@ module Google
5084
5082
  # @return [Google::Apis::ComputeBeta::Metadata]
5085
5083
  attr_accessor :metadata
5086
5084
 
5085
+ # Minimum cpu/platform to be used by this instance. We may schedule on the
5086
+ # specified or later cpu/platform.
5087
+ # Corresponds to the JSON property `minCpuPlatform`
5088
+ # @return [String]
5089
+ attr_accessor :min_cpu_platform
5090
+
5087
5091
  # The name of the resource, provided by the client when initially creating the
5088
5092
  # resource. The resource name must be 1-63 characters long, and comply with
5089
5093
  # RFC1035. Specifically, the name must be 1-63 characters long and match the
@@ -5160,6 +5164,7 @@ module Google
5160
5164
  @labels = args[:labels] if args.key?(:labels)
5161
5165
  @machine_type = args[:machine_type] if args.key?(:machine_type)
5162
5166
  @metadata = args[:metadata] if args.key?(:metadata)
5167
+ @min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform)
5163
5168
  @name = args[:name] if args.key?(:name)
5164
5169
  @network_interfaces = args[:network_interfaces] if args.key?(:network_interfaces)
5165
5170
  @scheduling = args[:scheduling] if args.key?(:scheduling)
@@ -6495,6 +6500,12 @@ module Google
6495
6500
  # @return [Google::Apis::ComputeBeta::Metadata]
6496
6501
  attr_accessor :metadata
6497
6502
 
6503
+ # Minimum cpu/platform to be used by this instance. The instance may be
6504
+ # scheduled on the specified or later cpu/platform.
6505
+ # Corresponds to the JSON property `minCpuPlatform`
6506
+ # @return [String]
6507
+ attr_accessor :min_cpu_platform
6508
+
6498
6509
  # An array of network access configurations for this interface.
6499
6510
  # Corresponds to the JSON property `networkInterfaces`
6500
6511
  # @return [Array<Google::Apis::ComputeBeta::NetworkInterface>]
@@ -6530,6 +6541,7 @@ module Google
6530
6541
  @labels = args[:labels] if args.key?(:labels)
6531
6542
  @machine_type = args[:machine_type] if args.key?(:machine_type)
6532
6543
  @metadata = args[:metadata] if args.key?(:metadata)
6544
+ @min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform)
6533
6545
  @network_interfaces = args[:network_interfaces] if args.key?(:network_interfaces)
6534
6546
  @scheduling = args[:scheduling] if args.key?(:scheduling)
6535
6547
  @service_accounts = args[:service_accounts] if args.key?(:service_accounts)
@@ -6860,6 +6872,25 @@ module Google
6860
6872
  end
6861
6873
  end
6862
6874
 
6875
+ #
6876
+ class InstancesSetMinCpuPlatformRequest
6877
+ include Google::Apis::Core::Hashable
6878
+
6879
+ # Minimum cpu/platform this instance should be started at.
6880
+ # Corresponds to the JSON property `minCpuPlatform`
6881
+ # @return [String]
6882
+ attr_accessor :min_cpu_platform
6883
+
6884
+ def initialize(**args)
6885
+ update!(**args)
6886
+ end
6887
+
6888
+ # Update properties of this object
6889
+ def update!(**args)
6890
+ @min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform)
6891
+ end
6892
+ end
6893
+
6863
6894
  #
6864
6895
  class InstancesSetServiceAccountRequest
6865
6896
  include Google::Apis::Core::Hashable
@@ -10683,13 +10714,14 @@ module Google
10683
10714
  attr_accessor :creation_timestamp
10684
10715
 
10685
10716
  # An optional description of this resource. Provide this property when you
10686
- # create the resource.
10717
+ # create the resource. This field can be set only at resource creation time.
10687
10718
  # Corresponds to the JSON property `description`
10688
10719
  # @return [String]
10689
10720
  attr_accessor :description
10690
10721
 
10691
10722
  # [Output Only] The gateway address for default routes to reach destination
10692
- # addresses outside this subnetwork.
10723
+ # addresses outside this subnetwork. This field can be set only at resource
10724
+ # creation time.
10693
10725
  # Corresponds to the JSON property `gatewayAddress`
10694
10726
  # @return [String]
10695
10727
  attr_accessor :gateway_address
@@ -10703,7 +10735,7 @@ module Google
10703
10735
  # The range of internal addresses that are owned by this subnetwork. Provide
10704
10736
  # this property when you create the subnetwork. For example, 10.0.0.0/8 or 192.
10705
10737
  # 168.0.0/16. Ranges must be unique and non-overlapping within a network. Only
10706
- # IPv4 is supported.
10738
+ # IPv4 is supported. This field can be set only at resource creation time.
10707
10739
  # Corresponds to the JSON property `ipCidrRange`
10708
10740
  # @return [String]
10709
10741
  attr_accessor :ip_cidr_range
@@ -10726,19 +10758,22 @@ module Google
10726
10758
 
10727
10759
  # The URL of the network to which this subnetwork belongs, provided by the
10728
10760
  # client when initially creating the subnetwork. Only networks that are in the
10729
- # distributed mode can have subnetworks.
10761
+ # distributed mode can have subnetworks. This field can be set only at resource
10762
+ # creation time.
10730
10763
  # Corresponds to the JSON property `network`
10731
10764
  # @return [String]
10732
10765
  attr_accessor :network
10733
10766
 
10734
10767
  # Whether the VMs in this subnet can access Google services without assigned
10735
- # external IP addresses.
10768
+ # external IP addresses. This field can be both set at resource creation time
10769
+ # and updated using setPrivateIpGoogleAccess.
10736
10770
  # Corresponds to the JSON property `privateIpGoogleAccess`
10737
10771
  # @return [Boolean]
10738
10772
  attr_accessor :private_ip_google_access
10739
10773
  alias_method :private_ip_google_access?, :private_ip_google_access
10740
10774
 
10741
- # URL of the region where the Subnetwork resides.
10775
+ # URL of the region where the Subnetwork resides. This field can be set only at
10776
+ # resource creation time.
10742
10777
  # Corresponds to the JSON property `region`
10743
10778
  # @return [String]
10744
10779
  attr_accessor :region
@@ -13532,6 +13567,11 @@ module Google
13532
13567
  class Zone
13533
13568
  include Google::Apis::Core::Hashable
13534
13569
 
13570
+ # [Output Only] Available cpu/platform selections for the zone.
13571
+ # Corresponds to the JSON property `availableCpuPlatforms`
13572
+ # @return [Array<String>]
13573
+ attr_accessor :available_cpu_platforms
13574
+
13535
13575
  # [Output Only] Creation timestamp in RFC3339 text format.
13536
13576
  # Corresponds to the JSON property `creationTimestamp`
13537
13577
  # @return [String]
@@ -13584,6 +13624,7 @@ module Google
13584
13624
 
13585
13625
  # Update properties of this object
13586
13626
  def update!(**args)
13627
+ @available_cpu_platforms = args[:available_cpu_platforms] if args.key?(:available_cpu_platforms)
13587
13628
  @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
13588
13629
  @deprecated = args[:deprecated] if args.key?(:deprecated)
13589
13630
  @description = args[:description] if args.key?(:description)
@@ -856,6 +856,12 @@ module Google
856
856
  include Google::Apis::Core::JsonObjectSupport
857
857
  end
858
858
 
859
+ class InstancesSetMinCpuPlatformRequest
860
+ class Representation < Google::Apis::Core::JsonRepresentation; end
861
+
862
+ include Google::Apis::Core::JsonObjectSupport
863
+ end
864
+
859
865
  class InstancesSetServiceAccountRequest
860
866
  class Representation < Google::Apis::Core::JsonRepresentation; end
861
867
 
@@ -2979,6 +2985,7 @@ module Google
2979
2985
  property :machine_type, as: 'machineType'
2980
2986
  property :metadata, as: 'metadata', class: Google::Apis::ComputeBeta::Metadata, decorator: Google::Apis::ComputeBeta::Metadata::Representation
2981
2987
 
2988
+ property :min_cpu_platform, as: 'minCpuPlatform'
2982
2989
  property :name, as: 'name'
2983
2990
  collection :network_interfaces, as: 'networkInterfaces', class: Google::Apis::ComputeBeta::NetworkInterface, decorator: Google::Apis::ComputeBeta::NetworkInterface::Representation
2984
2991
 
@@ -3331,6 +3338,7 @@ module Google
3331
3338
  property :machine_type, as: 'machineType'
3332
3339
  property :metadata, as: 'metadata', class: Google::Apis::ComputeBeta::Metadata, decorator: Google::Apis::ComputeBeta::Metadata::Representation
3333
3340
 
3341
+ property :min_cpu_platform, as: 'minCpuPlatform'
3334
3342
  collection :network_interfaces, as: 'networkInterfaces', class: Google::Apis::ComputeBeta::NetworkInterface, decorator: Google::Apis::ComputeBeta::NetworkInterface::Representation
3335
3343
 
3336
3344
  property :scheduling, as: 'scheduling', class: Google::Apis::ComputeBeta::Scheduling, decorator: Google::Apis::ComputeBeta::Scheduling::Representation
@@ -3436,6 +3444,13 @@ module Google
3436
3444
  end
3437
3445
  end
3438
3446
 
3447
+ class InstancesSetMinCpuPlatformRequest
3448
+ # @private
3449
+ class Representation < Google::Apis::Core::JsonRepresentation
3450
+ property :min_cpu_platform, as: 'minCpuPlatform'
3451
+ end
3452
+ end
3453
+
3439
3454
  class InstancesSetServiceAccountRequest
3440
3455
  # @private
3441
3456
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5129,6 +5144,7 @@ module Google
5129
5144
  class Zone
5130
5145
  # @private
5131
5146
  class Representation < Google::Apis::Core::JsonRepresentation
5147
+ collection :available_cpu_platforms, as: 'availableCpuPlatforms'
5132
5148
  property :creation_timestamp, as: 'creationTimestamp'
5133
5149
  property :deprecated, as: 'deprecated', class: Google::Apis::ComputeBeta::DeprecationStatus, decorator: Google::Apis::ComputeBeta::DeprecationStatus::Representation
5134
5150
 
@@ -5135,6 +5135,9 @@ module Google
5135
5135
  # DONE when the action is scheduled even if the instances have not yet been
5136
5136
  # removed from the group. You must separately verify the status of the
5137
5137
  # abandoning action with the listmanagedinstances method.
5138
+ # If the group is part of a backend service that has enabled connection draining,
5139
+ # it can take up to 60 seconds after the connection draining duration has
5140
+ # elapsed before the VM instance is removed or deleted.
5138
5141
  # You can specify a maximum of 1000 instances with this method per request.
5139
5142
  # @param [String] project
5140
5143
  # Project ID for this request.
@@ -5306,6 +5309,9 @@ module Google
5306
5309
  # DONE when the action is scheduled even if the instances are still being
5307
5310
  # deleted. You must separately verify the status of the deleting action with the
5308
5311
  # listmanagedinstances method.
5312
+ # If the group is part of a backend service that has enabled connection draining,
5313
+ # it can take up to 60 seconds after the connection draining duration has
5314
+ # elapsed before the VM instance is removed or deleted.
5309
5315
  # You can specify a maximum of 1000 instances with this method per request.
5310
5316
  # @param [String] project
5311
5317
  # Project ID for this request.
@@ -5398,7 +5404,8 @@ module Google
5398
5404
  # is marked as DONE when the group is created even if the instances in the group
5399
5405
  # have not yet been created. You must separately verify the status of the
5400
5406
  # individual instances with the listmanagedinstances method.
5401
- # A managed instance group can have up to 1000 VM instances per group.
5407
+ # A managed instance group can have up to 1000 VM instances per group. Please
5408
+ # contact Cloud Support if you need an increase in this limit.
5402
5409
  # @param [String] project
5403
5410
  # Project ID for this request.
5404
5411
  # @param [String] zone
@@ -5627,6 +5634,9 @@ module Google
5627
5634
  # DONE when the action is scheduled even if the instances have not yet been
5628
5635
  # recreated. You must separately verify the status of the recreating action with
5629
5636
  # the listmanagedinstances method.
5637
+ # If the group is part of a backend service that has enabled connection draining,
5638
+ # it can take up to 60 seconds after the connection draining duration has
5639
+ # elapsed before the VM instance is removed or deleted.
5630
5640
  # You can specify a maximum of 1000 instances with this method per request.
5631
5641
  # @param [String] project
5632
5642
  # Project ID for this request.
@@ -5677,6 +5687,9 @@ module Google
5677
5687
  # the resize actions are scheduled even if the group has not yet added or
5678
5688
  # deleted any instances. You must separately verify the status of the creating
5679
5689
  # or deleting actions with the listmanagedinstances method.
5690
+ # If the group is part of a backend service that has enabled connection draining,
5691
+ # it can take up to 60 seconds after the connection draining duration has
5692
+ # elapsed before the VM instance is removed or deleted.
5680
5693
  # @param [String] project
5681
5694
  # Project ID for this request.
5682
5695
  # @param [String] zone
@@ -5731,6 +5744,9 @@ module Google
5731
5744
  # instances. You must separately verify the status of the creating,
5732
5745
  # creatingWithoutRetries, or deleting actions with the get or
5733
5746
  # listmanagedinstances method.
5747
+ # If the group is part of a backend service that has enabled connection draining,
5748
+ # it can take up to 60 seconds after the connection draining duration has
5749
+ # elapsed before the VM instance is removed or deleted.
5734
5750
  # @param [String] project
5735
5751
  # Project ID for this request.
5736
5752
  # @param [String] zone
@@ -6425,6 +6441,9 @@ module Google
6425
6441
 
6426
6442
  # Removes one or more instances from the specified instance group, but does not
6427
6443
  # delete those instances.
6444
+ # If the group is part of a backend service that has enabled connection draining,
6445
+ # it can take up to 60 seconds after the connection draining duration before
6446
+ # the VM instance is removed or deleted.
6428
6447
  # @param [String] project
6429
6448
  # Project ID for this request.
6430
6449
  # @param [String] zone
@@ -6920,7 +6939,10 @@ module Google
6920
6939
  execute_or_queue_command(command, &block)
6921
6940
  end
6922
6941
 
6923
- # Attaches a Disk resource to an instance.
6942
+ # Attaches an existing Disk resource to an instance. You must first create the
6943
+ # disk before you can attach it. It is not possible to create and attach a disk
6944
+ # at the same time. For more information, read Adding a persistent disk to your
6945
+ # instance.
6924
6946
  # @param [String] project
6925
6947
  # Project ID for this request.
6926
6948
  # @param [String] zone
@@ -7664,6 +7686,54 @@ module Google
7664
7686
  execute_or_queue_command(command, &block)
7665
7687
  end
7666
7688
 
7689
+ # Changes the minimum cpu/platform that this instance should be started as. This
7690
+ # is called on a stopped instance.
7691
+ # @param [String] project
7692
+ # Project ID for this request.
7693
+ # @param [String] zone
7694
+ # The name of the zone for this request.
7695
+ # @param [String] instance
7696
+ # Name of the instance scoping this request.
7697
+ # @param [Google::Apis::ComputeBeta::InstancesSetMinCpuPlatformRequest] instances_set_min_cpu_platform_request_object
7698
+ # @param [String] request_id
7699
+ # begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
7700
+ # @param [String] fields
7701
+ # Selector specifying which fields to include in a partial response.
7702
+ # @param [String] quota_user
7703
+ # Available to use for quota purposes for server-side applications. Can be any
7704
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
7705
+ # Overrides userIp if both are provided.
7706
+ # @param [String] user_ip
7707
+ # IP address of the site where the request originates. Use this if you want to
7708
+ # enforce per-user limits.
7709
+ # @param [Google::Apis::RequestOptions] options
7710
+ # Request-specific options
7711
+ #
7712
+ # @yield [result, err] Result & error if block supplied
7713
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
7714
+ # @yieldparam err [StandardError] error object if request failed
7715
+ #
7716
+ # @return [Google::Apis::ComputeBeta::Operation]
7717
+ #
7718
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7719
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7720
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7721
+ def set_instance_min_cpu_platform(project, zone, instance, instances_set_min_cpu_platform_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7722
+ command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/setMinCpuPlatform', options)
7723
+ command.request_representation = Google::Apis::ComputeBeta::InstancesSetMinCpuPlatformRequest::Representation
7724
+ command.request_object = instances_set_min_cpu_platform_request_object
7725
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
7726
+ command.response_class = Google::Apis::ComputeBeta::Operation
7727
+ command.params['project'] = project unless project.nil?
7728
+ command.params['zone'] = zone unless zone.nil?
7729
+ command.params['instance'] = instance unless instance.nil?
7730
+ command.query['requestId'] = request_id unless request_id.nil?
7731
+ command.query['fields'] = fields unless fields.nil?
7732
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7733
+ command.query['userIp'] = user_ip unless user_ip.nil?
7734
+ execute_or_queue_command(command, &block)
7735
+ end
7736
+
7667
7737
  # Sets an instance's scheduling options.
7668
7738
  # @param [String] project
7669
7739
  # Project ID for this request.
@@ -10004,6 +10074,9 @@ module Google
10004
10074
  # DONE when the action is scheduled even if the instances have not yet been
10005
10075
  # removed from the group. You must separately verify the status of the
10006
10076
  # abandoning action with the listmanagedinstances method.
10077
+ # If the group is part of a backend service that has enabled connection draining,
10078
+ # it can take up to 60 seconds after the connection draining duration has
10079
+ # elapsed before the VM instance is removed or deleted.
10007
10080
  # You can specify a maximum of 1000 instances with this method per request.
10008
10081
  # @param [String] project
10009
10082
  # Project ID for this request.
@@ -10097,6 +10170,9 @@ module Google
10097
10170
  # DONE when the action is scheduled even if the instances are still being
10098
10171
  # deleted. You must separately verify the status of the deleting action with the
10099
10172
  # listmanagedinstances method.
10173
+ # If the group is part of a backend service that has enabled connection draining,
10174
+ # it can take up to 60 seconds after the connection draining duration has
10175
+ # elapsed before the VM instance is removed or deleted.
10100
10176
  # You can specify a maximum of 1000 instances with this method per request.
10101
10177
  # @param [String] project
10102
10178
  # Project ID for this request.
@@ -10415,6 +10491,9 @@ module Google
10415
10491
  # DONE when the action is scheduled even if the instances have not yet been
10416
10492
  # recreated. You must separately verify the status of the recreating action with
10417
10493
  # the listmanagedinstances method.
10494
+ # If the group is part of a backend service that has enabled connection draining,
10495
+ # it can take up to 60 seconds after the connection draining duration has
10496
+ # elapsed before the VM instance is removed or deleted.
10418
10497
  # You can specify a maximum of 1000 instances with this method per request.
10419
10498
  # @param [String] project
10420
10499
  # Project ID for this request.
@@ -10466,6 +10545,9 @@ module Google
10466
10545
  # resize actions are scheduled even if the group has not yet added or deleted
10467
10546
  # any instances. You must separately verify the status of the creating or
10468
10547
  # deleting actions with the listmanagedinstances method.
10548
+ # If the group is part of a backend service that has enabled connection draining,
10549
+ # it can take up to 60 seconds after the connection draining duration has
10550
+ # elapsed before the VM instance is removed or deleted.
10469
10551
  # @param [String] project
10470
10552
  # Project ID for this request.
10471
10553
  # @param [String] region
@@ -12936,7 +13018,7 @@ module Google
12936
13018
  end
12937
13019
 
12938
13020
  # Set whether VMs in this subnet can access Google services without assigning
12939
- # external IP addresses through Cloudpath.
13021
+ # external IP addresses through Private Google Access.
12940
13022
  # @param [String] project
12941
13023
  # Project ID for this request.
12942
13024
  # @param [String] region
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/compute/docs/reference/latest/
26
26
  module ComputeV1
27
27
  VERSION = 'V1'
28
- REVISION = '20170416'
28
+ REVISION = '20170515'
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'