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
@@ -893,23 +893,20 @@ module Google
893
893
  class AutoscalingPolicyCustomMetricUtilization
894
894
  include Google::Apis::Core::Hashable
895
895
 
896
- # The identifier of the Stackdriver Monitoring metric. The metric cannot have
897
- # negative values and should be a utilization metric, which means that the
896
+ # The identifier (type) of the Stackdriver Monitoring metric. The metric cannot
897
+ # have negative values and should be a utilization metric, which means that the
898
898
  # number of virtual machines handling requests should increase or decrease
899
- # proportionally to the metric. The metric must also have a label of compute.
900
- # googleapis.com/resource_id with the value of the instance's unique ID,
901
- # although this alone does not guarantee that the metric is valid.
902
- # For example, the following is a valid metric:
903
- # compute.googleapis.com/instance/network/received_bytes_count
904
- # The following is not a valid metric because it does not increase or decrease
905
- # based on usage:
906
- # compute.googleapis.com/instance/cpu/reserved_cores
899
+ # proportionally to the metric.
900
+ # The metric must have a value type of INT64 or DOUBLE.
907
901
  # Corresponds to the JSON property `metric`
908
902
  # @return [String]
909
903
  attr_accessor :metric
910
904
 
911
- # Target value of the metric which autoscaler should maintain. Must be a
905
+ # The target value of the metric that autoscaler should maintain. This must be a
912
906
  # positive value.
907
+ # For example, a good metric to use as a utilization_target is compute.
908
+ # googleapis.com/instance/network/received_bytes_count. The autoscaler will work
909
+ # to keep this value constant for each of the instances.
913
910
  # Corresponds to the JSON property `utilizationTarget`
914
911
  # @return [Float]
915
912
  attr_accessor :utilization_target
@@ -1229,6 +1226,11 @@ module Google
1229
1226
  # @return [Array<String>]
1230
1227
  attr_accessor :health_checks
1231
1228
 
1229
+ # Identity-Aware Proxy
1230
+ # Corresponds to the JSON property `iap`
1231
+ # @return [Google::Apis::ComputeV1::BackendServiceIap]
1232
+ attr_accessor :iap
1233
+
1232
1234
  # [Output Only] The unique identifier for the resource. This identifier is
1233
1235
  # defined by the server.
1234
1236
  # Corresponds to the JSON property `id`
@@ -1321,6 +1323,7 @@ module Google
1321
1323
  @enable_cdn = args[:enable_cdn] if args.key?(:enable_cdn)
1322
1324
  @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
1323
1325
  @health_checks = args[:health_checks] if args.key?(:health_checks)
1326
+ @iap = args[:iap] if args.key?(:iap)
1324
1327
  @id = args[:id] if args.key?(:id)
1325
1328
  @kind = args[:kind] if args.key?(:kind)
1326
1329
  @load_balancing_scheme = args[:load_balancing_scheme] if args.key?(:load_balancing_scheme)
@@ -1424,6 +1427,44 @@ module Google
1424
1427
  end
1425
1428
  end
1426
1429
 
1430
+ # Identity-Aware Proxy
1431
+ class BackendServiceIap
1432
+ include Google::Apis::Core::Hashable
1433
+
1434
+ #
1435
+ # Corresponds to the JSON property `enabled`
1436
+ # @return [Boolean]
1437
+ attr_accessor :enabled
1438
+ alias_method :enabled?, :enabled
1439
+
1440
+ #
1441
+ # Corresponds to the JSON property `oauth2ClientId`
1442
+ # @return [String]
1443
+ attr_accessor :oauth2_client_id
1444
+
1445
+ #
1446
+ # Corresponds to the JSON property `oauth2ClientSecret`
1447
+ # @return [String]
1448
+ attr_accessor :oauth2_client_secret
1449
+
1450
+ # [Output Only] SHA256 hash value for the field oauth2_client_secret above.
1451
+ # Corresponds to the JSON property `oauth2ClientSecretSha256`
1452
+ # @return [String]
1453
+ attr_accessor :oauth2_client_secret_sha256
1454
+
1455
+ def initialize(**args)
1456
+ update!(**args)
1457
+ end
1458
+
1459
+ # Update properties of this object
1460
+ def update!(**args)
1461
+ @enabled = args[:enabled] if args.key?(:enabled)
1462
+ @oauth2_client_id = args[:oauth2_client_id] if args.key?(:oauth2_client_id)
1463
+ @oauth2_client_secret = args[:oauth2_client_secret] if args.key?(:oauth2_client_secret)
1464
+ @oauth2_client_secret_sha256 = args[:oauth2_client_secret_sha256] if args.key?(:oauth2_client_secret_sha256)
1465
+ end
1466
+ end
1467
+
1427
1468
  # Contains a list of BackendService resources.
1428
1469
  class BackendServiceList
1429
1470
  include Google::Apis::Core::Hashable
@@ -1804,6 +1845,12 @@ module Google
1804
1845
  # @return [String]
1805
1846
  attr_accessor :kind
1806
1847
 
1848
+ # Labels to apply to this disk. These can be later modified by the setLabels
1849
+ # method.
1850
+ # Corresponds to the JSON property `labels`
1851
+ # @return [Hash<String,String>]
1852
+ attr_accessor :labels
1853
+
1807
1854
  # [Output Only] Last attach timestamp in RFC3339 text format.
1808
1855
  # Corresponds to the JSON property `lastAttachTimestamp`
1809
1856
  # @return [String]
@@ -1940,6 +1987,7 @@ module Google
1940
1987
  @disk_encryption_key = args[:disk_encryption_key] if args.key?(:disk_encryption_key)
1941
1988
  @id = args[:id] if args.key?(:id)
1942
1989
  @kind = args[:kind] if args.key?(:kind)
1990
+ @labels = args[:labels] if args.key?(:labels)
1943
1991
  @last_attach_timestamp = args[:last_attach_timestamp] if args.key?(:last_attach_timestamp)
1944
1992
  @last_detach_timestamp = args[:last_detach_timestamp] if args.key?(:last_detach_timestamp)
1945
1993
  @licenses = args[:licenses] if args.key?(:licenses)
@@ -2489,7 +2537,7 @@ module Google
2489
2537
  # @return [Fixnum]
2490
2538
  attr_accessor :id
2491
2539
 
2492
- # [Output Ony] Type of the resource. Always compute#firewall for firewall rules.
2540
+ # [Output Only] Type of the resource. Always compute#firewall for firewall rules.
2493
2541
  # Corresponds to the JSON property `kind`
2494
2542
  # @return [String]
2495
2543
  attr_accessor :kind
@@ -2662,13 +2710,14 @@ module Google
2662
2710
  # The IP address that this forwarding rule is serving on behalf of.
2663
2711
  # For global forwarding rules, the address must be a global IP. For regional
2664
2712
  # forwarding rules, the address must live in the same region as the forwarding
2665
- # rule. By default, this field is empty and an ephemeral IP from the same scope (
2666
- # global or regional) will be assigned.
2713
+ # rule. By default, this field is empty and an ephemeral IPv4 address from the
2714
+ # same scope (global or regional) will be assigned. A regional forwarding rule
2715
+ # supports IPv4 only. A global forwarding rule supports either IPv4 or IPv6.
2667
2716
  # When the load balancing scheme is INTERNAL, this can only be an RFC 1918 IP
2668
2717
  # address belonging to the network/subnetwork configured for the forwarding rule.
2669
2718
  # A reserved address cannot be used. If the field is empty, the IP address will
2670
2719
  # be automatically allocated from the internal IP range of the subnetwork or
2671
- # network configured for this forwarding rule. Only IPv4 is supported.
2720
+ # network configured for this forwarding rule.
2672
2721
  # Corresponds to the JSON property `IPAddress`
2673
2722
  # @return [String]
2674
2723
  attr_accessor :ip_address
@@ -3006,6 +3055,42 @@ module Google
3006
3055
  end
3007
3056
  end
3008
3057
 
3058
+ #
3059
+ class GlobalSetLabelsRequest
3060
+ include Google::Apis::Core::Hashable
3061
+
3062
+ # The fingerprint of the previous set of labels for this resource, used to
3063
+ # detect conflicts. The fingerprint is initially generated by Compute Engine and
3064
+ # changes after every request to modify or update labels. You must always
3065
+ # provide an up-to-date fingerprint hash when updating or changing labels. Make
3066
+ # a get() request to the resource to get the latest fingerprint.
3067
+ # Corresponds to the JSON property `labelFingerprint`
3068
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
3069
+ # @return [String]
3070
+ attr_accessor :label_fingerprint
3071
+
3072
+ # A list of labels to apply for this resource. Each label key & value must
3073
+ # comply with RFC1035. Specifically, the name must be 1-63 characters long and
3074
+ # match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first
3075
+ # character must be a lowercase letter, and all following characters must be a
3076
+ # dash, lowercase letter, or digit, except the last character, which cannot be a
3077
+ # dash. For example, "webserver-frontend": "images". A label value can also be
3078
+ # empty (e.g. "my-label": "").
3079
+ # Corresponds to the JSON property `labels`
3080
+ # @return [Hash<String,String>]
3081
+ attr_accessor :labels
3082
+
3083
+ def initialize(**args)
3084
+ update!(**args)
3085
+ end
3086
+
3087
+ # Update properties of this object
3088
+ def update!(**args)
3089
+ @label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint)
3090
+ @labels = args[:labels] if args.key?(:labels)
3091
+ end
3092
+ end
3093
+
3009
3094
  # Guest OS features.
3010
3095
  class GuestOsFeature
3011
3096
  include Google::Apis::Core::Hashable
@@ -3732,11 +3817,11 @@ module Google
3732
3817
  attr_accessor :family
3733
3818
 
3734
3819
  # A list of features to enable on the guest OS. Applicable for bootable images
3735
- # only. Currently, only one feature can be enabled, VIRTIO_SCSCI_MULTIQUEUE,
3820
+ # only. Currently, only one feature can be enabled, VIRTIO_SCSI_MULTIQUEUE,
3736
3821
  # which allows each virtual CPU to have its own queue. For Windows images, you
3737
- # can only enable VIRTIO_SCSCI_MULTIQUEUE on images with driver version 1.2.0.
3822
+ # can only enable VIRTIO_SCSI_MULTIQUEUE on images with driver version 1.2.0.
3738
3823
  # 1621 or higher. Linux images with kernel versions 3.17 and higher will support
3739
- # VIRTIO_SCSCI_MULTIQUEUE.
3824
+ # VIRTIO_SCSI_MULTIQUEUE.
3740
3825
  # For new Windows images, the server might also populate this field with the
3741
3826
  # value WINDOWS, to indicate that this is a Windows image. This value is purely
3742
3827
  # informational and does not enable or disable any features.
@@ -3760,6 +3845,12 @@ module Google
3760
3845
  # @return [String]
3761
3846
  attr_accessor :kind
3762
3847
 
3848
+ # Labels to apply to this image. These can be later modified by the setLabels
3849
+ # method.
3850
+ # Corresponds to the JSON property `labels`
3851
+ # @return [Hash<String,String>]
3852
+ attr_accessor :labels
3853
+
3763
3854
  # Any applicable license URI.
3764
3855
  # Corresponds to the JSON property `licenses`
3765
3856
  # @return [Array<String>]
@@ -3838,6 +3929,7 @@ module Google
3838
3929
  @id = args[:id] if args.key?(:id)
3839
3930
  @image_encryption_key = args[:image_encryption_key] if args.key?(:image_encryption_key)
3840
3931
  @kind = args[:kind] if args.key?(:kind)
3932
+ @labels = args[:labels] if args.key?(:labels)
3841
3933
  @licenses = args[:licenses] if args.key?(:licenses)
3842
3934
  @name = args[:name] if args.key?(:name)
3843
3935
  @raw_disk = args[:raw_disk] if args.key?(:raw_disk)
@@ -3978,6 +4070,12 @@ module Google
3978
4070
  # @return [String]
3979
4071
  attr_accessor :kind
3980
4072
 
4073
+ # Labels to apply to this instance. These can be later modified by the setLabels
4074
+ # method.
4075
+ # Corresponds to the JSON property `labels`
4076
+ # @return [Hash<String,String>]
4077
+ attr_accessor :labels
4078
+
3981
4079
  # Full or partial URL of the machine type resource to use for this instance, in
3982
4080
  # the format: zones/zone/machineTypes/machine-type. This is provided by the
3983
4081
  # client when the instance is created. For example, the following is a valid
@@ -4071,6 +4169,7 @@ module Google
4071
4169
  @disks = args[:disks] if args.key?(:disks)
4072
4170
  @id = args[:id] if args.key?(:id)
4073
4171
  @kind = args[:kind] if args.key?(:kind)
4172
+ @labels = args[:labels] if args.key?(:labels)
4074
4173
  @machine_type = args[:machine_type] if args.key?(:machine_type)
4075
4174
  @metadata = args[:metadata] if args.key?(:metadata)
4076
4175
  @name = args[:name] if args.key?(:name)
@@ -5213,6 +5312,11 @@ module Google
5213
5312
  # @return [Array<Google::Apis::ComputeV1::AttachedDisk>]
5214
5313
  attr_accessor :disks
5215
5314
 
5315
+ # Labels to apply to instances that are created from this template.
5316
+ # Corresponds to the JSON property `labels`
5317
+ # @return [Hash<String,String>]
5318
+ attr_accessor :labels
5319
+
5216
5320
  # The machine type to use for instances that are created from this template.
5217
5321
  # Corresponds to the JSON property `machineType`
5218
5322
  # @return [String]
@@ -5254,6 +5358,7 @@ module Google
5254
5358
  @can_ip_forward = args[:can_ip_forward] if args.key?(:can_ip_forward)
5255
5359
  @description = args[:description] if args.key?(:description)
5256
5360
  @disks = args[:disks] if args.key?(:disks)
5361
+ @labels = args[:labels] if args.key?(:labels)
5257
5362
  @machine_type = args[:machine_type] if args.key?(:machine_type)
5258
5363
  @metadata = args[:metadata] if args.key?(:metadata)
5259
5364
  @network_interfaces = args[:network_interfaces] if args.key?(:network_interfaces)
@@ -5518,6 +5623,34 @@ module Google
5518
5623
  end
5519
5624
  end
5520
5625
 
5626
+ #
5627
+ class InstancesSetLabelsRequest
5628
+ include Google::Apis::Core::Hashable
5629
+
5630
+ # Fingerprint of the previous set of labels for this resource, used to prevent
5631
+ # conflicts. Provide the latest fingerprint value when making a request to add
5632
+ # or change labels.
5633
+ # Corresponds to the JSON property `labelFingerprint`
5634
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
5635
+ # @return [String]
5636
+ attr_accessor :label_fingerprint
5637
+
5638
+ #
5639
+ # Corresponds to the JSON property `labels`
5640
+ # @return [Hash<String,String>]
5641
+ attr_accessor :labels
5642
+
5643
+ def initialize(**args)
5644
+ update!(**args)
5645
+ end
5646
+
5647
+ # Update properties of this object
5648
+ def update!(**args)
5649
+ @label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint)
5650
+ @labels = args[:labels] if args.key?(:labels)
5651
+ end
5652
+ end
5653
+
5521
5654
  #
5522
5655
  class InstancesSetMachineTypeRequest
5523
5656
  include Google::Apis::Core::Hashable
@@ -7007,6 +7140,12 @@ module Google
7007
7140
  # @return [Google::Apis::ComputeV1::UsageExportLocation]
7008
7141
  attr_accessor :usage_export_location
7009
7142
 
7143
+ # [Output Only] The role this project has in a Cross Project Network (XPN)
7144
+ # configuration. Currently only HOST projects are differentiated.
7145
+ # Corresponds to the JSON property `xpnProjectStatus`
7146
+ # @return [String]
7147
+ attr_accessor :xpn_project_status
7148
+
7010
7149
  def initialize(**args)
7011
7150
  update!(**args)
7012
7151
  end
@@ -7024,6 +7163,102 @@ module Google
7024
7163
  @quotas = args[:quotas] if args.key?(:quotas)
7025
7164
  @self_link = args[:self_link] if args.key?(:self_link)
7026
7165
  @usage_export_location = args[:usage_export_location] if args.key?(:usage_export_location)
7166
+ @xpn_project_status = args[:xpn_project_status] if args.key?(:xpn_project_status)
7167
+ end
7168
+ end
7169
+
7170
+ #
7171
+ class ProjectsDisableXpnResourceRequest
7172
+ include Google::Apis::Core::Hashable
7173
+
7174
+ # XpnResourceId
7175
+ # Corresponds to the JSON property `xpnResource`
7176
+ # @return [Google::Apis::ComputeV1::XpnResourceId]
7177
+ attr_accessor :xpn_resource
7178
+
7179
+ def initialize(**args)
7180
+ update!(**args)
7181
+ end
7182
+
7183
+ # Update properties of this object
7184
+ def update!(**args)
7185
+ @xpn_resource = args[:xpn_resource] if args.key?(:xpn_resource)
7186
+ end
7187
+ end
7188
+
7189
+ #
7190
+ class ProjectsEnableXpnResourceRequest
7191
+ include Google::Apis::Core::Hashable
7192
+
7193
+ # XpnResourceId
7194
+ # Corresponds to the JSON property `xpnResource`
7195
+ # @return [Google::Apis::ComputeV1::XpnResourceId]
7196
+ attr_accessor :xpn_resource
7197
+
7198
+ def initialize(**args)
7199
+ update!(**args)
7200
+ end
7201
+
7202
+ # Update properties of this object
7203
+ def update!(**args)
7204
+ @xpn_resource = args[:xpn_resource] if args.key?(:xpn_resource)
7205
+ end
7206
+ end
7207
+
7208
+ #
7209
+ class ProjectsGetXpnResources
7210
+ include Google::Apis::Core::Hashable
7211
+
7212
+ # [Output Only] Type of resource. Always compute#projectsGetXpnResources for
7213
+ # lists of XPN resources.
7214
+ # Corresponds to the JSON property `kind`
7215
+ # @return [String]
7216
+ attr_accessor :kind
7217
+
7218
+ # [Output Only] This token allows you to get the next page of results for list
7219
+ # requests. If the number of results is larger than maxResults, use the
7220
+ # nextPageToken as a value for the query parameter pageToken in the next list
7221
+ # request. Subsequent list requests will have their own nextPageToken to
7222
+ # continue paging through the results.
7223
+ # Corresponds to the JSON property `nextPageToken`
7224
+ # @return [String]
7225
+ attr_accessor :next_page_token
7226
+
7227
+ # XPN resources attached to this project as their XPN host.
7228
+ # Corresponds to the JSON property `resources`
7229
+ # @return [Array<Google::Apis::ComputeV1::XpnResourceId>]
7230
+ attr_accessor :resources
7231
+
7232
+ def initialize(**args)
7233
+ update!(**args)
7234
+ end
7235
+
7236
+ # Update properties of this object
7237
+ def update!(**args)
7238
+ @kind = args[:kind] if args.key?(:kind)
7239
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
7240
+ @resources = args[:resources] if args.key?(:resources)
7241
+ end
7242
+ end
7243
+
7244
+ #
7245
+ class ProjectsListXpnHostsRequest
7246
+ include Google::Apis::Core::Hashable
7247
+
7248
+ # Optional organization ID managed by Cloud Resource Manager, for which to list
7249
+ # XPN host projects. If not specified, the organization will be inferred from
7250
+ # the project.
7251
+ # Corresponds to the JSON property `organization`
7252
+ # @return [String]
7253
+ attr_accessor :organization
7254
+
7255
+ def initialize(**args)
7256
+ update!(**args)
7257
+ end
7258
+
7259
+ # Update properties of this object
7260
+ def update!(**args)
7261
+ @organization = args[:organization] if args.key?(:organization)
7027
7262
  end
7028
7263
  end
7029
7264
 
@@ -8565,6 +8800,12 @@ module Google
8565
8800
  # @return [String]
8566
8801
  attr_accessor :kind
8567
8802
 
8803
+ # Labels to apply to this snapshot. These can be later modified by the setLabels
8804
+ # method. Label values may be empty.
8805
+ # Corresponds to the JSON property `labels`
8806
+ # @return [Hash<String,String>]
8807
+ attr_accessor :labels
8808
+
8568
8809
  # [Output Only] A list of public visible licenses that apply to this snapshot.
8569
8810
  # This can be because the original image had licenses attached (such as a
8570
8811
  # Windows image).
@@ -8641,6 +8882,7 @@ module Google
8641
8882
  @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
8642
8883
  @id = args[:id] if args.key?(:id)
8643
8884
  @kind = args[:kind] if args.key?(:kind)
8885
+ @labels = args[:labels] if args.key?(:labels)
8644
8886
  @licenses = args[:licenses] if args.key?(:licenses)
8645
8887
  @name = args[:name] if args.key?(:name)
8646
8888
  @self_link = args[:self_link] if args.key?(:self_link)
@@ -8833,13 +9075,14 @@ module Google
8833
9075
  attr_accessor :creation_timestamp
8834
9076
 
8835
9077
  # An optional description of this resource. Provide this property when you
8836
- # create the resource.
9078
+ # create the resource. This field can be set only at resource creation time.
8837
9079
  # Corresponds to the JSON property `description`
8838
9080
  # @return [String]
8839
9081
  attr_accessor :description
8840
9082
 
8841
9083
  # [Output Only] The gateway address for default routes to reach destination
8842
- # addresses outside this subnetwork.
9084
+ # addresses outside this subnetwork. This field can be set only at resource
9085
+ # creation time.
8843
9086
  # Corresponds to the JSON property `gatewayAddress`
8844
9087
  # @return [String]
8845
9088
  attr_accessor :gateway_address
@@ -8853,7 +9096,7 @@ module Google
8853
9096
  # The range of internal addresses that are owned by this subnetwork. Provide
8854
9097
  # this property when you create the subnetwork. For example, 10.0.0.0/8 or 192.
8855
9098
  # 168.0.0/16. Ranges must be unique and non-overlapping within a network. Only
8856
- # IPv4 is supported.
9099
+ # IPv4 is supported. This field can be set only at resource creation time.
8857
9100
  # Corresponds to the JSON property `ipCidrRange`
8858
9101
  # @return [String]
8859
9102
  attr_accessor :ip_cidr_range
@@ -8876,19 +9119,22 @@ module Google
8876
9119
 
8877
9120
  # The URL of the network to which this subnetwork belongs, provided by the
8878
9121
  # client when initially creating the subnetwork. Only networks that are in the
8879
- # distributed mode can have subnetworks.
9122
+ # distributed mode can have subnetworks. This field can be set only at resource
9123
+ # creation time.
8880
9124
  # Corresponds to the JSON property `network`
8881
9125
  # @return [String]
8882
9126
  attr_accessor :network
8883
9127
 
8884
9128
  # Whether the VMs in this subnet can access Google services without assigned
8885
- # external IP addresses.
9129
+ # external IP addresses. This field can be both set at resource creation time
9130
+ # and updated using setPrivateIpGoogleAccess.
8886
9131
  # Corresponds to the JSON property `privateIpGoogleAccess`
8887
9132
  # @return [Boolean]
8888
9133
  attr_accessor :private_ip_google_access
8889
9134
  alias_method :private_ip_google_access?, :private_ip_google_access
8890
9135
 
8891
- # URL of the region where the Subnetwork resides.
9136
+ # URL of the region where the Subnetwork resides. This field can be set only at
9137
+ # resource creation time.
8892
9138
  # Corresponds to the JSON property `region`
8893
9139
  # @return [String]
8894
9140
  attr_accessor :region
@@ -11327,6 +11573,81 @@ module Google
11327
11573
  end
11328
11574
  end
11329
11575
 
11576
+ #
11577
+ class XpnHostList
11578
+ include Google::Apis::Core::Hashable
11579
+
11580
+ # [Output Only] The unique identifier for the resource. This identifier is
11581
+ # defined by the server.
11582
+ # Corresponds to the JSON property `id`
11583
+ # @return [String]
11584
+ attr_accessor :id
11585
+
11586
+ # [Output Only] A list of XPN host project URLs.
11587
+ # Corresponds to the JSON property `items`
11588
+ # @return [Array<Google::Apis::ComputeV1::Project>]
11589
+ attr_accessor :items
11590
+
11591
+ # [Output Only] Type of resource. Always compute#xpnHostList for lists of XPN
11592
+ # hosts.
11593
+ # Corresponds to the JSON property `kind`
11594
+ # @return [String]
11595
+ attr_accessor :kind
11596
+
11597
+ # [Output Only] This token allows you to get the next page of results for list
11598
+ # requests. If the number of results is larger than maxResults, use the
11599
+ # nextPageToken as a value for the query parameter pageToken in the next list
11600
+ # request. Subsequent list requests will have their own nextPageToken to
11601
+ # continue paging through the results.
11602
+ # Corresponds to the JSON property `nextPageToken`
11603
+ # @return [String]
11604
+ attr_accessor :next_page_token
11605
+
11606
+ # [Output Only] Server-defined URL for this resource.
11607
+ # Corresponds to the JSON property `selfLink`
11608
+ # @return [String]
11609
+ attr_accessor :self_link
11610
+
11611
+ def initialize(**args)
11612
+ update!(**args)
11613
+ end
11614
+
11615
+ # Update properties of this object
11616
+ def update!(**args)
11617
+ @id = args[:id] if args.key?(:id)
11618
+ @items = args[:items] if args.key?(:items)
11619
+ @kind = args[:kind] if args.key?(:kind)
11620
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
11621
+ @self_link = args[:self_link] if args.key?(:self_link)
11622
+ end
11623
+ end
11624
+
11625
+ # XpnResourceId
11626
+ class XpnResourceId
11627
+ include Google::Apis::Core::Hashable
11628
+
11629
+ # The ID of the XPN resource. In the case of projects, this field matches the
11630
+ # project's name, not the canonical ID.
11631
+ # Corresponds to the JSON property `id`
11632
+ # @return [String]
11633
+ attr_accessor :id
11634
+
11635
+ # The type of the XPN resource.
11636
+ # Corresponds to the JSON property `type`
11637
+ # @return [String]
11638
+ attr_accessor :type
11639
+
11640
+ def initialize(**args)
11641
+ update!(**args)
11642
+ end
11643
+
11644
+ # Update properties of this object
11645
+ def update!(**args)
11646
+ @id = args[:id] if args.key?(:id)
11647
+ @type = args[:type] if args.key?(:type)
11648
+ end
11649
+ end
11650
+
11330
11651
  # A Zone resource.
11331
11652
  class Zone
11332
11653
  include Google::Apis::Core::Hashable
@@ -11441,6 +11762,36 @@ module Google
11441
11762
  @self_link = args[:self_link] if args.key?(:self_link)
11442
11763
  end
11443
11764
  end
11765
+
11766
+ #
11767
+ class ZoneSetLabelsRequest
11768
+ include Google::Apis::Core::Hashable
11769
+
11770
+ # The fingerprint of the previous set of labels for this resource, used to
11771
+ # detect conflicts. The fingerprint is initially generated by Compute Engine and
11772
+ # changes after every request to modify or update labels. You must always
11773
+ # provide an up-to-date fingerprint hash in order to update or change labels.
11774
+ # Make a get() request to the resource to get the latest fingerprint.
11775
+ # Corresponds to the JSON property `labelFingerprint`
11776
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
11777
+ # @return [String]
11778
+ attr_accessor :label_fingerprint
11779
+
11780
+ # The labels to set for this resource.
11781
+ # Corresponds to the JSON property `labels`
11782
+ # @return [Hash<String,String>]
11783
+ attr_accessor :labels
11784
+
11785
+ def initialize(**args)
11786
+ update!(**args)
11787
+ end
11788
+
11789
+ # Update properties of this object
11790
+ def update!(**args)
11791
+ @label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint)
11792
+ @labels = args[:labels] if args.key?(:labels)
11793
+ end
11794
+ end
11444
11795
  end
11445
11796
  end
11446
11797
  end