google-cloud-compute-v1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (379) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +169 -0
  4. data/LICENSE.md +201 -0
  5. data/README.md +73 -0
  6. data/lib/google-cloud-compute-v1.rb +21 -0
  7. data/lib/google/cloud/compute/v1.rb +110 -0
  8. data/lib/google/cloud/compute/v1/accelerator_types.rb +44 -0
  9. data/lib/google/cloud/compute/v1/accelerator_types/credentials.rb +53 -0
  10. data/lib/google/cloud/compute/v1/accelerator_types/rest.rb +35 -0
  11. data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +452 -0
  12. data/lib/google/cloud/compute/v1/accelerator_types/rest/grpc_transcoding.rb +81 -0
  13. data/lib/google/cloud/compute/v1/addresses.rb +44 -0
  14. data/lib/google/cloud/compute/v1/addresses/credentials.rb +52 -0
  15. data/lib/google/cloud/compute/v1/addresses/rest.rb +35 -0
  16. data/lib/google/cloud/compute/v1/addresses/rest/client.rb +596 -0
  17. data/lib/google/cloud/compute/v1/addresses/rest/grpc_transcoding.rb +106 -0
  18. data/lib/google/cloud/compute/v1/autoscalers.rb +44 -0
  19. data/lib/google/cloud/compute/v1/autoscalers/credentials.rb +52 -0
  20. data/lib/google/cloud/compute/v1/autoscalers/rest.rb +35 -0
  21. data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +746 -0
  22. data/lib/google/cloud/compute/v1/autoscalers/rest/grpc_transcoding.rb +130 -0
  23. data/lib/google/cloud/compute/v1/backend_buckets.rb +44 -0
  24. data/lib/google/cloud/compute/v1/backend_buckets/credentials.rb +52 -0
  25. data/lib/google/cloud/compute/v1/backend_buckets/rest.rb +35 -0
  26. data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +795 -0
  27. data/lib/google/cloud/compute/v1/backend_buckets/rest/grpc_transcoding.rb +138 -0
  28. data/lib/google/cloud/compute/v1/backend_services.rb +44 -0
  29. data/lib/google/cloud/compute/v1/backend_services/credentials.rb +52 -0
  30. data/lib/google/cloud/compute/v1/backend_services/rest.rb +35 -0
  31. data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +1023 -0
  32. data/lib/google/cloud/compute/v1/backend_services/rest/grpc_transcoding.rb +180 -0
  33. data/lib/google/cloud/compute/v1/compute_pb.rb +9482 -0
  34. data/lib/google/cloud/compute/v1/disk_types.rb +44 -0
  35. data/lib/google/cloud/compute/v1/disk_types/credentials.rb +53 -0
  36. data/lib/google/cloud/compute/v1/disk_types/rest.rb +35 -0
  37. data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +450 -0
  38. data/lib/google/cloud/compute/v1/disk_types/rest/grpc_transcoding.rb +81 -0
  39. data/lib/google/cloud/compute/v1/disks.rb +44 -0
  40. data/lib/google/cloud/compute/v1/disks/credentials.rb +52 -0
  41. data/lib/google/cloud/compute/v1/disks/rest.rb +35 -0
  42. data/lib/google/cloud/compute/v1/disks/rest/client.rb +1182 -0
  43. data/lib/google/cloud/compute/v1/disks/rest/grpc_transcoding.rb +203 -0
  44. data/lib/google/cloud/compute/v1/external_vpn_gateways.rb +44 -0
  45. data/lib/google/cloud/compute/v1/external_vpn_gateways/credentials.rb +52 -0
  46. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest.rb +35 -0
  47. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +637 -0
  48. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/grpc_transcoding.rb +112 -0
  49. data/lib/google/cloud/compute/v1/firewalls.rb +44 -0
  50. data/lib/google/cloud/compute/v1/firewalls/credentials.rb +52 -0
  51. data/lib/google/cloud/compute/v1/firewalls/rest.rb +35 -0
  52. data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +649 -0
  53. data/lib/google/cloud/compute/v1/firewalls/rest/grpc_transcoding.rb +112 -0
  54. data/lib/google/cloud/compute/v1/forwarding_rules.rb +44 -0
  55. data/lib/google/cloud/compute/v1/forwarding_rules/credentials.rb +52 -0
  56. data/lib/google/cloud/compute/v1/forwarding_rules/rest.rb +35 -0
  57. data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +746 -0
  58. data/lib/google/cloud/compute/v1/forwarding_rules/rest/grpc_transcoding.rb +130 -0
  59. data/lib/google/cloud/compute/v1/global_addresses.rb +44 -0
  60. data/lib/google/cloud/compute/v1/global_addresses/credentials.rb +52 -0
  61. data/lib/google/cloud/compute/v1/global_addresses/rest.rb +35 -0
  62. data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +503 -0
  63. data/lib/google/cloud/compute/v1/global_addresses/rest/grpc_transcoding.rb +88 -0
  64. data/lib/google/cloud/compute/v1/global_forwarding_rules.rb +44 -0
  65. data/lib/google/cloud/compute/v1/global_forwarding_rules/credentials.rb +52 -0
  66. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest.rb +35 -0
  67. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +649 -0
  68. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/grpc_transcoding.rb +112 -0
  69. data/lib/google/cloud/compute/v1/global_network_endpoint_groups.rb +44 -0
  70. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/credentials.rb +52 -0
  71. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest.rb +35 -0
  72. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +734 -0
  73. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/grpc_transcoding.rb +129 -0
  74. data/lib/google/cloud/compute/v1/global_operations.rb +44 -0
  75. data/lib/google/cloud/compute/v1/global_operations/credentials.rb +52 -0
  76. data/lib/google/cloud/compute/v1/global_operations/rest.rb +35 -0
  77. data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +578 -0
  78. data/lib/google/cloud/compute/v1/global_operations/rest/grpc_transcoding.rb +105 -0
  79. data/lib/google/cloud/compute/v1/global_organization_operations.rb +44 -0
  80. data/lib/google/cloud/compute/v1/global_organization_operations/credentials.rb +52 -0
  81. data/lib/google/cloud/compute/v1/global_organization_operations/rest.rb +35 -0
  82. data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +427 -0
  83. data/lib/google/cloud/compute/v1/global_organization_operations/rest/grpc_transcoding.rb +78 -0
  84. data/lib/google/cloud/compute/v1/health_checks.rb +44 -0
  85. data/lib/google/cloud/compute/v1/health_checks/credentials.rb +52 -0
  86. data/lib/google/cloud/compute/v1/health_checks/rest.rb +35 -0
  87. data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +734 -0
  88. data/lib/google/cloud/compute/v1/health_checks/rest/grpc_transcoding.rb +130 -0
  89. data/lib/google/cloud/compute/v1/images.rb +44 -0
  90. data/lib/google/cloud/compute/v1/images/credentials.rb +52 -0
  91. data/lib/google/cloud/compute/v1/images/rest.rb +35 -0
  92. data/lib/google/cloud/compute/v1/images/rest/client.rb +985 -0
  93. data/lib/google/cloud/compute/v1/images/rest/grpc_transcoding.rb +173 -0
  94. data/lib/google/cloud/compute/v1/instance_group_managers.rb +44 -0
  95. data/lib/google/cloud/compute/v1/instance_group_managers/credentials.rb +52 -0
  96. data/lib/google/cloud/compute/v1/instance_group_managers/rest.rb +35 -0
  97. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +1767 -0
  98. data/lib/google/cloud/compute/v1/instance_group_managers/rest/grpc_transcoding.rb +303 -0
  99. data/lib/google/cloud/compute/v1/instance_groups.rb +44 -0
  100. data/lib/google/cloud/compute/v1/instance_groups/credentials.rb +52 -0
  101. data/lib/google/cloud/compute/v1/instance_groups/rest.rb +35 -0
  102. data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +916 -0
  103. data/lib/google/cloud/compute/v1/instance_groups/rest/grpc_transcoding.rb +154 -0
  104. data/lib/google/cloud/compute/v1/instance_templates.rb +44 -0
  105. data/lib/google/cloud/compute/v1/instance_templates/credentials.rb +52 -0
  106. data/lib/google/cloud/compute/v1/instance_templates/rest.rb +35 -0
  107. data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +704 -0
  108. data/lib/google/cloud/compute/v1/instance_templates/rest/grpc_transcoding.rb +125 -0
  109. data/lib/google/cloud/compute/v1/instances.rb +44 -0
  110. data/lib/google/cloud/compute/v1/instances/credentials.rb +52 -0
  111. data/lib/google/cloud/compute/v1/instances/rest.rb +35 -0
  112. data/lib/google/cloud/compute/v1/instances/rest/client.rb +3201 -0
  113. data/lib/google/cloud/compute/v1/instances/rest/grpc_transcoding.rb +549 -0
  114. data/lib/google/cloud/compute/v1/interconnect_attachments.rb +44 -0
  115. data/lib/google/cloud/compute/v1/interconnect_attachments/credentials.rb +52 -0
  116. data/lib/google/cloud/compute/v1/interconnect_attachments/rest.rb +35 -0
  117. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +673 -0
  118. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/grpc_transcoding.rb +118 -0
  119. data/lib/google/cloud/compute/v1/interconnect_locations.rb +44 -0
  120. data/lib/google/cloud/compute/v1/interconnect_locations/credentials.rb +53 -0
  121. data/lib/google/cloud/compute/v1/interconnect_locations/rest.rb +35 -0
  122. data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +361 -0
  123. data/lib/google/cloud/compute/v1/interconnect_locations/rest/grpc_transcoding.rb +63 -0
  124. data/lib/google/cloud/compute/v1/interconnects.rb +44 -0
  125. data/lib/google/cloud/compute/v1/interconnects/credentials.rb +52 -0
  126. data/lib/google/cloud/compute/v1/interconnects/rest.rb +35 -0
  127. data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +640 -0
  128. data/lib/google/cloud/compute/v1/interconnects/rest/grpc_transcoding.rb +112 -0
  129. data/lib/google/cloud/compute/v1/license_codes.rb +44 -0
  130. data/lib/google/cloud/compute/v1/license_codes/credentials.rb +53 -0
  131. data/lib/google/cloud/compute/v1/license_codes/rest.rb +35 -0
  132. data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +345 -0
  133. data/lib/google/cloud/compute/v1/license_codes/rest/grpc_transcoding.rb +58 -0
  134. data/lib/google/cloud/compute/v1/licenses.rb +44 -0
  135. data/lib/google/cloud/compute/v1/licenses/credentials.rb +52 -0
  136. data/lib/google/cloud/compute/v1/licenses/rest.rb +35 -0
  137. data/lib/google/cloud/compute/v1/licenses/rest/client.rb +704 -0
  138. data/lib/google/cloud/compute/v1/licenses/rest/grpc_transcoding.rb +125 -0
  139. data/lib/google/cloud/compute/v1/machine_types.rb +44 -0
  140. data/lib/google/cloud/compute/v1/machine_types/credentials.rb +53 -0
  141. data/lib/google/cloud/compute/v1/machine_types/rest.rb +35 -0
  142. data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +450 -0
  143. data/lib/google/cloud/compute/v1/machine_types/rest/grpc_transcoding.rb +81 -0
  144. data/lib/google/cloud/compute/v1/network_endpoint_groups.rb +44 -0
  145. data/lib/google/cloud/compute/v1/network_endpoint_groups/credentials.rb +52 -0
  146. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest.rb +35 -0
  147. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +904 -0
  148. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/grpc_transcoding.rb +154 -0
  149. data/lib/google/cloud/compute/v1/networks.rb +44 -0
  150. data/lib/google/cloud/compute/v1/networks/credentials.rb +52 -0
  151. data/lib/google/cloud/compute/v1/networks/rest.rb +35 -0
  152. data/lib/google/cloud/compute/v1/networks/rest/client.rb +957 -0
  153. data/lib/google/cloud/compute/v1/networks/rest/grpc_transcoding.rb +169 -0
  154. data/lib/google/cloud/compute/v1/node_groups.rb +44 -0
  155. data/lib/google/cloud/compute/v1/node_groups/credentials.rb +52 -0
  156. data/lib/google/cloud/compute/v1/node_groups/rest.rb +35 -0
  157. data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +1192 -0
  158. data/lib/google/cloud/compute/v1/node_groups/rest/grpc_transcoding.rb +208 -0
  159. data/lib/google/cloud/compute/v1/node_templates.rb +44 -0
  160. data/lib/google/cloud/compute/v1/node_templates/credentials.rb +52 -0
  161. data/lib/google/cloud/compute/v1/node_templates/rest.rb +35 -0
  162. data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +803 -0
  163. data/lib/google/cloud/compute/v1/node_templates/rest/grpc_transcoding.rb +143 -0
  164. data/lib/google/cloud/compute/v1/node_types.rb +44 -0
  165. data/lib/google/cloud/compute/v1/node_types/credentials.rb +53 -0
  166. data/lib/google/cloud/compute/v1/node_types/rest.rb +35 -0
  167. data/lib/google/cloud/compute/v1/node_types/rest/client.rb +450 -0
  168. data/lib/google/cloud/compute/v1/node_types/rest/grpc_transcoding.rb +81 -0
  169. data/lib/google/cloud/compute/v1/packet_mirrorings.rb +44 -0
  170. data/lib/google/cloud/compute/v1/packet_mirrorings/credentials.rb +52 -0
  171. data/lib/google/cloud/compute/v1/packet_mirrorings/rest.rb +35 -0
  172. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +740 -0
  173. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/grpc_transcoding.rb +130 -0
  174. data/lib/google/cloud/compute/v1/projects.rb +44 -0
  175. data/lib/google/cloud/compute/v1/projects/credentials.rb +52 -0
  176. data/lib/google/cloud/compute/v1/projects/rest.rb +35 -0
  177. data/lib/google/cloud/compute/v1/projects/rest/client.rb +1141 -0
  178. data/lib/google/cloud/compute/v1/projects/rest/grpc_transcoding.rb +197 -0
  179. data/lib/google/cloud/compute/v1/region_autoscalers.rb +44 -0
  180. data/lib/google/cloud/compute/v1/region_autoscalers/credentials.rb +52 -0
  181. data/lib/google/cloud/compute/v1/region_autoscalers/rest.rb +35 -0
  182. data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +661 -0
  183. data/lib/google/cloud/compute/v1/region_autoscalers/rest/grpc_transcoding.rb +112 -0
  184. data/lib/google/cloud/compute/v1/region_backend_services.rb +44 -0
  185. data/lib/google/cloud/compute/v1/region_backend_services/credentials.rb +52 -0
  186. data/lib/google/cloud/compute/v1/region_backend_services/rest.rb +35 -0
  187. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +729 -0
  188. data/lib/google/cloud/compute/v1/region_backend_services/rest/grpc_transcoding.rb +124 -0
  189. data/lib/google/cloud/compute/v1/region_commitments.rb +44 -0
  190. data/lib/google/cloud/compute/v1/region_commitments/credentials.rb +52 -0
  191. data/lib/google/cloud/compute/v1/region_commitments/rest.rb +35 -0
  192. data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +523 -0
  193. data/lib/google/cloud/compute/v1/region_commitments/rest/grpc_transcoding.rb +93 -0
  194. data/lib/google/cloud/compute/v1/region_disk_types.rb +44 -0
  195. data/lib/google/cloud/compute/v1/region_disk_types/credentials.rb +53 -0
  196. data/lib/google/cloud/compute/v1/region_disk_types/rest.rb +35 -0
  197. data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +365 -0
  198. data/lib/google/cloud/compute/v1/region_disk_types/rest/grpc_transcoding.rb +63 -0
  199. data/lib/google/cloud/compute/v1/region_disks.rb +44 -0
  200. data/lib/google/cloud/compute/v1/region_disks/credentials.rb +52 -0
  201. data/lib/google/cloud/compute/v1/region_disks/rest.rb +35 -0
  202. data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +1095 -0
  203. data/lib/google/cloud/compute/v1/region_disks/rest/grpc_transcoding.rb +185 -0
  204. data/lib/google/cloud/compute/v1/region_health_check_services.rb +44 -0
  205. data/lib/google/cloud/compute/v1/region_health_check_services/credentials.rb +52 -0
  206. data/lib/google/cloud/compute/v1/region_health_check_services/rest.rb +35 -0
  207. data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +586 -0
  208. data/lib/google/cloud/compute/v1/region_health_check_services/rest/grpc_transcoding.rb +100 -0
  209. data/lib/google/cloud/compute/v1/region_health_checks.rb +44 -0
  210. data/lib/google/cloud/compute/v1/region_health_checks/credentials.rb +52 -0
  211. data/lib/google/cloud/compute/v1/region_health_checks/rest.rb +35 -0
  212. data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +661 -0
  213. data/lib/google/cloud/compute/v1/region_health_checks/rest/grpc_transcoding.rb +112 -0
  214. data/lib/google/cloud/compute/v1/region_instance_group_managers.rb +44 -0
  215. data/lib/google/cloud/compute/v1/region_instance_group_managers/credentials.rb +52 -0
  216. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest.rb +35 -0
  217. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +1678 -0
  218. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/grpc_transcoding.rb +285 -0
  219. data/lib/google/cloud/compute/v1/region_instance_groups.rb +44 -0
  220. data/lib/google/cloud/compute/v1/region_instance_groups/credentials.rb +52 -0
  221. data/lib/google/cloud/compute/v1/region_instance_groups/rest.rb +35 -0
  222. data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +529 -0
  223. data/lib/google/cloud/compute/v1/region_instance_groups/rest/grpc_transcoding.rb +87 -0
  224. data/lib/google/cloud/compute/v1/region_network_endpoint_groups.rb +44 -0
  225. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/credentials.rb +52 -0
  226. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest.rb +35 -0
  227. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +511 -0
  228. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/grpc_transcoding.rb +88 -0
  229. data/lib/google/cloud/compute/v1/region_notification_endpoints.rb +44 -0
  230. data/lib/google/cloud/compute/v1/region_notification_endpoints/credentials.rb +52 -0
  231. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest.rb +35 -0
  232. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +511 -0
  233. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/grpc_transcoding.rb +88 -0
  234. data/lib/google/cloud/compute/v1/region_operations.rb +44 -0
  235. data/lib/google/cloud/compute/v1/region_operations/credentials.rb +52 -0
  236. data/lib/google/cloud/compute/v1/region_operations/rest.rb +35 -0
  237. data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +501 -0
  238. data/lib/google/cloud/compute/v1/region_operations/rest/grpc_transcoding.rb +87 -0
  239. data/lib/google/cloud/compute/v1/region_ssl_certificates.rb +44 -0
  240. data/lib/google/cloud/compute/v1/region_ssl_certificates/credentials.rb +52 -0
  241. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest.rb +35 -0
  242. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +511 -0
  243. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/grpc_transcoding.rb +88 -0
  244. data/lib/google/cloud/compute/v1/region_target_http_proxies.rb +44 -0
  245. data/lib/google/cloud/compute/v1/region_target_http_proxies/credentials.rb +52 -0
  246. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest.rb +35 -0
  247. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +586 -0
  248. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/grpc_transcoding.rb +100 -0
  249. data/lib/google/cloud/compute/v1/region_target_https_proxies.rb +44 -0
  250. data/lib/google/cloud/compute/v1/region_target_https_proxies/credentials.rb +52 -0
  251. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest.rb +35 -0
  252. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +661 -0
  253. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/grpc_transcoding.rb +112 -0
  254. data/lib/google/cloud/compute/v1/region_url_maps.rb +44 -0
  255. data/lib/google/cloud/compute/v1/region_url_maps/credentials.rb +52 -0
  256. data/lib/google/cloud/compute/v1/region_url_maps/rest.rb +35 -0
  257. data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +714 -0
  258. data/lib/google/cloud/compute/v1/region_url_maps/rest/grpc_transcoding.rb +124 -0
  259. data/lib/google/cloud/compute/v1/regions.rb +44 -0
  260. data/lib/google/cloud/compute/v1/regions/credentials.rb +53 -0
  261. data/lib/google/cloud/compute/v1/regions/rest.rb +35 -0
  262. data/lib/google/cloud/compute/v1/regions/rest/client.rb +361 -0
  263. data/lib/google/cloud/compute/v1/regions/rest/grpc_transcoding.rb +63 -0
  264. data/lib/google/cloud/compute/v1/reservations.rb +44 -0
  265. data/lib/google/cloud/compute/v1/reservations/credentials.rb +52 -0
  266. data/lib/google/cloud/compute/v1/reservations/rest.rb +35 -0
  267. data/lib/google/cloud/compute/v1/reservations/rest/client.rb +878 -0
  268. data/lib/google/cloud/compute/v1/reservations/rest/grpc_transcoding.rb +155 -0
  269. data/lib/google/cloud/compute/v1/resource_policies.rb +44 -0
  270. data/lib/google/cloud/compute/v1/resource_policies/credentials.rb +52 -0
  271. data/lib/google/cloud/compute/v1/resource_policies/rest.rb +35 -0
  272. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +803 -0
  273. data/lib/google/cloud/compute/v1/resource_policies/rest/grpc_transcoding.rb +143 -0
  274. data/lib/google/cloud/compute/v1/routers.rb +44 -0
  275. data/lib/google/cloud/compute/v1/routers/credentials.rb +52 -0
  276. data/lib/google/cloud/compute/v1/routers/rest.rb +35 -0
  277. data/lib/google/cloud/compute/v1/routers/rest/client.rb +968 -0
  278. data/lib/google/cloud/compute/v1/routers/rest/grpc_transcoding.rb +171 -0
  279. data/lib/google/cloud/compute/v1/routes.rb +44 -0
  280. data/lib/google/cloud/compute/v1/routes/credentials.rb +52 -0
  281. data/lib/google/cloud/compute/v1/routes/rest.rb +35 -0
  282. data/lib/google/cloud/compute/v1/routes/rest/client.rb +503 -0
  283. data/lib/google/cloud/compute/v1/routes/rest/grpc_transcoding.rb +88 -0
  284. data/lib/google/cloud/compute/v1/security_policies.rb +44 -0
  285. data/lib/google/cloud/compute/v1/security_policies/credentials.rb +52 -0
  286. data/lib/google/cloud/compute/v1/security_policies/rest.rb +35 -0
  287. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +929 -0
  288. data/lib/google/cloud/compute/v1/security_policies/rest/grpc_transcoding.rb +167 -0
  289. data/lib/google/cloud/compute/v1/snapshots.rb +44 -0
  290. data/lib/google/cloud/compute/v1/snapshots/credentials.rb +52 -0
  291. data/lib/google/cloud/compute/v1/snapshots/rest.rb +35 -0
  292. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +702 -0
  293. data/lib/google/cloud/compute/v1/snapshots/rest/grpc_transcoding.rb +125 -0
  294. data/lib/google/cloud/compute/v1/ssl_certificates.rb +44 -0
  295. data/lib/google/cloud/compute/v1/ssl_certificates/credentials.rb +52 -0
  296. data/lib/google/cloud/compute/v1/ssl_certificates/rest.rb +35 -0
  297. data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +588 -0
  298. data/lib/google/cloud/compute/v1/ssl_certificates/rest/grpc_transcoding.rb +106 -0
  299. data/lib/google/cloud/compute/v1/ssl_policies.rb +44 -0
  300. data/lib/google/cloud/compute/v1/ssl_policies/credentials.rb +52 -0
  301. data/lib/google/cloud/compute/v1/ssl_policies/rest.rb +35 -0
  302. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +659 -0
  303. data/lib/google/cloud/compute/v1/ssl_policies/rest/grpc_transcoding.rb +117 -0
  304. data/lib/google/cloud/compute/v1/subnetworks.rb +44 -0
  305. data/lib/google/cloud/compute/v1/subnetworks/credentials.rb +52 -0
  306. data/lib/google/cloud/compute/v1/subnetworks/rest.rb +35 -0
  307. data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +1113 -0
  308. data/lib/google/cloud/compute/v1/subnetworks/rest/grpc_transcoding.rb +196 -0
  309. data/lib/google/cloud/compute/v1/target_grpc_proxies.rb +44 -0
  310. data/lib/google/cloud/compute/v1/target_grpc_proxies/credentials.rb +52 -0
  311. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest.rb +35 -0
  312. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +576 -0
  313. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/grpc_transcoding.rb +100 -0
  314. data/lib/google/cloud/compute/v1/target_http_proxies.rb +44 -0
  315. data/lib/google/cloud/compute/v1/target_http_proxies/credentials.rb +52 -0
  316. data/lib/google/cloud/compute/v1/target_http_proxies/rest.rb +35 -0
  317. data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +734 -0
  318. data/lib/google/cloud/compute/v1/target_http_proxies/rest/grpc_transcoding.rb +130 -0
  319. data/lib/google/cloud/compute/v1/target_https_proxies.rb +44 -0
  320. data/lib/google/cloud/compute/v1/target_https_proxies/credentials.rb +52 -0
  321. data/lib/google/cloud/compute/v1/target_https_proxies/rest.rb +35 -0
  322. data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +880 -0
  323. data/lib/google/cloud/compute/v1/target_https_proxies/rest/grpc_transcoding.rb +154 -0
  324. data/lib/google/cloud/compute/v1/target_instances.rb +44 -0
  325. data/lib/google/cloud/compute/v1/target_instances/credentials.rb +52 -0
  326. data/lib/google/cloud/compute/v1/target_instances/rest.rb +35 -0
  327. data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +596 -0
  328. data/lib/google/cloud/compute/v1/target_instances/rest/grpc_transcoding.rb +106 -0
  329. data/lib/google/cloud/compute/v1/target_pools.rb +44 -0
  330. data/lib/google/cloud/compute/v1/target_pools/credentials.rb +52 -0
  331. data/lib/google/cloud/compute/v1/target_pools/rest.rb +35 -0
  332. data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +1042 -0
  333. data/lib/google/cloud/compute/v1/target_pools/rest/grpc_transcoding.rb +178 -0
  334. data/lib/google/cloud/compute/v1/target_ssl_proxies.rb +44 -0
  335. data/lib/google/cloud/compute/v1/target_ssl_proxies/credentials.rb +52 -0
  336. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest.rb +35 -0
  337. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +795 -0
  338. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/grpc_transcoding.rb +136 -0
  339. data/lib/google/cloud/compute/v1/target_tcp_proxies.rb +44 -0
  340. data/lib/google/cloud/compute/v1/target_tcp_proxies/credentials.rb +52 -0
  341. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest.rb +35 -0
  342. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +649 -0
  343. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/grpc_transcoding.rb +112 -0
  344. data/lib/google/cloud/compute/v1/target_vpn_gateways.rb +44 -0
  345. data/lib/google/cloud/compute/v1/target_vpn_gateways/credentials.rb +52 -0
  346. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest.rb +35 -0
  347. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +596 -0
  348. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/grpc_transcoding.rb +106 -0
  349. data/lib/google/cloud/compute/v1/url_maps.rb +44 -0
  350. data/lib/google/cloud/compute/v1/url_maps/credentials.rb +52 -0
  351. data/lib/google/cloud/compute/v1/url_maps/rest.rb +35 -0
  352. data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +876 -0
  353. data/lib/google/cloud/compute/v1/url_maps/rest/grpc_transcoding.rb +154 -0
  354. data/lib/google/cloud/compute/v1/version.rb +28 -0
  355. data/lib/google/cloud/compute/v1/vpn_gateways.rb +44 -0
  356. data/lib/google/cloud/compute/v1/vpn_gateways/credentials.rb +52 -0
  357. data/lib/google/cloud/compute/v1/vpn_gateways/rest.rb +35 -0
  358. data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +806 -0
  359. data/lib/google/cloud/compute/v1/vpn_gateways/rest/grpc_transcoding.rb +142 -0
  360. data/lib/google/cloud/compute/v1/vpn_tunnels.rb +44 -0
  361. data/lib/google/cloud/compute/v1/vpn_tunnels/credentials.rb +52 -0
  362. data/lib/google/cloud/compute/v1/vpn_tunnels/rest.rb +35 -0
  363. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +596 -0
  364. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/grpc_transcoding.rb +106 -0
  365. data/lib/google/cloud/compute/v1/zone_operations.rb +44 -0
  366. data/lib/google/cloud/compute/v1/zone_operations/credentials.rb +52 -0
  367. data/lib/google/cloud/compute/v1/zone_operations/rest.rb +35 -0
  368. data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +501 -0
  369. data/lib/google/cloud/compute/v1/zone_operations/rest/grpc_transcoding.rb +87 -0
  370. data/lib/google/cloud/compute/v1/zones.rb +44 -0
  371. data/lib/google/cloud/compute/v1/zones/credentials.rb +53 -0
  372. data/lib/google/cloud/compute/v1/zones/rest.rb +35 -0
  373. data/lib/google/cloud/compute/v1/zones/rest/client.rb +361 -0
  374. data/lib/google/cloud/compute/v1/zones/rest/grpc_transcoding.rb +63 -0
  375. data/proto_docs/README.md +4 -0
  376. data/proto_docs/google/api/field_behavior.rb +65 -0
  377. data/proto_docs/google/api/resource.rb +283 -0
  378. data/proto_docs/google/cloud/compute/v1/compute.rb +27425 -0
  379. metadata +568 -0
@@ -0,0 +1,63 @@
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
+
20
+ module Google
21
+ module Cloud
22
+ module Compute
23
+ module V1
24
+ module RegionDiskTypes
25
+ module Rest
26
+ # GRPC transcoding helper methods for the RegionDiskTypes REST API.
27
+ module GrpcTranscoding
28
+ # @param request_pb [::Google::Cloud::Compute::V1::GetRegionDiskTypeRequest]
29
+ # A request object representing the call parameters. Required.
30
+ # @return [Array(String, [String, nil], Hash{String => String})]
31
+ # Uri, Body, Query string parameters
32
+ def transcode_get request_pb
33
+ uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/diskTypes/#{request_pb.disk_type}"
34
+ body = nil
35
+ query_string_params = {}
36
+
37
+ [uri, body, query_string_params]
38
+ end
39
+
40
+ # @param request_pb [::Google::Cloud::Compute::V1::ListRegionDiskTypesRequest]
41
+ # A request object representing the call parameters. Required.
42
+ # @return [Array(String, [String, nil], Hash{String => String})]
43
+ # Uri, Body, Query string parameters
44
+ def transcode_list request_pb
45
+ uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/diskTypes"
46
+ body = nil
47
+ query_string_params = {}
48
+ query_string_params["filter"] = request_pb.filter.to_s if request_pb.has_filter?
49
+ query_string_params["maxResults"] = request_pb.max_results.to_s if request_pb.has_max_results?
50
+ query_string_params["orderBy"] = request_pb.order_by.to_s if request_pb.has_order_by?
51
+ query_string_params["pageToken"] = request_pb.page_token.to_s if request_pb.has_page_token?
52
+ query_string_params["returnPartialSuccess"] = request_pb.return_partial_success.to_s if request_pb.has_return_partial_success?
53
+
54
+ [uri, body, query_string_params]
55
+ end
56
+ extend self
57
+ end
58
+ end
59
+ end
60
+ end
61
+ end
62
+ end
63
+ end
@@ -0,0 +1,44 @@
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 "gapic/config"
20
+ require "gapic/config/method"
21
+
22
+ require "google/cloud/compute/v1/version"
23
+
24
+ require "google/cloud/compute/v1/region_disks/credentials"
25
+ require "google/cloud/compute/v1/region_disks/rest"
26
+
27
+ module Google
28
+ module Cloud
29
+ module Compute
30
+ module V1
31
+ # To load this service and instantiate a REST client:
32
+ #
33
+ # require "google/cloud/compute/v1/region_disks"
34
+ # client = ::Google::Cloud::Compute::V1::RegionDisks::Rest::Client.new
35
+ #
36
+ module RegionDisks
37
+ end
38
+ end
39
+ end
40
+ end
41
+ end
42
+
43
+ helper_path = ::File.join __dir__, "region_disks", "helpers.rb"
44
+ require "google/cloud/compute/v1/region_disks/helpers" if ::File.file? helper_path
@@ -0,0 +1,52 @@
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 "googleauth"
20
+
21
+ module Google
22
+ module Cloud
23
+ module Compute
24
+ module V1
25
+ module RegionDisks
26
+ # Credentials for the RegionDisks API.
27
+ class Credentials < ::Google::Auth::Credentials
28
+ self.scope = [
29
+ "https://www.googleapis.com/auth/compute",
30
+ "https://www.googleapis.com/auth/cloud-platform"
31
+ ]
32
+ self.env_vars = [
33
+ "COMPUTE_CREDENTIALS",
34
+ "COMPUTE_KEYFILE",
35
+ "GOOGLE_CLOUD_CREDENTIALS",
36
+ "GOOGLE_CLOUD_KEYFILE",
37
+ "GCLOUD_KEYFILE",
38
+ "COMPUTE_CREDENTIALS_JSON",
39
+ "COMPUTE_KEYFILE_JSON",
40
+ "GOOGLE_CLOUD_CREDENTIALS_JSON",
41
+ "GOOGLE_CLOUD_KEYFILE_JSON",
42
+ "GCLOUD_KEYFILE_JSON"
43
+ ]
44
+ self.paths = [
45
+ "~/.config/google_cloud/application_default_credentials.json"
46
+ ]
47
+ end
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
@@ -0,0 +1,35 @@
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 "gapic/rest"
20
+ require "google/cloud/compute/v1/region_disks/rest/grpc_transcoding"
21
+ require "google/cloud/compute/v1/region_disks/rest/client"
22
+
23
+ module Google
24
+ module Cloud
25
+ module Compute
26
+ module V1
27
+ module RegionDisks
28
+ # Client for the REST transport
29
+ module Rest
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,1095 @@
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
+
22
+ module Google
23
+ module Cloud
24
+ module Compute
25
+ module V1
26
+ module RegionDisks
27
+ module Rest
28
+ ##
29
+ # REST client for the RegionDisks service.
30
+ #
31
+ # The RegionDisks API.
32
+ #
33
+ class Client
34
+ include GrpcTranscoding
35
+
36
+ # @private
37
+ attr_reader :region_disks_stub
38
+
39
+ ##
40
+ # Configure the RegionDisks Client class.
41
+ #
42
+ # See {::Google::Cloud::Compute::V1::RegionDisks::Rest::Client::Configuration}
43
+ # for a description of the configuration fields.
44
+ #
45
+ # ## Example
46
+ #
47
+ # To modify the configuration for all RegionDisks clients:
48
+ #
49
+ # ::Google::Cloud::Compute::V1::RegionDisks::Rest::Client.configure do |config|
50
+ # config.timeout = 10.0
51
+ # end
52
+ #
53
+ # @yield [config] Configure the Client client.
54
+ # @yieldparam config [Client::Configuration]
55
+ #
56
+ # @return [Client::Configuration]
57
+ #
58
+ def self.configure
59
+ @configure ||= begin
60
+ namespace = ["Google", "Cloud", "Compute", "V1"]
61
+ parent_config = while namespace.any?
62
+ parent_name = namespace.join "::"
63
+ parent_const = const_get parent_name
64
+ break parent_const.configure if parent_const.respond_to? :configure
65
+ namespace.pop
66
+ end
67
+ default_config = Client::Configuration.new parent_config
68
+
69
+ default_config
70
+ end
71
+ yield @configure if block_given?
72
+ @configure
73
+ end
74
+
75
+ ##
76
+ # Configure the RegionDisks Client instance.
77
+ #
78
+ # The configuration is set to the derived mode, meaning that values can be changed,
79
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
80
+ # should be made on {Client.configure}.
81
+ #
82
+ # See {::Google::Cloud::Compute::V1::RegionDisks::Rest::Client::Configuration}
83
+ # for a description of the configuration fields.
84
+ #
85
+ # @yield [config] Configure the Client client.
86
+ # @yieldparam config [Client::Configuration]
87
+ #
88
+ # @return [Client::Configuration]
89
+ #
90
+ def configure
91
+ yield @config if block_given?
92
+ @config
93
+ end
94
+
95
+ ##
96
+ # Create a new RegionDisks REST client object.
97
+ #
98
+ # ## Examples
99
+ #
100
+ # To create a new RegionDisks REST client with the default
101
+ # configuration:
102
+ #
103
+ # client = ::Google::Cloud::Compute::V1::RegionDisks::Rest::Client.new
104
+ #
105
+ # To create a new RegionDisks REST client with a custom
106
+ # configuration:
107
+ #
108
+ # client = ::Google::Cloud::Compute::V1::RegionDisks::Rest::Client.new do |config|
109
+ # config.timeout = 10.0
110
+ # end
111
+ #
112
+ # @yield [config] Configure the RegionDisks client.
113
+ # @yieldparam config [Client::Configuration]
114
+ #
115
+ 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
+ # Create the configuration object
121
+ @config = Configuration.new Client.configure
122
+
123
+ # Yield the configuration if needed
124
+ yield @config if block_given?
125
+
126
+ # Create credentials
127
+ credentials = @config.credentials
128
+ credentials ||= Credentials.default scope: @config.scope
129
+ if credentials.is_a?(String) || credentials.is_a?(Hash)
130
+ credentials = Credentials.new credentials, scope: @config.scope
131
+ end
132
+
133
+ @client_stub = ::Gapic::Rest::ClientStub.new endpoint: @config.endpoint, credentials: credentials
134
+ end
135
+
136
+ # Service calls
137
+
138
+ ##
139
+ # Adds existing resource policies to a regional disk. You can only add one policy which will be applied to this disk for scheduling snapshot creation.
140
+ #
141
+ # @overload add_resource_policies(request, options = nil)
142
+ # Pass arguments to `add_resource_policies` via a request object, either of type
143
+ # {::Google::Cloud::Compute::V1::AddResourcePoliciesRegionDiskRequest} or an equivalent Hash.
144
+ #
145
+ # @param request [::Google::Cloud::Compute::V1::AddResourcePoliciesRegionDiskRequest, ::Hash]
146
+ # A request object representing the call parameters. Required. To specify no
147
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
148
+ # @param options [::Gapic::CallOptions, ::Hash]
149
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
150
+ # Note: currently retry functionality is not implemented. While it is possible
151
+ # to set it using ::Gapic::CallOptions, it will not be applied
152
+ #
153
+ # @overload add_resource_policies(disk: nil, project: nil, region: nil, region_disks_add_resource_policies_request_resource: nil, request_id: nil)
154
+ # Pass arguments to `add_resource_policies` via keyword arguments. Note that at
155
+ # least one keyword argument is required. To specify no parameters, or to keep all
156
+ # the default parameter values, pass an empty Hash as a request object (see above).
157
+ #
158
+ # @param disk [::String]
159
+ # The disk name for this request.
160
+ # @param project [::String]
161
+ # Project ID for this request.
162
+ # @param region [::String]
163
+ # The name of the region for this request.
164
+ # @param region_disks_add_resource_policies_request_resource [::Google::Cloud::Compute::V1::RegionDisksAddResourcePoliciesRequest, ::Hash]
165
+ # The body resource for this request
166
+ # @param request_id [::String]
167
+ # 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.
168
+ #
169
+ # 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.
170
+ #
171
+ # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
172
+ # @yield [result, env] Access the result along with the Faraday environment object
173
+ # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
174
+ # @yieldparam response [::Faraday::Response]
175
+ #
176
+ # @return [::Google::Cloud::Compute::V1::Operation]
177
+ #
178
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
179
+ def add_resource_policies request, options = nil
180
+ raise ::ArgumentError, "request must be provided" if request.nil?
181
+
182
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::AddResourcePoliciesRegionDiskRequest
183
+
184
+ # Converts hash and nil to an options object
185
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
186
+
187
+ # Customize the options with defaults
188
+ call_metadata = {}
189
+
190
+ # Set x-goog-api-client header
191
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
192
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
193
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION
194
+
195
+ options.apply_defaults timeout: @config.timeout,
196
+ metadata: call_metadata
197
+
198
+ uri, body, _query_string_params = transcode_add_resource_policies request
199
+ response = @client_stub.make_post_request(
200
+ uri: uri,
201
+ body: body,
202
+ options: options
203
+ )
204
+ result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
205
+
206
+ yield result, response if block_given?
207
+ result
208
+ rescue ::Faraday::Error => e
209
+ gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
210
+ raise ::Google::Cloud::Error.from_error(gapic_error)
211
+ end
212
+
213
+ ##
214
+ # Creates a snapshot of this regional disk.
215
+ #
216
+ # @overload create_snapshot(request, options = nil)
217
+ # Pass arguments to `create_snapshot` via a request object, either of type
218
+ # {::Google::Cloud::Compute::V1::CreateSnapshotRegionDiskRequest} or an equivalent Hash.
219
+ #
220
+ # @param request [::Google::Cloud::Compute::V1::CreateSnapshotRegionDiskRequest, ::Hash]
221
+ # A request object representing the call parameters. Required. To specify no
222
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
223
+ # @param options [::Gapic::CallOptions, ::Hash]
224
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
225
+ # Note: currently retry functionality is not implemented. While it is possible
226
+ # to set it using ::Gapic::CallOptions, it will not be applied
227
+ #
228
+ # @overload create_snapshot(disk: nil, project: nil, region: nil, request_id: nil, snapshot_resource: nil)
229
+ # Pass arguments to `create_snapshot` via keyword arguments. Note that at
230
+ # least one keyword argument is required. To specify no parameters, or to keep all
231
+ # the default parameter values, pass an empty Hash as a request object (see above).
232
+ #
233
+ # @param disk [::String]
234
+ # Name of the regional persistent disk to snapshot.
235
+ # @param project [::String]
236
+ # Project ID for this request.
237
+ # @param region [::String]
238
+ # Name of the region for this request.
239
+ # @param request_id [::String]
240
+ # 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.
241
+ #
242
+ # 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.
243
+ #
244
+ # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
245
+ # @param snapshot_resource [::Google::Cloud::Compute::V1::Snapshot, ::Hash]
246
+ # The body resource for this request
247
+ # @yield [result, env] Access the result along with the Faraday environment object
248
+ # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
249
+ # @yieldparam response [::Faraday::Response]
250
+ #
251
+ # @return [::Google::Cloud::Compute::V1::Operation]
252
+ #
253
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
254
+ def create_snapshot request, options = nil
255
+ raise ::ArgumentError, "request must be provided" if request.nil?
256
+
257
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::CreateSnapshotRegionDiskRequest
258
+
259
+ # Converts hash and nil to an options object
260
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
261
+
262
+ # Customize the options with defaults
263
+ call_metadata = {}
264
+
265
+ # Set x-goog-api-client header
266
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
267
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
268
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION
269
+
270
+ options.apply_defaults timeout: @config.timeout,
271
+ metadata: call_metadata
272
+
273
+ uri, body, _query_string_params = transcode_create_snapshot request
274
+ response = @client_stub.make_post_request(
275
+ uri: uri,
276
+ body: body,
277
+ options: options
278
+ )
279
+ result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
280
+
281
+ yield result, response if block_given?
282
+ result
283
+ rescue ::Faraday::Error => e
284
+ gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
285
+ raise ::Google::Cloud::Error.from_error(gapic_error)
286
+ end
287
+
288
+ ##
289
+ # Deletes the specified regional persistent disk. Deleting a regional disk removes all the replicas of its data permanently and is irreversible. However, deleting a disk does not delete any snapshots previously made from the disk. You must separately delete snapshots.
290
+ #
291
+ # @overload delete(request, options = nil)
292
+ # Pass arguments to `delete` via a request object, either of type
293
+ # {::Google::Cloud::Compute::V1::DeleteRegionDiskRequest} or an equivalent Hash.
294
+ #
295
+ # @param request [::Google::Cloud::Compute::V1::DeleteRegionDiskRequest, ::Hash]
296
+ # A request object representing the call parameters. Required. To specify no
297
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
298
+ # @param options [::Gapic::CallOptions, ::Hash]
299
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
300
+ # Note: currently retry functionality is not implemented. While it is possible
301
+ # to set it using ::Gapic::CallOptions, it will not be applied
302
+ #
303
+ # @overload delete(disk: nil, project: nil, region: nil, request_id: nil)
304
+ # Pass arguments to `delete` via keyword arguments. Note that at
305
+ # least one keyword argument is required. To specify no parameters, or to keep all
306
+ # the default parameter values, pass an empty Hash as a request object (see above).
307
+ #
308
+ # @param disk [::String]
309
+ # Name of the regional persistent disk to delete.
310
+ # @param project [::String]
311
+ # Project ID for this request.
312
+ # @param region [::String]
313
+ # Name of the region for this request.
314
+ # @param request_id [::String]
315
+ # 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.
316
+ #
317
+ # 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.
318
+ #
319
+ # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
320
+ # @yield [result, env] Access the result along with the Faraday environment object
321
+ # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
322
+ # @yieldparam response [::Faraday::Response]
323
+ #
324
+ # @return [::Google::Cloud::Compute::V1::Operation]
325
+ #
326
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
327
+ def delete request, options = nil
328
+ raise ::ArgumentError, "request must be provided" if request.nil?
329
+
330
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::DeleteRegionDiskRequest
331
+
332
+ # Converts hash and nil to an options object
333
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
334
+
335
+ # Customize the options with defaults
336
+ call_metadata = {}
337
+
338
+ # Set x-goog-api-client header
339
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
340
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
341
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION
342
+
343
+ options.apply_defaults timeout: @config.timeout,
344
+ metadata: call_metadata
345
+
346
+ uri, _body, query_string_params = transcode_delete request
347
+ response = @client_stub.make_delete_request(
348
+ uri: uri,
349
+ params: query_string_params,
350
+ options: options
351
+ )
352
+ result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
353
+
354
+ yield result, response if block_given?
355
+ result
356
+ rescue ::Faraday::Error => e
357
+ gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
358
+ raise ::Google::Cloud::Error.from_error(gapic_error)
359
+ end
360
+
361
+ ##
362
+ # Returns a specified regional persistent disk.
363
+ #
364
+ # @overload get(request, options = nil)
365
+ # Pass arguments to `get` via a request object, either of type
366
+ # {::Google::Cloud::Compute::V1::GetRegionDiskRequest} or an equivalent Hash.
367
+ #
368
+ # @param request [::Google::Cloud::Compute::V1::GetRegionDiskRequest, ::Hash]
369
+ # A request object representing the call parameters. Required. To specify no
370
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
371
+ # @param options [::Gapic::CallOptions, ::Hash]
372
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
373
+ # Note: currently retry functionality is not implemented. While it is possible
374
+ # to set it using ::Gapic::CallOptions, it will not be applied
375
+ #
376
+ # @overload get(disk: nil, project: nil, region: nil)
377
+ # Pass arguments to `get` via keyword arguments. Note that at
378
+ # least one keyword argument is required. To specify no parameters, or to keep all
379
+ # the default parameter values, pass an empty Hash as a request object (see above).
380
+ #
381
+ # @param disk [::String]
382
+ # Name of the regional persistent disk to return.
383
+ # @param project [::String]
384
+ # Project ID for this request.
385
+ # @param region [::String]
386
+ # Name of the region for this request.
387
+ # @yield [result, env] Access the result along with the Faraday environment object
388
+ # @yieldparam result [::Google::Cloud::Compute::V1::Disk]
389
+ # @yieldparam response [::Faraday::Response]
390
+ #
391
+ # @return [::Google::Cloud::Compute::V1::Disk]
392
+ #
393
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
394
+ def get request, options = nil
395
+ raise ::ArgumentError, "request must be provided" if request.nil?
396
+
397
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::GetRegionDiskRequest
398
+
399
+ # Converts hash and nil to an options object
400
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
401
+
402
+ # Customize the options with defaults
403
+ call_metadata = {}
404
+
405
+ # Set x-goog-api-client header
406
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
407
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
408
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION
409
+
410
+ options.apply_defaults timeout: @config.timeout,
411
+ metadata: call_metadata
412
+
413
+ uri, _body, _query_string_params = transcode_get request
414
+ response = @client_stub.make_get_request(
415
+ uri: uri,
416
+ options: options
417
+ )
418
+ result = ::Google::Cloud::Compute::V1::Disk.decode_json response.body, ignore_unknown_fields: true
419
+
420
+ yield result, response if block_given?
421
+ result
422
+ rescue ::Faraday::Error => e
423
+ gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
424
+ raise ::Google::Cloud::Error.from_error(gapic_error)
425
+ end
426
+
427
+ ##
428
+ # Gets the access control policy for a resource. May be empty if no such policy or resource exists.
429
+ #
430
+ # @overload get_iam_policy(request, options = nil)
431
+ # Pass arguments to `get_iam_policy` via a request object, either of type
432
+ # {::Google::Cloud::Compute::V1::GetIamPolicyRegionDiskRequest} or an equivalent Hash.
433
+ #
434
+ # @param request [::Google::Cloud::Compute::V1::GetIamPolicyRegionDiskRequest, ::Hash]
435
+ # A request object representing the call parameters. Required. To specify no
436
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
437
+ # @param options [::Gapic::CallOptions, ::Hash]
438
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
439
+ # Note: currently retry functionality is not implemented. While it is possible
440
+ # to set it using ::Gapic::CallOptions, it will not be applied
441
+ #
442
+ # @overload get_iam_policy(options_requested_policy_version: nil, project: nil, region: nil, resource: nil)
443
+ # Pass arguments to `get_iam_policy` via keyword arguments. Note that at
444
+ # least one keyword argument is required. To specify no parameters, or to keep all
445
+ # the default parameter values, pass an empty Hash as a request object (see above).
446
+ #
447
+ # @param options_requested_policy_version [::Integer]
448
+ # Requested IAM Policy version.
449
+ # @param project [::String]
450
+ # Project ID for this request.
451
+ # @param region [::String]
452
+ # The name of the region for this request.
453
+ # @param resource [::String]
454
+ # Name or id of the resource for this request.
455
+ # @yield [result, env] Access the result along with the Faraday environment object
456
+ # @yieldparam result [::Google::Cloud::Compute::V1::Policy]
457
+ # @yieldparam response [::Faraday::Response]
458
+ #
459
+ # @return [::Google::Cloud::Compute::V1::Policy]
460
+ #
461
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
462
+ def get_iam_policy request, options = nil
463
+ raise ::ArgumentError, "request must be provided" if request.nil?
464
+
465
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::GetIamPolicyRegionDiskRequest
466
+
467
+ # Converts hash and nil to an options object
468
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
469
+
470
+ # Customize the options with defaults
471
+ call_metadata = {}
472
+
473
+ # Set x-goog-api-client header
474
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
475
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
476
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION
477
+
478
+ options.apply_defaults timeout: @config.timeout,
479
+ metadata: call_metadata
480
+
481
+ uri, _body, query_string_params = transcode_get_iam_policy request
482
+ response = @client_stub.make_get_request(
483
+ uri: uri,
484
+ params: query_string_params,
485
+ options: options
486
+ )
487
+ result = ::Google::Cloud::Compute::V1::Policy.decode_json response.body, ignore_unknown_fields: true
488
+
489
+ yield result, response if block_given?
490
+ result
491
+ rescue ::Faraday::Error => e
492
+ gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
493
+ raise ::Google::Cloud::Error.from_error(gapic_error)
494
+ end
495
+
496
+ ##
497
+ # Creates a persistent regional disk in the specified project using the data included in the request.
498
+ #
499
+ # @overload insert(request, options = nil)
500
+ # Pass arguments to `insert` via a request object, either of type
501
+ # {::Google::Cloud::Compute::V1::InsertRegionDiskRequest} or an equivalent Hash.
502
+ #
503
+ # @param request [::Google::Cloud::Compute::V1::InsertRegionDiskRequest, ::Hash]
504
+ # A request object representing the call parameters. Required. To specify no
505
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
506
+ # @param options [::Gapic::CallOptions, ::Hash]
507
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
508
+ # Note: currently retry functionality is not implemented. While it is possible
509
+ # to set it using ::Gapic::CallOptions, it will not be applied
510
+ #
511
+ # @overload insert(disk_resource: nil, project: nil, region: nil, request_id: nil, source_image: nil)
512
+ # Pass arguments to `insert` via keyword arguments. Note that at
513
+ # least one keyword argument is required. To specify no parameters, or to keep all
514
+ # the default parameter values, pass an empty Hash as a request object (see above).
515
+ #
516
+ # @param disk_resource [::Google::Cloud::Compute::V1::Disk, ::Hash]
517
+ # The body resource for this request
518
+ # @param project [::String]
519
+ # Project ID for this request.
520
+ # @param region [::String]
521
+ # Name of the region for this request.
522
+ # @param request_id [::String]
523
+ # 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.
524
+ #
525
+ # 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.
526
+ #
527
+ # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
528
+ # @param source_image [::String]
529
+ # Optional. Source image to restore onto a disk.
530
+ # @yield [result, env] Access the result along with the Faraday environment object
531
+ # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
532
+ # @yieldparam response [::Faraday::Response]
533
+ #
534
+ # @return [::Google::Cloud::Compute::V1::Operation]
535
+ #
536
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
537
+ def insert request, options = nil
538
+ raise ::ArgumentError, "request must be provided" if request.nil?
539
+
540
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::InsertRegionDiskRequest
541
+
542
+ # Converts hash and nil to an options object
543
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
544
+
545
+ # Customize the options with defaults
546
+ call_metadata = {}
547
+
548
+ # Set x-goog-api-client header
549
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
550
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
551
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION
552
+
553
+ options.apply_defaults timeout: @config.timeout,
554
+ metadata: call_metadata
555
+
556
+ uri, body, _query_string_params = transcode_insert request
557
+ response = @client_stub.make_post_request(
558
+ uri: uri,
559
+ body: body,
560
+ options: options
561
+ )
562
+ result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
563
+
564
+ yield result, response if block_given?
565
+ result
566
+ rescue ::Faraday::Error => e
567
+ gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
568
+ raise ::Google::Cloud::Error.from_error(gapic_error)
569
+ end
570
+
571
+ ##
572
+ # Retrieves the list of persistent disks contained within the specified region.
573
+ #
574
+ # @overload list(request, options = nil)
575
+ # Pass arguments to `list` via a request object, either of type
576
+ # {::Google::Cloud::Compute::V1::ListRegionDisksRequest} or an equivalent Hash.
577
+ #
578
+ # @param request [::Google::Cloud::Compute::V1::ListRegionDisksRequest, ::Hash]
579
+ # A request object representing the call parameters. Required. To specify no
580
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
581
+ # @param options [::Gapic::CallOptions, ::Hash]
582
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
583
+ # Note: currently retry functionality is not implemented. While it is possible
584
+ # to set it using ::Gapic::CallOptions, it will not be applied
585
+ #
586
+ # @overload list(filter: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, region: nil, return_partial_success: nil)
587
+ # Pass arguments to `list` via keyword arguments. Note that at
588
+ # least one keyword argument is required. To specify no parameters, or to keep all
589
+ # the default parameter values, pass an empty Hash as a request object (see above).
590
+ #
591
+ # @param filter [::String]
592
+ # 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 `<`.
593
+ #
594
+ # For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.
595
+ #
596
+ # 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.
597
+ #
598
+ # 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) ```
599
+ # @param max_results [::Integer]
600
+ # 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`)
601
+ # @param order_by [::String]
602
+ # Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
603
+ #
604
+ # 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.
605
+ #
606
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
607
+ # @param page_token [::String]
608
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
609
+ # @param project [::String]
610
+ # Project ID for this request.
611
+ # @param region [::String]
612
+ # Name of the region for this request.
613
+ # @param return_partial_success [::Boolean]
614
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false and the logic is the same as today.
615
+ # @yield [result, env] Access the result along with the Faraday environment object
616
+ # @yieldparam result [::Google::Cloud::Compute::V1::DiskList]
617
+ # @yieldparam response [::Faraday::Response]
618
+ #
619
+ # @return [::Google::Cloud::Compute::V1::DiskList]
620
+ #
621
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
622
+ def list request, options = nil
623
+ raise ::ArgumentError, "request must be provided" if request.nil?
624
+
625
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::ListRegionDisksRequest
626
+
627
+ # Converts hash and nil to an options object
628
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
629
+
630
+ # Customize the options with defaults
631
+ call_metadata = {}
632
+
633
+ # Set x-goog-api-client header
634
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
635
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
636
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION
637
+
638
+ options.apply_defaults timeout: @config.timeout,
639
+ metadata: call_metadata
640
+
641
+ uri, _body, query_string_params = transcode_list request
642
+ response = @client_stub.make_get_request(
643
+ uri: uri,
644
+ params: query_string_params,
645
+ options: options
646
+ )
647
+ result = ::Google::Cloud::Compute::V1::DiskList.decode_json response.body, ignore_unknown_fields: true
648
+
649
+ yield result, response if block_given?
650
+ result
651
+ rescue ::Faraday::Error => e
652
+ gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
653
+ raise ::Google::Cloud::Error.from_error(gapic_error)
654
+ end
655
+
656
+ ##
657
+ # Removes resource policies from a regional disk.
658
+ #
659
+ # @overload remove_resource_policies(request, options = nil)
660
+ # Pass arguments to `remove_resource_policies` via a request object, either of type
661
+ # {::Google::Cloud::Compute::V1::RemoveResourcePoliciesRegionDiskRequest} or an equivalent Hash.
662
+ #
663
+ # @param request [::Google::Cloud::Compute::V1::RemoveResourcePoliciesRegionDiskRequest, ::Hash]
664
+ # A request object representing the call parameters. Required. To specify no
665
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
666
+ # @param options [::Gapic::CallOptions, ::Hash]
667
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
668
+ # Note: currently retry functionality is not implemented. While it is possible
669
+ # to set it using ::Gapic::CallOptions, it will not be applied
670
+ #
671
+ # @overload remove_resource_policies(disk: nil, project: nil, region: nil, region_disks_remove_resource_policies_request_resource: nil, request_id: nil)
672
+ # Pass arguments to `remove_resource_policies` via keyword arguments. Note that at
673
+ # least one keyword argument is required. To specify no parameters, or to keep all
674
+ # the default parameter values, pass an empty Hash as a request object (see above).
675
+ #
676
+ # @param disk [::String]
677
+ # The disk name for this request.
678
+ # @param project [::String]
679
+ # Project ID for this request.
680
+ # @param region [::String]
681
+ # The name of the region for this request.
682
+ # @param region_disks_remove_resource_policies_request_resource [::Google::Cloud::Compute::V1::RegionDisksRemoveResourcePoliciesRequest, ::Hash]
683
+ # The body resource for this request
684
+ # @param request_id [::String]
685
+ # 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.
686
+ #
687
+ # 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.
688
+ #
689
+ # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
690
+ # @yield [result, env] Access the result along with the Faraday environment object
691
+ # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
692
+ # @yieldparam response [::Faraday::Response]
693
+ #
694
+ # @return [::Google::Cloud::Compute::V1::Operation]
695
+ #
696
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
697
+ def remove_resource_policies request, options = nil
698
+ raise ::ArgumentError, "request must be provided" if request.nil?
699
+
700
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::RemoveResourcePoliciesRegionDiskRequest
701
+
702
+ # Converts hash and nil to an options object
703
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
704
+
705
+ # Customize the options with defaults
706
+ call_metadata = {}
707
+
708
+ # Set x-goog-api-client header
709
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
710
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
711
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION
712
+
713
+ options.apply_defaults timeout: @config.timeout,
714
+ metadata: call_metadata
715
+
716
+ uri, body, _query_string_params = transcode_remove_resource_policies request
717
+ response = @client_stub.make_post_request(
718
+ uri: uri,
719
+ body: body,
720
+ options: options
721
+ )
722
+ result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
723
+
724
+ yield result, response if block_given?
725
+ result
726
+ rescue ::Faraday::Error => e
727
+ gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
728
+ raise ::Google::Cloud::Error.from_error(gapic_error)
729
+ end
730
+
731
+ ##
732
+ # Resizes the specified regional persistent disk.
733
+ #
734
+ # @overload resize(request, options = nil)
735
+ # Pass arguments to `resize` via a request object, either of type
736
+ # {::Google::Cloud::Compute::V1::ResizeRegionDiskRequest} or an equivalent Hash.
737
+ #
738
+ # @param request [::Google::Cloud::Compute::V1::ResizeRegionDiskRequest, ::Hash]
739
+ # A request object representing the call parameters. Required. To specify no
740
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
741
+ # @param options [::Gapic::CallOptions, ::Hash]
742
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
743
+ # Note: currently retry functionality is not implemented. While it is possible
744
+ # to set it using ::Gapic::CallOptions, it will not be applied
745
+ #
746
+ # @overload resize(disk: nil, project: nil, region: nil, region_disks_resize_request_resource: nil, request_id: nil)
747
+ # Pass arguments to `resize` via keyword arguments. Note that at
748
+ # least one keyword argument is required. To specify no parameters, or to keep all
749
+ # the default parameter values, pass an empty Hash as a request object (see above).
750
+ #
751
+ # @param disk [::String]
752
+ # Name of the regional persistent disk.
753
+ # @param project [::String]
754
+ # The project ID for this request.
755
+ # @param region [::String]
756
+ # Name of the region for this request.
757
+ # @param region_disks_resize_request_resource [::Google::Cloud::Compute::V1::RegionDisksResizeRequest, ::Hash]
758
+ # The body resource for this request
759
+ # @param request_id [::String]
760
+ # 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.
761
+ #
762
+ # 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.
763
+ #
764
+ # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
765
+ # @yield [result, env] Access the result along with the Faraday environment object
766
+ # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
767
+ # @yieldparam response [::Faraday::Response]
768
+ #
769
+ # @return [::Google::Cloud::Compute::V1::Operation]
770
+ #
771
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
772
+ def resize request, options = nil
773
+ raise ::ArgumentError, "request must be provided" if request.nil?
774
+
775
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::ResizeRegionDiskRequest
776
+
777
+ # Converts hash and nil to an options object
778
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
779
+
780
+ # Customize the options with defaults
781
+ call_metadata = {}
782
+
783
+ # Set x-goog-api-client header
784
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
785
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
786
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION
787
+
788
+ options.apply_defaults timeout: @config.timeout,
789
+ metadata: call_metadata
790
+
791
+ uri, body, _query_string_params = transcode_resize request
792
+ response = @client_stub.make_post_request(
793
+ uri: uri,
794
+ body: body,
795
+ options: options
796
+ )
797
+ result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
798
+
799
+ yield result, response if block_given?
800
+ result
801
+ rescue ::Faraday::Error => e
802
+ gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
803
+ raise ::Google::Cloud::Error.from_error(gapic_error)
804
+ end
805
+
806
+ ##
807
+ # Sets the access control policy on the specified resource. Replaces any existing policy.
808
+ #
809
+ # @overload set_iam_policy(request, options = nil)
810
+ # Pass arguments to `set_iam_policy` via a request object, either of type
811
+ # {::Google::Cloud::Compute::V1::SetIamPolicyRegionDiskRequest} or an equivalent Hash.
812
+ #
813
+ # @param request [::Google::Cloud::Compute::V1::SetIamPolicyRegionDiskRequest, ::Hash]
814
+ # A request object representing the call parameters. Required. To specify no
815
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
816
+ # @param options [::Gapic::CallOptions, ::Hash]
817
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
818
+ # Note: currently retry functionality is not implemented. While it is possible
819
+ # to set it using ::Gapic::CallOptions, it will not be applied
820
+ #
821
+ # @overload set_iam_policy(project: nil, region: nil, region_set_policy_request_resource: nil, resource: nil)
822
+ # Pass arguments to `set_iam_policy` via keyword arguments. Note that at
823
+ # least one keyword argument is required. To specify no parameters, or to keep all
824
+ # the default parameter values, pass an empty Hash as a request object (see above).
825
+ #
826
+ # @param project [::String]
827
+ # Project ID for this request.
828
+ # @param region [::String]
829
+ # The name of the region for this request.
830
+ # @param region_set_policy_request_resource [::Google::Cloud::Compute::V1::RegionSetPolicyRequest, ::Hash]
831
+ # The body resource for this request
832
+ # @param resource [::String]
833
+ # Name or id of the resource for this request.
834
+ # @yield [result, env] Access the result along with the Faraday environment object
835
+ # @yieldparam result [::Google::Cloud::Compute::V1::Policy]
836
+ # @yieldparam response [::Faraday::Response]
837
+ #
838
+ # @return [::Google::Cloud::Compute::V1::Policy]
839
+ #
840
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
841
+ def set_iam_policy request, options = nil
842
+ raise ::ArgumentError, "request must be provided" if request.nil?
843
+
844
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::SetIamPolicyRegionDiskRequest
845
+
846
+ # Converts hash and nil to an options object
847
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
848
+
849
+ # Customize the options with defaults
850
+ call_metadata = {}
851
+
852
+ # Set x-goog-api-client header
853
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
854
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
855
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION
856
+
857
+ options.apply_defaults timeout: @config.timeout,
858
+ metadata: call_metadata
859
+
860
+ uri, body, _query_string_params = transcode_set_iam_policy request
861
+ response = @client_stub.make_post_request(
862
+ uri: uri,
863
+ body: body,
864
+ options: options
865
+ )
866
+ result = ::Google::Cloud::Compute::V1::Policy.decode_json response.body, ignore_unknown_fields: true
867
+
868
+ yield result, response if block_given?
869
+ result
870
+ rescue ::Faraday::Error => e
871
+ gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
872
+ raise ::Google::Cloud::Error.from_error(gapic_error)
873
+ end
874
+
875
+ ##
876
+ # Sets the labels on the target regional disk.
877
+ #
878
+ # @overload set_labels(request, options = nil)
879
+ # Pass arguments to `set_labels` via a request object, either of type
880
+ # {::Google::Cloud::Compute::V1::SetLabelsRegionDiskRequest} or an equivalent Hash.
881
+ #
882
+ # @param request [::Google::Cloud::Compute::V1::SetLabelsRegionDiskRequest, ::Hash]
883
+ # A request object representing the call parameters. Required. To specify no
884
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
885
+ # @param options [::Gapic::CallOptions, ::Hash]
886
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
887
+ # Note: currently retry functionality is not implemented. While it is possible
888
+ # to set it using ::Gapic::CallOptions, it will not be applied
889
+ #
890
+ # @overload set_labels(project: nil, region: nil, region_set_labels_request_resource: nil, request_id: nil, resource: nil)
891
+ # Pass arguments to `set_labels` via keyword arguments. Note that at
892
+ # least one keyword argument is required. To specify no parameters, or to keep all
893
+ # the default parameter values, pass an empty Hash as a request object (see above).
894
+ #
895
+ # @param project [::String]
896
+ # Project ID for this request.
897
+ # @param region [::String]
898
+ # The region for this request.
899
+ # @param region_set_labels_request_resource [::Google::Cloud::Compute::V1::RegionSetLabelsRequest, ::Hash]
900
+ # The body resource for this request
901
+ # @param request_id [::String]
902
+ # 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.
903
+ #
904
+ # 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.
905
+ #
906
+ # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
907
+ # @param resource [::String]
908
+ # Name or id of the resource for this request.
909
+ # @yield [result, env] Access the result along with the Faraday environment object
910
+ # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
911
+ # @yieldparam response [::Faraday::Response]
912
+ #
913
+ # @return [::Google::Cloud::Compute::V1::Operation]
914
+ #
915
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
916
+ def set_labels request, options = nil
917
+ raise ::ArgumentError, "request must be provided" if request.nil?
918
+
919
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::SetLabelsRegionDiskRequest
920
+
921
+ # Converts hash and nil to an options object
922
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
923
+
924
+ # Customize the options with defaults
925
+ call_metadata = {}
926
+
927
+ # Set x-goog-api-client header
928
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
929
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
930
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION
931
+
932
+ options.apply_defaults timeout: @config.timeout,
933
+ metadata: call_metadata
934
+
935
+ uri, body, _query_string_params = transcode_set_labels request
936
+ response = @client_stub.make_post_request(
937
+ uri: uri,
938
+ body: body,
939
+ options: options
940
+ )
941
+ result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
942
+
943
+ yield result, response if block_given?
944
+ result
945
+ rescue ::Faraday::Error => e
946
+ gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
947
+ raise ::Google::Cloud::Error.from_error(gapic_error)
948
+ end
949
+
950
+ ##
951
+ # Returns permissions that a caller has on the specified resource.
952
+ #
953
+ # @overload test_iam_permissions(request, options = nil)
954
+ # Pass arguments to `test_iam_permissions` via a request object, either of type
955
+ # {::Google::Cloud::Compute::V1::TestIamPermissionsRegionDiskRequest} or an equivalent Hash.
956
+ #
957
+ # @param request [::Google::Cloud::Compute::V1::TestIamPermissionsRegionDiskRequest, ::Hash]
958
+ # A request object representing the call parameters. Required. To specify no
959
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
960
+ # @param options [::Gapic::CallOptions, ::Hash]
961
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
962
+ # Note: currently retry functionality is not implemented. While it is possible
963
+ # to set it using ::Gapic::CallOptions, it will not be applied
964
+ #
965
+ # @overload test_iam_permissions(project: nil, region: nil, resource: nil, test_permissions_request_resource: nil)
966
+ # Pass arguments to `test_iam_permissions` via keyword arguments. Note that at
967
+ # least one keyword argument is required. To specify no parameters, or to keep all
968
+ # the default parameter values, pass an empty Hash as a request object (see above).
969
+ #
970
+ # @param project [::String]
971
+ # Project ID for this request.
972
+ # @param region [::String]
973
+ # The name of the region for this request.
974
+ # @param resource [::String]
975
+ # Name or id of the resource for this request.
976
+ # @param test_permissions_request_resource [::Google::Cloud::Compute::V1::TestPermissionsRequest, ::Hash]
977
+ # The body resource for this request
978
+ # @yield [result, env] Access the result along with the Faraday environment object
979
+ # @yieldparam result [::Google::Cloud::Compute::V1::TestPermissionsResponse]
980
+ # @yieldparam response [::Faraday::Response]
981
+ #
982
+ # @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
983
+ #
984
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
985
+ def test_iam_permissions request, options = nil
986
+ raise ::ArgumentError, "request must be provided" if request.nil?
987
+
988
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::TestIamPermissionsRegionDiskRequest
989
+
990
+ # Converts hash and nil to an options object
991
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
992
+
993
+ # Customize the options with defaults
994
+ call_metadata = {}
995
+
996
+ # Set x-goog-api-client header
997
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
998
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
999
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION
1000
+
1001
+ options.apply_defaults timeout: @config.timeout,
1002
+ metadata: call_metadata
1003
+
1004
+ uri, body, _query_string_params = transcode_test_iam_permissions request
1005
+ response = @client_stub.make_post_request(
1006
+ uri: uri,
1007
+ body: body,
1008
+ options: options
1009
+ )
1010
+ result = ::Google::Cloud::Compute::V1::TestPermissionsResponse.decode_json response.body, ignore_unknown_fields: true
1011
+
1012
+ yield result, response if block_given?
1013
+ result
1014
+ rescue ::Faraday::Error => e
1015
+ gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
1016
+ raise ::Google::Cloud::Error.from_error(gapic_error)
1017
+ end
1018
+
1019
+ ##
1020
+ # Configuration class for the RegionDisks REST API.
1021
+ #
1022
+ # This class represents the configuration for RegionDisks REST,
1023
+ # providing control over credentials, timeouts, retry behavior, logging.
1024
+ #
1025
+ # Configuration can be applied globally to all clients, or to a single client
1026
+ # on construction.
1027
+ #
1028
+ # # Examples
1029
+ #
1030
+ # To modify the global config, setting the timeout for all calls to 10 seconds:
1031
+ #
1032
+ # ::Google::Cloud::Compute::V1::RegionDisks::Client.configure do |config|
1033
+ # config.timeout = 10.0
1034
+ # end
1035
+ #
1036
+ # To apply the above configuration only to a new client:
1037
+ #
1038
+ # client = ::Google::Cloud::Compute::V1::RegionDisks::Client.new do |config|
1039
+ # config.timeout = 10.0
1040
+ # end
1041
+ #
1042
+ # @!attribute [rw] endpoint
1043
+ # The hostname or hostname:port of the service endpoint.
1044
+ # Defaults to `"compute.googleapis.com"`.
1045
+ # @return [::String]
1046
+ # @!attribute [rw] credentials
1047
+ # Credentials to send with calls. You may provide any of the following types:
1048
+ # * (`String`) The path to a service account key file in JSON format
1049
+ # * (`Hash`) A service account key as a Hash
1050
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
1051
+ # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1052
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1053
+ # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1054
+ # * (`nil`) indicating no credentials
1055
+ # @return [::Object]
1056
+ # @!attribute [rw] scope
1057
+ # The OAuth scopes
1058
+ # @return [::Array<::String>]
1059
+ # @!attribute [rw] lib_name
1060
+ # The library name as recorded in instrumentation and logging
1061
+ # @return [::String]
1062
+ # @!attribute [rw] lib_version
1063
+ # The library version as recorded in instrumentation and logging
1064
+ # @return [::String]
1065
+ # @!attribute [rw] timeout
1066
+ # The call timeout in seconds.
1067
+ # @return [::Numeric]
1068
+ #
1069
+ class Configuration
1070
+ extend ::Gapic::Config
1071
+
1072
+ config_attr :endpoint, "compute.googleapis.com", ::String
1073
+ config_attr :credentials, nil do |value|
1074
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1075
+ allowed.any? { |klass| klass === value }
1076
+ end
1077
+ config_attr :scope, nil, ::String, ::Array, nil
1078
+ config_attr :lib_name, nil, ::String, nil
1079
+ config_attr :lib_version, nil, ::String, nil
1080
+ config_attr :timeout, nil, ::Numeric, nil
1081
+
1082
+ # @private
1083
+ def initialize parent_config = nil
1084
+ @parent_config = parent_config unless parent_config.nil?
1085
+
1086
+ yield self if block_given?
1087
+ end
1088
+ end
1089
+ end
1090
+ end
1091
+ end
1092
+ end
1093
+ end
1094
+ end
1095
+ end