google-api-client 0.25.0 → 0.26.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (265) hide show
  1. checksums.yaml +4 -4
  2. data/{CONTRIBUTING.md → .github/CONTRIBUTING.md} +0 -0
  3. data/.github/ISSUE_TEMPLATE/bug_report.md +36 -0
  4. data/.github/ISSUE_TEMPLATE/feature_request.md +21 -0
  5. data/.github/ISSUE_TEMPLATE/support_request.md +7 -0
  6. data/.kokoro/build.bat +8 -0
  7. data/.kokoro/build.sh +36 -0
  8. data/.kokoro/common.cfg +22 -0
  9. data/.kokoro/continuous/common.cfg +20 -0
  10. data/.kokoro/continuous/linux.cfg +15 -0
  11. data/.kokoro/continuous/osx.cfg +3 -0
  12. data/.kokoro/continuous/windows.cfg +3 -0
  13. data/.kokoro/osx.sh +35 -0
  14. data/.kokoro/presubmit/common.cfg +19 -0
  15. data/.kokoro/presubmit/linux.cfg +14 -0
  16. data/.kokoro/presubmit/osx.cfg +3 -0
  17. data/.kokoro/presubmit/windows.cfg +3 -0
  18. data/.kokoro/trampoline.sh +24 -0
  19. data/.kokoro/windows.sh +32 -0
  20. data/CHANGELOG.md +83 -0
  21. data/Gemfile +2 -2
  22. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  23. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +3 -1
  24. data/generated/google/apis/alertcenter_v1beta1.rb +5 -3
  25. data/generated/google/apis/alertcenter_v1beta1/classes.rb +110 -101
  26. data/generated/google/apis/alertcenter_v1beta1/representations.rb +13 -0
  27. data/generated/google/apis/alertcenter_v1beta1/service.rb +83 -76
  28. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  29. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +7 -0
  30. data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +2 -0
  31. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +1 -1
  32. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  33. data/generated/google/apis/androidenterprise_v1/classes.rb +129 -44
  34. data/generated/google/apis/androidenterprise_v1/representations.rb +48 -0
  35. data/generated/google/apis/androidenterprise_v1/service.rb +218 -0
  36. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  37. data/generated/google/apis/androidmanagement_v1/classes.rb +1 -1
  38. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  39. data/generated/google/apis/androidpublisher_v3/classes.rb +8 -0
  40. data/generated/google/apis/androidpublisher_v3/representations.rb +1 -0
  41. data/generated/google/apis/appengine_v1.rb +1 -1
  42. data/generated/google/apis/appengine_v1beta.rb +1 -1
  43. data/generated/google/apis/bigquery_v2.rb +1 -1
  44. data/generated/google/apis/bigquery_v2/classes.rb +87 -29
  45. data/generated/google/apis/bigquery_v2/representations.rb +21 -0
  46. data/generated/google/apis/bigquery_v2/service.rb +7 -9
  47. data/generated/google/apis/calendar_v3.rb +2 -2
  48. data/generated/google/apis/calendar_v3/classes.rb +14 -6
  49. data/generated/google/apis/classroom_v1.rb +1 -1
  50. data/generated/google/apis/classroom_v1/service.rb +1 -1
  51. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  52. data/generated/google/apis/cloudasset_v1beta1/classes.rb +14 -10
  53. data/generated/google/apis/cloudasset_v1beta1/service.rb +4 -4
  54. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  55. data/generated/google/apis/clouddebugger_v2/classes.rb +2 -2
  56. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  57. data/generated/google/apis/cloudfunctions_v1/classes.rb +2 -3
  58. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  59. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +2 -3
  60. data/generated/google/apis/cloudiot_v1.rb +1 -1
  61. data/generated/google/apis/cloudiot_v1/classes.rb +127 -0
  62. data/generated/google/apis/cloudiot_v1/representations.rb +70 -0
  63. data/generated/google/apis/cloudiot_v1/service.rb +172 -2
  64. data/generated/google/apis/cloudkms_v1.rb +1 -1
  65. data/generated/google/apis/cloudkms_v1/service.rb +107 -0
  66. data/generated/google/apis/{cloudiot_v1beta1.rb → cloudscheduler_v1beta1.rb} +8 -12
  67. data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +882 -0
  68. data/generated/google/apis/cloudscheduler_v1beta1/representations.rb +264 -0
  69. data/generated/google/apis/cloudscheduler_v1beta1/service.rb +445 -0
  70. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  71. data/generated/google/apis/cloudsearch_v1/classes.rb +79 -1
  72. data/generated/google/apis/cloudsearch_v1/representations.rb +44 -0
  73. data/generated/google/apis/cloudsearch_v1/service.rb +88 -3
  74. data/generated/google/apis/composer_v1.rb +1 -1
  75. data/generated/google/apis/composer_v1/classes.rb +9 -0
  76. data/generated/google/apis/composer_v1/representations.rb +1 -0
  77. data/generated/google/apis/compute_alpha.rb +1 -1
  78. data/generated/google/apis/compute_alpha/classes.rb +938 -117
  79. data/generated/google/apis/compute_alpha/representations.rb +310 -2
  80. data/generated/google/apis/compute_alpha/service.rb +1203 -245
  81. data/generated/google/apis/compute_beta.rb +1 -1
  82. data/generated/google/apis/compute_beta/classes.rb +1175 -219
  83. data/generated/google/apis/compute_beta/representations.rb +375 -2
  84. data/generated/google/apis/compute_beta/service.rb +907 -139
  85. data/generated/google/apis/compute_v1.rb +1 -1
  86. data/generated/google/apis/compute_v1/classes.rb +1485 -143
  87. data/generated/google/apis/compute_v1/representations.rb +503 -0
  88. data/generated/google/apis/compute_v1/service.rb +1375 -85
  89. data/generated/google/apis/container_v1.rb +3 -3
  90. data/generated/google/apis/container_v1/classes.rb +99 -6
  91. data/generated/google/apis/container_v1/representations.rb +39 -0
  92. data/generated/google/apis/container_v1/service.rb +2 -2
  93. data/generated/google/apis/container_v1beta1.rb +3 -3
  94. data/generated/google/apis/container_v1beta1/classes.rb +162 -9
  95. data/generated/google/apis/container_v1beta1/representations.rb +80 -0
  96. data/generated/google/apis/container_v1beta1/service.rb +3 -3
  97. data/generated/google/apis/content_v2.rb +1 -1
  98. data/generated/google/apis/content_v2/classes.rb +40 -32
  99. data/generated/google/apis/content_v2/representations.rb +0 -1
  100. data/generated/google/apis/content_v2/service.rb +3 -3
  101. data/generated/google/apis/content_v2_1.rb +35 -0
  102. data/generated/google/apis/content_v2_1/classes.rb +9104 -0
  103. data/generated/google/apis/content_v2_1/representations.rb +3967 -0
  104. data/generated/google/apis/content_v2_1/service.rb +3463 -0
  105. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  106. data/generated/google/apis/dataflow_v1b3/classes.rb +82 -0
  107. data/generated/google/apis/dataflow_v1b3/representations.rb +33 -0
  108. data/generated/google/apis/dataflow_v1b3/service.rb +97 -6
  109. data/generated/google/apis/dataproc_v1.rb +1 -1
  110. data/generated/google/apis/dataproc_v1/classes.rb +15 -1
  111. data/generated/google/apis/dataproc_v1/representations.rb +2 -0
  112. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  113. data/generated/google/apis/dataproc_v1beta2/classes.rb +125 -1
  114. data/generated/google/apis/dataproc_v1beta2/representations.rb +41 -0
  115. data/generated/google/apis/dialogflow_v2.rb +1 -1
  116. data/generated/google/apis/dialogflow_v2/classes.rb +13 -6
  117. data/generated/google/apis/dialogflow_v2/service.rb +2 -0
  118. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  119. data/generated/google/apis/dialogflow_v2beta1/classes.rb +26 -6
  120. data/generated/google/apis/dialogflow_v2beta1/representations.rb +12 -0
  121. data/generated/google/apis/dialogflow_v2beta1/service.rb +261 -12
  122. data/generated/google/apis/dlp_v2.rb +1 -1
  123. data/generated/google/apis/dlp_v2/classes.rb +4 -4
  124. data/generated/google/apis/dns_v1beta2.rb +1 -1
  125. data/generated/google/apis/dns_v1beta2/classes.rb +326 -0
  126. data/generated/google/apis/dns_v1beta2/representations.rb +149 -0
  127. data/generated/google/apis/dns_v1beta2/service.rb +246 -0
  128. data/generated/google/apis/drive_v2.rb +3 -3
  129. data/generated/google/apis/drive_v3.rb +3 -3
  130. data/generated/google/apis/driveactivity_v2.rb +37 -0
  131. data/generated/google/apis/driveactivity_v2/classes.rb +1388 -0
  132. data/generated/google/apis/driveactivity_v2/representations.rb +799 -0
  133. data/generated/google/apis/driveactivity_v2/service.rb +89 -0
  134. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  135. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +8 -1
  136. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +1 -0
  137. data/generated/google/apis/firebasehosting_v1beta1.rb +3 -2
  138. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +43 -17
  139. data/generated/google/apis/firebasehosting_v1beta1/representations.rb +13 -0
  140. data/generated/google/apis/firebasehosting_v1beta1/service.rb +74 -1
  141. data/generated/google/apis/firestore_v1.rb +1 -1
  142. data/generated/google/apis/firestore_v1/classes.rb +2225 -520
  143. data/generated/google/apis/firestore_v1/representations.rb +800 -33
  144. data/generated/google/apis/firestore_v1/service.rb +526 -0
  145. data/generated/google/apis/fitness_v1.rb +1 -1
  146. data/generated/google/apis/fitness_v1/classes.rb +1 -2
  147. data/generated/google/apis/fitness_v1/service.rb +7 -3
  148. data/generated/google/apis/games_management_v1management.rb +1 -4
  149. data/generated/google/apis/games_v1.rb +1 -4
  150. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  151. data/generated/google/apis/genomics_v2alpha1/classes.rb +6 -1
  152. data/generated/google/apis/gmail_v1.rb +2 -2
  153. data/generated/google/apis/iap_v1.rb +34 -0
  154. data/generated/google/apis/iap_v1/classes.rb +308 -0
  155. data/generated/google/apis/iap_v1/representations.rb +126 -0
  156. data/generated/google/apis/iap_v1/service.rb +725 -0
  157. data/generated/google/apis/iap_v1beta1.rb +1 -1
  158. data/generated/google/apis/iap_v1beta1/classes.rb +0 -132
  159. data/generated/google/apis/iap_v1beta1/representations.rb +0 -32
  160. data/generated/google/apis/jobs_v2.rb +1 -1
  161. data/generated/google/apis/jobs_v2/classes.rb +8 -9
  162. data/generated/google/apis/jobs_v3.rb +1 -1
  163. data/generated/google/apis/jobs_v3/classes.rb +6 -6
  164. data/generated/google/apis/jobs_v3/service.rb +8 -8
  165. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  166. data/generated/google/apis/jobs_v3p1beta1/classes.rb +9 -9
  167. data/generated/google/apis/jobs_v3p1beta1/service.rb +8 -8
  168. data/generated/google/apis/monitoring_v3.rb +1 -1
  169. data/generated/google/apis/monitoring_v3/classes.rb +20 -7
  170. data/generated/google/apis/monitoring_v3/representations.rb +1 -0
  171. data/generated/google/apis/monitoring_v3/service.rb +0 -365
  172. data/generated/google/apis/pagespeedonline_v5.rb +32 -0
  173. data/generated/google/apis/pagespeedonline_v5/classes.rb +724 -0
  174. data/generated/google/apis/pagespeedonline_v5/representations.rb +315 -0
  175. data/generated/google/apis/pagespeedonline_v5/service.rb +116 -0
  176. data/generated/google/apis/people_v1.rb +3 -3
  177. data/generated/google/apis/pubsub_v1.rb +1 -1
  178. data/generated/google/apis/pubsub_v1/classes.rb +63 -12
  179. data/generated/google/apis/pubsub_v1/representations.rb +15 -0
  180. data/generated/google/apis/pubsub_v1/service.rb +26 -18
  181. data/generated/google/apis/redis_v1.rb +2 -3
  182. data/generated/google/apis/redis_v1/service.rb +1 -2
  183. data/generated/google/apis/redis_v1beta1.rb +2 -3
  184. data/generated/google/apis/redis_v1beta1/service.rb +1 -2
  185. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  186. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +2 -2
  187. data/generated/google/apis/script_v1.rb +24 -6
  188. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  189. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +66 -1
  190. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +30 -0
  191. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +89 -0
  192. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  193. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  194. data/generated/google/apis/servicemanagement_v1/classes.rb +7 -0
  195. data/generated/google/apis/servicemanagement_v1/representations.rb +1 -0
  196. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  197. data/generated/google/apis/servicenetworking_v1beta/classes.rb +84 -37
  198. data/generated/google/apis/servicenetworking_v1beta/representations.rb +15 -0
  199. data/generated/google/apis/servicenetworking_v1beta/service.rb +132 -43
  200. data/generated/google/apis/serviceusage_v1.rb +1 -1
  201. data/generated/google/apis/serviceusage_v1/classes.rb +1 -1
  202. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  203. data/generated/google/apis/serviceusage_v1beta1/classes.rb +1 -1
  204. data/generated/google/apis/sheets_v4.rb +4 -4
  205. data/generated/google/apis/slides_v1.rb +4 -4
  206. data/generated/google/apis/slides_v1/classes.rb +187 -2
  207. data/generated/google/apis/slides_v1/representations.rb +67 -0
  208. data/generated/google/apis/slides_v1/service.rb +4 -3
  209. data/generated/google/apis/sourcerepo_v1.rb +2 -2
  210. data/generated/google/apis/sourcerepo_v1/service.rb +1 -1
  211. data/generated/google/apis/speech_v1.rb +1 -1
  212. data/generated/google/apis/speech_v1/classes.rb +58 -10
  213. data/generated/google/apis/speech_v1/representations.rb +29 -1
  214. data/generated/google/apis/{speech_v1beta1.rb → speech_v1p1beta1.rb} +6 -6
  215. data/generated/google/apis/speech_v1p1beta1/classes.rb +922 -0
  216. data/generated/google/apis/speech_v1p1beta1/representations.rb +294 -0
  217. data/generated/google/apis/{speech_v1beta1 → speech_v1p1beta1}/service.rb +33 -35
  218. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  219. data/generated/google/apis/sqladmin_v1beta4/classes.rb +64 -3
  220. data/generated/google/apis/sqladmin_v1beta4/representations.rb +31 -0
  221. data/generated/google/apis/storage_v1.rb +1 -1
  222. data/generated/google/apis/storage_v1/classes.rb +54 -0
  223. data/generated/google/apis/storage_v1/representations.rb +31 -0
  224. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  225. data/generated/google/apis/streetviewpublish_v1/classes.rb +26 -0
  226. data/generated/google/apis/streetviewpublish_v1/representations.rb +4 -0
  227. data/generated/google/apis/streetviewpublish_v1/service.rb +29 -3
  228. data/generated/google/apis/tasks_v1.rb +1 -1
  229. data/generated/google/apis/testing_v1.rb +1 -1
  230. data/generated/google/apis/testing_v1/classes.rb +49 -19
  231. data/generated/google/apis/testing_v1/representations.rb +20 -2
  232. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  233. data/generated/google/apis/toolresults_v1beta3/classes.rb +77 -70
  234. data/generated/google/apis/vault_v1.rb +1 -1
  235. data/generated/google/apis/vault_v1/classes.rb +78 -7
  236. data/generated/google/apis/vault_v1/representations.rb +34 -1
  237. data/generated/google/apis/vault_v1/service.rb +141 -0
  238. data/generated/google/apis/vision_v1.rb +1 -1
  239. data/generated/google/apis/vision_v1/classes.rb +33 -0
  240. data/generated/google/apis/vision_v1/representations.rb +16 -0
  241. data/generated/google/apis/vision_v1/service.rb +2 -2
  242. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  243. data/generated/google/apis/vision_v1p1beta1/classes.rb +33 -0
  244. data/generated/google/apis/vision_v1p1beta1/representations.rb +16 -0
  245. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  246. data/generated/google/apis/vision_v1p2beta1/classes.rb +33 -0
  247. data/generated/google/apis/vision_v1p2beta1/representations.rb +16 -0
  248. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  249. data/google-api-client.gemspec +1 -1
  250. data/lib/google/api_client/auth/installed_app.rb +17 -2
  251. data/lib/google/api_client/client_secrets.rb +1 -1
  252. data/lib/google/apis/core/download.rb +2 -2
  253. data/lib/google/apis/errors.rb +9 -0
  254. data/lib/google/apis/generator/annotator.rb +2 -2
  255. data/lib/google/apis/version.rb +1 -1
  256. metadata +46 -17
  257. data/generated/google/apis/cloudiot_v1beta1/classes.rb +0 -959
  258. data/generated/google/apis/cloudiot_v1beta1/representations.rb +0 -375
  259. data/generated/google/apis/cloudiot_v1beta1/service.rb +0 -618
  260. data/generated/google/apis/dfareporting_v3_0.rb +0 -40
  261. data/generated/google/apis/dfareporting_v3_0/classes.rb +0 -12119
  262. data/generated/google/apis/dfareporting_v3_0/representations.rb +0 -4336
  263. data/generated/google/apis/dfareporting_v3_0/service.rb +0 -8701
  264. data/generated/google/apis/speech_v1beta1/classes.rb +0 -480
  265. data/generated/google/apis/speech_v1beta1/representations.rb +0 -194
@@ -529,7 +529,7 @@ module Google
529
529
  # @param [String] region
530
530
  # The region for this request.
531
531
  # @param [String] resource
532
- # Name of the resource for this request.
532
+ # Name or id of the resource for this request.
533
533
  # @param [Google::Apis::ComputeAlpha::RegionSetLabelsRequest] region_set_labels_request_object
534
534
  # @param [String] request_id
535
535
  # An optional request ID to identify requests. Specify a unique request ID so
@@ -583,7 +583,7 @@ module Google
583
583
  # @param [String] region
584
584
  # The name of the region for this request.
585
585
  # @param [String] resource
586
- # Name of the resource for this request.
586
+ # Name or id of the resource for this request.
587
587
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
588
588
  # @param [String] fields
589
589
  # Selector specifying which fields to include in a partial response.
@@ -690,6 +690,57 @@ module Google
690
690
  execute_or_queue_command(command, &block)
691
691
  end
692
692
 
693
+ # Deletes the specified allocation.
694
+ # @param [String] project
695
+ # Project ID for this request.
696
+ # @param [String] zone
697
+ # Name of the zone for this request.
698
+ # @param [String] allocation
699
+ # Name of the allocation to delete.
700
+ # @param [String] request_id
701
+ # An optional request ID to identify requests. Specify a unique request ID so
702
+ # that if you must retry your request, the server will know to ignore the
703
+ # request if it has already been completed.
704
+ # For example, consider a situation where you make an initial request and the
705
+ # request times out. If you make the request again with the same request ID, the
706
+ # server can check if original operation with the same request ID was received,
707
+ # and if so, will ignore the second request. This prevents clients from
708
+ # accidentally creating duplicate commitments.
709
+ # The request ID must be a valid UUID with the exception that zero UUID is not
710
+ # supported (00000000-0000-0000-0000-000000000000).
711
+ # @param [String] fields
712
+ # Selector specifying which fields to include in a partial response.
713
+ # @param [String] quota_user
714
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
715
+ # characters.
716
+ # @param [String] user_ip
717
+ # Deprecated. Please use quotaUser instead.
718
+ # @param [Google::Apis::RequestOptions] options
719
+ # Request-specific options
720
+ #
721
+ # @yield [result, err] Result & error if block supplied
722
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
723
+ # @yieldparam err [StandardError] error object if request failed
724
+ #
725
+ # @return [Google::Apis::ComputeAlpha::Operation]
726
+ #
727
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
728
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
729
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
730
+ def delete_allocation(project, zone, allocation, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
731
+ command = make_simple_command(:delete, '{project}/zones/{zone}/allocations/{allocation}', options)
732
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
733
+ command.response_class = Google::Apis::ComputeAlpha::Operation
734
+ command.params['project'] = project unless project.nil?
735
+ command.params['zone'] = zone unless zone.nil?
736
+ command.params['allocation'] = allocation unless allocation.nil?
737
+ command.query['requestId'] = request_id unless request_id.nil?
738
+ command.query['fields'] = fields unless fields.nil?
739
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
740
+ command.query['userIp'] = user_ip unless user_ip.nil?
741
+ execute_or_queue_command(command, &block)
742
+ end
743
+
693
744
  # Retrieves all information of the specified allocation.
694
745
  # @param [String] project
695
746
  # Project ID for this request.
@@ -736,7 +787,7 @@ module Google
736
787
  # @param [String] zone
737
788
  # The name of the zone for this request.
738
789
  # @param [String] resource
739
- # Name of the resource for this request.
790
+ # Name or id of the resource for this request.
740
791
  # @param [String] fields
741
792
  # Selector specifying which fields to include in a partial response.
742
793
  # @param [String] quota_user
@@ -902,7 +953,7 @@ module Google
902
953
  # @param [String] zone
903
954
  # The name of the zone for this request.
904
955
  # @param [String] resource
905
- # Name of the resource for this request.
956
+ # Name or id of the resource for this request.
906
957
  # @param [Google::Apis::ComputeAlpha::ZoneSetPolicyRequest] zone_set_policy_request_object
907
958
  # @param [String] fields
908
959
  # Selector specifying which fields to include in a partial response.
@@ -944,7 +995,7 @@ module Google
944
995
  # @param [String] zone
945
996
  # The name of the zone for this request.
946
997
  # @param [String] resource
947
- # Name of the resource for this request.
998
+ # Name or id of the resource for this request.
948
999
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
949
1000
  # @param [String] fields
950
1001
  # Selector specifying which fields to include in a partial response.
@@ -1384,7 +1435,7 @@ module Google
1384
1435
  # @param [String] zone
1385
1436
  # The name of the zone for this request.
1386
1437
  # @param [String] resource
1387
- # Name of the resource for this request.
1438
+ # Name or id of the resource for this request.
1388
1439
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
1389
1440
  # @param [String] fields
1390
1441
  # Selector specifying which fields to include in a partial response.
@@ -1669,7 +1720,7 @@ module Google
1669
1720
  # @param [String] project
1670
1721
  # Project ID for this request.
1671
1722
  # @param [String] resource
1672
- # Name of the resource for this request.
1723
+ # Name or id of the resource for this request.
1673
1724
  # @param [String] fields
1674
1725
  # Selector specifying which fields to include in a partial response.
1675
1726
  # @param [String] quota_user
@@ -1880,7 +1931,7 @@ module Google
1880
1931
  # @param [String] project
1881
1932
  # Project ID for this request.
1882
1933
  # @param [String] resource
1883
- # Name of the resource for this request.
1934
+ # Name or id of the resource for this request.
1884
1935
  # @param [Google::Apis::ComputeAlpha::GlobalSetPolicyRequest] global_set_policy_request_object
1885
1936
  # @param [String] fields
1886
1937
  # Selector specifying which fields to include in a partial response.
@@ -1919,7 +1970,7 @@ module Google
1919
1970
  # @param [String] project
1920
1971
  # Project ID for this request.
1921
1972
  # @param [String] resource
1922
- # Name of the resource for this request.
1973
+ # Name or id of the resource for this request.
1923
1974
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
1924
1975
  # @param [String] fields
1925
1976
  # Selector specifying which fields to include in a partial response.
@@ -2232,7 +2283,7 @@ module Google
2232
2283
  end
2233
2284
 
2234
2285
  # Returns the specified BackendService resource. Gets a list of available
2235
- # backend services by making a list() request.
2286
+ # backend services.
2236
2287
  # @param [String] project
2237
2288
  # Project ID for this request.
2238
2289
  # @param [String] backend_service
@@ -2540,7 +2591,7 @@ module Google
2540
2591
  # @param [String] project
2541
2592
  # Project ID for this request.
2542
2593
  # @param [String] resource
2543
- # Name of the resource for this request.
2594
+ # Name or id of the resource for this request.
2544
2595
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
2545
2596
  # @param [String] fields
2546
2597
  # Selector specifying which fields to include in a partial response.
@@ -3096,7 +3147,7 @@ module Google
3096
3147
  # @param [String] zone
3097
3148
  # The name of the zone for this request.
3098
3149
  # @param [String] resource
3099
- # Name of the resource for this request.
3150
+ # Name or id of the resource for this request.
3100
3151
  # @param [String] fields
3101
3152
  # Selector specifying which fields to include in a partial response.
3102
3153
  # @param [String] quota_user
@@ -3376,7 +3427,7 @@ module Google
3376
3427
  # @param [String] zone
3377
3428
  # The name of the zone for this request.
3378
3429
  # @param [String] resource
3379
- # Name of the resource for this request.
3430
+ # Name or id of the resource for this request.
3380
3431
  # @param [Google::Apis::ComputeAlpha::ZoneSetPolicyRequest] zone_set_policy_request_object
3381
3432
  # @param [String] fields
3382
3433
  # Selector specifying which fields to include in a partial response.
@@ -3419,7 +3470,7 @@ module Google
3419
3470
  # @param [String] zone
3420
3471
  # The name of the zone for this request.
3421
3472
  # @param [String] resource
3422
- # Name of the resource for this request.
3473
+ # Name or id of the resource for this request.
3423
3474
  # @param [Google::Apis::ComputeAlpha::ZoneSetLabelsRequest] zone_set_labels_request_object
3424
3475
  # @param [String] request_id
3425
3476
  # An optional request ID to identify requests. Specify a unique request ID so
@@ -3473,7 +3524,7 @@ module Google
3473
3524
  # @param [String] zone
3474
3525
  # The name of the zone for this request.
3475
3526
  # @param [String] resource
3476
- # Name of the resource for this request.
3527
+ # Name or id of the resource for this request.
3477
3528
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
3478
3529
  # @param [String] fields
3479
3530
  # Selector specifying which fields to include in a partial response.
@@ -3770,7 +3821,7 @@ module Google
3770
3821
  # @param [String] project
3771
3822
  # Project ID for this request.
3772
3823
  # @param [String] resource
3773
- # Name of the resource for this request.
3824
+ # Name or id of the resource for this request.
3774
3825
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
3775
3826
  # @param [String] fields
3776
3827
  # Selector specifying which fields to include in a partial response.
@@ -4209,7 +4260,7 @@ module Google
4209
4260
  # @param [String] region
4210
4261
  # The region for this request.
4211
4262
  # @param [String] resource
4212
- # Name of the resource for this request.
4263
+ # Name or id of the resource for this request.
4213
4264
  # @param [Google::Apis::ComputeAlpha::RegionSetLabelsRequest] region_set_labels_request_object
4214
4265
  # @param [String] request_id
4215
4266
  # An optional request ID to identify requests. Specify a unique request ID so
@@ -4318,7 +4369,7 @@ module Google
4318
4369
  # @param [String] region
4319
4370
  # The name of the region for this request.
4320
4371
  # @param [String] resource
4321
- # Name of the resource for this request.
4372
+ # Name or id of the resource for this request.
4322
4373
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
4323
4374
  # @param [String] fields
4324
4375
  # Selector specifying which fields to include in a partial response.
@@ -4564,7 +4615,7 @@ module Google
4564
4615
  # @param [String] project
4565
4616
  # Project ID for this request.
4566
4617
  # @param [String] resource
4567
- # Name of the resource for this request.
4618
+ # Name or id of the resource for this request.
4568
4619
  # @param [Google::Apis::ComputeAlpha::GlobalSetLabelsRequest] global_set_labels_request_object
4569
4620
  # @param [String] fields
4570
4621
  # Selector specifying which fields to include in a partial response.
@@ -4603,7 +4654,7 @@ module Google
4603
4654
  # @param [String] project
4604
4655
  # Project ID for this request.
4605
4656
  # @param [String] resource
4606
- # Name of the resource for this request.
4657
+ # Name or id of the resource for this request.
4607
4658
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
4608
4659
  # @param [String] fields
4609
4660
  # Selector specifying which fields to include in a partial response.
@@ -4902,7 +4953,7 @@ module Google
4902
4953
  # @param [String] project
4903
4954
  # Project ID for this request.
4904
4955
  # @param [String] resource
4905
- # Name of the resource for this request.
4956
+ # Name or id of the resource for this request.
4906
4957
  # @param [Google::Apis::ComputeAlpha::GlobalSetLabelsRequest] global_set_labels_request_object
4907
4958
  # @param [String] fields
4908
4959
  # Selector specifying which fields to include in a partial response.
@@ -4993,7 +5044,7 @@ module Google
4993
5044
  # @param [String] project
4994
5045
  # Project ID for this request.
4995
5046
  # @param [String] resource
4996
- # Name of the resource for this request.
5047
+ # Name or id of the resource for this request.
4997
5048
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
4998
5049
  # @param [String] fields
4999
5050
  # Selector specifying which fields to include in a partial response.
@@ -5284,6 +5335,192 @@ module Google
5284
5335
  execute_or_queue_command(command, &block)
5285
5336
  end
5286
5337
 
5338
+ # Deletes the specified Operations resource.
5339
+ # @param [String] operation
5340
+ # Name of the Operations resource to delete.
5341
+ # @param [String] parent_id
5342
+ # Parent ID for this request.
5343
+ # @param [String] fields
5344
+ # Selector specifying which fields to include in a partial response.
5345
+ # @param [String] quota_user
5346
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
5347
+ # characters.
5348
+ # @param [String] user_ip
5349
+ # Deprecated. Please use quotaUser instead.
5350
+ # @param [Google::Apis::RequestOptions] options
5351
+ # Request-specific options
5352
+ #
5353
+ # @yield [result, err] Result & error if block supplied
5354
+ # @yieldparam result [NilClass] No result returned for this method
5355
+ # @yieldparam err [StandardError] error object if request failed
5356
+ #
5357
+ # @return [void]
5358
+ #
5359
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5360
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5361
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5362
+ def delete_global_organization_operation(operation, parent_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
5363
+ command = make_simple_command(:delete, 'locations/global/operations/{operation}', options)
5364
+ command.params['operation'] = operation unless operation.nil?
5365
+ command.query['parentId'] = parent_id unless parent_id.nil?
5366
+ command.query['fields'] = fields unless fields.nil?
5367
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5368
+ command.query['userIp'] = user_ip unless user_ip.nil?
5369
+ execute_or_queue_command(command, &block)
5370
+ end
5371
+
5372
+ # Retrieves the specified Operations resource. Gets a list of operations by
5373
+ # making a list() request.
5374
+ # @param [String] operation
5375
+ # Name of the Operations resource to return.
5376
+ # @param [String] parent_id
5377
+ # Parent ID for this request.
5378
+ # @param [String] fields
5379
+ # Selector specifying which fields to include in a partial response.
5380
+ # @param [String] quota_user
5381
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
5382
+ # characters.
5383
+ # @param [String] user_ip
5384
+ # Deprecated. Please use quotaUser instead.
5385
+ # @param [Google::Apis::RequestOptions] options
5386
+ # Request-specific options
5387
+ #
5388
+ # @yield [result, err] Result & error if block supplied
5389
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
5390
+ # @yieldparam err [StandardError] error object if request failed
5391
+ #
5392
+ # @return [Google::Apis::ComputeAlpha::Operation]
5393
+ #
5394
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5395
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5396
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5397
+ def get_global_organization_operation(operation, parent_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
5398
+ command = make_simple_command(:get, 'locations/global/operations/{operation}', options)
5399
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
5400
+ command.response_class = Google::Apis::ComputeAlpha::Operation
5401
+ command.params['operation'] = operation unless operation.nil?
5402
+ command.query['parentId'] = parent_id unless parent_id.nil?
5403
+ command.query['fields'] = fields unless fields.nil?
5404
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5405
+ command.query['userIp'] = user_ip unless user_ip.nil?
5406
+ execute_or_queue_command(command, &block)
5407
+ end
5408
+
5409
+ # Retrieves a list of Operation resources contained within the specified
5410
+ # organization.
5411
+ # @param [String] filter
5412
+ # A filter expression that filters resources listed in the response. The
5413
+ # expression must specify the field name, a comparison operator, and the value
5414
+ # that you want to use for filtering. The value must be a string, a number, or a
5415
+ # boolean. The comparison operator must be either =, !=, >, or <.
5416
+ # For example, if you are filtering Compute Engine instances, you can exclude
5417
+ # instances named example-instance by specifying name != example-instance.
5418
+ # You can also filter nested fields. For example, you could specify scheduling.
5419
+ # automaticRestart = false to include instances only if they are not scheduled
5420
+ # for automatic restarts. You can use filtering on nested fields to filter based
5421
+ # on resource labels.
5422
+ # To filter on multiple expressions, provide each separate expression within
5423
+ # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
5424
+ # Intel Skylake"). By default, each expression is an AND expression. However,
5425
+ # you can include AND and OR expressions explicitly. For example, (cpuPlatform =
5426
+ # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
5427
+ # automaticRestart = true).
5428
+ # @param [Fixnum] max_results
5429
+ # The maximum number of results per page that should be returned. If the number
5430
+ # of available results is larger than maxResults, Compute Engine returns a
5431
+ # nextPageToken that can be used to get the next page of results in subsequent
5432
+ # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
5433
+ # @param [String] order_by
5434
+ # Sorts list results by a certain order. By default, results are returned in
5435
+ # alphanumerical order based on the resource name.
5436
+ # You can also sort results in descending order based on the creation timestamp
5437
+ # using orderBy="creationTimestamp desc". This sorts results based on the
5438
+ # creationTimestamp field in reverse chronological order (newest result first).
5439
+ # Use this to sort resources like operations so that the newest operation is
5440
+ # returned first.
5441
+ # Currently, only sorting by name or creationTimestamp desc is supported.
5442
+ # @param [String] page_token
5443
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
5444
+ # a previous list request to get the next page of results.
5445
+ # @param [String] parent_id
5446
+ # Parent ID for this request.
5447
+ # @param [String] fields
5448
+ # Selector specifying which fields to include in a partial response.
5449
+ # @param [String] quota_user
5450
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
5451
+ # characters.
5452
+ # @param [String] user_ip
5453
+ # Deprecated. Please use quotaUser instead.
5454
+ # @param [Google::Apis::RequestOptions] options
5455
+ # Request-specific options
5456
+ #
5457
+ # @yield [result, err] Result & error if block supplied
5458
+ # @yieldparam result [Google::Apis::ComputeAlpha::OperationList] parsed result object
5459
+ # @yieldparam err [StandardError] error object if request failed
5460
+ #
5461
+ # @return [Google::Apis::ComputeAlpha::OperationList]
5462
+ #
5463
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5464
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5465
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5466
+ def list_global_organization_operations(filter: nil, max_results: nil, order_by: nil, page_token: nil, parent_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
5467
+ command = make_simple_command(:get, 'locations/global/operations', options)
5468
+ command.response_representation = Google::Apis::ComputeAlpha::OperationList::Representation
5469
+ command.response_class = Google::Apis::ComputeAlpha::OperationList
5470
+ command.query['filter'] = filter unless filter.nil?
5471
+ command.query['maxResults'] = max_results unless max_results.nil?
5472
+ command.query['orderBy'] = order_by unless order_by.nil?
5473
+ command.query['pageToken'] = page_token unless page_token.nil?
5474
+ command.query['parentId'] = parent_id unless parent_id.nil?
5475
+ command.query['fields'] = fields unless fields.nil?
5476
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5477
+ command.query['userIp'] = user_ip unless user_ip.nil?
5478
+ execute_or_queue_command(command, &block)
5479
+ end
5480
+
5481
+ # Waits for the specified Operations resource until it is done or timeout, and
5482
+ # retrieves the specified Operations resource. 1. Immediately returns when the
5483
+ # operation is already done. 2. Waits for no more than the default deadline (2
5484
+ # minutes, subject to change) and then returns the current state of the
5485
+ # operation, which may be DONE or still in progress. 3. Is best-effort: a. The
5486
+ # server can wait less than the default deadline or zero seconds, in overload
5487
+ # situations. b. There is no guarantee that the operation is actually done when
5488
+ # returns. 4. User should be prepared to retry if the operation is not DONE.
5489
+ # @param [String] operation
5490
+ # Name of the Operations resource to return.
5491
+ # @param [String] parent_id
5492
+ # Parent ID for this request.
5493
+ # @param [String] fields
5494
+ # Selector specifying which fields to include in a partial response.
5495
+ # @param [String] quota_user
5496
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
5497
+ # characters.
5498
+ # @param [String] user_ip
5499
+ # Deprecated. Please use quotaUser instead.
5500
+ # @param [Google::Apis::RequestOptions] options
5501
+ # Request-specific options
5502
+ #
5503
+ # @yield [result, err] Result & error if block supplied
5504
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
5505
+ # @yieldparam err [StandardError] error object if request failed
5506
+ #
5507
+ # @return [Google::Apis::ComputeAlpha::Operation]
5508
+ #
5509
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5510
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5511
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5512
+ def wait_global_organization_operation(operation, parent_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
5513
+ command = make_simple_command(:post, 'locations/global/operations/{operation}/wait', options)
5514
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
5515
+ command.response_class = Google::Apis::ComputeAlpha::Operation
5516
+ command.params['operation'] = operation unless operation.nil?
5517
+ command.query['parentId'] = parent_id unless parent_id.nil?
5518
+ command.query['fields'] = fields unless fields.nil?
5519
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5520
+ command.query['userIp'] = user_ip unless user_ip.nil?
5521
+ execute_or_queue_command(command, &block)
5522
+ end
5523
+
5287
5524
  # Retrieves the list of all HealthCheck resources, regional and global,
5288
5525
  # available to the specified project.
5289
5526
  # @param [String] project
@@ -5618,7 +5855,7 @@ module Google
5618
5855
  # @param [String] project
5619
5856
  # Project ID for this request.
5620
5857
  # @param [String] resource
5621
- # Name of the resource for this request.
5858
+ # Name or id of the resource for this request.
5622
5859
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
5623
5860
  # @param [String] fields
5624
5861
  # Selector specifying which fields to include in a partial response.
@@ -5968,7 +6205,7 @@ module Google
5968
6205
  # @param [String] project
5969
6206
  # Project ID for this request.
5970
6207
  # @param [String] resource
5971
- # Name of the resource for this request.
6208
+ # Name or id of the resource for this request.
5972
6209
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
5973
6210
  # @param [String] fields
5974
6211
  # Selector specifying which fields to include in a partial response.
@@ -6318,7 +6555,7 @@ module Google
6318
6555
  # @param [String] project
6319
6556
  # Project ID for this request.
6320
6557
  # @param [String] resource
6321
- # Name of the resource for this request.
6558
+ # Name or id of the resource for this request.
6322
6559
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
6323
6560
  # @param [String] fields
6324
6561
  # Selector specifying which fields to include in a partial response.
@@ -6583,7 +6820,7 @@ module Google
6583
6820
  # @param [String] project
6584
6821
  # Project ID for this request.
6585
6822
  # @param [String] resource
6586
- # Name of the resource for this request.
6823
+ # Name or id of the resource for this request.
6587
6824
  # @param [String] fields
6588
6825
  # Selector specifying which fields to include in a partial response.
6589
6826
  # @param [String] quota_user
@@ -6748,7 +6985,7 @@ module Google
6748
6985
  # @param [String] project
6749
6986
  # Project ID for this request.
6750
6987
  # @param [String] resource
6751
- # Name of the resource for this request.
6988
+ # Name or id of the resource for this request.
6752
6989
  # @param [Google::Apis::ComputeAlpha::GlobalSetPolicyRequest] global_set_policy_request_object
6753
6990
  # @param [String] fields
6754
6991
  # Selector specifying which fields to include in a partial response.
@@ -6788,7 +7025,7 @@ module Google
6788
7025
  # @param [String] project
6789
7026
  # Project ID for this request.
6790
7027
  # @param [String] resource
6791
- # Name of the resource for this request.
7028
+ # Name or id of the resource for this request.
6792
7029
  # @param [Google::Apis::ComputeAlpha::GlobalSetLabelsRequest] global_set_labels_request_object
6793
7030
  # @param [String] fields
6794
7031
  # Selector specifying which fields to include in a partial response.
@@ -6827,7 +7064,7 @@ module Google
6827
7064
  # @param [String] project
6828
7065
  # Project ID for this request.
6829
7066
  # @param [String] resource
6830
- # Name of the resource for this request.
7067
+ # Name or id of the resource for this request.
6831
7068
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
6832
7069
  # @param [String] fields
6833
7070
  # Selector specifying which fields to include in a partial response.
@@ -6862,14 +7099,14 @@ module Google
6862
7099
  execute_or_queue_command(command, &block)
6863
7100
  end
6864
7101
 
6865
- # Schedules a group action to remove the specified instances from the managed
6866
- # instance group. Abandoning an instance does not delete the instance, but it
6867
- # does remove the instance from any target pools that are applied by the managed
6868
- # instance group. This method reduces the targetSize of the managed instance
6869
- # group by the number of instances that you abandon. This operation is marked as
6870
- # DONE when the action is scheduled even if the instances have not yet been
6871
- # removed from the group. You must separately verify the status of the
6872
- # abandoning action with the listmanagedinstances method.
7102
+ # Flags the specified instances to be removed from the managed instance group.
7103
+ # Abandoning an instance does not delete the instance, but it does remove the
7104
+ # instance from any target pools that are applied by the managed instance group.
7105
+ # This method reduces the targetSize of the managed instance group by the number
7106
+ # of instances that you abandon. This operation is marked as DONE when the
7107
+ # action is scheduled even if the instances have not yet been removed from the
7108
+ # group. You must separately verify the status of the abandoning action with the
7109
+ # listmanagedinstances method.
6873
7110
  # If the group is part of a backend service that has enabled connection draining,
6874
7111
  # it can take up to 60 seconds after the connection draining duration has
6875
7112
  # elapsed before the VM instance is removed or deleted.
@@ -7042,15 +7279,20 @@ module Google
7042
7279
  execute_or_queue_command(command, &block)
7043
7280
  end
7044
7281
 
7045
- # Deletes the specified managed instance group and all of the instances in that
7046
- # group. Note that the instance group must not belong to a backend service. Read
7047
- # Deleting an instance group for more information.
7282
+ # Creates instances with per-instance configs in this managed instance group.
7283
+ # Instances are created using the current instance template. The create
7284
+ # instances operation is marked DONE if the createInstances request is
7285
+ # successful. The underlying actions take additional time. You must separately
7286
+ # verify the status of the creating or actions with the listmanagedinstances
7287
+ # method.
7048
7288
  # @param [String] project
7049
7289
  # Project ID for this request.
7050
7290
  # @param [String] zone
7051
- # The name of the zone where the managed instance group is located.
7291
+ # The name of the zone where the managed instance group is located. It should
7292
+ # conform to RFC1035.
7052
7293
  # @param [String] instance_group_manager
7053
- # The name of the managed instance group to delete.
7294
+ # The name of the managed instance group. It should conform to RFC1035.
7295
+ # @param [Google::Apis::ComputeAlpha::InstanceGroupManagersCreateInstancesRequest] instance_group_managers_create_instances_request_object
7054
7296
  # @param [String] request_id
7055
7297
  # An optional request ID to identify requests. Specify a unique request ID so
7056
7298
  # that if you must retry your request, the server will know to ignore the
@@ -7058,8 +7300,7 @@ module Google
7058
7300
  # For example, consider a situation where you make an initial request and the
7059
7301
  # request times out. If you make the request again with the same request ID, the
7060
7302
  # server can check if original operation with the same request ID was received,
7061
- # and if so, will ignore the second request. This prevents clients from
7062
- # accidentally creating duplicate commitments.
7303
+ # and if so, will ignore the second request.
7063
7304
  # The request ID must be a valid UUID with the exception that zero UUID is not
7064
7305
  # supported (00000000-0000-0000-0000-000000000000).
7065
7306
  # @param [String] fields
@@ -7081,8 +7322,10 @@ module Google
7081
7322
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7082
7323
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7083
7324
  # @raise [Google::Apis::AuthorizationError] Authorization is required
7084
- def delete_instance_group_manager(project, zone, instance_group_manager, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7085
- command = make_simple_command(:delete, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}', options)
7325
+ def create_instance_group_manager_instances(project, zone, instance_group_manager, instance_group_managers_create_instances_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7326
+ command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/createInstances', options)
7327
+ command.request_representation = Google::Apis::ComputeAlpha::InstanceGroupManagersCreateInstancesRequest::Representation
7328
+ command.request_object = instance_group_managers_create_instances_request_object
7086
7329
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
7087
7330
  command.response_class = Google::Apis::ComputeAlpha::Operation
7088
7331
  command.params['project'] = project unless project.nil?
@@ -7095,24 +7338,15 @@ module Google
7095
7338
  execute_or_queue_command(command, &block)
7096
7339
  end
7097
7340
 
7098
- # Schedules a group action to delete the specified instances in the managed
7099
- # instance group. The instances are also removed from any target pools of which
7100
- # they were a member. This method reduces the targetSize of the managed instance
7101
- # group by the number of instances that you delete. This operation is marked as
7102
- # DONE when the action is scheduled even if the instances are still being
7103
- # deleted. You must separately verify the status of the deleting action with the
7104
- # listmanagedinstances method.
7105
- # If the group is part of a backend service that has enabled connection draining,
7106
- # it can take up to 60 seconds after the connection draining duration has
7107
- # elapsed before the VM instance is removed or deleted.
7108
- # You can specify a maximum of 1000 instances with this method per request.
7341
+ # Deletes the specified managed instance group and all of the instances in that
7342
+ # group. Note that the instance group must not belong to a backend service. Read
7343
+ # Deleting an instance group for more information.
7109
7344
  # @param [String] project
7110
7345
  # Project ID for this request.
7111
7346
  # @param [String] zone
7112
7347
  # The name of the zone where the managed instance group is located.
7113
7348
  # @param [String] instance_group_manager
7114
- # The name of the managed instance group.
7115
- # @param [Google::Apis::ComputeAlpha::InstanceGroupManagersDeleteInstancesRequest] instance_group_managers_delete_instances_request_object
7349
+ # The name of the managed instance group to delete.
7116
7350
  # @param [String] request_id
7117
7351
  # An optional request ID to identify requests. Specify a unique request ID so
7118
7352
  # that if you must retry your request, the server will know to ignore the
@@ -7143,10 +7377,8 @@ module Google
7143
7377
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7144
7378
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7145
7379
  # @raise [Google::Apis::AuthorizationError] Authorization is required
7146
- def delete_instance_group_manager_instances(project, zone, instance_group_manager, instance_group_managers_delete_instances_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7147
- command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances', options)
7148
- command.request_representation = Google::Apis::ComputeAlpha::InstanceGroupManagersDeleteInstancesRequest::Representation
7149
- command.request_object = instance_group_managers_delete_instances_request_object
7380
+ def delete_instance_group_manager(project, zone, instance_group_manager, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7381
+ command = make_simple_command(:delete, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}', options)
7150
7382
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
7151
7383
  command.response_class = Google::Apis::ComputeAlpha::Operation
7152
7384
  command.params['project'] = project unless project.nil?
@@ -7159,10 +7391,74 @@ module Google
7159
7391
  execute_or_queue_command(command, &block)
7160
7392
  end
7161
7393
 
7162
- # Deletes selected per-instance configs for the managed instance group.
7163
- # @param [String] project
7164
- # Project ID for this request.
7165
- # @param [String] zone
7394
+ # Flags the specified instances in the managed instance group for immediate
7395
+ # deletion. The instances are also removed from any target pools of which they
7396
+ # were a member. This method reduces the targetSize of the managed instance
7397
+ # group by the number of instances that you delete. This operation is marked as
7398
+ # DONE when the action is scheduled even if the instances are still being
7399
+ # deleted. You must separately verify the status of the deleting action with the
7400
+ # listmanagedinstances method.
7401
+ # If the group is part of a backend service that has enabled connection draining,
7402
+ # it can take up to 60 seconds after the connection draining duration has
7403
+ # elapsed before the VM instance is removed or deleted.
7404
+ # You can specify a maximum of 1000 instances with this method per request.
7405
+ # @param [String] project
7406
+ # Project ID for this request.
7407
+ # @param [String] zone
7408
+ # The name of the zone where the managed instance group is located.
7409
+ # @param [String] instance_group_manager
7410
+ # The name of the managed instance group.
7411
+ # @param [Google::Apis::ComputeAlpha::InstanceGroupManagersDeleteInstancesRequest] instance_group_managers_delete_instances_request_object
7412
+ # @param [String] request_id
7413
+ # An optional request ID to identify requests. Specify a unique request ID so
7414
+ # that if you must retry your request, the server will know to ignore the
7415
+ # request if it has already been completed.
7416
+ # For example, consider a situation where you make an initial request and the
7417
+ # request times out. If you make the request again with the same request ID, the
7418
+ # server can check if original operation with the same request ID was received,
7419
+ # and if so, will ignore the second request. This prevents clients from
7420
+ # accidentally creating duplicate commitments.
7421
+ # The request ID must be a valid UUID with the exception that zero UUID is not
7422
+ # supported (00000000-0000-0000-0000-000000000000).
7423
+ # @param [String] fields
7424
+ # Selector specifying which fields to include in a partial response.
7425
+ # @param [String] quota_user
7426
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
7427
+ # characters.
7428
+ # @param [String] user_ip
7429
+ # Deprecated. Please use quotaUser instead.
7430
+ # @param [Google::Apis::RequestOptions] options
7431
+ # Request-specific options
7432
+ #
7433
+ # @yield [result, err] Result & error if block supplied
7434
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
7435
+ # @yieldparam err [StandardError] error object if request failed
7436
+ #
7437
+ # @return [Google::Apis::ComputeAlpha::Operation]
7438
+ #
7439
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7440
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7441
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7442
+ def delete_instance_group_manager_instances(project, zone, instance_group_manager, instance_group_managers_delete_instances_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7443
+ command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances', options)
7444
+ command.request_representation = Google::Apis::ComputeAlpha::InstanceGroupManagersDeleteInstancesRequest::Representation
7445
+ command.request_object = instance_group_managers_delete_instances_request_object
7446
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
7447
+ command.response_class = Google::Apis::ComputeAlpha::Operation
7448
+ command.params['project'] = project unless project.nil?
7449
+ command.params['zone'] = zone unless zone.nil?
7450
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
7451
+ command.query['requestId'] = request_id unless request_id.nil?
7452
+ command.query['fields'] = fields unless fields.nil?
7453
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7454
+ command.query['userIp'] = user_ip unless user_ip.nil?
7455
+ execute_or_queue_command(command, &block)
7456
+ end
7457
+
7458
+ # Deletes selected per-instance configs for the managed instance group.
7459
+ # @param [String] project
7460
+ # Project ID for this request.
7461
+ # @param [String] zone
7166
7462
  # The name of the zone where the managed instance group is located. It should
7167
7463
  # conform to RFC1035.
7168
7464
  # @param [String] instance_group_manager
@@ -7243,11 +7539,11 @@ module Google
7243
7539
  end
7244
7540
 
7245
7541
  # Creates a managed instance group using the information that you specify in the
7246
- # request. After the group is created, it schedules an action to create
7247
- # instances in the group using the specified instance template. This operation
7248
- # is marked as DONE when the group is created even if the instances in the group
7249
- # have not yet been created. You must separately verify the status of the
7250
- # individual instances with the listmanagedinstances method.
7542
+ # request. After the group is created, instances in the group are created using
7543
+ # the specified instance template. This operation is marked as DONE when the
7544
+ # group is created even if the instances in the group have not yet been created.
7545
+ # You must separately verify the status of the individual instances with the
7546
+ # listmanagedinstances method.
7251
7547
  # A managed instance group can have up to 1000 VM instances per group. Please
7252
7548
  # contact Cloud Support if you need an increase in this limit.
7253
7549
  # @param [String] project
@@ -7593,12 +7889,12 @@ module Google
7593
7889
  execute_or_queue_command(command, &block)
7594
7890
  end
7595
7891
 
7596
- # Schedules a group action to recreate the specified instances in the managed
7597
- # instance group. The instances are deleted and recreated using the current
7598
- # instance template for the managed instance group. This operation is marked as
7599
- # DONE when the action is scheduled even if the instances have not yet been
7600
- # recreated. You must separately verify the status of the recreating action with
7601
- # the listmanagedinstances method.
7892
+ # Flags the specified instances in the managed instance group to be immediately
7893
+ # recreated. The instances are deleted and recreated using the current instance
7894
+ # template for the managed instance group. This operation is marked as DONE when
7895
+ # the flag is set even if the instances have not yet been recreated. You must
7896
+ # separately verify the status of the recreating action with the
7897
+ # listmanagedinstances method.
7602
7898
  # If the group is part of a backend service that has enabled connection draining,
7603
7899
  # it can take up to 60 seconds after the connection draining duration has
7604
7900
  # elapsed before the VM instance is removed or deleted.
@@ -7662,6 +7958,13 @@ module Google
7662
7958
  # the resize actions are scheduled even if the group has not yet added or
7663
7959
  # deleted any instances. You must separately verify the status of the creating
7664
7960
  # or deleting actions with the listmanagedinstances method.
7961
+ # When resizing down, the instance group arbitrarily chooses the order in which
7962
+ # VMs are deleted. The group takes into account some VM attributes when making
7963
+ # the selection including:
7964
+ # + The status of the VM instance. + The health of the VM instance. + The
7965
+ # instance template version the VM is based on. + For regional managed instance
7966
+ # groups, the location of the VM instance.
7967
+ # This list is subject to change.
7665
7968
  # If the group is part of a backend service that has enabled connection draining,
7666
7969
  # it can take up to 60 seconds after the connection draining duration has
7667
7970
  # elapsed before the VM instance is removed or deleted.
@@ -7785,7 +8088,8 @@ module Google
7785
8088
  execute_or_queue_command(command, &block)
7786
8089
  end
7787
8090
 
7788
- # Modifies the autohealing policies.
8091
+ # Modifies the autohealing policies. [Deprecated] This method is deprecated.
8092
+ # Please use Patch instead.
7789
8093
  # @param [String] project
7790
8094
  # Project ID for this request.
7791
8095
  # @param [String] zone
@@ -7960,7 +8264,7 @@ module Google
7960
8264
  # @param [String] zone
7961
8265
  # The name of the zone for this request.
7962
8266
  # @param [String] resource
7963
- # Name of the resource for this request.
8267
+ # Name or id of the resource for this request.
7964
8268
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
7965
8269
  # @param [String] fields
7966
8270
  # Selector specifying which fields to include in a partial response.
@@ -8657,7 +8961,7 @@ module Google
8657
8961
  # @param [String] zone
8658
8962
  # The name of the zone for this request.
8659
8963
  # @param [String] resource
8660
- # Name of the resource for this request.
8964
+ # Name or id of the resource for this request.
8661
8965
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
8662
8966
  # @param [String] fields
8663
8967
  # Selector specifying which fields to include in a partial response.
@@ -8785,7 +9089,7 @@ module Google
8785
9089
  # @param [String] project
8786
9090
  # Project ID for this request.
8787
9091
  # @param [String] resource
8788
- # Name of the resource for this request.
9092
+ # Name or id of the resource for this request.
8789
9093
  # @param [String] fields
8790
9094
  # Selector specifying which fields to include in a partial response.
8791
9095
  # @param [String] quota_user
@@ -8945,7 +9249,7 @@ module Google
8945
9249
  # @param [String] project
8946
9250
  # Project ID for this request.
8947
9251
  # @param [String] resource
8948
- # Name of the resource for this request.
9252
+ # Name or id of the resource for this request.
8949
9253
  # @param [Google::Apis::ComputeAlpha::GlobalSetPolicyRequest] global_set_policy_request_object
8950
9254
  # @param [String] fields
8951
9255
  # Selector specifying which fields to include in a partial response.
@@ -8984,7 +9288,7 @@ module Google
8984
9288
  # @param [String] project
8985
9289
  # Project ID for this request.
8986
9290
  # @param [String] resource
8987
- # Name of the resource for this request.
9291
+ # Name or id of the resource for this request.
8988
9292
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
8989
9293
  # @param [String] fields
8990
9294
  # Selector specifying which fields to include in a partial response.
@@ -9380,9 +9684,10 @@ module Google
9380
9684
  # @param [String] zone
9381
9685
  # The name of the zone for this request.
9382
9686
  # @param [String] instance
9383
- # Instance name.
9687
+ # Instance name for this request.
9384
9688
  # @param [String] device_name
9385
- # Disk device name to detach.
9689
+ # The device name of the disk to detach. Make a get() request on the instance to
9690
+ # view currently attached disks and device names.
9386
9691
  # @param [String] request_id
9387
9692
  # An optional request ID to identify requests. Specify a unique request ID so
9388
9693
  # that if you must retry your request, the server will know to ignore the
@@ -9520,7 +9825,7 @@ module Google
9520
9825
  # @param [String] zone
9521
9826
  # The name of the zone for this request.
9522
9827
  # @param [String] resource
9523
- # Name of the resource for this request.
9828
+ # Name or id of the resource for this request.
9524
9829
  # @param [String] fields
9525
9830
  # Selector specifying which fields to include in a partial response.
9526
9831
  # @param [String] quota_user
@@ -9785,7 +10090,7 @@ module Google
9785
10090
  end
9786
10091
 
9787
10092
  # Retrieves the list of referrers to instances contained within the specified
9788
- # zone.
10093
+ # zone. For more information, read Viewing Referrers to VM Instances.
9789
10094
  # @param [String] project
9790
10095
  # Project ID for this request.
9791
10096
  # @param [String] zone
@@ -10029,7 +10334,7 @@ module Google
10029
10334
  # @param [String] zone
10030
10335
  # The name of the zone for this request.
10031
10336
  # @param [String] resource
10032
- # Name of the resource for this request.
10337
+ # Name or id of the resource for this request.
10033
10338
  # @param [Boolean] deletion_protection
10034
10339
  # Whether the resource should be protected against deletion.
10035
10340
  # @param [String] request_id
@@ -10083,11 +10388,12 @@ module Google
10083
10388
  # @param [String] zone
10084
10389
  # The name of the zone for this request.
10085
10390
  # @param [String] instance
10086
- # The instance name.
10391
+ # The instance name for this request.
10087
10392
  # @param [Boolean] auto_delete
10088
10393
  # Whether to auto-delete the disk when the instance is deleted.
10089
10394
  # @param [String] device_name
10090
- # The device name of the disk to modify.
10395
+ # The device name of the disk to modify. Make a get() request on the instance to
10396
+ # view currently attached disks and device names.
10091
10397
  # @param [String] request_id
10092
10398
  # An optional request ID to identify requests. Specify a unique request ID so
10093
10399
  # that if you must retry your request, the server will know to ignore the
@@ -10141,7 +10447,7 @@ module Google
10141
10447
  # @param [String] zone
10142
10448
  # The name of the zone for this request.
10143
10449
  # @param [String] resource
10144
- # Name of the resource for this request.
10450
+ # Name or id of the resource for this request.
10145
10451
  # @param [Google::Apis::ComputeAlpha::ZoneSetPolicyRequest] zone_set_policy_request_object
10146
10452
  # @param [String] fields
10147
10453
  # Selector specifying which fields to include in a partial response.
@@ -10458,7 +10764,7 @@ module Google
10458
10764
  # @param [String] zone
10459
10765
  # The name of the zone for this request.
10460
10766
  # @param [String] instance
10461
- # Instance name.
10767
+ # Instance name for this request.
10462
10768
  # @param [Google::Apis::ComputeAlpha::Scheduling] scheduling_object
10463
10769
  # @param [String] request_id
10464
10770
  # An optional request ID to identify requests. Specify a unique request ID so
@@ -10617,7 +10923,8 @@ module Google
10617
10923
  execute_or_queue_command(command, &block)
10618
10924
  end
10619
10925
 
10620
- # Sets tags for the specified instance to the data included in the request.
10926
+ # Sets network tags for the specified instance to the data included in the
10927
+ # request.
10621
10928
  # @param [String] project
10622
10929
  # Project ID for this request.
10623
10930
  # @param [String] zone
@@ -10942,7 +11249,7 @@ module Google
10942
11249
  # @param [String] zone
10943
11250
  # The name of the zone for this request.
10944
11251
  # @param [String] resource
10945
- # Name of the resource for this request.
11252
+ # Name or id of the resource for this request.
10946
11253
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
10947
11254
  # @param [String] fields
10948
11255
  # Selector specifying which fields to include in a partial response.
@@ -11037,6 +11344,62 @@ module Google
11037
11344
  execute_or_queue_command(command, &block)
11038
11345
  end
11039
11346
 
11347
+ # Updates the Display config for a VM instance. You can only use this method on
11348
+ # a stopped VM instance. This method supports PATCH semantics and uses the JSON
11349
+ # merge patch format and processing rules.
11350
+ # @param [String] project
11351
+ # Project ID for this request.
11352
+ # @param [String] zone
11353
+ # The name of the zone for this request.
11354
+ # @param [String] instance
11355
+ # Name of the instance scoping this request.
11356
+ # @param [Google::Apis::ComputeAlpha::DisplayDevice] display_device_object
11357
+ # @param [String] request_id
11358
+ # An optional request ID to identify requests. Specify a unique request ID so
11359
+ # that if you must retry your request, the server will know to ignore the
11360
+ # request if it has already been completed.
11361
+ # For example, consider a situation where you make an initial request and the
11362
+ # request times out. If you make the request again with the same request ID, the
11363
+ # server can check if original operation with the same request ID was received,
11364
+ # and if so, will ignore the second request. This prevents clients from
11365
+ # accidentally creating duplicate commitments.
11366
+ # The request ID must be a valid UUID with the exception that zero UUID is not
11367
+ # supported (00000000-0000-0000-0000-000000000000).
11368
+ # @param [String] fields
11369
+ # Selector specifying which fields to include in a partial response.
11370
+ # @param [String] quota_user
11371
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
11372
+ # characters.
11373
+ # @param [String] user_ip
11374
+ # Deprecated. Please use quotaUser instead.
11375
+ # @param [Google::Apis::RequestOptions] options
11376
+ # Request-specific options
11377
+ #
11378
+ # @yield [result, err] Result & error if block supplied
11379
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
11380
+ # @yieldparam err [StandardError] error object if request failed
11381
+ #
11382
+ # @return [Google::Apis::ComputeAlpha::Operation]
11383
+ #
11384
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11385
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11386
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
11387
+ def update_instance_display_device(project, zone, instance, display_device_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11388
+ command = make_simple_command(:patch, '{project}/zones/{zone}/instances/{instance}/updateDisplayDevice', options)
11389
+ command.request_representation = Google::Apis::ComputeAlpha::DisplayDevice::Representation
11390
+ command.request_object = display_device_object
11391
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
11392
+ command.response_class = Google::Apis::ComputeAlpha::Operation
11393
+ command.params['project'] = project unless project.nil?
11394
+ command.params['zone'] = zone unless zone.nil?
11395
+ command.params['instance'] = instance unless instance.nil?
11396
+ command.query['requestId'] = request_id unless request_id.nil?
11397
+ command.query['fields'] = fields unless fields.nil?
11398
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
11399
+ command.query['userIp'] = user_ip unless user_ip.nil?
11400
+ execute_or_queue_command(command, &block)
11401
+ end
11402
+
11040
11403
  # Updates an instance's network interface. This method follows PATCH semantics.
11041
11404
  # @param [String] project
11042
11405
  # Project ID for this request.
@@ -11318,7 +11681,7 @@ module Google
11318
11681
  # @param [String] region
11319
11682
  # The name of the region for this request.
11320
11683
  # @param [String] resource
11321
- # Name of the resource for this request.
11684
+ # Name or id of the resource for this request.
11322
11685
  # @param [String] fields
11323
11686
  # Selector specifying which fields to include in a partial response.
11324
11687
  # @param [String] quota_user
@@ -11541,7 +11904,7 @@ module Google
11541
11904
  # @param [String] region
11542
11905
  # The name of the region for this request.
11543
11906
  # @param [String] resource
11544
- # Name of the resource for this request.
11907
+ # Name or id of the resource for this request.
11545
11908
  # @param [Google::Apis::ComputeAlpha::RegionSetPolicyRequest] region_set_policy_request_object
11546
11909
  # @param [String] fields
11547
11910
  # Selector specifying which fields to include in a partial response.
@@ -11584,7 +11947,7 @@ module Google
11584
11947
  # @param [String] region
11585
11948
  # The region for this request.
11586
11949
  # @param [String] resource
11587
- # Name of the resource for this request.
11950
+ # Name or id of the resource for this request.
11588
11951
  # @param [Google::Apis::ComputeAlpha::RegionSetLabelsRequest] region_set_labels_request_object
11589
11952
  # @param [String] request_id
11590
11953
  # An optional request ID to identify requests. Specify a unique request ID so
@@ -11638,7 +12001,7 @@ module Google
11638
12001
  # @param [String] region
11639
12002
  # The name of the region for this request.
11640
12003
  # @param [String] resource
11641
- # Name of the resource for this request.
12004
+ # Name or id of the resource for this request.
11642
12005
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
11643
12006
  # @param [String] fields
11644
12007
  # Selector specifying which fields to include in a partial response.
@@ -11787,7 +12150,7 @@ module Google
11787
12150
  # @param [String] project
11788
12151
  # Project ID for this request.
11789
12152
  # @param [String] resource
11790
- # Name of the resource for this request.
12153
+ # Name or id of the resource for this request.
11791
12154
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
11792
12155
  # @param [String] fields
11793
12156
  # Selector specifying which fields to include in a partial response.
@@ -11948,7 +12311,7 @@ module Google
11948
12311
  # @param [String] project
11949
12312
  # Project ID for this request.
11950
12313
  # @param [String] resource
11951
- # Name of the resource for this request.
12314
+ # Name or id of the resource for this request.
11952
12315
  # @param [String] fields
11953
12316
  # Selector specifying which fields to include in a partial response.
11954
12317
  # @param [String] quota_user
@@ -12158,7 +12521,7 @@ module Google
12158
12521
  # @param [String] project
12159
12522
  # Project ID for this request.
12160
12523
  # @param [String] resource
12161
- # Name of the resource for this request.
12524
+ # Name or id of the resource for this request.
12162
12525
  # @param [Google::Apis::ComputeAlpha::GlobalSetPolicyRequest] global_set_policy_request_object
12163
12526
  # @param [String] fields
12164
12527
  # Selector specifying which fields to include in a partial response.
@@ -12198,7 +12561,7 @@ module Google
12198
12561
  # @param [String] project
12199
12562
  # Project ID for this request.
12200
12563
  # @param [String] resource
12201
- # Name of the resource for this request.
12564
+ # Name or id of the resource for this request.
12202
12565
  # @param [Google::Apis::ComputeAlpha::GlobalSetLabelsRequest] global_set_labels_request_object
12203
12566
  # @param [String] fields
12204
12567
  # Selector specifying which fields to include in a partial response.
@@ -12237,7 +12600,7 @@ module Google
12237
12600
  # @param [String] project
12238
12601
  # Project ID for this request.
12239
12602
  # @param [String] resource
12240
- # Name of the resource for this request.
12603
+ # Name or id of the resource for this request.
12241
12604
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
12242
12605
  # @param [String] fields
12243
12606
  # Selector specifying which fields to include in a partial response.
@@ -12314,7 +12677,7 @@ module Google
12314
12677
  # @param [String] project
12315
12678
  # Project ID for this request.
12316
12679
  # @param [String] resource
12317
- # Name of the resource for this request.
12680
+ # Name or id of the resource for this request.
12318
12681
  # @param [String] fields
12319
12682
  # Selector specifying which fields to include in a partial response.
12320
12683
  # @param [String] quota_user
@@ -12351,7 +12714,7 @@ module Google
12351
12714
  # @param [String] project
12352
12715
  # Project ID for this request.
12353
12716
  # @param [String] resource
12354
- # Name of the resource for this request.
12717
+ # Name or id of the resource for this request.
12355
12718
  # @param [Google::Apis::ComputeAlpha::GlobalSetPolicyRequest] global_set_policy_request_object
12356
12719
  # @param [String] fields
12357
12720
  # Selector specifying which fields to include in a partial response.
@@ -12390,7 +12753,7 @@ module Google
12390
12753
  # @param [String] project
12391
12754
  # Project ID for this request.
12392
12755
  # @param [String] resource
12393
- # Name of the resource for this request.
12756
+ # Name or id of the resource for this request.
12394
12757
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
12395
12758
  # @param [String] fields
12396
12759
  # Selector specifying which fields to include in a partial response.
@@ -12514,7 +12877,7 @@ module Google
12514
12877
  # @param [String] project
12515
12878
  # Project ID for this request.
12516
12879
  # @param [String] resource
12517
- # Name of the resource for this request.
12880
+ # Name or id of the resource for this request.
12518
12881
  # @param [String] fields
12519
12882
  # Selector specifying which fields to include in a partial response.
12520
12883
  # @param [String] quota_user
@@ -12674,7 +13037,7 @@ module Google
12674
13037
  # @param [String] project
12675
13038
  # Project ID for this request.
12676
13039
  # @param [String] resource
12677
- # Name of the resource for this request.
13040
+ # Name or id of the resource for this request.
12678
13041
  # @param [Google::Apis::ComputeAlpha::GlobalSetPolicyRequest] global_set_policy_request_object
12679
13042
  # @param [String] fields
12680
13043
  # Selector specifying which fields to include in a partial response.
@@ -12713,7 +13076,7 @@ module Google
12713
13076
  # @param [String] project
12714
13077
  # Project ID for this request.
12715
13078
  # @param [String] resource
12716
- # Name of the resource for this request.
13079
+ # Name or id of the resource for this request.
12717
13080
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
12718
13081
  # @param [String] fields
12719
13082
  # Selector specifying which fields to include in a partial response.
@@ -12839,7 +13202,7 @@ module Google
12839
13202
  # @param [String] project
12840
13203
  # Project ID for this request.
12841
13204
  # @param [String] resource
12842
- # Name of the resource for this request.
13205
+ # Name or id of the resource for this request.
12843
13206
  # @param [String] fields
12844
13207
  # Selector specifying which fields to include in a partial response.
12845
13208
  # @param [String] quota_user
@@ -13002,7 +13365,7 @@ module Google
13002
13365
  # @param [String] project
13003
13366
  # Project ID for this request.
13004
13367
  # @param [String] resource
13005
- # Name of the resource for this request.
13368
+ # Name or id of the resource for this request.
13006
13369
  # @param [Google::Apis::ComputeAlpha::GlobalSetPolicyRequest] global_set_policy_request_object
13007
13370
  # @param [String] fields
13008
13371
  # Selector specifying which fields to include in a partial response.
@@ -13041,7 +13404,7 @@ module Google
13041
13404
  # @param [String] project
13042
13405
  # Project ID for this request.
13043
13406
  # @param [String] resource
13044
- # Name of the resource for this request.
13407
+ # Name or id of the resource for this request.
13045
13408
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
13046
13409
  # @param [String] fields
13047
13410
  # Selector specifying which fields to include in a partial response.
@@ -13758,7 +14121,7 @@ module Google
13758
14121
  # @param [String] zone
13759
14122
  # The name of the zone for this request.
13760
14123
  # @param [String] resource
13761
- # Name of the resource for this request.
14124
+ # Name or id of the resource for this request.
13762
14125
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
13763
14126
  # @param [String] fields
13764
14127
  # Selector specifying which fields to include in a partial response.
@@ -14217,6 +14580,90 @@ module Google
14217
14580
  execute_or_queue_command(command, &block)
14218
14581
  end
14219
14582
 
14583
+ # Lists the peering routes exchanged over peering connection.
14584
+ # @param [String] project
14585
+ # Project ID for this request.
14586
+ # @param [String] network
14587
+ # Name of the network for this request.
14588
+ # @param [String] direction
14589
+ # The direction of the exchanged routes.
14590
+ # @param [String] filter
14591
+ # A filter expression that filters resources listed in the response. The
14592
+ # expression must specify the field name, a comparison operator, and the value
14593
+ # that you want to use for filtering. The value must be a string, a number, or a
14594
+ # boolean. The comparison operator must be either =, !=, >, or <.
14595
+ # For example, if you are filtering Compute Engine instances, you can exclude
14596
+ # instances named example-instance by specifying name != example-instance.
14597
+ # You can also filter nested fields. For example, you could specify scheduling.
14598
+ # automaticRestart = false to include instances only if they are not scheduled
14599
+ # for automatic restarts. You can use filtering on nested fields to filter based
14600
+ # on resource labels.
14601
+ # To filter on multiple expressions, provide each separate expression within
14602
+ # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
14603
+ # Intel Skylake"). By default, each expression is an AND expression. However,
14604
+ # you can include AND and OR expressions explicitly. For example, (cpuPlatform =
14605
+ # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
14606
+ # automaticRestart = true).
14607
+ # @param [Fixnum] max_results
14608
+ # The maximum number of results per page that should be returned. If the number
14609
+ # of available results is larger than maxResults, Compute Engine returns a
14610
+ # nextPageToken that can be used to get the next page of results in subsequent
14611
+ # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
14612
+ # @param [String] order_by
14613
+ # Sorts list results by a certain order. By default, results are returned in
14614
+ # alphanumerical order based on the resource name.
14615
+ # You can also sort results in descending order based on the creation timestamp
14616
+ # using orderBy="creationTimestamp desc". This sorts results based on the
14617
+ # creationTimestamp field in reverse chronological order (newest result first).
14618
+ # Use this to sort resources like operations so that the newest operation is
14619
+ # returned first.
14620
+ # Currently, only sorting by name or creationTimestamp desc is supported.
14621
+ # @param [String] page_token
14622
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
14623
+ # a previous list request to get the next page of results.
14624
+ # @param [String] peering_name
14625
+ # The response will show routes exchanged over the given peering connection.
14626
+ # @param [String] region
14627
+ # The region of the request. The response will include all subnet routes, static
14628
+ # routes and dynamic routes in the region.
14629
+ # @param [String] fields
14630
+ # Selector specifying which fields to include in a partial response.
14631
+ # @param [String] quota_user
14632
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
14633
+ # characters.
14634
+ # @param [String] user_ip
14635
+ # Deprecated. Please use quotaUser instead.
14636
+ # @param [Google::Apis::RequestOptions] options
14637
+ # Request-specific options
14638
+ #
14639
+ # @yield [result, err] Result & error if block supplied
14640
+ # @yieldparam result [Google::Apis::ComputeAlpha::ExchangedPeeringRoutesList] parsed result object
14641
+ # @yieldparam err [StandardError] error object if request failed
14642
+ #
14643
+ # @return [Google::Apis::ComputeAlpha::ExchangedPeeringRoutesList]
14644
+ #
14645
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
14646
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
14647
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
14648
+ def list_network_peering_routes(project, network, direction: nil, filter: nil, max_results: nil, order_by: nil, page_token: nil, peering_name: nil, region: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
14649
+ command = make_simple_command(:get, '{project}/global/networks/{network}/listPeeringRoutes', options)
14650
+ command.response_representation = Google::Apis::ComputeAlpha::ExchangedPeeringRoutesList::Representation
14651
+ command.response_class = Google::Apis::ComputeAlpha::ExchangedPeeringRoutesList
14652
+ command.params['project'] = project unless project.nil?
14653
+ command.params['network'] = network unless network.nil?
14654
+ command.query['direction'] = direction unless direction.nil?
14655
+ command.query['filter'] = filter unless filter.nil?
14656
+ command.query['maxResults'] = max_results unless max_results.nil?
14657
+ command.query['orderBy'] = order_by unless order_by.nil?
14658
+ command.query['pageToken'] = page_token unless page_token.nil?
14659
+ command.query['peeringName'] = peering_name unless peering_name.nil?
14660
+ command.query['region'] = region unless region.nil?
14661
+ command.query['fields'] = fields unless fields.nil?
14662
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
14663
+ command.query['userIp'] = user_ip unless user_ip.nil?
14664
+ execute_or_queue_command(command, &block)
14665
+ end
14666
+
14220
14667
  # Patches the specified network with the data included in the request. Only the
14221
14668
  # following fields can be modified: routingConfig.routingMode.
14222
14669
  # @param [String] project
@@ -14372,7 +14819,7 @@ module Google
14372
14819
  # @param [String] project
14373
14820
  # Project ID for this request.
14374
14821
  # @param [String] resource
14375
- # Name of the resource for this request.
14822
+ # Name or id of the resource for this request.
14376
14823
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
14377
14824
  # @param [String] fields
14378
14825
  # Selector specifying which fields to include in a partial response.
@@ -14466,7 +14913,7 @@ module Google
14466
14913
  # @param [String] zone
14467
14914
  # The name of the zone for this request.
14468
14915
  # @param [String] node_group
14469
- # Name of the NodeGroup resource to delete.
14916
+ # Name of the NodeGroup resource.
14470
14917
  # @param [Google::Apis::ComputeAlpha::NodeGroupsAddNodesRequest] node_groups_add_nodes_request_object
14471
14918
  # @param [String] request_id
14472
14919
  # An optional request ID to identify requests. Specify a unique request ID so
@@ -14739,7 +15186,7 @@ module Google
14739
15186
  # @param [String] zone
14740
15187
  # The name of the zone for this request.
14741
15188
  # @param [String] resource
14742
- # Name of the resource for this request.
15189
+ # Name or id of the resource for this request.
14743
15190
  # @param [String] fields
14744
15191
  # Selector specifying which fields to include in a partial response.
14745
15192
  # @param [String] quota_user
@@ -14986,7 +15433,7 @@ module Google
14986
15433
  # @param [String] zone
14987
15434
  # The name of the zone for this request.
14988
15435
  # @param [String] resource
14989
- # Name of the resource for this request.
15436
+ # Name or id of the resource for this request.
14990
15437
  # @param [Google::Apis::ComputeAlpha::ZoneSetPolicyRequest] zone_set_policy_request_object
14991
15438
  # @param [String] fields
14992
15439
  # Selector specifying which fields to include in a partial response.
@@ -15082,7 +15529,7 @@ module Google
15082
15529
  # @param [String] zone
15083
15530
  # The name of the zone for this request.
15084
15531
  # @param [String] resource
15085
- # Name of the resource for this request.
15532
+ # Name or id of the resource for this request.
15086
15533
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
15087
15534
  # @param [String] fields
15088
15535
  # Selector specifying which fields to include in a partial response.
@@ -15287,7 +15734,7 @@ module Google
15287
15734
  # @param [String] region
15288
15735
  # The name of the region for this request.
15289
15736
  # @param [String] resource
15290
- # Name of the resource for this request.
15737
+ # Name or id of the resource for this request.
15291
15738
  # @param [String] fields
15292
15739
  # Selector specifying which fields to include in a partial response.
15293
15740
  # @param [String] quota_user
@@ -15453,7 +15900,7 @@ module Google
15453
15900
  # @param [String] region
15454
15901
  # The name of the region for this request.
15455
15902
  # @param [String] resource
15456
- # Name of the resource for this request.
15903
+ # Name or id of the resource for this request.
15457
15904
  # @param [Google::Apis::ComputeAlpha::RegionSetPolicyRequest] region_set_policy_request_object
15458
15905
  # @param [String] fields
15459
15906
  # Selector specifying which fields to include in a partial response.
@@ -15495,7 +15942,7 @@ module Google
15495
15942
  # @param [String] region
15496
15943
  # The name of the region for this request.
15497
15944
  # @param [String] resource
15498
- # Name of the resource for this request.
15945
+ # Name or id of the resource for this request.
15499
15946
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
15500
15947
  # @param [String] fields
15501
15948
  # Selector specifying which fields to include in a partial response.
@@ -15716,9 +16163,10 @@ module Google
15716
16163
  execute_or_queue_command(command, &block)
15717
16164
  end
15718
16165
 
15719
- # Disable this project as a shared VPC host project.
15720
- # @param [String] project
15721
- # Project ID for this request.
16166
+ # Inserts an association for the specified security policy.
16167
+ # @param [String] security_policy
16168
+ # Name of the security policy to update.
16169
+ # @param [Google::Apis::ComputeAlpha::SecurityPolicyAssociation] security_policy_association_object
15722
16170
  # @param [String] request_id
15723
16171
  # An optional request ID to identify requests. Specify a unique request ID so
15724
16172
  # that if you must retry your request, the server will know to ignore the
@@ -15749,11 +16197,13 @@ module Google
15749
16197
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15750
16198
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15751
16199
  # @raise [Google::Apis::AuthorizationError] Authorization is required
15752
- def disable_project_xpn_host(project, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15753
- command = make_simple_command(:post, '{project}/disableXpnHost', options)
16200
+ def add_organization_security_policy_association(security_policy, security_policy_association_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16201
+ command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/addAssociation', options)
16202
+ command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicyAssociation::Representation
16203
+ command.request_object = security_policy_association_object
15754
16204
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
15755
16205
  command.response_class = Google::Apis::ComputeAlpha::Operation
15756
- command.params['project'] = project unless project.nil?
16206
+ command.params['securityPolicy'] = security_policy unless security_policy.nil?
15757
16207
  command.query['requestId'] = request_id unless request_id.nil?
15758
16208
  command.query['fields'] = fields unless fields.nil?
15759
16209
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -15761,11 +16211,10 @@ module Google
15761
16211
  execute_or_queue_command(command, &block)
15762
16212
  end
15763
16213
 
15764
- # Disable a serivce resource (a.k.a service project) associated with this host
15765
- # project.
15766
- # @param [String] project
15767
- # Project ID for this request.
15768
- # @param [Google::Apis::ComputeAlpha::ProjectsDisableXpnResourceRequest] projects_disable_xpn_resource_request_object
16214
+ # Inserts a rule into a security policy.
16215
+ # @param [String] security_policy
16216
+ # Name of the security policy to update.
16217
+ # @param [Google::Apis::ComputeAlpha::SecurityPolicyRule] security_policy_rule_object
15769
16218
  # @param [String] request_id
15770
16219
  # An optional request ID to identify requests. Specify a unique request ID so
15771
16220
  # that if you must retry your request, the server will know to ignore the
@@ -15796,13 +16245,13 @@ module Google
15796
16245
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15797
16246
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15798
16247
  # @raise [Google::Apis::AuthorizationError] Authorization is required
15799
- def disable_project_xpn_resource(project, projects_disable_xpn_resource_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15800
- command = make_simple_command(:post, '{project}/disableXpnResource', options)
15801
- command.request_representation = Google::Apis::ComputeAlpha::ProjectsDisableXpnResourceRequest::Representation
15802
- command.request_object = projects_disable_xpn_resource_request_object
16248
+ def add_organization_security_policy_rule(security_policy, security_policy_rule_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16249
+ command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/addRule', options)
16250
+ command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicyRule::Representation
16251
+ command.request_object = security_policy_rule_object
15803
16252
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
15804
16253
  command.response_class = Google::Apis::ComputeAlpha::Operation
15805
- command.params['project'] = project unless project.nil?
16254
+ command.params['securityPolicy'] = security_policy unless security_policy.nil?
15806
16255
  command.query['requestId'] = request_id unless request_id.nil?
15807
16256
  command.query['fields'] = fields unless fields.nil?
15808
16257
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -15810,9 +16259,9 @@ module Google
15810
16259
  execute_or_queue_command(command, &block)
15811
16260
  end
15812
16261
 
15813
- # Enable this project as a shared VPC host project.
15814
- # @param [String] project
15815
- # Project ID for this request.
16262
+ # Deletes the specified policy.
16263
+ # @param [String] security_policy
16264
+ # Name of the security policy to delete.
15816
16265
  # @param [String] request_id
15817
16266
  # An optional request ID to identify requests. Specify a unique request ID so
15818
16267
  # that if you must retry your request, the server will know to ignore the
@@ -15843,11 +16292,11 @@ module Google
15843
16292
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15844
16293
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15845
16294
  # @raise [Google::Apis::AuthorizationError] Authorization is required
15846
- def enable_project_xpn_host(project, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15847
- command = make_simple_command(:post, '{project}/enableXpnHost', options)
16295
+ def delete_organization_security_policy(security_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16296
+ command = make_simple_command(:delete, 'locations/global/securityPolicies/{securityPolicy}', options)
15848
16297
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
15849
16298
  command.response_class = Google::Apis::ComputeAlpha::Operation
15850
- command.params['project'] = project unless project.nil?
16299
+ command.params['securityPolicy'] = security_policy unless security_policy.nil?
15851
16300
  command.query['requestId'] = request_id unless request_id.nil?
15852
16301
  command.query['fields'] = fields unless fields.nil?
15853
16302
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -15855,22 +16304,9 @@ module Google
15855
16304
  execute_or_queue_command(command, &block)
15856
16305
  end
15857
16306
 
15858
- # Enable service resource (a.k.a service project) for a host project, so that
15859
- # subnets in the host project can be used by instances in the service project.
15860
- # @param [String] project
15861
- # Project ID for this request.
15862
- # @param [Google::Apis::ComputeAlpha::ProjectsEnableXpnResourceRequest] projects_enable_xpn_resource_request_object
15863
- # @param [String] request_id
15864
- # An optional request ID to identify requests. Specify a unique request ID so
15865
- # that if you must retry your request, the server will know to ignore the
15866
- # request if it has already been completed.
15867
- # For example, consider a situation where you make an initial request and the
15868
- # request times out. If you make the request again with the same request ID, the
15869
- # server can check if original operation with the same request ID was received,
15870
- # and if so, will ignore the second request. This prevents clients from
15871
- # accidentally creating duplicate commitments.
15872
- # The request ID must be a valid UUID with the exception that zero UUID is not
15873
- # supported (00000000-0000-0000-0000-000000000000).
16307
+ # List all of the ordered rules present in a single specified policy.
16308
+ # @param [String] security_policy
16309
+ # Name of the security policy to get.
15874
16310
  # @param [String] fields
15875
16311
  # Selector specifying which fields to include in a partial response.
15876
16312
  # @param [String] quota_user
@@ -15882,24 +16318,548 @@ module Google
15882
16318
  # Request-specific options
15883
16319
  #
15884
16320
  # @yield [result, err] Result & error if block supplied
15885
- # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
16321
+ # @yieldparam result [Google::Apis::ComputeAlpha::SecurityPolicy] parsed result object
15886
16322
  # @yieldparam err [StandardError] error object if request failed
15887
16323
  #
15888
- # @return [Google::Apis::ComputeAlpha::Operation]
16324
+ # @return [Google::Apis::ComputeAlpha::SecurityPolicy]
15889
16325
  #
15890
16326
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15891
16327
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15892
16328
  # @raise [Google::Apis::AuthorizationError] Authorization is required
15893
- def enable_project_xpn_resource(project, projects_enable_xpn_resource_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15894
- command = make_simple_command(:post, '{project}/enableXpnResource', options)
15895
- command.request_representation = Google::Apis::ComputeAlpha::ProjectsEnableXpnResourceRequest::Representation
15896
- command.request_object = projects_enable_xpn_resource_request_object
15897
- command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
15898
- command.response_class = Google::Apis::ComputeAlpha::Operation
15899
- command.params['project'] = project unless project.nil?
15900
- command.query['requestId'] = request_id unless request_id.nil?
15901
- command.query['fields'] = fields unless fields.nil?
15902
- command.query['quotaUser'] = quota_user unless quota_user.nil?
16329
+ def get_organization_security_policy(security_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16330
+ command = make_simple_command(:get, 'locations/global/securityPolicies/{securityPolicy}', options)
16331
+ command.response_representation = Google::Apis::ComputeAlpha::SecurityPolicy::Representation
16332
+ command.response_class = Google::Apis::ComputeAlpha::SecurityPolicy
16333
+ command.params['securityPolicy'] = security_policy unless security_policy.nil?
16334
+ command.query['fields'] = fields unless fields.nil?
16335
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
16336
+ command.query['userIp'] = user_ip unless user_ip.nil?
16337
+ execute_or_queue_command(command, &block)
16338
+ end
16339
+
16340
+ # Gets an association with the specified name.
16341
+ # @param [String] security_policy
16342
+ # Name of the security policy to which the queried rule belongs.
16343
+ # @param [String] name
16344
+ # The name of the association to get from the security policy.
16345
+ # @param [String] fields
16346
+ # Selector specifying which fields to include in a partial response.
16347
+ # @param [String] quota_user
16348
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
16349
+ # characters.
16350
+ # @param [String] user_ip
16351
+ # Deprecated. Please use quotaUser instead.
16352
+ # @param [Google::Apis::RequestOptions] options
16353
+ # Request-specific options
16354
+ #
16355
+ # @yield [result, err] Result & error if block supplied
16356
+ # @yieldparam result [Google::Apis::ComputeAlpha::SecurityPolicyAssociation] parsed result object
16357
+ # @yieldparam err [StandardError] error object if request failed
16358
+ #
16359
+ # @return [Google::Apis::ComputeAlpha::SecurityPolicyAssociation]
16360
+ #
16361
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16362
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16363
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
16364
+ def get_organization_security_policy_association(security_policy, name: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16365
+ command = make_simple_command(:get, 'locations/global/securityPolicies/{securityPolicy}/getAssociation', options)
16366
+ command.response_representation = Google::Apis::ComputeAlpha::SecurityPolicyAssociation::Representation
16367
+ command.response_class = Google::Apis::ComputeAlpha::SecurityPolicyAssociation
16368
+ command.params['securityPolicy'] = security_policy unless security_policy.nil?
16369
+ command.query['name'] = name unless name.nil?
16370
+ command.query['fields'] = fields unless fields.nil?
16371
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
16372
+ command.query['userIp'] = user_ip unless user_ip.nil?
16373
+ execute_or_queue_command(command, &block)
16374
+ end
16375
+
16376
+ # Gets a rule at the specified priority.
16377
+ # @param [String] security_policy
16378
+ # Name of the security policy to which the queried rule belongs.
16379
+ # @param [Fixnum] priority
16380
+ # The priority of the rule to get from the security policy.
16381
+ # @param [String] fields
16382
+ # Selector specifying which fields to include in a partial response.
16383
+ # @param [String] quota_user
16384
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
16385
+ # characters.
16386
+ # @param [String] user_ip
16387
+ # Deprecated. Please use quotaUser instead.
16388
+ # @param [Google::Apis::RequestOptions] options
16389
+ # Request-specific options
16390
+ #
16391
+ # @yield [result, err] Result & error if block supplied
16392
+ # @yieldparam result [Google::Apis::ComputeAlpha::SecurityPolicyRule] parsed result object
16393
+ # @yieldparam err [StandardError] error object if request failed
16394
+ #
16395
+ # @return [Google::Apis::ComputeAlpha::SecurityPolicyRule]
16396
+ #
16397
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16398
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16399
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
16400
+ def get_organization_security_policy_rule(security_policy, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16401
+ command = make_simple_command(:get, 'locations/global/securityPolicies/{securityPolicy}/getRule', options)
16402
+ command.response_representation = Google::Apis::ComputeAlpha::SecurityPolicyRule::Representation
16403
+ command.response_class = Google::Apis::ComputeAlpha::SecurityPolicyRule
16404
+ command.params['securityPolicy'] = security_policy unless security_policy.nil?
16405
+ command.query['priority'] = priority unless priority.nil?
16406
+ command.query['fields'] = fields unless fields.nil?
16407
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
16408
+ command.query['userIp'] = user_ip unless user_ip.nil?
16409
+ execute_or_queue_command(command, &block)
16410
+ end
16411
+
16412
+ # Creates a new policy in the specified project using the data included in the
16413
+ # request.
16414
+ # @param [Google::Apis::ComputeAlpha::SecurityPolicy] security_policy_object
16415
+ # @param [String] parent_id
16416
+ # Parent ID for this request.
16417
+ # @param [String] request_id
16418
+ # An optional request ID to identify requests. Specify a unique request ID so
16419
+ # that if you must retry your request, the server will know to ignore the
16420
+ # request if it has already been completed.
16421
+ # For example, consider a situation where you make an initial request and the
16422
+ # request times out. If you make the request again with the same request ID, the
16423
+ # server can check if original operation with the same request ID was received,
16424
+ # and if so, will ignore the second request. This prevents clients from
16425
+ # accidentally creating duplicate commitments.
16426
+ # The request ID must be a valid UUID with the exception that zero UUID is not
16427
+ # supported (00000000-0000-0000-0000-000000000000).
16428
+ # @param [String] fields
16429
+ # Selector specifying which fields to include in a partial response.
16430
+ # @param [String] quota_user
16431
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
16432
+ # characters.
16433
+ # @param [String] user_ip
16434
+ # Deprecated. Please use quotaUser instead.
16435
+ # @param [Google::Apis::RequestOptions] options
16436
+ # Request-specific options
16437
+ #
16438
+ # @yield [result, err] Result & error if block supplied
16439
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
16440
+ # @yieldparam err [StandardError] error object if request failed
16441
+ #
16442
+ # @return [Google::Apis::ComputeAlpha::Operation]
16443
+ #
16444
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16445
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16446
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
16447
+ def insert_organization_security_policy(security_policy_object = nil, parent_id: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16448
+ command = make_simple_command(:post, 'locations/global/securityPolicies', options)
16449
+ command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicy::Representation
16450
+ command.request_object = security_policy_object
16451
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
16452
+ command.response_class = Google::Apis::ComputeAlpha::Operation
16453
+ command.query['parentId'] = parent_id unless parent_id.nil?
16454
+ command.query['requestId'] = request_id unless request_id.nil?
16455
+ command.query['fields'] = fields unless fields.nil?
16456
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
16457
+ command.query['userIp'] = user_ip unless user_ip.nil?
16458
+ execute_or_queue_command(command, &block)
16459
+ end
16460
+
16461
+ # List all the policies that have been configured for the specified project.
16462
+ # @param [String] filter
16463
+ # A filter expression that filters resources listed in the response. The
16464
+ # expression must specify the field name, a comparison operator, and the value
16465
+ # that you want to use for filtering. The value must be a string, a number, or a
16466
+ # boolean. The comparison operator must be either =, !=, >, or <.
16467
+ # For example, if you are filtering Compute Engine instances, you can exclude
16468
+ # instances named example-instance by specifying name != example-instance.
16469
+ # You can also filter nested fields. For example, you could specify scheduling.
16470
+ # automaticRestart = false to include instances only if they are not scheduled
16471
+ # for automatic restarts. You can use filtering on nested fields to filter based
16472
+ # on resource labels.
16473
+ # To filter on multiple expressions, provide each separate expression within
16474
+ # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
16475
+ # Intel Skylake"). By default, each expression is an AND expression. However,
16476
+ # you can include AND and OR expressions explicitly. For example, (cpuPlatform =
16477
+ # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
16478
+ # automaticRestart = true).
16479
+ # @param [Fixnum] max_results
16480
+ # The maximum number of results per page that should be returned. If the number
16481
+ # of available results is larger than maxResults, Compute Engine returns a
16482
+ # nextPageToken that can be used to get the next page of results in subsequent
16483
+ # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
16484
+ # @param [String] order_by
16485
+ # Sorts list results by a certain order. By default, results are returned in
16486
+ # alphanumerical order based on the resource name.
16487
+ # You can also sort results in descending order based on the creation timestamp
16488
+ # using orderBy="creationTimestamp desc". This sorts results based on the
16489
+ # creationTimestamp field in reverse chronological order (newest result first).
16490
+ # Use this to sort resources like operations so that the newest operation is
16491
+ # returned first.
16492
+ # Currently, only sorting by name or creationTimestamp desc is supported.
16493
+ # @param [String] page_token
16494
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
16495
+ # a previous list request to get the next page of results.
16496
+ # @param [String] parent_id
16497
+ # Parent ID for this request.
16498
+ # @param [String] fields
16499
+ # Selector specifying which fields to include in a partial response.
16500
+ # @param [String] quota_user
16501
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
16502
+ # characters.
16503
+ # @param [String] user_ip
16504
+ # Deprecated. Please use quotaUser instead.
16505
+ # @param [Google::Apis::RequestOptions] options
16506
+ # Request-specific options
16507
+ #
16508
+ # @yield [result, err] Result & error if block supplied
16509
+ # @yieldparam result [Google::Apis::ComputeAlpha::SecurityPolicyList] parsed result object
16510
+ # @yieldparam err [StandardError] error object if request failed
16511
+ #
16512
+ # @return [Google::Apis::ComputeAlpha::SecurityPolicyList]
16513
+ #
16514
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16515
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16516
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
16517
+ def list_organization_security_policies(filter: nil, max_results: nil, order_by: nil, page_token: nil, parent_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16518
+ command = make_simple_command(:get, 'locations/global/securityPolicies', options)
16519
+ command.response_representation = Google::Apis::ComputeAlpha::SecurityPolicyList::Representation
16520
+ command.response_class = Google::Apis::ComputeAlpha::SecurityPolicyList
16521
+ command.query['filter'] = filter unless filter.nil?
16522
+ command.query['maxResults'] = max_results unless max_results.nil?
16523
+ command.query['orderBy'] = order_by unless order_by.nil?
16524
+ command.query['pageToken'] = page_token unless page_token.nil?
16525
+ command.query['parentId'] = parent_id unless parent_id.nil?
16526
+ command.query['fields'] = fields unless fields.nil?
16527
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
16528
+ command.query['userIp'] = user_ip unless user_ip.nil?
16529
+ execute_or_queue_command(command, &block)
16530
+ end
16531
+
16532
+ # Patches a rule at the specified priority.
16533
+ # @param [String] security_policy
16534
+ # Name of the security policy to update.
16535
+ # @param [Google::Apis::ComputeAlpha::SecurityPolicyRule] security_policy_rule_object
16536
+ # @param [Fixnum] priority
16537
+ # The priority of the rule to patch.
16538
+ # @param [String] request_id
16539
+ # An optional request ID to identify requests. Specify a unique request ID so
16540
+ # that if you must retry your request, the server will know to ignore the
16541
+ # request if it has already been completed.
16542
+ # For example, consider a situation where you make an initial request and the
16543
+ # request times out. If you make the request again with the same request ID, the
16544
+ # server can check if original operation with the same request ID was received,
16545
+ # and if so, will ignore the second request. This prevents clients from
16546
+ # accidentally creating duplicate commitments.
16547
+ # The request ID must be a valid UUID with the exception that zero UUID is not
16548
+ # supported (00000000-0000-0000-0000-000000000000).
16549
+ # @param [String] fields
16550
+ # Selector specifying which fields to include in a partial response.
16551
+ # @param [String] quota_user
16552
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
16553
+ # characters.
16554
+ # @param [String] user_ip
16555
+ # Deprecated. Please use quotaUser instead.
16556
+ # @param [Google::Apis::RequestOptions] options
16557
+ # Request-specific options
16558
+ #
16559
+ # @yield [result, err] Result & error if block supplied
16560
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
16561
+ # @yieldparam err [StandardError] error object if request failed
16562
+ #
16563
+ # @return [Google::Apis::ComputeAlpha::Operation]
16564
+ #
16565
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16566
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16567
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
16568
+ def patch_organization_security_policy_rule(security_policy, security_policy_rule_object = nil, priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16569
+ command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/patchRule', options)
16570
+ command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicyRule::Representation
16571
+ command.request_object = security_policy_rule_object
16572
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
16573
+ command.response_class = Google::Apis::ComputeAlpha::Operation
16574
+ command.params['securityPolicy'] = security_policy unless security_policy.nil?
16575
+ command.query['priority'] = priority unless priority.nil?
16576
+ command.query['requestId'] = request_id unless request_id.nil?
16577
+ command.query['fields'] = fields unless fields.nil?
16578
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
16579
+ command.query['userIp'] = user_ip unless user_ip.nil?
16580
+ execute_or_queue_command(command, &block)
16581
+ end
16582
+
16583
+ # Removes an association for the specified security policy.
16584
+ # @param [String] security_policy
16585
+ # Name of the security policy to update.
16586
+ # @param [String] name
16587
+ # Name for the attachment that will be removed.
16588
+ # @param [String] request_id
16589
+ # An optional request ID to identify requests. Specify a unique request ID so
16590
+ # that if you must retry your request, the server will know to ignore the
16591
+ # request if it has already been completed.
16592
+ # For example, consider a situation where you make an initial request and the
16593
+ # request times out. If you make the request again with the same request ID, the
16594
+ # server can check if original operation with the same request ID was received,
16595
+ # and if so, will ignore the second request. This prevents clients from
16596
+ # accidentally creating duplicate commitments.
16597
+ # The request ID must be a valid UUID with the exception that zero UUID is not
16598
+ # supported (00000000-0000-0000-0000-000000000000).
16599
+ # @param [String] fields
16600
+ # Selector specifying which fields to include in a partial response.
16601
+ # @param [String] quota_user
16602
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
16603
+ # characters.
16604
+ # @param [String] user_ip
16605
+ # Deprecated. Please use quotaUser instead.
16606
+ # @param [Google::Apis::RequestOptions] options
16607
+ # Request-specific options
16608
+ #
16609
+ # @yield [result, err] Result & error if block supplied
16610
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
16611
+ # @yieldparam err [StandardError] error object if request failed
16612
+ #
16613
+ # @return [Google::Apis::ComputeAlpha::Operation]
16614
+ #
16615
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16616
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16617
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
16618
+ def remove_organization_security_policy_association(security_policy, name: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16619
+ command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/removeAssociation', options)
16620
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
16621
+ command.response_class = Google::Apis::ComputeAlpha::Operation
16622
+ command.params['securityPolicy'] = security_policy unless security_policy.nil?
16623
+ command.query['name'] = name unless name.nil?
16624
+ command.query['requestId'] = request_id unless request_id.nil?
16625
+ command.query['fields'] = fields unless fields.nil?
16626
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
16627
+ command.query['userIp'] = user_ip unless user_ip.nil?
16628
+ execute_or_queue_command(command, &block)
16629
+ end
16630
+
16631
+ # Deletes a rule at the specified priority.
16632
+ # @param [String] security_policy
16633
+ # Name of the security policy to update.
16634
+ # @param [Fixnum] priority
16635
+ # The priority of the rule to remove from the security policy.
16636
+ # @param [String] request_id
16637
+ # An optional request ID to identify requests. Specify a unique request ID so
16638
+ # that if you must retry your request, the server will know to ignore the
16639
+ # request if it has already been completed.
16640
+ # For example, consider a situation where you make an initial request and the
16641
+ # request times out. If you make the request again with the same request ID, the
16642
+ # server can check if original operation with the same request ID was received,
16643
+ # and if so, will ignore the second request. This prevents clients from
16644
+ # accidentally creating duplicate commitments.
16645
+ # The request ID must be a valid UUID with the exception that zero UUID is not
16646
+ # supported (00000000-0000-0000-0000-000000000000).
16647
+ # @param [String] fields
16648
+ # Selector specifying which fields to include in a partial response.
16649
+ # @param [String] quota_user
16650
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
16651
+ # characters.
16652
+ # @param [String] user_ip
16653
+ # Deprecated. Please use quotaUser instead.
16654
+ # @param [Google::Apis::RequestOptions] options
16655
+ # Request-specific options
16656
+ #
16657
+ # @yield [result, err] Result & error if block supplied
16658
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
16659
+ # @yieldparam err [StandardError] error object if request failed
16660
+ #
16661
+ # @return [Google::Apis::ComputeAlpha::Operation]
16662
+ #
16663
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16664
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16665
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
16666
+ def remove_organization_security_policy_rule(security_policy, priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16667
+ command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/removeRule', options)
16668
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
16669
+ command.response_class = Google::Apis::ComputeAlpha::Operation
16670
+ command.params['securityPolicy'] = security_policy unless security_policy.nil?
16671
+ command.query['priority'] = priority unless priority.nil?
16672
+ command.query['requestId'] = request_id unless request_id.nil?
16673
+ command.query['fields'] = fields unless fields.nil?
16674
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
16675
+ command.query['userIp'] = user_ip unless user_ip.nil?
16676
+ execute_or_queue_command(command, &block)
16677
+ end
16678
+
16679
+ # Disable this project as a shared VPC host project.
16680
+ # @param [String] project
16681
+ # Project ID for this request.
16682
+ # @param [String] request_id
16683
+ # An optional request ID to identify requests. Specify a unique request ID so
16684
+ # that if you must retry your request, the server will know to ignore the
16685
+ # request if it has already been completed.
16686
+ # For example, consider a situation where you make an initial request and the
16687
+ # request times out. If you make the request again with the same request ID, the
16688
+ # server can check if original operation with the same request ID was received,
16689
+ # and if so, will ignore the second request. This prevents clients from
16690
+ # accidentally creating duplicate commitments.
16691
+ # The request ID must be a valid UUID with the exception that zero UUID is not
16692
+ # supported (00000000-0000-0000-0000-000000000000).
16693
+ # @param [String] fields
16694
+ # Selector specifying which fields to include in a partial response.
16695
+ # @param [String] quota_user
16696
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
16697
+ # characters.
16698
+ # @param [String] user_ip
16699
+ # Deprecated. Please use quotaUser instead.
16700
+ # @param [Google::Apis::RequestOptions] options
16701
+ # Request-specific options
16702
+ #
16703
+ # @yield [result, err] Result & error if block supplied
16704
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
16705
+ # @yieldparam err [StandardError] error object if request failed
16706
+ #
16707
+ # @return [Google::Apis::ComputeAlpha::Operation]
16708
+ #
16709
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16710
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16711
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
16712
+ def disable_project_xpn_host(project, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16713
+ command = make_simple_command(:post, '{project}/disableXpnHost', options)
16714
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
16715
+ command.response_class = Google::Apis::ComputeAlpha::Operation
16716
+ command.params['project'] = project unless project.nil?
16717
+ command.query['requestId'] = request_id unless request_id.nil?
16718
+ command.query['fields'] = fields unless fields.nil?
16719
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
16720
+ command.query['userIp'] = user_ip unless user_ip.nil?
16721
+ execute_or_queue_command(command, &block)
16722
+ end
16723
+
16724
+ # Disable a serivce resource (a.k.a service project) associated with this host
16725
+ # project.
16726
+ # @param [String] project
16727
+ # Project ID for this request.
16728
+ # @param [Google::Apis::ComputeAlpha::ProjectsDisableXpnResourceRequest] projects_disable_xpn_resource_request_object
16729
+ # @param [String] request_id
16730
+ # An optional request ID to identify requests. Specify a unique request ID so
16731
+ # that if you must retry your request, the server will know to ignore the
16732
+ # request if it has already been completed.
16733
+ # For example, consider a situation where you make an initial request and the
16734
+ # request times out. If you make the request again with the same request ID, the
16735
+ # server can check if original operation with the same request ID was received,
16736
+ # and if so, will ignore the second request. This prevents clients from
16737
+ # accidentally creating duplicate commitments.
16738
+ # The request ID must be a valid UUID with the exception that zero UUID is not
16739
+ # supported (00000000-0000-0000-0000-000000000000).
16740
+ # @param [String] fields
16741
+ # Selector specifying which fields to include in a partial response.
16742
+ # @param [String] quota_user
16743
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
16744
+ # characters.
16745
+ # @param [String] user_ip
16746
+ # Deprecated. Please use quotaUser instead.
16747
+ # @param [Google::Apis::RequestOptions] options
16748
+ # Request-specific options
16749
+ #
16750
+ # @yield [result, err] Result & error if block supplied
16751
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
16752
+ # @yieldparam err [StandardError] error object if request failed
16753
+ #
16754
+ # @return [Google::Apis::ComputeAlpha::Operation]
16755
+ #
16756
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16757
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16758
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
16759
+ def disable_project_xpn_resource(project, projects_disable_xpn_resource_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16760
+ command = make_simple_command(:post, '{project}/disableXpnResource', options)
16761
+ command.request_representation = Google::Apis::ComputeAlpha::ProjectsDisableXpnResourceRequest::Representation
16762
+ command.request_object = projects_disable_xpn_resource_request_object
16763
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
16764
+ command.response_class = Google::Apis::ComputeAlpha::Operation
16765
+ command.params['project'] = project unless project.nil?
16766
+ command.query['requestId'] = request_id unless request_id.nil?
16767
+ command.query['fields'] = fields unless fields.nil?
16768
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
16769
+ command.query['userIp'] = user_ip unless user_ip.nil?
16770
+ execute_or_queue_command(command, &block)
16771
+ end
16772
+
16773
+ # Enable this project as a shared VPC host project.
16774
+ # @param [String] project
16775
+ # Project ID for this request.
16776
+ # @param [String] request_id
16777
+ # An optional request ID to identify requests. Specify a unique request ID so
16778
+ # that if you must retry your request, the server will know to ignore the
16779
+ # request if it has already been completed.
16780
+ # For example, consider a situation where you make an initial request and the
16781
+ # request times out. If you make the request again with the same request ID, the
16782
+ # server can check if original operation with the same request ID was received,
16783
+ # and if so, will ignore the second request. This prevents clients from
16784
+ # accidentally creating duplicate commitments.
16785
+ # The request ID must be a valid UUID with the exception that zero UUID is not
16786
+ # supported (00000000-0000-0000-0000-000000000000).
16787
+ # @param [String] fields
16788
+ # Selector specifying which fields to include in a partial response.
16789
+ # @param [String] quota_user
16790
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
16791
+ # characters.
16792
+ # @param [String] user_ip
16793
+ # Deprecated. Please use quotaUser instead.
16794
+ # @param [Google::Apis::RequestOptions] options
16795
+ # Request-specific options
16796
+ #
16797
+ # @yield [result, err] Result & error if block supplied
16798
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
16799
+ # @yieldparam err [StandardError] error object if request failed
16800
+ #
16801
+ # @return [Google::Apis::ComputeAlpha::Operation]
16802
+ #
16803
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16804
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16805
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
16806
+ def enable_project_xpn_host(project, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16807
+ command = make_simple_command(:post, '{project}/enableXpnHost', options)
16808
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
16809
+ command.response_class = Google::Apis::ComputeAlpha::Operation
16810
+ command.params['project'] = project unless project.nil?
16811
+ command.query['requestId'] = request_id unless request_id.nil?
16812
+ command.query['fields'] = fields unless fields.nil?
16813
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
16814
+ command.query['userIp'] = user_ip unless user_ip.nil?
16815
+ execute_or_queue_command(command, &block)
16816
+ end
16817
+
16818
+ # Enable service resource (a.k.a service project) for a host project, so that
16819
+ # subnets in the host project can be used by instances in the service project.
16820
+ # @param [String] project
16821
+ # Project ID for this request.
16822
+ # @param [Google::Apis::ComputeAlpha::ProjectsEnableXpnResourceRequest] projects_enable_xpn_resource_request_object
16823
+ # @param [String] request_id
16824
+ # An optional request ID to identify requests. Specify a unique request ID so
16825
+ # that if you must retry your request, the server will know to ignore the
16826
+ # request if it has already been completed.
16827
+ # For example, consider a situation where you make an initial request and the
16828
+ # request times out. If you make the request again with the same request ID, the
16829
+ # server can check if original operation with the same request ID was received,
16830
+ # and if so, will ignore the second request. This prevents clients from
16831
+ # accidentally creating duplicate commitments.
16832
+ # The request ID must be a valid UUID with the exception that zero UUID is not
16833
+ # supported (00000000-0000-0000-0000-000000000000).
16834
+ # @param [String] fields
16835
+ # Selector specifying which fields to include in a partial response.
16836
+ # @param [String] quota_user
16837
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
16838
+ # characters.
16839
+ # @param [String] user_ip
16840
+ # Deprecated. Please use quotaUser instead.
16841
+ # @param [Google::Apis::RequestOptions] options
16842
+ # Request-specific options
16843
+ #
16844
+ # @yield [result, err] Result & error if block supplied
16845
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
16846
+ # @yieldparam err [StandardError] error object if request failed
16847
+ #
16848
+ # @return [Google::Apis::ComputeAlpha::Operation]
16849
+ #
16850
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16851
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16852
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
16853
+ def enable_project_xpn_resource(project, projects_enable_xpn_resource_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16854
+ command = make_simple_command(:post, '{project}/enableXpnResource', options)
16855
+ command.request_representation = Google::Apis::ComputeAlpha::ProjectsEnableXpnResourceRequest::Representation
16856
+ command.request_object = projects_enable_xpn_resource_request_object
16857
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
16858
+ command.response_class = Google::Apis::ComputeAlpha::Operation
16859
+ command.params['project'] = project unless project.nil?
16860
+ command.query['requestId'] = request_id unless request_id.nil?
16861
+ command.query['fields'] = fields unless fields.nil?
16862
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
15903
16863
  command.query['userIp'] = user_ip unless user_ip.nil?
15904
16864
  execute_or_queue_command(command, &block)
15905
16865
  end
@@ -16690,7 +17650,7 @@ module Google
16690
17650
  # @param [String] region
16691
17651
  # The name of the region for this request.
16692
17652
  # @param [String] resource
16693
- # Name of the resource for this request.
17653
+ # Name or id of the resource for this request.
16694
17654
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
16695
17655
  # @param [String] fields
16696
17656
  # Selector specifying which fields to include in a partial response.
@@ -17105,7 +18065,7 @@ module Google
17105
18065
  # @param [String] region
17106
18066
  # The name of the region for this request.
17107
18067
  # @param [String] resource
17108
- # Name of the resource for this request.
18068
+ # Name or id of the resource for this request.
17109
18069
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
17110
18070
  # @param [String] fields
17111
18071
  # Selector specifying which fields to include in a partial response.
@@ -17441,7 +18401,7 @@ module Google
17441
18401
  # @param [String] region
17442
18402
  # The name of the region for this request.
17443
18403
  # @param [String] resource
17444
- # Name of the resource for this request.
18404
+ # Name or id of the resource for this request.
17445
18405
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
17446
18406
  # @param [String] fields
17447
18407
  # Selector specifying which fields to include in a partial response.
@@ -18038,7 +18998,7 @@ module Google
18038
18998
  # @param [String] region
18039
18999
  # The region for this request.
18040
19000
  # @param [String] resource
18041
- # Name of the resource for this request.
19001
+ # Name or id of the resource for this request.
18042
19002
  # @param [Google::Apis::ComputeAlpha::RegionSetLabelsRequest] region_set_labels_request_object
18043
19003
  # @param [String] request_id
18044
19004
  # An optional request ID to identify requests. Specify a unique request ID so
@@ -18092,7 +19052,7 @@ module Google
18092
19052
  # @param [String] region
18093
19053
  # The name of the region for this request.
18094
19054
  # @param [String] resource
18095
- # Name of the resource for this request.
19055
+ # Name or id of the resource for this request.
18096
19056
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
18097
19057
  # @param [String] fields
18098
19058
  # Selector specifying which fields to include in a partial response.
@@ -18407,7 +19367,7 @@ module Google
18407
19367
  # @param [String] region
18408
19368
  # The name of the region for this request.
18409
19369
  # @param [String] resource
18410
- # Name of the resource for this request.
19370
+ # Name or id of the resource for this request.
18411
19371
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
18412
19372
  # @param [String] fields
18413
19373
  # Selector specifying which fields to include in a partial response.
@@ -18498,7 +19458,7 @@ module Google
18498
19458
  execute_or_queue_command(command, &block)
18499
19459
  end
18500
19460
 
18501
- # Schedules a group action to remove the specified instances from the managed
19461
+ # Flags the specified instances to be immediately removed from the managed
18502
19462
  # instance group. Abandoning an instance does not delete the instance, but it
18503
19463
  # does remove the instance from any target pools that are applied by the managed
18504
19464
  # instance group. This method reduces the targetSize of the managed instance
@@ -18657,13 +19617,13 @@ module Google
18657
19617
  execute_or_queue_command(command, &block)
18658
19618
  end
18659
19619
 
18660
- # Schedules a group action to delete the specified instances in the managed
18661
- # instance group. The instances are also removed from any target pools of which
18662
- # they were a member. This method reduces the targetSize of the managed instance
18663
- # group by the number of instances that you delete. This operation is marked as
18664
- # DONE when the action is scheduled even if the instances are still being
18665
- # deleted. You must separately verify the status of the deleting action with the
18666
- # listmanagedinstances method.
19620
+ # Flags the specified instances in the managed instance group to be immediately
19621
+ # deleted. The instances are also removed from any target pools of which they
19622
+ # were a member. This method reduces the targetSize of the managed instance
19623
+ # group by the number of instances that you delete. The deleteInstances
19624
+ # operation is marked DONE if the deleteInstances request is successful. The
19625
+ # underlying actions take additional time. You must separately verify the status
19626
+ # of the deleting action with the listmanagedinstances method.
18667
19627
  # If the group is part of a backend service that has enabled connection draining,
18668
19628
  # it can take up to 60 seconds after the connection draining duration has
18669
19629
  # elapsed before the VM instance is removed or deleted.
@@ -18803,11 +19763,11 @@ module Google
18803
19763
  end
18804
19764
 
18805
19765
  # Creates a managed instance group using the information that you specify in the
18806
- # request. After the group is created, it schedules an action to create
18807
- # instances in the group using the specified instance template. This operation
18808
- # is marked as DONE when the group is created even if the instances in the group
18809
- # have not yet been created. You must separately verify the status of the
18810
- # individual instances with the listmanagedinstances method.
19766
+ # request. After the group is created, instances in the group are created using
19767
+ # the specified instance template. This operation is marked as DONE when the
19768
+ # group is created even if the instances in the group have not yet been created.
19769
+ # You must separately verify the status of the individual instances with the
19770
+ # listmanagedinstances method.
18811
19771
  # A regional managed instance group can contain up to 2000 instances.
18812
19772
  # @param [String] project
18813
19773
  # Project ID for this request.
@@ -19149,12 +20109,12 @@ module Google
19149
20109
  execute_or_queue_command(command, &block)
19150
20110
  end
19151
20111
 
19152
- # Schedules a group action to recreate the specified instances in the managed
19153
- # instance group. The instances are deleted and recreated using the current
19154
- # instance template for the managed instance group. This operation is marked as
19155
- # DONE when the action is scheduled even if the instances have not yet been
19156
- # recreated. You must separately verify the status of the recreating action with
19157
- # the listmanagedinstances method.
20112
+ # Flags the specified instances in the managed instance group to be immediately
20113
+ # recreated. The instances are deleted and recreated using the current instance
20114
+ # template for the managed instance group. This operation is marked as DONE when
20115
+ # the flag is set even if the instances have not yet been recreated. You must
20116
+ # separately verify the status of the recreating action with the
20117
+ # listmanagedinstances method.
19158
20118
  # If the group is part of a backend service that has enabled connection draining,
19159
20119
  # it can take up to 60 seconds after the connection draining duration has
19160
20120
  # elapsed before the VM instance is removed or deleted.
@@ -19212,13 +20172,12 @@ module Google
19212
20172
  execute_or_queue_command(command, &block)
19213
20173
  end
19214
20174
 
19215
- # Changes the intended size for the managed instance group. If you increase the
19216
- # size, the group schedules actions to create new instances using the current
19217
- # instance template. If you decrease the size, the group schedules delete
19218
- # actions on one or more instances. The resize operation is marked DONE when the
19219
- # resize actions are scheduled even if the group has not yet added or deleted
19220
- # any instances. You must separately verify the status of the creating or
19221
- # deleting actions with the listmanagedinstances method.
20175
+ # Changes the intended size of the managed instance group. If you increase the
20176
+ # size, the group creates new instances using the current instance template. If
20177
+ # you decrease the size, the group deletes one or more instances.
20178
+ # The resize operation is marked DONE if the resize request is successful. The
20179
+ # underlying actions take additional time. You must separately verify the status
20180
+ # of the creating or deleting actions with the listmanagedinstances method.
19222
20181
  # If the group is part of a backend service that has enabled connection draining,
19223
20182
  # it can take up to 60 seconds after the connection draining duration has
19224
20183
  # elapsed before the VM instance is removed or deleted.
@@ -19276,7 +20235,7 @@ module Google
19276
20235
  end
19277
20236
 
19278
20237
  # Modifies the autohealing policy for the instances in this managed instance
19279
- # group.
20238
+ # group. [Deprecated] This method is deprecated. Please use Patch instead.
19280
20239
  # @param [String] project
19281
20240
  # Project ID for this request.
19282
20241
  # @param [String] region
@@ -19446,7 +20405,7 @@ module Google
19446
20405
  # @param [String] region
19447
20406
  # The name of the region for this request.
19448
20407
  # @param [String] resource
19449
- # Name of the resource for this request.
20408
+ # Name or id of the resource for this request.
19450
20409
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
19451
20410
  # @param [String] fields
19452
20411
  # Selector specifying which fields to include in a partial response.
@@ -19852,7 +20811,7 @@ module Google
19852
20811
  # @param [String] region
19853
20812
  # The name of the region for this request.
19854
20813
  # @param [String] resource
19855
- # Name of the resource for this request.
20814
+ # Name or id of the resource for this request.
19856
20815
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
19857
20816
  # @param [String] fields
19858
20817
  # Selector specifying which fields to include in a partial response.
@@ -20309,7 +21268,7 @@ module Google
20309
21268
  # @param [String] region
20310
21269
  # The name of the region for this request.
20311
21270
  # @param [String] resource
20312
- # Name of the resource for this request.
21271
+ # Name or id of the resource for this request.
20313
21272
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
20314
21273
  # @param [String] fields
20315
21274
  # Selector specifying which fields to include in a partial response.
@@ -20623,7 +21582,7 @@ module Google
20623
21582
  # @param [String] region
20624
21583
  # The name of the region for this request.
20625
21584
  # @param [String] resource
20626
- # Name of the resource for this request.
21585
+ # Name or id of the resource for this request.
20627
21586
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
20628
21587
  # @param [String] fields
20629
21588
  # Selector specifying which fields to include in a partial response.
@@ -20991,7 +21950,7 @@ module Google
20991
21950
  # @param [String] region
20992
21951
  # The name of the region for this request.
20993
21952
  # @param [String] resource
20994
- # Name of the resource for this request.
21953
+ # Name or id of the resource for this request.
20995
21954
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
20996
21955
  # @param [String] fields
20997
21956
  # Selector specifying which fields to include in a partial response.
@@ -21326,7 +22285,7 @@ module Google
21326
22285
  # @param [String] region
21327
22286
  # The name of the region for this request.
21328
22287
  # @param [String] resource
21329
- # Name of the resource for this request.
22288
+ # Name or id of the resource for this request.
21330
22289
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
21331
22290
  # @param [String] fields
21332
22291
  # Selector specifying which fields to include in a partial response.
@@ -21726,7 +22685,7 @@ module Google
21726
22685
  # @param [String] region
21727
22686
  # The name of the region for this request.
21728
22687
  # @param [String] resource
21729
- # Name of the resource for this request.
22688
+ # Name or id of the resource for this request.
21730
22689
  # @param [String] fields
21731
22690
  # Selector specifying which fields to include in a partial response.
21732
22691
  # @param [String] quota_user
@@ -21892,7 +22851,7 @@ module Google
21892
22851
  # @param [String] region
21893
22852
  # The name of the region for this request.
21894
22853
  # @param [String] resource
21895
- # Name of the resource for this request.
22854
+ # Name or id of the resource for this request.
21896
22855
  # @param [Google::Apis::ComputeAlpha::RegionSetPolicyRequest] region_set_policy_request_object
21897
22856
  # @param [String] fields
21898
22857
  # Selector specifying which fields to include in a partial response.
@@ -21934,7 +22893,7 @@ module Google
21934
22893
  # @param [String] region
21935
22894
  # The name of the region for this request.
21936
22895
  # @param [String] resource
21937
- # Name of the resource for this request.
22896
+ # Name or id of the resource for this request.
21938
22897
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
21939
22898
  # @param [String] fields
21940
22899
  # Selector specifying which fields to include in a partial response.
@@ -22480,7 +23439,7 @@ module Google
22480
23439
  # @param [String] region
22481
23440
  # The name of the region for this request.
22482
23441
  # @param [String] resource
22483
- # Name of the resource for this request.
23442
+ # Name or id of the resource for this request.
22484
23443
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
22485
23444
  # @param [String] fields
22486
23445
  # Selector specifying which fields to include in a partial response.
@@ -22779,7 +23738,7 @@ module Google
22779
23738
  # @param [String] project
22780
23739
  # Project ID for this request.
22781
23740
  # @param [String] resource
22782
- # Name of the resource for this request.
23741
+ # Name or id of the resource for this request.
22783
23742
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
22784
23743
  # @param [String] fields
22785
23744
  # Selector specifying which fields to include in a partial response.
@@ -23314,7 +24273,7 @@ module Google
23314
24273
  # @param [String] project
23315
24274
  # Project ID for this request.
23316
24275
  # @param [String] resource
23317
- # Name of the resource for this request.
24276
+ # Name or id of the resource for this request.
23318
24277
  # @param [Google::Apis::ComputeAlpha::GlobalSetLabelsRequest] global_set_labels_request_object
23319
24278
  # @param [String] fields
23320
24279
  # Selector specifying which fields to include in a partial response.
@@ -23353,7 +24312,7 @@ module Google
23353
24312
  # @param [String] project
23354
24313
  # Project ID for this request.
23355
24314
  # @param [String] resource
23356
- # Name of the resource for this request.
24315
+ # Name or id of the resource for this request.
23357
24316
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
23358
24317
  # @param [String] fields
23359
24318
  # Selector specifying which fields to include in a partial response.
@@ -23392,7 +24351,7 @@ module Google
23392
24351
  # snapshot might not necessarily delete all the data on that snapshot. If any
23393
24352
  # data on the snapshot that is marked for deletion is needed for subsequent
23394
24353
  # snapshots, the data will be moved to the next corresponding snapshot.
23395
- # For more information, see Deleting snaphots.
24354
+ # For more information, see Deleting snapshots.
23396
24355
  # @param [String] project
23397
24356
  # Project ID for this request.
23398
24357
  # @param [String] snapshot
@@ -23482,7 +24441,7 @@ module Google
23482
24441
  # @param [String] project
23483
24442
  # Project ID for this request.
23484
24443
  # @param [String] resource
23485
- # Name of the resource for this request.
24444
+ # Name or id of the resource for this request.
23486
24445
  # @param [String] fields
23487
24446
  # Selector specifying which fields to include in a partial response.
23488
24447
  # @param [String] quota_user
@@ -23591,7 +24550,7 @@ module Google
23591
24550
  # @param [String] project
23592
24551
  # Project ID for this request.
23593
24552
  # @param [String] resource
23594
- # Name of the resource for this request.
24553
+ # Name or id of the resource for this request.
23595
24554
  # @param [Google::Apis::ComputeAlpha::GlobalSetPolicyRequest] global_set_policy_request_object
23596
24555
  # @param [String] fields
23597
24556
  # Selector specifying which fields to include in a partial response.
@@ -23631,7 +24590,7 @@ module Google
23631
24590
  # @param [String] project
23632
24591
  # Project ID for this request.
23633
24592
  # @param [String] resource
23634
- # Name of the resource for this request.
24593
+ # Name or id of the resource for this request.
23635
24594
  # @param [Google::Apis::ComputeAlpha::GlobalSetLabelsRequest] global_set_labels_request_object
23636
24595
  # @param [String] fields
23637
24596
  # Selector specifying which fields to include in a partial response.
@@ -23670,7 +24629,7 @@ module Google
23670
24629
  # @param [String] project
23671
24630
  # Project ID for this request.
23672
24631
  # @param [String] resource
23673
- # Name of the resource for this request.
24632
+ # Name or id of the resource for this request.
23674
24633
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
23675
24634
  # @param [String] fields
23676
24635
  # Selector specifying which fields to include in a partial response.
@@ -23987,7 +24946,7 @@ module Google
23987
24946
  # @param [String] project
23988
24947
  # Project ID for this request.
23989
24948
  # @param [String] resource
23990
- # Name of the resource for this request.
24949
+ # Name or id of the resource for this request.
23991
24950
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
23992
24951
  # @param [String] fields
23993
24952
  # Selector specifying which fields to include in a partial response.
@@ -24357,7 +25316,7 @@ module Google
24357
25316
  # @param [String] project
24358
25317
  # Project ID for this request.
24359
25318
  # @param [String] resource
24360
- # Name of the resource for this request.
25319
+ # Name or id of the resource for this request.
24361
25320
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
24362
25321
  # @param [String] fields
24363
25322
  # Selector specifying which fields to include in a partial response.
@@ -24615,7 +25574,7 @@ module Google
24615
25574
  # @param [String] region
24616
25575
  # The name of the region for this request.
24617
25576
  # @param [String] resource
24618
- # Name of the resource for this request.
25577
+ # Name or id of the resource for this request.
24619
25578
  # @param [String] fields
24620
25579
  # Selector specifying which fields to include in a partial response.
24621
25580
  # @param [String] quota_user
@@ -24846,10 +25805,9 @@ module Google
24846
25805
  end
24847
25806
 
24848
25807
  # Patches the specified subnetwork with the data included in the request. Only
24849
- # the following fields within the subnetwork resource can be specified in the
24850
- # request: secondary_ip_range, allow_subnet_cidr_routes_overlap and role. It is
24851
- # also mandatory to specify the current fingeprint of the subnetwork resource
24852
- # being patched.
25808
+ # certain fields can up updated with a patch request as indicated in the field
25809
+ # descriptions. You must specify the current fingeprint of the subnetwork
25810
+ # resource being patched.
24853
25811
  # @param [String] project
24854
25812
  # Project ID for this request.
24855
25813
  # @param [String] region
@@ -24919,7 +25877,7 @@ module Google
24919
25877
  # @param [String] region
24920
25878
  # The name of the region for this request.
24921
25879
  # @param [String] resource
24922
- # Name of the resource for this request.
25880
+ # Name or id of the resource for this request.
24923
25881
  # @param [Google::Apis::ComputeAlpha::RegionSetPolicyRequest] region_set_policy_request_object
24924
25882
  # @param [String] fields
24925
25883
  # Selector specifying which fields to include in a partial response.
@@ -25016,7 +25974,7 @@ module Google
25016
25974
  # @param [String] region
25017
25975
  # The name of the region for this request.
25018
25976
  # @param [String] resource
25019
- # Name of the resource for this request.
25977
+ # Name or id of the resource for this request.
25020
25978
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
25021
25979
  # @param [String] fields
25022
25980
  # Selector specifying which fields to include in a partial response.
@@ -25385,7 +26343,7 @@ module Google
25385
26343
  # @param [String] project
25386
26344
  # Project ID for this request.
25387
26345
  # @param [String] resource
25388
- # Name of the resource for this request.
26346
+ # Name or id of the resource for this request.
25389
26347
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
25390
26348
  # @param [String] fields
25391
26349
  # Selector specifying which fields to include in a partial response.
@@ -25911,7 +26869,7 @@ module Google
25911
26869
  # @param [String] project
25912
26870
  # Project ID for this request.
25913
26871
  # @param [String] resource
25914
- # Name of the resource for this request.
26872
+ # Name or id of the resource for this request.
25915
26873
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
25916
26874
  # @param [String] fields
25917
26875
  # Selector specifying which fields to include in a partial response.
@@ -26241,7 +27199,7 @@ module Google
26241
27199
  # @param [String] zone
26242
27200
  # The name of the zone for this request.
26243
27201
  # @param [String] resource
26244
- # Name of the resource for this request.
27202
+ # Name or id of the resource for this request.
26245
27203
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
26246
27204
  # @param [String] fields
26247
27205
  # Selector specifying which fields to include in a partial response.
@@ -26887,7 +27845,7 @@ module Google
26887
27845
  # @param [String] region
26888
27846
  # The name of the region for this request.
26889
27847
  # @param [String] resource
26890
- # Name of the resource for this request.
27848
+ # Name or id of the resource for this request.
26891
27849
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
26892
27850
  # @param [String] fields
26893
27851
  # Selector specifying which fields to include in a partial response.
@@ -27341,7 +28299,7 @@ module Google
27341
28299
  # @param [String] project
27342
28300
  # Project ID for this request.
27343
28301
  # @param [String] resource
27344
- # Name of the resource for this request.
28302
+ # Name or id of the resource for this request.
27345
28303
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
27346
28304
  # @param [String] fields
27347
28305
  # Selector specifying which fields to include in a partial response.
@@ -27688,7 +28646,7 @@ module Google
27688
28646
  # @param [String] project
27689
28647
  # Project ID for this request.
27690
28648
  # @param [String] resource
27691
- # Name of the resource for this request.
28649
+ # Name or id of the resource for this request.
27692
28650
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
27693
28651
  # @param [String] fields
27694
28652
  # Selector specifying which fields to include in a partial response.
@@ -28019,7 +28977,7 @@ module Google
28019
28977
  # @param [String] region
28020
28978
  # The region for this request.
28021
28979
  # @param [String] resource
28022
- # Name of the resource for this request.
28980
+ # Name or id of the resource for this request.
28023
28981
  # @param [Google::Apis::ComputeAlpha::RegionSetLabelsRequest] region_set_labels_request_object
28024
28982
  # @param [String] request_id
28025
28983
  # An optional request ID to identify requests. Specify a unique request ID so
@@ -28073,7 +29031,7 @@ module Google
28073
29031
  # @param [String] region
28074
29032
  # The name of the region for this request.
28075
29033
  # @param [String] resource
28076
- # Name of the resource for this request.
29034
+ # Name or id of the resource for this request.
28077
29035
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
28078
29036
  # @param [String] fields
28079
29037
  # Selector specifying which fields to include in a partial response.
@@ -28495,7 +29453,7 @@ module Google
28495
29453
  # @param [String] project
28496
29454
  # Project ID for this request.
28497
29455
  # @param [String] resource
28498
- # Name of the resource for this request.
29456
+ # Name or id of the resource for this request.
28499
29457
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
28500
29458
  # @param [String] fields
28501
29459
  # Selector specifying which fields to include in a partial response.
@@ -28916,7 +29874,7 @@ module Google
28916
29874
  # @param [String] region
28917
29875
  # The region for this request.
28918
29876
  # @param [String] resource
28919
- # Name of the resource for this request.
29877
+ # Name or id of the resource for this request.
28920
29878
  # @param [Google::Apis::ComputeAlpha::RegionSetLabelsRequest] region_set_labels_request_object
28921
29879
  # @param [String] request_id
28922
29880
  # An optional request ID to identify requests. Specify a unique request ID so
@@ -28970,7 +29928,7 @@ module Google
28970
29928
  # @param [String] region
28971
29929
  # The name of the region for this request.
28972
29930
  # @param [String] resource
28973
- # Name of the resource for this request.
29931
+ # Name or id of the resource for this request.
28974
29932
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
28975
29933
  # @param [String] fields
28976
29934
  # Selector specifying which fields to include in a partial response.
@@ -29302,7 +30260,7 @@ module Google
29302
30260
  # @param [String] region
29303
30261
  # The region for this request.
29304
30262
  # @param [String] resource
29305
- # Name of the resource for this request.
30263
+ # Name or id of the resource for this request.
29306
30264
  # @param [Google::Apis::ComputeAlpha::RegionSetLabelsRequest] region_set_labels_request_object
29307
30265
  # @param [String] request_id
29308
30266
  # An optional request ID to identify requests. Specify a unique request ID so
@@ -29356,7 +30314,7 @@ module Google
29356
30314
  # @param [String] region
29357
30315
  # The name of the region for this request.
29358
30316
  # @param [String] resource
29359
- # Name of the resource for this request.
30317
+ # Name or id of the resource for this request.
29360
30318
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
29361
30319
  # @param [String] fields
29362
30320
  # Selector specifying which fields to include in a partial response.