google-cloud-compute-v1 2.1.0 → 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (191) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +4 -2
  3. data/lib/google/cloud/compute/v1/accelerator_types/rest/service_stub.rb +3 -3
  4. data/lib/google/cloud/compute/v1/addresses/rest/client.rb +92 -2
  5. data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +68 -6
  6. data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +4 -2
  7. data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +7 -7
  8. data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +4 -2
  9. data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +9 -9
  10. data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +4 -2
  11. data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +14 -14
  12. data/lib/google/cloud/compute/v1/compute_pb.rb +68 -10873
  13. data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +4 -2
  14. data/lib/google/cloud/compute/v1/disk_types/rest/service_stub.rb +3 -3
  15. data/lib/google/cloud/compute/v1/disks/rest/client.rb +350 -2
  16. data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +259 -14
  17. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +4 -2
  18. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/service_stub.rb +6 -6
  19. data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +4 -2
  20. data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +18 -18
  21. data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +4 -2
  22. data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +6 -6
  23. data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +4 -2
  24. data/lib/google/cloud/compute/v1/forwarding_rules/rest/service_stub.rb +8 -8
  25. data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +89 -2
  26. data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +66 -5
  27. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +4 -2
  28. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/service_stub.rb +7 -7
  29. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +4 -2
  30. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/service_stub.rb +7 -7
  31. data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +4 -2
  32. data/lib/google/cloud/compute/v1/global_operations/rest/service_stub.rb +5 -5
  33. data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +4 -2
  34. data/lib/google/cloud/compute/v1/global_organization_operations/rest/service_stub.rb +3 -3
  35. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +4 -2
  36. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/service_stub.rb +5 -5
  37. data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +4 -2
  38. data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +7 -7
  39. data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +4 -2
  40. data/lib/google/cloud/compute/v1/image_family_views/rest/service_stub.rb +1 -1
  41. data/lib/google/cloud/compute/v1/images/rest/client.rb +4 -2
  42. data/lib/google/cloud/compute/v1/images/rest/service_stub.rb +11 -11
  43. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +4 -2
  44. data/lib/google/cloud/compute/v1/instance_group_managers/rest/service_stub.rb +20 -20
  45. data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +4 -2
  46. data/lib/google/cloud/compute/v1/instance_groups/rest/service_stub.rb +9 -9
  47. data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +4 -2
  48. data/lib/google/cloud/compute/v1/instance_templates/rest/service_stub.rb +8 -8
  49. data/lib/google/cloud/compute/v1/instances/rest/client.rb +7 -3
  50. data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +46 -46
  51. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +4 -2
  52. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/service_stub.rb +7 -7
  53. data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +4 -2
  54. data/lib/google/cloud/compute/v1/interconnect_locations/rest/service_stub.rb +2 -2
  55. data/lib/google/cloud/compute/v1/interconnect_remote_locations/credentials.rb +53 -0
  56. data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +436 -0
  57. data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/service_stub.rb +167 -0
  58. data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest.rb +51 -0
  59. data/lib/google/cloud/compute/v1/interconnect_remote_locations.rb +47 -0
  60. data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +4 -2
  61. data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +7 -7
  62. data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +4 -2
  63. data/lib/google/cloud/compute/v1/license_codes/rest/service_stub.rb +2 -2
  64. data/lib/google/cloud/compute/v1/licenses/rest/client.rb +4 -2
  65. data/lib/google/cloud/compute/v1/licenses/rest/service_stub.rb +7 -7
  66. data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +4 -2
  67. data/lib/google/cloud/compute/v1/machine_images/rest/service_stub.rb +7 -7
  68. data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +4 -2
  69. data/lib/google/cloud/compute/v1/machine_types/rest/service_stub.rb +3 -3
  70. data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +4 -2
  71. data/lib/google/cloud/compute/v1/network_attachments/rest/service_stub.rb +8 -8
  72. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +4 -2
  73. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/service_stub.rb +5 -5
  74. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +4 -2
  75. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/service_stub.rb +9 -9
  76. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +4 -2
  77. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/service_stub.rb +16 -16
  78. data/lib/google/cloud/compute/v1/networks/rest/client.rb +4 -2
  79. data/lib/google/cloud/compute/v1/networks/rest/service_stub.rb +11 -11
  80. data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +4 -2
  81. data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +14 -14
  82. data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +4 -2
  83. data/lib/google/cloud/compute/v1/node_templates/rest/service_stub.rb +8 -8
  84. data/lib/google/cloud/compute/v1/node_types/rest/client.rb +4 -2
  85. data/lib/google/cloud/compute/v1/node_types/rest/service_stub.rb +3 -3
  86. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +4 -2
  87. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/service_stub.rb +7 -7
  88. data/lib/google/cloud/compute/v1/projects/rest/client.rb +5 -3
  89. data/lib/google/cloud/compute/v1/projects/rest/service_stub.rb +13 -13
  90. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +4 -2
  91. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +5 -5
  92. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +4 -2
  93. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +6 -6
  94. data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +4 -2
  95. data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +6 -6
  96. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +4 -2
  97. data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +9 -9
  98. data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +4 -2
  99. data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +5 -5
  100. data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +4 -2
  101. data/lib/google/cloud/compute/v1/region_disk_types/rest/service_stub.rb +2 -2
  102. data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +350 -2
  103. data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +258 -13
  104. data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +4 -2
  105. data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +5 -5
  106. data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +4 -2
  107. data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +6 -6
  108. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +4 -2
  109. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/service_stub.rb +19 -19
  110. data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +4 -2
  111. data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +4 -4
  112. data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +4 -2
  113. data/lib/google/cloud/compute/v1/region_instance_templates/rest/service_stub.rb +4 -4
  114. data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +4 -2
  115. data/lib/google/cloud/compute/v1/region_instances/rest/service_stub.rb +1 -1
  116. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +4 -2
  117. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +4 -4
  118. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +4 -2
  119. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/service_stub.rb +17 -17
  120. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +4 -2
  121. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +4 -4
  122. data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +4 -2
  123. data/lib/google/cloud/compute/v1/region_operations/rest/service_stub.rb +4 -4
  124. data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +4 -2
  125. data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +5 -5
  126. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +4 -2
  127. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/service_stub.rb +4 -4
  128. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +4 -2
  129. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/service_stub.rb +6 -6
  130. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +4 -2
  131. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/service_stub.rb +5 -5
  132. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +4 -2
  133. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +7 -7
  134. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +4 -2
  135. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/service_stub.rb +4 -4
  136. data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +4 -2
  137. data/lib/google/cloud/compute/v1/region_url_maps/rest/service_stub.rb +7 -7
  138. data/lib/google/cloud/compute/v1/regions/rest/client.rb +4 -2
  139. data/lib/google/cloud/compute/v1/regions/rest/service_stub.rb +2 -2
  140. data/lib/google/cloud/compute/v1/reservations/rest/client.rb +4 -2
  141. data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +10 -10
  142. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +4 -2
  143. data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +8 -8
  144. data/lib/google/cloud/compute/v1/rest.rb +1 -0
  145. data/lib/google/cloud/compute/v1/routers/rest/client.rb +7 -3
  146. data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +10 -10
  147. data/lib/google/cloud/compute/v1/routes/rest/client.rb +4 -2
  148. data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +4 -4
  149. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +4 -2
  150. data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +12 -12
  151. data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +4 -2
  152. data/lib/google/cloud/compute/v1/service_attachments/rest/service_stub.rb +9 -9
  153. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +4 -2
  154. data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +8 -8
  155. data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +4 -2
  156. data/lib/google/cloud/compute/v1/ssl_certificates/rest/service_stub.rb +5 -5
  157. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +4 -2
  158. data/lib/google/cloud/compute/v1/ssl_policies/rest/service_stub.rb +7 -7
  159. data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +4 -2
  160. data/lib/google/cloud/compute/v1/subnetworks/rest/service_stub.rb +12 -12
  161. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +4 -2
  162. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/service_stub.rb +5 -5
  163. data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +4 -2
  164. data/lib/google/cloud/compute/v1/target_http_proxies/rest/service_stub.rb +7 -7
  165. data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +4 -2
  166. data/lib/google/cloud/compute/v1/target_https_proxies/rest/service_stub.rb +11 -11
  167. data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +4 -2
  168. data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +5 -5
  169. data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +4 -2
  170. data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +11 -11
  171. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +4 -2
  172. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +9 -9
  173. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +4 -2
  174. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +7 -7
  175. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +4 -2
  176. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/service_stub.rb +6 -6
  177. data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +4 -2
  178. data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +9 -9
  179. data/lib/google/cloud/compute/v1/version.rb +1 -1
  180. data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +4 -2
  181. data/lib/google/cloud/compute/v1/vpn_gateways/rest/service_stub.rb +8 -8
  182. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +4 -2
  183. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/service_stub.rb +6 -6
  184. data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +4 -2
  185. data/lib/google/cloud/compute/v1/zone_operations/rest/service_stub.rb +4 -4
  186. data/lib/google/cloud/compute/v1/zones/rest/client.rb +4 -2
  187. data/lib/google/cloud/compute/v1/zones/rest/service_stub.rb +2 -2
  188. data/lib/google/cloud/compute/v1.rb +1 -0
  189. data/proto_docs/google/api/client.rb +58 -1
  190. data/proto_docs/google/cloud/compute/v1/compute.rb +1025 -102
  191. metadata +9 -4
@@ -0,0 +1,53 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 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 InterconnectRemoteLocations
26
+ # Credentials for the InterconnectRemoteLocations API.
27
+ class Credentials < ::Google::Auth::Credentials
28
+ self.scope = [
29
+ "https://www.googleapis.com/auth/compute.readonly",
30
+ "https://www.googleapis.com/auth/compute",
31
+ "https://www.googleapis.com/auth/cloud-platform"
32
+ ]
33
+ self.env_vars = [
34
+ "COMPUTE_CREDENTIALS",
35
+ "COMPUTE_KEYFILE",
36
+ "GOOGLE_CLOUD_CREDENTIALS",
37
+ "GOOGLE_CLOUD_KEYFILE",
38
+ "GCLOUD_KEYFILE",
39
+ "COMPUTE_CREDENTIALS_JSON",
40
+ "COMPUTE_KEYFILE_JSON",
41
+ "GOOGLE_CLOUD_CREDENTIALS_JSON",
42
+ "GOOGLE_CLOUD_KEYFILE_JSON",
43
+ "GCLOUD_KEYFILE_JSON"
44
+ ]
45
+ self.paths = [
46
+ "~/.config/google_cloud/application_default_credentials.json"
47
+ ]
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,436 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 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/interconnect_remote_locations/rest/service_stub"
22
+
23
+ module Google
24
+ module Cloud
25
+ module Compute
26
+ module V1
27
+ module InterconnectRemoteLocations
28
+ module Rest
29
+ ##
30
+ # REST client for the InterconnectRemoteLocations service.
31
+ #
32
+ # The InterconnectRemoteLocations API.
33
+ #
34
+ class Client
35
+ # @private
36
+ attr_reader :interconnect_remote_locations_stub
37
+
38
+ ##
39
+ # Configure the InterconnectRemoteLocations Client class.
40
+ #
41
+ # See {::Google::Cloud::Compute::V1::InterconnectRemoteLocations::Rest::Client::Configuration}
42
+ # for a description of the configuration fields.
43
+ #
44
+ # @example
45
+ #
46
+ # # Modify the configuration for all InterconnectRemoteLocations clients
47
+ # ::Google::Cloud::Compute::V1::InterconnectRemoteLocations::Rest::Client.configure do |config|
48
+ # config.timeout = 10.0
49
+ # end
50
+ #
51
+ # @yield [config] Configure the Client client.
52
+ # @yieldparam config [Client::Configuration]
53
+ #
54
+ # @return [Client::Configuration]
55
+ #
56
+ def self.configure
57
+ @configure ||= begin
58
+ namespace = ["Google", "Cloud", "Compute", "V1"]
59
+ parent_config = while namespace.any?
60
+ parent_name = namespace.join "::"
61
+ parent_const = const_get parent_name
62
+ break parent_const.configure if parent_const.respond_to? :configure
63
+ namespace.pop
64
+ end
65
+ default_config = Client::Configuration.new parent_config
66
+
67
+ default_config.rpcs.get.timeout = 600.0
68
+ default_config.rpcs.get.retry_policy = {
69
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
70
+ }
71
+
72
+ default_config.rpcs.list.timeout = 600.0
73
+ default_config.rpcs.list.retry_policy = {
74
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
75
+ }
76
+
77
+ default_config
78
+ end
79
+ yield @configure if block_given?
80
+ @configure
81
+ end
82
+
83
+ ##
84
+ # Configure the InterconnectRemoteLocations Client instance.
85
+ #
86
+ # The configuration is set to the derived mode, meaning that values can be changed,
87
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
88
+ # should be made on {Client.configure}.
89
+ #
90
+ # See {::Google::Cloud::Compute::V1::InterconnectRemoteLocations::Rest::Client::Configuration}
91
+ # for a description of the configuration fields.
92
+ #
93
+ # @yield [config] Configure the Client client.
94
+ # @yieldparam config [Client::Configuration]
95
+ #
96
+ # @return [Client::Configuration]
97
+ #
98
+ def configure
99
+ yield @config if block_given?
100
+ @config
101
+ end
102
+
103
+ ##
104
+ # Create a new InterconnectRemoteLocations REST client object.
105
+ #
106
+ # @example
107
+ #
108
+ # # Create a client using the default configuration
109
+ # client = ::Google::Cloud::Compute::V1::InterconnectRemoteLocations::Rest::Client.new
110
+ #
111
+ # # Create a client using a custom configuration
112
+ # client = ::Google::Cloud::Compute::V1::InterconnectRemoteLocations::Rest::Client.new do |config|
113
+ # config.timeout = 10.0
114
+ # end
115
+ #
116
+ # @yield [config] Configure the InterconnectRemoteLocations client.
117
+ # @yieldparam config [Client::Configuration]
118
+ #
119
+ def initialize
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
+ # Use self-signed JWT if the endpoint is unchanged from default,
129
+ # but only if the default endpoint does not have a region prefix.
130
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
131
+ !@config.endpoint.split(".").first.include?("-")
132
+ credentials ||= Credentials.default scope: @config.scope,
133
+ enable_self_signed_jwt: enable_self_signed_jwt
134
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
135
+ credentials = Credentials.new credentials, scope: @config.scope
136
+ end
137
+
138
+ @quota_project_id = @config.quota_project
139
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
140
+
141
+ @interconnect_remote_locations_stub = ::Google::Cloud::Compute::V1::InterconnectRemoteLocations::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
142
+ end
143
+
144
+ # Service calls
145
+
146
+ ##
147
+ # Returns the details for the specified interconnect remote location. Gets a list of available interconnect remote locations by making a list() request.
148
+ #
149
+ # @overload get(request, options = nil)
150
+ # Pass arguments to `get` via a request object, either of type
151
+ # {::Google::Cloud::Compute::V1::GetInterconnectRemoteLocationRequest} or an equivalent Hash.
152
+ #
153
+ # @param request [::Google::Cloud::Compute::V1::GetInterconnectRemoteLocationRequest, ::Hash]
154
+ # A request object representing the call parameters. Required. To specify no
155
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
156
+ # @param options [::Gapic::CallOptions, ::Hash]
157
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
158
+ #
159
+ # @overload get(interconnect_remote_location: nil, project: nil)
160
+ # Pass arguments to `get` via keyword arguments. Note that at
161
+ # least one keyword argument is required. To specify no parameters, or to keep all
162
+ # the default parameter values, pass an empty Hash as a request object (see above).
163
+ #
164
+ # @param interconnect_remote_location [::String]
165
+ # Name of the interconnect remote location to return.
166
+ # @param project [::String]
167
+ # Project ID for this request.
168
+ # @yield [result, operation] Access the result along with the TransportOperation object
169
+ # @yieldparam result [::Google::Cloud::Compute::V1::InterconnectRemoteLocation]
170
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
171
+ #
172
+ # @return [::Google::Cloud::Compute::V1::InterconnectRemoteLocation]
173
+ #
174
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
175
+ def get request, options = nil
176
+ raise ::ArgumentError, "request must be provided" if request.nil?
177
+
178
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::GetInterconnectRemoteLocationRequest
179
+
180
+ # Converts hash and nil to an options object
181
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
182
+
183
+ # Customize the options with defaults
184
+ call_metadata = @config.rpcs.get.metadata.to_h
185
+
186
+ # Set x-goog-api-client and x-goog-user-project headers
187
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
188
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
189
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
190
+ transports_version_send: [:rest]
191
+
192
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
193
+
194
+ options.apply_defaults timeout: @config.rpcs.get.timeout,
195
+ metadata: call_metadata,
196
+ retry_policy: @config.rpcs.get.retry_policy
197
+
198
+ options.apply_defaults timeout: @config.timeout,
199
+ metadata: @config.metadata,
200
+ retry_policy: @config.retry_policy
201
+
202
+ @interconnect_remote_locations_stub.get request, options do |result, operation|
203
+ yield result, operation if block_given?
204
+ return result
205
+ end
206
+ rescue ::Gapic::Rest::Error => e
207
+ raise ::Google::Cloud::Error.from_error(e)
208
+ end
209
+
210
+ ##
211
+ # Retrieves the list of interconnect remote locations available to the specified project.
212
+ #
213
+ # @overload list(request, options = nil)
214
+ # Pass arguments to `list` via a request object, either of type
215
+ # {::Google::Cloud::Compute::V1::ListInterconnectRemoteLocationsRequest} or an equivalent Hash.
216
+ #
217
+ # @param request [::Google::Cloud::Compute::V1::ListInterconnectRemoteLocationsRequest, ::Hash]
218
+ # A request object representing the call parameters. Required. To specify no
219
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
220
+ # @param options [::Gapic::CallOptions, ::Hash]
221
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
222
+ #
223
+ # @overload list(filter: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil)
224
+ # Pass arguments to `list` via keyword arguments. Note that at
225
+ # least one keyword argument is required. To specify no parameters, or to keep all
226
+ # the default parameter values, pass an empty Hash as a request object (see above).
227
+ #
228
+ # @param filter [::String]
229
+ # A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`.
230
+ # @param max_results [::Integer]
231
+ # 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`)
232
+ # @param order_by [::String]
233
+ # Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
234
+ # @param page_token [::String]
235
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
236
+ # @param project [::String]
237
+ # Project ID for this request.
238
+ # @param return_partial_success [::Boolean]
239
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
240
+ # @yield [result, operation] Access the result along with the TransportOperation object
241
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::InterconnectRemoteLocation>]
242
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
243
+ #
244
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::InterconnectRemoteLocation>]
245
+ #
246
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
247
+ def list request, options = nil
248
+ raise ::ArgumentError, "request must be provided" if request.nil?
249
+
250
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::ListInterconnectRemoteLocationsRequest
251
+
252
+ # Converts hash and nil to an options object
253
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
254
+
255
+ # Customize the options with defaults
256
+ call_metadata = @config.rpcs.list.metadata.to_h
257
+
258
+ # Set x-goog-api-client and x-goog-user-project headers
259
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
260
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
261
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
262
+ transports_version_send: [:rest]
263
+
264
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
265
+
266
+ options.apply_defaults timeout: @config.rpcs.list.timeout,
267
+ metadata: call_metadata,
268
+ retry_policy: @config.rpcs.list.retry_policy
269
+
270
+ options.apply_defaults timeout: @config.timeout,
271
+ metadata: @config.metadata,
272
+ retry_policy: @config.retry_policy
273
+
274
+ @interconnect_remote_locations_stub.list request, options do |result, operation|
275
+ result = ::Gapic::Rest::PagedEnumerable.new @interconnect_remote_locations_stub, :list, "items", request, result, options
276
+ yield result, operation if block_given?
277
+ return result
278
+ end
279
+ rescue ::Gapic::Rest::Error => e
280
+ raise ::Google::Cloud::Error.from_error(e)
281
+ end
282
+
283
+ ##
284
+ # Configuration class for the InterconnectRemoteLocations REST API.
285
+ #
286
+ # This class represents the configuration for InterconnectRemoteLocations REST,
287
+ # providing control over timeouts, retry behavior, logging, transport
288
+ # parameters, and other low-level controls. Certain parameters can also be
289
+ # applied individually to specific RPCs. See
290
+ # {::Google::Cloud::Compute::V1::InterconnectRemoteLocations::Rest::Client::Configuration::Rpcs}
291
+ # for a list of RPCs that can be configured independently.
292
+ #
293
+ # Configuration can be applied globally to all clients, or to a single client
294
+ # on construction.
295
+ #
296
+ # @example
297
+ #
298
+ # # Modify the global config, setting the timeout for
299
+ # # get to 20 seconds,
300
+ # # and all remaining timeouts to 10 seconds.
301
+ # ::Google::Cloud::Compute::V1::InterconnectRemoteLocations::Rest::Client.configure do |config|
302
+ # config.timeout = 10.0
303
+ # config.rpcs.get.timeout = 20.0
304
+ # end
305
+ #
306
+ # # Apply the above configuration only to a new client.
307
+ # client = ::Google::Cloud::Compute::V1::InterconnectRemoteLocations::Rest::Client.new do |config|
308
+ # config.timeout = 10.0
309
+ # config.rpcs.get.timeout = 20.0
310
+ # end
311
+ #
312
+ # @!attribute [rw] endpoint
313
+ # The hostname or hostname:port of the service endpoint.
314
+ # Defaults to `"compute.googleapis.com"`.
315
+ # @return [::String]
316
+ # @!attribute [rw] credentials
317
+ # Credentials to send with calls. You may provide any of the following types:
318
+ # * (`String`) The path to a service account key file in JSON format
319
+ # * (`Hash`) A service account key as a Hash
320
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
321
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
322
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
323
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
324
+ # * (`nil`) indicating no credentials
325
+ # @return [::Object]
326
+ # @!attribute [rw] scope
327
+ # The OAuth scopes
328
+ # @return [::Array<::String>]
329
+ # @!attribute [rw] lib_name
330
+ # The library name as recorded in instrumentation and logging
331
+ # @return [::String]
332
+ # @!attribute [rw] lib_version
333
+ # The library version as recorded in instrumentation and logging
334
+ # @return [::String]
335
+ # @!attribute [rw] timeout
336
+ # The call timeout in seconds.
337
+ # @return [::Numeric]
338
+ # @!attribute [rw] metadata
339
+ # Additional headers to be sent with the call.
340
+ # @return [::Hash{::Symbol=>::String}]
341
+ # @!attribute [rw] retry_policy
342
+ # The retry policy. The value is a hash with the following keys:
343
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
344
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
345
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
346
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
347
+ # trigger a retry.
348
+ # @return [::Hash]
349
+ # @!attribute [rw] quota_project
350
+ # A separate project against which to charge quota.
351
+ # @return [::String]
352
+ #
353
+ class Configuration
354
+ extend ::Gapic::Config
355
+
356
+ DEFAULT_ENDPOINT = "compute.googleapis.com"
357
+
358
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
359
+ config_attr :credentials, nil do |value|
360
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
361
+ allowed.any? { |klass| klass === value }
362
+ end
363
+ config_attr :scope, nil, ::String, ::Array, nil
364
+ config_attr :lib_name, nil, ::String, nil
365
+ config_attr :lib_version, nil, ::String, nil
366
+ config_attr :timeout, nil, ::Numeric, nil
367
+ config_attr :metadata, nil, ::Hash, nil
368
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
369
+ config_attr :quota_project, nil, ::String, nil
370
+
371
+ # @private
372
+ def initialize parent_config = nil
373
+ @parent_config = parent_config unless parent_config.nil?
374
+
375
+ yield self if block_given?
376
+ end
377
+
378
+ ##
379
+ # Configurations for individual RPCs
380
+ # @return [Rpcs]
381
+ #
382
+ def rpcs
383
+ @rpcs ||= begin
384
+ parent_rpcs = nil
385
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
386
+ Rpcs.new parent_rpcs
387
+ end
388
+ end
389
+
390
+ ##
391
+ # Configuration RPC class for the InterconnectRemoteLocations API.
392
+ #
393
+ # Includes fields providing the configuration for each RPC in this service.
394
+ # Each configuration object is of type `Gapic::Config::Method` and includes
395
+ # the following configuration fields:
396
+ #
397
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
398
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
399
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
400
+ # include the following keys:
401
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
402
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
403
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
404
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
405
+ # trigger a retry.
406
+ #
407
+ class Rpcs
408
+ ##
409
+ # RPC-specific configuration for `get`
410
+ # @return [::Gapic::Config::Method]
411
+ #
412
+ attr_reader :get
413
+ ##
414
+ # RPC-specific configuration for `list`
415
+ # @return [::Gapic::Config::Method]
416
+ #
417
+ attr_reader :list
418
+
419
+ # @private
420
+ def initialize parent_rpcs = nil
421
+ get_config = parent_rpcs.get if parent_rpcs.respond_to? :get
422
+ @get = ::Gapic::Config::Method.new get_config
423
+ list_config = parent_rpcs.list if parent_rpcs.respond_to? :list
424
+ @list = ::Gapic::Config::Method.new list_config
425
+
426
+ yield self if block_given?
427
+ end
428
+ end
429
+ end
430
+ end
431
+ end
432
+ end
433
+ end
434
+ end
435
+ end
436
+ end
@@ -0,0 +1,167 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/compute/v1/compute_pb"
20
+
21
+ module Google
22
+ module Cloud
23
+ module Compute
24
+ module V1
25
+ module InterconnectRemoteLocations
26
+ module Rest
27
+ ##
28
+ # REST service stub for the InterconnectRemoteLocations service.
29
+ # Service stub contains baseline method implementations
30
+ # including transcoding, making the REST call, and deserialing the response.
31
+ #
32
+ class ServiceStub
33
+ def initialize endpoint:, credentials:
34
+ # These require statements are intentionally placed here to initialize
35
+ # the REST modules only when it's required.
36
+ require "gapic/rest"
37
+
38
+ @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials,
39
+ numeric_enums: false,
40
+ raise_faraday_errors: false
41
+ end
42
+
43
+ ##
44
+ # Baseline implementation for the get REST call
45
+ #
46
+ # @param request_pb [::Google::Cloud::Compute::V1::GetInterconnectRemoteLocationRequest]
47
+ # A request object representing the call parameters. Required.
48
+ # @param options [::Gapic::CallOptions]
49
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
50
+ #
51
+ # @yield [result, operation] Access the result along with the TransportOperation object
52
+ # @yieldparam result [::Google::Cloud::Compute::V1::InterconnectRemoteLocation]
53
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
54
+ #
55
+ # @return [::Google::Cloud::Compute::V1::InterconnectRemoteLocation]
56
+ # A result object deserialized from the server's reply
57
+ def get request_pb, options = nil
58
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
59
+
60
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_request request_pb
61
+ query_string_params = if query_string_params.any?
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
+ else
64
+ {}
65
+ end
66
+
67
+ response = @client_stub.make_http_request(
68
+ verb,
69
+ uri: uri,
70
+ body: body || "",
71
+ params: query_string_params,
72
+ options: options
73
+ )
74
+ operation = ::Gapic::Rest::TransportOperation.new response
75
+ result = ::Google::Cloud::Compute::V1::InterconnectRemoteLocation.decode_json response.body, ignore_unknown_fields: true
76
+
77
+ yield result, operation if block_given?
78
+ result
79
+ end
80
+
81
+ ##
82
+ # Baseline implementation for the list REST call
83
+ #
84
+ # @param request_pb [::Google::Cloud::Compute::V1::ListInterconnectRemoteLocationsRequest]
85
+ # A request object representing the call parameters. Required.
86
+ # @param options [::Gapic::CallOptions]
87
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
88
+ #
89
+ # @yield [result, operation] Access the result along with the TransportOperation object
90
+ # @yieldparam result [::Google::Cloud::Compute::V1::InterconnectRemoteLocationList]
91
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
92
+ #
93
+ # @return [::Google::Cloud::Compute::V1::InterconnectRemoteLocationList]
94
+ # A result object deserialized from the server's reply
95
+ def list request_pb, options = nil
96
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
97
+
98
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_request request_pb
99
+ query_string_params = if query_string_params.any?
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
+ else
102
+ {}
103
+ end
104
+
105
+ response = @client_stub.make_http_request(
106
+ verb,
107
+ uri: uri,
108
+ body: body || "",
109
+ params: query_string_params,
110
+ options: options
111
+ )
112
+ operation = ::Gapic::Rest::TransportOperation.new response
113
+ result = ::Google::Cloud::Compute::V1::InterconnectRemoteLocationList.decode_json response.body, ignore_unknown_fields: true
114
+
115
+ yield result, operation if block_given?
116
+ result
117
+ end
118
+
119
+ ##
120
+ # @private
121
+ #
122
+ # GRPC transcoding helper method for the get REST call
123
+ #
124
+ # @param request_pb [::Google::Cloud::Compute::V1::GetInterconnectRemoteLocationRequest]
125
+ # A request object representing the call parameters. Required.
126
+ # @return [Array(String, [String, nil], Hash{String => String})]
127
+ # Uri, Body, Query string parameters
128
+ def self.transcode_get_request request_pb
129
+ transcoder = Gapic::Rest::GrpcTranscoder.new
130
+ .with_bindings(
131
+ uri_method: :get,
132
+ uri_template: "/compute/v1/projects/{project}/global/interconnectRemoteLocations/{interconnect_remote_location}",
133
+ matches: [
134
+ ["project", %r{^[^/]+/?$}, false],
135
+ ["interconnect_remote_location", %r{^[^/]+/?$}, false]
136
+ ]
137
+ )
138
+ transcoder.transcode request_pb
139
+ end
140
+
141
+ ##
142
+ # @private
143
+ #
144
+ # GRPC transcoding helper method for the list REST call
145
+ #
146
+ # @param request_pb [::Google::Cloud::Compute::V1::ListInterconnectRemoteLocationsRequest]
147
+ # A request object representing the call parameters. Required.
148
+ # @return [Array(String, [String, nil], Hash{String => String})]
149
+ # Uri, Body, Query string parameters
150
+ def self.transcode_list_request request_pb
151
+ transcoder = Gapic::Rest::GrpcTranscoder.new
152
+ .with_bindings(
153
+ uri_method: :get,
154
+ uri_template: "/compute/v1/projects/{project}/global/interconnectRemoteLocations",
155
+ matches: [
156
+ ["project", %r{^[^/]+/?$}, false]
157
+ ]
158
+ )
159
+ transcoder.transcode request_pb
160
+ end
161
+ end
162
+ end
163
+ end
164
+ end
165
+ end
166
+ end
167
+ end