google-cloud-compute-v1 1.10.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (189) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +14 -14
  3. data/lib/google/cloud/compute/v1/accelerator_types/rest/service_stub.rb +12 -9
  4. data/lib/google/cloud/compute/v1/addresses/rest/client.rb +20 -20
  5. data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +24 -18
  6. data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +23 -23
  7. data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +28 -21
  8. data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +25 -25
  9. data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +36 -27
  10. data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +43 -43
  11. data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +56 -42
  12. data/lib/google/cloud/compute/v1/compute_pb.rb +145 -0
  13. data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +15 -15
  14. data/lib/google/cloud/compute/v1/disk_types/rest/service_stub.rb +12 -9
  15. data/lib/google/cloud/compute/v1/disks/rest/client.rb +131 -40
  16. data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +114 -39
  17. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +20 -20
  18. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/service_stub.rb +24 -18
  19. data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +56 -56
  20. data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +72 -54
  21. data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +18 -18
  22. data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +24 -18
  23. data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +24 -24
  24. data/lib/google/cloud/compute/v1/forwarding_rules/rest/service_stub.rb +32 -24
  25. data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +17 -17
  26. data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +20 -15
  27. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +20 -20
  28. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/service_stub.rb +28 -21
  29. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +23 -23
  30. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/service_stub.rb +28 -21
  31. data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +22 -22
  32. data/lib/google/cloud/compute/v1/global_operations/rest/service_stub.rb +20 -15
  33. data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +14 -14
  34. data/lib/google/cloud/compute/v1/global_organization_operations/rest/service_stub.rb +12 -9
  35. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +16 -16
  36. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/service_stub.rb +20 -15
  37. data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +23 -23
  38. data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +28 -21
  39. data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +6 -6
  40. data/lib/google/cloud/compute/v1/image_family_views/rest/service_stub.rb +4 -3
  41. data/lib/google/cloud/compute/v1/images/rest/client.rb +39 -39
  42. data/lib/google/cloud/compute/v1/images/rest/service_stub.rb +44 -33
  43. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +55 -55
  44. data/lib/google/cloud/compute/v1/instance_group_managers/rest/service_stub.rb +80 -60
  45. data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +28 -28
  46. data/lib/google/cloud/compute/v1/instance_groups/rest/service_stub.rb +36 -27
  47. data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +117 -30
  48. data/lib/google/cloud/compute/v1/instance_templates/rest/service_stub.rb +87 -21
  49. data/lib/google/cloud/compute/v1/instances/rest/client.rb +207 -119
  50. data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +242 -135
  51. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +22 -22
  52. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/service_stub.rb +28 -21
  53. data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +10 -10
  54. data/lib/google/cloud/compute/v1/interconnect_locations/rest/service_stub.rb +8 -6
  55. data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +22 -22
  56. data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +28 -21
  57. data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +10 -10
  58. data/lib/google/cloud/compute/v1/license_codes/rest/service_stub.rb +8 -6
  59. data/lib/google/cloud/compute/v1/licenses/rest/client.rb +26 -26
  60. data/lib/google/cloud/compute/v1/licenses/rest/service_stub.rb +28 -21
  61. data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +27 -27
  62. data/lib/google/cloud/compute/v1/machine_images/rest/service_stub.rb +28 -21
  63. data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +15 -15
  64. data/lib/google/cloud/compute/v1/machine_types/rest/service_stub.rb +12 -9
  65. data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +30 -30
  66. data/lib/google/cloud/compute/v1/network_attachments/rest/service_stub.rb +32 -24
  67. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +16 -16
  68. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/service_stub.rb +20 -15
  69. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +31 -31
  70. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/service_stub.rb +36 -27
  71. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +48 -48
  72. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/service_stub.rb +64 -48
  73. data/lib/google/cloud/compute/v1/networks/rest/client.rb +33 -33
  74. data/lib/google/cloud/compute/v1/networks/rest/service_stub.rb +44 -33
  75. data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +130 -42
  76. data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +114 -39
  77. data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +31 -31
  78. data/lib/google/cloud/compute/v1/node_templates/rest/service_stub.rb +32 -24
  79. data/lib/google/cloud/compute/v1/node_types/rest/client.rb +15 -15
  80. data/lib/google/cloud/compute/v1/node_types/rest/service_stub.rb +12 -9
  81. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +24 -24
  82. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/service_stub.rb +28 -21
  83. data/lib/google/cloud/compute/v1/projects/rest/client.rb +36 -36
  84. data/lib/google/cloud/compute/v1/projects/rest/service_stub.rb +52 -39
  85. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +16 -16
  86. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +20 -15
  87. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +20 -20
  88. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +24 -18
  89. data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +18 -18
  90. data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +24 -18
  91. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +30 -30
  92. data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +36 -27
  93. data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +19 -19
  94. data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +20 -15
  95. data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +11 -11
  96. data/lib/google/cloud/compute/v1/region_disk_types/rest/service_stub.rb +8 -6
  97. data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +126 -35
  98. data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +110 -36
  99. data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +16 -16
  100. data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +20 -15
  101. data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +19 -19
  102. data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +24 -18
  103. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +50 -50
  104. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/service_stub.rb +76 -57
  105. data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +16 -16
  106. data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +16 -12
  107. data/lib/google/cloud/compute/v1/region_instance_templates/credentials.rb +52 -0
  108. data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +624 -0
  109. data/lib/google/cloud/compute/v1/region_instance_templates/rest/service_stub.rb +291 -0
  110. data/lib/google/cloud/compute/v1/region_instance_templates/rest.rb +51 -0
  111. data/lib/google/cloud/compute/v1/region_instance_templates.rb +47 -0
  112. data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +4 -4
  113. data/lib/google/cloud/compute/v1/region_instances/rest/service_stub.rb +4 -3
  114. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +15 -15
  115. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +16 -12
  116. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +52 -52
  117. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/service_stub.rb +68 -51
  118. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +14 -14
  119. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +16 -12
  120. data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +18 -18
  121. data/lib/google/cloud/compute/v1/region_operations/rest/service_stub.rb +16 -12
  122. data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +16 -16
  123. data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +20 -15
  124. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +14 -14
  125. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/service_stub.rb +16 -12
  126. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +20 -20
  127. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/service_stub.rb +24 -18
  128. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +17 -17
  129. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/service_stub.rb +20 -15
  130. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +21 -21
  131. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +28 -21
  132. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +14 -14
  133. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/service_stub.rb +16 -12
  134. data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +23 -23
  135. data/lib/google/cloud/compute/v1/region_url_maps/rest/service_stub.rb +28 -21
  136. data/lib/google/cloud/compute/v1/regions/rest/client.rb +11 -11
  137. data/lib/google/cloud/compute/v1/regions/rest/service_stub.rb +8 -6
  138. data/lib/google/cloud/compute/v1/reservations/rest/client.rb +34 -34
  139. data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +40 -30
  140. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +30 -30
  141. data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +32 -24
  142. data/lib/google/cloud/compute/v1/rest.rb +1 -0
  143. data/lib/google/cloud/compute/v1/routers/rest/client.rb +35 -35
  144. data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +40 -30
  145. data/lib/google/cloud/compute/v1/routes/rest/client.rb +15 -15
  146. data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +16 -12
  147. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +36 -36
  148. data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +48 -36
  149. data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +32 -32
  150. data/lib/google/cloud/compute/v1/service_attachments/rest/service_stub.rb +36 -27
  151. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +29 -29
  152. data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +32 -24
  153. data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +19 -19
  154. data/lib/google/cloud/compute/v1/ssl_certificates/rest/service_stub.rb +20 -15
  155. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +25 -25
  156. data/lib/google/cloud/compute/v1/ssl_policies/rest/service_stub.rb +28 -21
  157. data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +41 -41
  158. data/lib/google/cloud/compute/v1/subnetworks/rest/service_stub.rb +48 -36
  159. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +16 -16
  160. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/service_stub.rb +20 -15
  161. data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +23 -23
  162. data/lib/google/cloud/compute/v1/target_http_proxies/rest/service_stub.rb +28 -21
  163. data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +31 -31
  164. data/lib/google/cloud/compute/v1/target_https_proxies/rest/service_stub.rb +44 -33
  165. data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +19 -19
  166. data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +20 -15
  167. data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +33 -33
  168. data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +44 -33
  169. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +25 -25
  170. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +36 -27
  171. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +23 -23
  172. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +28 -21
  173. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +21 -21
  174. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/service_stub.rb +24 -18
  175. data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +29 -29
  176. data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +36 -27
  177. data/lib/google/cloud/compute/v1/version.rb +1 -1
  178. data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +29 -29
  179. data/lib/google/cloud/compute/v1/vpn_gateways/rest/service_stub.rb +32 -24
  180. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +21 -21
  181. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/service_stub.rb +24 -18
  182. data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +18 -18
  183. data/lib/google/cloud/compute/v1/zone_operations/rest/service_stub.rb +16 -12
  184. data/lib/google/cloud/compute/v1/zones/rest/client.rb +11 -11
  185. data/lib/google/cloud/compute/v1/zones/rest/service_stub.rb +8 -6
  186. data/lib/google/cloud/compute/v1.rb +1 -0
  187. data/proto_docs/google/api/client.rb +9 -3
  188. data/proto_docs/google/cloud/compute/v1/compute.rb +1542 -1157
  189. metadata +11 -6
@@ -48,9 +48,9 @@ module Google
48
48
  # @param options [::Gapic::CallOptions]
49
49
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
50
50
  #
51
- # @yield [result, response] Access the result along with the Faraday response object
51
+ # @yield [result, operation] Access the result along with the TransportOperation object
52
52
  # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
53
- # @yieldparam response [::Faraday::Response]
53
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
54
54
  #
55
55
  # @return [::Google::Cloud::Compute::V1::Operation]
56
56
  # A result object deserialized from the server's reply
@@ -71,9 +71,10 @@ module Google
71
71
  params: query_string_params,
72
72
  options: options
73
73
  )
74
+ operation = ::Gapic::Rest::TransportOperation.new response
74
75
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
75
76
 
76
- yield result, response if block_given?
77
+ yield result, operation if block_given?
77
78
  result
78
79
  end
79
80
 
@@ -85,9 +86,9 @@ module Google
85
86
  # @param options [::Gapic::CallOptions]
86
87
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
87
88
  #
88
- # @yield [result, response] Access the result along with the Faraday response object
89
+ # @yield [result, operation] Access the result along with the TransportOperation object
89
90
  # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
90
- # @yieldparam response [::Faraday::Response]
91
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
91
92
  #
92
93
  # @return [::Google::Cloud::Compute::V1::Operation]
93
94
  # A result object deserialized from the server's reply
@@ -108,9 +109,10 @@ module Google
108
109
  params: query_string_params,
109
110
  options: options
110
111
  )
112
+ operation = ::Gapic::Rest::TransportOperation.new response
111
113
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
112
114
 
113
- yield result, response if block_given?
115
+ yield result, operation if block_given?
114
116
  result
115
117
  end
116
118
 
@@ -122,9 +124,9 @@ module Google
122
124
  # @param options [::Gapic::CallOptions]
123
125
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
124
126
  #
125
- # @yield [result, response] Access the result along with the Faraday response object
127
+ # @yield [result, operation] Access the result along with the TransportOperation object
126
128
  # @yieldparam result [::Google::Cloud::Compute::V1::Network]
127
- # @yieldparam response [::Faraday::Response]
129
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
128
130
  #
129
131
  # @return [::Google::Cloud::Compute::V1::Network]
130
132
  # A result object deserialized from the server's reply
@@ -145,9 +147,10 @@ module Google
145
147
  params: query_string_params,
146
148
  options: options
147
149
  )
150
+ operation = ::Gapic::Rest::TransportOperation.new response
148
151
  result = ::Google::Cloud::Compute::V1::Network.decode_json response.body, ignore_unknown_fields: true
149
152
 
150
- yield result, response if block_given?
153
+ yield result, operation if block_given?
151
154
  result
152
155
  end
153
156
 
@@ -159,9 +162,9 @@ module Google
159
162
  # @param options [::Gapic::CallOptions]
160
163
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
161
164
  #
162
- # @yield [result, response] Access the result along with the Faraday response object
165
+ # @yield [result, operation] Access the result along with the TransportOperation object
163
166
  # @yieldparam result [::Google::Cloud::Compute::V1::NetworksGetEffectiveFirewallsResponse]
164
- # @yieldparam response [::Faraday::Response]
167
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
165
168
  #
166
169
  # @return [::Google::Cloud::Compute::V1::NetworksGetEffectiveFirewallsResponse]
167
170
  # A result object deserialized from the server's reply
@@ -182,9 +185,10 @@ module Google
182
185
  params: query_string_params,
183
186
  options: options
184
187
  )
188
+ operation = ::Gapic::Rest::TransportOperation.new response
185
189
  result = ::Google::Cloud::Compute::V1::NetworksGetEffectiveFirewallsResponse.decode_json response.body, ignore_unknown_fields: true
186
190
 
187
- yield result, response if block_given?
191
+ yield result, operation if block_given?
188
192
  result
189
193
  end
190
194
 
@@ -196,9 +200,9 @@ module Google
196
200
  # @param options [::Gapic::CallOptions]
197
201
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
198
202
  #
199
- # @yield [result, response] Access the result along with the Faraday response object
203
+ # @yield [result, operation] Access the result along with the TransportOperation object
200
204
  # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
201
- # @yieldparam response [::Faraday::Response]
205
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
202
206
  #
203
207
  # @return [::Google::Cloud::Compute::V1::Operation]
204
208
  # A result object deserialized from the server's reply
@@ -219,9 +223,10 @@ module Google
219
223
  params: query_string_params,
220
224
  options: options
221
225
  )
226
+ operation = ::Gapic::Rest::TransportOperation.new response
222
227
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
223
228
 
224
- yield result, response if block_given?
229
+ yield result, operation if block_given?
225
230
  result
226
231
  end
227
232
 
@@ -233,9 +238,9 @@ module Google
233
238
  # @param options [::Gapic::CallOptions]
234
239
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
235
240
  #
236
- # @yield [result, response] Access the result along with the Faraday response object
241
+ # @yield [result, operation] Access the result along with the TransportOperation object
237
242
  # @yieldparam result [::Google::Cloud::Compute::V1::NetworkList]
238
- # @yieldparam response [::Faraday::Response]
243
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
239
244
  #
240
245
  # @return [::Google::Cloud::Compute::V1::NetworkList]
241
246
  # A result object deserialized from the server's reply
@@ -256,9 +261,10 @@ module Google
256
261
  params: query_string_params,
257
262
  options: options
258
263
  )
264
+ operation = ::Gapic::Rest::TransportOperation.new response
259
265
  result = ::Google::Cloud::Compute::V1::NetworkList.decode_json response.body, ignore_unknown_fields: true
260
266
 
261
- yield result, response if block_given?
267
+ yield result, operation if block_given?
262
268
  result
263
269
  end
264
270
 
@@ -270,9 +276,9 @@ module Google
270
276
  # @param options [::Gapic::CallOptions]
271
277
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
272
278
  #
273
- # @yield [result, response] Access the result along with the Faraday response object
279
+ # @yield [result, operation] Access the result along with the TransportOperation object
274
280
  # @yieldparam result [::Google::Cloud::Compute::V1::ExchangedPeeringRoutesList]
275
- # @yieldparam response [::Faraday::Response]
281
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
276
282
  #
277
283
  # @return [::Google::Cloud::Compute::V1::ExchangedPeeringRoutesList]
278
284
  # A result object deserialized from the server's reply
@@ -293,9 +299,10 @@ module Google
293
299
  params: query_string_params,
294
300
  options: options
295
301
  )
302
+ operation = ::Gapic::Rest::TransportOperation.new response
296
303
  result = ::Google::Cloud::Compute::V1::ExchangedPeeringRoutesList.decode_json response.body, ignore_unknown_fields: true
297
304
 
298
- yield result, response if block_given?
305
+ yield result, operation if block_given?
299
306
  result
300
307
  end
301
308
 
@@ -307,9 +314,9 @@ module Google
307
314
  # @param options [::Gapic::CallOptions]
308
315
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
309
316
  #
310
- # @yield [result, response] Access the result along with the Faraday response object
317
+ # @yield [result, operation] Access the result along with the TransportOperation object
311
318
  # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
312
- # @yieldparam response [::Faraday::Response]
319
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
313
320
  #
314
321
  # @return [::Google::Cloud::Compute::V1::Operation]
315
322
  # A result object deserialized from the server's reply
@@ -330,9 +337,10 @@ module Google
330
337
  params: query_string_params,
331
338
  options: options
332
339
  )
340
+ operation = ::Gapic::Rest::TransportOperation.new response
333
341
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
334
342
 
335
- yield result, response if block_given?
343
+ yield result, operation if block_given?
336
344
  result
337
345
  end
338
346
 
@@ -344,9 +352,9 @@ module Google
344
352
  # @param options [::Gapic::CallOptions]
345
353
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
346
354
  #
347
- # @yield [result, response] Access the result along with the Faraday response object
355
+ # @yield [result, operation] Access the result along with the TransportOperation object
348
356
  # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
349
- # @yieldparam response [::Faraday::Response]
357
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
350
358
  #
351
359
  # @return [::Google::Cloud::Compute::V1::Operation]
352
360
  # A result object deserialized from the server's reply
@@ -367,9 +375,10 @@ module Google
367
375
  params: query_string_params,
368
376
  options: options
369
377
  )
378
+ operation = ::Gapic::Rest::TransportOperation.new response
370
379
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
371
380
 
372
- yield result, response if block_given?
381
+ yield result, operation if block_given?
373
382
  result
374
383
  end
375
384
 
@@ -381,9 +390,9 @@ module Google
381
390
  # @param options [::Gapic::CallOptions]
382
391
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
383
392
  #
384
- # @yield [result, response] Access the result along with the Faraday response object
393
+ # @yield [result, operation] Access the result along with the TransportOperation object
385
394
  # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
386
- # @yieldparam response [::Faraday::Response]
395
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
387
396
  #
388
397
  # @return [::Google::Cloud::Compute::V1::Operation]
389
398
  # A result object deserialized from the server's reply
@@ -404,9 +413,10 @@ module Google
404
413
  params: query_string_params,
405
414
  options: options
406
415
  )
416
+ operation = ::Gapic::Rest::TransportOperation.new response
407
417
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
408
418
 
409
- yield result, response if block_given?
419
+ yield result, operation if block_given?
410
420
  result
411
421
  end
412
422
 
@@ -418,9 +428,9 @@ module Google
418
428
  # @param options [::Gapic::CallOptions]
419
429
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
420
430
  #
421
- # @yield [result, response] Access the result along with the Faraday response object
431
+ # @yield [result, operation] Access the result along with the TransportOperation object
422
432
  # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
423
- # @yieldparam response [::Faraday::Response]
433
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
424
434
  #
425
435
  # @return [::Google::Cloud::Compute::V1::Operation]
426
436
  # A result object deserialized from the server's reply
@@ -441,9 +451,10 @@ module Google
441
451
  params: query_string_params,
442
452
  options: options
443
453
  )
454
+ operation = ::Gapic::Rest::TransportOperation.new response
444
455
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
445
456
 
446
- yield result, response if block_given?
457
+ yield result, operation if block_given?
447
458
  result
448
459
  end
449
460
 
@@ -101,6 +101,8 @@ module Google
101
101
 
102
102
  default_config.rpcs.set_node_template.timeout = 600.0
103
103
 
104
+ default_config.rpcs.simulate_maintenance_event.timeout = 600.0
105
+
104
106
  default_config.rpcs.test_iam_permissions.timeout = 600.0
105
107
 
106
108
  default_config
@@ -213,9 +215,9 @@ module Google
213
215
  # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
214
216
  # @param zone [::String]
215
217
  # The name of the zone for this request.
216
- # @yield [result, response] Access the result along with the Faraday response object
218
+ # @yield [result, operation] Access the result along with the TransportOperation object
217
219
  # @yieldparam result [::Gapic::GenericLRO::Operation]
218
- # @yieldparam response [::Faraday::Response]
220
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
219
221
  #
220
222
  # @return [::Gapic::GenericLRO::Operation]
221
223
  #
@@ -296,9 +298,9 @@ module Google
296
298
  # Project ID for this request.
297
299
  # @param return_partial_success [::Boolean]
298
300
  # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
299
- # @yield [result, response] Access the result along with the Faraday response object
301
+ # @yield [result, operation] Access the result along with the TransportOperation object
300
302
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::NodeGroupsScopedList>]
301
- # @yieldparam response [::Faraday::Response]
303
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
302
304
  #
303
305
  # @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::NodeGroupsScopedList>]
304
306
  #
@@ -330,9 +332,9 @@ module Google
330
332
  metadata: @config.metadata,
331
333
  retry_policy: @config.retry_policy
332
334
 
333
- @node_groups_stub.aggregated_list request, options do |result, response|
335
+ @node_groups_stub.aggregated_list request, options do |result, operation|
334
336
  result = ::Gapic::Rest::PagedEnumerable.new @node_groups_stub, :aggregated_list, "items", request, result, options
335
- yield result, response if block_given?
337
+ yield result, operation if block_given?
336
338
  return result
337
339
  end
338
340
  rescue ::Gapic::Rest::Error => e
@@ -365,9 +367,9 @@ module Google
365
367
  # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
366
368
  # @param zone [::String]
367
369
  # The name of the zone for this request.
368
- # @yield [result, response] Access the result along with the Faraday response object
370
+ # @yield [result, operation] Access the result along with the TransportOperation object
369
371
  # @yieldparam result [::Gapic::GenericLRO::Operation]
370
- # @yieldparam response [::Faraday::Response]
372
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
371
373
  #
372
374
  # @return [::Gapic::GenericLRO::Operation]
373
375
  #
@@ -444,9 +446,9 @@ module Google
444
446
  # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
445
447
  # @param zone [::String]
446
448
  # The name of the zone for this request.
447
- # @yield [result, response] Access the result along with the Faraday response object
449
+ # @yield [result, operation] Access the result along with the TransportOperation object
448
450
  # @yieldparam result [::Gapic::GenericLRO::Operation]
449
- # @yieldparam response [::Faraday::Response]
451
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
450
452
  #
451
453
  # @return [::Gapic::GenericLRO::Operation]
452
454
  #
@@ -519,9 +521,9 @@ module Google
519
521
  # Project ID for this request.
520
522
  # @param zone [::String]
521
523
  # The name of the zone for this request.
522
- # @yield [result, response] Access the result along with the Faraday response object
524
+ # @yield [result, operation] Access the result along with the TransportOperation object
523
525
  # @yieldparam result [::Google::Cloud::Compute::V1::NodeGroup]
524
- # @yieldparam response [::Faraday::Response]
526
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
525
527
  #
526
528
  # @return [::Google::Cloud::Compute::V1::NodeGroup]
527
529
  #
@@ -553,8 +555,8 @@ module Google
553
555
  metadata: @config.metadata,
554
556
  retry_policy: @config.retry_policy
555
557
 
556
- @node_groups_stub.get request, options do |result, response|
557
- yield result, response if block_given?
558
+ @node_groups_stub.get request, options do |result, operation|
559
+ yield result, operation if block_given?
558
560
  return result
559
561
  end
560
562
  rescue ::Gapic::Rest::Error => e
@@ -587,9 +589,9 @@ module Google
587
589
  # Name or id of the resource for this request.
588
590
  # @param zone [::String]
589
591
  # The name of the zone for this request.
590
- # @yield [result, response] Access the result along with the Faraday response object
592
+ # @yield [result, operation] Access the result along with the TransportOperation object
591
593
  # @yieldparam result [::Google::Cloud::Compute::V1::Policy]
592
- # @yieldparam response [::Faraday::Response]
594
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
593
595
  #
594
596
  # @return [::Google::Cloud::Compute::V1::Policy]
595
597
  #
@@ -621,8 +623,8 @@ module Google
621
623
  metadata: @config.metadata,
622
624
  retry_policy: @config.retry_policy
623
625
 
624
- @node_groups_stub.get_iam_policy request, options do |result, response|
625
- yield result, response if block_given?
626
+ @node_groups_stub.get_iam_policy request, options do |result, operation|
627
+ yield result, operation if block_given?
626
628
  return result
627
629
  end
628
630
  rescue ::Gapic::Rest::Error => e
@@ -657,9 +659,9 @@ module Google
657
659
  # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
658
660
  # @param zone [::String]
659
661
  # The name of the zone for this request.
660
- # @yield [result, response] Access the result along with the Faraday response object
662
+ # @yield [result, operation] Access the result along with the TransportOperation object
661
663
  # @yieldparam result [::Gapic::GenericLRO::Operation]
662
- # @yieldparam response [::Faraday::Response]
664
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
663
665
  #
664
666
  # @return [::Gapic::GenericLRO::Operation]
665
667
  #
@@ -740,9 +742,9 @@ module Google
740
742
  # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
741
743
  # @param zone [::String]
742
744
  # The name of the zone for this request.
743
- # @yield [result, response] Access the result along with the Faraday response object
745
+ # @yield [result, operation] Access the result along with the TransportOperation object
744
746
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::NodeGroup>]
745
- # @yieldparam response [::Faraday::Response]
747
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
746
748
  #
747
749
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::NodeGroup>]
748
750
  #
@@ -774,9 +776,9 @@ module Google
774
776
  metadata: @config.metadata,
775
777
  retry_policy: @config.retry_policy
776
778
 
777
- @node_groups_stub.list request, options do |result, response|
779
+ @node_groups_stub.list request, options do |result, operation|
778
780
  result = ::Gapic::Rest::PagedEnumerable.new @node_groups_stub, :list, "items", request, result, options
779
- yield result, response if block_given?
781
+ yield result, operation if block_given?
780
782
  return result
781
783
  end
782
784
  rescue ::Gapic::Rest::Error => e
@@ -817,9 +819,9 @@ module Google
817
819
  # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
818
820
  # @param zone [::String]
819
821
  # The name of the zone for this request.
820
- # @yield [result, response] Access the result along with the Faraday response object
822
+ # @yield [result, operation] Access the result along with the TransportOperation object
821
823
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::NodeGroupNode>]
822
- # @yieldparam response [::Faraday::Response]
824
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
823
825
  #
824
826
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::NodeGroupNode>]
825
827
  #
@@ -851,9 +853,9 @@ module Google
851
853
  metadata: @config.metadata,
852
854
  retry_policy: @config.retry_policy
853
855
 
854
- @node_groups_stub.list_nodes request, options do |result, response|
856
+ @node_groups_stub.list_nodes request, options do |result, operation|
855
857
  result = ::Gapic::Rest::PagedEnumerable.new @node_groups_stub, :list_nodes, "items", request, result, options
856
- yield result, response if block_given?
858
+ yield result, operation if block_given?
857
859
  return result
858
860
  end
859
861
  rescue ::Gapic::Rest::Error => e
@@ -888,9 +890,9 @@ module Google
888
890
  # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
889
891
  # @param zone [::String]
890
892
  # The name of the zone for this request.
891
- # @yield [result, response] Access the result along with the Faraday response object
893
+ # @yield [result, operation] Access the result along with the TransportOperation object
892
894
  # @yieldparam result [::Gapic::GenericLRO::Operation]
893
- # @yieldparam response [::Faraday::Response]
895
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
894
896
  #
895
897
  # @return [::Gapic::GenericLRO::Operation]
896
898
  #
@@ -965,9 +967,9 @@ module Google
965
967
  # The name of the zone for this request.
966
968
  # @param zone_set_policy_request_resource [::Google::Cloud::Compute::V1::ZoneSetPolicyRequest, ::Hash]
967
969
  # The body resource for this request
968
- # @yield [result, response] Access the result along with the Faraday response object
970
+ # @yield [result, operation] Access the result along with the TransportOperation object
969
971
  # @yieldparam result [::Google::Cloud::Compute::V1::Policy]
970
- # @yieldparam response [::Faraday::Response]
972
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
971
973
  #
972
974
  # @return [::Google::Cloud::Compute::V1::Policy]
973
975
  #
@@ -999,8 +1001,8 @@ module Google
999
1001
  metadata: @config.metadata,
1000
1002
  retry_policy: @config.retry_policy
1001
1003
 
1002
- @node_groups_stub.set_iam_policy request, options do |result, response|
1003
- yield result, response if block_given?
1004
+ @node_groups_stub.set_iam_policy request, options do |result, operation|
1005
+ yield result, operation if block_given?
1004
1006
  return result
1005
1007
  end
1006
1008
  rescue ::Gapic::Rest::Error => e
@@ -1035,9 +1037,9 @@ module Google
1035
1037
  # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
1036
1038
  # @param zone [::String]
1037
1039
  # The name of the zone for this request.
1038
- # @yield [result, response] Access the result along with the Faraday response object
1040
+ # @yield [result, operation] Access the result along with the TransportOperation object
1039
1041
  # @yieldparam result [::Gapic::GenericLRO::Operation]
1040
- # @yieldparam response [::Faraday::Response]
1042
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1041
1043
  #
1042
1044
  # @return [::Gapic::GenericLRO::Operation]
1043
1045
  #
@@ -1086,6 +1088,85 @@ module Google
1086
1088
  raise ::Google::Cloud::Error.from_error(e)
1087
1089
  end
1088
1090
 
1091
+ ##
1092
+ # Simulates maintenance event on specified nodes from the node group.
1093
+ #
1094
+ # @overload simulate_maintenance_event(request, options = nil)
1095
+ # Pass arguments to `simulate_maintenance_event` via a request object, either of type
1096
+ # {::Google::Cloud::Compute::V1::SimulateMaintenanceEventNodeGroupRequest} or an equivalent Hash.
1097
+ #
1098
+ # @param request [::Google::Cloud::Compute::V1::SimulateMaintenanceEventNodeGroupRequest, ::Hash]
1099
+ # A request object representing the call parameters. Required. To specify no
1100
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1101
+ # @param options [::Gapic::CallOptions, ::Hash]
1102
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1103
+ #
1104
+ # @overload simulate_maintenance_event(node_group: nil, node_groups_simulate_maintenance_event_request_resource: nil, project: nil, request_id: nil, zone: nil)
1105
+ # Pass arguments to `simulate_maintenance_event` via keyword arguments. Note that at
1106
+ # least one keyword argument is required. To specify no parameters, or to keep all
1107
+ # the default parameter values, pass an empty Hash as a request object (see above).
1108
+ #
1109
+ # @param node_group [::String]
1110
+ # Name of the NodeGroup resource whose nodes will go under maintenance simulation.
1111
+ # @param node_groups_simulate_maintenance_event_request_resource [::Google::Cloud::Compute::V1::NodeGroupsSimulateMaintenanceEventRequest, ::Hash]
1112
+ # The body resource for this request
1113
+ # @param project [::String]
1114
+ # Project ID for this request.
1115
+ # @param request_id [::String]
1116
+ # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
1117
+ # @param zone [::String]
1118
+ # The name of the zone for this request.
1119
+ # @yield [result, operation] Access the result along with the TransportOperation object
1120
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
1121
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1122
+ #
1123
+ # @return [::Gapic::GenericLRO::Operation]
1124
+ #
1125
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1126
+ def simulate_maintenance_event request, options = nil
1127
+ raise ::ArgumentError, "request must be provided" if request.nil?
1128
+
1129
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::SimulateMaintenanceEventNodeGroupRequest
1130
+
1131
+ # Converts hash and nil to an options object
1132
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1133
+
1134
+ # Customize the options with defaults
1135
+ call_metadata = @config.rpcs.simulate_maintenance_event.metadata.to_h
1136
+
1137
+ # Set x-goog-api-client and x-goog-user-project headers
1138
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1139
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1140
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1141
+ transports_version_send: [:rest]
1142
+
1143
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1144
+
1145
+ options.apply_defaults timeout: @config.rpcs.simulate_maintenance_event.timeout,
1146
+ metadata: call_metadata,
1147
+ retry_policy: @config.rpcs.simulate_maintenance_event.retry_policy
1148
+
1149
+ options.apply_defaults timeout: @config.timeout,
1150
+ metadata: @config.metadata,
1151
+ retry_policy: @config.retry_policy
1152
+
1153
+ @node_groups_stub.simulate_maintenance_event request, options do |result, response|
1154
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
1155
+ operation: result,
1156
+ client: zone_operations,
1157
+ request_values: {
1158
+ "project" => request.project,
1159
+ "zone" => request.zone
1160
+ },
1161
+ options: options
1162
+ )
1163
+ yield result, response if block_given?
1164
+ return result
1165
+ end
1166
+ rescue ::Gapic::Rest::Error => e
1167
+ raise ::Google::Cloud::Error.from_error(e)
1168
+ end
1169
+
1089
1170
  ##
1090
1171
  # Returns permissions that a caller has on the specified resource.
1091
1172
  #
@@ -1112,9 +1193,9 @@ module Google
1112
1193
  # The body resource for this request
1113
1194
  # @param zone [::String]
1114
1195
  # The name of the zone for this request.
1115
- # @yield [result, response] Access the result along with the Faraday response object
1196
+ # @yield [result, operation] Access the result along with the TransportOperation object
1116
1197
  # @yieldparam result [::Google::Cloud::Compute::V1::TestPermissionsResponse]
1117
- # @yieldparam response [::Faraday::Response]
1198
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1118
1199
  #
1119
1200
  # @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
1120
1201
  #
@@ -1146,8 +1227,8 @@ module Google
1146
1227
  metadata: @config.metadata,
1147
1228
  retry_policy: @config.retry_policy
1148
1229
 
1149
- @node_groups_stub.test_iam_permissions request, options do |result, response|
1150
- yield result, response if block_given?
1230
+ @node_groups_stub.test_iam_permissions request, options do |result, operation|
1231
+ yield result, operation if block_given?
1151
1232
  return result
1152
1233
  end
1153
1234
  rescue ::Gapic::Rest::Error => e
@@ -1192,9 +1273,9 @@ module Google
1192
1273
  # * (`String`) The path to a service account key file in JSON format
1193
1274
  # * (`Hash`) A service account key as a Hash
1194
1275
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1195
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1276
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1196
1277
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1197
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1278
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1198
1279
  # * (`nil`) indicating no credentials
1199
1280
  # @return [::Object]
1200
1281
  # @!attribute [rw] scope
@@ -1338,6 +1419,11 @@ module Google
1338
1419
  #
1339
1420
  attr_reader :set_node_template
1340
1421
  ##
1422
+ # RPC-specific configuration for `simulate_maintenance_event`
1423
+ # @return [::Gapic::Config::Method]
1424
+ #
1425
+ attr_reader :simulate_maintenance_event
1426
+ ##
1341
1427
  # RPC-specific configuration for `test_iam_permissions`
1342
1428
  # @return [::Gapic::Config::Method]
1343
1429
  #
@@ -1369,6 +1455,8 @@ module Google
1369
1455
  @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
1370
1456
  set_node_template_config = parent_rpcs.set_node_template if parent_rpcs.respond_to? :set_node_template
1371
1457
  @set_node_template = ::Gapic::Config::Method.new set_node_template_config
1458
+ simulate_maintenance_event_config = parent_rpcs.simulate_maintenance_event if parent_rpcs.respond_to? :simulate_maintenance_event
1459
+ @simulate_maintenance_event = ::Gapic::Config::Method.new simulate_maintenance_event_config
1372
1460
  test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
1373
1461
  @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
1374
1462