google-cloud-compute-v1 0.2.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (257) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +1 -1
  3. data/AUTHENTICATION.md +19 -37
  4. data/README.md +4 -30
  5. data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +127 -90
  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 +172 -130
  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 +218 -172
  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 +236 -185
  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 +308 -253
  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 +8507 -7466
  21. data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +127 -90
  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 +345 -272
  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 +184 -129
  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 +476 -343
  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 +191 -145
  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 +296 -171
  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 +145 -103
  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 +265 -144
  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 +215 -172
  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 +165 -118
  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 +118 -76
  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 +175 -124
  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 +218 -172
  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/image_family_views/credentials.rb +53 -0
  61. data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +318 -0
  62. data/lib/google/cloud/compute/v1/image_family_views/rest/service_stub.rb +89 -0
  63. data/lib/google/cloud/compute/v1/image_family_views/rest.rb +33 -0
  64. data/lib/google/cloud/compute/v1/image_family_views.rb +44 -0
  65. data/lib/google/cloud/compute/v1/images/rest/client.rb +291 -209
  66. data/lib/google/cloud/compute/v1/images/rest/service_stub.rb +542 -0
  67. data/lib/google/cloud/compute/v1/images/rest.rb +0 -2
  68. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +526 -477
  69. data/lib/google/cloud/compute/v1/instance_group_managers/rest/service_stub.rb +974 -0
  70. data/lib/google/cloud/compute/v1/instance_group_managers/rest.rb +0 -2
  71. data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +271 -233
  72. data/lib/google/cloud/compute/v1/instance_groups/rest/service_stub.rb +467 -0
  73. data/lib/google/cloud/compute/v1/instance_groups/rest.rb +0 -2
  74. data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +202 -139
  75. data/lib/google/cloud/compute/v1/instance_templates/rest/service_stub.rb +362 -0
  76. data/lib/google/cloud/compute/v1/instance_templates/rest.rb +0 -2
  77. data/lib/google/cloud/compute/v1/instances/rest/client.rb +1186 -797
  78. data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +2018 -0
  79. data/lib/google/cloud/compute/v1/instances/rest.rb +0 -2
  80. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +195 -151
  81. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/service_stub.rb +326 -0
  82. data/lib/google/cloud/compute/v1/interconnect_attachments/rest.rb +0 -2
  83. data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +100 -63
  84. data/lib/google/cloud/compute/v1/interconnect_locations/rest/service_stub.rb +138 -0
  85. data/lib/google/cloud/compute/v1/interconnect_locations/rest.rb +0 -2
  86. data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +189 -135
  87. data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +318 -0
  88. data/lib/google/cloud/compute/v1/interconnects/rest.rb +0 -2
  89. data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +93 -50
  90. data/lib/google/cloud/compute/v1/license_codes/rest/service_stub.rb +133 -0
  91. data/lib/google/cloud/compute/v1/license_codes/rest.rb +0 -2
  92. data/lib/google/cloud/compute/v1/licenses/rest/client.rb +209 -146
  93. data/lib/google/cloud/compute/v1/licenses/rest/service_stub.rb +362 -0
  94. data/lib/google/cloud/compute/v1/licenses/rest.rb +0 -2
  95. data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +127 -90
  96. data/lib/google/cloud/compute/v1/machine_types/rest/service_stub.rb +188 -0
  97. data/lib/google/cloud/compute/v1/machine_types/rest.rb +0 -2
  98. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +261 -213
  99. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/service_stub.rb +465 -0
  100. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest.rb +0 -2
  101. data/lib/google/cloud/compute/v1/networks/rest/client.rb +363 -234
  102. data/lib/google/cloud/compute/v1/networks/rest/service_stub.rb +553 -0
  103. data/lib/google/cloud/compute/v1/networks/rest.rb +0 -2
  104. data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +345 -277
  105. data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +646 -0
  106. data/lib/google/cloud/compute/v1/node_groups/rest.rb +0 -2
  107. data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +229 -166
  108. data/lib/google/cloud/compute/v1/node_templates/rest/service_stub.rb +412 -0
  109. data/lib/google/cloud/compute/v1/node_templates/rest.rb +0 -2
  110. data/lib/google/cloud/compute/v1/node_types/rest/client.rb +127 -90
  111. data/lib/google/cloud/compute/v1/node_types/rest/service_stub.rb +188 -0
  112. data/lib/google/cloud/compute/v1/node_types/rest.rb +0 -2
  113. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +213 -163
  114. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/service_stub.rb +369 -0
  115. data/lib/google/cloud/compute/v1/packet_mirrorings/rest.rb +0 -2
  116. data/lib/google/cloud/compute/v1/projects/rest/client.rb +351 -288
  117. data/lib/google/cloud/compute/v1/projects/rest/service_stub.rb +643 -0
  118. data/lib/google/cloud/compute/v1/projects/rest.rb +0 -2
  119. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +175 -124
  120. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +275 -0
  121. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest.rb +0 -2
  122. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +203 -151
  123. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +325 -0
  124. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest.rb +0 -2
  125. data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +191 -145
  126. data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +323 -0
  127. data/lib/google/cloud/compute/v1/region_autoscalers/rest.rb +0 -2
  128. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +212 -160
  129. data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +365 -0
  130. data/lib/google/cloud/compute/v1/region_backend_services/rest.rb +0 -2
  131. data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +151 -112
  132. data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +234 -0
  133. data/lib/google/cloud/compute/v1/region_commitments/rest.rb +0 -2
  134. data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +100 -63
  135. data/lib/google/cloud/compute/v1/region_disk_types/rest/service_stub.rb +138 -0
  136. data/lib/google/cloud/compute/v1/region_disk_types/rest.rb +0 -2
  137. data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +318 -245
  138. data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +593 -0
  139. data/lib/google/cloud/compute/v1/region_disks/rest.rb +0 -2
  140. data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +168 -124
  141. data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +275 -0
  142. data/lib/google/cloud/compute/v1/region_health_check_services/rest.rb +0 -2
  143. data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +191 -145
  144. data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +321 -0
  145. data/lib/google/cloud/compute/v1/region_health_checks/rest.rb +0 -2
  146. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +498 -445
  147. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/service_stub.rb +924 -0
  148. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest.rb +0 -2
  149. data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +148 -113
  150. data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +234 -0
  151. data/lib/google/cloud/compute/v1/region_instance_groups/rest.rb +0 -2
  152. data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +76 -45
  153. data/lib/google/cloud/compute/v1/region_instances/rest/service_stub.rb +92 -0
  154. data/lib/google/cloud/compute/v1/region_instances/rest.rb +0 -2
  155. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +145 -103
  156. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +229 -0
  157. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest.rb +0 -2
  158. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +145 -103
  159. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +229 -0
  160. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest.rb +0 -2
  161. data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +137 -90
  162. data/lib/google/cloud/compute/v1/region_operations/rest/service_stub.rb +224 -0
  163. data/lib/google/cloud/compute/v1/region_operations/rest.rb +0 -2
  164. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +145 -103
  165. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/service_stub.rb +229 -0
  166. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest.rb +0 -2
  167. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +168 -124
  168. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/service_stub.rb +275 -0
  169. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest.rb +0 -2
  170. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +191 -145
  171. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +321 -0
  172. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest.rb +0 -2
  173. data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +205 -137
  174. data/lib/google/cloud/compute/v1/region_url_maps/rest/service_stub.rb +365 -0
  175. data/lib/google/cloud/compute/v1/region_url_maps/rest.rb +0 -2
  176. data/lib/google/cloud/compute/v1/regions/rest/client.rb +100 -63
  177. data/lib/google/cloud/compute/v1/regions/rest/service_stub.rb +138 -0
  178. data/lib/google/cloud/compute/v1/regions/rest.rb +0 -2
  179. data/lib/google/cloud/compute/v1/reservations/rest/client.rb +252 -187
  180. data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +458 -0
  181. data/lib/google/cloud/compute/v1/reservations/rest.rb +0 -2
  182. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +229 -166
  183. data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +412 -0
  184. data/lib/google/cloud/compute/v1/resource_policies/rest.rb +0 -2
  185. data/lib/google/cloud/compute/v1/routers/rest/client.rb +284 -222
  186. data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +507 -0
  187. data/lib/google/cloud/compute/v1/routers/rest.rb +0 -2
  188. data/lib/google/cloud/compute/v1/routes/rest/client.rb +145 -103
  189. data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +229 -0
  190. data/lib/google/cloud/compute/v1/routes/rest.rb +0 -2
  191. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +277 -205
  192. data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +504 -0
  193. data/lib/google/cloud/compute/v1/security_policies/rest.rb +0 -2
  194. data/lib/google/cloud/compute/v1/service_attachments/credentials.rb +52 -0
  195. data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +954 -0
  196. data/lib/google/cloud/compute/v1/service_attachments/rest/service_stub.rb +458 -0
  197. data/lib/google/cloud/compute/v1/service_attachments/rest.rb +33 -0
  198. data/lib/google/cloud/compute/v1/service_attachments.rb +44 -0
  199. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +201 -135
  200. data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +360 -0
  201. data/lib/google/cloud/compute/v1/snapshots/rest.rb +0 -2
  202. data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +172 -130
  203. data/lib/google/cloud/compute/v1/ssl_certificates/rest/service_stub.rb +279 -0
  204. data/lib/google/cloud/compute/v1/ssl_certificates/rest.rb +0 -2
  205. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +192 -149
  206. data/lib/google/cloud/compute/v1/ssl_policies/rest/service_stub.rb +324 -0
  207. data/lib/google/cloud/compute/v1/ssl_policies/rest.rb +0 -2
  208. data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +325 -256
  209. data/lib/google/cloud/compute/v1/subnetworks/rest/service_stub.rb +600 -0
  210. data/lib/google/cloud/compute/v1/subnetworks/rest.rb +0 -2
  211. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +168 -124
  212. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/service_stub.rb +275 -0
  213. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest.rb +0 -2
  214. data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +219 -173
  215. data/lib/google/cloud/compute/v1/target_http_proxies/rest/service_stub.rb +371 -0
  216. data/lib/google/cloud/compute/v1/target_http_proxies/rest.rb +0 -2
  217. data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +340 -213
  218. data/lib/google/cloud/compute/v1/target_https_proxies/rest/service_stub.rb +509 -0
  219. data/lib/google/cloud/compute/v1/target_https_proxies/rest.rb +0 -2
  220. data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +172 -130
  221. data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +279 -0
  222. data/lib/google/cloud/compute/v1/target_instances/rest.rb +0 -2
  223. data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +305 -247
  224. data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +554 -0
  225. data/lib/google/cloud/compute/v1/target_pools/rest.rb +0 -2
  226. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +237 -187
  227. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +413 -0
  228. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest.rb +0 -2
  229. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +191 -145
  230. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +321 -0
  231. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest.rb +0 -2
  232. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +172 -130
  233. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/service_stub.rb +279 -0
  234. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest.rb +0 -2
  235. data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +260 -208
  236. data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +461 -0
  237. data/lib/google/cloud/compute/v1/url_maps/rest.rb +0 -2
  238. data/lib/google/cloud/compute/v1/version.rb +1 -1
  239. data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +234 -174
  240. data/lib/google/cloud/compute/v1/vpn_gateways/rest/service_stub.rb +412 -0
  241. data/lib/google/cloud/compute/v1/vpn_gateways/rest.rb +0 -2
  242. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +172 -130
  243. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/service_stub.rb +279 -0
  244. data/lib/google/cloud/compute/v1/vpn_tunnels/rest.rb +0 -2
  245. data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +137 -90
  246. data/lib/google/cloud/compute/v1/zone_operations/rest/service_stub.rb +224 -0
  247. data/lib/google/cloud/compute/v1/zone_operations/rest.rb +0 -2
  248. data/lib/google/cloud/compute/v1/zones/rest/client.rb +100 -63
  249. data/lib/google/cloud/compute/v1/zones/rest/service_stub.rb +138 -0
  250. data/lib/google/cloud/compute/v1/zones/rest.rb +0 -2
  251. data/lib/google/cloud/compute/v1.rb +7 -0
  252. data/proto_docs/README.md +1 -1
  253. data/proto_docs/google/api/field_behavior.rb +6 -0
  254. data/proto_docs/google/api/resource.rb +10 -71
  255. data/proto_docs/google/cloud/compute/v1/compute.rb +18964 -19481
  256. data/proto_docs/google/cloud/extended_operations.rb +51 -0
  257. metadata +110 -9
@@ -0,0 +1,954 @@
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/errors"
20
+ require "google/cloud/compute/v1/compute_pb"
21
+ require "google/cloud/compute/v1/service_attachments/rest/service_stub"
22
+
23
+ module Google
24
+ module Cloud
25
+ module Compute
26
+ module V1
27
+ module ServiceAttachments
28
+ module Rest
29
+ ##
30
+ # REST client for the ServiceAttachments service.
31
+ #
32
+ # The ServiceAttachments API.
33
+ #
34
+ class Client
35
+ # @private
36
+ attr_reader :service_attachments_stub
37
+
38
+ ##
39
+ # Configure the ServiceAttachments Client class.
40
+ #
41
+ # See {::Google::Cloud::Compute::V1::ServiceAttachments::Rest::Client::Configuration}
42
+ # for a description of the configuration fields.
43
+ #
44
+ # @example
45
+ #
46
+ # # Modify the configuration for all ServiceAttachments clients
47
+ # ::Google::Cloud::Compute::V1::ServiceAttachments::Rest::Client.configure do |config|
48
+ # config.timeout = 10.0
49
+ # end
50
+ #
51
+ # @yield [config] Configure the Client client.
52
+ # @yieldparam config [Client::Configuration]
53
+ #
54
+ # @return [Client::Configuration]
55
+ #
56
+ def self.configure
57
+ @configure ||= begin
58
+ namespace = ["Google", "Cloud", "Compute", "V1"]
59
+ parent_config = while namespace.any?
60
+ parent_name = namespace.join "::"
61
+ parent_const = const_get parent_name
62
+ break parent_const.configure if parent_const.respond_to? :configure
63
+ namespace.pop
64
+ end
65
+ default_config = Client::Configuration.new parent_config
66
+
67
+ default_config.rpcs.aggregated_list.timeout = 600.0
68
+ default_config.rpcs.aggregated_list.retry_policy = {
69
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
70
+ }
71
+
72
+ default_config.rpcs.delete.timeout = 600.0
73
+
74
+ default_config.rpcs.get.timeout = 600.0
75
+ default_config.rpcs.get.retry_policy = {
76
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
77
+ }
78
+
79
+ default_config.rpcs.get_iam_policy.timeout = 600.0
80
+ default_config.rpcs.get_iam_policy.retry_policy = {
81
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
82
+ }
83
+
84
+ default_config.rpcs.insert.timeout = 600.0
85
+
86
+ default_config.rpcs.list.timeout = 600.0
87
+ default_config.rpcs.list.retry_policy = {
88
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
89
+ }
90
+
91
+ default_config.rpcs.patch.timeout = 600.0
92
+
93
+ default_config.rpcs.set_iam_policy.timeout = 600.0
94
+
95
+ default_config.rpcs.test_iam_permissions.timeout = 600.0
96
+
97
+ default_config
98
+ end
99
+ yield @configure if block_given?
100
+ @configure
101
+ end
102
+
103
+ ##
104
+ # Configure the ServiceAttachments Client instance.
105
+ #
106
+ # The configuration is set to the derived mode, meaning that values can be changed,
107
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
108
+ # should be made on {Client.configure}.
109
+ #
110
+ # See {::Google::Cloud::Compute::V1::ServiceAttachments::Rest::Client::Configuration}
111
+ # for a description of the configuration fields.
112
+ #
113
+ # @yield [config] Configure the Client client.
114
+ # @yieldparam config [Client::Configuration]
115
+ #
116
+ # @return [Client::Configuration]
117
+ #
118
+ def configure
119
+ yield @config if block_given?
120
+ @config
121
+ end
122
+
123
+ ##
124
+ # Create a new ServiceAttachments REST client object.
125
+ #
126
+ # @example
127
+ #
128
+ # # Create a client using the default configuration
129
+ # client = ::Google::Cloud::Compute::V1::ServiceAttachments::Rest::Client.new
130
+ #
131
+ # # Create a client using a custom configuration
132
+ # client = ::Google::Cloud::Compute::V1::ServiceAttachments::Rest::Client.new do |config|
133
+ # config.timeout = 10.0
134
+ # end
135
+ #
136
+ # @yield [config] Configure the ServiceAttachments client.
137
+ # @yieldparam config [Client::Configuration]
138
+ #
139
+ def initialize
140
+ # Create the configuration object
141
+ @config = Configuration.new Client.configure
142
+
143
+ # Yield the configuration if needed
144
+ yield @config if block_given?
145
+
146
+ # Create credentials
147
+ credentials = @config.credentials
148
+ credentials ||= Credentials.default scope: @config.scope
149
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
150
+ credentials = Credentials.new credentials, scope: @config.scope
151
+ end
152
+
153
+ @service_attachments_stub = ::Google::Cloud::Compute::V1::ServiceAttachments::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
154
+ end
155
+
156
+ # Service calls
157
+
158
+ ##
159
+ # Retrieves the list of all ServiceAttachment resources, regional and global, available to the specified project.
160
+ #
161
+ # @overload aggregated_list(request, options = nil)
162
+ # Pass arguments to `aggregated_list` via a request object, either of type
163
+ # {::Google::Cloud::Compute::V1::AggregatedListServiceAttachmentsRequest} or an equivalent Hash.
164
+ #
165
+ # @param request [::Google::Cloud::Compute::V1::AggregatedListServiceAttachmentsRequest, ::Hash]
166
+ # A request object representing the call parameters. Required. To specify no
167
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
168
+ # @param options [::Gapic::CallOptions, ::Hash]
169
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
170
+ # Note: currently retry functionality is not implemented. While it is possible
171
+ # to set it using ::Gapic::CallOptions, it will not be applied
172
+ #
173
+ # @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil)
174
+ # Pass arguments to `aggregated_list` via keyword arguments. Note that at
175
+ # least one keyword argument is required. To specify no parameters, or to keep all
176
+ # the default parameter values, pass an empty Hash as a request object (see above).
177
+ #
178
+ # @param filter [::String]
179
+ # A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
180
+ # @param include_all_scopes [::Boolean]
181
+ # Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
182
+ # @param max_results [::Integer]
183
+ # The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
184
+ # @param order_by [::String]
185
+ # Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
186
+ # @param page_token [::String]
187
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
188
+ # @param project [::String]
189
+ # Name of the project scoping this request.
190
+ # @param return_partial_success [::Boolean]
191
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
192
+ # @yield [result, response] Access the result along with the Faraday response object
193
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::ServiceAttachmentsScopedList>]
194
+ # @yieldparam response [::Faraday::Response]
195
+ #
196
+ # @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::ServiceAttachmentsScopedList>]
197
+ #
198
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
199
+ def aggregated_list request, options = nil
200
+ raise ::ArgumentError, "request must be provided" if request.nil?
201
+
202
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::AggregatedListServiceAttachmentsRequest
203
+
204
+ # Converts hash and nil to an options object
205
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
206
+
207
+ # Customize the options with defaults
208
+ call_metadata = @config.rpcs.aggregated_list.metadata.to_h
209
+
210
+ # Set x-goog-api-client header
211
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
212
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
213
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
214
+ transports_version_send: [:rest]
215
+
216
+ options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
217
+ metadata: call_metadata
218
+
219
+ options.apply_defaults timeout: @config.timeout,
220
+ metadata: @config.metadata
221
+
222
+ @service_attachments_stub.aggregated_list request, options do |result, response|
223
+ result = ::Gapic::Rest::PagedEnumerable.new @service_attachments_stub, :aggregated_list, "items", request, result, options
224
+ yield result, response if block_given?
225
+ return result
226
+ end
227
+ rescue ::Faraday::Error => e
228
+ gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
229
+ raise ::Google::Cloud::Error.from_error(gapic_error)
230
+ end
231
+
232
+ ##
233
+ # Deletes the specified ServiceAttachment in the given scope
234
+ #
235
+ # @overload delete(request, options = nil)
236
+ # Pass arguments to `delete` via a request object, either of type
237
+ # {::Google::Cloud::Compute::V1::DeleteServiceAttachmentRequest} or an equivalent Hash.
238
+ #
239
+ # @param request [::Google::Cloud::Compute::V1::DeleteServiceAttachmentRequest, ::Hash]
240
+ # A request object representing the call parameters. Required. To specify no
241
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
242
+ # @param options [::Gapic::CallOptions, ::Hash]
243
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
244
+ # Note: currently retry functionality is not implemented. While it is possible
245
+ # to set it using ::Gapic::CallOptions, it will not be applied
246
+ #
247
+ # @overload delete(project: nil, region: nil, request_id: nil, service_attachment: nil)
248
+ # Pass arguments to `delete` via keyword arguments. Note that at
249
+ # least one keyword argument is required. To specify no parameters, or to keep all
250
+ # the default parameter values, pass an empty Hash as a request object (see above).
251
+ #
252
+ # @param project [::String]
253
+ # Project ID for this request.
254
+ # @param region [::String]
255
+ # Name of the region of this request.
256
+ # @param request_id [::String]
257
+ # 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). end_interface: MixerMutationRequestBuilder
258
+ # @param service_attachment [::String]
259
+ # Name of the ServiceAttachment resource to delete.
260
+ # @yield [result, response] Access the result along with the Faraday response object
261
+ # @yieldparam result [::Gapic::Rest::BaseOperation]
262
+ # @yieldparam response [::Faraday::Response]
263
+ #
264
+ # @return [::Gapic::Rest::BaseOperation]
265
+ #
266
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
267
+ def delete request, options = nil
268
+ raise ::ArgumentError, "request must be provided" if request.nil?
269
+
270
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::DeleteServiceAttachmentRequest
271
+
272
+ # Converts hash and nil to an options object
273
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
274
+
275
+ # Customize the options with defaults
276
+ call_metadata = @config.rpcs.delete.metadata.to_h
277
+
278
+ # Set x-goog-api-client header
279
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
280
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
281
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
282
+ transports_version_send: [:rest]
283
+
284
+ options.apply_defaults timeout: @config.rpcs.delete.timeout,
285
+ metadata: call_metadata
286
+
287
+ options.apply_defaults timeout: @config.timeout,
288
+ metadata: @config.metadata
289
+
290
+ @service_attachments_stub.delete request, options do |result, response|
291
+ result = ::Gapic::Rest::BaseOperation.new result
292
+ yield result, response if block_given?
293
+ return result
294
+ end
295
+ rescue ::Faraday::Error => e
296
+ gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
297
+ raise ::Google::Cloud::Error.from_error(gapic_error)
298
+ end
299
+
300
+ ##
301
+ # Returns the specified ServiceAttachment resource in the given scope.
302
+ #
303
+ # @overload get(request, options = nil)
304
+ # Pass arguments to `get` via a request object, either of type
305
+ # {::Google::Cloud::Compute::V1::GetServiceAttachmentRequest} or an equivalent Hash.
306
+ #
307
+ # @param request [::Google::Cloud::Compute::V1::GetServiceAttachmentRequest, ::Hash]
308
+ # A request object representing the call parameters. Required. To specify no
309
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
310
+ # @param options [::Gapic::CallOptions, ::Hash]
311
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
312
+ # Note: currently retry functionality is not implemented. While it is possible
313
+ # to set it using ::Gapic::CallOptions, it will not be applied
314
+ #
315
+ # @overload get(project: nil, region: nil, service_attachment: nil)
316
+ # Pass arguments to `get` via keyword arguments. Note that at
317
+ # least one keyword argument is required. To specify no parameters, or to keep all
318
+ # the default parameter values, pass an empty Hash as a request object (see above).
319
+ #
320
+ # @param project [::String]
321
+ # Project ID for this request.
322
+ # @param region [::String]
323
+ # Name of the region of this request.
324
+ # @param service_attachment [::String]
325
+ # Name of the ServiceAttachment resource to return.
326
+ # @yield [result, response] Access the result along with the Faraday response object
327
+ # @yieldparam result [::Google::Cloud::Compute::V1::ServiceAttachment]
328
+ # @yieldparam response [::Faraday::Response]
329
+ #
330
+ # @return [::Google::Cloud::Compute::V1::ServiceAttachment]
331
+ #
332
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
333
+ def get request, options = nil
334
+ raise ::ArgumentError, "request must be provided" if request.nil?
335
+
336
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::GetServiceAttachmentRequest
337
+
338
+ # Converts hash and nil to an options object
339
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
340
+
341
+ # Customize the options with defaults
342
+ call_metadata = @config.rpcs.get.metadata.to_h
343
+
344
+ # Set x-goog-api-client header
345
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
346
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
347
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
348
+ transports_version_send: [:rest]
349
+
350
+ options.apply_defaults timeout: @config.rpcs.get.timeout,
351
+ metadata: call_metadata
352
+
353
+ options.apply_defaults timeout: @config.timeout,
354
+ metadata: @config.metadata
355
+
356
+ @service_attachments_stub.get request, options do |result, response|
357
+ yield result, response if block_given?
358
+ return result
359
+ end
360
+ rescue ::Faraday::Error => e
361
+ gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
362
+ raise ::Google::Cloud::Error.from_error(gapic_error)
363
+ end
364
+
365
+ ##
366
+ # Gets the access control policy for a resource. May be empty if no such policy or resource exists.
367
+ #
368
+ # @overload get_iam_policy(request, options = nil)
369
+ # Pass arguments to `get_iam_policy` via a request object, either of type
370
+ # {::Google::Cloud::Compute::V1::GetIamPolicyServiceAttachmentRequest} or an equivalent Hash.
371
+ #
372
+ # @param request [::Google::Cloud::Compute::V1::GetIamPolicyServiceAttachmentRequest, ::Hash]
373
+ # A request object representing the call parameters. Required. To specify no
374
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
375
+ # @param options [::Gapic::CallOptions, ::Hash]
376
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
377
+ # Note: currently retry functionality is not implemented. While it is possible
378
+ # to set it using ::Gapic::CallOptions, it will not be applied
379
+ #
380
+ # @overload get_iam_policy(options_requested_policy_version: nil, project: nil, region: nil, resource: nil)
381
+ # Pass arguments to `get_iam_policy` via keyword arguments. Note that at
382
+ # least one keyword argument is required. To specify no parameters, or to keep all
383
+ # the default parameter values, pass an empty Hash as a request object (see above).
384
+ #
385
+ # @param options_requested_policy_version [::Integer]
386
+ # Requested IAM Policy version.
387
+ # @param project [::String]
388
+ # Project ID for this request.
389
+ # @param region [::String]
390
+ # The name of the region for this request.
391
+ # @param resource [::String]
392
+ # Name or id of the resource for this request.
393
+ # @yield [result, response] Access the result along with the Faraday response object
394
+ # @yieldparam result [::Google::Cloud::Compute::V1::Policy]
395
+ # @yieldparam response [::Faraday::Response]
396
+ #
397
+ # @return [::Google::Cloud::Compute::V1::Policy]
398
+ #
399
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
400
+ def get_iam_policy request, options = nil
401
+ raise ::ArgumentError, "request must be provided" if request.nil?
402
+
403
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::GetIamPolicyServiceAttachmentRequest
404
+
405
+ # Converts hash and nil to an options object
406
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
407
+
408
+ # Customize the options with defaults
409
+ call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
410
+
411
+ # Set x-goog-api-client header
412
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
413
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
414
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
415
+ transports_version_send: [:rest]
416
+
417
+ options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
418
+ metadata: call_metadata
419
+
420
+ options.apply_defaults timeout: @config.timeout,
421
+ metadata: @config.metadata
422
+
423
+ @service_attachments_stub.get_iam_policy request, options do |result, response|
424
+ yield result, response if block_given?
425
+ return result
426
+ end
427
+ rescue ::Faraday::Error => e
428
+ gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
429
+ raise ::Google::Cloud::Error.from_error(gapic_error)
430
+ end
431
+
432
+ ##
433
+ # Creates a ServiceAttachment in the specified project in the given scope using the parameters that are included in the request.
434
+ #
435
+ # @overload insert(request, options = nil)
436
+ # Pass arguments to `insert` via a request object, either of type
437
+ # {::Google::Cloud::Compute::V1::InsertServiceAttachmentRequest} or an equivalent Hash.
438
+ #
439
+ # @param request [::Google::Cloud::Compute::V1::InsertServiceAttachmentRequest, ::Hash]
440
+ # A request object representing the call parameters. Required. To specify no
441
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
442
+ # @param options [::Gapic::CallOptions, ::Hash]
443
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
444
+ # Note: currently retry functionality is not implemented. While it is possible
445
+ # to set it using ::Gapic::CallOptions, it will not be applied
446
+ #
447
+ # @overload insert(project: nil, region: nil, request_id: nil, service_attachment_resource: nil)
448
+ # Pass arguments to `insert` via keyword arguments. Note that at
449
+ # least one keyword argument is required. To specify no parameters, or to keep all
450
+ # the default parameter values, pass an empty Hash as a request object (see above).
451
+ #
452
+ # @param project [::String]
453
+ # Project ID for this request.
454
+ # @param region [::String]
455
+ # Name of the region of this request.
456
+ # @param request_id [::String]
457
+ # 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). end_interface: MixerMutationRequestBuilder
458
+ # @param service_attachment_resource [::Google::Cloud::Compute::V1::ServiceAttachment, ::Hash]
459
+ # The body resource for this request
460
+ # @yield [result, response] Access the result along with the Faraday response object
461
+ # @yieldparam result [::Gapic::Rest::BaseOperation]
462
+ # @yieldparam response [::Faraday::Response]
463
+ #
464
+ # @return [::Gapic::Rest::BaseOperation]
465
+ #
466
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
467
+ def insert request, options = nil
468
+ raise ::ArgumentError, "request must be provided" if request.nil?
469
+
470
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::InsertServiceAttachmentRequest
471
+
472
+ # Converts hash and nil to an options object
473
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
474
+
475
+ # Customize the options with defaults
476
+ call_metadata = @config.rpcs.insert.metadata.to_h
477
+
478
+ # Set x-goog-api-client header
479
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
480
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
481
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
482
+ transports_version_send: [:rest]
483
+
484
+ options.apply_defaults timeout: @config.rpcs.insert.timeout,
485
+ metadata: call_metadata
486
+
487
+ options.apply_defaults timeout: @config.timeout,
488
+ metadata: @config.metadata
489
+
490
+ @service_attachments_stub.insert request, options do |result, response|
491
+ result = ::Gapic::Rest::BaseOperation.new result
492
+ yield result, response if block_given?
493
+ return result
494
+ end
495
+ rescue ::Faraday::Error => e
496
+ gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
497
+ raise ::Google::Cloud::Error.from_error(gapic_error)
498
+ end
499
+
500
+ ##
501
+ # Lists the ServiceAttachments for a project in the given scope.
502
+ #
503
+ # @overload list(request, options = nil)
504
+ # Pass arguments to `list` via a request object, either of type
505
+ # {::Google::Cloud::Compute::V1::ListServiceAttachmentsRequest} or an equivalent Hash.
506
+ #
507
+ # @param request [::Google::Cloud::Compute::V1::ListServiceAttachmentsRequest, ::Hash]
508
+ # A request object representing the call parameters. Required. To specify no
509
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
510
+ # @param options [::Gapic::CallOptions, ::Hash]
511
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
512
+ # Note: currently retry functionality is not implemented. While it is possible
513
+ # to set it using ::Gapic::CallOptions, it will not be applied
514
+ #
515
+ # @overload list(filter: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, region: nil, return_partial_success: nil)
516
+ # Pass arguments to `list` via keyword arguments. Note that at
517
+ # least one keyword argument is required. To specify no parameters, or to keep all
518
+ # the default parameter values, pass an empty Hash as a request object (see above).
519
+ #
520
+ # @param filter [::String]
521
+ # A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
522
+ # @param max_results [::Integer]
523
+ # The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
524
+ # @param order_by [::String]
525
+ # Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
526
+ # @param page_token [::String]
527
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
528
+ # @param project [::String]
529
+ # Project ID for this request.
530
+ # @param region [::String]
531
+ # Name of the region of this request.
532
+ # @param return_partial_success [::Boolean]
533
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
534
+ # @yield [result, response] Access the result along with the Faraday response object
535
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::ServiceAttachment>]
536
+ # @yieldparam response [::Faraday::Response]
537
+ #
538
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::ServiceAttachment>]
539
+ #
540
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
541
+ def list request, options = nil
542
+ raise ::ArgumentError, "request must be provided" if request.nil?
543
+
544
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::ListServiceAttachmentsRequest
545
+
546
+ # Converts hash and nil to an options object
547
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
548
+
549
+ # Customize the options with defaults
550
+ call_metadata = @config.rpcs.list.metadata.to_h
551
+
552
+ # Set x-goog-api-client header
553
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
554
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
555
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
556
+ transports_version_send: [:rest]
557
+
558
+ options.apply_defaults timeout: @config.rpcs.list.timeout,
559
+ metadata: call_metadata
560
+
561
+ options.apply_defaults timeout: @config.timeout,
562
+ metadata: @config.metadata
563
+
564
+ @service_attachments_stub.list request, options do |result, response|
565
+ result = ::Gapic::Rest::PagedEnumerable.new @service_attachments_stub, :list, "items", request, result, options
566
+ yield result, response if block_given?
567
+ return result
568
+ end
569
+ rescue ::Faraday::Error => e
570
+ gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
571
+ raise ::Google::Cloud::Error.from_error(gapic_error)
572
+ end
573
+
574
+ ##
575
+ # Patches the specified ServiceAttachment resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.
576
+ #
577
+ # @overload patch(request, options = nil)
578
+ # Pass arguments to `patch` via a request object, either of type
579
+ # {::Google::Cloud::Compute::V1::PatchServiceAttachmentRequest} or an equivalent Hash.
580
+ #
581
+ # @param request [::Google::Cloud::Compute::V1::PatchServiceAttachmentRequest, ::Hash]
582
+ # A request object representing the call parameters. Required. To specify no
583
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
584
+ # @param options [::Gapic::CallOptions, ::Hash]
585
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
586
+ # Note: currently retry functionality is not implemented. While it is possible
587
+ # to set it using ::Gapic::CallOptions, it will not be applied
588
+ #
589
+ # @overload patch(project: nil, region: nil, request_id: nil, service_attachment: nil, service_attachment_resource: nil)
590
+ # Pass arguments to `patch` via keyword arguments. Note that at
591
+ # least one keyword argument is required. To specify no parameters, or to keep all
592
+ # the default parameter values, pass an empty Hash as a request object (see above).
593
+ #
594
+ # @param project [::String]
595
+ # Project ID for this request.
596
+ # @param region [::String]
597
+ # The region scoping this request and should conform to RFC1035.
598
+ # @param request_id [::String]
599
+ # 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). end_interface: MixerMutationRequestBuilder
600
+ # @param service_attachment [::String]
601
+ # The resource id of the ServiceAttachment to patch. It should conform to RFC1035 resource name or be a string form on an unsigned long number.
602
+ # @param service_attachment_resource [::Google::Cloud::Compute::V1::ServiceAttachment, ::Hash]
603
+ # The body resource for this request
604
+ # @yield [result, response] Access the result along with the Faraday response object
605
+ # @yieldparam result [::Gapic::Rest::BaseOperation]
606
+ # @yieldparam response [::Faraday::Response]
607
+ #
608
+ # @return [::Gapic::Rest::BaseOperation]
609
+ #
610
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
611
+ def patch request, options = nil
612
+ raise ::ArgumentError, "request must be provided" if request.nil?
613
+
614
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::PatchServiceAttachmentRequest
615
+
616
+ # Converts hash and nil to an options object
617
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
618
+
619
+ # Customize the options with defaults
620
+ call_metadata = @config.rpcs.patch.metadata.to_h
621
+
622
+ # Set x-goog-api-client header
623
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
624
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
625
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
626
+ transports_version_send: [:rest]
627
+
628
+ options.apply_defaults timeout: @config.rpcs.patch.timeout,
629
+ metadata: call_metadata
630
+
631
+ options.apply_defaults timeout: @config.timeout,
632
+ metadata: @config.metadata
633
+
634
+ @service_attachments_stub.patch request, options do |result, response|
635
+ result = ::Gapic::Rest::BaseOperation.new result
636
+ yield result, response if block_given?
637
+ return result
638
+ end
639
+ rescue ::Faraday::Error => e
640
+ gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
641
+ raise ::Google::Cloud::Error.from_error(gapic_error)
642
+ end
643
+
644
+ ##
645
+ # Sets the access control policy on the specified resource. Replaces any existing policy.
646
+ #
647
+ # @overload set_iam_policy(request, options = nil)
648
+ # Pass arguments to `set_iam_policy` via a request object, either of type
649
+ # {::Google::Cloud::Compute::V1::SetIamPolicyServiceAttachmentRequest} or an equivalent Hash.
650
+ #
651
+ # @param request [::Google::Cloud::Compute::V1::SetIamPolicyServiceAttachmentRequest, ::Hash]
652
+ # A request object representing the call parameters. Required. To specify no
653
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
654
+ # @param options [::Gapic::CallOptions, ::Hash]
655
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
656
+ # Note: currently retry functionality is not implemented. While it is possible
657
+ # to set it using ::Gapic::CallOptions, it will not be applied
658
+ #
659
+ # @overload set_iam_policy(project: nil, region: nil, region_set_policy_request_resource: nil, resource: nil)
660
+ # Pass arguments to `set_iam_policy` via keyword arguments. Note that at
661
+ # least one keyword argument is required. To specify no parameters, or to keep all
662
+ # the default parameter values, pass an empty Hash as a request object (see above).
663
+ #
664
+ # @param project [::String]
665
+ # Project ID for this request.
666
+ # @param region [::String]
667
+ # The name of the region for this request.
668
+ # @param region_set_policy_request_resource [::Google::Cloud::Compute::V1::RegionSetPolicyRequest, ::Hash]
669
+ # The body resource for this request
670
+ # @param resource [::String]
671
+ # Name or id of the resource for this request.
672
+ # @yield [result, response] Access the result along with the Faraday response object
673
+ # @yieldparam result [::Google::Cloud::Compute::V1::Policy]
674
+ # @yieldparam response [::Faraday::Response]
675
+ #
676
+ # @return [::Google::Cloud::Compute::V1::Policy]
677
+ #
678
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
679
+ def set_iam_policy request, options = nil
680
+ raise ::ArgumentError, "request must be provided" if request.nil?
681
+
682
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::SetIamPolicyServiceAttachmentRequest
683
+
684
+ # Converts hash and nil to an options object
685
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
686
+
687
+ # Customize the options with defaults
688
+ call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
689
+
690
+ # Set x-goog-api-client header
691
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
692
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
693
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
694
+ transports_version_send: [:rest]
695
+
696
+ options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
697
+ metadata: call_metadata
698
+
699
+ options.apply_defaults timeout: @config.timeout,
700
+ metadata: @config.metadata
701
+
702
+ @service_attachments_stub.set_iam_policy request, options do |result, response|
703
+ yield result, response if block_given?
704
+ return result
705
+ end
706
+ rescue ::Faraday::Error => e
707
+ gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
708
+ raise ::Google::Cloud::Error.from_error(gapic_error)
709
+ end
710
+
711
+ ##
712
+ # Returns permissions that a caller has on the specified resource.
713
+ #
714
+ # @overload test_iam_permissions(request, options = nil)
715
+ # Pass arguments to `test_iam_permissions` via a request object, either of type
716
+ # {::Google::Cloud::Compute::V1::TestIamPermissionsServiceAttachmentRequest} or an equivalent Hash.
717
+ #
718
+ # @param request [::Google::Cloud::Compute::V1::TestIamPermissionsServiceAttachmentRequest, ::Hash]
719
+ # A request object representing the call parameters. Required. To specify no
720
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
721
+ # @param options [::Gapic::CallOptions, ::Hash]
722
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
723
+ # Note: currently retry functionality is not implemented. While it is possible
724
+ # to set it using ::Gapic::CallOptions, it will not be applied
725
+ #
726
+ # @overload test_iam_permissions(project: nil, region: nil, resource: nil, test_permissions_request_resource: nil)
727
+ # Pass arguments to `test_iam_permissions` via keyword arguments. Note that at
728
+ # least one keyword argument is required. To specify no parameters, or to keep all
729
+ # the default parameter values, pass an empty Hash as a request object (see above).
730
+ #
731
+ # @param project [::String]
732
+ # Project ID for this request.
733
+ # @param region [::String]
734
+ # The name of the region for this request.
735
+ # @param resource [::String]
736
+ # Name or id of the resource for this request.
737
+ # @param test_permissions_request_resource [::Google::Cloud::Compute::V1::TestPermissionsRequest, ::Hash]
738
+ # The body resource for this request
739
+ # @yield [result, response] Access the result along with the Faraday response object
740
+ # @yieldparam result [::Google::Cloud::Compute::V1::TestPermissionsResponse]
741
+ # @yieldparam response [::Faraday::Response]
742
+ #
743
+ # @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
744
+ #
745
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
746
+ def test_iam_permissions request, options = nil
747
+ raise ::ArgumentError, "request must be provided" if request.nil?
748
+
749
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::TestIamPermissionsServiceAttachmentRequest
750
+
751
+ # Converts hash and nil to an options object
752
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
753
+
754
+ # Customize the options with defaults
755
+ call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
756
+
757
+ # Set x-goog-api-client header
758
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
759
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
760
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
761
+ transports_version_send: [:rest]
762
+
763
+ options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
764
+ metadata: call_metadata
765
+
766
+ options.apply_defaults timeout: @config.timeout,
767
+ metadata: @config.metadata
768
+
769
+ @service_attachments_stub.test_iam_permissions request, options do |result, response|
770
+ yield result, response if block_given?
771
+ return result
772
+ end
773
+ rescue ::Faraday::Error => e
774
+ gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
775
+ raise ::Google::Cloud::Error.from_error(gapic_error)
776
+ end
777
+
778
+ ##
779
+ # Configuration class for the ServiceAttachments REST API.
780
+ #
781
+ # This class represents the configuration for ServiceAttachments REST,
782
+ # providing control over credentials, timeouts, retry behavior, logging.
783
+ #
784
+ # Configuration can be applied globally to all clients, or to a single client
785
+ # on construction.
786
+ #
787
+ # # Examples
788
+ #
789
+ # To modify the global config, setting the timeout for all calls to 10 seconds:
790
+ #
791
+ # ::Google::Cloud::Compute::V1::ServiceAttachments::Client.configure do |config|
792
+ # config.timeout = 10.0
793
+ # end
794
+ #
795
+ # To apply the above configuration only to a new client:
796
+ #
797
+ # client = ::Google::Cloud::Compute::V1::ServiceAttachments::Client.new do |config|
798
+ # config.timeout = 10.0
799
+ # end
800
+ #
801
+ # @!attribute [rw] endpoint
802
+ # The hostname or hostname:port of the service endpoint.
803
+ # Defaults to `"compute.googleapis.com"`.
804
+ # @return [::String]
805
+ # @!attribute [rw] credentials
806
+ # Credentials to send with calls. You may provide any of the following types:
807
+ # * (`String`) The path to a service account key file in JSON format
808
+ # * (`Hash`) A service account key as a Hash
809
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
810
+ # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
811
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
812
+ # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
813
+ # * (`nil`) indicating no credentials
814
+ # @return [::Object]
815
+ # @!attribute [rw] scope
816
+ # The OAuth scopes
817
+ # @return [::Array<::String>]
818
+ # @!attribute [rw] lib_name
819
+ # The library name as recorded in instrumentation and logging
820
+ # @return [::String]
821
+ # @!attribute [rw] lib_version
822
+ # The library version as recorded in instrumentation and logging
823
+ # @return [::String]
824
+ # @!attribute [rw] timeout
825
+ # The call timeout in seconds.
826
+ # @return [::Numeric]
827
+ # @!attribute [rw] metadata
828
+ # Additional REST headers to be sent with the call.
829
+ # @return [::Hash{::Symbol=>::String}]
830
+ #
831
+ class Configuration
832
+ extend ::Gapic::Config
833
+
834
+ config_attr :endpoint, "compute.googleapis.com", ::String
835
+ config_attr :credentials, nil do |value|
836
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
837
+ allowed.any? { |klass| klass === value }
838
+ end
839
+ config_attr :scope, nil, ::String, ::Array, nil
840
+ config_attr :lib_name, nil, ::String, nil
841
+ config_attr :lib_version, nil, ::String, nil
842
+ config_attr :timeout, nil, ::Numeric, nil
843
+ config_attr :metadata, nil, ::Hash, nil
844
+
845
+ # @private
846
+ def initialize parent_config = nil
847
+ @parent_config = parent_config unless parent_config.nil?
848
+
849
+ yield self if block_given?
850
+ end
851
+
852
+ ##
853
+ # Configurations for individual RPCs
854
+ # @return [Rpcs]
855
+ #
856
+ def rpcs
857
+ @rpcs ||= begin
858
+ parent_rpcs = nil
859
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
860
+ Rpcs.new parent_rpcs
861
+ end
862
+ end
863
+
864
+ ##
865
+ # Configuration RPC class for the ServiceAttachments API.
866
+ #
867
+ # Includes fields providing the configuration for each RPC in this service.
868
+ # Each configuration object is of type `Gapic::Config::Method` and includes
869
+ # the following configuration fields:
870
+ #
871
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
872
+ #
873
+ # there is one other field (`retry_policy`) that can be set
874
+ # but is currently not supported for REST Gapic libraries.
875
+ #
876
+ class Rpcs
877
+ ##
878
+ # RPC-specific configuration for `aggregated_list`
879
+ # @return [::Gapic::Config::Method]
880
+ #
881
+ attr_reader :aggregated_list
882
+ ##
883
+ # RPC-specific configuration for `delete`
884
+ # @return [::Gapic::Config::Method]
885
+ #
886
+ attr_reader :delete
887
+ ##
888
+ # RPC-specific configuration for `get`
889
+ # @return [::Gapic::Config::Method]
890
+ #
891
+ attr_reader :get
892
+ ##
893
+ # RPC-specific configuration for `get_iam_policy`
894
+ # @return [::Gapic::Config::Method]
895
+ #
896
+ attr_reader :get_iam_policy
897
+ ##
898
+ # RPC-specific configuration for `insert`
899
+ # @return [::Gapic::Config::Method]
900
+ #
901
+ attr_reader :insert
902
+ ##
903
+ # RPC-specific configuration for `list`
904
+ # @return [::Gapic::Config::Method]
905
+ #
906
+ attr_reader :list
907
+ ##
908
+ # RPC-specific configuration for `patch`
909
+ # @return [::Gapic::Config::Method]
910
+ #
911
+ attr_reader :patch
912
+ ##
913
+ # RPC-specific configuration for `set_iam_policy`
914
+ # @return [::Gapic::Config::Method]
915
+ #
916
+ attr_reader :set_iam_policy
917
+ ##
918
+ # RPC-specific configuration for `test_iam_permissions`
919
+ # @return [::Gapic::Config::Method]
920
+ #
921
+ attr_reader :test_iam_permissions
922
+
923
+ # @private
924
+ def initialize parent_rpcs = nil
925
+ aggregated_list_config = parent_rpcs.aggregated_list if parent_rpcs.respond_to? :aggregated_list
926
+ @aggregated_list = ::Gapic::Config::Method.new aggregated_list_config
927
+ delete_config = parent_rpcs.delete if parent_rpcs.respond_to? :delete
928
+ @delete = ::Gapic::Config::Method.new delete_config
929
+ get_config = parent_rpcs.get if parent_rpcs.respond_to? :get
930
+ @get = ::Gapic::Config::Method.new get_config
931
+ get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
932
+ @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
933
+ insert_config = parent_rpcs.insert if parent_rpcs.respond_to? :insert
934
+ @insert = ::Gapic::Config::Method.new insert_config
935
+ list_config = parent_rpcs.list if parent_rpcs.respond_to? :list
936
+ @list = ::Gapic::Config::Method.new list_config
937
+ patch_config = parent_rpcs.patch if parent_rpcs.respond_to? :patch
938
+ @patch = ::Gapic::Config::Method.new patch_config
939
+ set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
940
+ @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
941
+ test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
942
+ @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
943
+
944
+ yield self if block_given?
945
+ end
946
+ end
947
+ end
948
+ end
949
+ end
950
+ end
951
+ end
952
+ end
953
+ end
954
+ end