google-cloud-api_hub-v1 0.a → 0.1.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 (93) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +144 -8
  5. data/lib/google/cloud/api_hub/v1/api_hub/client.rb +4514 -0
  6. data/lib/google/cloud/api_hub/v1/api_hub/credentials.rb +47 -0
  7. data/lib/google/cloud/api_hub/v1/api_hub/paths.rb +216 -0
  8. data/lib/google/cloud/api_hub/v1/api_hub/rest/client.rb +4251 -0
  9. data/lib/google/cloud/api_hub/v1/api_hub/rest/service_stub.rb +2147 -0
  10. data/lib/google/cloud/api_hub/v1/api_hub/rest.rb +53 -0
  11. data/lib/google/cloud/api_hub/v1/api_hub.rb +55 -0
  12. data/lib/google/cloud/api_hub/v1/api_hub_dependencies/client.rb +906 -0
  13. data/lib/google/cloud/api_hub/v1/api_hub_dependencies/credentials.rb +47 -0
  14. data/lib/google/cloud/api_hub/v1/api_hub_dependencies/paths.rb +88 -0
  15. data/lib/google/cloud/api_hub/v1/api_hub_dependencies/rest/client.rb +853 -0
  16. data/lib/google/cloud/api_hub/v1/api_hub_dependencies/rest/service_stub.rb +366 -0
  17. data/lib/google/cloud/api_hub/v1/api_hub_dependencies/rest.rb +54 -0
  18. data/lib/google/cloud/api_hub/v1/api_hub_dependencies.rb +56 -0
  19. data/lib/google/cloud/api_hub/v1/api_hub_plugin/client.rb +640 -0
  20. data/lib/google/cloud/api_hub/v1/api_hub_plugin/credentials.rb +47 -0
  21. data/lib/google/cloud/api_hub/v1/api_hub_plugin/paths.rb +52 -0
  22. data/lib/google/cloud/api_hub/v1/api_hub_plugin/rest/client.rb +601 -0
  23. data/lib/google/cloud/api_hub/v1/api_hub_plugin/rest/service_stub.rb +248 -0
  24. data/lib/google/cloud/api_hub/v1/api_hub_plugin/rest.rb +53 -0
  25. data/lib/google/cloud/api_hub/v1/api_hub_plugin.rb +55 -0
  26. data/lib/google/cloud/api_hub/v1/bindings_override.rb +102 -0
  27. data/lib/google/cloud/api_hub/v1/host_project_registration_service/client.rb +689 -0
  28. data/lib/google/cloud/api_hub/v1/host_project_registration_service/credentials.rb +47 -0
  29. data/lib/google/cloud/api_hub/v1/host_project_registration_service/paths.rb +83 -0
  30. data/lib/google/cloud/api_hub/v1/host_project_registration_service/rest/client.rb +650 -0
  31. data/lib/google/cloud/api_hub/v1/host_project_registration_service/rest/service_stub.rb +247 -0
  32. data/lib/google/cloud/api_hub/v1/host_project_registration_service/rest.rb +53 -0
  33. data/lib/google/cloud/api_hub/v1/host_project_registration_service.rb +55 -0
  34. data/lib/google/cloud/api_hub/v1/linting_service/client.rb +744 -0
  35. data/lib/google/cloud/api_hub/v1/linting_service/credentials.rb +47 -0
  36. data/lib/google/cloud/api_hub/v1/linting_service/paths.rb +75 -0
  37. data/lib/google/cloud/api_hub/v1/linting_service/rest/client.rb +698 -0
  38. data/lib/google/cloud/api_hub/v1/linting_service/rest/service_stub.rb +307 -0
  39. data/lib/google/cloud/api_hub/v1/linting_service/rest.rb +53 -0
  40. data/lib/google/cloud/api_hub/v1/linting_service.rb +55 -0
  41. data/lib/google/cloud/api_hub/v1/provisioning/client.rb +676 -0
  42. data/lib/google/cloud/api_hub/v1/provisioning/credentials.rb +47 -0
  43. data/lib/google/cloud/api_hub/v1/provisioning/operations.rb +809 -0
  44. data/lib/google/cloud/api_hub/v1/provisioning/paths.rb +69 -0
  45. data/lib/google/cloud/api_hub/v1/provisioning/rest/client.rb +637 -0
  46. data/lib/google/cloud/api_hub/v1/provisioning/rest/operations.rb +902 -0
  47. data/lib/google/cloud/api_hub/v1/provisioning/rest/service_stub.rb +247 -0
  48. data/lib/google/cloud/api_hub/v1/provisioning/rest.rb +54 -0
  49. data/lib/google/cloud/api_hub/v1/provisioning.rb +56 -0
  50. data/lib/google/cloud/api_hub/v1/rest.rb +44 -0
  51. data/lib/google/cloud/api_hub/v1/runtime_project_attachment_service/client.rb +885 -0
  52. data/lib/google/cloud/api_hub/v1/runtime_project_attachment_service/credentials.rb +47 -0
  53. data/lib/google/cloud/api_hub/v1/runtime_project_attachment_service/paths.rb +83 -0
  54. data/lib/google/cloud/api_hub/v1/runtime_project_attachment_service/rest/client.rb +832 -0
  55. data/lib/google/cloud/api_hub/v1/runtime_project_attachment_service/rest/service_stub.rb +365 -0
  56. data/lib/google/cloud/api_hub/v1/runtime_project_attachment_service/rest.rb +53 -0
  57. data/lib/google/cloud/api_hub/v1/runtime_project_attachment_service.rb +55 -0
  58. data/lib/google/cloud/api_hub/v1/version.rb +7 -2
  59. data/lib/google/cloud/api_hub/v1.rb +51 -0
  60. data/lib/google/cloud/apihub/v1/apihub_service_pb.rb +102 -0
  61. data/lib/google/cloud/apihub/v1/apihub_service_services_pb.rb +288 -0
  62. data/lib/google/cloud/apihub/v1/common_fields_pb.rb +92 -0
  63. data/lib/google/cloud/apihub/v1/host_project_registration_service_pb.rb +53 -0
  64. data/lib/google/cloud/apihub/v1/host_project_registration_service_services_pb.rb +53 -0
  65. data/lib/google/cloud/apihub/v1/linting_service_pb.rb +56 -0
  66. data/lib/google/cloud/apihub/v1/linting_service_services_pb.rb +53 -0
  67. data/lib/google/cloud/apihub/v1/plugin_service_pb.rb +53 -0
  68. data/lib/google/cloud/apihub/v1/plugin_service_services_pb.rb +51 -0
  69. data/lib/google/cloud/apihub/v1/provisioning_service_pb.rb +53 -0
  70. data/lib/google/cloud/apihub/v1/provisioning_service_services_pb.rb +50 -0
  71. data/lib/google/cloud/apihub/v1/runtime_project_attachment_service_pb.rb +57 -0
  72. data/lib/google/cloud/apihub/v1/runtime_project_attachment_service_services_pb.rb +55 -0
  73. data/lib/google-cloud-api_hub-v1.rb +21 -0
  74. data/proto_docs/README.md +4 -0
  75. data/proto_docs/google/api/client.rb +403 -0
  76. data/proto_docs/google/api/field_behavior.rb +85 -0
  77. data/proto_docs/google/api/launch_stage.rb +71 -0
  78. data/proto_docs/google/api/resource.rb +227 -0
  79. data/proto_docs/google/cloud/apihub/v1/apihub_service.rb +1317 -0
  80. data/proto_docs/google/cloud/apihub/v1/common_fields.rb +1296 -0
  81. data/proto_docs/google/cloud/apihub/v1/host_project_registration_service.rb +146 -0
  82. data/proto_docs/google/cloud/apihub/v1/linting_service.rb +103 -0
  83. data/proto_docs/google/cloud/apihub/v1/plugin_service.rb +104 -0
  84. data/proto_docs/google/cloud/apihub/v1/provisioning_service.rb +87 -0
  85. data/proto_docs/google/cloud/apihub/v1/runtime_project_attachment_service.rb +182 -0
  86. data/proto_docs/google/longrunning/operations.rb +164 -0
  87. data/proto_docs/google/protobuf/any.rb +145 -0
  88. data/proto_docs/google/protobuf/duration.rb +98 -0
  89. data/proto_docs/google/protobuf/empty.rb +34 -0
  90. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  91. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  92. data/proto_docs/google/rpc/status.rb +48 -0
  93. metadata +155 -10
@@ -0,0 +1,832 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 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/apihub/v1/runtime_project_attachment_service_pb"
21
+ require "google/cloud/api_hub/v1/runtime_project_attachment_service/rest/service_stub"
22
+ require "google/cloud/location/rest"
23
+
24
+ module Google
25
+ module Cloud
26
+ module ApiHub
27
+ module V1
28
+ module RuntimeProjectAttachmentService
29
+ module Rest
30
+ ##
31
+ # REST client for the RuntimeProjectAttachmentService service.
32
+ #
33
+ # This service is used for managing the runtime project attachments.
34
+ #
35
+ class Client
36
+ # @private
37
+ API_VERSION = ""
38
+
39
+ # @private
40
+ DEFAULT_ENDPOINT_TEMPLATE = "apihub.$UNIVERSE_DOMAIN$"
41
+
42
+ include Paths
43
+
44
+ # @private
45
+ attr_reader :runtime_project_attachment_service_stub
46
+
47
+ ##
48
+ # Configure the RuntimeProjectAttachmentService Client class.
49
+ #
50
+ # See {::Google::Cloud::ApiHub::V1::RuntimeProjectAttachmentService::Rest::Client::Configuration}
51
+ # for a description of the configuration fields.
52
+ #
53
+ # @example
54
+ #
55
+ # # Modify the configuration for all RuntimeProjectAttachmentService clients
56
+ # ::Google::Cloud::ApiHub::V1::RuntimeProjectAttachmentService::Rest::Client.configure do |config|
57
+ # config.timeout = 10.0
58
+ # end
59
+ #
60
+ # @yield [config] Configure the Client client.
61
+ # @yieldparam config [Client::Configuration]
62
+ #
63
+ # @return [Client::Configuration]
64
+ #
65
+ def self.configure
66
+ @configure ||= begin
67
+ namespace = ["Google", "Cloud", "ApiHub", "V1"]
68
+ parent_config = while namespace.any?
69
+ parent_name = namespace.join "::"
70
+ parent_const = const_get parent_name
71
+ break parent_const.configure if parent_const.respond_to? :configure
72
+ namespace.pop
73
+ end
74
+ default_config = Client::Configuration.new parent_config
75
+
76
+ default_config.rpcs.create_runtime_project_attachment.timeout = 60.0
77
+
78
+ default_config.rpcs.get_runtime_project_attachment.timeout = 60.0
79
+ default_config.rpcs.get_runtime_project_attachment.retry_policy = {
80
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
81
+ }
82
+
83
+ default_config.rpcs.list_runtime_project_attachments.timeout = 60.0
84
+ default_config.rpcs.list_runtime_project_attachments.retry_policy = {
85
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
86
+ }
87
+
88
+ default_config.rpcs.delete_runtime_project_attachment.timeout = 60.0
89
+
90
+ default_config.rpcs.lookup_runtime_project_attachment.timeout = 60.0
91
+ default_config.rpcs.lookup_runtime_project_attachment.retry_policy = {
92
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
93
+ }
94
+
95
+ default_config
96
+ end
97
+ yield @configure if block_given?
98
+ @configure
99
+ end
100
+
101
+ ##
102
+ # Configure the RuntimeProjectAttachmentService Client instance.
103
+ #
104
+ # The configuration is set to the derived mode, meaning that values can be changed,
105
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
106
+ # should be made on {Client.configure}.
107
+ #
108
+ # See {::Google::Cloud::ApiHub::V1::RuntimeProjectAttachmentService::Rest::Client::Configuration}
109
+ # for a description of the configuration fields.
110
+ #
111
+ # @yield [config] Configure the Client client.
112
+ # @yieldparam config [Client::Configuration]
113
+ #
114
+ # @return [Client::Configuration]
115
+ #
116
+ def configure
117
+ yield @config if block_given?
118
+ @config
119
+ end
120
+
121
+ ##
122
+ # The effective universe domain
123
+ #
124
+ # @return [String]
125
+ #
126
+ def universe_domain
127
+ @runtime_project_attachment_service_stub.universe_domain
128
+ end
129
+
130
+ ##
131
+ # Create a new RuntimeProjectAttachmentService REST client object.
132
+ #
133
+ # @example
134
+ #
135
+ # # Create a client using the default configuration
136
+ # client = ::Google::Cloud::ApiHub::V1::RuntimeProjectAttachmentService::Rest::Client.new
137
+ #
138
+ # # Create a client using a custom configuration
139
+ # client = ::Google::Cloud::ApiHub::V1::RuntimeProjectAttachmentService::Rest::Client.new do |config|
140
+ # config.timeout = 10.0
141
+ # end
142
+ #
143
+ # @yield [config] Configure the RuntimeProjectAttachmentService client.
144
+ # @yieldparam config [Client::Configuration]
145
+ #
146
+ def initialize
147
+ # Create the configuration object
148
+ @config = Configuration.new Client.configure
149
+
150
+ # Yield the configuration if needed
151
+ yield @config if block_given?
152
+
153
+ # Create credentials
154
+ credentials = @config.credentials
155
+ # Use self-signed JWT if the endpoint is unchanged from default,
156
+ # but only if the default endpoint does not have a region prefix.
157
+ enable_self_signed_jwt = @config.endpoint.nil? ||
158
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
159
+ !@config.endpoint.split(".").first.include?("-"))
160
+ credentials ||= Credentials.default scope: @config.scope,
161
+ enable_self_signed_jwt: enable_self_signed_jwt
162
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
163
+ credentials = Credentials.new credentials, scope: @config.scope
164
+ end
165
+
166
+ @quota_project_id = @config.quota_project
167
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
168
+
169
+ @runtime_project_attachment_service_stub = ::Google::Cloud::ApiHub::V1::RuntimeProjectAttachmentService::Rest::ServiceStub.new(
170
+ endpoint: @config.endpoint,
171
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
172
+ universe_domain: @config.universe_domain,
173
+ credentials: credentials
174
+ )
175
+
176
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
177
+ config.credentials = credentials
178
+ config.quota_project = @quota_project_id
179
+ config.endpoint = @runtime_project_attachment_service_stub.endpoint
180
+ config.universe_domain = @runtime_project_attachment_service_stub.universe_domain
181
+ config.bindings_override = @config.bindings_override
182
+ end
183
+ end
184
+
185
+ ##
186
+ # Get the associated client for mix-in of the Locations.
187
+ #
188
+ # @return [Google::Cloud::Location::Locations::Rest::Client]
189
+ #
190
+ attr_reader :location_client
191
+
192
+ # Service calls
193
+
194
+ ##
195
+ # Attaches a runtime project to the host project.
196
+ #
197
+ # @overload create_runtime_project_attachment(request, options = nil)
198
+ # Pass arguments to `create_runtime_project_attachment` via a request object, either of type
199
+ # {::Google::Cloud::ApiHub::V1::CreateRuntimeProjectAttachmentRequest} or an equivalent Hash.
200
+ #
201
+ # @param request [::Google::Cloud::ApiHub::V1::CreateRuntimeProjectAttachmentRequest, ::Hash]
202
+ # A request object representing the call parameters. Required. To specify no
203
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
204
+ # @param options [::Gapic::CallOptions, ::Hash]
205
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
206
+ #
207
+ # @overload create_runtime_project_attachment(parent: nil, runtime_project_attachment_id: nil, runtime_project_attachment: nil)
208
+ # Pass arguments to `create_runtime_project_attachment` via keyword arguments. Note that at
209
+ # least one keyword argument is required. To specify no parameters, or to keep all
210
+ # the default parameter values, pass an empty Hash as a request object (see above).
211
+ #
212
+ # @param parent [::String]
213
+ # Required. The parent resource for the Runtime Project Attachment.
214
+ # Format: `projects/{project}/locations/{location}`
215
+ # @param runtime_project_attachment_id [::String]
216
+ # Required. The ID to use for the Runtime Project Attachment, which will
217
+ # become the final component of the Runtime Project Attachment's name. The ID
218
+ # must be the same as the project ID of the Google cloud project specified in
219
+ # the runtime_project_attachment.runtime_project field.
220
+ # @param runtime_project_attachment [::Google::Cloud::ApiHub::V1::RuntimeProjectAttachment, ::Hash]
221
+ # Required. The Runtime Project Attachment to create.
222
+ # @yield [result, operation] Access the result along with the TransportOperation object
223
+ # @yieldparam result [::Google::Cloud::ApiHub::V1::RuntimeProjectAttachment]
224
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
225
+ #
226
+ # @return [::Google::Cloud::ApiHub::V1::RuntimeProjectAttachment]
227
+ #
228
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
229
+ #
230
+ # @example Basic example
231
+ # require "google/cloud/api_hub/v1"
232
+ #
233
+ # # Create a client object. The client can be reused for multiple calls.
234
+ # client = Google::Cloud::ApiHub::V1::RuntimeProjectAttachmentService::Rest::Client.new
235
+ #
236
+ # # Create a request. To set request fields, pass in keyword arguments.
237
+ # request = Google::Cloud::ApiHub::V1::CreateRuntimeProjectAttachmentRequest.new
238
+ #
239
+ # # Call the create_runtime_project_attachment method.
240
+ # result = client.create_runtime_project_attachment request
241
+ #
242
+ # # The returned object is of type Google::Cloud::ApiHub::V1::RuntimeProjectAttachment.
243
+ # p result
244
+ #
245
+ def create_runtime_project_attachment request, options = nil
246
+ raise ::ArgumentError, "request must be provided" if request.nil?
247
+
248
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ApiHub::V1::CreateRuntimeProjectAttachmentRequest
249
+
250
+ # Converts hash and nil to an options object
251
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
252
+
253
+ # Customize the options with defaults
254
+ call_metadata = @config.rpcs.create_runtime_project_attachment.metadata.to_h
255
+
256
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
257
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
258
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
259
+ gapic_version: ::Google::Cloud::ApiHub::V1::VERSION,
260
+ transports_version_send: [:rest]
261
+
262
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
263
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
264
+
265
+ options.apply_defaults timeout: @config.rpcs.create_runtime_project_attachment.timeout,
266
+ metadata: call_metadata,
267
+ retry_policy: @config.rpcs.create_runtime_project_attachment.retry_policy
268
+
269
+ options.apply_defaults timeout: @config.timeout,
270
+ metadata: @config.metadata,
271
+ retry_policy: @config.retry_policy
272
+
273
+ @runtime_project_attachment_service_stub.create_runtime_project_attachment request, options do |result, operation|
274
+ yield result, operation if block_given?
275
+ return result
276
+ end
277
+ rescue ::Gapic::Rest::Error => e
278
+ raise ::Google::Cloud::Error.from_error(e)
279
+ end
280
+
281
+ ##
282
+ # Gets a runtime project attachment.
283
+ #
284
+ # @overload get_runtime_project_attachment(request, options = nil)
285
+ # Pass arguments to `get_runtime_project_attachment` via a request object, either of type
286
+ # {::Google::Cloud::ApiHub::V1::GetRuntimeProjectAttachmentRequest} or an equivalent Hash.
287
+ #
288
+ # @param request [::Google::Cloud::ApiHub::V1::GetRuntimeProjectAttachmentRequest, ::Hash]
289
+ # A request object representing the call parameters. Required. To specify no
290
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
291
+ # @param options [::Gapic::CallOptions, ::Hash]
292
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
293
+ #
294
+ # @overload get_runtime_project_attachment(name: nil)
295
+ # Pass arguments to `get_runtime_project_attachment` via keyword arguments. Note that at
296
+ # least one keyword argument is required. To specify no parameters, or to keep all
297
+ # the default parameter values, pass an empty Hash as a request object (see above).
298
+ #
299
+ # @param name [::String]
300
+ # Required. The name of the API resource to retrieve.
301
+ # Format:
302
+ # `projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}`
303
+ # @yield [result, operation] Access the result along with the TransportOperation object
304
+ # @yieldparam result [::Google::Cloud::ApiHub::V1::RuntimeProjectAttachment]
305
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
306
+ #
307
+ # @return [::Google::Cloud::ApiHub::V1::RuntimeProjectAttachment]
308
+ #
309
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
310
+ #
311
+ # @example Basic example
312
+ # require "google/cloud/api_hub/v1"
313
+ #
314
+ # # Create a client object. The client can be reused for multiple calls.
315
+ # client = Google::Cloud::ApiHub::V1::RuntimeProjectAttachmentService::Rest::Client.new
316
+ #
317
+ # # Create a request. To set request fields, pass in keyword arguments.
318
+ # request = Google::Cloud::ApiHub::V1::GetRuntimeProjectAttachmentRequest.new
319
+ #
320
+ # # Call the get_runtime_project_attachment method.
321
+ # result = client.get_runtime_project_attachment request
322
+ #
323
+ # # The returned object is of type Google::Cloud::ApiHub::V1::RuntimeProjectAttachment.
324
+ # p result
325
+ #
326
+ def get_runtime_project_attachment request, options = nil
327
+ raise ::ArgumentError, "request must be provided" if request.nil?
328
+
329
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ApiHub::V1::GetRuntimeProjectAttachmentRequest
330
+
331
+ # Converts hash and nil to an options object
332
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
333
+
334
+ # Customize the options with defaults
335
+ call_metadata = @config.rpcs.get_runtime_project_attachment.metadata.to_h
336
+
337
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
338
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
339
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
340
+ gapic_version: ::Google::Cloud::ApiHub::V1::VERSION,
341
+ transports_version_send: [:rest]
342
+
343
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
344
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
345
+
346
+ options.apply_defaults timeout: @config.rpcs.get_runtime_project_attachment.timeout,
347
+ metadata: call_metadata,
348
+ retry_policy: @config.rpcs.get_runtime_project_attachment.retry_policy
349
+
350
+ options.apply_defaults timeout: @config.timeout,
351
+ metadata: @config.metadata,
352
+ retry_policy: @config.retry_policy
353
+
354
+ @runtime_project_attachment_service_stub.get_runtime_project_attachment request, options do |result, operation|
355
+ yield result, operation if block_given?
356
+ return result
357
+ end
358
+ rescue ::Gapic::Rest::Error => e
359
+ raise ::Google::Cloud::Error.from_error(e)
360
+ end
361
+
362
+ ##
363
+ # List runtime projects attached to the host project.
364
+ #
365
+ # @overload list_runtime_project_attachments(request, options = nil)
366
+ # Pass arguments to `list_runtime_project_attachments` via a request object, either of type
367
+ # {::Google::Cloud::ApiHub::V1::ListRuntimeProjectAttachmentsRequest} or an equivalent Hash.
368
+ #
369
+ # @param request [::Google::Cloud::ApiHub::V1::ListRuntimeProjectAttachmentsRequest, ::Hash]
370
+ # A request object representing the call parameters. Required. To specify no
371
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
372
+ # @param options [::Gapic::CallOptions, ::Hash]
373
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
374
+ #
375
+ # @overload list_runtime_project_attachments(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
376
+ # Pass arguments to `list_runtime_project_attachments` via keyword arguments. Note that at
377
+ # least one keyword argument is required. To specify no parameters, or to keep all
378
+ # the default parameter values, pass an empty Hash as a request object (see above).
379
+ #
380
+ # @param parent [::String]
381
+ # Required. The parent, which owns this collection of runtime project
382
+ # attachments. Format: `projects/{project}/locations/{location}`
383
+ # @param page_size [::Integer]
384
+ # Optional. The maximum number of runtime project attachments to return. The
385
+ # service may return fewer than this value. If unspecified, at most 50
386
+ # runtime project attachments will be returned. The maximum value is 1000;
387
+ # values above 1000 will be coerced to 1000.
388
+ # @param page_token [::String]
389
+ # Optional. A page token, received from a previous
390
+ # `ListRuntimeProjectAttachments` call. Provide this to retrieve the
391
+ # subsequent page.
392
+ #
393
+ # When paginating, all other parameters (except page_size) provided to
394
+ # `ListRuntimeProjectAttachments` must match the call that provided the page
395
+ # token.
396
+ # @param filter [::String]
397
+ # Optional. An expression that filters the list of RuntimeProjectAttachments.
398
+ #
399
+ # A filter expression consists of a field name, a comparison
400
+ # operator, and a value for filtering. The value must be a string. All
401
+ # standard operators as documented at https://google.aip.dev/160 are
402
+ # supported.
403
+ #
404
+ # The following fields in the `RuntimeProjectAttachment` are eligible for
405
+ # filtering:
406
+ #
407
+ # * `name` - The name of the RuntimeProjectAttachment.
408
+ # * `create_time` - The time at which the RuntimeProjectAttachment was
409
+ # created. The value should be in the
410
+ # (RFC3339)[https://tools.ietf.org/html/rfc3339] format.
411
+ # * `runtime_project` - The Google cloud project associated with the
412
+ # RuntimeProjectAttachment.
413
+ # @param order_by [::String]
414
+ # Optional. Hint for how to order the results.
415
+ # @yield [result, operation] Access the result along with the TransportOperation object
416
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ApiHub::V1::RuntimeProjectAttachment>]
417
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
418
+ #
419
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ApiHub::V1::RuntimeProjectAttachment>]
420
+ #
421
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
422
+ #
423
+ # @example Basic example
424
+ # require "google/cloud/api_hub/v1"
425
+ #
426
+ # # Create a client object. The client can be reused for multiple calls.
427
+ # client = Google::Cloud::ApiHub::V1::RuntimeProjectAttachmentService::Rest::Client.new
428
+ #
429
+ # # Create a request. To set request fields, pass in keyword arguments.
430
+ # request = Google::Cloud::ApiHub::V1::ListRuntimeProjectAttachmentsRequest.new
431
+ #
432
+ # # Call the list_runtime_project_attachments method.
433
+ # result = client.list_runtime_project_attachments request
434
+ #
435
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
436
+ # # over elements, and API calls will be issued to fetch pages as needed.
437
+ # result.each do |item|
438
+ # # Each element is of type ::Google::Cloud::ApiHub::V1::RuntimeProjectAttachment.
439
+ # p item
440
+ # end
441
+ #
442
+ def list_runtime_project_attachments request, options = nil
443
+ raise ::ArgumentError, "request must be provided" if request.nil?
444
+
445
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ApiHub::V1::ListRuntimeProjectAttachmentsRequest
446
+
447
+ # Converts hash and nil to an options object
448
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
449
+
450
+ # Customize the options with defaults
451
+ call_metadata = @config.rpcs.list_runtime_project_attachments.metadata.to_h
452
+
453
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
454
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
455
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
456
+ gapic_version: ::Google::Cloud::ApiHub::V1::VERSION,
457
+ transports_version_send: [:rest]
458
+
459
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
460
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
461
+
462
+ options.apply_defaults timeout: @config.rpcs.list_runtime_project_attachments.timeout,
463
+ metadata: call_metadata,
464
+ retry_policy: @config.rpcs.list_runtime_project_attachments.retry_policy
465
+
466
+ options.apply_defaults timeout: @config.timeout,
467
+ metadata: @config.metadata,
468
+ retry_policy: @config.retry_policy
469
+
470
+ @runtime_project_attachment_service_stub.list_runtime_project_attachments request, options do |result, operation|
471
+ result = ::Gapic::Rest::PagedEnumerable.new @runtime_project_attachment_service_stub, :list_runtime_project_attachments, "runtime_project_attachments", request, result, options
472
+ yield result, operation if block_given?
473
+ return result
474
+ end
475
+ rescue ::Gapic::Rest::Error => e
476
+ raise ::Google::Cloud::Error.from_error(e)
477
+ end
478
+
479
+ ##
480
+ # Delete a runtime project attachment in the API Hub. This call will detach
481
+ # the runtime project from the host project.
482
+ #
483
+ # @overload delete_runtime_project_attachment(request, options = nil)
484
+ # Pass arguments to `delete_runtime_project_attachment` via a request object, either of type
485
+ # {::Google::Cloud::ApiHub::V1::DeleteRuntimeProjectAttachmentRequest} or an equivalent Hash.
486
+ #
487
+ # @param request [::Google::Cloud::ApiHub::V1::DeleteRuntimeProjectAttachmentRequest, ::Hash]
488
+ # A request object representing the call parameters. Required. To specify no
489
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
490
+ # @param options [::Gapic::CallOptions, ::Hash]
491
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
492
+ #
493
+ # @overload delete_runtime_project_attachment(name: nil)
494
+ # Pass arguments to `delete_runtime_project_attachment` via keyword arguments. Note that at
495
+ # least one keyword argument is required. To specify no parameters, or to keep all
496
+ # the default parameter values, pass an empty Hash as a request object (see above).
497
+ #
498
+ # @param name [::String]
499
+ # Required. The name of the Runtime Project Attachment to delete.
500
+ # Format:
501
+ # `projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}`
502
+ # @yield [result, operation] Access the result along with the TransportOperation object
503
+ # @yieldparam result [::Google::Protobuf::Empty]
504
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
505
+ #
506
+ # @return [::Google::Protobuf::Empty]
507
+ #
508
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
509
+ #
510
+ # @example Basic example
511
+ # require "google/cloud/api_hub/v1"
512
+ #
513
+ # # Create a client object. The client can be reused for multiple calls.
514
+ # client = Google::Cloud::ApiHub::V1::RuntimeProjectAttachmentService::Rest::Client.new
515
+ #
516
+ # # Create a request. To set request fields, pass in keyword arguments.
517
+ # request = Google::Cloud::ApiHub::V1::DeleteRuntimeProjectAttachmentRequest.new
518
+ #
519
+ # # Call the delete_runtime_project_attachment method.
520
+ # result = client.delete_runtime_project_attachment request
521
+ #
522
+ # # The returned object is of type Google::Protobuf::Empty.
523
+ # p result
524
+ #
525
+ def delete_runtime_project_attachment request, options = nil
526
+ raise ::ArgumentError, "request must be provided" if request.nil?
527
+
528
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ApiHub::V1::DeleteRuntimeProjectAttachmentRequest
529
+
530
+ # Converts hash and nil to an options object
531
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
532
+
533
+ # Customize the options with defaults
534
+ call_metadata = @config.rpcs.delete_runtime_project_attachment.metadata.to_h
535
+
536
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
537
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
538
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
539
+ gapic_version: ::Google::Cloud::ApiHub::V1::VERSION,
540
+ transports_version_send: [:rest]
541
+
542
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
543
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
544
+
545
+ options.apply_defaults timeout: @config.rpcs.delete_runtime_project_attachment.timeout,
546
+ metadata: call_metadata,
547
+ retry_policy: @config.rpcs.delete_runtime_project_attachment.retry_policy
548
+
549
+ options.apply_defaults timeout: @config.timeout,
550
+ metadata: @config.metadata,
551
+ retry_policy: @config.retry_policy
552
+
553
+ @runtime_project_attachment_service_stub.delete_runtime_project_attachment request, options do |result, operation|
554
+ yield result, operation if block_given?
555
+ return result
556
+ end
557
+ rescue ::Gapic::Rest::Error => e
558
+ raise ::Google::Cloud::Error.from_error(e)
559
+ end
560
+
561
+ ##
562
+ # Look up a runtime project attachment. This API can be called in the context
563
+ # of any project.
564
+ #
565
+ # @overload lookup_runtime_project_attachment(request, options = nil)
566
+ # Pass arguments to `lookup_runtime_project_attachment` via a request object, either of type
567
+ # {::Google::Cloud::ApiHub::V1::LookupRuntimeProjectAttachmentRequest} or an equivalent Hash.
568
+ #
569
+ # @param request [::Google::Cloud::ApiHub::V1::LookupRuntimeProjectAttachmentRequest, ::Hash]
570
+ # A request object representing the call parameters. Required. To specify no
571
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
572
+ # @param options [::Gapic::CallOptions, ::Hash]
573
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
574
+ #
575
+ # @overload lookup_runtime_project_attachment(name: nil)
576
+ # Pass arguments to `lookup_runtime_project_attachment` via keyword arguments. Note that at
577
+ # least one keyword argument is required. To specify no parameters, or to keep all
578
+ # the default parameter values, pass an empty Hash as a request object (see above).
579
+ #
580
+ # @param name [::String]
581
+ # Required. Runtime project ID to look up runtime project attachment for.
582
+ # Lookup happens across all regions. Expected format:
583
+ # `projects/{project}/locations/{location}`.
584
+ # @yield [result, operation] Access the result along with the TransportOperation object
585
+ # @yieldparam result [::Google::Cloud::ApiHub::V1::LookupRuntimeProjectAttachmentResponse]
586
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
587
+ #
588
+ # @return [::Google::Cloud::ApiHub::V1::LookupRuntimeProjectAttachmentResponse]
589
+ #
590
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
591
+ #
592
+ # @example Basic example
593
+ # require "google/cloud/api_hub/v1"
594
+ #
595
+ # # Create a client object. The client can be reused for multiple calls.
596
+ # client = Google::Cloud::ApiHub::V1::RuntimeProjectAttachmentService::Rest::Client.new
597
+ #
598
+ # # Create a request. To set request fields, pass in keyword arguments.
599
+ # request = Google::Cloud::ApiHub::V1::LookupRuntimeProjectAttachmentRequest.new
600
+ #
601
+ # # Call the lookup_runtime_project_attachment method.
602
+ # result = client.lookup_runtime_project_attachment request
603
+ #
604
+ # # The returned object is of type Google::Cloud::ApiHub::V1::LookupRuntimeProjectAttachmentResponse.
605
+ # p result
606
+ #
607
+ def lookup_runtime_project_attachment request, options = nil
608
+ raise ::ArgumentError, "request must be provided" if request.nil?
609
+
610
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ApiHub::V1::LookupRuntimeProjectAttachmentRequest
611
+
612
+ # Converts hash and nil to an options object
613
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
614
+
615
+ # Customize the options with defaults
616
+ call_metadata = @config.rpcs.lookup_runtime_project_attachment.metadata.to_h
617
+
618
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
619
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
620
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
621
+ gapic_version: ::Google::Cloud::ApiHub::V1::VERSION,
622
+ transports_version_send: [:rest]
623
+
624
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
625
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
626
+
627
+ options.apply_defaults timeout: @config.rpcs.lookup_runtime_project_attachment.timeout,
628
+ metadata: call_metadata,
629
+ retry_policy: @config.rpcs.lookup_runtime_project_attachment.retry_policy
630
+
631
+ options.apply_defaults timeout: @config.timeout,
632
+ metadata: @config.metadata,
633
+ retry_policy: @config.retry_policy
634
+
635
+ @runtime_project_attachment_service_stub.lookup_runtime_project_attachment request, options do |result, operation|
636
+ yield result, operation if block_given?
637
+ return result
638
+ end
639
+ rescue ::Gapic::Rest::Error => e
640
+ raise ::Google::Cloud::Error.from_error(e)
641
+ end
642
+
643
+ ##
644
+ # Configuration class for the RuntimeProjectAttachmentService REST API.
645
+ #
646
+ # This class represents the configuration for RuntimeProjectAttachmentService REST,
647
+ # providing control over timeouts, retry behavior, logging, transport
648
+ # parameters, and other low-level controls. Certain parameters can also be
649
+ # applied individually to specific RPCs. See
650
+ # {::Google::Cloud::ApiHub::V1::RuntimeProjectAttachmentService::Rest::Client::Configuration::Rpcs}
651
+ # for a list of RPCs that can be configured independently.
652
+ #
653
+ # Configuration can be applied globally to all clients, or to a single client
654
+ # on construction.
655
+ #
656
+ # @example
657
+ #
658
+ # # Modify the global config, setting the timeout for
659
+ # # create_runtime_project_attachment to 20 seconds,
660
+ # # and all remaining timeouts to 10 seconds.
661
+ # ::Google::Cloud::ApiHub::V1::RuntimeProjectAttachmentService::Rest::Client.configure do |config|
662
+ # config.timeout = 10.0
663
+ # config.rpcs.create_runtime_project_attachment.timeout = 20.0
664
+ # end
665
+ #
666
+ # # Apply the above configuration only to a new client.
667
+ # client = ::Google::Cloud::ApiHub::V1::RuntimeProjectAttachmentService::Rest::Client.new do |config|
668
+ # config.timeout = 10.0
669
+ # config.rpcs.create_runtime_project_attachment.timeout = 20.0
670
+ # end
671
+ #
672
+ # @!attribute [rw] endpoint
673
+ # A custom service endpoint, as a hostname or hostname:port. The default is
674
+ # nil, indicating to use the default endpoint in the current universe domain.
675
+ # @return [::String,nil]
676
+ # @!attribute [rw] credentials
677
+ # Credentials to send with calls. You may provide any of the following types:
678
+ # * (`String`) The path to a service account key file in JSON format
679
+ # * (`Hash`) A service account key as a Hash
680
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
681
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
682
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
683
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
684
+ # * (`nil`) indicating no credentials
685
+ # @return [::Object]
686
+ # @!attribute [rw] scope
687
+ # The OAuth scopes
688
+ # @return [::Array<::String>]
689
+ # @!attribute [rw] lib_name
690
+ # The library name as recorded in instrumentation and logging
691
+ # @return [::String]
692
+ # @!attribute [rw] lib_version
693
+ # The library version as recorded in instrumentation and logging
694
+ # @return [::String]
695
+ # @!attribute [rw] timeout
696
+ # The call timeout in seconds.
697
+ # @return [::Numeric]
698
+ # @!attribute [rw] metadata
699
+ # Additional headers to be sent with the call.
700
+ # @return [::Hash{::Symbol=>::String}]
701
+ # @!attribute [rw] retry_policy
702
+ # The retry policy. The value is a hash with the following keys:
703
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
704
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
705
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
706
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
707
+ # trigger a retry.
708
+ # @return [::Hash]
709
+ # @!attribute [rw] quota_project
710
+ # A separate project against which to charge quota.
711
+ # @return [::String]
712
+ # @!attribute [rw] universe_domain
713
+ # The universe domain within which to make requests. This determines the
714
+ # default endpoint URL. The default value of nil uses the environment
715
+ # universe (usually the default "googleapis.com" universe).
716
+ # @return [::String,nil]
717
+ #
718
+ class Configuration
719
+ extend ::Gapic::Config
720
+
721
+ # @private
722
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
723
+ DEFAULT_ENDPOINT = "apihub.googleapis.com"
724
+
725
+ config_attr :endpoint, nil, ::String, nil
726
+ config_attr :credentials, nil do |value|
727
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
728
+ allowed.any? { |klass| klass === value }
729
+ end
730
+ config_attr :scope, nil, ::String, ::Array, nil
731
+ config_attr :lib_name, nil, ::String, nil
732
+ config_attr :lib_version, nil, ::String, nil
733
+ config_attr :timeout, nil, ::Numeric, nil
734
+ config_attr :metadata, nil, ::Hash, nil
735
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
736
+ config_attr :quota_project, nil, ::String, nil
737
+ config_attr :universe_domain, nil, ::String, nil
738
+
739
+ # @private
740
+ # Overrides for http bindings for the RPCs of this service
741
+ # are only used when this service is used as mixin, and only
742
+ # by the host service.
743
+ # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
744
+ config_attr :bindings_override, {}, ::Hash, nil
745
+
746
+ # @private
747
+ def initialize parent_config = nil
748
+ @parent_config = parent_config unless parent_config.nil?
749
+
750
+ yield self if block_given?
751
+ end
752
+
753
+ ##
754
+ # Configurations for individual RPCs
755
+ # @return [Rpcs]
756
+ #
757
+ def rpcs
758
+ @rpcs ||= begin
759
+ parent_rpcs = nil
760
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
761
+ Rpcs.new parent_rpcs
762
+ end
763
+ end
764
+
765
+ ##
766
+ # Configuration RPC class for the RuntimeProjectAttachmentService API.
767
+ #
768
+ # Includes fields providing the configuration for each RPC in this service.
769
+ # Each configuration object is of type `Gapic::Config::Method` and includes
770
+ # the following configuration fields:
771
+ #
772
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
773
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
774
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
775
+ # include the following keys:
776
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
777
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
778
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
779
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
780
+ # trigger a retry.
781
+ #
782
+ class Rpcs
783
+ ##
784
+ # RPC-specific configuration for `create_runtime_project_attachment`
785
+ # @return [::Gapic::Config::Method]
786
+ #
787
+ attr_reader :create_runtime_project_attachment
788
+ ##
789
+ # RPC-specific configuration for `get_runtime_project_attachment`
790
+ # @return [::Gapic::Config::Method]
791
+ #
792
+ attr_reader :get_runtime_project_attachment
793
+ ##
794
+ # RPC-specific configuration for `list_runtime_project_attachments`
795
+ # @return [::Gapic::Config::Method]
796
+ #
797
+ attr_reader :list_runtime_project_attachments
798
+ ##
799
+ # RPC-specific configuration for `delete_runtime_project_attachment`
800
+ # @return [::Gapic::Config::Method]
801
+ #
802
+ attr_reader :delete_runtime_project_attachment
803
+ ##
804
+ # RPC-specific configuration for `lookup_runtime_project_attachment`
805
+ # @return [::Gapic::Config::Method]
806
+ #
807
+ attr_reader :lookup_runtime_project_attachment
808
+
809
+ # @private
810
+ def initialize parent_rpcs = nil
811
+ create_runtime_project_attachment_config = parent_rpcs.create_runtime_project_attachment if parent_rpcs.respond_to? :create_runtime_project_attachment
812
+ @create_runtime_project_attachment = ::Gapic::Config::Method.new create_runtime_project_attachment_config
813
+ get_runtime_project_attachment_config = parent_rpcs.get_runtime_project_attachment if parent_rpcs.respond_to? :get_runtime_project_attachment
814
+ @get_runtime_project_attachment = ::Gapic::Config::Method.new get_runtime_project_attachment_config
815
+ list_runtime_project_attachments_config = parent_rpcs.list_runtime_project_attachments if parent_rpcs.respond_to? :list_runtime_project_attachments
816
+ @list_runtime_project_attachments = ::Gapic::Config::Method.new list_runtime_project_attachments_config
817
+ delete_runtime_project_attachment_config = parent_rpcs.delete_runtime_project_attachment if parent_rpcs.respond_to? :delete_runtime_project_attachment
818
+ @delete_runtime_project_attachment = ::Gapic::Config::Method.new delete_runtime_project_attachment_config
819
+ lookup_runtime_project_attachment_config = parent_rpcs.lookup_runtime_project_attachment if parent_rpcs.respond_to? :lookup_runtime_project_attachment
820
+ @lookup_runtime_project_attachment = ::Gapic::Config::Method.new lookup_runtime_project_attachment_config
821
+
822
+ yield self if block_given?
823
+ end
824
+ end
825
+ end
826
+ end
827
+ end
828
+ end
829
+ end
830
+ end
831
+ end
832
+ end