google-cloud-api_hub-v1 0.5.0 → 0.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.
- checksums.yaml +4 -4
- data/lib/google/cloud/api_hub/v1/api_hub/paths.rb +21 -0
- data/lib/google/cloud/api_hub/v1/api_hub/rest/client.rb +497 -9
- data/lib/google/cloud/api_hub/v1/api_hub/rest/service_stub.rb +185 -0
- data/lib/google/cloud/api_hub/v1/api_hub_collect/credentials.rb +47 -0
- data/lib/google/cloud/api_hub/v1/api_hub_collect/paths.rb +218 -0
- data/lib/google/cloud/api_hub/v1/api_hub_collect/rest/client.rb +487 -0
- data/lib/google/cloud/api_hub/v1/api_hub_collect/rest/operations.rb +914 -0
- data/lib/google/cloud/api_hub/v1/api_hub_collect/rest/service_stub.rb +143 -0
- data/lib/google/cloud/api_hub/v1/api_hub_collect/rest.rb +56 -0
- data/lib/google/cloud/api_hub/v1/api_hub_collect.rb +50 -0
- data/lib/google/cloud/api_hub/v1/api_hub_curate/credentials.rb +47 -0
- data/lib/google/cloud/api_hub/v1/api_hub_curate/paths.rb +90 -0
- data/lib/google/cloud/api_hub/v1/api_hub_curate/rest/client.rb +869 -0
- data/lib/google/cloud/api_hub/v1/api_hub_curate/rest/service_stub.rb +388 -0
- data/lib/google/cloud/api_hub/v1/api_hub_curate/rest.rb +54 -0
- data/lib/google/cloud/api_hub/v1/api_hub_curate.rb +49 -0
- data/lib/google/cloud/api_hub/v1/api_hub_discovery/credentials.rb +47 -0
- data/lib/google/cloud/api_hub/v1/api_hub_discovery/paths.rb +90 -0
- data/lib/google/cloud/api_hub/v1/api_hub_discovery/rest/client.rb +750 -0
- data/lib/google/cloud/api_hub/v1/api_hub_discovery/rest/service_stub.rb +325 -0
- data/lib/google/cloud/api_hub/v1/api_hub_discovery/rest.rb +54 -0
- data/lib/google/cloud/api_hub/v1/api_hub_discovery.rb +49 -0
- data/lib/google/cloud/api_hub/v1/api_hub_plugin/paths.rb +74 -0
- data/lib/google/cloud/api_hub/v1/api_hub_plugin/rest/client.rb +1265 -98
- data/lib/google/cloud/api_hub/v1/api_hub_plugin/rest/operations.rb +914 -0
- data/lib/google/cloud/api_hub/v1/api_hub_plugin/rest/service_stub.rb +677 -0
- data/lib/google/cloud/api_hub/v1/api_hub_plugin/rest.rb +1 -0
- data/lib/google/cloud/api_hub/v1/bindings_override.rb +2 -29
- data/lib/google/cloud/api_hub/v1/provisioning/rest/client.rb +96 -0
- data/lib/google/cloud/api_hub/v1/provisioning/rest/service_stub.rb +61 -0
- data/lib/google/cloud/api_hub/v1/rest.rb +3 -0
- data/lib/google/cloud/api_hub/v1/version.rb +1 -1
- data/lib/google/cloud/api_hub/v1.rb +3 -0
- data/lib/google/cloud/apihub/v1/apihub_service_pb.rb +4 -1
- data/lib/google/cloud/apihub/v1/apihub_service_services_pb.rb +35 -2
- data/lib/google/cloud/apihub/v1/collect_service_pb.rb +60 -0
- data/lib/google/cloud/apihub/v1/collect_service_services_pb.rb +47 -0
- data/lib/google/cloud/apihub/v1/common_fields_pb.rb +34 -1
- data/lib/google/cloud/apihub/v1/curate_service_pb.rb +63 -0
- data/lib/google/cloud/apihub/v1/curate_service_services_pb.rb +64 -0
- data/lib/google/cloud/apihub/v1/discovery_service_pb.rb +54 -0
- data/lib/google/cloud/apihub/v1/discovery_service_services_pb.rb +55 -0
- data/lib/google/cloud/apihub/v1/plugin_service_pb.rb +44 -1
- data/lib/google/cloud/apihub/v1/plugin_service_services_pb.rb +43 -1
- data/lib/google/cloud/apihub/v1/provisioning_service_pb.rb +3 -1
- data/lib/google/cloud/apihub/v1/provisioning_service_services_pb.rb +2 -0
- data/proto_docs/google/cloud/apihub/v1/apihub_service.rb +251 -15
- data/proto_docs/google/cloud/apihub/v1/collect_service.rb +188 -0
- data/proto_docs/google/cloud/apihub/v1/common_fields.rb +819 -28
- data/proto_docs/google/cloud/apihub/v1/curate_service.rb +268 -0
- data/proto_docs/google/cloud/apihub/v1/discovery_service.rb +124 -0
- data/proto_docs/google/cloud/apihub/v1/linting_service.rb +10 -4
- data/proto_docs/google/cloud/apihub/v1/plugin_service.rb +799 -1
- data/proto_docs/google/cloud/apihub/v1/provisioning_service.rb +13 -0
- metadata +33 -4
@@ -25,6 +25,7 @@ require "google/cloud/api_hub/v1/bindings_override"
|
|
25
25
|
|
26
26
|
require "google/cloud/api_hub/v1/api_hub_plugin/credentials"
|
27
27
|
require "google/cloud/api_hub/v1/api_hub_plugin/paths"
|
28
|
+
require "google/cloud/api_hub/v1/api_hub_plugin/rest/operations"
|
28
29
|
require "google/cloud/api_hub/v1/api_hub_plugin/rest/client"
|
29
30
|
|
30
31
|
module Google
|
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
18
|
|
19
|
-
require "gapic/
|
19
|
+
require "gapic/rest"
|
20
20
|
|
21
21
|
module Google
|
22
22
|
module Cloud
|
@@ -42,7 +42,7 @@ module Google
|
|
42
42
|
namespace.pop
|
43
43
|
end
|
44
44
|
|
45
|
-
default_config =
|
45
|
+
default_config = ::Gapic::Rest::HttpBindingOverrideConfiguration.new parent_config
|
46
46
|
default_config.bindings_override["google.cloud.location.Locations.GetLocation"] = [
|
47
47
|
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
48
48
|
uri_method: :get,
|
@@ -69,33 +69,6 @@ module Google
|
|
69
69
|
yield @configure if block_given?
|
70
70
|
@configure
|
71
71
|
end
|
72
|
-
|
73
|
-
##
|
74
|
-
# @private
|
75
|
-
# Configuration class for the google.cloud.apihub.v1 package.
|
76
|
-
#
|
77
|
-
# This class contains common configuration for all services
|
78
|
-
# of the google.cloud.apihub.v1 package.
|
79
|
-
#
|
80
|
-
# This configuration is for internal use of the client library classes,
|
81
|
-
# and it is not intended that the end-users will read or change it.
|
82
|
-
#
|
83
|
-
class Configuration
|
84
|
-
extend ::Gapic::Config
|
85
|
-
|
86
|
-
# @private
|
87
|
-
# Overrides for http bindings for the RPC of the mixins for this package.
|
88
|
-
# Services in this package should use these when creating clients for the mixin services.
|
89
|
-
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
90
|
-
config_attr :bindings_override, {}, ::Hash, nil
|
91
|
-
|
92
|
-
# @private
|
93
|
-
def initialize parent_config = nil
|
94
|
-
@parent_config = parent_config unless parent_config.nil?
|
95
|
-
|
96
|
-
yield self if block_given?
|
97
|
-
end
|
98
|
-
end
|
99
72
|
end
|
100
73
|
end
|
101
74
|
end
|
@@ -316,6 +316,95 @@ module Google
|
|
316
316
|
raise ::Google::Cloud::Error.from_error(e)
|
317
317
|
end
|
318
318
|
|
319
|
+
##
|
320
|
+
# Deletes the API hub instance.
|
321
|
+
#
|
322
|
+
# @overload delete_api_hub_instance(request, options = nil)
|
323
|
+
# Pass arguments to `delete_api_hub_instance` via a request object, either of type
|
324
|
+
# {::Google::Cloud::ApiHub::V1::DeleteApiHubInstanceRequest} or an equivalent Hash.
|
325
|
+
#
|
326
|
+
# @param request [::Google::Cloud::ApiHub::V1::DeleteApiHubInstanceRequest, ::Hash]
|
327
|
+
# A request object representing the call parameters. Required. To specify no
|
328
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
329
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
330
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
331
|
+
#
|
332
|
+
# @overload delete_api_hub_instance(name: nil)
|
333
|
+
# Pass arguments to `delete_api_hub_instance` via keyword arguments. Note that at
|
334
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
335
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
336
|
+
#
|
337
|
+
# @param name [::String]
|
338
|
+
# Required. The name of the Api Hub instance to delete.
|
339
|
+
# Format:
|
340
|
+
# `projects/{project}/locations/{location}/apiHubInstances/{apiHubInstance}`.
|
341
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
342
|
+
# @yieldparam result [::Gapic::Operation]
|
343
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
344
|
+
#
|
345
|
+
# @return [::Gapic::Operation]
|
346
|
+
#
|
347
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
348
|
+
#
|
349
|
+
# @example Basic example
|
350
|
+
# require "google/cloud/api_hub/v1"
|
351
|
+
#
|
352
|
+
# # Create a client object. The client can be reused for multiple calls.
|
353
|
+
# client = Google::Cloud::ApiHub::V1::Provisioning::Rest::Client.new
|
354
|
+
#
|
355
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
356
|
+
# request = Google::Cloud::ApiHub::V1::DeleteApiHubInstanceRequest.new
|
357
|
+
#
|
358
|
+
# # Call the delete_api_hub_instance method.
|
359
|
+
# result = client.delete_api_hub_instance request
|
360
|
+
#
|
361
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
362
|
+
# # check the status of an operation, cancel it, or wait for results.
|
363
|
+
# # Here is how to wait for a response.
|
364
|
+
# result.wait_until_done! timeout: 60
|
365
|
+
# if result.response?
|
366
|
+
# p result.response
|
367
|
+
# else
|
368
|
+
# puts "No response received."
|
369
|
+
# end
|
370
|
+
#
|
371
|
+
def delete_api_hub_instance request, options = nil
|
372
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
373
|
+
|
374
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ApiHub::V1::DeleteApiHubInstanceRequest
|
375
|
+
|
376
|
+
# Converts hash and nil to an options object
|
377
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
378
|
+
|
379
|
+
# Customize the options with defaults
|
380
|
+
call_metadata = @config.rpcs.delete_api_hub_instance.metadata.to_h
|
381
|
+
|
382
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
383
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
384
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
385
|
+
gapic_version: ::Google::Cloud::ApiHub::V1::VERSION,
|
386
|
+
transports_version_send: [:rest]
|
387
|
+
|
388
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
389
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
390
|
+
|
391
|
+
options.apply_defaults timeout: @config.rpcs.delete_api_hub_instance.timeout,
|
392
|
+
metadata: call_metadata,
|
393
|
+
retry_policy: @config.rpcs.delete_api_hub_instance.retry_policy
|
394
|
+
|
395
|
+
options.apply_defaults timeout: @config.timeout,
|
396
|
+
metadata: @config.metadata,
|
397
|
+
retry_policy: @config.retry_policy
|
398
|
+
|
399
|
+
@provisioning_stub.delete_api_hub_instance request, options do |result, operation|
|
400
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
401
|
+
yield result, operation if block_given?
|
402
|
+
throw :response, result
|
403
|
+
end
|
404
|
+
rescue ::Gapic::Rest::Error => e
|
405
|
+
raise ::Google::Cloud::Error.from_error(e)
|
406
|
+
end
|
407
|
+
|
319
408
|
##
|
320
409
|
# Gets details of a single API Hub instance.
|
321
410
|
#
|
@@ -637,6 +726,11 @@ module Google
|
|
637
726
|
#
|
638
727
|
attr_reader :create_api_hub_instance
|
639
728
|
##
|
729
|
+
# RPC-specific configuration for `delete_api_hub_instance`
|
730
|
+
# @return [::Gapic::Config::Method]
|
731
|
+
#
|
732
|
+
attr_reader :delete_api_hub_instance
|
733
|
+
##
|
640
734
|
# RPC-specific configuration for `get_api_hub_instance`
|
641
735
|
# @return [::Gapic::Config::Method]
|
642
736
|
#
|
@@ -651,6 +745,8 @@ module Google
|
|
651
745
|
def initialize parent_rpcs = nil
|
652
746
|
create_api_hub_instance_config = parent_rpcs.create_api_hub_instance if parent_rpcs.respond_to? :create_api_hub_instance
|
653
747
|
@create_api_hub_instance = ::Gapic::Config::Method.new create_api_hub_instance_config
|
748
|
+
delete_api_hub_instance_config = parent_rpcs.delete_api_hub_instance if parent_rpcs.respond_to? :delete_api_hub_instance
|
749
|
+
@delete_api_hub_instance = ::Gapic::Config::Method.new delete_api_hub_instance_config
|
654
750
|
get_api_hub_instance_config = parent_rpcs.get_api_hub_instance if parent_rpcs.respond_to? :get_api_hub_instance
|
655
751
|
@get_api_hub_instance = ::Gapic::Config::Method.new get_api_hub_instance_config
|
656
752
|
lookup_api_hub_instance_config = parent_rpcs.lookup_api_hub_instance if parent_rpcs.respond_to? :lookup_api_hub_instance
|
@@ -113,6 +113,46 @@ module Google
|
|
113
113
|
end
|
114
114
|
end
|
115
115
|
|
116
|
+
##
|
117
|
+
# Baseline implementation for the delete_api_hub_instance REST call
|
118
|
+
#
|
119
|
+
# @param request_pb [::Google::Cloud::ApiHub::V1::DeleteApiHubInstanceRequest]
|
120
|
+
# A request object representing the call parameters. Required.
|
121
|
+
# @param options [::Gapic::CallOptions]
|
122
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
123
|
+
#
|
124
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
125
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
126
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
127
|
+
#
|
128
|
+
# @return [::Google::Longrunning::Operation]
|
129
|
+
# A result object deserialized from the server's reply
|
130
|
+
def delete_api_hub_instance request_pb, options = nil
|
131
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
132
|
+
|
133
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_api_hub_instance_request request_pb
|
134
|
+
query_string_params = if query_string_params.any?
|
135
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
136
|
+
else
|
137
|
+
{}
|
138
|
+
end
|
139
|
+
|
140
|
+
response = @client_stub.make_http_request(
|
141
|
+
verb,
|
142
|
+
uri: uri,
|
143
|
+
body: body || "",
|
144
|
+
params: query_string_params,
|
145
|
+
method_name: "delete_api_hub_instance",
|
146
|
+
options: options
|
147
|
+
)
|
148
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
149
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
150
|
+
catch :response do
|
151
|
+
yield result, operation if block_given?
|
152
|
+
result
|
153
|
+
end
|
154
|
+
end
|
155
|
+
|
116
156
|
##
|
117
157
|
# Baseline implementation for the get_api_hub_instance REST call
|
118
158
|
#
|
@@ -215,6 +255,27 @@ module Google
|
|
215
255
|
transcoder.transcode request_pb
|
216
256
|
end
|
217
257
|
|
258
|
+
##
|
259
|
+
# @private
|
260
|
+
#
|
261
|
+
# GRPC transcoding helper method for the delete_api_hub_instance REST call
|
262
|
+
#
|
263
|
+
# @param request_pb [::Google::Cloud::ApiHub::V1::DeleteApiHubInstanceRequest]
|
264
|
+
# A request object representing the call parameters. Required.
|
265
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
266
|
+
# Uri, Body, Query string parameters
|
267
|
+
def self.transcode_delete_api_hub_instance_request request_pb
|
268
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
269
|
+
.with_bindings(
|
270
|
+
uri_method: :delete,
|
271
|
+
uri_template: "/v1/{name}",
|
272
|
+
matches: [
|
273
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/apiHubInstances/[^/]+/?$}, false]
|
274
|
+
]
|
275
|
+
)
|
276
|
+
transcoder.transcode request_pb
|
277
|
+
end
|
278
|
+
|
218
279
|
##
|
219
280
|
# @private
|
220
281
|
#
|
@@ -18,6 +18,9 @@
|
|
18
18
|
|
19
19
|
require "google/cloud/api_hub/v1/api_hub/rest"
|
20
20
|
require "google/cloud/api_hub/v1/api_hub_dependencies/rest"
|
21
|
+
require "google/cloud/api_hub/v1/api_hub_collect/rest"
|
22
|
+
require "google/cloud/api_hub/v1/api_hub_curate/rest"
|
23
|
+
require "google/cloud/api_hub/v1/api_hub_discovery/rest"
|
21
24
|
require "google/cloud/api_hub/v1/host_project_registration_service/rest"
|
22
25
|
require "google/cloud/api_hub/v1/linting_service/rest"
|
23
26
|
require "google/cloud/api_hub/v1/api_hub_plugin/rest"
|
@@ -18,6 +18,9 @@
|
|
18
18
|
|
19
19
|
require "google/cloud/api_hub/v1/api_hub"
|
20
20
|
require "google/cloud/api_hub/v1/api_hub_dependencies"
|
21
|
+
require "google/cloud/api_hub/v1/api_hub_collect"
|
22
|
+
require "google/cloud/api_hub/v1/api_hub_curate"
|
23
|
+
require "google/cloud/api_hub/v1/api_hub_discovery"
|
21
24
|
require "google/cloud/api_hub/v1/host_project_registration_service"
|
22
25
|
require "google/cloud/api_hub/v1/linting_service"
|
23
26
|
require "google/cloud/api_hub/v1/api_hub_plugin"
|
@@ -13,7 +13,7 @@ require 'google/protobuf/empty_pb'
|
|
13
13
|
require 'google/protobuf/field_mask_pb'
|
14
14
|
|
15
15
|
|
16
|
-
descriptor_data = "\n+google/cloud/apihub/v1/apihub_service.proto\x12\x16google.cloud.apihub.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a*google/cloud/apihub/v1/common_fields.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\x89\x01\n\x10\x43reateApiRequest\x12\x31\n\x06parent\x18\x01 \x01(\tB!\xe0\x41\x02\xfa\x41\x1b\x12\x19\x61pihub.googleapis.com/Api\x12\x13\n\x06\x61pi_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12-\n\x03\x61pi\x18\x03 \x01(\x0b\x32\x1b.google.cloud.apihub.v1.ApiB\x03\xe0\x41\x02\"@\n\rGetApiRequest\x12/\n\x04name\x18\x01 \x01(\tB!\xe0\x41\x02\xfa\x41\x1b\n\x19\x61pihub.googleapis.com/Api\"w\n\x10UpdateApiRequest\x12-\n\x03\x61pi\x18\x01 \x01(\x0b\x32\x1b.google.cloud.apihub.v1.ApiB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"W\n\x10\x44\x65leteApiRequest\x12/\n\x04name\x18\x01 \x01(\tB!\xe0\x41\x02\xfa\x41\x1b\n\x19\x61pihub.googleapis.com/Api\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"\x8a\x01\n\x0fListApisRequest\x12\x31\n\x06parent\x18\x01 \x01(\tB!\xe0\x41\x02\xfa\x41\x1b\x12\x19\x61pihub.googleapis.com/Api\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\"V\n\x10ListApisResponse\x12)\n\x04\x61pis\x18\x01 \x03(\x0b\x32\x1b.google.cloud.apihub.v1.Api\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x99\x01\n\x14\x43reateVersionRequest\x12\x31\n\x06parent\x18\x01 \x01(\tB!\xe0\x41\x02\xfa\x41\x1b\n\x19\x61pihub.googleapis.com/Api\x12\x17\n\nversion_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x35\n\x07version\x18\x03 \x01(\x0b\x32\x1f.google.cloud.apihub.v1.VersionB\x03\xe0\x41\x02\"H\n\x11GetVersionRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x61pihub.googleapis.com/Version\"\x83\x01\n\x14UpdateVersionRequest\x12\x35\n\x07version\x18\x01 \x01(\x0b\x32\x1f.google.cloud.apihub.v1.VersionB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"_\n\x14\x44\x65leteVersionRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x61pihub.googleapis.com/Version\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"\x92\x01\n\x13ListVersionsRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\x12\x1d\x61pihub.googleapis.com/Version\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\"b\n\x14ListVersionsResponse\x12\x31\n\x08versions\x18\x01 \x03(\x0b\x32\x1f.google.cloud.apihub.v1.Version\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x91\x01\n\x11\x43reateSpecRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x61pihub.googleapis.com/Version\x12\x14\n\x07spec_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12/\n\x04spec\x18\x03 \x01(\x0b\x32\x1c.google.cloud.apihub.v1.SpecB\x03\xe0\x41\x02\"B\n\x0eGetSpecRequest\x12\x30\n\x04name\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\n\x1a\x61pihub.googleapis.com/Spec\"z\n\x11UpdateSpecRequest\x12/\n\x04spec\x18\x01 \x01(\x0b\x32\x1c.google.cloud.apihub.v1.SpecB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"E\n\x11\x44\x65leteSpecRequest\x12\x30\n\x04name\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\n\x1a\x61pihub.googleapis.com/Spec\"\x8c\x01\n\x10ListSpecsRequest\x12\x32\n\x06parent\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\x12\x1a\x61pihub.googleapis.com/Spec\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\"Y\n\x11ListSpecsResponse\x12+\n\x05specs\x18\x01 \x03(\x0b\x32\x1c.google.cloud.apihub.v1.Spec\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"J\n\x16GetSpecContentsRequest\x12\x30\n\x04name\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\n\x1a\x61pihub.googleapis.com/Spec\"R\n\x16GetApiOperationRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"apihub.googleapis.com/ApiOperation\"\x9c\x01\n\x18ListApiOperationsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\x12\"apihub.googleapis.com/ApiOperation\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\"r\n\x19ListApiOperationsResponse\x12<\n\x0e\x61pi_operations\x18\x01 \x03(\x0b\x32$.google.cloud.apihub.v1.ApiOperation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"N\n\x14GetDefinitionRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n apihub.googleapis.com/Definition\"\xac\x01\n\x17\x43reateDeploymentRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\x12 apihub.googleapis.com/Deployment\x12\x1a\n\rdeployment_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12;\n\ndeployment\x18\x03 \x01(\x0b\x32\".google.cloud.apihub.v1.DeploymentB\x03\xe0\x41\x02\"N\n\x14GetDeploymentRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n apihub.googleapis.com/Deployment\"\x8c\x01\n\x17UpdateDeploymentRequest\x12;\n\ndeployment\x18\x01 \x01(\x0b\x32\".google.cloud.apihub.v1.DeploymentB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"Q\n\x17\x44\x65leteDeploymentRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n apihub.googleapis.com/Deployment\"\x98\x01\n\x16ListDeploymentsRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\x12 apihub.googleapis.com/Deployment\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\"k\n\x17ListDeploymentsResponse\x12\x37\n\x0b\x64\x65ployments\x18\x01 \x03(\x0b\x32\".google.cloud.apihub.v1.Deployment\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa7\x01\n\x16\x43reateAttributeRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x61pihub.googleapis.com/Attribute\x12\x19\n\x0c\x61ttribute_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x39\n\tattribute\x18\x03 \x01(\x0b\x32!.google.cloud.apihub.v1.AttributeB\x03\xe0\x41\x02\"L\n\x13GetAttributeRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61pihub.googleapis.com/Attribute\"\x89\x01\n\x16UpdateAttributeRequest\x12\x39\n\tattribute\x18\x01 \x01(\x0b\x32!.google.cloud.apihub.v1.AttributeB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"O\n\x16\x44\x65leteAttributeRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61pihub.googleapis.com/Attribute\"\x96\x01\n\x15ListAttributesRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x61pihub.googleapis.com/Attribute\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\"h\n\x16ListAttributesResponse\x12\x35\n\nattributes\x18\x01 \x03(\x0b\x32!.google.cloud.apihub.v1.Attribute\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xaf\x01\n\x16SearchResourcesRequest\x12;\n\x08location\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x12\n\x05query\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06\x66ilter\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xd9\x02\n\x0e\x41piHubResource\x12*\n\x03\x61pi\x18\x01 \x01(\x0b\x32\x1b.google.cloud.apihub.v1.ApiH\x00\x12\x39\n\toperation\x18\x02 \x01(\x0b\x32$.google.cloud.apihub.v1.ApiOperationH\x00\x12\x38\n\ndeployment\x18\x03 \x01(\x0b\x32\".google.cloud.apihub.v1.DeploymentH\x00\x12,\n\x04spec\x18\x04 \x01(\x0b\x32\x1c.google.cloud.apihub.v1.SpecH\x00\x12\x38\n\ndefinition\x18\x05 \x01(\x0b\x32\".google.cloud.apihub.v1.DefinitionH\x00\x12\x32\n\x07version\x18\x06 \x01(\x0b\x32\x1f.google.cloud.apihub.v1.VersionH\x00\x42\n\n\x08resource\"H\n\x0cSearchResult\x12\x38\n\x08resource\x18\x01 \x01(\x0b\x32&.google.cloud.apihub.v1.ApiHubResource\"p\n\x17SearchResourcesResponse\x12<\n\x0esearch_results\x18\x01 \x03(\x0b\x32$.google.cloud.apihub.v1.SearchResult\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xac\x01\n\x17\x43reateDependencyRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\x12 apihub.googleapis.com/Dependency\x12\x1a\n\rdependency_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12;\n\ndependency\x18\x03 \x01(\x0b\x32\".google.cloud.apihub.v1.DependencyB\x03\xe0\x41\x02\"N\n\x14GetDependencyRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n apihub.googleapis.com/Dependency\"\x8c\x01\n\x17UpdateDependencyRequest\x12;\n\ndependency\x18\x01 \x01(\x0b\x32\".google.cloud.apihub.v1.DependencyB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"Q\n\x17\x44\x65leteDependencyRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n apihub.googleapis.com/Dependency\"\x99\x01\n\x17ListDependenciesRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\x12 apihub.googleapis.com/Dependency\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\"m\n\x18ListDependenciesResponse\x12\x38\n\x0c\x64\x65pendencies\x18\x01 \x03(\x0b\x32\".google.cloud.apihub.v1.Dependency\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xb3\x01\n\x18\x43reateExternalApiRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!apihub.googleapis.com/ExternalApi\x12\x1c\n\x0f\x65xternal_api_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12>\n\x0c\x65xternal_api\x18\x03 \x01(\x0b\x32#.google.cloud.apihub.v1.ExternalApiB\x03\xe0\x41\x02\"P\n\x15GetExternalApiRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!apihub.googleapis.com/ExternalApi\"\x90\x01\n\x18UpdateExternalApiRequest\x12>\n\x0c\x65xternal_api\x18\x01 \x01(\x0b\x32#.google.cloud.apihub.v1.ExternalApiB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"S\n\x18\x44\x65leteExternalApiRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!apihub.googleapis.com/ExternalApi\"\x85\x01\n\x17ListExternalApisRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!apihub.googleapis.com/ExternalApi\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"o\n\x18ListExternalApisResponse\x12:\n\rexternal_apis\x18\x01 \x03(\x0b\x32#.google.cloud.apihub.v1.ExternalApi\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xba\x31\n\x06\x41piHub\x12\x9d\x01\n\tCreateApi\x12(.google.cloud.apihub.v1.CreateApiRequest\x1a\x1b.google.cloud.apihub.v1.Api\"I\xda\x41\x11parent,api,api_id\x82\xd3\xe4\x93\x02/\"(/v1/{parent=projects/*/locations/*}/apis:\x03\x61pi\x12\x85\x01\n\x06GetApi\x12%.google.cloud.apihub.v1.GetApiRequest\x1a\x1b.google.cloud.apihub.v1.Api\"7\xda\x41\x04name\x82\xd3\xe4\x93\x02*\x12(/v1/{name=projects/*/locations/*/apis/*}\x12\x98\x01\n\x08ListApis\x12\'.google.cloud.apihub.v1.ListApisRequest\x1a(.google.cloud.apihub.v1.ListApisResponse\"9\xda\x41\x06parent\x82\xd3\xe4\x93\x02*\x12(/v1/{parent=projects/*/locations/*}/apis\x12\x9f\x01\n\tUpdateApi\x12(.google.cloud.apihub.v1.UpdateApiRequest\x1a\x1b.google.cloud.apihub.v1.Api\"K\xda\x41\x0f\x61pi,update_mask\x82\xd3\xe4\x93\x02\x33\x32,/v1/{api.name=projects/*/locations/*/apis/*}:\x03\x61pi\x12\x86\x01\n\tDeleteApi\x12(.google.cloud.apihub.v1.DeleteApiRequest\x1a\x16.google.protobuf.Empty\"7\xda\x41\x04name\x82\xd3\xe4\x93\x02**(/v1/{name=projects/*/locations/*/apis/*}\x12\xc0\x01\n\rCreateVersion\x12,.google.cloud.apihub.v1.CreateVersionRequest\x1a\x1f.google.cloud.apihub.v1.Version\"`\xda\x41\x19parent,version,version_id\x82\xd3\xe4\x93\x02>\"3/v1/{parent=projects/*/locations/*/apis/*}/versions:\x07version\x12\x9c\x01\n\nGetVersion\x12).google.cloud.apihub.v1.GetVersionRequest\x1a\x1f.google.cloud.apihub.v1.Version\"B\xda\x41\x04name\x82\xd3\xe4\x93\x02\x35\x12\x33/v1/{name=projects/*/locations/*/apis/*/versions/*}\x12\xaf\x01\n\x0cListVersions\x12+.google.cloud.apihub.v1.ListVersionsRequest\x1a,.google.cloud.apihub.v1.ListVersionsResponse\"D\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x35\x12\x33/v1/{parent=projects/*/locations/*/apis/*}/versions\x12\xc2\x01\n\rUpdateVersion\x12,.google.cloud.apihub.v1.UpdateVersionRequest\x1a\x1f.google.cloud.apihub.v1.Version\"b\xda\x41\x13version,update_mask\x82\xd3\xe4\x93\x02\x46\x32;/v1/{version.name=projects/*/locations/*/apis/*/versions/*}:\x07version\x12\x99\x01\n\rDeleteVersion\x12,.google.cloud.apihub.v1.DeleteVersionRequest\x1a\x16.google.protobuf.Empty\"B\xda\x41\x04name\x82\xd3\xe4\x93\x02\x35*3/v1/{name=projects/*/locations/*/apis/*/versions/*}\x12\xb6\x01\n\nCreateSpec\x12).google.cloud.apihub.v1.CreateSpecRequest\x1a\x1c.google.cloud.apihub.v1.Spec\"_\xda\x41\x13parent,spec,spec_id\x82\xd3\xe4\x93\x02\x43\";/v1/{parent=projects/*/locations/*/apis/*/versions/*}/specs:\x04spec\x12\x9b\x01\n\x07GetSpec\x12&.google.cloud.apihub.v1.GetSpecRequest\x1a\x1c.google.cloud.apihub.v1.Spec\"J\xda\x41\x04name\x82\xd3\xe4\x93\x02=\x12;/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*}\x12\xbc\x01\n\x0fGetSpecContents\x12..google.cloud.apihub.v1.GetSpecContentsRequest\x1a$.google.cloud.apihub.v1.SpecContents\"S\xda\x41\x04name\x82\xd3\xe4\x93\x02\x46\x12\x44/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*}:contents\x12\xae\x01\n\tListSpecs\x12(.google.cloud.apihub.v1.ListSpecsRequest\x1a).google.cloud.apihub.v1.ListSpecsResponse\"L\xda\x41\x06parent\x82\xd3\xe4\x93\x02=\x12;/v1/{parent=projects/*/locations/*/apis/*/versions/*}/specs\x12\xb8\x01\n\nUpdateSpec\x12).google.cloud.apihub.v1.UpdateSpecRequest\x1a\x1c.google.cloud.apihub.v1.Spec\"a\xda\x41\x10spec,update_mask\x82\xd3\xe4\x93\x02H2@/v1/{spec.name=projects/*/locations/*/apis/*/versions/*/specs/*}:\x04spec\x12\x9b\x01\n\nDeleteSpec\x12).google.cloud.apihub.v1.DeleteSpecRequest\x1a\x16.google.protobuf.Empty\"J\xda\x41\x04name\x82\xd3\xe4\x93\x02=*;/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*}\x12\xb8\x01\n\x0fGetApiOperation\x12..google.cloud.apihub.v1.GetApiOperationRequest\x1a$.google.cloud.apihub.v1.ApiOperation\"O\xda\x41\x04name\x82\xd3\xe4\x93\x02\x42\x12@/v1/{name=projects/*/locations/*/apis/*/versions/*/operations/*}\x12\xcb\x01\n\x11ListApiOperations\x12\x30.google.cloud.apihub.v1.ListApiOperationsRequest\x1a\x31.google.cloud.apihub.v1.ListApiOperationsResponse\"Q\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x42\x12@/v1/{parent=projects/*/locations/*/apis/*/versions/*}/operations\x12\xb3\x01\n\rGetDefinition\x12,.google.cloud.apihub.v1.GetDefinitionRequest\x1a\".google.cloud.apihub.v1.Definition\"P\xda\x41\x04name\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{name=projects/*/locations/*/apis/*/versions/*/definitions/*}\x12\xce\x01\n\x10\x43reateDeployment\x12/.google.cloud.apihub.v1.CreateDeploymentRequest\x1a\".google.cloud.apihub.v1.Deployment\"e\xda\x41\x1fparent,deployment,deployment_id\x82\xd3\xe4\x93\x02=\"//v1/{parent=projects/*/locations/*}/deployments:\ndeployment\x12\xa1\x01\n\rGetDeployment\x12,.google.cloud.apihub.v1.GetDeploymentRequest\x1a\".google.cloud.apihub.v1.Deployment\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v1/{name=projects/*/locations/*/deployments/*}\x12\xb4\x01\n\x0fListDeployments\x12..google.cloud.apihub.v1.ListDeploymentsRequest\x1a/.google.cloud.apihub.v1.ListDeploymentsResponse\"@\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x31\x12//v1/{parent=projects/*/locations/*}/deployments\x12\xd0\x01\n\x10UpdateDeployment\x12/.google.cloud.apihub.v1.UpdateDeploymentRequest\x1a\".google.cloud.apihub.v1.Deployment\"g\xda\x41\x16\x64\x65ployment,update_mask\x82\xd3\xe4\x93\x02H2:/v1/{deployment.name=projects/*/locations/*/deployments/*}:\ndeployment\x12\x9b\x01\n\x10\x44\x65leteDeployment\x12/.google.cloud.apihub.v1.DeleteDeploymentRequest\x1a\x16.google.protobuf.Empty\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31*//v1/{name=projects/*/locations/*/deployments/*}\x12\xc7\x01\n\x0f\x43reateAttribute\x12..google.cloud.apihub.v1.CreateAttributeRequest\x1a!.google.cloud.apihub.v1.Attribute\"a\xda\x41\x1dparent,attribute,attribute_id\x82\xd3\xe4\x93\x02;\"./v1/{parent=projects/*/locations/*}/attributes:\tattribute\x12\x9d\x01\n\x0cGetAttribute\x12+.google.cloud.apihub.v1.GetAttributeRequest\x1a!.google.cloud.apihub.v1.Attribute\"=\xda\x41\x04name\x82\xd3\xe4\x93\x02\x30\x12./v1/{name=projects/*/locations/*/attributes/*}\x12\xc9\x01\n\x0fUpdateAttribute\x12..google.cloud.apihub.v1.UpdateAttributeRequest\x1a!.google.cloud.apihub.v1.Attribute\"c\xda\x41\x15\x61ttribute,update_mask\x82\xd3\xe4\x93\x02\x45\x32\x38/v1/{attribute.name=projects/*/locations/*/attributes/*}:\tattribute\x12\x98\x01\n\x0f\x44\x65leteAttribute\x12..google.cloud.apihub.v1.DeleteAttributeRequest\x1a\x16.google.protobuf.Empty\"=\xda\x41\x04name\x82\xd3\xe4\x93\x02\x30*./v1/{name=projects/*/locations/*/attributes/*}\x12\xb0\x01\n\x0eListAttributes\x12-.google.cloud.apihub.v1.ListAttributesRequest\x1a..google.cloud.apihub.v1.ListAttributesResponse\"?\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x30\x12./v1/{parent=projects/*/locations/*}/attributes\x12\xc5\x01\n\x0fSearchResources\x12..google.cloud.apihub.v1.SearchResourcesRequest\x1a/.google.cloud.apihub.v1.SearchResourcesResponse\"Q\xda\x41\x0elocation,query\x82\xd3\xe4\x93\x02:\"5/v1/{location=projects/*/locations/*}:searchResources:\x01*\x12\xd8\x01\n\x11\x43reateExternalApi\x12\x30.google.cloud.apihub.v1.CreateExternalApiRequest\x1a#.google.cloud.apihub.v1.ExternalApi\"l\xda\x41#parent,external_api,external_api_id\x82\xd3\xe4\x93\x02@\"0/v1/{parent=projects/*/locations/*}/externalApis:\x0c\x65xternal_api\x12\xa5\x01\n\x0eGetExternalApi\x12-.google.cloud.apihub.v1.GetExternalApiRequest\x1a#.google.cloud.apihub.v1.ExternalApi\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{name=projects/*/locations/*/externalApis/*}\x12\xda\x01\n\x11UpdateExternalApi\x12\x30.google.cloud.apihub.v1.UpdateExternalApiRequest\x1a#.google.cloud.apihub.v1.ExternalApi\"n\xda\x41\x18\x65xternal_api,update_mask\x82\xd3\xe4\x93\x02M2=/v1/{external_api.name=projects/*/locations/*/externalApis/*}:\x0c\x65xternal_api\x12\x9e\x01\n\x11\x44\x65leteExternalApi\x12\x30.google.cloud.apihub.v1.DeleteExternalApiRequest\x1a\x16.google.protobuf.Empty\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32*0/v1/{name=projects/*/locations/*/externalApis/*}\x12\xb8\x01\n\x10ListExternalApis\x12/.google.cloud.apihub.v1.ListExternalApisRequest\x1a\x30.google.cloud.apihub.v1.ListExternalApisResponse\"A\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{parent=projects/*/locations/*}/externalApis\x1aI\xca\x41\x15\x61pihub.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platform2\x84\x08\n\x12\x41piHubDependencies\x12\xcf\x01\n\x10\x43reateDependency\x12/.google.cloud.apihub.v1.CreateDependencyRequest\x1a\".google.cloud.apihub.v1.Dependency\"f\xda\x41\x1fparent,dependency,dependency_id\x82\xd3\xe4\x93\x02>\"0/v1/{parent=projects/*/locations/*}/dependencies:\ndependency\x12\xa2\x01\n\rGetDependency\x12,.google.cloud.apihub.v1.GetDependencyRequest\x1a\".google.cloud.apihub.v1.Dependency\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{name=projects/*/locations/*/dependencies/*}\x12\xd1\x01\n\x10UpdateDependency\x12/.google.cloud.apihub.v1.UpdateDependencyRequest\x1a\".google.cloud.apihub.v1.Dependency\"h\xda\x41\x16\x64\x65pendency,update_mask\x82\xd3\xe4\x93\x02I2;/v1/{dependency.name=projects/*/locations/*/dependencies/*}:\ndependency\x12\x9c\x01\n\x10\x44\x65leteDependency\x12/.google.cloud.apihub.v1.DeleteDependencyRequest\x1a\x16.google.protobuf.Empty\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32*0/v1/{name=projects/*/locations/*/dependencies/*}\x12\xb8\x01\n\x10ListDependencies\x12/.google.cloud.apihub.v1.ListDependenciesRequest\x1a\x30.google.cloud.apihub.v1.ListDependenciesResponse\"A\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{parent=projects/*/locations/*}/dependencies\x1aI\xca\x41\x15\x61pihub.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xb4\x01\n\x1a\x63om.google.cloud.apihub.v1B\x12\x41piHubServiceProtoP\x01Z2cloud.google.com/go/apihub/apiv1/apihubpb;apihubpb\xaa\x02\x16Google.Cloud.ApiHub.V1\xca\x02\x16Google\\Cloud\\ApiHub\\V1\xea\x02\x19Google::Cloud::ApiHub::V1b\x06proto3"
|
16
|
+
descriptor_data = "\n+google/cloud/apihub/v1/apihub_service.proto\x12\x16google.cloud.apihub.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a*google/cloud/apihub/v1/common_fields.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\x89\x01\n\x10\x43reateApiRequest\x12\x31\n\x06parent\x18\x01 \x01(\tB!\xe0\x41\x02\xfa\x41\x1b\x12\x19\x61pihub.googleapis.com/Api\x12\x13\n\x06\x61pi_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12-\n\x03\x61pi\x18\x03 \x01(\x0b\x32\x1b.google.cloud.apihub.v1.ApiB\x03\xe0\x41\x02\"@\n\rGetApiRequest\x12/\n\x04name\x18\x01 \x01(\tB!\xe0\x41\x02\xfa\x41\x1b\n\x19\x61pihub.googleapis.com/Api\"w\n\x10UpdateApiRequest\x12-\n\x03\x61pi\x18\x01 \x01(\x0b\x32\x1b.google.cloud.apihub.v1.ApiB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"W\n\x10\x44\x65leteApiRequest\x12/\n\x04name\x18\x01 \x01(\tB!\xe0\x41\x02\xfa\x41\x1b\n\x19\x61pihub.googleapis.com/Api\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"\x8a\x01\n\x0fListApisRequest\x12\x31\n\x06parent\x18\x01 \x01(\tB!\xe0\x41\x02\xfa\x41\x1b\x12\x19\x61pihub.googleapis.com/Api\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\"V\n\x10ListApisResponse\x12)\n\x04\x61pis\x18\x01 \x03(\x0b\x32\x1b.google.cloud.apihub.v1.Api\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x99\x01\n\x14\x43reateVersionRequest\x12\x31\n\x06parent\x18\x01 \x01(\tB!\xe0\x41\x02\xfa\x41\x1b\n\x19\x61pihub.googleapis.com/Api\x12\x17\n\nversion_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x35\n\x07version\x18\x03 \x01(\x0b\x32\x1f.google.cloud.apihub.v1.VersionB\x03\xe0\x41\x02\"H\n\x11GetVersionRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x61pihub.googleapis.com/Version\"\x83\x01\n\x14UpdateVersionRequest\x12\x35\n\x07version\x18\x01 \x01(\x0b\x32\x1f.google.cloud.apihub.v1.VersionB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"_\n\x14\x44\x65leteVersionRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x61pihub.googleapis.com/Version\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"\x92\x01\n\x13ListVersionsRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\x12\x1d\x61pihub.googleapis.com/Version\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\"b\n\x14ListVersionsResponse\x12\x31\n\x08versions\x18\x01 \x03(\x0b\x32\x1f.google.cloud.apihub.v1.Version\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x91\x01\n\x11\x43reateSpecRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x61pihub.googleapis.com/Version\x12\x14\n\x07spec_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12/\n\x04spec\x18\x03 \x01(\x0b\x32\x1c.google.cloud.apihub.v1.SpecB\x03\xe0\x41\x02\"B\n\x0eGetSpecRequest\x12\x30\n\x04name\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\n\x1a\x61pihub.googleapis.com/Spec\"z\n\x11UpdateSpecRequest\x12/\n\x04spec\x18\x01 \x01(\x0b\x32\x1c.google.cloud.apihub.v1.SpecB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"E\n\x11\x44\x65leteSpecRequest\x12\x30\n\x04name\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\n\x1a\x61pihub.googleapis.com/Spec\"\x8c\x01\n\x10ListSpecsRequest\x12\x32\n\x06parent\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\x12\x1a\x61pihub.googleapis.com/Spec\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\"Y\n\x11ListSpecsResponse\x12+\n\x05specs\x18\x01 \x03(\x0b\x32\x1c.google.cloud.apihub.v1.Spec\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"J\n\x16GetSpecContentsRequest\x12\x30\n\x04name\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\n\x1a\x61pihub.googleapis.com/Spec\"\xb8\x01\n\x19\x43reateApiOperationRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\x12\"apihub.googleapis.com/ApiOperation\x12\x1d\n\x10\x61pi_operation_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12@\n\rapi_operation\x18\x03 \x01(\x0b\x32$.google.cloud.apihub.v1.ApiOperationB\x03\xe0\x41\x02\"R\n\x16GetApiOperationRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"apihub.googleapis.com/ApiOperation\"\x93\x01\n\x19UpdateApiOperationRequest\x12@\n\rapi_operation\x18\x01 \x01(\x0b\x32$.google.cloud.apihub.v1.ApiOperationB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"U\n\x19\x44\x65leteApiOperationRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"apihub.googleapis.com/ApiOperation\"\x9c\x01\n\x18ListApiOperationsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\x12\"apihub.googleapis.com/ApiOperation\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\"r\n\x19ListApiOperationsResponse\x12<\n\x0e\x61pi_operations\x18\x01 \x03(\x0b\x32$.google.cloud.apihub.v1.ApiOperation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"N\n\x14GetDefinitionRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n apihub.googleapis.com/Definition\"\xac\x01\n\x17\x43reateDeploymentRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\x12 apihub.googleapis.com/Deployment\x12\x1a\n\rdeployment_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12;\n\ndeployment\x18\x03 \x01(\x0b\x32\".google.cloud.apihub.v1.DeploymentB\x03\xe0\x41\x02\"N\n\x14GetDeploymentRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n apihub.googleapis.com/Deployment\"\x8c\x01\n\x17UpdateDeploymentRequest\x12;\n\ndeployment\x18\x01 \x01(\x0b\x32\".google.cloud.apihub.v1.DeploymentB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"Q\n\x17\x44\x65leteDeploymentRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n apihub.googleapis.com/Deployment\"\x98\x01\n\x16ListDeploymentsRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\x12 apihub.googleapis.com/Deployment\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\"k\n\x17ListDeploymentsResponse\x12\x37\n\x0b\x64\x65ployments\x18\x01 \x03(\x0b\x32\".google.cloud.apihub.v1.Deployment\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa7\x01\n\x16\x43reateAttributeRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x61pihub.googleapis.com/Attribute\x12\x19\n\x0c\x61ttribute_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x39\n\tattribute\x18\x03 \x01(\x0b\x32!.google.cloud.apihub.v1.AttributeB\x03\xe0\x41\x02\"L\n\x13GetAttributeRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61pihub.googleapis.com/Attribute\"\x89\x01\n\x16UpdateAttributeRequest\x12\x39\n\tattribute\x18\x01 \x01(\x0b\x32!.google.cloud.apihub.v1.AttributeB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"O\n\x16\x44\x65leteAttributeRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61pihub.googleapis.com/Attribute\"\x96\x01\n\x15ListAttributesRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x61pihub.googleapis.com/Attribute\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\"h\n\x16ListAttributesResponse\x12\x35\n\nattributes\x18\x01 \x03(\x0b\x32!.google.cloud.apihub.v1.Attribute\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xaf\x01\n\x16SearchResourcesRequest\x12;\n\x08location\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x12\n\x05query\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06\x66ilter\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xd9\x02\n\x0e\x41piHubResource\x12*\n\x03\x61pi\x18\x01 \x01(\x0b\x32\x1b.google.cloud.apihub.v1.ApiH\x00\x12\x39\n\toperation\x18\x02 \x01(\x0b\x32$.google.cloud.apihub.v1.ApiOperationH\x00\x12\x38\n\ndeployment\x18\x03 \x01(\x0b\x32\".google.cloud.apihub.v1.DeploymentH\x00\x12,\n\x04spec\x18\x04 \x01(\x0b\x32\x1c.google.cloud.apihub.v1.SpecH\x00\x12\x38\n\ndefinition\x18\x05 \x01(\x0b\x32\".google.cloud.apihub.v1.DefinitionH\x00\x12\x32\n\x07version\x18\x06 \x01(\x0b\x32\x1f.google.cloud.apihub.v1.VersionH\x00\x42\n\n\x08resource\"H\n\x0cSearchResult\x12\x38\n\x08resource\x18\x01 \x01(\x0b\x32&.google.cloud.apihub.v1.ApiHubResource\"p\n\x17SearchResourcesResponse\x12<\n\x0esearch_results\x18\x01 \x03(\x0b\x32$.google.cloud.apihub.v1.SearchResult\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xac\x01\n\x17\x43reateDependencyRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\x12 apihub.googleapis.com/Dependency\x12\x1a\n\rdependency_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12;\n\ndependency\x18\x03 \x01(\x0b\x32\".google.cloud.apihub.v1.DependencyB\x03\xe0\x41\x02\"N\n\x14GetDependencyRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n apihub.googleapis.com/Dependency\"\x8c\x01\n\x17UpdateDependencyRequest\x12;\n\ndependency\x18\x01 \x01(\x0b\x32\".google.cloud.apihub.v1.DependencyB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"Q\n\x17\x44\x65leteDependencyRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n apihub.googleapis.com/Dependency\"\x99\x01\n\x17ListDependenciesRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\x12 apihub.googleapis.com/Dependency\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\"m\n\x18ListDependenciesResponse\x12\x38\n\x0c\x64\x65pendencies\x18\x01 \x03(\x0b\x32\".google.cloud.apihub.v1.Dependency\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xb3\x01\n\x18\x43reateExternalApiRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!apihub.googleapis.com/ExternalApi\x12\x1c\n\x0f\x65xternal_api_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12>\n\x0c\x65xternal_api\x18\x03 \x01(\x0b\x32#.google.cloud.apihub.v1.ExternalApiB\x03\xe0\x41\x02\"P\n\x15GetExternalApiRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!apihub.googleapis.com/ExternalApi\"\x90\x01\n\x18UpdateExternalApiRequest\x12>\n\x0c\x65xternal_api\x18\x01 \x01(\x0b\x32#.google.cloud.apihub.v1.ExternalApiB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"S\n\x18\x44\x65leteExternalApiRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!apihub.googleapis.com/ExternalApi\"\x85\x01\n\x17ListExternalApisRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!apihub.googleapis.com/ExternalApi\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"o\n\x18ListExternalApisResponse\x12:\n\rexternal_apis\x18\x01 \x03(\x0b\x32#.google.cloud.apihub.v1.ExternalApi\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xd2\x36\n\x06\x41piHub\x12\x9d\x01\n\tCreateApi\x12(.google.cloud.apihub.v1.CreateApiRequest\x1a\x1b.google.cloud.apihub.v1.Api\"I\xda\x41\x11parent,api,api_id\x82\xd3\xe4\x93\x02/\"(/v1/{parent=projects/*/locations/*}/apis:\x03\x61pi\x12\x85\x01\n\x06GetApi\x12%.google.cloud.apihub.v1.GetApiRequest\x1a\x1b.google.cloud.apihub.v1.Api\"7\xda\x41\x04name\x82\xd3\xe4\x93\x02*\x12(/v1/{name=projects/*/locations/*/apis/*}\x12\x98\x01\n\x08ListApis\x12\'.google.cloud.apihub.v1.ListApisRequest\x1a(.google.cloud.apihub.v1.ListApisResponse\"9\xda\x41\x06parent\x82\xd3\xe4\x93\x02*\x12(/v1/{parent=projects/*/locations/*}/apis\x12\x9f\x01\n\tUpdateApi\x12(.google.cloud.apihub.v1.UpdateApiRequest\x1a\x1b.google.cloud.apihub.v1.Api\"K\xda\x41\x0f\x61pi,update_mask\x82\xd3\xe4\x93\x02\x33\x32,/v1/{api.name=projects/*/locations/*/apis/*}:\x03\x61pi\x12\x86\x01\n\tDeleteApi\x12(.google.cloud.apihub.v1.DeleteApiRequest\x1a\x16.google.protobuf.Empty\"7\xda\x41\x04name\x82\xd3\xe4\x93\x02**(/v1/{name=projects/*/locations/*/apis/*}\x12\xc0\x01\n\rCreateVersion\x12,.google.cloud.apihub.v1.CreateVersionRequest\x1a\x1f.google.cloud.apihub.v1.Version\"`\xda\x41\x19parent,version,version_id\x82\xd3\xe4\x93\x02>\"3/v1/{parent=projects/*/locations/*/apis/*}/versions:\x07version\x12\x9c\x01\n\nGetVersion\x12).google.cloud.apihub.v1.GetVersionRequest\x1a\x1f.google.cloud.apihub.v1.Version\"B\xda\x41\x04name\x82\xd3\xe4\x93\x02\x35\x12\x33/v1/{name=projects/*/locations/*/apis/*/versions/*}\x12\xaf\x01\n\x0cListVersions\x12+.google.cloud.apihub.v1.ListVersionsRequest\x1a,.google.cloud.apihub.v1.ListVersionsResponse\"D\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x35\x12\x33/v1/{parent=projects/*/locations/*/apis/*}/versions\x12\xc2\x01\n\rUpdateVersion\x12,.google.cloud.apihub.v1.UpdateVersionRequest\x1a\x1f.google.cloud.apihub.v1.Version\"b\xda\x41\x13version,update_mask\x82\xd3\xe4\x93\x02\x46\x32;/v1/{version.name=projects/*/locations/*/apis/*/versions/*}:\x07version\x12\x99\x01\n\rDeleteVersion\x12,.google.cloud.apihub.v1.DeleteVersionRequest\x1a\x16.google.protobuf.Empty\"B\xda\x41\x04name\x82\xd3\xe4\x93\x02\x35*3/v1/{name=projects/*/locations/*/apis/*/versions/*}\x12\xb6\x01\n\nCreateSpec\x12).google.cloud.apihub.v1.CreateSpecRequest\x1a\x1c.google.cloud.apihub.v1.Spec\"_\xda\x41\x13parent,spec,spec_id\x82\xd3\xe4\x93\x02\x43\";/v1/{parent=projects/*/locations/*/apis/*/versions/*}/specs:\x04spec\x12\x9b\x01\n\x07GetSpec\x12&.google.cloud.apihub.v1.GetSpecRequest\x1a\x1c.google.cloud.apihub.v1.Spec\"J\xda\x41\x04name\x82\xd3\xe4\x93\x02=\x12;/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*}\x12\xbc\x01\n\x0fGetSpecContents\x12..google.cloud.apihub.v1.GetSpecContentsRequest\x1a$.google.cloud.apihub.v1.SpecContents\"S\xda\x41\x04name\x82\xd3\xe4\x93\x02\x46\x12\x44/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*}:contents\x12\xae\x01\n\tListSpecs\x12(.google.cloud.apihub.v1.ListSpecsRequest\x1a).google.cloud.apihub.v1.ListSpecsResponse\"L\xda\x41\x06parent\x82\xd3\xe4\x93\x02=\x12;/v1/{parent=projects/*/locations/*/apis/*/versions/*}/specs\x12\xb8\x01\n\nUpdateSpec\x12).google.cloud.apihub.v1.UpdateSpecRequest\x1a\x1c.google.cloud.apihub.v1.Spec\"a\xda\x41\x10spec,update_mask\x82\xd3\xe4\x93\x02H2@/v1/{spec.name=projects/*/locations/*/apis/*/versions/*/specs/*}:\x04spec\x12\x9b\x01\n\nDeleteSpec\x12).google.cloud.apihub.v1.DeleteSpecRequest\x1a\x16.google.protobuf.Empty\"J\xda\x41\x04name\x82\xd3\xe4\x93\x02=*;/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*}\x12\xee\x01\n\x12\x43reateApiOperation\x12\x31.google.cloud.apihub.v1.CreateApiOperationRequest\x1a$.google.cloud.apihub.v1.ApiOperation\"\x7f\xda\x41%parent,api_operation,api_operation_id\x82\xd3\xe4\x93\x02Q\"@/v1/{parent=projects/*/locations/*/apis/*/versions/*}/operations:\rapi_operation\x12\xb8\x01\n\x0fGetApiOperation\x12..google.cloud.apihub.v1.GetApiOperationRequest\x1a$.google.cloud.apihub.v1.ApiOperation\"O\xda\x41\x04name\x82\xd3\xe4\x93\x02\x42\x12@/v1/{name=projects/*/locations/*/apis/*/versions/*/operations/*}\x12\xcb\x01\n\x11ListApiOperations\x12\x30.google.cloud.apihub.v1.ListApiOperationsRequest\x1a\x31.google.cloud.apihub.v1.ListApiOperationsResponse\"Q\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x42\x12@/v1/{parent=projects/*/locations/*/apis/*/versions/*}/operations\x12\xf1\x01\n\x12UpdateApiOperation\x12\x31.google.cloud.apihub.v1.UpdateApiOperationRequest\x1a$.google.cloud.apihub.v1.ApiOperation\"\x81\x01\xda\x41\x19\x61pi_operation,update_mask\x82\xd3\xe4\x93\x02_2N/v1/{api_operation.name=projects/*/locations/*/apis/*/versions/*/operations/*}:\rapi_operation\x12\xb0\x01\n\x12\x44\x65leteApiOperation\x12\x31.google.cloud.apihub.v1.DeleteApiOperationRequest\x1a\x16.google.protobuf.Empty\"O\xda\x41\x04name\x82\xd3\xe4\x93\x02\x42*@/v1/{name=projects/*/locations/*/apis/*/versions/*/operations/*}\x12\xb3\x01\n\rGetDefinition\x12,.google.cloud.apihub.v1.GetDefinitionRequest\x1a\".google.cloud.apihub.v1.Definition\"P\xda\x41\x04name\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{name=projects/*/locations/*/apis/*/versions/*/definitions/*}\x12\xce\x01\n\x10\x43reateDeployment\x12/.google.cloud.apihub.v1.CreateDeploymentRequest\x1a\".google.cloud.apihub.v1.Deployment\"e\xda\x41\x1fparent,deployment,deployment_id\x82\xd3\xe4\x93\x02=\"//v1/{parent=projects/*/locations/*}/deployments:\ndeployment\x12\xa1\x01\n\rGetDeployment\x12,.google.cloud.apihub.v1.GetDeploymentRequest\x1a\".google.cloud.apihub.v1.Deployment\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v1/{name=projects/*/locations/*/deployments/*}\x12\xb4\x01\n\x0fListDeployments\x12..google.cloud.apihub.v1.ListDeploymentsRequest\x1a/.google.cloud.apihub.v1.ListDeploymentsResponse\"@\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x31\x12//v1/{parent=projects/*/locations/*}/deployments\x12\xd0\x01\n\x10UpdateDeployment\x12/.google.cloud.apihub.v1.UpdateDeploymentRequest\x1a\".google.cloud.apihub.v1.Deployment\"g\xda\x41\x16\x64\x65ployment,update_mask\x82\xd3\xe4\x93\x02H2:/v1/{deployment.name=projects/*/locations/*/deployments/*}:\ndeployment\x12\x9b\x01\n\x10\x44\x65leteDeployment\x12/.google.cloud.apihub.v1.DeleteDeploymentRequest\x1a\x16.google.protobuf.Empty\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31*//v1/{name=projects/*/locations/*/deployments/*}\x12\xc7\x01\n\x0f\x43reateAttribute\x12..google.cloud.apihub.v1.CreateAttributeRequest\x1a!.google.cloud.apihub.v1.Attribute\"a\xda\x41\x1dparent,attribute,attribute_id\x82\xd3\xe4\x93\x02;\"./v1/{parent=projects/*/locations/*}/attributes:\tattribute\x12\x9d\x01\n\x0cGetAttribute\x12+.google.cloud.apihub.v1.GetAttributeRequest\x1a!.google.cloud.apihub.v1.Attribute\"=\xda\x41\x04name\x82\xd3\xe4\x93\x02\x30\x12./v1/{name=projects/*/locations/*/attributes/*}\x12\xc9\x01\n\x0fUpdateAttribute\x12..google.cloud.apihub.v1.UpdateAttributeRequest\x1a!.google.cloud.apihub.v1.Attribute\"c\xda\x41\x15\x61ttribute,update_mask\x82\xd3\xe4\x93\x02\x45\x32\x38/v1/{attribute.name=projects/*/locations/*/attributes/*}:\tattribute\x12\x98\x01\n\x0f\x44\x65leteAttribute\x12..google.cloud.apihub.v1.DeleteAttributeRequest\x1a\x16.google.protobuf.Empty\"=\xda\x41\x04name\x82\xd3\xe4\x93\x02\x30*./v1/{name=projects/*/locations/*/attributes/*}\x12\xb0\x01\n\x0eListAttributes\x12-.google.cloud.apihub.v1.ListAttributesRequest\x1a..google.cloud.apihub.v1.ListAttributesResponse\"?\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x30\x12./v1/{parent=projects/*/locations/*}/attributes\x12\xc5\x01\n\x0fSearchResources\x12..google.cloud.apihub.v1.SearchResourcesRequest\x1a/.google.cloud.apihub.v1.SearchResourcesResponse\"Q\xda\x41\x0elocation,query\x82\xd3\xe4\x93\x02:\"5/v1/{location=projects/*/locations/*}:searchResources:\x01*\x12\xd8\x01\n\x11\x43reateExternalApi\x12\x30.google.cloud.apihub.v1.CreateExternalApiRequest\x1a#.google.cloud.apihub.v1.ExternalApi\"l\xda\x41#parent,external_api,external_api_id\x82\xd3\xe4\x93\x02@\"0/v1/{parent=projects/*/locations/*}/externalApis:\x0c\x65xternal_api\x12\xa5\x01\n\x0eGetExternalApi\x12-.google.cloud.apihub.v1.GetExternalApiRequest\x1a#.google.cloud.apihub.v1.ExternalApi\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{name=projects/*/locations/*/externalApis/*}\x12\xda\x01\n\x11UpdateExternalApi\x12\x30.google.cloud.apihub.v1.UpdateExternalApiRequest\x1a#.google.cloud.apihub.v1.ExternalApi\"n\xda\x41\x18\x65xternal_api,update_mask\x82\xd3\xe4\x93\x02M2=/v1/{external_api.name=projects/*/locations/*/externalApis/*}:\x0c\x65xternal_api\x12\x9e\x01\n\x11\x44\x65leteExternalApi\x12\x30.google.cloud.apihub.v1.DeleteExternalApiRequest\x1a\x16.google.protobuf.Empty\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32*0/v1/{name=projects/*/locations/*/externalApis/*}\x12\xb8\x01\n\x10ListExternalApis\x12/.google.cloud.apihub.v1.ListExternalApisRequest\x1a\x30.google.cloud.apihub.v1.ListExternalApisResponse\"A\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{parent=projects/*/locations/*}/externalApis\x1aI\xca\x41\x15\x61pihub.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platform2\x84\x08\n\x12\x41piHubDependencies\x12\xcf\x01\n\x10\x43reateDependency\x12/.google.cloud.apihub.v1.CreateDependencyRequest\x1a\".google.cloud.apihub.v1.Dependency\"f\xda\x41\x1fparent,dependency,dependency_id\x82\xd3\xe4\x93\x02>\"0/v1/{parent=projects/*/locations/*}/dependencies:\ndependency\x12\xa2\x01\n\rGetDependency\x12,.google.cloud.apihub.v1.GetDependencyRequest\x1a\".google.cloud.apihub.v1.Dependency\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{name=projects/*/locations/*/dependencies/*}\x12\xd1\x01\n\x10UpdateDependency\x12/.google.cloud.apihub.v1.UpdateDependencyRequest\x1a\".google.cloud.apihub.v1.Dependency\"h\xda\x41\x16\x64\x65pendency,update_mask\x82\xd3\xe4\x93\x02I2;/v1/{dependency.name=projects/*/locations/*/dependencies/*}:\ndependency\x12\x9c\x01\n\x10\x44\x65leteDependency\x12/.google.cloud.apihub.v1.DeleteDependencyRequest\x1a\x16.google.protobuf.Empty\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32*0/v1/{name=projects/*/locations/*/dependencies/*}\x12\xb8\x01\n\x10ListDependencies\x12/.google.cloud.apihub.v1.ListDependenciesRequest\x1a\x30.google.cloud.apihub.v1.ListDependenciesResponse\"A\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{parent=projects/*/locations/*}/dependencies\x1aI\xca\x41\x15\x61pihub.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xb4\x01\n\x1a\x63om.google.cloud.apihub.v1B\x12\x41piHubServiceProtoP\x01Z2cloud.google.com/go/apihub/apiv1/apihubpb;apihubpb\xaa\x02\x16Google.Cloud.ApiHub.V1\xca\x02\x16Google\\Cloud\\ApiHub\\V1\xea\x02\x19Google::Cloud::ApiHub::V1b\x06proto3"
|
17
17
|
|
18
18
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
19
19
|
|
@@ -64,7 +64,10 @@ module Google
|
|
64
64
|
ListSpecsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.ListSpecsRequest").msgclass
|
65
65
|
ListSpecsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.ListSpecsResponse").msgclass
|
66
66
|
GetSpecContentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.GetSpecContentsRequest").msgclass
|
67
|
+
CreateApiOperationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.CreateApiOperationRequest").msgclass
|
67
68
|
GetApiOperationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.GetApiOperationRequest").msgclass
|
69
|
+
UpdateApiOperationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.UpdateApiOperationRequest").msgclass
|
70
|
+
DeleteApiOperationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.DeleteApiOperationRequest").msgclass
|
68
71
|
ListApiOperationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.ListApiOperationsRequest").msgclass
|
69
72
|
ListApiOperationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.ListApiOperationsResponse").msgclass
|
70
73
|
GetDefinitionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.GetDefinitionRequest").msgclass
|
@@ -41,7 +41,7 @@ module Google
|
|
41
41
|
# List API resources in the API hub.
|
42
42
|
rpc :ListApis, ::Google::Cloud::ApiHub::V1::ListApisRequest, ::Google::Cloud::ApiHub::V1::ListApisResponse
|
43
43
|
# Update an API resource in the API hub. The following fields in the
|
44
|
-
# [API][] can be updated:
|
44
|
+
# [API][google.cloud.apihub.v1.Api] can be updated:
|
45
45
|
#
|
46
46
|
# * [display_name][google.cloud.apihub.v1.Api.display_name]
|
47
47
|
# * [description][google.cloud.apihub.v1.Api.description]
|
@@ -51,6 +51,7 @@ module Google
|
|
51
51
|
# * [team][google.cloud.apihub.v1.Api.team]
|
52
52
|
# * [business_unit][google.cloud.apihub.v1.Api.business_unit]
|
53
53
|
# * [maturity_level][google.cloud.apihub.v1.Api.maturity_level]
|
54
|
+
# * [api_style][google.cloud.apihub.v1.Api.api_style]
|
54
55
|
# * [attributes][google.cloud.apihub.v1.Api.attributes]
|
55
56
|
#
|
56
57
|
# The
|
@@ -148,10 +149,38 @@ module Google
|
|
148
149
|
# Deleting a spec will also delete the associated operations from the
|
149
150
|
# version.
|
150
151
|
rpc :DeleteSpec, ::Google::Cloud::ApiHub::V1::DeleteSpecRequest, ::Google::Protobuf::Empty
|
152
|
+
# Create an apiOperation in an API version.
|
153
|
+
# An apiOperation can be created only if the version has no apiOperations
|
154
|
+
# which were created by parsing a spec.
|
155
|
+
rpc :CreateApiOperation, ::Google::Cloud::ApiHub::V1::CreateApiOperationRequest, ::Google::Cloud::ApiHub::V1::ApiOperation
|
151
156
|
# Get details about a particular operation in API version.
|
152
157
|
rpc :GetApiOperation, ::Google::Cloud::ApiHub::V1::GetApiOperationRequest, ::Google::Cloud::ApiHub::V1::ApiOperation
|
153
158
|
# List operations in an API version.
|
154
159
|
rpc :ListApiOperations, ::Google::Cloud::ApiHub::V1::ListApiOperationsRequest, ::Google::Cloud::ApiHub::V1::ListApiOperationsResponse
|
160
|
+
# Update an operation in an API version. The following fields in the
|
161
|
+
# [ApiOperation resource][google.cloud.apihub.v1.ApiOperation] can be
|
162
|
+
# updated:
|
163
|
+
#
|
164
|
+
# * [details.description][ApiOperation.details.description]
|
165
|
+
# * [details.documentation][ApiOperation.details.documentation]
|
166
|
+
# * [details.http_operation.path][ApiOperation.details.http_operation.path.path]
|
167
|
+
# * [details.http_operation.method][ApiOperation.details.http_operation.method]
|
168
|
+
# * [details.deprecated][ApiOperation.details.deprecated]
|
169
|
+
# * [attributes][google.cloud.apihub.v1.ApiOperation.attributes]
|
170
|
+
#
|
171
|
+
# The
|
172
|
+
# [update_mask][google.cloud.apihub.v1.UpdateApiOperationRequest.update_mask]
|
173
|
+
# should be used to specify the fields being updated.
|
174
|
+
#
|
175
|
+
# An operation can be updated only if the operation was created via
|
176
|
+
# [CreateApiOperation][google.cloud.apihub.v1.ApiHub.CreateApiOperation] API.
|
177
|
+
# If the operation was created by parsing the spec, then it can be edited by
|
178
|
+
# updating the spec.
|
179
|
+
rpc :UpdateApiOperation, ::Google::Cloud::ApiHub::V1::UpdateApiOperationRequest, ::Google::Cloud::ApiHub::V1::ApiOperation
|
180
|
+
# Delete an operation in an API version and we can delete only the
|
181
|
+
# operations created via create API. If the operation was created by parsing
|
182
|
+
# the spec, then it can be deleted by editing or deleting the spec.
|
183
|
+
rpc :DeleteApiOperation, ::Google::Cloud::ApiHub::V1::DeleteApiOperationRequest, ::Google::Protobuf::Empty
|
155
184
|
# Get details about a definition in an API version.
|
156
185
|
rpc :GetDefinition, ::Google::Cloud::ApiHub::V1::GetDefinitionRequest, ::Google::Cloud::ApiHub::V1::Definition
|
157
186
|
# Create a deployment resource in the API hub.
|
@@ -175,7 +204,11 @@ module Google
|
|
175
204
|
# * [slo][google.cloud.apihub.v1.Deployment.slo]
|
176
205
|
# * [environment][google.cloud.apihub.v1.Deployment.environment]
|
177
206
|
# * [attributes][google.cloud.apihub.v1.Deployment.attributes]
|
178
|
-
#
|
207
|
+
# * [source_project] [google.cloud.apihub.v1.Deployment.source_project]
|
208
|
+
# * [source_environment]
|
209
|
+
# [google.cloud.apihub.v1.Deployment.source_environment]
|
210
|
+
# * [management_url][google.cloud.apihub.v1.Deployment.management_url]
|
211
|
+
# * [source_uri][google.cloud.apihub.v1.Deployment.source_uri]
|
179
212
|
# The
|
180
213
|
# [update_mask][google.cloud.apihub.v1.UpdateDeploymentRequest.update_mask]
|
181
214
|
# should be used to specify the fields being updated.
|
@@ -0,0 +1,60 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/cloud/apihub/v1/collect_service.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/api/annotations_pb'
|
8
|
+
require 'google/api/client_pb'
|
9
|
+
require 'google/api/field_behavior_pb'
|
10
|
+
require 'google/api/resource_pb'
|
11
|
+
require 'google/cloud/apihub/v1/common_fields_pb'
|
12
|
+
require 'google/longrunning/operations_pb'
|
13
|
+
require 'google/protobuf/timestamp_pb'
|
14
|
+
|
15
|
+
|
16
|
+
descriptor_data = "\n,google/cloud/apihub/v1/collect_service.proto\x12\x16google.cloud.apihub.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a*google/cloud/apihub/v1/common_fields.proto\x1a#google/longrunning/operations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb1\x02\n\x15\x43ollectApiDataRequest\x12;\n\x08location\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x44\n\x0f\x63ollection_type\x18\x02 \x01(\x0e\x32&.google.cloud.apihub.v1.CollectionTypeB\x03\xe0\x41\x02\x12\x45\n\x0fplugin_instance\x18\x03 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$apihub.googleapis.com/PluginInstance\x12\x16\n\taction_id\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x36\n\x08\x61pi_data\x18\x05 \x01(\x0b\x32\x1f.google.cloud.apihub.v1.ApiDataB\x03\xe0\x41\x02\"\\\n\x07\x41piData\x12I\n\x11\x61pi_metadata_list\x18\x01 \x01(\x0b\x32\'.google.cloud.apihub.v1.ApiMetadataListB\x03\xe0\x41\x01H\x00\x42\x06\n\x04\x44\x61ta\"Q\n\x0f\x41piMetadataList\x12>\n\x0c\x61pi_metadata\x18\x01 \x03(\x0b\x32#.google.cloud.apihub.v1.APIMetadataB\x03\xe0\x41\x02\"\x94\x02\n\x0b\x41PIMetadata\x12-\n\x03\x61pi\x18\x01 \x01(\x0b\x32\x1b.google.cloud.apihub.v1.ApiB\x03\xe0\x41\x02\x12>\n\x08versions\x18\x02 \x03(\x0b\x32\'.google.cloud.apihub.v1.VersionMetadataB\x03\xe0\x41\x01\x12\x18\n\x0boriginal_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12=\n\x14original_create_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\x12=\n\x14original_update_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\"\xe0\x02\n\x0fVersionMetadata\x12\x35\n\x07version\x18\x01 \x01(\x0b\x32\x1f.google.cloud.apihub.v1.VersionB\x03\xe0\x41\x02\x12\x38\n\x05specs\x18\x02 \x03(\x0b\x32$.google.cloud.apihub.v1.SpecMetadataB\x03\xe0\x41\x01\x12\x44\n\x0b\x64\x65ployments\x18\x04 \x03(\x0b\x32*.google.cloud.apihub.v1.DeploymentMetadataB\x03\xe0\x41\x01\x12\x18\n\x0boriginal_id\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12=\n\x14original_create_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\x12=\n\x14original_update_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\"\xd7\x01\n\x0cSpecMetadata\x12/\n\x04spec\x18\x01 \x01(\x0b\x32\x1c.google.cloud.apihub.v1.SpecB\x03\xe0\x41\x02\x12\x18\n\x0boriginal_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12=\n\x14original_create_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\x12=\n\x14original_update_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\"\xe9\x01\n\x12\x44\x65ploymentMetadata\x12;\n\ndeployment\x18\x01 \x01(\x0b\x32\".google.cloud.apihub.v1.DeploymentB\x03\xe0\x41\x02\x12\x18\n\x0boriginal_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12=\n\x14original_create_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\x12=\n\x14original_update_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\"\x18\n\x16\x43ollectApiDataResponse*i\n\x0e\x43ollectionType\x12\x1f\n\x1b\x43OLLECTION_TYPE_UNSPECIFIED\x10\x00\x12\x1a\n\x16\x43OLLECTION_TYPE_UPSERT\x10\x01\x12\x1a\n\x16\x43OLLECTION_TYPE_DELETE\x10\x02\x32\xcf\x02\n\rApiHubCollect\x12\xf2\x01\n\x0e\x43ollectApiData\x12-.google.cloud.apihub.v1.CollectApiDataRequest\x1a\x1d.google.longrunning.Operation\"\x91\x01\xca\x41+\n\x16\x43ollectApiDataResponse\x12\x11OperationMetadata\xda\x41!location,collection_type,api_data\x82\xd3\xe4\x93\x02\x39\"4/v1/{location=projects/*/locations/*}:collectApiData:\x01*\x1aI\xca\x41\x15\x61pihub.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xb5\x01\n\x1a\x63om.google.cloud.apihub.v1B\x13\x43ollectServiceProtoP\x01Z2cloud.google.com/go/apihub/apiv1/apihubpb;apihubpb\xaa\x02\x16Google.Cloud.ApiHub.V1\xca\x02\x16Google\\Cloud\\ApiHub\\V1\xea\x02\x19Google::Cloud::ApiHub::V1b\x06proto3"
|
17
|
+
|
18
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
19
|
+
|
20
|
+
begin
|
21
|
+
pool.add_serialized_file(descriptor_data)
|
22
|
+
rescue TypeError
|
23
|
+
# Compatibility code: will be removed in the next major version.
|
24
|
+
require 'google/protobuf/descriptor_pb'
|
25
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
26
|
+
parsed.clear_dependency
|
27
|
+
serialized = parsed.class.encode(parsed)
|
28
|
+
file = pool.add_serialized_file(serialized)
|
29
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
30
|
+
imports = [
|
31
|
+
["google.cloud.apihub.v1.Api", "google/cloud/apihub/v1/common_fields.proto"],
|
32
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
33
|
+
]
|
34
|
+
imports.each do |type_name, expected_filename|
|
35
|
+
import_file = pool.lookup(type_name).file_descriptor
|
36
|
+
if import_file.name != expected_filename
|
37
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
38
|
+
end
|
39
|
+
end
|
40
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
41
|
+
warn "This will become an error in the next major version."
|
42
|
+
end
|
43
|
+
|
44
|
+
module Google
|
45
|
+
module Cloud
|
46
|
+
module ApiHub
|
47
|
+
module V1
|
48
|
+
CollectApiDataRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.CollectApiDataRequest").msgclass
|
49
|
+
ApiData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.ApiData").msgclass
|
50
|
+
ApiMetadataList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.ApiMetadataList").msgclass
|
51
|
+
APIMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.APIMetadata").msgclass
|
52
|
+
VersionMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.VersionMetadata").msgclass
|
53
|
+
SpecMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.SpecMetadata").msgclass
|
54
|
+
DeploymentMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.DeploymentMetadata").msgclass
|
55
|
+
CollectApiDataResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.CollectApiDataResponse").msgclass
|
56
|
+
CollectionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.CollectionType").enummodule
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/apihub/v1/collect_service.proto for package 'Google.Cloud.ApiHub.V1'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2025 Google LLC
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
|
19
|
+
require 'grpc'
|
20
|
+
require 'google/cloud/apihub/v1/collect_service_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module ApiHub
|
25
|
+
module V1
|
26
|
+
module ApiHubCollect
|
27
|
+
# This service exposes methods used for collecting various types of data from
|
28
|
+
# different first party and third party sources and push it to Hub's collect
|
29
|
+
# layer.
|
30
|
+
class Service
|
31
|
+
|
32
|
+
include ::GRPC::GenericService
|
33
|
+
|
34
|
+
self.marshal_class_method = :encode
|
35
|
+
self.unmarshal_class_method = :decode
|
36
|
+
self.service_name = 'google.cloud.apihub.v1.ApiHubCollect'
|
37
|
+
|
38
|
+
# Collect API data from a source and push it to Hub's collect layer.
|
39
|
+
rpc :CollectApiData, ::Google::Cloud::ApiHub::V1::CollectApiDataRequest, ::Google::Longrunning::Operation
|
40
|
+
end
|
41
|
+
|
42
|
+
Stub = Service.rpc_stub_class
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|