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
@@ -178,6 +178,12 @@ module Google
178
178
  include Google::Apis::Core::JsonObjectSupport
179
179
  end
180
180
 
181
+ class BackendServiceIap
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
181
187
  class BackendServiceList
182
188
  class Representation < Google::Apis::Core::JsonRepresentation; end
183
189
 
@@ -376,6 +382,12 @@ module Google
376
382
  include Google::Apis::Core::JsonObjectSupport
377
383
  end
378
384
 
385
+ class GlobalSetLabelsRequest
386
+ class Representation < Google::Apis::Core::JsonRepresentation; end
387
+
388
+ include Google::Apis::Core::JsonObjectSupport
389
+ end
390
+
379
391
  class GuestOsFeature
380
392
  class Representation < Google::Apis::Core::JsonRepresentation; end
381
393
 
@@ -682,6 +694,12 @@ module Google
682
694
  include Google::Apis::Core::JsonObjectSupport
683
695
  end
684
696
 
697
+ class InstancesSetLabelsRequest
698
+ class Representation < Google::Apis::Core::JsonRepresentation; end
699
+
700
+ include Google::Apis::Core::JsonObjectSupport
701
+ end
702
+
685
703
  class InstancesSetMachineTypeRequest
686
704
  class Representation < Google::Apis::Core::JsonRepresentation; end
687
705
 
@@ -886,6 +904,30 @@ module Google
886
904
  include Google::Apis::Core::JsonObjectSupport
887
905
  end
888
906
 
907
+ class ProjectsDisableXpnResourceRequest
908
+ class Representation < Google::Apis::Core::JsonRepresentation; end
909
+
910
+ include Google::Apis::Core::JsonObjectSupport
911
+ end
912
+
913
+ class ProjectsEnableXpnResourceRequest
914
+ class Representation < Google::Apis::Core::JsonRepresentation; end
915
+
916
+ include Google::Apis::Core::JsonObjectSupport
917
+ end
918
+
919
+ class ProjectsGetXpnResources
920
+ class Representation < Google::Apis::Core::JsonRepresentation; end
921
+
922
+ include Google::Apis::Core::JsonObjectSupport
923
+ end
924
+
925
+ class ProjectsListXpnHostsRequest
926
+ class Representation < Google::Apis::Core::JsonRepresentation; end
927
+
928
+ include Google::Apis::Core::JsonObjectSupport
929
+ end
930
+
889
931
  class Quota
890
932
  class Representation < Google::Apis::Core::JsonRepresentation; end
891
933
 
@@ -1486,6 +1528,18 @@ module Google
1486
1528
  include Google::Apis::Core::JsonObjectSupport
1487
1529
  end
1488
1530
 
1531
+ class XpnHostList
1532
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1533
+
1534
+ include Google::Apis::Core::JsonObjectSupport
1535
+ end
1536
+
1537
+ class XpnResourceId
1538
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1539
+
1540
+ include Google::Apis::Core::JsonObjectSupport
1541
+ end
1542
+
1489
1543
  class Zone
1490
1544
  class Representation < Google::Apis::Core::JsonRepresentation; end
1491
1545
 
@@ -1498,6 +1552,12 @@ module Google
1498
1552
  include Google::Apis::Core::JsonObjectSupport
1499
1553
  end
1500
1554
 
1555
+ class ZoneSetLabelsRequest
1556
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1557
+
1558
+ include Google::Apis::Core::JsonObjectSupport
1559
+ end
1560
+
1501
1561
  class AccessConfig
1502
1562
  # @private
1503
1563
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1771,6 +1831,8 @@ module Google
1771
1831
  property :enable_cdn, as: 'enableCDN'
1772
1832
  property :fingerprint, :base64 => true, as: 'fingerprint'
1773
1833
  collection :health_checks, as: 'healthChecks'
1834
+ property :iap, as: 'iap', class: Google::Apis::ComputeV1::BackendServiceIap, decorator: Google::Apis::ComputeV1::BackendServiceIap::Representation
1835
+
1774
1836
  property :id, :numeric_string => true, as: 'id'
1775
1837
  property :kind, as: 'kind'
1776
1838
  property :load_balancing_scheme, as: 'loadBalancingScheme'
@@ -1814,6 +1876,16 @@ module Google
1814
1876
  end
1815
1877
  end
1816
1878
 
1879
+ class BackendServiceIap
1880
+ # @private
1881
+ class Representation < Google::Apis::Core::JsonRepresentation
1882
+ property :enabled, as: 'enabled'
1883
+ property :oauth2_client_id, as: 'oauth2ClientId'
1884
+ property :oauth2_client_secret, as: 'oauth2ClientSecret'
1885
+ property :oauth2_client_secret_sha256, as: 'oauth2ClientSecretSha256'
1886
+ end
1887
+ end
1888
+
1817
1889
  class BackendServiceList
1818
1890
  # @private
1819
1891
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1917,6 +1989,7 @@ module Google
1917
1989
 
1918
1990
  property :id, :numeric_string => true, as: 'id'
1919
1991
  property :kind, as: 'kind'
1992
+ hash :labels, as: 'labels'
1920
1993
  property :last_attach_timestamp, as: 'lastAttachTimestamp'
1921
1994
  property :last_detach_timestamp, as: 'lastDetachTimestamp'
1922
1995
  collection :licenses, as: 'licenses'
@@ -2187,6 +2260,14 @@ module Google
2187
2260
  end
2188
2261
  end
2189
2262
 
2263
+ class GlobalSetLabelsRequest
2264
+ # @private
2265
+ class Representation < Google::Apis::Core::JsonRepresentation
2266
+ property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
2267
+ hash :labels, as: 'labels'
2268
+ end
2269
+ end
2270
+
2190
2271
  class GuestOsFeature
2191
2272
  # @private
2192
2273
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2357,6 +2438,7 @@ module Google
2357
2438
  property :image_encryption_key, as: 'imageEncryptionKey', class: Google::Apis::ComputeV1::CustomerEncryptionKey, decorator: Google::Apis::ComputeV1::CustomerEncryptionKey::Representation
2358
2439
 
2359
2440
  property :kind, as: 'kind'
2441
+ hash :labels, as: 'labels'
2360
2442
  collection :licenses, as: 'licenses'
2361
2443
  property :name, as: 'name'
2362
2444
  property :raw_disk, as: 'rawDisk', class: Google::Apis::ComputeV1::Image::RawDisk, decorator: Google::Apis::ComputeV1::Image::RawDisk::Representation
@@ -2403,6 +2485,7 @@ module Google
2403
2485
 
2404
2486
  property :id, :numeric_string => true, as: 'id'
2405
2487
  property :kind, as: 'kind'
2488
+ hash :labels, as: 'labels'
2406
2489
  property :machine_type, as: 'machineType'
2407
2490
  property :metadata, as: 'metadata', class: Google::Apis::ComputeV1::Metadata, decorator: Google::Apis::ComputeV1::Metadata::Representation
2408
2491
 
@@ -2711,6 +2794,7 @@ module Google
2711
2794
  property :description, as: 'description'
2712
2795
  collection :disks, as: 'disks', class: Google::Apis::ComputeV1::AttachedDisk, decorator: Google::Apis::ComputeV1::AttachedDisk::Representation
2713
2796
 
2797
+ hash :labels, as: 'labels'
2714
2798
  property :machine_type, as: 'machineType'
2715
2799
  property :metadata, as: 'metadata', class: Google::Apis::ComputeV1::Metadata, decorator: Google::Apis::ComputeV1::Metadata::Representation
2716
2800
 
@@ -2796,6 +2880,14 @@ module Google
2796
2880
  end
2797
2881
  end
2798
2882
 
2883
+ class InstancesSetLabelsRequest
2884
+ # @private
2885
+ class Representation < Google::Apis::Core::JsonRepresentation
2886
+ property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
2887
+ hash :labels, as: 'labels'
2888
+ end
2889
+ end
2890
+
2799
2891
  class InstancesSetMachineTypeRequest
2800
2892
  # @private
2801
2893
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3169,6 +3261,40 @@ module Google
3169
3261
  property :self_link, as: 'selfLink'
3170
3262
  property :usage_export_location, as: 'usageExportLocation', class: Google::Apis::ComputeV1::UsageExportLocation, decorator: Google::Apis::ComputeV1::UsageExportLocation::Representation
3171
3263
 
3264
+ property :xpn_project_status, as: 'xpnProjectStatus'
3265
+ end
3266
+ end
3267
+
3268
+ class ProjectsDisableXpnResourceRequest
3269
+ # @private
3270
+ class Representation < Google::Apis::Core::JsonRepresentation
3271
+ property :xpn_resource, as: 'xpnResource', class: Google::Apis::ComputeV1::XpnResourceId, decorator: Google::Apis::ComputeV1::XpnResourceId::Representation
3272
+
3273
+ end
3274
+ end
3275
+
3276
+ class ProjectsEnableXpnResourceRequest
3277
+ # @private
3278
+ class Representation < Google::Apis::Core::JsonRepresentation
3279
+ property :xpn_resource, as: 'xpnResource', class: Google::Apis::ComputeV1::XpnResourceId, decorator: Google::Apis::ComputeV1::XpnResourceId::Representation
3280
+
3281
+ end
3282
+ end
3283
+
3284
+ class ProjectsGetXpnResources
3285
+ # @private
3286
+ class Representation < Google::Apis::Core::JsonRepresentation
3287
+ property :kind, as: 'kind'
3288
+ property :next_page_token, as: 'nextPageToken'
3289
+ collection :resources, as: 'resources', class: Google::Apis::ComputeV1::XpnResourceId, decorator: Google::Apis::ComputeV1::XpnResourceId::Representation
3290
+
3291
+ end
3292
+ end
3293
+
3294
+ class ProjectsListXpnHostsRequest
3295
+ # @private
3296
+ class Representation < Google::Apis::Core::JsonRepresentation
3297
+ property :organization, as: 'organization'
3172
3298
  end
3173
3299
  end
3174
3300
 
@@ -3574,6 +3700,7 @@ module Google
3574
3700
  property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
3575
3701
  property :id, :numeric_string => true, as: 'id'
3576
3702
  property :kind, as: 'kind'
3703
+ hash :labels, as: 'labels'
3577
3704
  collection :licenses, as: 'licenses'
3578
3705
  property :name, as: 'name'
3579
3706
  property :self_link, as: 'selfLink'
@@ -4258,6 +4385,26 @@ module Google
4258
4385
  end
4259
4386
  end
4260
4387
 
4388
+ class XpnHostList
4389
+ # @private
4390
+ class Representation < Google::Apis::Core::JsonRepresentation
4391
+ property :id, as: 'id'
4392
+ collection :items, as: 'items', class: Google::Apis::ComputeV1::Project, decorator: Google::Apis::ComputeV1::Project::Representation
4393
+
4394
+ property :kind, as: 'kind'
4395
+ property :next_page_token, as: 'nextPageToken'
4396
+ property :self_link, as: 'selfLink'
4397
+ end
4398
+ end
4399
+
4400
+ class XpnResourceId
4401
+ # @private
4402
+ class Representation < Google::Apis::Core::JsonRepresentation
4403
+ property :id, as: 'id'
4404
+ property :type, as: 'type'
4405
+ end
4406
+ end
4407
+
4261
4408
  class Zone
4262
4409
  # @private
4263
4410
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4285,6 +4432,14 @@ module Google
4285
4432
  property :self_link, as: 'selfLink'
4286
4433
  end
4287
4434
  end
4435
+
4436
+ class ZoneSetLabelsRequest
4437
+ # @private
4438
+ class Representation < Google::Apis::Core::JsonRepresentation
4439
+ property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
4440
+ hash :labels, as: 'labels'
4441
+ end
4442
+ end
4288
4443
  end
4289
4444
  end
4290
4445
  end
@@ -1964,6 +1964,51 @@ module Google
1964
1964
  execute_or_queue_command(command, &block)
1965
1965
  end
1966
1966
 
1967
+ # Sets the labels on a disk. To learn more about labels, read the Labeling or
1968
+ # Tagging Resources documentation.
1969
+ # @param [String] project
1970
+ # Project ID for this request.
1971
+ # @param [String] zone
1972
+ # The name of the zone for this request.
1973
+ # @param [String] resource
1974
+ # Name of the resource for this request.
1975
+ # @param [Google::Apis::ComputeV1::ZoneSetLabelsRequest] zone_set_labels_request_object
1976
+ # @param [String] fields
1977
+ # Selector specifying which fields to include in a partial response.
1978
+ # @param [String] quota_user
1979
+ # Available to use for quota purposes for server-side applications. Can be any
1980
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1981
+ # Overrides userIp if both are provided.
1982
+ # @param [String] user_ip
1983
+ # IP address of the site where the request originates. Use this if you want to
1984
+ # enforce per-user limits.
1985
+ # @param [Google::Apis::RequestOptions] options
1986
+ # Request-specific options
1987
+ #
1988
+ # @yield [result, err] Result & error if block supplied
1989
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
1990
+ # @yieldparam err [StandardError] error object if request failed
1991
+ #
1992
+ # @return [Google::Apis::ComputeV1::Operation]
1993
+ #
1994
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1995
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1996
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1997
+ def set_disk_labels(project, zone, resource, zone_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1998
+ command = make_simple_command(:post, '{project}/zones/{zone}/disks/{resource}/setLabels', options)
1999
+ command.request_representation = Google::Apis::ComputeV1::ZoneSetLabelsRequest::Representation
2000
+ command.request_object = zone_set_labels_request_object
2001
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
2002
+ command.response_class = Google::Apis::ComputeV1::Operation
2003
+ command.params['project'] = project unless project.nil?
2004
+ command.params['zone'] = zone unless zone.nil?
2005
+ command.params['resource'] = resource unless resource.nil?
2006
+ command.query['fields'] = fields unless fields.nil?
2007
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2008
+ command.query['userIp'] = user_ip unless user_ip.nil?
2009
+ execute_or_queue_command(command, &block)
2010
+ end
2011
+
1967
2012
  # Deletes the specified firewall.
1968
2013
  # @param [String] project
1969
2014
  # Project ID for this request.
@@ -4339,6 +4384,48 @@ module Google
4339
4384
  execute_or_queue_command(command, &block)
4340
4385
  end
4341
4386
 
4387
+ # Sets the labels on an image. To learn more about labels, read the Labeling or
4388
+ # Tagging Resources documentation.
4389
+ # @param [String] project
4390
+ # Project ID for this request.
4391
+ # @param [String] resource
4392
+ # Name of the resource for this request.
4393
+ # @param [Google::Apis::ComputeV1::GlobalSetLabelsRequest] global_set_labels_request_object
4394
+ # @param [String] fields
4395
+ # Selector specifying which fields to include in a partial response.
4396
+ # @param [String] quota_user
4397
+ # Available to use for quota purposes for server-side applications. Can be any
4398
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4399
+ # Overrides userIp if both are provided.
4400
+ # @param [String] user_ip
4401
+ # IP address of the site where the request originates. Use this if you want to
4402
+ # enforce per-user limits.
4403
+ # @param [Google::Apis::RequestOptions] options
4404
+ # Request-specific options
4405
+ #
4406
+ # @yield [result, err] Result & error if block supplied
4407
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
4408
+ # @yieldparam err [StandardError] error object if request failed
4409
+ #
4410
+ # @return [Google::Apis::ComputeV1::Operation]
4411
+ #
4412
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4413
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4414
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4415
+ def set_image_labels(project, resource, global_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
4416
+ command = make_simple_command(:post, '{project}/global/images/{resource}/setLabels', options)
4417
+ command.request_representation = Google::Apis::ComputeV1::GlobalSetLabelsRequest::Representation
4418
+ command.request_object = global_set_labels_request_object
4419
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
4420
+ command.response_class = Google::Apis::ComputeV1::Operation
4421
+ command.params['project'] = project unless project.nil?
4422
+ command.params['resource'] = resource unless resource.nil?
4423
+ command.query['fields'] = fields unless fields.nil?
4424
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4425
+ command.query['userIp'] = user_ip unless user_ip.nil?
4426
+ execute_or_queue_command(command, &block)
4427
+ end
4428
+
4342
4429
  # Schedules a group action to remove the specified instances from the managed
4343
4430
  # instance group. Abandoning an instance does not delete the instance, but it
4344
4431
  # does remove the instance from any target pools that are applied by the managed
@@ -4347,6 +4434,9 @@ module Google
4347
4434
  # DONE when the action is scheduled even if the instances have not yet been
4348
4435
  # removed from the group. You must separately verify the status of the
4349
4436
  # abandoning action with the listmanagedinstances method.
4437
+ # If the group is part of a backend service that has enabled connection draining,
4438
+ # it can take up to 60 seconds after the connection draining duration has
4439
+ # elapsed before the VM instance is removed or deleted.
4350
4440
  # You can specify a maximum of 1000 instances with this method per request.
4351
4441
  # @param [String] project
4352
4442
  # Project ID for this request.
@@ -4518,6 +4608,9 @@ module Google
4518
4608
  # DONE when the action is scheduled even if the instances are still being
4519
4609
  # deleted. You must separately verify the status of the deleting action with the
4520
4610
  # listmanagedinstances method.
4611
+ # If the group is part of a backend service that has enabled connection draining,
4612
+ # it can take up to 60 seconds after the connection draining duration has
4613
+ # elapsed before the VM instance is removed or deleted.
4521
4614
  # You can specify a maximum of 1000 instances with this method per request.
4522
4615
  # @param [String] project
4523
4616
  # Project ID for this request.
@@ -4610,7 +4703,8 @@ module Google
4610
4703
  # is marked as DONE when the group is created even if the instances in the group
4611
4704
  # have not yet been created. You must separately verify the status of the
4612
4705
  # individual instances with the listmanagedinstances method.
4613
- # A managed instance group can have up to 1000 VM instances per group.
4706
+ # A managed instance group can have up to 1000 VM instances per group. Please
4707
+ # contact Cloud Support if you need an increase in this limit.
4614
4708
  # @param [String] project
4615
4709
  # Project ID for this request.
4616
4710
  # @param [String] zone
@@ -4791,6 +4885,9 @@ module Google
4791
4885
  # DONE when the action is scheduled even if the instances have not yet been
4792
4886
  # recreated. You must separately verify the status of the recreating action with
4793
4887
  # the listmanagedinstances method.
4888
+ # If the group is part of a backend service that has enabled connection draining,
4889
+ # it can take up to 60 seconds after the connection draining duration has
4890
+ # elapsed before the VM instance is removed or deleted.
4794
4891
  # You can specify a maximum of 1000 instances with this method per request.
4795
4892
  # @param [String] project
4796
4893
  # Project ID for this request.
@@ -4841,6 +4938,9 @@ module Google
4841
4938
  # the resize actions are scheduled even if the group has not yet added or
4842
4939
  # deleted any instances. You must separately verify the status of the creating
4843
4940
  # or deleting actions with the listmanagedinstances method.
4941
+ # If the group is part of a backend service that has enabled connection draining,
4942
+ # it can take up to 60 seconds after the connection draining duration has
4943
+ # elapsed before the VM instance is removed or deleted.
4844
4944
  # @param [String] project
4845
4945
  # Project ID for this request.
4846
4946
  # @param [String] zone
@@ -5401,6 +5501,9 @@ module Google
5401
5501
 
5402
5502
  # Removes one or more instances from the specified instance group, but does not
5403
5503
  # delete those instances.
5504
+ # If the group is part of a backend service that has enabled connection draining,
5505
+ # it can take up to 60 seconds after the connection draining duration before
5506
+ # the VM instance is removed or deleted.
5404
5507
  # @param [String] project
5405
5508
  # Project ID for this request.
5406
5509
  # @param [String] zone
@@ -5811,7 +5914,10 @@ module Google
5811
5914
  execute_or_queue_command(command, &block)
5812
5915
  end
5813
5916
 
5814
- # Attaches a Disk resource to an instance.
5917
+ # Attaches an existing Disk resource to an instance. You must first create the
5918
+ # disk before you can attach it. It is not possible to create and attach a disk
5919
+ # at the same time. For more information, read Adding a persistent disk to your
5920
+ # instance.
5815
5921
  # @param [String] project
5816
5922
  # Project ID for this request.
5817
5923
  # @param [String] zone
@@ -6291,6 +6397,51 @@ module Google
6291
6397
  execute_or_queue_command(command, &block)
6292
6398
  end
6293
6399
 
6400
+ # Sets labels on an instance. To learn more about labels, read the Labeling or
6401
+ # Tagging Resources documentation.
6402
+ # @param [String] project
6403
+ # Project ID for this request.
6404
+ # @param [String] zone
6405
+ # The name of the zone for this request.
6406
+ # @param [String] instance
6407
+ # Name of the instance scoping this request.
6408
+ # @param [Google::Apis::ComputeV1::InstancesSetLabelsRequest] instances_set_labels_request_object
6409
+ # @param [String] fields
6410
+ # Selector specifying which fields to include in a partial response.
6411
+ # @param [String] quota_user
6412
+ # Available to use for quota purposes for server-side applications. Can be any
6413
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6414
+ # Overrides userIp if both are provided.
6415
+ # @param [String] user_ip
6416
+ # IP address of the site where the request originates. Use this if you want to
6417
+ # enforce per-user limits.
6418
+ # @param [Google::Apis::RequestOptions] options
6419
+ # Request-specific options
6420
+ #
6421
+ # @yield [result, err] Result & error if block supplied
6422
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
6423
+ # @yieldparam err [StandardError] error object if request failed
6424
+ #
6425
+ # @return [Google::Apis::ComputeV1::Operation]
6426
+ #
6427
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6428
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6429
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6430
+ def set_instance_labels(project, zone, instance, instances_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
6431
+ command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/setLabels', options)
6432
+ command.request_representation = Google::Apis::ComputeV1::InstancesSetLabelsRequest::Representation
6433
+ command.request_object = instances_set_labels_request_object
6434
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
6435
+ command.response_class = Google::Apis::ComputeV1::Operation
6436
+ command.params['project'] = project unless project.nil?
6437
+ command.params['zone'] = zone unless zone.nil?
6438
+ command.params['instance'] = instance unless instance.nil?
6439
+ command.query['fields'] = fields unless fields.nil?
6440
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6441
+ command.query['userIp'] = user_ip unless user_ip.nil?
6442
+ execute_or_queue_command(command, &block)
6443
+ end
6444
+
6294
6445
  # Changes the machine type for a stopped instance to the machine type specified
6295
6446
  # in the request.
6296
6447
  # @param [String] project
@@ -7115,6 +7266,154 @@ module Google
7115
7266
  execute_or_queue_command(command, &block)
7116
7267
  end
7117
7268
 
7269
+ # Disable this project as an XPN host project.
7270
+ # @param [String] project
7271
+ # Project ID for this request.
7272
+ # @param [String] fields
7273
+ # Selector specifying which fields to include in a partial response.
7274
+ # @param [String] quota_user
7275
+ # Available to use for quota purposes for server-side applications. Can be any
7276
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
7277
+ # Overrides userIp if both are provided.
7278
+ # @param [String] user_ip
7279
+ # IP address of the site where the request originates. Use this if you want to
7280
+ # enforce per-user limits.
7281
+ # @param [Google::Apis::RequestOptions] options
7282
+ # Request-specific options
7283
+ #
7284
+ # @yield [result, err] Result & error if block supplied
7285
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
7286
+ # @yieldparam err [StandardError] error object if request failed
7287
+ #
7288
+ # @return [Google::Apis::ComputeV1::Operation]
7289
+ #
7290
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7291
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7292
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7293
+ def disable_project_xpn_host(project, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7294
+ command = make_simple_command(:post, '{project}/disableXpnHost', options)
7295
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
7296
+ command.response_class = Google::Apis::ComputeV1::Operation
7297
+ command.params['project'] = project unless project.nil?
7298
+ command.query['fields'] = fields unless fields.nil?
7299
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7300
+ command.query['userIp'] = user_ip unless user_ip.nil?
7301
+ execute_or_queue_command(command, &block)
7302
+ end
7303
+
7304
+ # Disable an XPN resource associated with this host project.
7305
+ # @param [String] project
7306
+ # Project ID for this request.
7307
+ # @param [Google::Apis::ComputeV1::ProjectsDisableXpnResourceRequest] projects_disable_xpn_resource_request_object
7308
+ # @param [String] fields
7309
+ # Selector specifying which fields to include in a partial response.
7310
+ # @param [String] quota_user
7311
+ # Available to use for quota purposes for server-side applications. Can be any
7312
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
7313
+ # Overrides userIp if both are provided.
7314
+ # @param [String] user_ip
7315
+ # IP address of the site where the request originates. Use this if you want to
7316
+ # enforce per-user limits.
7317
+ # @param [Google::Apis::RequestOptions] options
7318
+ # Request-specific options
7319
+ #
7320
+ # @yield [result, err] Result & error if block supplied
7321
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
7322
+ # @yieldparam err [StandardError] error object if request failed
7323
+ #
7324
+ # @return [Google::Apis::ComputeV1::Operation]
7325
+ #
7326
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7327
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7328
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7329
+ def disable_project_xpn_resource(project, projects_disable_xpn_resource_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7330
+ command = make_simple_command(:post, '{project}/disableXpnResource', options)
7331
+ command.request_representation = Google::Apis::ComputeV1::ProjectsDisableXpnResourceRequest::Representation
7332
+ command.request_object = projects_disable_xpn_resource_request_object
7333
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
7334
+ command.response_class = Google::Apis::ComputeV1::Operation
7335
+ command.params['project'] = project unless project.nil?
7336
+ command.query['fields'] = fields unless fields.nil?
7337
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7338
+ command.query['userIp'] = user_ip unless user_ip.nil?
7339
+ execute_or_queue_command(command, &block)
7340
+ end
7341
+
7342
+ # Enable this project as an XPN host project.
7343
+ # @param [String] project
7344
+ # Project ID for this request.
7345
+ # @param [String] fields
7346
+ # Selector specifying which fields to include in a partial response.
7347
+ # @param [String] quota_user
7348
+ # Available to use for quota purposes for server-side applications. Can be any
7349
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
7350
+ # Overrides userIp if both are provided.
7351
+ # @param [String] user_ip
7352
+ # IP address of the site where the request originates. Use this if you want to
7353
+ # enforce per-user limits.
7354
+ # @param [Google::Apis::RequestOptions] options
7355
+ # Request-specific options
7356
+ #
7357
+ # @yield [result, err] Result & error if block supplied
7358
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
7359
+ # @yieldparam err [StandardError] error object if request failed
7360
+ #
7361
+ # @return [Google::Apis::ComputeV1::Operation]
7362
+ #
7363
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7364
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7365
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7366
+ def enable_project_xpn_host(project, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7367
+ command = make_simple_command(:post, '{project}/enableXpnHost', options)
7368
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
7369
+ command.response_class = Google::Apis::ComputeV1::Operation
7370
+ command.params['project'] = project unless project.nil?
7371
+ command.query['fields'] = fields unless fields.nil?
7372
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7373
+ command.query['userIp'] = user_ip unless user_ip.nil?
7374
+ execute_or_queue_command(command, &block)
7375
+ end
7376
+
7377
+ # Enable XPN resource (a.k.a service project or service folder in the future)
7378
+ # for a host project, so that subnetworks in the host project can be used by
7379
+ # instances in the service project or folder.
7380
+ # @param [String] project
7381
+ # Project ID for this request.
7382
+ # @param [Google::Apis::ComputeV1::ProjectsEnableXpnResourceRequest] projects_enable_xpn_resource_request_object
7383
+ # @param [String] fields
7384
+ # Selector specifying which fields to include in a partial response.
7385
+ # @param [String] quota_user
7386
+ # Available to use for quota purposes for server-side applications. Can be any
7387
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
7388
+ # Overrides userIp if both are provided.
7389
+ # @param [String] user_ip
7390
+ # IP address of the site where the request originates. Use this if you want to
7391
+ # enforce per-user limits.
7392
+ # @param [Google::Apis::RequestOptions] options
7393
+ # Request-specific options
7394
+ #
7395
+ # @yield [result, err] Result & error if block supplied
7396
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
7397
+ # @yieldparam err [StandardError] error object if request failed
7398
+ #
7399
+ # @return [Google::Apis::ComputeV1::Operation]
7400
+ #
7401
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7402
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7403
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7404
+ def enable_project_xpn_resource(project, projects_enable_xpn_resource_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7405
+ command = make_simple_command(:post, '{project}/enableXpnResource', options)
7406
+ command.request_representation = Google::Apis::ComputeV1::ProjectsEnableXpnResourceRequest::Representation
7407
+ command.request_object = projects_enable_xpn_resource_request_object
7408
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
7409
+ command.response_class = Google::Apis::ComputeV1::Operation
7410
+ command.params['project'] = project unless project.nil?
7411
+ command.query['fields'] = fields unless fields.nil?
7412
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7413
+ command.query['userIp'] = user_ip unless user_ip.nil?
7414
+ execute_or_queue_command(command, &block)
7415
+ end
7416
+
7118
7417
  # Returns the specified Project resource.
7119
7418
  # @param [String] project
7120
7419
  # Project ID for this request.
@@ -7150,6 +7449,131 @@ module Google
7150
7449
  execute_or_queue_command(command, &block)
7151
7450
  end
7152
7451
 
7452
+ # Get the XPN host project that this project links to. May be empty if no link
7453
+ # exists.
7454
+ # @param [String] project
7455
+ # Project ID for this request.
7456
+ # @param [String] fields
7457
+ # Selector specifying which fields to include in a partial response.
7458
+ # @param [String] quota_user
7459
+ # Available to use for quota purposes for server-side applications. Can be any
7460
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
7461
+ # Overrides userIp if both are provided.
7462
+ # @param [String] user_ip
7463
+ # IP address of the site where the request originates. Use this if you want to
7464
+ # enforce per-user limits.
7465
+ # @param [Google::Apis::RequestOptions] options
7466
+ # Request-specific options
7467
+ #
7468
+ # @yield [result, err] Result & error if block supplied
7469
+ # @yieldparam result [Google::Apis::ComputeV1::Project] parsed result object
7470
+ # @yieldparam err [StandardError] error object if request failed
7471
+ #
7472
+ # @return [Google::Apis::ComputeV1::Project]
7473
+ #
7474
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7475
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7476
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7477
+ def get_project_xpn_host(project, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7478
+ command = make_simple_command(:get, '{project}/getXpnHost', options)
7479
+ command.response_representation = Google::Apis::ComputeV1::Project::Representation
7480
+ command.response_class = Google::Apis::ComputeV1::Project
7481
+ command.params['project'] = project unless project.nil?
7482
+ command.query['fields'] = fields unless fields.nil?
7483
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7484
+ command.query['userIp'] = user_ip unless user_ip.nil?
7485
+ execute_or_queue_command(command, &block)
7486
+ end
7487
+
7488
+ # Get XPN resources associated with this host project.
7489
+ # @param [String] project
7490
+ # Project ID for this request.
7491
+ # @param [String] filter
7492
+ # @param [Fixnum] max_results
7493
+ # @param [String] order_by
7494
+ # @param [String] page_token
7495
+ # @param [String] fields
7496
+ # Selector specifying which fields to include in a partial response.
7497
+ # @param [String] quota_user
7498
+ # Available to use for quota purposes for server-side applications. Can be any
7499
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
7500
+ # Overrides userIp if both are provided.
7501
+ # @param [String] user_ip
7502
+ # IP address of the site where the request originates. Use this if you want to
7503
+ # enforce per-user limits.
7504
+ # @param [Google::Apis::RequestOptions] options
7505
+ # Request-specific options
7506
+ #
7507
+ # @yield [result, err] Result & error if block supplied
7508
+ # @yieldparam result [Google::Apis::ComputeV1::ProjectsGetXpnResources] parsed result object
7509
+ # @yieldparam err [StandardError] error object if request failed
7510
+ #
7511
+ # @return [Google::Apis::ComputeV1::ProjectsGetXpnResources]
7512
+ #
7513
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7514
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7515
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7516
+ def get_project_xpn_resources(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7517
+ command = make_simple_command(:get, '{project}/getXpnResources', options)
7518
+ command.response_representation = Google::Apis::ComputeV1::ProjectsGetXpnResources::Representation
7519
+ command.response_class = Google::Apis::ComputeV1::ProjectsGetXpnResources
7520
+ command.params['project'] = project unless project.nil?
7521
+ command.query['filter'] = filter unless filter.nil?
7522
+ command.query['maxResults'] = max_results unless max_results.nil?
7523
+ command.query['order_by'] = order_by unless order_by.nil?
7524
+ command.query['pageToken'] = page_token unless page_token.nil?
7525
+ command.query['fields'] = fields unless fields.nil?
7526
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7527
+ command.query['userIp'] = user_ip unless user_ip.nil?
7528
+ execute_or_queue_command(command, &block)
7529
+ end
7530
+
7531
+ # List all XPN host projects visible to the user in an organization.
7532
+ # @param [String] project
7533
+ # Project ID for this request.
7534
+ # @param [Google::Apis::ComputeV1::ProjectsListXpnHostsRequest] projects_list_xpn_hosts_request_object
7535
+ # @param [String] filter
7536
+ # @param [Fixnum] max_results
7537
+ # @param [String] order_by
7538
+ # @param [String] page_token
7539
+ # @param [String] fields
7540
+ # Selector specifying which fields to include in a partial response.
7541
+ # @param [String] quota_user
7542
+ # Available to use for quota purposes for server-side applications. Can be any
7543
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
7544
+ # Overrides userIp if both are provided.
7545
+ # @param [String] user_ip
7546
+ # IP address of the site where the request originates. Use this if you want to
7547
+ # enforce per-user limits.
7548
+ # @param [Google::Apis::RequestOptions] options
7549
+ # Request-specific options
7550
+ #
7551
+ # @yield [result, err] Result & error if block supplied
7552
+ # @yieldparam result [Google::Apis::ComputeV1::XpnHostList] parsed result object
7553
+ # @yieldparam err [StandardError] error object if request failed
7554
+ #
7555
+ # @return [Google::Apis::ComputeV1::XpnHostList]
7556
+ #
7557
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7558
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7559
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7560
+ def list_project_xpn_hosts(project, projects_list_xpn_hosts_request_object = nil, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7561
+ command = make_simple_command(:post, '{project}/listXpnHosts', options)
7562
+ command.request_representation = Google::Apis::ComputeV1::ProjectsListXpnHostsRequest::Representation
7563
+ command.request_object = projects_list_xpn_hosts_request_object
7564
+ command.response_representation = Google::Apis::ComputeV1::XpnHostList::Representation
7565
+ command.response_class = Google::Apis::ComputeV1::XpnHostList
7566
+ command.params['project'] = project unless project.nil?
7567
+ command.query['filter'] = filter unless filter.nil?
7568
+ command.query['maxResults'] = max_results unless max_results.nil?
7569
+ command.query['order_by'] = order_by unless order_by.nil?
7570
+ command.query['pageToken'] = page_token unless page_token.nil?
7571
+ command.query['fields'] = fields unless fields.nil?
7572
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7573
+ command.query['userIp'] = user_ip unless user_ip.nil?
7574
+ execute_or_queue_command(command, &block)
7575
+ end
7576
+
7153
7577
  # Moves a persistent disk from one zone to another.
7154
7578
  # @param [String] project
7155
7579
  # Project ID for this request.
@@ -7951,6 +8375,9 @@ module Google
7951
8375
  # DONE when the action is scheduled even if the instances have not yet been
7952
8376
  # removed from the group. You must separately verify the status of the
7953
8377
  # abandoning action with the listmanagedinstances method.
8378
+ # If the group is part of a backend service that has enabled connection draining,
8379
+ # it can take up to 60 seconds after the connection draining duration has
8380
+ # elapsed before the VM instance is removed or deleted.
7954
8381
  # You can specify a maximum of 1000 instances with this method per request.
7955
8382
  # @param [String] project
7956
8383
  # Project ID for this request.
@@ -8044,6 +8471,9 @@ module Google
8044
8471
  # DONE when the action is scheduled even if the instances are still being
8045
8472
  # deleted. You must separately verify the status of the deleting action with the
8046
8473
  # listmanagedinstances method.
8474
+ # If the group is part of a backend service that has enabled connection draining,
8475
+ # it can take up to 60 seconds after the connection draining duration has
8476
+ # elapsed before the VM instance is removed or deleted.
8047
8477
  # You can specify a maximum of 1000 instances with this method per request.
8048
8478
  # @param [String] project
8049
8479
  # Project ID for this request.
@@ -8314,6 +8744,9 @@ module Google
8314
8744
  # DONE when the action is scheduled even if the instances have not yet been
8315
8745
  # recreated. You must separately verify the status of the recreating action with
8316
8746
  # the listmanagedinstances method.
8747
+ # If the group is part of a backend service that has enabled connection draining,
8748
+ # it can take up to 60 seconds after the connection draining duration has
8749
+ # elapsed before the VM instance is removed or deleted.
8317
8750
  # You can specify a maximum of 1000 instances with this method per request.
8318
8751
  # @param [String] project
8319
8752
  # Project ID for this request.
@@ -8365,6 +8798,9 @@ module Google
8365
8798
  # resize actions are scheduled even if the group has not yet added or deleted
8366
8799
  # any instances. You must separately verify the status of the creating or
8367
8800
  # deleting actions with the listmanagedinstances method.
8801
+ # If the group is part of a backend service that has enabled connection draining,
8802
+ # it can take up to 60 seconds after the connection draining duration has
8803
+ # elapsed before the VM instance is removed or deleted.
8368
8804
  # @param [String] project
8369
8805
  # Project ID for this request.
8370
8806
  # @param [String] region
@@ -9837,6 +10273,48 @@ module Google
9837
10273
  execute_or_queue_command(command, &block)
9838
10274
  end
9839
10275
 
10276
+ # Sets the labels on a snapshot. To learn more about labels, read the Labeling
10277
+ # or Tagging Resources documentation.
10278
+ # @param [String] project
10279
+ # Project ID for this request.
10280
+ # @param [String] resource
10281
+ # Name of the resource for this request.
10282
+ # @param [Google::Apis::ComputeV1::GlobalSetLabelsRequest] global_set_labels_request_object
10283
+ # @param [String] fields
10284
+ # Selector specifying which fields to include in a partial response.
10285
+ # @param [String] quota_user
10286
+ # Available to use for quota purposes for server-side applications. Can be any
10287
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10288
+ # Overrides userIp if both are provided.
10289
+ # @param [String] user_ip
10290
+ # IP address of the site where the request originates. Use this if you want to
10291
+ # enforce per-user limits.
10292
+ # @param [Google::Apis::RequestOptions] options
10293
+ # Request-specific options
10294
+ #
10295
+ # @yield [result, err] Result & error if block supplied
10296
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
10297
+ # @yieldparam err [StandardError] error object if request failed
10298
+ #
10299
+ # @return [Google::Apis::ComputeV1::Operation]
10300
+ #
10301
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10302
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10303
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10304
+ def set_snapshot_labels(project, resource, global_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10305
+ command = make_simple_command(:post, '{project}/global/snapshots/{resource}/setLabels', options)
10306
+ command.request_representation = Google::Apis::ComputeV1::GlobalSetLabelsRequest::Representation
10307
+ command.request_object = global_set_labels_request_object
10308
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
10309
+ command.response_class = Google::Apis::ComputeV1::Operation
10310
+ command.params['project'] = project unless project.nil?
10311
+ command.params['resource'] = resource unless resource.nil?
10312
+ command.query['fields'] = fields unless fields.nil?
10313
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10314
+ command.query['userIp'] = user_ip unless user_ip.nil?
10315
+ execute_or_queue_command(command, &block)
10316
+ end
10317
+
9840
10318
  # Deletes the specified SslCertificate resource.
9841
10319
  # @param [String] project
9842
10320
  # Project ID for this request.
@@ -10358,7 +10836,7 @@ module Google
10358
10836
  end
10359
10837
 
10360
10838
  # Set whether VMs in this subnet can access Google services without assigning
10361
- # external IP addresses through Cloudpath.
10839
+ # external IP addresses through Private Google Access.
10362
10840
  # @param [String] project
10363
10841
  # Project ID for this request.
10364
10842
  # @param [String] region