google-cloud-compute-v1 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (244) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +1 -1
  3. data/AUTHENTICATION.md +12 -12
  4. data/README.md +4 -30
  5. data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +123 -66
  6. data/lib/google/cloud/compute/v1/accelerator_types/rest/service_stub.rb +188 -0
  7. data/lib/google/cloud/compute/v1/accelerator_types/rest.rb +0 -2
  8. data/lib/google/cloud/compute/v1/addresses/rest/client.rb +166 -96
  9. data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +279 -0
  10. data/lib/google/cloud/compute/v1/addresses/rest.rb +0 -2
  11. data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +210 -128
  12. data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +373 -0
  13. data/lib/google/cloud/compute/v1/autoscalers/rest.rb +0 -2
  14. data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +228 -143
  15. data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +413 -0
  16. data/lib/google/cloud/compute/v1/backend_buckets/rest.rb +0 -2
  17. data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +294 -187
  18. data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +553 -0
  19. data/lib/google/cloud/compute/v1/backend_services/rest.rb +0 -2
  20. data/lib/google/cloud/compute/v1/compute_pb.rb +816 -135
  21. data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +123 -66
  22. data/lib/google/cloud/compute/v1/disk_types/rest/service_stub.rb +188 -0
  23. data/lib/google/cloud/compute/v1/disk_types/rest.rb +0 -2
  24. data/lib/google/cloud/compute/v1/disks/rest/client.rb +334 -213
  25. data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +644 -0
  26. data/lib/google/cloud/compute/v1/disks/rest.rb +0 -2
  27. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +180 -107
  28. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/service_stub.rb +317 -0
  29. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest.rb +0 -2
  30. data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +463 -280
  31. data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +869 -0
  32. data/lib/google/cloud/compute/v1/firewall_policies/rest.rb +0 -2
  33. data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +185 -113
  34. data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +321 -0
  35. data/lib/google/cloud/compute/v1/firewalls/rest.rb +0 -2
  36. data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +292 -127
  37. data/lib/google/cloud/compute/v1/forwarding_rules/rest/service_stub.rb +417 -0
  38. data/lib/google/cloud/compute/v1/forwarding_rules/rest.rb +0 -2
  39. data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +141 -81
  40. data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +229 -0
  41. data/lib/google/cloud/compute/v1/global_addresses/rest.rb +0 -2
  42. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +259 -112
  43. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/service_stub.rb +365 -0
  44. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest.rb +0 -2
  45. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +207 -128
  46. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/service_stub.rb +370 -0
  47. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest.rb +0 -2
  48. data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +159 -88
  49. data/lib/google/cloud/compute/v1/global_operations/rest/service_stub.rb +274 -0
  50. data/lib/google/cloud/compute/v1/global_operations/rest.rb +0 -2
  51. data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +116 -64
  52. data/lib/google/cloud/compute/v1/global_organization_operations/rest/service_stub.rb +186 -0
  53. data/lib/google/cloud/compute/v1/global_organization_operations/rest.rb +0 -2
  54. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +170 -97
  55. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/service_stub.rb +275 -0
  56. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest.rb +0 -2
  57. data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +210 -128
  58. data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +371 -0
  59. data/lib/google/cloud/compute/v1/health_checks/rest.rb +0 -2
  60. data/lib/google/cloud/compute/v1/images/rest/client.rb +284 -174
  61. data/lib/google/cloud/compute/v1/images/rest/service_stub.rb +542 -0
  62. data/lib/google/cloud/compute/v1/images/rest.rb +0 -2
  63. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +497 -328
  64. data/lib/google/cloud/compute/v1/instance_group_managers/rest/service_stub.rb +974 -0
  65. data/lib/google/cloud/compute/v1/instance_group_managers/rest.rb +0 -2
  66. data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +255 -161
  67. data/lib/google/cloud/compute/v1/instance_groups/rest/service_stub.rb +467 -0
  68. data/lib/google/cloud/compute/v1/instance_groups/rest.rb +0 -2
  69. data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +198 -117
  70. data/lib/google/cloud/compute/v1/instance_templates/rest/service_stub.rb +362 -0
  71. data/lib/google/cloud/compute/v1/instance_templates/rest.rb +0 -2
  72. data/lib/google/cloud/compute/v1/instances/rest/client.rb +1079 -609
  73. data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +1975 -0
  74. data/lib/google/cloud/compute/v1/instances/rest.rb +0 -2
  75. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +188 -112
  76. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/service_stub.rb +326 -0
  77. data/lib/google/cloud/compute/v1/interconnect_attachments/rest.rb +0 -2
  78. data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +98 -51
  79. data/lib/google/cloud/compute/v1/interconnect_locations/rest/service_stub.rb +138 -0
  80. data/lib/google/cloud/compute/v1/interconnect_locations/rest.rb +0 -2
  81. data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +184 -108
  82. data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +318 -0
  83. data/lib/google/cloud/compute/v1/interconnects/rest.rb +0 -2
  84. data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +91 -48
  85. data/lib/google/cloud/compute/v1/license_codes/rest/service_stub.rb +133 -0
  86. data/lib/google/cloud/compute/v1/license_codes/rest.rb +0 -2
  87. data/lib/google/cloud/compute/v1/licenses/rest/client.rb +198 -117
  88. data/lib/google/cloud/compute/v1/licenses/rest/service_stub.rb +362 -0
  89. data/lib/google/cloud/compute/v1/licenses/rest.rb +0 -2
  90. data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +123 -66
  91. data/lib/google/cloud/compute/v1/machine_types/rest/service_stub.rb +188 -0
  92. data/lib/google/cloud/compute/v1/machine_types/rest.rb +0 -2
  93. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +251 -157
  94. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/service_stub.rb +465 -0
  95. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest.rb +0 -2
  96. data/lib/google/cloud/compute/v1/networks/rest/client.rb +349 -173
  97. data/lib/google/cloud/compute/v1/networks/rest/service_stub.rb +553 -0
  98. data/lib/google/cloud/compute/v1/networks/rest.rb +0 -2
  99. data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +333 -211
  100. data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +646 -0
  101. data/lib/google/cloud/compute/v1/node_groups/rest.rb +0 -2
  102. data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +223 -132
  103. data/lib/google/cloud/compute/v1/node_templates/rest/service_stub.rb +412 -0
  104. data/lib/google/cloud/compute/v1/node_templates/rest.rb +0 -2
  105. data/lib/google/cloud/compute/v1/node_types/rest/client.rb +123 -66
  106. data/lib/google/cloud/compute/v1/node_types/rest/service_stub.rb +188 -0
  107. data/lib/google/cloud/compute/v1/node_types/rest.rb +0 -2
  108. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +206 -124
  109. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/service_stub.rb +369 -0
  110. data/lib/google/cloud/compute/v1/packet_mirrorings/rest.rb +0 -2
  111. data/lib/google/cloud/compute/v1/projects/rest/client.rb +338 -219
  112. data/lib/google/cloud/compute/v1/projects/rest/service_stub.rb +643 -0
  113. data/lib/google/cloud/compute/v1/projects/rest.rb +0 -2
  114. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +170 -97
  115. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +275 -0
  116. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest.rb +0 -2
  117. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +196 -112
  118. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +325 -0
  119. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest.rb +0 -2
  120. data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +185 -113
  121. data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +323 -0
  122. data/lib/google/cloud/compute/v1/region_autoscalers/rest.rb +0 -2
  123. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +203 -125
  124. data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +365 -0
  125. data/lib/google/cloud/compute/v1/region_backend_services/rest.rb +0 -2
  126. data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +145 -82
  127. data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +234 -0
  128. data/lib/google/cloud/compute/v1/region_commitments/rest.rb +0 -2
  129. data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +98 -51
  130. data/lib/google/cloud/compute/v1/region_disk_types/rest/service_stub.rb +138 -0
  131. data/lib/google/cloud/compute/v1/region_disk_types/rest.rb +0 -2
  132. data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +309 -198
  133. data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +593 -0
  134. data/lib/google/cloud/compute/v1/region_disks/rest.rb +0 -2
  135. data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +163 -97
  136. data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +275 -0
  137. data/lib/google/cloud/compute/v1/region_health_check_services/rest.rb +0 -2
  138. data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +185 -113
  139. data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +321 -0
  140. data/lib/google/cloud/compute/v1/region_health_checks/rest.rb +0 -2
  141. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +472 -313
  142. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/service_stub.rb +924 -0
  143. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest.rb +0 -2
  144. data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +143 -84
  145. data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +234 -0
  146. data/lib/google/cloud/compute/v1/region_instance_groups/rest.rb +0 -2
  147. data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +75 -40
  148. data/lib/google/cloud/compute/v1/region_instances/rest/service_stub.rb +92 -0
  149. data/lib/google/cloud/compute/v1/region_instances/rest.rb +0 -2
  150. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +141 -81
  151. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +229 -0
  152. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest.rb +0 -2
  153. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +141 -81
  154. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +229 -0
  155. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest.rb +0 -2
  156. data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +134 -73
  157. data/lib/google/cloud/compute/v1/region_operations/rest/service_stub.rb +224 -0
  158. data/lib/google/cloud/compute/v1/region_operations/rest.rb +0 -2
  159. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +141 -81
  160. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/service_stub.rb +229 -0
  161. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest.rb +0 -2
  162. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +163 -97
  163. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/service_stub.rb +275 -0
  164. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest.rb +0 -2
  165. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +185 -113
  166. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +321 -0
  167. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest.rb +0 -2
  168. data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +203 -125
  169. data/lib/google/cloud/compute/v1/region_url_maps/rest/service_stub.rb +365 -0
  170. data/lib/google/cloud/compute/v1/region_url_maps/rest.rb +0 -2
  171. data/lib/google/cloud/compute/v1/regions/rest/client.rb +98 -51
  172. data/lib/google/cloud/compute/v1/regions/rest/service_stub.rb +138 -0
  173. data/lib/google/cloud/compute/v1/regions/rest.rb +0 -2
  174. data/lib/google/cloud/compute/v1/reservations/rest/client.rb +245 -148
  175. data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +458 -0
  176. data/lib/google/cloud/compute/v1/reservations/rest.rb +0 -2
  177. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +223 -132
  178. data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +412 -0
  179. data/lib/google/cloud/compute/v1/resource_policies/rest.rb +0 -2
  180. data/lib/google/cloud/compute/v1/routers/rest/client.rb +274 -166
  181. data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +507 -0
  182. data/lib/google/cloud/compute/v1/routers/rest.rb +0 -2
  183. data/lib/google/cloud/compute/v1/routes/rest/client.rb +141 -81
  184. data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +229 -0
  185. data/lib/google/cloud/compute/v1/routes/rest.rb +0 -2
  186. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +270 -166
  187. data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +504 -0
  188. data/lib/google/cloud/compute/v1/security_policies/rest.rb +0 -2
  189. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +197 -115
  190. data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +360 -0
  191. data/lib/google/cloud/compute/v1/snapshots/rest.rb +0 -2
  192. data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +166 -96
  193. data/lib/google/cloud/compute/v1/ssl_certificates/rest/service_stub.rb +279 -0
  194. data/lib/google/cloud/compute/v1/ssl_certificates/rest.rb +0 -2
  195. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +185 -110
  196. data/lib/google/cloud/compute/v1/ssl_policies/rest/service_stub.rb +324 -0
  197. data/lib/google/cloud/compute/v1/ssl_policies/rest.rb +0 -2
  198. data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +314 -195
  199. data/lib/google/cloud/compute/v1/subnetworks/rest/service_stub.rb +600 -0
  200. data/lib/google/cloud/compute/v1/subnetworks/rest.rb +0 -2
  201. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +163 -97
  202. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/service_stub.rb +275 -0
  203. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest.rb +0 -2
  204. data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +210 -128
  205. data/lib/google/cloud/compute/v1/target_http_proxies/rest/service_stub.rb +371 -0
  206. data/lib/google/cloud/compute/v1/target_http_proxies/rest.rb +0 -2
  207. data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +334 -159
  208. data/lib/google/cloud/compute/v1/target_https_proxies/rest/service_stub.rb +509 -0
  209. data/lib/google/cloud/compute/v1/target_https_proxies/rest.rb +0 -2
  210. data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +166 -96
  211. data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +279 -0
  212. data/lib/google/cloud/compute/v1/target_instances/rest.rb +0 -2
  213. data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +294 -188
  214. data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +554 -0
  215. data/lib/google/cloud/compute/v1/target_pools/rest.rb +0 -2
  216. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +229 -145
  217. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +413 -0
  218. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest.rb +0 -2
  219. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +185 -113
  220. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +321 -0
  221. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest.rb +0 -2
  222. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +166 -96
  223. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/service_stub.rb +279 -0
  224. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest.rb +0 -2
  225. data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +250 -156
  226. data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +461 -0
  227. data/lib/google/cloud/compute/v1/url_maps/rest.rb +0 -2
  228. data/lib/google/cloud/compute/v1/version.rb +1 -1
  229. data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +227 -135
  230. data/lib/google/cloud/compute/v1/vpn_gateways/rest/service_stub.rb +412 -0
  231. data/lib/google/cloud/compute/v1/vpn_gateways/rest.rb +0 -2
  232. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +166 -96
  233. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/service_stub.rb +279 -0
  234. data/lib/google/cloud/compute/v1/vpn_tunnels/rest.rb +0 -2
  235. data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +134 -73
  236. data/lib/google/cloud/compute/v1/zone_operations/rest/service_stub.rb +224 -0
  237. data/lib/google/cloud/compute/v1/zone_operations/rest.rb +0 -2
  238. data/lib/google/cloud/compute/v1/zones/rest/client.rb +98 -51
  239. data/lib/google/cloud/compute/v1/zones/rest/service_stub.rb +138 -0
  240. data/lib/google/cloud/compute/v1/zones/rest.rb +0 -2
  241. data/lib/google/cloud/compute/v1.rb +5 -0
  242. data/proto_docs/README.md +1 -1
  243. data/proto_docs/google/cloud/compute/v1/compute.rb +2526 -640
  244. metadata +84 -8
@@ -0,0 +1,317 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/compute/v1/compute_pb"
20
+
21
+ module Google
22
+ module Cloud
23
+ module Compute
24
+ module V1
25
+ module ExternalVpnGateways
26
+ module Rest
27
+ ##
28
+ # REST service stub for the ExternalVpnGateways service.
29
+ # service stub contains baseline method implementations
30
+ # including transcoding, making the REST call and deserialing the response
31
+ #
32
+ class ServiceStub
33
+ def initialize endpoint:, credentials:
34
+ # These require statements are intentionally placed here to initialize
35
+ # the REST modules only when it's required.
36
+ require "gapic/rest"
37
+
38
+ @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials
39
+ end
40
+
41
+ ##
42
+ # Baseline implementation for the delete REST call
43
+ #
44
+ # @param request_pb [::Google::Cloud::Compute::V1::DeleteExternalVpnGatewayRequest]
45
+ # A request object representing the call parameters. Required.
46
+ # @param options [::Gapic::CallOptions]
47
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
48
+ #
49
+ # @yield [result, response] Access the result along with the Faraday response object
50
+ # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
51
+ # @yieldparam response [::Faraday::Response]
52
+ #
53
+ # @return [::Google::Cloud::Compute::V1::Operation]
54
+ # A result object deserialized from the server's reply
55
+ def delete request_pb, options = nil
56
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
57
+
58
+ uri, _body, query_string_params = transcode_delete_request request_pb
59
+ response = @client_stub.make_delete_request(
60
+ uri: uri,
61
+ params: query_string_params,
62
+ options: options
63
+ )
64
+ result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
65
+
66
+ yield result, response if block_given?
67
+ result
68
+ end
69
+
70
+ ##
71
+ # GRPC transcoding helper method for the delete REST call
72
+ #
73
+ # @param request_pb [::Google::Cloud::Compute::V1::DeleteExternalVpnGatewayRequest]
74
+ # A request object representing the call parameters. Required.
75
+ # @return [Array(String, [String, nil], Hash{String => String})]
76
+ # Uri, Body, Query string parameters
77
+ def transcode_delete_request request_pb
78
+ uri = "/compute/v1/projects/#{request_pb.project}/global/externalVpnGateways/#{request_pb.external_vpn_gateway}"
79
+ body = nil
80
+ query_string_params = {}
81
+ query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
82
+
83
+ [uri, body, query_string_params]
84
+ end
85
+
86
+ ##
87
+ # Baseline implementation for the get REST call
88
+ #
89
+ # @param request_pb [::Google::Cloud::Compute::V1::GetExternalVpnGatewayRequest]
90
+ # A request object representing the call parameters. Required.
91
+ # @param options [::Gapic::CallOptions]
92
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
93
+ #
94
+ # @yield [result, response] Access the result along with the Faraday response object
95
+ # @yieldparam result [::Google::Cloud::Compute::V1::ExternalVpnGateway]
96
+ # @yieldparam response [::Faraday::Response]
97
+ #
98
+ # @return [::Google::Cloud::Compute::V1::ExternalVpnGateway]
99
+ # A result object deserialized from the server's reply
100
+ def get request_pb, options = nil
101
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
102
+
103
+ uri, _body, _query_string_params = transcode_get_request request_pb
104
+ response = @client_stub.make_get_request(
105
+ uri: uri,
106
+ options: options
107
+ )
108
+ result = ::Google::Cloud::Compute::V1::ExternalVpnGateway.decode_json response.body, ignore_unknown_fields: true
109
+
110
+ yield result, response if block_given?
111
+ result
112
+ end
113
+
114
+ ##
115
+ # GRPC transcoding helper method for the get REST call
116
+ #
117
+ # @param request_pb [::Google::Cloud::Compute::V1::GetExternalVpnGatewayRequest]
118
+ # A request object representing the call parameters. Required.
119
+ # @return [Array(String, [String, nil], Hash{String => String})]
120
+ # Uri, Body, Query string parameters
121
+ def transcode_get_request request_pb
122
+ uri = "/compute/v1/projects/#{request_pb.project}/global/externalVpnGateways/#{request_pb.external_vpn_gateway}"
123
+ body = nil
124
+ query_string_params = {}
125
+
126
+ [uri, body, query_string_params]
127
+ end
128
+
129
+ ##
130
+ # Baseline implementation for the insert REST call
131
+ #
132
+ # @param request_pb [::Google::Cloud::Compute::V1::InsertExternalVpnGatewayRequest]
133
+ # A request object representing the call parameters. Required.
134
+ # @param options [::Gapic::CallOptions]
135
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
136
+ #
137
+ # @yield [result, response] Access the result along with the Faraday response object
138
+ # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
139
+ # @yieldparam response [::Faraday::Response]
140
+ #
141
+ # @return [::Google::Cloud::Compute::V1::Operation]
142
+ # A result object deserialized from the server's reply
143
+ def insert request_pb, options = nil
144
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
145
+
146
+ uri, body, query_string_params = transcode_insert_request request_pb
147
+ response = @client_stub.make_post_request(
148
+ uri: uri,
149
+ body: body,
150
+ params: query_string_params,
151
+ options: options
152
+ )
153
+ result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
154
+
155
+ yield result, response if block_given?
156
+ result
157
+ end
158
+
159
+ ##
160
+ # GRPC transcoding helper method for the insert REST call
161
+ #
162
+ # @param request_pb [::Google::Cloud::Compute::V1::InsertExternalVpnGatewayRequest]
163
+ # A request object representing the call parameters. Required.
164
+ # @return [Array(String, [String, nil], Hash{String => String})]
165
+ # Uri, Body, Query string parameters
166
+ def transcode_insert_request request_pb
167
+ uri = "/compute/v1/projects/#{request_pb.project}/global/externalVpnGateways"
168
+ body = request_pb.external_vpn_gateway_resource.to_json
169
+ query_string_params = {}
170
+ query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
171
+
172
+ [uri, body, query_string_params]
173
+ end
174
+
175
+ ##
176
+ # Baseline implementation for the list REST call
177
+ #
178
+ # @param request_pb [::Google::Cloud::Compute::V1::ListExternalVpnGatewaysRequest]
179
+ # A request object representing the call parameters. Required.
180
+ # @param options [::Gapic::CallOptions]
181
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
182
+ #
183
+ # @yield [result, response] Access the result along with the Faraday response object
184
+ # @yieldparam result [::Google::Cloud::Compute::V1::ExternalVpnGatewayList]
185
+ # @yieldparam response [::Faraday::Response]
186
+ #
187
+ # @return [::Google::Cloud::Compute::V1::ExternalVpnGatewayList]
188
+ # A result object deserialized from the server's reply
189
+ def list request_pb, options = nil
190
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
191
+
192
+ uri, _body, query_string_params = transcode_list_request request_pb
193
+ response = @client_stub.make_get_request(
194
+ uri: uri,
195
+ params: query_string_params,
196
+ options: options
197
+ )
198
+ result = ::Google::Cloud::Compute::V1::ExternalVpnGatewayList.decode_json response.body, ignore_unknown_fields: true
199
+
200
+ yield result, response if block_given?
201
+ result
202
+ end
203
+
204
+ ##
205
+ # GRPC transcoding helper method for the list REST call
206
+ #
207
+ # @param request_pb [::Google::Cloud::Compute::V1::ListExternalVpnGatewaysRequest]
208
+ # A request object representing the call parameters. Required.
209
+ # @return [Array(String, [String, nil], Hash{String => String})]
210
+ # Uri, Body, Query string parameters
211
+ def transcode_list_request request_pb
212
+ uri = "/compute/v1/projects/#{request_pb.project}/global/externalVpnGateways"
213
+ body = nil
214
+ query_string_params = {}
215
+ query_string_params["filter"] = request_pb.filter.to_s if request_pb.has_filter?
216
+ query_string_params["maxResults"] = request_pb.max_results.to_s if request_pb.has_max_results?
217
+ query_string_params["orderBy"] = request_pb.order_by.to_s if request_pb.has_order_by?
218
+ query_string_params["pageToken"] = request_pb.page_token.to_s if request_pb.has_page_token?
219
+ query_string_params["returnPartialSuccess"] = request_pb.return_partial_success.to_s if request_pb.has_return_partial_success?
220
+
221
+ [uri, body, query_string_params]
222
+ end
223
+
224
+ ##
225
+ # Baseline implementation for the set_labels REST call
226
+ #
227
+ # @param request_pb [::Google::Cloud::Compute::V1::SetLabelsExternalVpnGatewayRequest]
228
+ # A request object representing the call parameters. Required.
229
+ # @param options [::Gapic::CallOptions]
230
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
231
+ #
232
+ # @yield [result, response] Access the result along with the Faraday response object
233
+ # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
234
+ # @yieldparam response [::Faraday::Response]
235
+ #
236
+ # @return [::Google::Cloud::Compute::V1::Operation]
237
+ # A result object deserialized from the server's reply
238
+ def set_labels request_pb, options = nil
239
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
240
+
241
+ uri, body, _query_string_params = transcode_set_labels_request request_pb
242
+ response = @client_stub.make_post_request(
243
+ uri: uri,
244
+ body: body,
245
+ options: options
246
+ )
247
+ result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
248
+
249
+ yield result, response if block_given?
250
+ result
251
+ end
252
+
253
+ ##
254
+ # GRPC transcoding helper method for the set_labels REST call
255
+ #
256
+ # @param request_pb [::Google::Cloud::Compute::V1::SetLabelsExternalVpnGatewayRequest]
257
+ # A request object representing the call parameters. Required.
258
+ # @return [Array(String, [String, nil], Hash{String => String})]
259
+ # Uri, Body, Query string parameters
260
+ def transcode_set_labels_request request_pb
261
+ uri = "/compute/v1/projects/#{request_pb.project}/global/externalVpnGateways/#{request_pb.resource}/setLabels"
262
+ body = request_pb.global_set_labels_request_resource.to_json
263
+ query_string_params = {}
264
+
265
+ [uri, body, query_string_params]
266
+ end
267
+
268
+ ##
269
+ # Baseline implementation for the test_iam_permissions REST call
270
+ #
271
+ # @param request_pb [::Google::Cloud::Compute::V1::TestIamPermissionsExternalVpnGatewayRequest]
272
+ # A request object representing the call parameters. Required.
273
+ # @param options [::Gapic::CallOptions]
274
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
275
+ #
276
+ # @yield [result, response] Access the result along with the Faraday response object
277
+ # @yieldparam result [::Google::Cloud::Compute::V1::TestPermissionsResponse]
278
+ # @yieldparam response [::Faraday::Response]
279
+ #
280
+ # @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
281
+ # A result object deserialized from the server's reply
282
+ def test_iam_permissions request_pb, options = nil
283
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
284
+
285
+ uri, body, _query_string_params = transcode_test_iam_permissions_request request_pb
286
+ response = @client_stub.make_post_request(
287
+ uri: uri,
288
+ body: body,
289
+ options: options
290
+ )
291
+ result = ::Google::Cloud::Compute::V1::TestPermissionsResponse.decode_json response.body, ignore_unknown_fields: true
292
+
293
+ yield result, response if block_given?
294
+ result
295
+ end
296
+
297
+ ##
298
+ # GRPC transcoding helper method for the test_iam_permissions REST call
299
+ #
300
+ # @param request_pb [::Google::Cloud::Compute::V1::TestIamPermissionsExternalVpnGatewayRequest]
301
+ # A request object representing the call parameters. Required.
302
+ # @return [Array(String, [String, nil], Hash{String => String})]
303
+ # Uri, Body, Query string parameters
304
+ def transcode_test_iam_permissions_request request_pb
305
+ uri = "/compute/v1/projects/#{request_pb.project}/global/externalVpnGateways/#{request_pb.resource}/testIamPermissions"
306
+ body = request_pb.test_permissions_request_resource.to_json
307
+ query_string_params = {}
308
+
309
+ [uri, body, query_string_params]
310
+ end
311
+ end
312
+ end
313
+ end
314
+ end
315
+ end
316
+ end
317
+ end
@@ -16,8 +16,6 @@
16
16
 
17
17
  # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
18
 
19
- require "gapic/rest"
20
- require "google/cloud/compute/v1/external_vpn_gateways/rest/grpc_transcoding"
21
19
  require "google/cloud/compute/v1/external_vpn_gateways/rest/client"
22
20
 
23
21
  module Google
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/compute/v1/compute_pb"
21
+ require "google/cloud/compute/v1/firewall_policies/rest/service_stub"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -31,8 +32,6 @@ module Google
31
32
  # The FirewallPolicies API.
32
33
  #
33
34
  class Client
34
- include GrpcTranscoding
35
-
36
35
  # @private
37
36
  attr_reader :firewall_policies_stub
38
37
 
@@ -42,13 +41,12 @@ module Google
42
41
  # See {::Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client::Configuration}
43
42
  # for a description of the configuration fields.
44
43
  #
45
- # ## Example
46
- #
47
- # To modify the configuration for all FirewallPolicies clients:
44
+ # @example
48
45
  #
49
- # ::Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client.configure do |config|
50
- # config.timeout = 10.0
51
- # end
46
+ # # Modify the configuration for all FirewallPolicies clients
47
+ # ::Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client.configure do |config|
48
+ # config.timeout = 10.0
49
+ # end
52
50
  #
53
51
  # @yield [config] Configure the Client client.
54
52
  # @yieldparam config [Client::Configuration]
@@ -66,6 +64,60 @@ module Google
66
64
  end
67
65
  default_config = Client::Configuration.new parent_config
68
66
 
67
+ default_config.rpcs.add_association.timeout = 600.0
68
+
69
+ default_config.rpcs.add_rule.timeout = 600.0
70
+
71
+ default_config.rpcs.clone_rules.timeout = 600.0
72
+
73
+ default_config.rpcs.delete.timeout = 600.0
74
+
75
+ default_config.rpcs.get.timeout = 600.0
76
+ default_config.rpcs.get.retry_policy = {
77
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
78
+ }
79
+
80
+ default_config.rpcs.get_association.timeout = 600.0
81
+ default_config.rpcs.get_association.retry_policy = {
82
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
83
+ }
84
+
85
+ default_config.rpcs.get_iam_policy.timeout = 600.0
86
+ default_config.rpcs.get_iam_policy.retry_policy = {
87
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
88
+ }
89
+
90
+ default_config.rpcs.get_rule.timeout = 600.0
91
+ default_config.rpcs.get_rule.retry_policy = {
92
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
93
+ }
94
+
95
+ default_config.rpcs.insert.timeout = 600.0
96
+
97
+ default_config.rpcs.list.timeout = 600.0
98
+ default_config.rpcs.list.retry_policy = {
99
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
100
+ }
101
+
102
+ default_config.rpcs.list_associations.timeout = 600.0
103
+ default_config.rpcs.list_associations.retry_policy = {
104
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
105
+ }
106
+
107
+ default_config.rpcs.move.timeout = 600.0
108
+
109
+ default_config.rpcs.patch.timeout = 600.0
110
+
111
+ default_config.rpcs.patch_rule.timeout = 600.0
112
+
113
+ default_config.rpcs.remove_association.timeout = 600.0
114
+
115
+ default_config.rpcs.remove_rule.timeout = 600.0
116
+
117
+ default_config.rpcs.set_iam_policy.timeout = 600.0
118
+
119
+ default_config.rpcs.test_iam_permissions.timeout = 600.0
120
+
69
121
  default_config
70
122
  end
71
123
  yield @configure if block_given?
@@ -95,28 +147,20 @@ module Google
95
147
  ##
96
148
  # Create a new FirewallPolicies REST client object.
97
149
  #
98
- # ## Examples
150
+ # @example
99
151
  #
100
- # To create a new FirewallPolicies REST client with the default
101
- # configuration:
152
+ # # Create a client using the default configuration
153
+ # client = ::Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client.new
102
154
  #
103
- # client = ::Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client.new
104
- #
105
- # To create a new FirewallPolicies REST client with a custom
106
- # configuration:
107
- #
108
- # client = ::Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client.new do |config|
109
- # config.timeout = 10.0
110
- # end
155
+ # # Create a client using a custom configuration
156
+ # client = ::Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client.new do |config|
157
+ # config.timeout = 10.0
158
+ # end
111
159
  #
112
160
  # @yield [config] Configure the FirewallPolicies client.
113
161
  # @yieldparam config [Client::Configuration]
114
162
  #
115
163
  def initialize
116
- # These require statements are intentionally placed here to initialize
117
- # the REST modules only when it's required.
118
- require "gapic/rest"
119
-
120
164
  # Create the configuration object
121
165
  @config = Configuration.new Client.configure
122
166
 
@@ -126,11 +170,11 @@ module Google
126
170
  # Create credentials
127
171
  credentials = @config.credentials
128
172
  credentials ||= Credentials.default scope: @config.scope
129
- if credentials.is_a?(String) || credentials.is_a?(Hash)
173
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
130
174
  credentials = Credentials.new credentials, scope: @config.scope
131
175
  end
132
176
 
133
- @client_stub = ::Gapic::Rest::ClientStub.new endpoint: @config.endpoint, credentials: credentials
177
+ @firewall_policies_stub = ::Google::Cloud::Compute::V1::FirewallPolicies::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
134
178
  end
135
179
 
136
180
  # Service calls
@@ -167,11 +211,11 @@ module Google
167
211
  # 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.
168
212
  #
169
213
  # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
170
- # @yield [result, env] Access the result along with the Faraday environment object
171
- # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
214
+ # @yield [result, response] Access the result along with the Faraday response object
215
+ # @yieldparam result [::Gapic::Rest::BaseOperation]
172
216
  # @yieldparam response [::Faraday::Response]
173
217
  #
174
- # @return [::Google::Cloud::Compute::V1::Operation]
218
+ # @return [::Gapic::Rest::BaseOperation]
175
219
  #
176
220
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
177
221
  def add_association request, options = nil
@@ -183,26 +227,25 @@ module Google
183
227
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
184
228
 
185
229
  # Customize the options with defaults
186
- call_metadata = {}
230
+ call_metadata = @config.rpcs.add_association.metadata.to_h
187
231
 
188
232
  # Set x-goog-api-client header
189
233
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
190
234
  lib_name: @config.lib_name, lib_version: @config.lib_version,
191
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
235
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
236
+ transports_version_send: [:rest]
192
237
 
193
- options.apply_defaults timeout: @config.timeout,
238
+ options.apply_defaults timeout: @config.rpcs.add_association.timeout,
194
239
  metadata: call_metadata
195
240
 
196
- uri, body, _query_string_params = transcode_add_association request
197
- response = @client_stub.make_post_request(
198
- uri: uri,
199
- body: body,
200
- options: options
201
- )
202
- result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
241
+ options.apply_defaults timeout: @config.timeout,
242
+ metadata: @config.metadata
203
243
 
204
- yield result, response if block_given?
205
- result
244
+ @firewall_policies_stub.add_association request, options do |result, response|
245
+ result = ::Gapic::Rest::BaseOperation.new result
246
+ yield result, response if block_given?
247
+ return result
248
+ end
206
249
  rescue ::Faraday::Error => e
207
250
  gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
208
251
  raise ::Google::Cloud::Error.from_error(gapic_error)
@@ -238,11 +281,11 @@ module Google
238
281
  # 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.
239
282
  #
240
283
  # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
241
- # @yield [result, env] Access the result along with the Faraday environment object
242
- # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
284
+ # @yield [result, response] Access the result along with the Faraday response object
285
+ # @yieldparam result [::Gapic::Rest::BaseOperation]
243
286
  # @yieldparam response [::Faraday::Response]
244
287
  #
245
- # @return [::Google::Cloud::Compute::V1::Operation]
288
+ # @return [::Gapic::Rest::BaseOperation]
246
289
  #
247
290
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
248
291
  def add_rule request, options = nil
@@ -254,26 +297,25 @@ module Google
254
297
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
255
298
 
256
299
  # Customize the options with defaults
257
- call_metadata = {}
300
+ call_metadata = @config.rpcs.add_rule.metadata.to_h
258
301
 
259
302
  # Set x-goog-api-client header
260
303
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
261
304
  lib_name: @config.lib_name, lib_version: @config.lib_version,
262
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
305
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
306
+ transports_version_send: [:rest]
263
307
 
264
- options.apply_defaults timeout: @config.timeout,
308
+ options.apply_defaults timeout: @config.rpcs.add_rule.timeout,
265
309
  metadata: call_metadata
266
310
 
267
- uri, body, _query_string_params = transcode_add_rule request
268
- response = @client_stub.make_post_request(
269
- uri: uri,
270
- body: body,
271
- options: options
272
- )
273
- result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
311
+ options.apply_defaults timeout: @config.timeout,
312
+ metadata: @config.metadata
274
313
 
275
- yield result, response if block_given?
276
- result
314
+ @firewall_policies_stub.add_rule request, options do |result, response|
315
+ result = ::Gapic::Rest::BaseOperation.new result
316
+ yield result, response if block_given?
317
+ return result
318
+ end
277
319
  rescue ::Faraday::Error => e
278
320
  gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
279
321
  raise ::Google::Cloud::Error.from_error(gapic_error)
@@ -309,11 +351,11 @@ module Google
309
351
  # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
310
352
  # @param source_firewall_policy [::String]
311
353
  # The firewall policy from which to copy rules.
312
- # @yield [result, env] Access the result along with the Faraday environment object
313
- # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
354
+ # @yield [result, response] Access the result along with the Faraday response object
355
+ # @yieldparam result [::Gapic::Rest::BaseOperation]
314
356
  # @yieldparam response [::Faraday::Response]
315
357
  #
316
- # @return [::Google::Cloud::Compute::V1::Operation]
358
+ # @return [::Gapic::Rest::BaseOperation]
317
359
  #
318
360
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
319
361
  def clone_rules request, options = nil
@@ -325,26 +367,25 @@ module Google
325
367
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
326
368
 
327
369
  # Customize the options with defaults
328
- call_metadata = {}
370
+ call_metadata = @config.rpcs.clone_rules.metadata.to_h
329
371
 
330
372
  # Set x-goog-api-client header
331
373
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
332
374
  lib_name: @config.lib_name, lib_version: @config.lib_version,
333
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
375
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
376
+ transports_version_send: [:rest]
334
377
 
335
- options.apply_defaults timeout: @config.timeout,
378
+ options.apply_defaults timeout: @config.rpcs.clone_rules.timeout,
336
379
  metadata: call_metadata
337
380
 
338
- uri, _body, query_string_params = transcode_clone_rules request
339
- response = @client_stub.make_post_request(
340
- uri: uri,
341
- params: query_string_params,
342
- options: options
343
- )
344
- result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
381
+ options.apply_defaults timeout: @config.timeout,
382
+ metadata: @config.metadata
345
383
 
346
- yield result, response if block_given?
347
- result
384
+ @firewall_policies_stub.clone_rules request, options do |result, response|
385
+ result = ::Gapic::Rest::BaseOperation.new result
386
+ yield result, response if block_given?
387
+ return result
388
+ end
348
389
  rescue ::Faraday::Error => e
349
390
  gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
350
391
  raise ::Google::Cloud::Error.from_error(gapic_error)
@@ -378,11 +419,11 @@ module Google
378
419
  # 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.
379
420
  #
380
421
  # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
381
- # @yield [result, env] Access the result along with the Faraday environment object
382
- # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
422
+ # @yield [result, response] Access the result along with the Faraday response object
423
+ # @yieldparam result [::Gapic::Rest::BaseOperation]
383
424
  # @yieldparam response [::Faraday::Response]
384
425
  #
385
- # @return [::Google::Cloud::Compute::V1::Operation]
426
+ # @return [::Gapic::Rest::BaseOperation]
386
427
  #
387
428
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
388
429
  def delete request, options = nil
@@ -394,26 +435,25 @@ module Google
394
435
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
395
436
 
396
437
  # Customize the options with defaults
397
- call_metadata = {}
438
+ call_metadata = @config.rpcs.delete.metadata.to_h
398
439
 
399
440
  # Set x-goog-api-client header
400
441
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
401
442
  lib_name: @config.lib_name, lib_version: @config.lib_version,
402
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
443
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
444
+ transports_version_send: [:rest]
403
445
 
404
- options.apply_defaults timeout: @config.timeout,
446
+ options.apply_defaults timeout: @config.rpcs.delete.timeout,
405
447
  metadata: call_metadata
406
448
 
407
- uri, _body, query_string_params = transcode_delete request
408
- response = @client_stub.make_delete_request(
409
- uri: uri,
410
- params: query_string_params,
411
- options: options
412
- )
413
- result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
449
+ options.apply_defaults timeout: @config.timeout,
450
+ metadata: @config.metadata
414
451
 
415
- yield result, response if block_given?
416
- result
452
+ @firewall_policies_stub.delete request, options do |result, response|
453
+ result = ::Gapic::Rest::BaseOperation.new result
454
+ yield result, response if block_given?
455
+ return result
456
+ end
417
457
  rescue ::Faraday::Error => e
418
458
  gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
419
459
  raise ::Google::Cloud::Error.from_error(gapic_error)
@@ -441,7 +481,7 @@ module Google
441
481
  #
442
482
  # @param firewall_policy [::String]
443
483
  # Name of the firewall policy to get.
444
- # @yield [result, env] Access the result along with the Faraday environment object
484
+ # @yield [result, response] Access the result along with the Faraday response object
445
485
  # @yieldparam result [::Google::Cloud::Compute::V1::FirewallPolicy]
446
486
  # @yieldparam response [::Faraday::Response]
447
487
  #
@@ -457,25 +497,24 @@ module Google
457
497
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
458
498
 
459
499
  # Customize the options with defaults
460
- call_metadata = {}
500
+ call_metadata = @config.rpcs.get.metadata.to_h
461
501
 
462
502
  # Set x-goog-api-client header
463
503
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
464
504
  lib_name: @config.lib_name, lib_version: @config.lib_version,
465
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
505
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
506
+ transports_version_send: [:rest]
466
507
 
467
- options.apply_defaults timeout: @config.timeout,
508
+ options.apply_defaults timeout: @config.rpcs.get.timeout,
468
509
  metadata: call_metadata
469
510
 
470
- uri, _body, _query_string_params = transcode_get request
471
- response = @client_stub.make_get_request(
472
- uri: uri,
473
- options: options
474
- )
475
- result = ::Google::Cloud::Compute::V1::FirewallPolicy.decode_json response.body, ignore_unknown_fields: true
511
+ options.apply_defaults timeout: @config.timeout,
512
+ metadata: @config.metadata
476
513
 
477
- yield result, response if block_given?
478
- result
514
+ @firewall_policies_stub.get request, options do |result, response|
515
+ yield result, response if block_given?
516
+ return result
517
+ end
479
518
  rescue ::Faraday::Error => e
480
519
  gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
481
520
  raise ::Google::Cloud::Error.from_error(gapic_error)
@@ -505,7 +544,7 @@ module Google
505
544
  # Name of the firewall policy to which the queried rule belongs.
506
545
  # @param name [::String]
507
546
  # The name of the association to get from the firewall policy.
508
- # @yield [result, env] Access the result along with the Faraday environment object
547
+ # @yield [result, response] Access the result along with the Faraday response object
509
548
  # @yieldparam result [::Google::Cloud::Compute::V1::FirewallPolicyAssociation]
510
549
  # @yieldparam response [::Faraday::Response]
511
550
  #
@@ -521,26 +560,24 @@ module Google
521
560
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
522
561
 
523
562
  # Customize the options with defaults
524
- call_metadata = {}
563
+ call_metadata = @config.rpcs.get_association.metadata.to_h
525
564
 
526
565
  # Set x-goog-api-client header
527
566
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
528
567
  lib_name: @config.lib_name, lib_version: @config.lib_version,
529
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
568
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
569
+ transports_version_send: [:rest]
530
570
 
531
- options.apply_defaults timeout: @config.timeout,
571
+ options.apply_defaults timeout: @config.rpcs.get_association.timeout,
532
572
  metadata: call_metadata
533
573
 
534
- uri, _body, query_string_params = transcode_get_association request
535
- response = @client_stub.make_get_request(
536
- uri: uri,
537
- params: query_string_params,
538
- options: options
539
- )
540
- result = ::Google::Cloud::Compute::V1::FirewallPolicyAssociation.decode_json response.body, ignore_unknown_fields: true
574
+ options.apply_defaults timeout: @config.timeout,
575
+ metadata: @config.metadata
541
576
 
542
- yield result, response if block_given?
543
- result
577
+ @firewall_policies_stub.get_association request, options do |result, response|
578
+ yield result, response if block_given?
579
+ return result
580
+ end
544
581
  rescue ::Faraday::Error => e
545
582
  gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
546
583
  raise ::Google::Cloud::Error.from_error(gapic_error)
@@ -570,7 +607,7 @@ module Google
570
607
  # Requested IAM Policy version.
571
608
  # @param resource [::String]
572
609
  # Name or id of the resource for this request.
573
- # @yield [result, env] Access the result along with the Faraday environment object
610
+ # @yield [result, response] Access the result along with the Faraday response object
574
611
  # @yieldparam result [::Google::Cloud::Compute::V1::Policy]
575
612
  # @yieldparam response [::Faraday::Response]
576
613
  #
@@ -586,26 +623,24 @@ module Google
586
623
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
587
624
 
588
625
  # Customize the options with defaults
589
- call_metadata = {}
626
+ call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
590
627
 
591
628
  # Set x-goog-api-client header
592
629
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
593
630
  lib_name: @config.lib_name, lib_version: @config.lib_version,
594
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
631
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
632
+ transports_version_send: [:rest]
595
633
 
596
- options.apply_defaults timeout: @config.timeout,
634
+ options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
597
635
  metadata: call_metadata
598
636
 
599
- uri, _body, query_string_params = transcode_get_iam_policy request
600
- response = @client_stub.make_get_request(
601
- uri: uri,
602
- params: query_string_params,
603
- options: options
604
- )
605
- result = ::Google::Cloud::Compute::V1::Policy.decode_json response.body, ignore_unknown_fields: true
637
+ options.apply_defaults timeout: @config.timeout,
638
+ metadata: @config.metadata
606
639
 
607
- yield result, response if block_given?
608
- result
640
+ @firewall_policies_stub.get_iam_policy request, options do |result, response|
641
+ yield result, response if block_given?
642
+ return result
643
+ end
609
644
  rescue ::Faraday::Error => e
610
645
  gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
611
646
  raise ::Google::Cloud::Error.from_error(gapic_error)
@@ -635,7 +670,7 @@ module Google
635
670
  # Name of the firewall policy to which the queried rule belongs.
636
671
  # @param priority [::Integer]
637
672
  # The priority of the rule to get from the firewall policy.
638
- # @yield [result, env] Access the result along with the Faraday environment object
673
+ # @yield [result, response] Access the result along with the Faraday response object
639
674
  # @yieldparam result [::Google::Cloud::Compute::V1::FirewallPolicyRule]
640
675
  # @yieldparam response [::Faraday::Response]
641
676
  #
@@ -651,26 +686,24 @@ module Google
651
686
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
652
687
 
653
688
  # Customize the options with defaults
654
- call_metadata = {}
689
+ call_metadata = @config.rpcs.get_rule.metadata.to_h
655
690
 
656
691
  # Set x-goog-api-client header
657
692
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
658
693
  lib_name: @config.lib_name, lib_version: @config.lib_version,
659
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
694
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
695
+ transports_version_send: [:rest]
660
696
 
661
- options.apply_defaults timeout: @config.timeout,
697
+ options.apply_defaults timeout: @config.rpcs.get_rule.timeout,
662
698
  metadata: call_metadata
663
699
 
664
- uri, _body, query_string_params = transcode_get_rule request
665
- response = @client_stub.make_get_request(
666
- uri: uri,
667
- params: query_string_params,
668
- options: options
669
- )
670
- result = ::Google::Cloud::Compute::V1::FirewallPolicyRule.decode_json response.body, ignore_unknown_fields: true
700
+ options.apply_defaults timeout: @config.timeout,
701
+ metadata: @config.metadata
671
702
 
672
- yield result, response if block_given?
673
- result
703
+ @firewall_policies_stub.get_rule request, options do |result, response|
704
+ yield result, response if block_given?
705
+ return result
706
+ end
674
707
  rescue ::Faraday::Error => e
675
708
  gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
676
709
  raise ::Google::Cloud::Error.from_error(gapic_error)
@@ -706,11 +739,11 @@ module Google
706
739
  # 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.
707
740
  #
708
741
  # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
709
- # @yield [result, env] Access the result along with the Faraday environment object
710
- # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
742
+ # @yield [result, response] Access the result along with the Faraday response object
743
+ # @yieldparam result [::Gapic::Rest::BaseOperation]
711
744
  # @yieldparam response [::Faraday::Response]
712
745
  #
713
- # @return [::Google::Cloud::Compute::V1::Operation]
746
+ # @return [::Gapic::Rest::BaseOperation]
714
747
  #
715
748
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
716
749
  def insert request, options = nil
@@ -722,26 +755,25 @@ module Google
722
755
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
723
756
 
724
757
  # Customize the options with defaults
725
- call_metadata = {}
758
+ call_metadata = @config.rpcs.insert.metadata.to_h
726
759
 
727
760
  # Set x-goog-api-client header
728
761
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
729
762
  lib_name: @config.lib_name, lib_version: @config.lib_version,
730
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
763
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
764
+ transports_version_send: [:rest]
731
765
 
732
- options.apply_defaults timeout: @config.timeout,
766
+ options.apply_defaults timeout: @config.rpcs.insert.timeout,
733
767
  metadata: call_metadata
734
768
 
735
- uri, body, _query_string_params = transcode_insert request
736
- response = @client_stub.make_post_request(
737
- uri: uri,
738
- body: body,
739
- options: options
740
- )
741
- result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
769
+ options.apply_defaults timeout: @config.timeout,
770
+ metadata: @config.metadata
742
771
 
743
- yield result, response if block_given?
744
- result
772
+ @firewall_policies_stub.insert request, options do |result, response|
773
+ result = ::Gapic::Rest::BaseOperation.new result
774
+ yield result, response if block_given?
775
+ return result
776
+ end
745
777
  rescue ::Faraday::Error => e
746
778
  gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
747
779
  raise ::Google::Cloud::Error.from_error(gapic_error)
@@ -789,11 +821,11 @@ module Google
789
821
  # Parent ID for this request.
790
822
  # @param return_partial_success [::Boolean]
791
823
  # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
792
- # @yield [result, env] Access the result along with the Faraday environment object
793
- # @yieldparam result [::Google::Cloud::Compute::V1::FirewallPolicyList]
824
+ # @yield [result, response] Access the result along with the Faraday response object
825
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::FirewallPolicy>]
794
826
  # @yieldparam response [::Faraday::Response]
795
827
  #
796
- # @return [::Google::Cloud::Compute::V1::FirewallPolicyList]
828
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::FirewallPolicy>]
797
829
  #
798
830
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
799
831
  def list request, options = nil
@@ -805,26 +837,25 @@ module Google
805
837
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
806
838
 
807
839
  # Customize the options with defaults
808
- call_metadata = {}
840
+ call_metadata = @config.rpcs.list.metadata.to_h
809
841
 
810
842
  # Set x-goog-api-client header
811
843
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
812
844
  lib_name: @config.lib_name, lib_version: @config.lib_version,
813
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
845
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
846
+ transports_version_send: [:rest]
814
847
 
815
- options.apply_defaults timeout: @config.timeout,
848
+ options.apply_defaults timeout: @config.rpcs.list.timeout,
816
849
  metadata: call_metadata
817
850
 
818
- uri, _body, query_string_params = transcode_list request
819
- response = @client_stub.make_get_request(
820
- uri: uri,
821
- params: query_string_params,
822
- options: options
823
- )
824
- result = ::Google::Cloud::Compute::V1::FirewallPolicyList.decode_json response.body, ignore_unknown_fields: true
851
+ options.apply_defaults timeout: @config.timeout,
852
+ metadata: @config.metadata
825
853
 
826
- yield result, response if block_given?
827
- result
854
+ @firewall_policies_stub.list request, options do |result, response|
855
+ result = ::Gapic::Rest::PagedEnumerable.new @firewall_policies_stub, :list, "items", request, result, options
856
+ yield result, response if block_given?
857
+ return result
858
+ end
828
859
  rescue ::Faraday::Error => e
829
860
  gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
830
861
  raise ::Google::Cloud::Error.from_error(gapic_error)
@@ -852,7 +883,7 @@ module Google
852
883
  #
853
884
  # @param target_resource [::String]
854
885
  # The target resource to list associations. It is an organization, or a folder.
855
- # @yield [result, env] Access the result along with the Faraday environment object
886
+ # @yield [result, response] Access the result along with the Faraday response object
856
887
  # @yieldparam result [::Google::Cloud::Compute::V1::FirewallPoliciesListAssociationsResponse]
857
888
  # @yieldparam response [::Faraday::Response]
858
889
  #
@@ -868,26 +899,24 @@ module Google
868
899
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
869
900
 
870
901
  # Customize the options with defaults
871
- call_metadata = {}
902
+ call_metadata = @config.rpcs.list_associations.metadata.to_h
872
903
 
873
904
  # Set x-goog-api-client header
874
905
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
875
906
  lib_name: @config.lib_name, lib_version: @config.lib_version,
876
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
907
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
908
+ transports_version_send: [:rest]
877
909
 
878
- options.apply_defaults timeout: @config.timeout,
910
+ options.apply_defaults timeout: @config.rpcs.list_associations.timeout,
879
911
  metadata: call_metadata
880
912
 
881
- uri, _body, query_string_params = transcode_list_associations request
882
- response = @client_stub.make_get_request(
883
- uri: uri,
884
- params: query_string_params,
885
- options: options
886
- )
887
- result = ::Google::Cloud::Compute::V1::FirewallPoliciesListAssociationsResponse.decode_json response.body, ignore_unknown_fields: true
913
+ options.apply_defaults timeout: @config.timeout,
914
+ metadata: @config.metadata
888
915
 
889
- yield result, response if block_given?
890
- result
916
+ @firewall_policies_stub.list_associations request, options do |result, response|
917
+ yield result, response if block_given?
918
+ return result
919
+ end
891
920
  rescue ::Faraday::Error => e
892
921
  gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
893
922
  raise ::Google::Cloud::Error.from_error(gapic_error)
@@ -923,11 +952,11 @@ module Google
923
952
  # 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.
924
953
  #
925
954
  # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
926
- # @yield [result, env] Access the result along with the Faraday environment object
927
- # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
955
+ # @yield [result, response] Access the result along with the Faraday response object
956
+ # @yieldparam result [::Gapic::Rest::BaseOperation]
928
957
  # @yieldparam response [::Faraday::Response]
929
958
  #
930
- # @return [::Google::Cloud::Compute::V1::Operation]
959
+ # @return [::Gapic::Rest::BaseOperation]
931
960
  #
932
961
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
933
962
  def move request, options = nil
@@ -939,26 +968,25 @@ module Google
939
968
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
940
969
 
941
970
  # Customize the options with defaults
942
- call_metadata = {}
971
+ call_metadata = @config.rpcs.move.metadata.to_h
943
972
 
944
973
  # Set x-goog-api-client header
945
974
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
946
975
  lib_name: @config.lib_name, lib_version: @config.lib_version,
947
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
976
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
977
+ transports_version_send: [:rest]
948
978
 
949
- options.apply_defaults timeout: @config.timeout,
979
+ options.apply_defaults timeout: @config.rpcs.move.timeout,
950
980
  metadata: call_metadata
951
981
 
952
- uri, _body, query_string_params = transcode_move request
953
- response = @client_stub.make_post_request(
954
- uri: uri,
955
- params: query_string_params,
956
- options: options
957
- )
958
- result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
982
+ options.apply_defaults timeout: @config.timeout,
983
+ metadata: @config.metadata
959
984
 
960
- yield result, response if block_given?
961
- result
985
+ @firewall_policies_stub.move request, options do |result, response|
986
+ result = ::Gapic::Rest::BaseOperation.new result
987
+ yield result, response if block_given?
988
+ return result
989
+ end
962
990
  rescue ::Faraday::Error => e
963
991
  gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
964
992
  raise ::Google::Cloud::Error.from_error(gapic_error)
@@ -994,11 +1022,11 @@ module Google
994
1022
  # 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.
995
1023
  #
996
1024
  # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
997
- # @yield [result, env] Access the result along with the Faraday environment object
998
- # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
1025
+ # @yield [result, response] Access the result along with the Faraday response object
1026
+ # @yieldparam result [::Gapic::Rest::BaseOperation]
999
1027
  # @yieldparam response [::Faraday::Response]
1000
1028
  #
1001
- # @return [::Google::Cloud::Compute::V1::Operation]
1029
+ # @return [::Gapic::Rest::BaseOperation]
1002
1030
  #
1003
1031
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1004
1032
  def patch request, options = nil
@@ -1010,26 +1038,25 @@ module Google
1010
1038
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1011
1039
 
1012
1040
  # Customize the options with defaults
1013
- call_metadata = {}
1041
+ call_metadata = @config.rpcs.patch.metadata.to_h
1014
1042
 
1015
1043
  # Set x-goog-api-client header
1016
1044
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1017
1045
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1018
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
1046
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1047
+ transports_version_send: [:rest]
1019
1048
 
1020
- options.apply_defaults timeout: @config.timeout,
1049
+ options.apply_defaults timeout: @config.rpcs.patch.timeout,
1021
1050
  metadata: call_metadata
1022
1051
 
1023
- uri, body, _query_string_params = transcode_patch request
1024
- response = @client_stub.make_patch_request(
1025
- uri: uri,
1026
- body: body,
1027
- options: options
1028
- )
1029
- result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
1052
+ options.apply_defaults timeout: @config.timeout,
1053
+ metadata: @config.metadata
1030
1054
 
1031
- yield result, response if block_given?
1032
- result
1055
+ @firewall_policies_stub.patch request, options do |result, response|
1056
+ result = ::Gapic::Rest::BaseOperation.new result
1057
+ yield result, response if block_given?
1058
+ return result
1059
+ end
1033
1060
  rescue ::Faraday::Error => e
1034
1061
  gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
1035
1062
  raise ::Google::Cloud::Error.from_error(gapic_error)
@@ -1067,11 +1094,11 @@ module Google
1067
1094
  # 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.
1068
1095
  #
1069
1096
  # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1070
- # @yield [result, env] Access the result along with the Faraday environment object
1071
- # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
1097
+ # @yield [result, response] Access the result along with the Faraday response object
1098
+ # @yieldparam result [::Gapic::Rest::BaseOperation]
1072
1099
  # @yieldparam response [::Faraday::Response]
1073
1100
  #
1074
- # @return [::Google::Cloud::Compute::V1::Operation]
1101
+ # @return [::Gapic::Rest::BaseOperation]
1075
1102
  #
1076
1103
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1077
1104
  def patch_rule request, options = nil
@@ -1083,26 +1110,25 @@ module Google
1083
1110
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1084
1111
 
1085
1112
  # Customize the options with defaults
1086
- call_metadata = {}
1113
+ call_metadata = @config.rpcs.patch_rule.metadata.to_h
1087
1114
 
1088
1115
  # Set x-goog-api-client header
1089
1116
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1090
1117
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1091
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
1118
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1119
+ transports_version_send: [:rest]
1092
1120
 
1093
- options.apply_defaults timeout: @config.timeout,
1121
+ options.apply_defaults timeout: @config.rpcs.patch_rule.timeout,
1094
1122
  metadata: call_metadata
1095
1123
 
1096
- uri, body, _query_string_params = transcode_patch_rule request
1097
- response = @client_stub.make_post_request(
1098
- uri: uri,
1099
- body: body,
1100
- options: options
1101
- )
1102
- result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
1124
+ options.apply_defaults timeout: @config.timeout,
1125
+ metadata: @config.metadata
1103
1126
 
1104
- yield result, response if block_given?
1105
- result
1127
+ @firewall_policies_stub.patch_rule request, options do |result, response|
1128
+ result = ::Gapic::Rest::BaseOperation.new result
1129
+ yield result, response if block_given?
1130
+ return result
1131
+ end
1106
1132
  rescue ::Faraday::Error => e
1107
1133
  gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
1108
1134
  raise ::Google::Cloud::Error.from_error(gapic_error)
@@ -1138,11 +1164,11 @@ module Google
1138
1164
  # 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.
1139
1165
  #
1140
1166
  # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1141
- # @yield [result, env] Access the result along with the Faraday environment object
1142
- # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
1167
+ # @yield [result, response] Access the result along with the Faraday response object
1168
+ # @yieldparam result [::Gapic::Rest::BaseOperation]
1143
1169
  # @yieldparam response [::Faraday::Response]
1144
1170
  #
1145
- # @return [::Google::Cloud::Compute::V1::Operation]
1171
+ # @return [::Gapic::Rest::BaseOperation]
1146
1172
  #
1147
1173
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1148
1174
  def remove_association request, options = nil
@@ -1154,26 +1180,25 @@ module Google
1154
1180
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1155
1181
 
1156
1182
  # Customize the options with defaults
1157
- call_metadata = {}
1183
+ call_metadata = @config.rpcs.remove_association.metadata.to_h
1158
1184
 
1159
1185
  # Set x-goog-api-client header
1160
1186
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1161
1187
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1162
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
1188
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1189
+ transports_version_send: [:rest]
1163
1190
 
1164
- options.apply_defaults timeout: @config.timeout,
1191
+ options.apply_defaults timeout: @config.rpcs.remove_association.timeout,
1165
1192
  metadata: call_metadata
1166
1193
 
1167
- uri, _body, query_string_params = transcode_remove_association request
1168
- response = @client_stub.make_post_request(
1169
- uri: uri,
1170
- params: query_string_params,
1171
- options: options
1172
- )
1173
- result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
1194
+ options.apply_defaults timeout: @config.timeout,
1195
+ metadata: @config.metadata
1174
1196
 
1175
- yield result, response if block_given?
1176
- result
1197
+ @firewall_policies_stub.remove_association request, options do |result, response|
1198
+ result = ::Gapic::Rest::BaseOperation.new result
1199
+ yield result, response if block_given?
1200
+ return result
1201
+ end
1177
1202
  rescue ::Faraday::Error => e
1178
1203
  gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
1179
1204
  raise ::Google::Cloud::Error.from_error(gapic_error)
@@ -1209,11 +1234,11 @@ module Google
1209
1234
  # 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.
1210
1235
  #
1211
1236
  # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1212
- # @yield [result, env] Access the result along with the Faraday environment object
1213
- # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
1237
+ # @yield [result, response] Access the result along with the Faraday response object
1238
+ # @yieldparam result [::Gapic::Rest::BaseOperation]
1214
1239
  # @yieldparam response [::Faraday::Response]
1215
1240
  #
1216
- # @return [::Google::Cloud::Compute::V1::Operation]
1241
+ # @return [::Gapic::Rest::BaseOperation]
1217
1242
  #
1218
1243
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1219
1244
  def remove_rule request, options = nil
@@ -1225,26 +1250,25 @@ module Google
1225
1250
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1226
1251
 
1227
1252
  # Customize the options with defaults
1228
- call_metadata = {}
1253
+ call_metadata = @config.rpcs.remove_rule.metadata.to_h
1229
1254
 
1230
1255
  # Set x-goog-api-client header
1231
1256
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1232
1257
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1233
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
1258
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1259
+ transports_version_send: [:rest]
1234
1260
 
1235
- options.apply_defaults timeout: @config.timeout,
1261
+ options.apply_defaults timeout: @config.rpcs.remove_rule.timeout,
1236
1262
  metadata: call_metadata
1237
1263
 
1238
- uri, _body, query_string_params = transcode_remove_rule request
1239
- response = @client_stub.make_post_request(
1240
- uri: uri,
1241
- params: query_string_params,
1242
- options: options
1243
- )
1244
- result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
1264
+ options.apply_defaults timeout: @config.timeout,
1265
+ metadata: @config.metadata
1245
1266
 
1246
- yield result, response if block_given?
1247
- result
1267
+ @firewall_policies_stub.remove_rule request, options do |result, response|
1268
+ result = ::Gapic::Rest::BaseOperation.new result
1269
+ yield result, response if block_given?
1270
+ return result
1271
+ end
1248
1272
  rescue ::Faraday::Error => e
1249
1273
  gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
1250
1274
  raise ::Google::Cloud::Error.from_error(gapic_error)
@@ -1274,7 +1298,7 @@ module Google
1274
1298
  # The body resource for this request
1275
1299
  # @param resource [::String]
1276
1300
  # Name or id of the resource for this request.
1277
- # @yield [result, env] Access the result along with the Faraday environment object
1301
+ # @yield [result, response] Access the result along with the Faraday response object
1278
1302
  # @yieldparam result [::Google::Cloud::Compute::V1::Policy]
1279
1303
  # @yieldparam response [::Faraday::Response]
1280
1304
  #
@@ -1290,26 +1314,24 @@ module Google
1290
1314
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1291
1315
 
1292
1316
  # Customize the options with defaults
1293
- call_metadata = {}
1317
+ call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
1294
1318
 
1295
1319
  # Set x-goog-api-client header
1296
1320
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1297
1321
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1298
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
1322
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1323
+ transports_version_send: [:rest]
1299
1324
 
1300
- options.apply_defaults timeout: @config.timeout,
1325
+ options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
1301
1326
  metadata: call_metadata
1302
1327
 
1303
- uri, body, _query_string_params = transcode_set_iam_policy request
1304
- response = @client_stub.make_post_request(
1305
- uri: uri,
1306
- body: body,
1307
- options: options
1308
- )
1309
- result = ::Google::Cloud::Compute::V1::Policy.decode_json response.body, ignore_unknown_fields: true
1328
+ options.apply_defaults timeout: @config.timeout,
1329
+ metadata: @config.metadata
1310
1330
 
1311
- yield result, response if block_given?
1312
- result
1331
+ @firewall_policies_stub.set_iam_policy request, options do |result, response|
1332
+ yield result, response if block_given?
1333
+ return result
1334
+ end
1313
1335
  rescue ::Faraday::Error => e
1314
1336
  gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
1315
1337
  raise ::Google::Cloud::Error.from_error(gapic_error)
@@ -1339,7 +1361,7 @@ module Google
1339
1361
  # Name or id of the resource for this request.
1340
1362
  # @param test_permissions_request_resource [::Google::Cloud::Compute::V1::TestPermissionsRequest, ::Hash]
1341
1363
  # The body resource for this request
1342
- # @yield [result, env] Access the result along with the Faraday environment object
1364
+ # @yield [result, response] Access the result along with the Faraday response object
1343
1365
  # @yieldparam result [::Google::Cloud::Compute::V1::TestPermissionsResponse]
1344
1366
  # @yieldparam response [::Faraday::Response]
1345
1367
  #
@@ -1355,26 +1377,24 @@ module Google
1355
1377
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1356
1378
 
1357
1379
  # Customize the options with defaults
1358
- call_metadata = {}
1380
+ call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
1359
1381
 
1360
1382
  # Set x-goog-api-client header
1361
1383
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1362
1384
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1363
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
1385
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1386
+ transports_version_send: [:rest]
1364
1387
 
1365
- options.apply_defaults timeout: @config.timeout,
1388
+ options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
1366
1389
  metadata: call_metadata
1367
1390
 
1368
- uri, body, _query_string_params = transcode_test_iam_permissions request
1369
- response = @client_stub.make_post_request(
1370
- uri: uri,
1371
- body: body,
1372
- options: options
1373
- )
1374
- result = ::Google::Cloud::Compute::V1::TestPermissionsResponse.decode_json response.body, ignore_unknown_fields: true
1391
+ options.apply_defaults timeout: @config.timeout,
1392
+ metadata: @config.metadata
1375
1393
 
1376
- yield result, response if block_given?
1377
- result
1394
+ @firewall_policies_stub.test_iam_permissions request, options do |result, response|
1395
+ yield result, response if block_given?
1396
+ return result
1397
+ end
1378
1398
  rescue ::Faraday::Error => e
1379
1399
  gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
1380
1400
  raise ::Google::Cloud::Error.from_error(gapic_error)
@@ -1429,6 +1449,9 @@ module Google
1429
1449
  # @!attribute [rw] timeout
1430
1450
  # The call timeout in seconds.
1431
1451
  # @return [::Numeric]
1452
+ # @!attribute [rw] metadata
1453
+ # Additional REST headers to be sent with the call.
1454
+ # @return [::Hash{::Symbol=>::String}]
1432
1455
  #
1433
1456
  class Configuration
1434
1457
  extend ::Gapic::Config
@@ -1442,6 +1465,7 @@ module Google
1442
1465
  config_attr :lib_name, nil, ::String, nil
1443
1466
  config_attr :lib_version, nil, ::String, nil
1444
1467
  config_attr :timeout, nil, ::Numeric, nil
1468
+ config_attr :metadata, nil, ::Hash, nil
1445
1469
 
1446
1470
  # @private
1447
1471
  def initialize parent_config = nil
@@ -1449,6 +1473,165 @@ module Google
1449
1473
 
1450
1474
  yield self if block_given?
1451
1475
  end
1476
+
1477
+ ##
1478
+ # Configurations for individual RPCs
1479
+ # @return [Rpcs]
1480
+ #
1481
+ def rpcs
1482
+ @rpcs ||= begin
1483
+ parent_rpcs = nil
1484
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
1485
+ Rpcs.new parent_rpcs
1486
+ end
1487
+ end
1488
+
1489
+ ##
1490
+ # Configuration RPC class for the FirewallPolicies API.
1491
+ #
1492
+ # Includes fields providing the configuration for each RPC in this service.
1493
+ # Each configuration object is of type `Gapic::Config::Method` and includes
1494
+ # the following configuration fields:
1495
+ #
1496
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
1497
+ #
1498
+ # there is one other field (`retry_policy`) that can be set
1499
+ # but is currently not supported for REST Gapic libraries.
1500
+ #
1501
+ class Rpcs
1502
+ ##
1503
+ # RPC-specific configuration for `add_association`
1504
+ # @return [::Gapic::Config::Method]
1505
+ #
1506
+ attr_reader :add_association
1507
+ ##
1508
+ # RPC-specific configuration for `add_rule`
1509
+ # @return [::Gapic::Config::Method]
1510
+ #
1511
+ attr_reader :add_rule
1512
+ ##
1513
+ # RPC-specific configuration for `clone_rules`
1514
+ # @return [::Gapic::Config::Method]
1515
+ #
1516
+ attr_reader :clone_rules
1517
+ ##
1518
+ # RPC-specific configuration for `delete`
1519
+ # @return [::Gapic::Config::Method]
1520
+ #
1521
+ attr_reader :delete
1522
+ ##
1523
+ # RPC-specific configuration for `get`
1524
+ # @return [::Gapic::Config::Method]
1525
+ #
1526
+ attr_reader :get
1527
+ ##
1528
+ # RPC-specific configuration for `get_association`
1529
+ # @return [::Gapic::Config::Method]
1530
+ #
1531
+ attr_reader :get_association
1532
+ ##
1533
+ # RPC-specific configuration for `get_iam_policy`
1534
+ # @return [::Gapic::Config::Method]
1535
+ #
1536
+ attr_reader :get_iam_policy
1537
+ ##
1538
+ # RPC-specific configuration for `get_rule`
1539
+ # @return [::Gapic::Config::Method]
1540
+ #
1541
+ attr_reader :get_rule
1542
+ ##
1543
+ # RPC-specific configuration for `insert`
1544
+ # @return [::Gapic::Config::Method]
1545
+ #
1546
+ attr_reader :insert
1547
+ ##
1548
+ # RPC-specific configuration for `list`
1549
+ # @return [::Gapic::Config::Method]
1550
+ #
1551
+ attr_reader :list
1552
+ ##
1553
+ # RPC-specific configuration for `list_associations`
1554
+ # @return [::Gapic::Config::Method]
1555
+ #
1556
+ attr_reader :list_associations
1557
+ ##
1558
+ # RPC-specific configuration for `move`
1559
+ # @return [::Gapic::Config::Method]
1560
+ #
1561
+ attr_reader :move
1562
+ ##
1563
+ # RPC-specific configuration for `patch`
1564
+ # @return [::Gapic::Config::Method]
1565
+ #
1566
+ attr_reader :patch
1567
+ ##
1568
+ # RPC-specific configuration for `patch_rule`
1569
+ # @return [::Gapic::Config::Method]
1570
+ #
1571
+ attr_reader :patch_rule
1572
+ ##
1573
+ # RPC-specific configuration for `remove_association`
1574
+ # @return [::Gapic::Config::Method]
1575
+ #
1576
+ attr_reader :remove_association
1577
+ ##
1578
+ # RPC-specific configuration for `remove_rule`
1579
+ # @return [::Gapic::Config::Method]
1580
+ #
1581
+ attr_reader :remove_rule
1582
+ ##
1583
+ # RPC-specific configuration for `set_iam_policy`
1584
+ # @return [::Gapic::Config::Method]
1585
+ #
1586
+ attr_reader :set_iam_policy
1587
+ ##
1588
+ # RPC-specific configuration for `test_iam_permissions`
1589
+ # @return [::Gapic::Config::Method]
1590
+ #
1591
+ attr_reader :test_iam_permissions
1592
+
1593
+ # @private
1594
+ def initialize parent_rpcs = nil
1595
+ add_association_config = parent_rpcs.add_association if parent_rpcs.respond_to? :add_association
1596
+ @add_association = ::Gapic::Config::Method.new add_association_config
1597
+ add_rule_config = parent_rpcs.add_rule if parent_rpcs.respond_to? :add_rule
1598
+ @add_rule = ::Gapic::Config::Method.new add_rule_config
1599
+ clone_rules_config = parent_rpcs.clone_rules if parent_rpcs.respond_to? :clone_rules
1600
+ @clone_rules = ::Gapic::Config::Method.new clone_rules_config
1601
+ delete_config = parent_rpcs.delete if parent_rpcs.respond_to? :delete
1602
+ @delete = ::Gapic::Config::Method.new delete_config
1603
+ get_config = parent_rpcs.get if parent_rpcs.respond_to? :get
1604
+ @get = ::Gapic::Config::Method.new get_config
1605
+ get_association_config = parent_rpcs.get_association if parent_rpcs.respond_to? :get_association
1606
+ @get_association = ::Gapic::Config::Method.new get_association_config
1607
+ get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
1608
+ @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
1609
+ get_rule_config = parent_rpcs.get_rule if parent_rpcs.respond_to? :get_rule
1610
+ @get_rule = ::Gapic::Config::Method.new get_rule_config
1611
+ insert_config = parent_rpcs.insert if parent_rpcs.respond_to? :insert
1612
+ @insert = ::Gapic::Config::Method.new insert_config
1613
+ list_config = parent_rpcs.list if parent_rpcs.respond_to? :list
1614
+ @list = ::Gapic::Config::Method.new list_config
1615
+ list_associations_config = parent_rpcs.list_associations if parent_rpcs.respond_to? :list_associations
1616
+ @list_associations = ::Gapic::Config::Method.new list_associations_config
1617
+ move_config = parent_rpcs.move if parent_rpcs.respond_to? :move
1618
+ @move = ::Gapic::Config::Method.new move_config
1619
+ patch_config = parent_rpcs.patch if parent_rpcs.respond_to? :patch
1620
+ @patch = ::Gapic::Config::Method.new patch_config
1621
+ patch_rule_config = parent_rpcs.patch_rule if parent_rpcs.respond_to? :patch_rule
1622
+ @patch_rule = ::Gapic::Config::Method.new patch_rule_config
1623
+ remove_association_config = parent_rpcs.remove_association if parent_rpcs.respond_to? :remove_association
1624
+ @remove_association = ::Gapic::Config::Method.new remove_association_config
1625
+ remove_rule_config = parent_rpcs.remove_rule if parent_rpcs.respond_to? :remove_rule
1626
+ @remove_rule = ::Gapic::Config::Method.new remove_rule_config
1627
+ set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
1628
+ @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
1629
+ test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
1630
+ @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
1631
+
1632
+ yield self if block_given?
1633
+ end
1634
+ end
1452
1635
  end
1453
1636
  end
1454
1637
  end