google-cloud-compute-v1 3.4.0 → 3.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +181 -14
  3. data/lib/google/cloud/compute/v1/addresses/rest/client.rb +237 -20
  4. data/lib/google/cloud/compute/v1/advice/credentials.rb +52 -0
  5. data/lib/google/cloud/compute/v1/advice/rest/client.rb +431 -0
  6. data/lib/google/cloud/compute/v1/advice/rest/service_stub.rb +144 -0
  7. data/lib/google/cloud/compute/v1/advice/rest.rb +51 -0
  8. data/lib/google/cloud/compute/v1/advice.rb +47 -0
  9. data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +334 -21
  10. data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +64 -0
  11. data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +573 -23
  12. data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +122 -0
  13. data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +499 -40
  14. data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +62 -0
  15. data/lib/google/cloud/compute/v1/compute_pb.rb +357 -25
  16. data/lib/google/cloud/compute/v1/cross_site_networks/credentials.rb +52 -0
  17. data/lib/google/cloud/compute/v1/cross_site_networks/rest/client.rb +975 -0
  18. data/lib/google/cloud/compute/v1/cross_site_networks/rest/service_stub.rb +391 -0
  19. data/lib/google/cloud/compute/v1/cross_site_networks/rest.rb +51 -0
  20. data/lib/google/cloud/compute/v1/cross_site_networks.rb +47 -0
  21. data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +181 -14
  22. data/lib/google/cloud/compute/v1/disks/rest/client.rb +508 -42
  23. data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +64 -0
  24. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +118 -11
  25. data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +240 -25
  26. data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +238 -13
  27. data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +63 -0
  28. data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +258 -23
  29. data/lib/google/cloud/compute/v1/future_reservations/credentials.rb +52 -0
  30. data/lib/google/cloud/compute/v1/future_reservations/rest/client.rb +1287 -0
  31. data/lib/google/cloud/compute/v1/future_reservations/rest/service_stub.rb +520 -0
  32. data/lib/google/cloud/compute/v1/future_reservations/rest.rb +51 -0
  33. data/lib/google/cloud/compute/v1/future_reservations.rb +47 -0
  34. data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +126 -10
  35. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +151 -15
  36. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +246 -21
  37. data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +203 -18
  38. data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +91 -9
  39. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +128 -10
  40. data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +333 -21
  41. data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +63 -0
  42. data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +2 -1
  43. data/lib/google/cloud/compute/v1/images/rest/client.rb +161 -18
  44. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest/client.rb +159 -24
  45. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +920 -95
  46. data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +380 -40
  47. data/lib/google/cloud/compute/v1/instance_settings_service/rest/client.rb +13 -1
  48. data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +220 -20
  49. data/lib/google/cloud/compute/v1/instances/rest/client.rb +939 -104
  50. data/lib/google/cloud/compute/v1/instant_snapshot_groups/credentials.rb +52 -0
  51. data/lib/google/cloud/compute/v1/instant_snapshot_groups/rest/client.rb +1145 -0
  52. data/lib/google/cloud/compute/v1/instant_snapshot_groups/rest/service_stub.rb +523 -0
  53. data/lib/google/cloud/compute/v1/instant_snapshot_groups/rest.rb +51 -0
  54. data/lib/google/cloud/compute/v1/instant_snapshot_groups.rb +47 -0
  55. data/lib/google/cloud/compute/v1/instant_snapshots/rest/client.rb +235 -21
  56. data/lib/google/cloud/compute/v1/interconnect_attachment_groups/rest/client.rb +139 -14
  57. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +242 -21
  58. data/lib/google/cloud/compute/v1/interconnect_groups/rest/client.rb +139 -14
  59. data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +87 -7
  60. data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +87 -7
  61. data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +145 -14
  62. data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +9 -2
  63. data/lib/google/cloud/compute/v1/licenses/rest/client.rb +161 -16
  64. data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +124 -13
  65. data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +181 -14
  66. data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +232 -20
  67. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +138 -12
  68. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +361 -37
  69. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +354 -33
  70. data/lib/google/cloud/compute/v1/network_profiles/rest/client.rb +85 -6
  71. data/lib/google/cloud/compute/v1/networks/rest/client.rb +281 -23
  72. data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +381 -32
  73. data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +213 -19
  74. data/lib/google/cloud/compute/v1/node_types/rest/client.rb +181 -14
  75. data/lib/google/cloud/compute/v1/organization_security_policies/credentials.rb +52 -0
  76. data/lib/google/cloud/compute/v1/organization_security_policies/rest/client.rb +2259 -0
  77. data/lib/google/cloud/compute/v1/organization_security_policies/rest/service_stub.rb +1054 -0
  78. data/lib/google/cloud/compute/v1/organization_security_policies/rest.rb +51 -0
  79. data/lib/google/cloud/compute/v1/organization_security_policies.rb +47 -0
  80. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +226 -19
  81. data/lib/google/cloud/compute/v1/preview_features/credentials.rb +52 -0
  82. data/lib/google/cloud/compute/v1/preview_features/rest/client.rb +739 -0
  83. data/lib/google/cloud/compute/v1/preview_features/rest/service_stub.rb +267 -0
  84. data/lib/google/cloud/compute/v1/preview_features/rest.rb +51 -0
  85. data/lib/google/cloud/compute/v1/preview_features.rb +47 -0
  86. data/lib/google/cloud/compute/v1/projects/rest/client.rb +346 -30
  87. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +154 -12
  88. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +255 -22
  89. data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +238 -13
  90. data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +64 -0
  91. data/lib/google/cloud/compute/v1/region_backend_buckets/credentials.rb +52 -0
  92. data/lib/google/cloud/compute/v1/region_backend_buckets/rest/client.rb +1450 -0
  93. data/lib/google/cloud/compute/v1/region_backend_buckets/rest/service_stub.rb +649 -0
  94. data/lib/google/cloud/compute/v1/region_backend_buckets/rest.rb +51 -0
  95. data/lib/google/cloud/compute/v1/region_backend_buckets.rb +47 -0
  96. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +260 -26
  97. data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +212 -18
  98. data/lib/google/cloud/compute/v1/region_composite_health_checks/credentials.rb +52 -0
  99. data/lib/google/cloud/compute/v1/region_composite_health_checks/rest/client.rb +1363 -0
  100. data/lib/google/cloud/compute/v1/region_composite_health_checks/rest/service_stub.rb +584 -0
  101. data/lib/google/cloud/compute/v1/region_composite_health_checks/rest.rb +51 -0
  102. data/lib/google/cloud/compute/v1/region_composite_health_checks.rb +47 -0
  103. data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +83 -5
  104. data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +387 -29
  105. data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +64 -0
  106. data/lib/google/cloud/compute/v1/region_health_aggregation_policies/credentials.rb +52 -0
  107. data/lib/google/cloud/compute/v1/region_health_aggregation_policies/rest/client.rb +1268 -0
  108. data/lib/google/cloud/compute/v1/region_health_aggregation_policies/rest/service_stub.rb +521 -0
  109. data/lib/google/cloud/compute/v1/region_health_aggregation_policies/rest.rb +51 -0
  110. data/lib/google/cloud/compute/v1/region_health_aggregation_policies.rb +47 -0
  111. data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +427 -17
  112. data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +125 -0
  113. data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +238 -13
  114. data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +64 -0
  115. data/lib/google/cloud/compute/v1/region_health_sources/credentials.rb +52 -0
  116. data/lib/google/cloud/compute/v1/region_health_sources/rest/client.rb +1363 -0
  117. data/lib/google/cloud/compute/v1/region_health_sources/rest/service_stub.rb +584 -0
  118. data/lib/google/cloud/compute/v1/region_health_sources/rest.rb +51 -0
  119. data/lib/google/cloud/compute/v1/region_health_sources.rb +47 -0
  120. data/lib/google/cloud/compute/v1/region_instance_group_manager_resize_requests/credentials.rb +52 -0
  121. data/lib/google/cloud/compute/v1/region_instance_group_manager_resize_requests/rest/client.rb +1002 -0
  122. data/lib/google/cloud/compute/v1/region_instance_group_manager_resize_requests/rest/service_stub.rb +400 -0
  123. data/lib/google/cloud/compute/v1/region_instance_group_manager_resize_requests/rest.rb +51 -0
  124. data/lib/google/cloud/compute/v1/region_instance_group_manager_resize_requests.rb +47 -0
  125. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +750 -64
  126. data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +187 -14
  127. data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +115 -10
  128. data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +15 -2
  129. data/lib/google/cloud/compute/v1/region_instant_snapshot_groups/credentials.rb +52 -0
  130. data/lib/google/cloud/compute/v1/region_instant_snapshot_groups/rest/client.rb +1146 -0
  131. data/lib/google/cloud/compute/v1/region_instant_snapshot_groups/rest/service_stub.rb +523 -0
  132. data/lib/google/cloud/compute/v1/region_instant_snapshot_groups/rest.rb +51 -0
  133. data/lib/google/cloud/compute/v1/region_instant_snapshot_groups.rb +47 -0
  134. data/lib/google/cloud/compute/v1/region_instant_snapshots/rest/client.rb +139 -13
  135. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +264 -28
  136. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +213 -20
  137. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +399 -11
  138. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +125 -0
  139. data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +107 -10
  140. data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +149 -14
  141. data/lib/google/cloud/compute/v1/region_snapshot_settings/credentials.rb +52 -0
  142. data/lib/google/cloud/compute/v1/region_snapshot_settings/rest/client.rb +561 -0
  143. data/lib/google/cloud/compute/v1/region_snapshot_settings/rest/service_stub.rb +206 -0
  144. data/lib/google/cloud/compute/v1/region_snapshot_settings/rest.rb +51 -0
  145. data/lib/google/cloud/compute/v1/region_snapshot_settings.rb +47 -0
  146. data/lib/google/cloud/compute/v1/region_snapshots/credentials.rb +52 -0
  147. data/lib/google/cloud/compute/v1/region_snapshots/rest/client.rb +1388 -0
  148. data/lib/google/cloud/compute/v1/region_snapshots/rest/service_stub.rb +651 -0
  149. data/lib/google/cloud/compute/v1/region_snapshots/rest.rb +51 -0
  150. data/lib/google/cloud/compute/v1/region_snapshots.rb +47 -0
  151. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +116 -10
  152. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +220 -20
  153. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +126 -10
  154. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +158 -14
  155. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +113 -9
  156. data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +104 -14
  157. data/lib/google/cloud/compute/v1/region_zones/rest/client.rb +85 -6
  158. data/lib/google/cloud/compute/v1/regions/rest/client.rb +120 -7
  159. data/lib/google/cloud/compute/v1/reservation_blocks/rest/client.rb +396 -11
  160. data/lib/google/cloud/compute/v1/reservation_blocks/rest/service_stub.rb +194 -0
  161. data/lib/google/cloud/compute/v1/reservation_slots/credentials.rb +52 -0
  162. data/lib/google/cloud/compute/v1/reservation_slots/rest/client.rb +863 -0
  163. data/lib/google/cloud/compute/v1/reservation_slots/rest/service_stub.rb +338 -0
  164. data/lib/google/cloud/compute/v1/reservation_slots/rest.rb +51 -0
  165. data/lib/google/cloud/compute/v1/reservation_slots.rb +47 -0
  166. data/lib/google/cloud/compute/v1/reservation_sub_blocks/rest/client.rb +642 -12
  167. data/lib/google/cloud/compute/v1/reservation_sub_blocks/rest/service_stub.rb +327 -3
  168. data/lib/google/cloud/compute/v1/reservations/rest/client.rb +257 -24
  169. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +224 -19
  170. data/lib/google/cloud/compute/v1/rest.rb +17 -0
  171. data/lib/google/cloud/compute/v1/routers/rest/client.rb +555 -50
  172. data/lib/google/cloud/compute/v1/routes/rest/client.rb +202 -8
  173. data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +63 -0
  174. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +316 -26
  175. data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +231 -21
  176. data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/client.rb +13 -1
  177. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +245 -13
  178. data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +63 -0
  179. data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +210 -17
  180. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +315 -27
  181. data/lib/google/cloud/compute/v1/storage_pool_types/rest/client.rb +181 -14
  182. data/lib/google/cloud/compute/v1/storage_pools/rest/client.rb +321 -28
  183. data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +378 -34
  184. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +128 -10
  185. data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +240 -20
  186. data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +306 -30
  187. data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +227 -20
  188. data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +294 -26
  189. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +281 -19
  190. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +63 -0
  191. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +329 -20
  192. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +63 -0
  193. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +224 -19
  194. data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +354 -24
  195. data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +63 -0
  196. data/lib/google/cloud/compute/v1/version.rb +1 -1
  197. data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +224 -19
  198. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +224 -19
  199. data/lib/google/cloud/compute/v1/wire_groups/credentials.rb +52 -0
  200. data/lib/google/cloud/compute/v1/wire_groups/rest/client.rb +980 -0
  201. data/lib/google/cloud/compute/v1/wire_groups/rest/service_stub.rb +396 -0
  202. data/lib/google/cloud/compute/v1/wire_groups/rest.rb +51 -0
  203. data/lib/google/cloud/compute/v1/wire_groups.rb +47 -0
  204. data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +106 -10
  205. data/lib/google/cloud/compute/v1/zone_vm_extension_policies/credentials.rb +52 -0
  206. data/lib/google/cloud/compute/v1/zone_vm_extension_policies/rest/client.rb +975 -0
  207. data/lib/google/cloud/compute/v1/zone_vm_extension_policies/rest/service_stub.rb +396 -0
  208. data/lib/google/cloud/compute/v1/zone_vm_extension_policies/rest.rb +51 -0
  209. data/lib/google/cloud/compute/v1/zone_vm_extension_policies.rb +47 -0
  210. data/lib/google/cloud/compute/v1/zones/rest/client.rb +83 -5
  211. data/lib/google/cloud/compute/v1.rb +17 -0
  212. data/proto_docs/google/api/client.rb +149 -29
  213. data/proto_docs/google/cloud/compute/v1/compute.rb +47064 -5503
  214. metadata +87 -2
@@ -0,0 +1,1146 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2026 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/region_instant_snapshot_groups/rest/service_stub"
22
+ require "google/cloud/compute/v1/region_operations/rest"
23
+
24
+ module Google
25
+ module Cloud
26
+ module Compute
27
+ module V1
28
+ module RegionInstantSnapshotGroups
29
+ module Rest
30
+ ##
31
+ # REST client for the RegionInstantSnapshotGroups service.
32
+ #
33
+ # The RegionInstantSnapshotGroups API.
34
+ #
35
+ class Client
36
+ # @private
37
+ API_VERSION = ""
38
+
39
+ # @private
40
+ DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
41
+
42
+ # @private
43
+ attr_reader :region_instant_snapshot_groups_stub
44
+
45
+ ##
46
+ # Configure the RegionInstantSnapshotGroups Client class.
47
+ #
48
+ # See {::Google::Cloud::Compute::V1::RegionInstantSnapshotGroups::Rest::Client::Configuration}
49
+ # for a description of the configuration fields.
50
+ #
51
+ # @example
52
+ #
53
+ # # Modify the configuration for all RegionInstantSnapshotGroups clients
54
+ # ::Google::Cloud::Compute::V1::RegionInstantSnapshotGroups::Rest::Client.configure do |config|
55
+ # config.timeout = 10.0
56
+ # end
57
+ #
58
+ # @yield [config] Configure the Client client.
59
+ # @yieldparam config [Client::Configuration]
60
+ #
61
+ # @return [Client::Configuration]
62
+ #
63
+ def self.configure
64
+ @configure ||= begin
65
+ namespace = ["Google", "Cloud", "Compute", "V1"]
66
+ parent_config = while namespace.any?
67
+ parent_name = namespace.join "::"
68
+ parent_const = const_get parent_name
69
+ break parent_const.configure if parent_const.respond_to? :configure
70
+ namespace.pop
71
+ end
72
+ default_config = Client::Configuration.new parent_config
73
+
74
+ default_config.rpcs.delete.timeout = 600.0
75
+
76
+ default_config.rpcs.get.timeout = 600.0
77
+ default_config.rpcs.get.retry_policy = {
78
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
79
+ }
80
+
81
+ default_config.rpcs.get_iam_policy.timeout = 600.0
82
+ default_config.rpcs.get_iam_policy.retry_policy = {
83
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
84
+ }
85
+
86
+ default_config.rpcs.insert.timeout = 600.0
87
+
88
+ default_config.rpcs.list.timeout = 600.0
89
+ default_config.rpcs.list.retry_policy = {
90
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
91
+ }
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 RegionInstantSnapshotGroups 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::RegionInstantSnapshotGroups::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
+ # The effective universe domain
125
+ #
126
+ # @return [String]
127
+ #
128
+ def universe_domain
129
+ @region_instant_snapshot_groups_stub.universe_domain
130
+ end
131
+
132
+ ##
133
+ # Create a new RegionInstantSnapshotGroups REST client object.
134
+ #
135
+ # @example
136
+ #
137
+ # # Create a client using the default configuration
138
+ # client = ::Google::Cloud::Compute::V1::RegionInstantSnapshotGroups::Rest::Client.new
139
+ #
140
+ # # Create a client using a custom configuration
141
+ # client = ::Google::Cloud::Compute::V1::RegionInstantSnapshotGroups::Rest::Client.new do |config|
142
+ # config.timeout = 10.0
143
+ # end
144
+ #
145
+ # @yield [config] Configure the RegionInstantSnapshotGroups client.
146
+ # @yieldparam config [Client::Configuration]
147
+ #
148
+ def initialize
149
+ # Create the configuration object
150
+ @config = Configuration.new Client.configure
151
+
152
+ # Yield the configuration if needed
153
+ yield @config if block_given?
154
+
155
+ # Create credentials
156
+ credentials = @config.credentials
157
+ # Use self-signed JWT if the endpoint is unchanged from default,
158
+ # but only if the default endpoint does not have a region prefix.
159
+ enable_self_signed_jwt = @config.endpoint.nil? ||
160
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
161
+ !@config.endpoint.split(".").first.include?("-"))
162
+ credentials ||= Credentials.default scope: @config.scope,
163
+ enable_self_signed_jwt: enable_self_signed_jwt
164
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
165
+ credentials = Credentials.new credentials, scope: @config.scope
166
+ end
167
+
168
+ @quota_project_id = @config.quota_project
169
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
170
+
171
+ @region_operations = ::Google::Cloud::Compute::V1::RegionOperations::Rest::Client.new do |config|
172
+ config.credentials = credentials
173
+ config.quota_project = @quota_project_id
174
+ config.endpoint = @config.endpoint
175
+ config.universe_domain = @config.universe_domain
176
+ end
177
+
178
+ @region_instant_snapshot_groups_stub = ::Google::Cloud::Compute::V1::RegionInstantSnapshotGroups::Rest::ServiceStub.new(
179
+ endpoint: @config.endpoint,
180
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
181
+ universe_domain: @config.universe_domain,
182
+ credentials: credentials,
183
+ logger: @config.logger
184
+ )
185
+
186
+ @region_instant_snapshot_groups_stub.logger(stub: true)&.info do |entry|
187
+ entry.set_system_name
188
+ entry.set_service
189
+ entry.message = "Created client for #{entry.service}"
190
+ entry.set_credentials_fields credentials
191
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
192
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
193
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
194
+ end
195
+ end
196
+
197
+ ##
198
+ # Get the associated client for long-running operations via RegionOperations.
199
+ #
200
+ # @return [::Google::Cloud::Compute::V1::RegionOperations::Rest::Client]
201
+ #
202
+ attr_reader :region_operations
203
+
204
+ ##
205
+ # The logger used for request/response debug logging.
206
+ #
207
+ # @return [Logger]
208
+ #
209
+ def logger
210
+ @region_instant_snapshot_groups_stub.logger
211
+ end
212
+
213
+ # Service calls
214
+
215
+ ##
216
+ # deletes a Regional InstantSnapshotGroup resource
217
+ #
218
+ # @overload delete(request, options = nil)
219
+ # Pass arguments to `delete` via a request object, either of type
220
+ # {::Google::Cloud::Compute::V1::DeleteRegionInstantSnapshotGroupRequest} or an equivalent Hash.
221
+ #
222
+ # @param request [::Google::Cloud::Compute::V1::DeleteRegionInstantSnapshotGroupRequest, ::Hash]
223
+ # A request object representing the call parameters. Required. To specify no
224
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
225
+ # @param options [::Gapic::CallOptions, ::Hash]
226
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
227
+ #
228
+ # @overload delete(instant_snapshot_group: nil, project: nil, region: nil, request_id: nil)
229
+ # Pass arguments to `delete` 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 instant_snapshot_group [::String]
234
+ # Name of the InstantSnapshotGroup resource to delete.
235
+ # @param project [::String]
236
+ # Project ID for this request.
237
+ # @param region [::String]
238
+ # The 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
241
+ # that if you must retry your request, the server will know to ignore the
242
+ # request if it has already been completed.
243
+ #
244
+ # For example, consider a situation where you make an initial request and
245
+ # the request times out. If you make the request again with the same
246
+ # request ID, the server can check if original operation with the same
247
+ # request ID was received, and if so, will ignore the second request. This
248
+ # prevents clients from accidentally creating duplicate commitments.
249
+ #
250
+ # The request ID must be
251
+ # a valid UUID with the exception that zero UUID is not supported
252
+ # (00000000-0000-0000-0000-000000000000).
253
+ # @yield [result, operation] Access the result along with the TransportOperation object
254
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
255
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
256
+ #
257
+ # @return [::Gapic::GenericLRO::Operation]
258
+ #
259
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
260
+ #
261
+ # @example Basic example
262
+ # require "google/cloud/compute/v1"
263
+ #
264
+ # # Create a client object. The client can be reused for multiple calls.
265
+ # client = Google::Cloud::Compute::V1::RegionInstantSnapshotGroups::Rest::Client.new
266
+ #
267
+ # # Create a request. To set request fields, pass in keyword arguments.
268
+ # request = Google::Cloud::Compute::V1::DeleteRegionInstantSnapshotGroupRequest.new
269
+ #
270
+ # # Call the delete method.
271
+ # result = client.delete request
272
+ #
273
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
274
+ # p result
275
+ #
276
+ def delete request, options = nil
277
+ raise ::ArgumentError, "request must be provided" if request.nil?
278
+
279
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::DeleteRegionInstantSnapshotGroupRequest
280
+
281
+ # Converts hash and nil to an options object
282
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
283
+
284
+ # Customize the options with defaults
285
+ call_metadata = @config.rpcs.delete.metadata.to_h
286
+
287
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
288
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
289
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
290
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
291
+ transports_version_send: [:rest]
292
+
293
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
294
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
295
+
296
+ options.apply_defaults timeout: @config.rpcs.delete.timeout,
297
+ metadata: call_metadata,
298
+ retry_policy: @config.rpcs.delete.retry_policy
299
+
300
+ options.apply_defaults timeout: @config.timeout,
301
+ metadata: @config.metadata,
302
+ retry_policy: @config.retry_policy
303
+
304
+ @region_instant_snapshot_groups_stub.delete request, options do |result, response|
305
+ result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
306
+ operation: result,
307
+ client: region_operations,
308
+ request_values: {
309
+ "project" => request.project,
310
+ "region" => request.region
311
+ },
312
+ options: options
313
+ )
314
+ yield result, response if block_given?
315
+ throw :response, result
316
+ end
317
+ rescue ::Gapic::Rest::Error => e
318
+ raise ::Google::Cloud::Error.from_error(e)
319
+ end
320
+
321
+ ##
322
+ # returns the specified InstantSnapshotGroup resource in the specified
323
+ # region.
324
+ #
325
+ # @overload get(request, options = nil)
326
+ # Pass arguments to `get` via a request object, either of type
327
+ # {::Google::Cloud::Compute::V1::GetRegionInstantSnapshotGroupRequest} or an equivalent Hash.
328
+ #
329
+ # @param request [::Google::Cloud::Compute::V1::GetRegionInstantSnapshotGroupRequest, ::Hash]
330
+ # A request object representing the call parameters. Required. To specify no
331
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
332
+ # @param options [::Gapic::CallOptions, ::Hash]
333
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
334
+ #
335
+ # @overload get(instant_snapshot_group: nil, project: nil, region: nil)
336
+ # Pass arguments to `get` via keyword arguments. Note that at
337
+ # least one keyword argument is required. To specify no parameters, or to keep all
338
+ # the default parameter values, pass an empty Hash as a request object (see above).
339
+ #
340
+ # @param instant_snapshot_group [::String]
341
+ # Name of the InstantSnapshotGroup resource to return.
342
+ # @param project [::String]
343
+ # Project ID for this request.
344
+ # @param region [::String]
345
+ # The name of the region for this request.
346
+ # @yield [result, operation] Access the result along with the TransportOperation object
347
+ # @yieldparam result [::Google::Cloud::Compute::V1::InstantSnapshotGroup]
348
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
349
+ #
350
+ # @return [::Google::Cloud::Compute::V1::InstantSnapshotGroup]
351
+ #
352
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
353
+ #
354
+ # @example Basic example
355
+ # require "google/cloud/compute/v1"
356
+ #
357
+ # # Create a client object. The client can be reused for multiple calls.
358
+ # client = Google::Cloud::Compute::V1::RegionInstantSnapshotGroups::Rest::Client.new
359
+ #
360
+ # # Create a request. To set request fields, pass in keyword arguments.
361
+ # request = Google::Cloud::Compute::V1::GetRegionInstantSnapshotGroupRequest.new
362
+ #
363
+ # # Call the get method.
364
+ # result = client.get request
365
+ #
366
+ # # The returned object is of type Google::Cloud::Compute::V1::InstantSnapshotGroup.
367
+ # p result
368
+ #
369
+ def get request, options = nil
370
+ raise ::ArgumentError, "request must be provided" if request.nil?
371
+
372
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::GetRegionInstantSnapshotGroupRequest
373
+
374
+ # Converts hash and nil to an options object
375
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
376
+
377
+ # Customize the options with defaults
378
+ call_metadata = @config.rpcs.get.metadata.to_h
379
+
380
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
381
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
382
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
383
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
384
+ transports_version_send: [:rest]
385
+
386
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
387
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
388
+
389
+ options.apply_defaults timeout: @config.rpcs.get.timeout,
390
+ metadata: call_metadata,
391
+ retry_policy: @config.rpcs.get.retry_policy
392
+
393
+ options.apply_defaults timeout: @config.timeout,
394
+ metadata: @config.metadata,
395
+ retry_policy: @config.retry_policy
396
+
397
+ @region_instant_snapshot_groups_stub.get request, options do |result, operation|
398
+ yield result, operation if block_given?
399
+ end
400
+ rescue ::Gapic::Rest::Error => e
401
+ raise ::Google::Cloud::Error.from_error(e)
402
+ end
403
+
404
+ ##
405
+ # Gets the access control policy for a resource. May be empty if no such
406
+ # policy or resource exists.
407
+ #
408
+ # @overload get_iam_policy(request, options = nil)
409
+ # Pass arguments to `get_iam_policy` via a request object, either of type
410
+ # {::Google::Cloud::Compute::V1::GetIamPolicyRegionInstantSnapshotGroupRequest} or an equivalent Hash.
411
+ #
412
+ # @param request [::Google::Cloud::Compute::V1::GetIamPolicyRegionInstantSnapshotGroupRequest, ::Hash]
413
+ # A request object representing the call parameters. Required. To specify no
414
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
415
+ # @param options [::Gapic::CallOptions, ::Hash]
416
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
417
+ #
418
+ # @overload get_iam_policy(options_requested_policy_version: nil, project: nil, region: nil, resource: nil)
419
+ # Pass arguments to `get_iam_policy` via keyword arguments. Note that at
420
+ # least one keyword argument is required. To specify no parameters, or to keep all
421
+ # the default parameter values, pass an empty Hash as a request object (see above).
422
+ #
423
+ # @param options_requested_policy_version [::Integer]
424
+ # Requested IAM Policy version.
425
+ # @param project [::String]
426
+ # Project ID for this request.
427
+ # @param region [::String]
428
+ # The name of the region for this request.
429
+ # @param resource [::String]
430
+ # Name or id of the resource for this request.
431
+ # @yield [result, operation] Access the result along with the TransportOperation object
432
+ # @yieldparam result [::Google::Cloud::Compute::V1::Policy]
433
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
434
+ #
435
+ # @return [::Google::Cloud::Compute::V1::Policy]
436
+ #
437
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
438
+ #
439
+ # @example Basic example
440
+ # require "google/cloud/compute/v1"
441
+ #
442
+ # # Create a client object. The client can be reused for multiple calls.
443
+ # client = Google::Cloud::Compute::V1::RegionInstantSnapshotGroups::Rest::Client.new
444
+ #
445
+ # # Create a request. To set request fields, pass in keyword arguments.
446
+ # request = Google::Cloud::Compute::V1::GetIamPolicyRegionInstantSnapshotGroupRequest.new
447
+ #
448
+ # # Call the get_iam_policy method.
449
+ # result = client.get_iam_policy request
450
+ #
451
+ # # The returned object is of type Google::Cloud::Compute::V1::Policy.
452
+ # p result
453
+ #
454
+ def get_iam_policy request, options = nil
455
+ raise ::ArgumentError, "request must be provided" if request.nil?
456
+
457
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::GetIamPolicyRegionInstantSnapshotGroupRequest
458
+
459
+ # Converts hash and nil to an options object
460
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
461
+
462
+ # Customize the options with defaults
463
+ call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
464
+
465
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
466
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
467
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
468
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
469
+ transports_version_send: [:rest]
470
+
471
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
472
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
473
+
474
+ options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
475
+ metadata: call_metadata,
476
+ retry_policy: @config.rpcs.get_iam_policy.retry_policy
477
+
478
+ options.apply_defaults timeout: @config.timeout,
479
+ metadata: @config.metadata,
480
+ retry_policy: @config.retry_policy
481
+
482
+ @region_instant_snapshot_groups_stub.get_iam_policy request, options do |result, operation|
483
+ yield result, operation if block_given?
484
+ end
485
+ rescue ::Gapic::Rest::Error => e
486
+ raise ::Google::Cloud::Error.from_error(e)
487
+ end
488
+
489
+ ##
490
+ # creates a Regional InstantSnapshotGroup resource
491
+ #
492
+ # @overload insert(request, options = nil)
493
+ # Pass arguments to `insert` via a request object, either of type
494
+ # {::Google::Cloud::Compute::V1::InsertRegionInstantSnapshotGroupRequest} or an equivalent Hash.
495
+ #
496
+ # @param request [::Google::Cloud::Compute::V1::InsertRegionInstantSnapshotGroupRequest, ::Hash]
497
+ # A request object representing the call parameters. Required. To specify no
498
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
499
+ # @param options [::Gapic::CallOptions, ::Hash]
500
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
501
+ #
502
+ # @overload insert(instant_snapshot_group_resource: nil, project: nil, region: nil, request_id: nil, source_consistency_group: nil)
503
+ # Pass arguments to `insert` via keyword arguments. Note that at
504
+ # least one keyword argument is required. To specify no parameters, or to keep all
505
+ # the default parameter values, pass an empty Hash as a request object (see above).
506
+ #
507
+ # @param instant_snapshot_group_resource [::Google::Cloud::Compute::V1::InstantSnapshotGroup, ::Hash]
508
+ # The body resource for this request
509
+ # @param project [::String]
510
+ # Project ID for this request.
511
+ # @param region [::String]
512
+ # Name of the region for this request.
513
+ # @param request_id [::String]
514
+ # An optional request ID to identify requests. Specify a unique request ID so
515
+ # that if you must retry your request, the server will know to ignore the
516
+ # request if it has already been completed.
517
+ #
518
+ # For example, consider a situation where you make an initial request and
519
+ # the request times out. If you make the request again with the same
520
+ # request ID, the server can check if original operation with the same
521
+ # request ID was received, and if so, will ignore the second request. This
522
+ # prevents clients from accidentally creating duplicate commitments.
523
+ #
524
+ # The request ID must be
525
+ # a valid UUID with the exception that zero UUID is not supported
526
+ # (00000000-0000-0000-0000-000000000000).
527
+ # @param source_consistency_group [::String]
528
+ # begin_interface: MixerMutationRequestBuilder
529
+ # @yield [result, operation] Access the result along with the TransportOperation object
530
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
531
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
532
+ #
533
+ # @return [::Gapic::GenericLRO::Operation]
534
+ #
535
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
536
+ #
537
+ # @example Basic example
538
+ # require "google/cloud/compute/v1"
539
+ #
540
+ # # Create a client object. The client can be reused for multiple calls.
541
+ # client = Google::Cloud::Compute::V1::RegionInstantSnapshotGroups::Rest::Client.new
542
+ #
543
+ # # Create a request. To set request fields, pass in keyword arguments.
544
+ # request = Google::Cloud::Compute::V1::InsertRegionInstantSnapshotGroupRequest.new
545
+ #
546
+ # # Call the insert method.
547
+ # result = client.insert request
548
+ #
549
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
550
+ # p result
551
+ #
552
+ def insert request, options = nil
553
+ raise ::ArgumentError, "request must be provided" if request.nil?
554
+
555
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::InsertRegionInstantSnapshotGroupRequest
556
+
557
+ # Converts hash and nil to an options object
558
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
559
+
560
+ # Customize the options with defaults
561
+ call_metadata = @config.rpcs.insert.metadata.to_h
562
+
563
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
564
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
565
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
566
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
567
+ transports_version_send: [:rest]
568
+
569
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
570
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
571
+
572
+ options.apply_defaults timeout: @config.rpcs.insert.timeout,
573
+ metadata: call_metadata,
574
+ retry_policy: @config.rpcs.insert.retry_policy
575
+
576
+ options.apply_defaults timeout: @config.timeout,
577
+ metadata: @config.metadata,
578
+ retry_policy: @config.retry_policy
579
+
580
+ @region_instant_snapshot_groups_stub.insert request, options do |result, response|
581
+ result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
582
+ operation: result,
583
+ client: region_operations,
584
+ request_values: {
585
+ "project" => request.project,
586
+ "region" => request.region
587
+ },
588
+ options: options
589
+ )
590
+ yield result, response if block_given?
591
+ throw :response, result
592
+ end
593
+ rescue ::Gapic::Rest::Error => e
594
+ raise ::Google::Cloud::Error.from_error(e)
595
+ end
596
+
597
+ ##
598
+ # retrieves the list of InstantSnapshotGroup resources contained within
599
+ # the specified region.
600
+ #
601
+ # @overload list(request, options = nil)
602
+ # Pass arguments to `list` via a request object, either of type
603
+ # {::Google::Cloud::Compute::V1::ListRegionInstantSnapshotGroupsRequest} or an equivalent Hash.
604
+ #
605
+ # @param request [::Google::Cloud::Compute::V1::ListRegionInstantSnapshotGroupsRequest, ::Hash]
606
+ # A request object representing the call parameters. Required. To specify no
607
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
608
+ # @param options [::Gapic::CallOptions, ::Hash]
609
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
610
+ #
611
+ # @overload list(filter: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, region: nil, return_partial_success: nil)
612
+ # Pass arguments to `list` via keyword arguments. Note that at
613
+ # least one keyword argument is required. To specify no parameters, or to keep all
614
+ # the default parameter values, pass an empty Hash as a request object (see above).
615
+ #
616
+ # @param filter [::String]
617
+ # A filter expression that filters resources listed in the response. Most
618
+ # Compute resources support two types of filter expressions:
619
+ # expressions that support regular expressions and expressions that follow
620
+ # API improvement proposal AIP-160.
621
+ # These two types of filter expressions cannot be mixed in one request.
622
+ #
623
+ # If you want to use AIP-160, your expression must specify the field name, an
624
+ # operator, and the value that you want to use for filtering. The value
625
+ # must be a string, a number, or a boolean. The operator
626
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
627
+ #
628
+ # For example, if you are filtering Compute Engine instances, you can
629
+ # exclude instances named `example-instance` by specifying
630
+ # `name != example-instance`.
631
+ #
632
+ # The `:*` comparison can be used to test whether a key has been defined.
633
+ # For example, to find all objects with `owner` label use:
634
+ # ```
635
+ # labels.owner:*
636
+ # ```
637
+ #
638
+ # You can also filter nested fields. For example, you could specify
639
+ # `scheduling.automaticRestart = false` to include instances only
640
+ # if they are not scheduled for automatic restarts. You can use filtering
641
+ # on nested fields to filter based onresource labels.
642
+ #
643
+ # To filter on multiple expressions, provide each separate expression within
644
+ # parentheses. For example:
645
+ # ```
646
+ # (scheduling.automaticRestart = true)
647
+ # (cpuPlatform = "Intel Skylake")
648
+ # ```
649
+ # By default, each expression is an `AND` expression. However, you
650
+ # can include `AND` and `OR` expressions explicitly.
651
+ # For example:
652
+ # ```
653
+ # (cpuPlatform = "Intel Skylake") OR
654
+ # (cpuPlatform = "Intel Broadwell") AND
655
+ # (scheduling.automaticRestart = true)
656
+ # ```
657
+ #
658
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
659
+ # (not equal) operator against a single un-parenthesized expression with or
660
+ # without quotes or against multiple parenthesized expressions. Examples:
661
+ #
662
+ # `fieldname eq unquoted literal`
663
+ # `fieldname eq 'single quoted literal'`
664
+ # `fieldname eq "double quoted literal"`
665
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
666
+ #
667
+ # The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
668
+ # The literal value must match the entire field.
669
+ #
670
+ # For example, to filter for instances that do not end with name "instance",
671
+ # you would use `name ne .*instance`.
672
+ #
673
+ # You cannot combine constraints on multiple fields using regular
674
+ # expressions.
675
+ # @param max_results [::Integer]
676
+ # The maximum number of results per page that should be returned.
677
+ # If the number of available results is larger than `maxResults`,
678
+ # Compute Engine returns a `nextPageToken` that can be used to get
679
+ # the next page of results in subsequent list requests. Acceptable values are
680
+ # `0` to `500`, inclusive. (Default: `500`)
681
+ # @param order_by [::String]
682
+ # Sorts list results by a certain order. By default, results
683
+ # are returned in alphanumerical order based on the resource name.
684
+ #
685
+ # You can also sort results in descending order based on the creation
686
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
687
+ # results based on the `creationTimestamp` field in
688
+ # reverse chronological order (newest result first). Use this to sort
689
+ # resources like operations so that the newest operation is returned first.
690
+ #
691
+ # Currently, only sorting by `name` or
692
+ # `creationTimestamp desc` is supported.
693
+ # @param page_token [::String]
694
+ # Specifies a page token to use. Set `pageToken` to the
695
+ # `nextPageToken` returned by a previous list request to get
696
+ # the next page of results.
697
+ # @param project [::String]
698
+ # Project ID for this request.
699
+ # @param region [::String]
700
+ # The name of the region for this request.
701
+ # @param return_partial_success [::Boolean]
702
+ # Opt-in for partial success behavior which provides partial results in case
703
+ # of failure. The default value is false.
704
+ #
705
+ # For example, when partial success behavior is enabled, aggregatedList for a
706
+ # single zone scope either returns all resources in the zone or no resources,
707
+ # with an error code.
708
+ # @yield [result, operation] Access the result along with the TransportOperation object
709
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::InstantSnapshotGroup>]
710
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
711
+ #
712
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::InstantSnapshotGroup>]
713
+ #
714
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
715
+ #
716
+ # @example Basic example
717
+ # require "google/cloud/compute/v1"
718
+ #
719
+ # # Create a client object. The client can be reused for multiple calls.
720
+ # client = Google::Cloud::Compute::V1::RegionInstantSnapshotGroups::Rest::Client.new
721
+ #
722
+ # # Create a request. To set request fields, pass in keyword arguments.
723
+ # request = Google::Cloud::Compute::V1::ListRegionInstantSnapshotGroupsRequest.new
724
+ #
725
+ # # Call the list method.
726
+ # result = client.list request
727
+ #
728
+ # # The returned object is of type Google::Cloud::Compute::V1::ListInstantSnapshotGroups.
729
+ # p result
730
+ #
731
+ def list request, options = nil
732
+ raise ::ArgumentError, "request must be provided" if request.nil?
733
+
734
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::ListRegionInstantSnapshotGroupsRequest
735
+
736
+ # Converts hash and nil to an options object
737
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
738
+
739
+ # Customize the options with defaults
740
+ call_metadata = @config.rpcs.list.metadata.to_h
741
+
742
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
743
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
744
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
745
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
746
+ transports_version_send: [:rest]
747
+
748
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
749
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
750
+
751
+ options.apply_defaults timeout: @config.rpcs.list.timeout,
752
+ metadata: call_metadata,
753
+ retry_policy: @config.rpcs.list.retry_policy
754
+
755
+ options.apply_defaults timeout: @config.timeout,
756
+ metadata: @config.metadata,
757
+ retry_policy: @config.retry_policy
758
+
759
+ @region_instant_snapshot_groups_stub.list request, options do |result, operation|
760
+ result = ::Gapic::Rest::PagedEnumerable.new @region_instant_snapshot_groups_stub, :list, "items", request, result, options
761
+ yield result, operation if block_given?
762
+ throw :response, result
763
+ end
764
+ rescue ::Gapic::Rest::Error => e
765
+ raise ::Google::Cloud::Error.from_error(e)
766
+ end
767
+
768
+ ##
769
+ # Sets the access control policy on the specified resource.
770
+ # Replaces any existing policy.
771
+ #
772
+ # @overload set_iam_policy(request, options = nil)
773
+ # Pass arguments to `set_iam_policy` via a request object, either of type
774
+ # {::Google::Cloud::Compute::V1::SetIamPolicyRegionInstantSnapshotGroupRequest} or an equivalent Hash.
775
+ #
776
+ # @param request [::Google::Cloud::Compute::V1::SetIamPolicyRegionInstantSnapshotGroupRequest, ::Hash]
777
+ # A request object representing the call parameters. Required. To specify no
778
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
779
+ # @param options [::Gapic::CallOptions, ::Hash]
780
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
781
+ #
782
+ # @overload set_iam_policy(project: nil, region: nil, region_set_policy_request_resource: nil, resource: nil)
783
+ # Pass arguments to `set_iam_policy` via keyword arguments. Note that at
784
+ # least one keyword argument is required. To specify no parameters, or to keep all
785
+ # the default parameter values, pass an empty Hash as a request object (see above).
786
+ #
787
+ # @param project [::String]
788
+ # Project ID for this request.
789
+ # @param region [::String]
790
+ # The name of the region for this request.
791
+ # @param region_set_policy_request_resource [::Google::Cloud::Compute::V1::RegionSetPolicyRequest, ::Hash]
792
+ # The body resource for this request
793
+ # @param resource [::String]
794
+ # Name or id of the resource for this request.
795
+ # @yield [result, operation] Access the result along with the TransportOperation object
796
+ # @yieldparam result [::Google::Cloud::Compute::V1::Policy]
797
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
798
+ #
799
+ # @return [::Google::Cloud::Compute::V1::Policy]
800
+ #
801
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
802
+ #
803
+ # @example Basic example
804
+ # require "google/cloud/compute/v1"
805
+ #
806
+ # # Create a client object. The client can be reused for multiple calls.
807
+ # client = Google::Cloud::Compute::V1::RegionInstantSnapshotGroups::Rest::Client.new
808
+ #
809
+ # # Create a request. To set request fields, pass in keyword arguments.
810
+ # request = Google::Cloud::Compute::V1::SetIamPolicyRegionInstantSnapshotGroupRequest.new
811
+ #
812
+ # # Call the set_iam_policy method.
813
+ # result = client.set_iam_policy request
814
+ #
815
+ # # The returned object is of type Google::Cloud::Compute::V1::Policy.
816
+ # p result
817
+ #
818
+ def set_iam_policy request, options = nil
819
+ raise ::ArgumentError, "request must be provided" if request.nil?
820
+
821
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::SetIamPolicyRegionInstantSnapshotGroupRequest
822
+
823
+ # Converts hash and nil to an options object
824
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
825
+
826
+ # Customize the options with defaults
827
+ call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
828
+
829
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
830
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
831
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
832
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
833
+ transports_version_send: [:rest]
834
+
835
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
836
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
837
+
838
+ options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
839
+ metadata: call_metadata,
840
+ retry_policy: @config.rpcs.set_iam_policy.retry_policy
841
+
842
+ options.apply_defaults timeout: @config.timeout,
843
+ metadata: @config.metadata,
844
+ retry_policy: @config.retry_policy
845
+
846
+ @region_instant_snapshot_groups_stub.set_iam_policy request, options do |result, operation|
847
+ yield result, operation if block_given?
848
+ end
849
+ rescue ::Gapic::Rest::Error => e
850
+ raise ::Google::Cloud::Error.from_error(e)
851
+ end
852
+
853
+ ##
854
+ # Returns permissions that a caller has on the specified resource.
855
+ #
856
+ # @overload test_iam_permissions(request, options = nil)
857
+ # Pass arguments to `test_iam_permissions` via a request object, either of type
858
+ # {::Google::Cloud::Compute::V1::TestIamPermissionsRegionInstantSnapshotGroupRequest} or an equivalent Hash.
859
+ #
860
+ # @param request [::Google::Cloud::Compute::V1::TestIamPermissionsRegionInstantSnapshotGroupRequest, ::Hash]
861
+ # A request object representing the call parameters. Required. To specify no
862
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
863
+ # @param options [::Gapic::CallOptions, ::Hash]
864
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
865
+ #
866
+ # @overload test_iam_permissions(project: nil, region: nil, resource: nil, test_permissions_request_resource: nil)
867
+ # Pass arguments to `test_iam_permissions` via keyword arguments. Note that at
868
+ # least one keyword argument is required. To specify no parameters, or to keep all
869
+ # the default parameter values, pass an empty Hash as a request object (see above).
870
+ #
871
+ # @param project [::String]
872
+ # Project ID for this request.
873
+ # @param region [::String]
874
+ # The name of the region for this request.
875
+ # @param resource [::String]
876
+ # Name or id of the resource for this request.
877
+ # @param test_permissions_request_resource [::Google::Cloud::Compute::V1::TestPermissionsRequest, ::Hash]
878
+ # The body resource for this request
879
+ # @yield [result, operation] Access the result along with the TransportOperation object
880
+ # @yieldparam result [::Google::Cloud::Compute::V1::TestPermissionsResponse]
881
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
882
+ #
883
+ # @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
884
+ #
885
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
886
+ #
887
+ # @example Basic example
888
+ # require "google/cloud/compute/v1"
889
+ #
890
+ # # Create a client object. The client can be reused for multiple calls.
891
+ # client = Google::Cloud::Compute::V1::RegionInstantSnapshotGroups::Rest::Client.new
892
+ #
893
+ # # Create a request. To set request fields, pass in keyword arguments.
894
+ # request = Google::Cloud::Compute::V1::TestIamPermissionsRegionInstantSnapshotGroupRequest.new
895
+ #
896
+ # # Call the test_iam_permissions method.
897
+ # result = client.test_iam_permissions request
898
+ #
899
+ # # The returned object is of type Google::Cloud::Compute::V1::TestPermissionsResponse.
900
+ # p result
901
+ #
902
+ def test_iam_permissions request, options = nil
903
+ raise ::ArgumentError, "request must be provided" if request.nil?
904
+
905
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::TestIamPermissionsRegionInstantSnapshotGroupRequest
906
+
907
+ # Converts hash and nil to an options object
908
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
909
+
910
+ # Customize the options with defaults
911
+ call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
912
+
913
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
914
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
915
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
916
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
917
+ transports_version_send: [:rest]
918
+
919
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
920
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
921
+
922
+ options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
923
+ metadata: call_metadata,
924
+ retry_policy: @config.rpcs.test_iam_permissions.retry_policy
925
+
926
+ options.apply_defaults timeout: @config.timeout,
927
+ metadata: @config.metadata,
928
+ retry_policy: @config.retry_policy
929
+
930
+ @region_instant_snapshot_groups_stub.test_iam_permissions request, options do |result, operation|
931
+ yield result, operation if block_given?
932
+ end
933
+ rescue ::Gapic::Rest::Error => e
934
+ raise ::Google::Cloud::Error.from_error(e)
935
+ end
936
+
937
+ ##
938
+ # Configuration class for the RegionInstantSnapshotGroups REST API.
939
+ #
940
+ # This class represents the configuration for RegionInstantSnapshotGroups REST,
941
+ # providing control over timeouts, retry behavior, logging, transport
942
+ # parameters, and other low-level controls. Certain parameters can also be
943
+ # applied individually to specific RPCs. See
944
+ # {::Google::Cloud::Compute::V1::RegionInstantSnapshotGroups::Rest::Client::Configuration::Rpcs}
945
+ # for a list of RPCs that can be configured independently.
946
+ #
947
+ # Configuration can be applied globally to all clients, or to a single client
948
+ # on construction.
949
+ #
950
+ # @example
951
+ #
952
+ # # Modify the global config, setting the timeout for
953
+ # # delete to 20 seconds,
954
+ # # and all remaining timeouts to 10 seconds.
955
+ # ::Google::Cloud::Compute::V1::RegionInstantSnapshotGroups::Rest::Client.configure do |config|
956
+ # config.timeout = 10.0
957
+ # config.rpcs.delete.timeout = 20.0
958
+ # end
959
+ #
960
+ # # Apply the above configuration only to a new client.
961
+ # client = ::Google::Cloud::Compute::V1::RegionInstantSnapshotGroups::Rest::Client.new do |config|
962
+ # config.timeout = 10.0
963
+ # config.rpcs.delete.timeout = 20.0
964
+ # end
965
+ #
966
+ # @!attribute [rw] endpoint
967
+ # A custom service endpoint, as a hostname or hostname:port. The default is
968
+ # nil, indicating to use the default endpoint in the current universe domain.
969
+ # @return [::String,nil]
970
+ # @!attribute [rw] credentials
971
+ # Credentials to send with calls. You may provide any of the following types:
972
+ # * (`String`) The path to a service account key file in JSON format
973
+ # * (`Hash`) A service account key as a Hash
974
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
975
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
976
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
977
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
978
+ # * (`nil`) indicating no credentials
979
+ #
980
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
981
+ # external source for authentication to Google Cloud, you must validate it before
982
+ # providing it to a Google API client library. Providing an unvalidated credential
983
+ # configuration to Google APIs can compromise the security of your systems and data.
984
+ # For more information, refer to [Validate credential configurations from external
985
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
986
+ # @return [::Object]
987
+ # @!attribute [rw] scope
988
+ # The OAuth scopes
989
+ # @return [::Array<::String>]
990
+ # @!attribute [rw] lib_name
991
+ # The library name as recorded in instrumentation and logging
992
+ # @return [::String]
993
+ # @!attribute [rw] lib_version
994
+ # The library version as recorded in instrumentation and logging
995
+ # @return [::String]
996
+ # @!attribute [rw] timeout
997
+ # The call timeout in seconds.
998
+ # @return [::Numeric]
999
+ # @!attribute [rw] metadata
1000
+ # Additional headers to be sent with the call.
1001
+ # @return [::Hash{::Symbol=>::String}]
1002
+ # @!attribute [rw] retry_policy
1003
+ # The retry policy. The value is a hash with the following keys:
1004
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1005
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1006
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1007
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1008
+ # trigger a retry.
1009
+ # @return [::Hash]
1010
+ # @!attribute [rw] quota_project
1011
+ # A separate project against which to charge quota.
1012
+ # @return [::String]
1013
+ # @!attribute [rw] universe_domain
1014
+ # The universe domain within which to make requests. This determines the
1015
+ # default endpoint URL. The default value of nil uses the environment
1016
+ # universe (usually the default "googleapis.com" universe).
1017
+ # @return [::String,nil]
1018
+ # @!attribute [rw] logger
1019
+ # A custom logger to use for request/response debug logging, or the value
1020
+ # `:default` (the default) to construct a default logger, or `nil` to
1021
+ # explicitly disable logging.
1022
+ # @return [::Logger,:default,nil]
1023
+ #
1024
+ class Configuration
1025
+ extend ::Gapic::Config
1026
+
1027
+ # @private
1028
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
1029
+ DEFAULT_ENDPOINT = "compute.googleapis.com"
1030
+
1031
+ config_attr :endpoint, nil, ::String, nil
1032
+ config_attr :credentials, nil do |value|
1033
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
1034
+ allowed.any? { |klass| klass === value }
1035
+ end
1036
+ config_attr :scope, nil, ::String, ::Array, nil
1037
+ config_attr :lib_name, nil, ::String, nil
1038
+ config_attr :lib_version, nil, ::String, nil
1039
+ config_attr :timeout, nil, ::Numeric, nil
1040
+ config_attr :metadata, nil, ::Hash, nil
1041
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
1042
+ config_attr :quota_project, nil, ::String, nil
1043
+ config_attr :universe_domain, nil, ::String, nil
1044
+ config_attr :logger, :default, ::Logger, nil, :default
1045
+
1046
+ # @private
1047
+ def initialize parent_config = nil
1048
+ @parent_config = parent_config unless parent_config.nil?
1049
+
1050
+ yield self if block_given?
1051
+ end
1052
+
1053
+ ##
1054
+ # Configurations for individual RPCs
1055
+ # @return [Rpcs]
1056
+ #
1057
+ def rpcs
1058
+ @rpcs ||= begin
1059
+ parent_rpcs = nil
1060
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
1061
+ Rpcs.new parent_rpcs
1062
+ end
1063
+ end
1064
+
1065
+ ##
1066
+ # Configuration RPC class for the RegionInstantSnapshotGroups API.
1067
+ #
1068
+ # Includes fields providing the configuration for each RPC in this service.
1069
+ # Each configuration object is of type `Gapic::Config::Method` and includes
1070
+ # the following configuration fields:
1071
+ #
1072
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
1073
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
1074
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
1075
+ # include the following keys:
1076
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1077
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1078
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1079
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1080
+ # trigger a retry.
1081
+ #
1082
+ class Rpcs
1083
+ ##
1084
+ # RPC-specific configuration for `delete`
1085
+ # @return [::Gapic::Config::Method]
1086
+ #
1087
+ attr_reader :delete
1088
+ ##
1089
+ # RPC-specific configuration for `get`
1090
+ # @return [::Gapic::Config::Method]
1091
+ #
1092
+ attr_reader :get
1093
+ ##
1094
+ # RPC-specific configuration for `get_iam_policy`
1095
+ # @return [::Gapic::Config::Method]
1096
+ #
1097
+ attr_reader :get_iam_policy
1098
+ ##
1099
+ # RPC-specific configuration for `insert`
1100
+ # @return [::Gapic::Config::Method]
1101
+ #
1102
+ attr_reader :insert
1103
+ ##
1104
+ # RPC-specific configuration for `list`
1105
+ # @return [::Gapic::Config::Method]
1106
+ #
1107
+ attr_reader :list
1108
+ ##
1109
+ # RPC-specific configuration for `set_iam_policy`
1110
+ # @return [::Gapic::Config::Method]
1111
+ #
1112
+ attr_reader :set_iam_policy
1113
+ ##
1114
+ # RPC-specific configuration for `test_iam_permissions`
1115
+ # @return [::Gapic::Config::Method]
1116
+ #
1117
+ attr_reader :test_iam_permissions
1118
+
1119
+ # @private
1120
+ def initialize parent_rpcs = nil
1121
+ delete_config = parent_rpcs.delete if parent_rpcs.respond_to? :delete
1122
+ @delete = ::Gapic::Config::Method.new delete_config
1123
+ get_config = parent_rpcs.get if parent_rpcs.respond_to? :get
1124
+ @get = ::Gapic::Config::Method.new get_config
1125
+ get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
1126
+ @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
1127
+ insert_config = parent_rpcs.insert if parent_rpcs.respond_to? :insert
1128
+ @insert = ::Gapic::Config::Method.new insert_config
1129
+ list_config = parent_rpcs.list if parent_rpcs.respond_to? :list
1130
+ @list = ::Gapic::Config::Method.new list_config
1131
+ set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
1132
+ @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
1133
+ test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
1134
+ @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
1135
+
1136
+ yield self if block_given?
1137
+ end
1138
+ end
1139
+ end
1140
+ end
1141
+ end
1142
+ end
1143
+ end
1144
+ end
1145
+ end
1146
+ end