google-cloud-api_hub-v1 0.a → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +144 -8
- data/lib/google/cloud/api_hub/v1/api_hub/client.rb +4514 -0
- data/lib/google/cloud/api_hub/v1/api_hub/credentials.rb +47 -0
- data/lib/google/cloud/api_hub/v1/api_hub/paths.rb +216 -0
- data/lib/google/cloud/api_hub/v1/api_hub/rest/client.rb +4251 -0
- data/lib/google/cloud/api_hub/v1/api_hub/rest/service_stub.rb +2147 -0
- data/lib/google/cloud/api_hub/v1/api_hub/rest.rb +53 -0
- data/lib/google/cloud/api_hub/v1/api_hub.rb +55 -0
- data/lib/google/cloud/api_hub/v1/api_hub_dependencies/client.rb +906 -0
- data/lib/google/cloud/api_hub/v1/api_hub_dependencies/credentials.rb +47 -0
- data/lib/google/cloud/api_hub/v1/api_hub_dependencies/paths.rb +88 -0
- data/lib/google/cloud/api_hub/v1/api_hub_dependencies/rest/client.rb +853 -0
- data/lib/google/cloud/api_hub/v1/api_hub_dependencies/rest/service_stub.rb +366 -0
- data/lib/google/cloud/api_hub/v1/api_hub_dependencies/rest.rb +54 -0
- data/lib/google/cloud/api_hub/v1/api_hub_dependencies.rb +56 -0
- data/lib/google/cloud/api_hub/v1/api_hub_plugin/client.rb +640 -0
- data/lib/google/cloud/api_hub/v1/api_hub_plugin/credentials.rb +47 -0
- data/lib/google/cloud/api_hub/v1/api_hub_plugin/paths.rb +52 -0
- data/lib/google/cloud/api_hub/v1/api_hub_plugin/rest/client.rb +601 -0
- data/lib/google/cloud/api_hub/v1/api_hub_plugin/rest/service_stub.rb +248 -0
- data/lib/google/cloud/api_hub/v1/api_hub_plugin/rest.rb +53 -0
- data/lib/google/cloud/api_hub/v1/api_hub_plugin.rb +55 -0
- data/lib/google/cloud/api_hub/v1/bindings_override.rb +102 -0
- data/lib/google/cloud/api_hub/v1/host_project_registration_service/client.rb +689 -0
- data/lib/google/cloud/api_hub/v1/host_project_registration_service/credentials.rb +47 -0
- data/lib/google/cloud/api_hub/v1/host_project_registration_service/paths.rb +83 -0
- data/lib/google/cloud/api_hub/v1/host_project_registration_service/rest/client.rb +650 -0
- data/lib/google/cloud/api_hub/v1/host_project_registration_service/rest/service_stub.rb +247 -0
- data/lib/google/cloud/api_hub/v1/host_project_registration_service/rest.rb +53 -0
- data/lib/google/cloud/api_hub/v1/host_project_registration_service.rb +55 -0
- data/lib/google/cloud/api_hub/v1/linting_service/client.rb +744 -0
- data/lib/google/cloud/api_hub/v1/linting_service/credentials.rb +47 -0
- data/lib/google/cloud/api_hub/v1/linting_service/paths.rb +75 -0
- data/lib/google/cloud/api_hub/v1/linting_service/rest/client.rb +698 -0
- data/lib/google/cloud/api_hub/v1/linting_service/rest/service_stub.rb +307 -0
- data/lib/google/cloud/api_hub/v1/linting_service/rest.rb +53 -0
- data/lib/google/cloud/api_hub/v1/linting_service.rb +55 -0
- data/lib/google/cloud/api_hub/v1/provisioning/client.rb +676 -0
- data/lib/google/cloud/api_hub/v1/provisioning/credentials.rb +47 -0
- data/lib/google/cloud/api_hub/v1/provisioning/operations.rb +809 -0
- data/lib/google/cloud/api_hub/v1/provisioning/paths.rb +69 -0
- data/lib/google/cloud/api_hub/v1/provisioning/rest/client.rb +637 -0
- data/lib/google/cloud/api_hub/v1/provisioning/rest/operations.rb +902 -0
- data/lib/google/cloud/api_hub/v1/provisioning/rest/service_stub.rb +247 -0
- data/lib/google/cloud/api_hub/v1/provisioning/rest.rb +54 -0
- data/lib/google/cloud/api_hub/v1/provisioning.rb +56 -0
- data/lib/google/cloud/api_hub/v1/rest.rb +44 -0
- data/lib/google/cloud/api_hub/v1/runtime_project_attachment_service/client.rb +885 -0
- data/lib/google/cloud/api_hub/v1/runtime_project_attachment_service/credentials.rb +47 -0
- data/lib/google/cloud/api_hub/v1/runtime_project_attachment_service/paths.rb +83 -0
- data/lib/google/cloud/api_hub/v1/runtime_project_attachment_service/rest/client.rb +832 -0
- data/lib/google/cloud/api_hub/v1/runtime_project_attachment_service/rest/service_stub.rb +365 -0
- data/lib/google/cloud/api_hub/v1/runtime_project_attachment_service/rest.rb +53 -0
- data/lib/google/cloud/api_hub/v1/runtime_project_attachment_service.rb +55 -0
- data/lib/google/cloud/api_hub/v1/version.rb +7 -2
- data/lib/google/cloud/api_hub/v1.rb +51 -0
- data/lib/google/cloud/apihub/v1/apihub_service_pb.rb +102 -0
- data/lib/google/cloud/apihub/v1/apihub_service_services_pb.rb +288 -0
- data/lib/google/cloud/apihub/v1/common_fields_pb.rb +92 -0
- data/lib/google/cloud/apihub/v1/host_project_registration_service_pb.rb +53 -0
- data/lib/google/cloud/apihub/v1/host_project_registration_service_services_pb.rb +53 -0
- data/lib/google/cloud/apihub/v1/linting_service_pb.rb +56 -0
- data/lib/google/cloud/apihub/v1/linting_service_services_pb.rb +53 -0
- data/lib/google/cloud/apihub/v1/plugin_service_pb.rb +53 -0
- data/lib/google/cloud/apihub/v1/plugin_service_services_pb.rb +51 -0
- data/lib/google/cloud/apihub/v1/provisioning_service_pb.rb +53 -0
- data/lib/google/cloud/apihub/v1/provisioning_service_services_pb.rb +50 -0
- data/lib/google/cloud/apihub/v1/runtime_project_attachment_service_pb.rb +57 -0
- data/lib/google/cloud/apihub/v1/runtime_project_attachment_service_services_pb.rb +55 -0
- data/lib/google-cloud-api_hub-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +403 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +227 -0
- data/proto_docs/google/cloud/apihub/v1/apihub_service.rb +1317 -0
- data/proto_docs/google/cloud/apihub/v1/common_fields.rb +1296 -0
- data/proto_docs/google/cloud/apihub/v1/host_project_registration_service.rb +146 -0
- data/proto_docs/google/cloud/apihub/v1/linting_service.rb +103 -0
- data/proto_docs/google/cloud/apihub/v1/plugin_service.rb +104 -0
- data/proto_docs/google/cloud/apihub/v1/provisioning_service.rb +87 -0
- data/proto_docs/google/cloud/apihub/v1/runtime_project_attachment_service.rb +182 -0
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +145 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +127 -0
- data/proto_docs/google/rpc/status.rb +48 -0
- metadata +155 -10
@@ -0,0 +1,53 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/cloud/apihub/v1/host_project_registration_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/protobuf/timestamp_pb'
|
12
|
+
|
13
|
+
|
14
|
+
descriptor_data = "\n>google/cloud/apihub/v1/host_project_registration_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\x1fgoogle/protobuf/timestamp.proto\"\xf1\x01\n$CreateHostProjectRegistrationRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-apihub.googleapis.com/HostProjectRegistration\x12)\n\x1chost_project_registration_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12W\n\x19host_project_registration\x18\x03 \x01(\x0b\x32/.google.cloud.apihub.v1.HostProjectRegistrationB\x03\xe0\x41\x02\"h\n!GetHostProjectRegistrationRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-apihub.googleapis.com/HostProjectRegistration\"\xc9\x01\n#ListHostProjectRegistrationsRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-apihub.googleapis.com/HostProjectRegistration\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\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x94\x01\n$ListHostProjectRegistrationsResponse\x12S\n\x1ahost_project_registrations\x18\x01 \x03(\x0b\x32/.google.cloud.apihub.v1.HostProjectRegistration\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xf6\x02\n\x17HostProjectRegistration\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12K\n\x0bgcp_project\x18\x02 \x01(\tB6\xe0\x41\x02\xe0\x41\x05\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03:\xc4\x01\xea\x41\xc0\x01\n-apihub.googleapis.com/HostProjectRegistration\x12\\projects/{project}/locations/{location}/hostProjectRegistrations/{host_project_registration}*\x18hostProjectRegistrations2\x17hostProjectRegistration2\xe1\x06\n\x1eHostProjectRegistrationService\x12\xb0\x02\n\x1d\x43reateHostProjectRegistration\x12<.google.cloud.apihub.v1.CreateHostProjectRegistrationRequest\x1a/.google.cloud.apihub.v1.HostProjectRegistration\"\x9f\x01\xda\x41=parent,host_project_registration,host_project_registration_id\x82\xd3\xe4\x93\x02Y\"</v1/{parent=projects/*/locations/*}/hostProjectRegistrations:\x19host_project_registration\x12\xd5\x01\n\x1aGetHostProjectRegistration\x12\x39.google.cloud.apihub.v1.GetHostProjectRegistrationRequest\x1a/.google.cloud.apihub.v1.HostProjectRegistration\"K\xda\x41\x04name\x82\xd3\xe4\x93\x02>\x12</v1/{name=projects/*/locations/*/hostProjectRegistrations/*}\x12\xe8\x01\n\x1cListHostProjectRegistrations\x12;.google.cloud.apihub.v1.ListHostProjectRegistrationsRequest\x1a<.google.cloud.apihub.v1.ListHostProjectRegistrationsResponse\"M\xda\x41\x06parent\x82\xd3\xe4\x93\x02>\x12</v1/{parent=projects/*/locations/*}/hostProjectRegistrations\x1aI\xca\x41\x15\x61pihub.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xc5\x01\n\x1a\x63om.google.cloud.apihub.v1B#HostProjectRegistrationServiceProtoP\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"
|
15
|
+
|
16
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
17
|
+
|
18
|
+
begin
|
19
|
+
pool.add_serialized_file(descriptor_data)
|
20
|
+
rescue TypeError
|
21
|
+
# Compatibility code: will be removed in the next major version.
|
22
|
+
require 'google/protobuf/descriptor_pb'
|
23
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
24
|
+
parsed.clear_dependency
|
25
|
+
serialized = parsed.class.encode(parsed)
|
26
|
+
file = pool.add_serialized_file(serialized)
|
27
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
28
|
+
imports = [
|
29
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
30
|
+
]
|
31
|
+
imports.each do |type_name, expected_filename|
|
32
|
+
import_file = pool.lookup(type_name).file_descriptor
|
33
|
+
if import_file.name != expected_filename
|
34
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
35
|
+
end
|
36
|
+
end
|
37
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
38
|
+
warn "This will become an error in the next major version."
|
39
|
+
end
|
40
|
+
|
41
|
+
module Google
|
42
|
+
module Cloud
|
43
|
+
module ApiHub
|
44
|
+
module V1
|
45
|
+
CreateHostProjectRegistrationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.CreateHostProjectRegistrationRequest").msgclass
|
46
|
+
GetHostProjectRegistrationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.GetHostProjectRegistrationRequest").msgclass
|
47
|
+
ListHostProjectRegistrationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.ListHostProjectRegistrationsRequest").msgclass
|
48
|
+
ListHostProjectRegistrationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.ListHostProjectRegistrationsResponse").msgclass
|
49
|
+
HostProjectRegistration = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.HostProjectRegistration").msgclass
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/apihub/v1/host_project_registration_service.proto for package 'Google.Cloud.ApiHub.V1'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2024 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/host_project_registration_service_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module ApiHub
|
25
|
+
module V1
|
26
|
+
module HostProjectRegistrationService
|
27
|
+
# This service is used for managing the host project registrations.
|
28
|
+
class Service
|
29
|
+
|
30
|
+
include ::GRPC::GenericService
|
31
|
+
|
32
|
+
self.marshal_class_method = :encode
|
33
|
+
self.unmarshal_class_method = :decode
|
34
|
+
self.service_name = 'google.cloud.apihub.v1.HostProjectRegistrationService'
|
35
|
+
|
36
|
+
# Create a host project registration.
|
37
|
+
# A Google cloud project can be registered as a host project if it is not
|
38
|
+
# attached as a runtime project to another host project.
|
39
|
+
# A project can be registered as a host project only once. Subsequent
|
40
|
+
# register calls for the same project will fail.
|
41
|
+
rpc :CreateHostProjectRegistration, ::Google::Cloud::ApiHub::V1::CreateHostProjectRegistrationRequest, ::Google::Cloud::ApiHub::V1::HostProjectRegistration
|
42
|
+
# Get a host project registration.
|
43
|
+
rpc :GetHostProjectRegistration, ::Google::Cloud::ApiHub::V1::GetHostProjectRegistrationRequest, ::Google::Cloud::ApiHub::V1::HostProjectRegistration
|
44
|
+
# Lists host project registrations.
|
45
|
+
rpc :ListHostProjectRegistrations, ::Google::Cloud::ApiHub::V1::ListHostProjectRegistrationsRequest, ::Google::Cloud::ApiHub::V1::ListHostProjectRegistrationsResponse
|
46
|
+
end
|
47
|
+
|
48
|
+
Stub = Service.rpc_stub_class
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,56 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/cloud/apihub/v1/linting_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/protobuf/empty_pb'
|
13
|
+
require 'google/protobuf/field_mask_pb'
|
14
|
+
|
15
|
+
|
16
|
+
descriptor_data = "\n,google/cloud/apihub/v1/linting_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\"N\n\x14GetStyleGuideRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n apihub.googleapis.com/StyleGuide\"\x8d\x01\n\x17UpdateStyleGuideRequest\x12<\n\x0bstyle_guide\x18\x01 \x01(\x0b\x32\".google.cloud.apihub.v1.StyleGuideB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"V\n\x1cGetStyleGuideContentsRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n apihub.googleapis.com/StyleGuide\"C\n\x0fLintSpecRequest\x12\x30\n\x04name\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\n\x1a\x61pihub.googleapis.com/Spec\"C\n\x12StyleGuideContents\x12\x15\n\x08\x63ontents\x18\x01 \x01(\x0c\x42\x03\xe0\x41\x02\x12\x16\n\tmime_type\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\xa1\x02\n\nStyleGuide\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x33\n\x06linter\x18\x02 \x01(\x0e\x32\x1e.google.cloud.apihub.v1.LinterB\x03\xe0\x41\x02\x12\x44\n\x08\x63ontents\x18\x03 \x01(\x0b\x32*.google.cloud.apihub.v1.StyleGuideContentsB\x06\xe0\x41\x02\xe0\x41\x04:\x84\x01\xea\x41\x80\x01\n apihub.googleapis.com/StyleGuide\x12\x43projects/{project}/locations/{location}/plugins/{plugin}/styleGuide*\x0bstyleGuides2\nstyleGuide2\xca\x06\n\x0eLintingService\x12\xa8\x01\n\rGetStyleGuide\x12,.google.cloud.apihub.v1.GetStyleGuideRequest\x1a\".google.cloud.apihub.v1.StyleGuide\"E\xda\x41\x04name\x82\xd3\xe4\x93\x02\x38\x12\x36/v1/{name=projects/*/locations/*/plugins/*/styleGuide}\x12\xda\x01\n\x10UpdateStyleGuide\x12/.google.cloud.apihub.v1.UpdateStyleGuideRequest\x1a\".google.cloud.apihub.v1.StyleGuide\"q\xda\x41\x17style_guide,update_mask\x82\xd3\xe4\x93\x02Q2B/v1/{style_guide.name=projects/*/locations/*/plugins/*/styleGuide}:\x0bstyle_guide\x12\xc9\x01\n\x15GetStyleGuideContents\x12\x34.google.cloud.apihub.v1.GetStyleGuideContentsRequest\x1a*.google.cloud.apihub.v1.StyleGuideContents\"N\xda\x41\x04name\x82\xd3\xe4\x93\x02\x41\x12?/v1/{name=projects/*/locations/*/plugins/*/styleGuide}:contents\x12\x98\x01\n\x08LintSpec\x12\'.google.cloud.apihub.v1.LintSpecRequest\x1a\x16.google.protobuf.Empty\"K\x82\xd3\xe4\x93\x02\x45\"@/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*}:lint:\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\x13LintingServiceProtoP\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.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
32
|
+
]
|
33
|
+
imports.each do |type_name, expected_filename|
|
34
|
+
import_file = pool.lookup(type_name).file_descriptor
|
35
|
+
if import_file.name != expected_filename
|
36
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
37
|
+
end
|
38
|
+
end
|
39
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
40
|
+
warn "This will become an error in the next major version."
|
41
|
+
end
|
42
|
+
|
43
|
+
module Google
|
44
|
+
module Cloud
|
45
|
+
module ApiHub
|
46
|
+
module V1
|
47
|
+
GetStyleGuideRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.GetStyleGuideRequest").msgclass
|
48
|
+
UpdateStyleGuideRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.UpdateStyleGuideRequest").msgclass
|
49
|
+
GetStyleGuideContentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.GetStyleGuideContentsRequest").msgclass
|
50
|
+
LintSpecRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.LintSpecRequest").msgclass
|
51
|
+
StyleGuideContents = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.StyleGuideContents").msgclass
|
52
|
+
StyleGuide = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.StyleGuide").msgclass
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/apihub/v1/linting_service.proto for package 'Google.Cloud.ApiHub.V1'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2024 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/linting_service_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module ApiHub
|
25
|
+
module V1
|
26
|
+
module LintingService
|
27
|
+
# This service provides all methods related to the 1p Linter.
|
28
|
+
class Service
|
29
|
+
|
30
|
+
include ::GRPC::GenericService
|
31
|
+
|
32
|
+
self.marshal_class_method = :encode
|
33
|
+
self.unmarshal_class_method = :decode
|
34
|
+
self.service_name = 'google.cloud.apihub.v1.LintingService'
|
35
|
+
|
36
|
+
# Get the style guide being used for linting.
|
37
|
+
rpc :GetStyleGuide, ::Google::Cloud::ApiHub::V1::GetStyleGuideRequest, ::Google::Cloud::ApiHub::V1::StyleGuide
|
38
|
+
# Update the styleGuide to be used for liniting in by API hub.
|
39
|
+
rpc :UpdateStyleGuide, ::Google::Cloud::ApiHub::V1::UpdateStyleGuideRequest, ::Google::Cloud::ApiHub::V1::StyleGuide
|
40
|
+
# Get the contents of the style guide.
|
41
|
+
rpc :GetStyleGuideContents, ::Google::Cloud::ApiHub::V1::GetStyleGuideContentsRequest, ::Google::Cloud::ApiHub::V1::StyleGuideContents
|
42
|
+
# Lints the requested spec and updates the corresponding API Spec with the
|
43
|
+
# lint response. This lint response will be available in all subsequent
|
44
|
+
# Get and List Spec calls to Core service.
|
45
|
+
rpc :LintSpec, ::Google::Cloud::ApiHub::V1::LintSpecRequest, ::Google::Protobuf::Empty
|
46
|
+
end
|
47
|
+
|
48
|
+
Stub = Service.rpc_stub_class
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/cloud/apihub/v1/plugin_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
|
+
|
13
|
+
|
14
|
+
descriptor_data = "\n+google/cloud/apihub/v1/plugin_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\"\xef\x02\n\x06Plugin\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12:\n\x04type\x18\x03 \x01(\x0b\x32\'.google.cloud.apihub.v1.AttributeValuesB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x38\n\x05state\x18\x05 \x01(\x0e\x32$.google.cloud.apihub.v1.Plugin.StateB\x03\xe0\x41\x03\"9\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\x0c\n\x08\x44ISABLED\x10\x02:l\xea\x41i\n\x1c\x61pihub.googleapis.com/Plugin\x12\x38projects/{project}/locations/{location}/plugins/{plugin}*\x07plugins2\x06plugin\"F\n\x10GetPluginRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x61pihub.googleapis.com/Plugin\"I\n\x13\x45nablePluginRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x61pihub.googleapis.com/Plugin\"J\n\x14\x44isablePluginRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1c\x61pihub.googleapis.com/Plugin2\xb8\x04\n\x0c\x41piHubPlugin\x12\x91\x01\n\tGetPlugin\x12(.google.cloud.apihub.v1.GetPluginRequest\x1a\x1e.google.cloud.apihub.v1.Plugin\":\xda\x41\x04name\x82\xd3\xe4\x93\x02-\x12+/v1/{name=projects/*/locations/*/plugins/*}\x12\xa1\x01\n\x0c\x45nablePlugin\x12+.google.cloud.apihub.v1.EnablePluginRequest\x1a\x1e.google.cloud.apihub.v1.Plugin\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37\"2/v1/{name=projects/*/locations/*/plugins/*}:enable:\x01*\x12\xa4\x01\n\rDisablePlugin\x12,.google.cloud.apihub.v1.DisablePluginRequest\x1a\x1e.google.cloud.apihub.v1.Plugin\"E\xda\x41\x04name\x82\xd3\xe4\x93\x02\x38\"3/v1/{name=projects/*/locations/*/plugins/*}:disable:\x01*\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\x12PluginServiceProtoP\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"
|
15
|
+
|
16
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
17
|
+
|
18
|
+
begin
|
19
|
+
pool.add_serialized_file(descriptor_data)
|
20
|
+
rescue TypeError
|
21
|
+
# Compatibility code: will be removed in the next major version.
|
22
|
+
require 'google/protobuf/descriptor_pb'
|
23
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
24
|
+
parsed.clear_dependency
|
25
|
+
serialized = parsed.class.encode(parsed)
|
26
|
+
file = pool.add_serialized_file(serialized)
|
27
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
28
|
+
imports = [
|
29
|
+
["google.cloud.apihub.v1.AttributeValues", "google/cloud/apihub/v1/common_fields.proto"],
|
30
|
+
]
|
31
|
+
imports.each do |type_name, expected_filename|
|
32
|
+
import_file = pool.lookup(type_name).file_descriptor
|
33
|
+
if import_file.name != expected_filename
|
34
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
35
|
+
end
|
36
|
+
end
|
37
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
38
|
+
warn "This will become an error in the next major version."
|
39
|
+
end
|
40
|
+
|
41
|
+
module Google
|
42
|
+
module Cloud
|
43
|
+
module ApiHub
|
44
|
+
module V1
|
45
|
+
Plugin = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.Plugin").msgclass
|
46
|
+
Plugin::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.Plugin.State").enummodule
|
47
|
+
GetPluginRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.GetPluginRequest").msgclass
|
48
|
+
EnablePluginRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.EnablePluginRequest").msgclass
|
49
|
+
DisablePluginRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.DisablePluginRequest").msgclass
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/apihub/v1/plugin_service.proto for package 'Google.Cloud.ApiHub.V1'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2024 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/plugin_service_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module ApiHub
|
25
|
+
module V1
|
26
|
+
module ApiHubPlugin
|
27
|
+
# This service is used for managing plugins inside the API Hub.
|
28
|
+
class Service
|
29
|
+
|
30
|
+
include ::GRPC::GenericService
|
31
|
+
|
32
|
+
self.marshal_class_method = :encode
|
33
|
+
self.unmarshal_class_method = :decode
|
34
|
+
self.service_name = 'google.cloud.apihub.v1.ApiHubPlugin'
|
35
|
+
|
36
|
+
# Get details about an API Hub plugin.
|
37
|
+
rpc :GetPlugin, ::Google::Cloud::ApiHub::V1::GetPluginRequest, ::Google::Cloud::ApiHub::V1::Plugin
|
38
|
+
# Enables a plugin.
|
39
|
+
# The `state` of the plugin after enabling is `ENABLED`
|
40
|
+
rpc :EnablePlugin, ::Google::Cloud::ApiHub::V1::EnablePluginRequest, ::Google::Cloud::ApiHub::V1::Plugin
|
41
|
+
# Disables a plugin.
|
42
|
+
# The `state` of the plugin after disabling is `DISABLED`
|
43
|
+
rpc :DisablePlugin, ::Google::Cloud::ApiHub::V1::DisablePluginRequest, ::Google::Cloud::ApiHub::V1::Plugin
|
44
|
+
end
|
45
|
+
|
46
|
+
Stub = Service.rpc_stub_class
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/cloud/apihub/v1/provisioning_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
|
+
|
14
|
+
|
15
|
+
descriptor_data = "\n1google/cloud/apihub/v1/provisioning_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\"\xc1\x01\n\x1b\x43reateApiHubInstanceRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12 \n\x13\x61pi_hub_instance_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x45\n\x10\x61pi_hub_instance\x18\x03 \x01(\x0b\x32&.google.cloud.apihub.v1.ApiHubInstanceB\x03\xe0\x41\x02\"V\n\x18GetApiHubInstanceRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$apihub.googleapis.com/ApiHubInstance\"[\n\x1bLookupApiHubInstanceRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$apihub.googleapis.com/ApiHubInstance\"`\n\x1cLookupApiHubInstanceResponse\x12@\n\x10\x61pi_hub_instance\x18\x01 \x01(\x0b\x32&.google.cloud.apihub.v1.ApiHubInstance2\xef\x05\n\x0cProvisioning\x12\x8e\x02\n\x14\x43reateApiHubInstance\x12\x33.google.cloud.apihub.v1.CreateApiHubInstanceRequest\x1a\x1d.google.longrunning.Operation\"\xa1\x01\xca\x41#\n\x0e\x41piHubInstance\x12\x11OperationMetadata\xda\x41+parent,api_hub_instance,api_hub_instance_id\x82\xd3\xe4\x93\x02G\"3/v1/{parent=projects/*/locations/*}/apiHubInstances:\x10\x61pi_hub_instance\x12\xb1\x01\n\x11GetApiHubInstance\x12\x30.google.cloud.apihub.v1.GetApiHubInstanceRequest\x1a&.google.cloud.apihub.v1.ApiHubInstance\"B\xda\x41\x04name\x82\xd3\xe4\x93\x02\x35\x12\x33/v1/{name=projects/*/locations/*/apiHubInstances/*}\x12\xce\x01\n\x14LookupApiHubInstance\x12\x33.google.cloud.apihub.v1.LookupApiHubInstanceRequest\x1a\x34.google.cloud.apihub.v1.LookupApiHubInstanceResponse\"K\xda\x41\x06parent\x82\xd3\xe4\x93\x02<\x12:/v1/{parent=projects/*/locations/*}/apiHubInstances:lookup\x1aI\xca\x41\x15\x61pihub.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xba\x01\n\x1a\x63om.google.cloud.apihub.v1B\x18ProvisioningServiceProtoP\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
|
+
|
17
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
18
|
+
|
19
|
+
begin
|
20
|
+
pool.add_serialized_file(descriptor_data)
|
21
|
+
rescue TypeError
|
22
|
+
# Compatibility code: will be removed in the next major version.
|
23
|
+
require 'google/protobuf/descriptor_pb'
|
24
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
25
|
+
parsed.clear_dependency
|
26
|
+
serialized = parsed.class.encode(parsed)
|
27
|
+
file = pool.add_serialized_file(serialized)
|
28
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
29
|
+
imports = [
|
30
|
+
["google.cloud.apihub.v1.ApiHubInstance", "google/cloud/apihub/v1/common_fields.proto"],
|
31
|
+
]
|
32
|
+
imports.each do |type_name, expected_filename|
|
33
|
+
import_file = pool.lookup(type_name).file_descriptor
|
34
|
+
if import_file.name != expected_filename
|
35
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
36
|
+
end
|
37
|
+
end
|
38
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
39
|
+
warn "This will become an error in the next major version."
|
40
|
+
end
|
41
|
+
|
42
|
+
module Google
|
43
|
+
module Cloud
|
44
|
+
module ApiHub
|
45
|
+
module V1
|
46
|
+
CreateApiHubInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.CreateApiHubInstanceRequest").msgclass
|
47
|
+
GetApiHubInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.GetApiHubInstanceRequest").msgclass
|
48
|
+
LookupApiHubInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.LookupApiHubInstanceRequest").msgclass
|
49
|
+
LookupApiHubInstanceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.LookupApiHubInstanceResponse").msgclass
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/apihub/v1/provisioning_service.proto for package 'Google.Cloud.ApiHub.V1'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2024 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/provisioning_service_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module ApiHub
|
25
|
+
module V1
|
26
|
+
module Provisioning
|
27
|
+
# This service is used for managing the data plane provisioning of the API hub.
|
28
|
+
class Service
|
29
|
+
|
30
|
+
include ::GRPC::GenericService
|
31
|
+
|
32
|
+
self.marshal_class_method = :encode
|
33
|
+
self.unmarshal_class_method = :decode
|
34
|
+
self.service_name = 'google.cloud.apihub.v1.Provisioning'
|
35
|
+
|
36
|
+
# Provisions instance resources for the API Hub.
|
37
|
+
rpc :CreateApiHubInstance, ::Google::Cloud::ApiHub::V1::CreateApiHubInstanceRequest, ::Google::Longrunning::Operation
|
38
|
+
# Gets details of a single API Hub instance.
|
39
|
+
rpc :GetApiHubInstance, ::Google::Cloud::ApiHub::V1::GetApiHubInstanceRequest, ::Google::Cloud::ApiHub::V1::ApiHubInstance
|
40
|
+
# Looks up an Api Hub instance in a given GCP project. There will always be
|
41
|
+
# only one Api Hub instance for a GCP project across all locations.
|
42
|
+
rpc :LookupApiHubInstance, ::Google::Cloud::ApiHub::V1::LookupApiHubInstanceRequest, ::Google::Cloud::ApiHub::V1::LookupApiHubInstanceResponse
|
43
|
+
end
|
44
|
+
|
45
|
+
Stub = Service.rpc_stub_class
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/cloud/apihub/v1/runtime_project_attachment_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/protobuf/empty_pb'
|
12
|
+
require 'google/protobuf/timestamp_pb'
|
13
|
+
|
14
|
+
|
15
|
+
descriptor_data = "\n?google/cloud/apihub/v1/runtime_project_attachment_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\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf6\x01\n%CreateRuntimeProjectAttachmentRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\x12.apihub.googleapis.com/RuntimeProjectAttachment\x12*\n\x1druntime_project_attachment_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12Y\n\x1aruntime_project_attachment\x18\x03 \x01(\x0b\x32\x30.google.cloud.apihub.v1.RuntimeProjectAttachmentB\x03\xe0\x41\x02\"j\n\"GetRuntimeProjectAttachmentRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.apihub.googleapis.com/RuntimeProjectAttachment\"\xcb\x01\n$ListRuntimeProjectAttachmentsRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\x12.apihub.googleapis.com/RuntimeProjectAttachment\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\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x97\x01\n%ListRuntimeProjectAttachmentsResponse\x12U\n\x1bruntime_project_attachments\x18\x01 \x03(\x0b\x32\x30.google.cloud.apihub.v1.RuntimeProjectAttachment\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"m\n%DeleteRuntimeProjectAttachmentRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.apihub.googleapis.com/RuntimeProjectAttachment\"`\n%LookupRuntimeProjectAttachmentRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\"~\n&LookupRuntimeProjectAttachmentResponse\x12T\n\x1aruntime_project_attachment\x18\x01 \x01(\x0b\x32\x30.google.cloud.apihub.v1.RuntimeProjectAttachment\"\x80\x03\n\x18RuntimeProjectAttachment\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12O\n\x0fruntime_project\x18\x02 \x01(\tB6\xe0\x41\x02\xe0\x41\x05\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03:\xc9\x01\xea\x41\xc5\x01\n.apihub.googleapis.com/RuntimeProjectAttachment\x12^projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}*\x19runtimeProjectAttachments2\x18runtimeProjectAttachment2\xac\n\n\x1fRuntimeProjectAttachmentService\x12\xb7\x02\n\x1e\x43reateRuntimeProjectAttachment\x12=.google.cloud.apihub.v1.CreateRuntimeProjectAttachmentRequest\x1a\x30.google.cloud.apihub.v1.RuntimeProjectAttachment\"\xa3\x01\xda\x41?parent,runtime_project_attachment,runtime_project_attachment_id\x82\xd3\xe4\x93\x02[\"=/v1/{parent=projects/*/locations/*}/runtimeProjectAttachments:\x1aruntime_project_attachment\x12\xd9\x01\n\x1bGetRuntimeProjectAttachment\x12:.google.cloud.apihub.v1.GetRuntimeProjectAttachmentRequest\x1a\x30.google.cloud.apihub.v1.RuntimeProjectAttachment\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?\x12=/v1/{name=projects/*/locations/*/runtimeProjectAttachments/*}\x12\xec\x01\n\x1dListRuntimeProjectAttachments\x12<.google.cloud.apihub.v1.ListRuntimeProjectAttachmentsRequest\x1a=.google.cloud.apihub.v1.ListRuntimeProjectAttachmentsResponse\"N\xda\x41\x06parent\x82\xd3\xe4\x93\x02?\x12=/v1/{parent=projects/*/locations/*}/runtimeProjectAttachments\x12\xc5\x01\n\x1e\x44\x65leteRuntimeProjectAttachment\x12=.google.cloud.apihub.v1.DeleteRuntimeProjectAttachmentRequest\x1a\x16.google.protobuf.Empty\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?*=/v1/{name=projects/*/locations/*/runtimeProjectAttachments/*}\x12\xf0\x01\n\x1eLookupRuntimeProjectAttachment\x12=.google.cloud.apihub.v1.LookupRuntimeProjectAttachmentRequest\x1a>.google.cloud.apihub.v1.LookupRuntimeProjectAttachmentResponse\"O\xda\x41\x04name\x82\xd3\xe4\x93\x02\x42\x12@/v1/{name=projects/*/locations/*}:lookupRuntimeProjectAttachment\x1aI\xca\x41\x15\x61pihub.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xc6\x01\n\x1a\x63om.google.cloud.apihub.v1B$RuntimeProjectAttachmentServiceProtoP\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
|
+
|
17
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
18
|
+
|
19
|
+
begin
|
20
|
+
pool.add_serialized_file(descriptor_data)
|
21
|
+
rescue TypeError
|
22
|
+
# Compatibility code: will be removed in the next major version.
|
23
|
+
require 'google/protobuf/descriptor_pb'
|
24
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
25
|
+
parsed.clear_dependency
|
26
|
+
serialized = parsed.class.encode(parsed)
|
27
|
+
file = pool.add_serialized_file(serialized)
|
28
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
29
|
+
imports = [
|
30
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
31
|
+
]
|
32
|
+
imports.each do |type_name, expected_filename|
|
33
|
+
import_file = pool.lookup(type_name).file_descriptor
|
34
|
+
if import_file.name != expected_filename
|
35
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
36
|
+
end
|
37
|
+
end
|
38
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
39
|
+
warn "This will become an error in the next major version."
|
40
|
+
end
|
41
|
+
|
42
|
+
module Google
|
43
|
+
module Cloud
|
44
|
+
module ApiHub
|
45
|
+
module V1
|
46
|
+
CreateRuntimeProjectAttachmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.CreateRuntimeProjectAttachmentRequest").msgclass
|
47
|
+
GetRuntimeProjectAttachmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.GetRuntimeProjectAttachmentRequest").msgclass
|
48
|
+
ListRuntimeProjectAttachmentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.ListRuntimeProjectAttachmentsRequest").msgclass
|
49
|
+
ListRuntimeProjectAttachmentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.ListRuntimeProjectAttachmentsResponse").msgclass
|
50
|
+
DeleteRuntimeProjectAttachmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.DeleteRuntimeProjectAttachmentRequest").msgclass
|
51
|
+
LookupRuntimeProjectAttachmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.LookupRuntimeProjectAttachmentRequest").msgclass
|
52
|
+
LookupRuntimeProjectAttachmentResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.LookupRuntimeProjectAttachmentResponse").msgclass
|
53
|
+
RuntimeProjectAttachment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.RuntimeProjectAttachment").msgclass
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,55 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/apihub/v1/runtime_project_attachment_service.proto for package 'Google.Cloud.ApiHub.V1'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2024 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/runtime_project_attachment_service_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module ApiHub
|
25
|
+
module V1
|
26
|
+
module RuntimeProjectAttachmentService
|
27
|
+
# This service is used for managing the runtime project attachments.
|
28
|
+
class Service
|
29
|
+
|
30
|
+
include ::GRPC::GenericService
|
31
|
+
|
32
|
+
self.marshal_class_method = :encode
|
33
|
+
self.unmarshal_class_method = :decode
|
34
|
+
self.service_name = 'google.cloud.apihub.v1.RuntimeProjectAttachmentService'
|
35
|
+
|
36
|
+
# Attaches a runtime project to the host project.
|
37
|
+
rpc :CreateRuntimeProjectAttachment, ::Google::Cloud::ApiHub::V1::CreateRuntimeProjectAttachmentRequest, ::Google::Cloud::ApiHub::V1::RuntimeProjectAttachment
|
38
|
+
# Gets a runtime project attachment.
|
39
|
+
rpc :GetRuntimeProjectAttachment, ::Google::Cloud::ApiHub::V1::GetRuntimeProjectAttachmentRequest, ::Google::Cloud::ApiHub::V1::RuntimeProjectAttachment
|
40
|
+
# List runtime projects attached to the host project.
|
41
|
+
rpc :ListRuntimeProjectAttachments, ::Google::Cloud::ApiHub::V1::ListRuntimeProjectAttachmentsRequest, ::Google::Cloud::ApiHub::V1::ListRuntimeProjectAttachmentsResponse
|
42
|
+
# Delete a runtime project attachment in the API Hub. This call will detach
|
43
|
+
# the runtime project from the host project.
|
44
|
+
rpc :DeleteRuntimeProjectAttachment, ::Google::Cloud::ApiHub::V1::DeleteRuntimeProjectAttachmentRequest, ::Google::Protobuf::Empty
|
45
|
+
# Look up a runtime project attachment. This API can be called in the context
|
46
|
+
# of any project.
|
47
|
+
rpc :LookupRuntimeProjectAttachment, ::Google::Cloud::ApiHub::V1::LookupRuntimeProjectAttachmentRequest, ::Google::Cloud::ApiHub::V1::LookupRuntimeProjectAttachmentResponse
|
48
|
+
end
|
49
|
+
|
50
|
+
Stub = Service.rpc_stub_class
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
@@ -0,0 +1,21 @@
|
|
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
|
+
# This gem does not autoload during Bundler.require. To load this gem,
|
20
|
+
# issue explicit require statements for the packages desired, e.g.:
|
21
|
+
# require "google/cloud/api_hub/v1"
|