google-cloud-app_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/app_hub/v1/app_hub/client.rb +3396 -0
- data/lib/google/cloud/app_hub/v1/app_hub/credentials.rb +47 -0
- data/lib/google/cloud/app_hub/v1/app_hub/operations.rb +801 -0
- data/lib/google/cloud/app_hub/v1/app_hub/paths.rb +182 -0
- data/lib/google/cloud/app_hub/v1/app_hub/rest/client.rb +3184 -0
- data/lib/google/cloud/app_hub/v1/app_hub/rest/operations.rb +895 -0
- data/lib/google/cloud/app_hub/v1/app_hub/rest/service_stub.rb +1670 -0
- data/lib/google/cloud/app_hub/v1/app_hub/rest.rb +54 -0
- data/lib/google/cloud/app_hub/v1/app_hub.rb +56 -0
- data/lib/google/cloud/app_hub/v1/bindings_override.rb +135 -0
- data/lib/google/cloud/app_hub/v1/rest.rb +38 -0
- data/lib/google/cloud/app_hub/v1/version.rb +7 -2
- data/lib/google/cloud/app_hub/v1.rb +45 -0
- data/lib/google/cloud/apphub/v1/apphub_service_pb.rb +98 -0
- data/lib/google/cloud/apphub/v1/apphub_service_services_pb.rb +104 -0
- data/lib/google/cloud/apphub/v1/application_pb.rb +53 -0
- data/lib/google/cloud/apphub/v1/attributes_pb.rb +49 -0
- data/lib/google/cloud/apphub/v1/service_pb.rb +54 -0
- data/lib/google/cloud/apphub/v1/service_project_attachment_pb.rb +49 -0
- data/lib/google/cloud/apphub/v1/workload_pb.rb +54 -0
- data/lib/google-cloud-app_hub-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +399 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/field_info.rb +65 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +222 -0
- data/proto_docs/google/cloud/apphub/v1/apphub_service.rb +786 -0
- data/proto_docs/google/cloud/apphub/v1/application.rb +100 -0
- data/proto_docs/google/cloud/apphub/v1/attributes.rb +115 -0
- data/proto_docs/google/cloud/apphub/v1/service.rb +139 -0
- data/proto_docs/google/cloud/apphub/v1/service_project_attachment.rb +72 -0
- data/proto_docs/google/cloud/apphub/v1/workload.rb +140 -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
- data/proto_docs/google/type/expr.rb +75 -0
- metadata +124 -9
@@ -0,0 +1,54 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "gapic/rest"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/app_hub/v1/version"
|
24
|
+
require "google/cloud/app_hub/v1/bindings_override"
|
25
|
+
|
26
|
+
require "google/cloud/app_hub/v1/app_hub/credentials"
|
27
|
+
require "google/cloud/app_hub/v1/app_hub/paths"
|
28
|
+
require "google/cloud/app_hub/v1/app_hub/rest/operations"
|
29
|
+
require "google/cloud/app_hub/v1/app_hub/rest/client"
|
30
|
+
|
31
|
+
module Google
|
32
|
+
module Cloud
|
33
|
+
module AppHub
|
34
|
+
module V1
|
35
|
+
##
|
36
|
+
# The App Hub API allows you to manage App Hub resources.
|
37
|
+
#
|
38
|
+
# To load this service and instantiate a REST client:
|
39
|
+
#
|
40
|
+
# require "google/cloud/app_hub/v1/app_hub/rest"
|
41
|
+
# client = ::Google::Cloud::AppHub::V1::AppHub::Rest::Client.new
|
42
|
+
#
|
43
|
+
module AppHub
|
44
|
+
# Client for the REST transport
|
45
|
+
module Rest
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
54
|
+
require "google/cloud/app_hub/v1/app_hub/rest/helpers" if ::File.file? helper_path
|
@@ -0,0 +1,56 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "gapic/common"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/app_hub/v1/version"
|
24
|
+
|
25
|
+
require "google/cloud/app_hub/v1/app_hub/credentials"
|
26
|
+
require "google/cloud/app_hub/v1/app_hub/paths"
|
27
|
+
require "google/cloud/app_hub/v1/app_hub/operations"
|
28
|
+
require "google/cloud/app_hub/v1/app_hub/client"
|
29
|
+
require "google/cloud/app_hub/v1/app_hub/rest"
|
30
|
+
|
31
|
+
module Google
|
32
|
+
module Cloud
|
33
|
+
module AppHub
|
34
|
+
module V1
|
35
|
+
##
|
36
|
+
# The App Hub API allows you to manage App Hub resources.
|
37
|
+
#
|
38
|
+
# @example Load this service and instantiate a gRPC client
|
39
|
+
#
|
40
|
+
# require "google/cloud/app_hub/v1/app_hub"
|
41
|
+
# client = ::Google::Cloud::AppHub::V1::AppHub::Client.new
|
42
|
+
#
|
43
|
+
# @example Load this service and instantiate a REST client
|
44
|
+
#
|
45
|
+
# require "google/cloud/app_hub/v1/app_hub/rest"
|
46
|
+
# client = ::Google::Cloud::AppHub::V1::AppHub::Rest::Client.new
|
47
|
+
#
|
48
|
+
module AppHub
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
helper_path = ::File.join __dir__, "app_hub", "helpers.rb"
|
56
|
+
require "google/cloud/app_hub/v1/app_hub/helpers" if ::File.file? helper_path
|
@@ -0,0 +1,135 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "gapic/config"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module AppHub
|
24
|
+
##
|
25
|
+
# @example Loading just the REST part of this package, including all its services, and instantiating a REST client
|
26
|
+
#
|
27
|
+
# require "google/cloud/app_hub/v1/rest"
|
28
|
+
# client = ::Google::Cloud::AppHub::V1::AppHub::Rest::Client.new
|
29
|
+
#
|
30
|
+
module V1
|
31
|
+
##
|
32
|
+
# @private
|
33
|
+
# Initialize the mixin bindings configuration
|
34
|
+
#
|
35
|
+
def self.configure
|
36
|
+
@configure ||= begin
|
37
|
+
namespace = ["Google", "Cloud", "AppHub"]
|
38
|
+
parent_config = while namespace.any?
|
39
|
+
parent_name = namespace.join "::"
|
40
|
+
parent_const = const_get parent_name
|
41
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
42
|
+
namespace.pop
|
43
|
+
end
|
44
|
+
|
45
|
+
default_config = Configuration.new parent_config
|
46
|
+
default_config.bindings_override["google.cloud.location.Locations.GetLocation"] = [
|
47
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
48
|
+
uri_method: :get,
|
49
|
+
uri_template: "/v1/{name}",
|
50
|
+
matches: [
|
51
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
52
|
+
],
|
53
|
+
body: nil
|
54
|
+
)
|
55
|
+
]
|
56
|
+
default_config.bindings_override["google.cloud.location.Locations.ListLocations"] = [
|
57
|
+
|
58
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
59
|
+
uri_method: :get,
|
60
|
+
uri_template: "/v1/{name}/locations",
|
61
|
+
matches: [
|
62
|
+
["name", %r{^projects/[^/]+/?$}, false]
|
63
|
+
],
|
64
|
+
body: nil
|
65
|
+
)
|
66
|
+
]
|
67
|
+
default_config.bindings_override["google.iam.v1.IAMPolicy.GetIamPolicy"] = [
|
68
|
+
|
69
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
70
|
+
uri_method: :get,
|
71
|
+
uri_template: "/v1/{resource}:getIamPolicy",
|
72
|
+
matches: [
|
73
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/applications/[^/]+/?$}, false]
|
74
|
+
],
|
75
|
+
body: nil
|
76
|
+
)
|
77
|
+
]
|
78
|
+
default_config.bindings_override["google.iam.v1.IAMPolicy.SetIamPolicy"] = [
|
79
|
+
|
80
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
81
|
+
uri_method: :post,
|
82
|
+
uri_template: "/v1/{resource}:setIamPolicy",
|
83
|
+
matches: [
|
84
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/applications/[^/]+/?$}, false]
|
85
|
+
],
|
86
|
+
body: "*"
|
87
|
+
)
|
88
|
+
]
|
89
|
+
default_config.bindings_override["google.iam.v1.IAMPolicy.TestIamPermissions"] = [
|
90
|
+
|
91
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
92
|
+
uri_method: :post,
|
93
|
+
uri_template: "/v1/{resource}:testIamPermissions",
|
94
|
+
matches: [
|
95
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/applications/[^/]+/?$}, false]
|
96
|
+
],
|
97
|
+
body: "*"
|
98
|
+
)
|
99
|
+
]
|
100
|
+
default_config
|
101
|
+
end
|
102
|
+
yield @configure if block_given?
|
103
|
+
@configure
|
104
|
+
end
|
105
|
+
|
106
|
+
##
|
107
|
+
# @private
|
108
|
+
# Configuration class for the google.cloud.apphub.v1 package.
|
109
|
+
#
|
110
|
+
# This class contains common configuration for all services
|
111
|
+
# of the google.cloud.apphub.v1 package.
|
112
|
+
#
|
113
|
+
# This configuration is for internal use of the client library classes,
|
114
|
+
# and it is not intended that the end-users will read or change it.
|
115
|
+
#
|
116
|
+
class Configuration
|
117
|
+
extend ::Gapic::Config
|
118
|
+
|
119
|
+
# @private
|
120
|
+
# Overrides for http bindings for the RPC of the mixins for this package.
|
121
|
+
# Services in this package should use these when creating clients for the mixin services.
|
122
|
+
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
123
|
+
config_attr :bindings_override, {}, ::Hash, nil
|
124
|
+
|
125
|
+
# @private
|
126
|
+
def initialize parent_config = nil
|
127
|
+
@parent_config = parent_config unless parent_config.nil?
|
128
|
+
|
129
|
+
yield self if block_given?
|
130
|
+
end
|
131
|
+
end
|
132
|
+
end
|
133
|
+
end
|
134
|
+
end
|
135
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "google/cloud/app_hub/v1/app_hub/rest"
|
20
|
+
require "google/cloud/app_hub/v1/bindings_override"
|
21
|
+
require "google/cloud/app_hub/v1/version"
|
22
|
+
|
23
|
+
module Google
|
24
|
+
module Cloud
|
25
|
+
module AppHub
|
26
|
+
##
|
27
|
+
# To load just the REST part of this package, including all its services, and instantiate a REST client:
|
28
|
+
#
|
29
|
+
# @example
|
30
|
+
#
|
31
|
+
# require "google/cloud/app_hub/v1/rest"
|
32
|
+
# client = ::Google::Cloud::AppHub::V1::AppHub::Rest::Client.new
|
33
|
+
#
|
34
|
+
module V1
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -1,10 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# Copyright 2024 Google LLC
|
2
4
|
#
|
3
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
6
|
# you may not use this file except in compliance with the License.
|
5
7
|
# You may obtain a copy of the License at
|
6
8
|
#
|
7
|
-
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
8
10
|
#
|
9
11
|
# Unless required by applicable law or agreed to in writing, software
|
10
12
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
@@ -12,11 +14,14 @@
|
|
12
14
|
# See the License for the specific language governing permissions and
|
13
15
|
# limitations under the License.
|
14
16
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
15
20
|
module Google
|
16
21
|
module Cloud
|
17
22
|
module AppHub
|
18
23
|
module V1
|
19
|
-
VERSION = "0.
|
24
|
+
VERSION = "0.1.0"
|
20
25
|
end
|
21
26
|
end
|
22
27
|
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "google/cloud/app_hub/v1/app_hub"
|
20
|
+
require "google/cloud/app_hub/v1/version"
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module AppHub
|
25
|
+
##
|
26
|
+
# API client module.
|
27
|
+
#
|
28
|
+
# @example Load this package, including all its services, and instantiate a gRPC client
|
29
|
+
#
|
30
|
+
# require "google/cloud/app_hub/v1"
|
31
|
+
# client = ::Google::Cloud::AppHub::V1::AppHub::Client.new
|
32
|
+
#
|
33
|
+
# @example Load this package, including all its services, and instantiate a REST client
|
34
|
+
#
|
35
|
+
# require "google/cloud/app_hub/v1"
|
36
|
+
# client = ::Google::Cloud::AppHub::V1::AppHub::Rest::Client.new
|
37
|
+
#
|
38
|
+
module V1
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
helper_path = ::File.join __dir__, "v1", "_helpers.rb"
|
45
|
+
require "google/cloud/app_hub/v1/_helpers" if ::File.file? helper_path
|
@@ -0,0 +1,98 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/cloud/apphub/v1/apphub_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/apphub/v1/application_pb'
|
12
|
+
require 'google/cloud/apphub/v1/service_pb'
|
13
|
+
require 'google/cloud/apphub/v1/service_project_attachment_pb'
|
14
|
+
require 'google/cloud/apphub/v1/workload_pb'
|
15
|
+
require 'google/longrunning/operations_pb'
|
16
|
+
require 'google/protobuf/empty_pb'
|
17
|
+
require 'google/protobuf/field_mask_pb'
|
18
|
+
require 'google/protobuf/timestamp_pb'
|
19
|
+
|
20
|
+
|
21
|
+
descriptor_data = "\n+google/cloud/apphub/v1/apphub_service.proto\x12\x16google.cloud.apphub.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/apphub/v1/application.proto\x1a$google/cloud/apphub/v1/service.proto\x1a\x37google/cloud/apphub/v1/service_project_attachment.proto\x1a%google/cloud/apphub/v1/workload.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"`\n%LookupServiceProjectAttachmentRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\"~\n&LookupServiceProjectAttachmentResponse\x12T\n\x1aservice_project_attachment\x18\x01 \x01(\x0b\x32\x30.google.cloud.apphub.v1.ServiceProjectAttachment\"\xcb\x01\n$ListServiceProjectAttachmentsRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\x12.apphub.googleapis.com/ServiceProjectAttachment\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\"\xac\x01\n%ListServiceProjectAttachmentsResponse\x12U\n\x1bservice_project_attachments\x18\x01 \x03(\x0b\x32\x30.google.cloud.apphub.v1.ServiceProjectAttachment\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\x8f\x02\n%CreateServiceProjectAttachmentRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\x12.apphub.googleapis.com/ServiceProjectAttachment\x12*\n\x1dservice_project_attachment_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12Y\n\x1aservice_project_attachment\x18\x03 \x01(\x0b\x32\x30.google.cloud.apphub.v1.ServiceProjectAttachmentB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\"j\n\"GetServiceProjectAttachmentRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.apphub.googleapis.com/ServiceProjectAttachment\"\x86\x01\n%DeleteServiceProjectAttachmentRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.apphub.googleapis.com/ServiceProjectAttachment\x12\x17\n\nrequest_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\"`\n%DetachServiceProjectAttachmentRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\"(\n&DetachServiceProjectAttachmentResponse\"\xa9\x01\n\x13ListServicesRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\x12\x1d\x61pphub.googleapis.com/Service\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\"w\n\x14ListServicesResponse\x12\x31\n\x08services\x18\x01 \x03(\x0b\x32\x1f.google.cloud.apphub.v1.Service\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\xbd\x01\n\x1dListDiscoveredServicesRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'apphub.googleapis.com/DiscoveredService\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\"\x96\x01\n\x1eListDiscoveredServicesResponse\x12\x46\n\x13\x64iscovered_services\x18\x01 \x03(\x0b\x32).google.cloud.apphub.v1.DiscoveredService\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\xb6\x01\n\x14\x43reateServiceRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\x12\x1d\x61pphub.googleapis.com/Service\x12\x17\n\nservice_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x35\n\x07service\x18\x03 \x01(\x0b\x32\x1f.google.cloud.apphub.v1.ServiceB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\"H\n\x11GetServiceRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x61pphub.googleapis.com/Service\"\\\n\x1bGetDiscoveredServiceRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'apphub.googleapis.com/DiscoveredService\"s\n\x1eLookupDiscoveredServiceRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'apphub.googleapis.com/DiscoveredService\x12\x10\n\x03uri\x18\x02 \x01(\tB\x03\xe0\x41\x02\"h\n\x1fLookupDiscoveredServiceResponse\x12\x45\n\x12\x64iscovered_service\x18\x01 \x01(\x0b\x32).google.cloud.apphub.v1.DiscoveredService\"\x9c\x01\n\x14UpdateServiceRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x35\n\x07service\x18\x02 \x01(\x0b\x32\x1f.google.cloud.apphub.v1.ServiceB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\"d\n\x14\x44\x65leteServiceRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x61pphub.googleapis.com/Service\x12\x17\n\nrequest_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xb1\x01\n\x17ListApplicationsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!apphub.googleapis.com/Application\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\"\x83\x01\n\x18ListApplicationsResponse\x12\x39\n\x0c\x61pplications\x18\x01 \x03(\x0b\x32#.google.cloud.apphub.v1.Application\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\xca\x01\n\x18\x43reateApplicationRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!apphub.googleapis.com/Application\x12\x1b\n\x0e\x61pplication_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12=\n\x0b\x61pplication\x18\x03 \x01(\x0b\x32#.google.cloud.apphub.v1.ApplicationB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\"P\n\x15GetApplicationRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!apphub.googleapis.com/Application\"\xa8\x01\n\x18UpdateApplicationRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12=\n\x0b\x61pplication\x18\x02 \x01(\x0b\x32#.google.cloud.apphub.v1.ApplicationB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\"l\n\x18\x44\x65leteApplicationRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!apphub.googleapis.com/Application\x12\x17\n\nrequest_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xab\x01\n\x14ListWorkloadsRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \x12\x1e\x61pphub.googleapis.com/Workload\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\"z\n\x15ListWorkloadsResponse\x12\x33\n\tworkloads\x18\x01 \x03(\x0b\x32 .google.cloud.apphub.v1.Workload\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\xbf\x01\n\x1eListDiscoveredWorkloadsRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\x12(apphub.googleapis.com/DiscoveredWorkload\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\"\x99\x01\n\x1fListDiscoveredWorkloadsResponse\x12H\n\x14\x64iscovered_workloads\x18\x01 \x03(\x0b\x32*.google.cloud.apphub.v1.DiscoveredWorkload\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\xbb\x01\n\x15\x43reateWorkloadRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \x12\x1e\x61pphub.googleapis.com/Workload\x12\x18\n\x0bworkload_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x37\n\x08workload\x18\x03 \x01(\x0b\x32 .google.cloud.apphub.v1.WorkloadB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\"J\n\x12GetWorkloadRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x61pphub.googleapis.com/Workload\"^\n\x1cGetDiscoveredWorkloadRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(apphub.googleapis.com/DiscoveredWorkload\"u\n\x1fLookupDiscoveredWorkloadRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\x12(apphub.googleapis.com/DiscoveredWorkload\x12\x10\n\x03uri\x18\x02 \x01(\tB\x03\xe0\x41\x02\"k\n LookupDiscoveredWorkloadResponse\x12G\n\x13\x64iscovered_workload\x18\x01 \x01(\x0b\x32*.google.cloud.apphub.v1.DiscoveredWorkload\"\x9f\x01\n\x15UpdateWorkloadRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x37\n\x08workload\x18\x02 \x01(\x0b\x32 .google.cloud.apphub.v1.WorkloadB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\"f\n\x15\x44\x65leteWorkloadRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x61pphub.googleapis.com/Workload\x12\x17\n\nrequest_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\x80\x02\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\x32\xa7/\n\x06\x41ppHub\x12\xf0\x01\n\x1eLookupServiceProjectAttachment\x12=.google.cloud.apphub.v1.LookupServiceProjectAttachmentRequest\x1a>.google.cloud.apphub.v1.LookupServiceProjectAttachmentResponse\"O\xda\x41\x04name\x82\xd3\xe4\x93\x02\x42\x12@/v1/{name=projects/*/locations/*}:lookupServiceProjectAttachment\x12\xec\x01\n\x1dListServiceProjectAttachments\x12<.google.cloud.apphub.v1.ListServiceProjectAttachmentsRequest\x1a=.google.cloud.apphub.v1.ListServiceProjectAttachmentsResponse\"N\xda\x41\x06parent\x82\xd3\xe4\x93\x02?\x12=/v1/{parent=projects/*/locations/*}/serviceProjectAttachments\x12\xd4\x02\n\x1e\x43reateServiceProjectAttachment\x12=.google.cloud.apphub.v1.CreateServiceProjectAttachmentRequest\x1a\x1d.google.longrunning.Operation\"\xd3\x01\xca\x41-\n\x18ServiceProjectAttachment\x12\x11OperationMetadata\xda\x41?parent,service_project_attachment,service_project_attachment_id\x82\xd3\xe4\x93\x02[\"=/v1/{parent=projects/*/locations/*}/serviceProjectAttachments:\x1aservice_project_attachment\x12\xd9\x01\n\x1bGetServiceProjectAttachment\x12:.google.cloud.apphub.v1.GetServiceProjectAttachmentRequest\x1a\x30.google.cloud.apphub.v1.ServiceProjectAttachment\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?\x12=/v1/{name=projects/*/locations/*/serviceProjectAttachments/*}\x12\xf9\x01\n\x1e\x44\x65leteServiceProjectAttachment\x12=.google.cloud.apphub.v1.DeleteServiceProjectAttachmentRequest\x1a\x1d.google.longrunning.Operation\"y\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02?*=/v1/{name=projects/*/locations/*/serviceProjectAttachments/*}\x12\xf3\x01\n\x1e\x44\x65tachServiceProjectAttachment\x12=.google.cloud.apphub.v1.DetachServiceProjectAttachmentRequest\x1a>.google.cloud.apphub.v1.DetachServiceProjectAttachmentResponse\"R\xda\x41\x04name\x82\xd3\xe4\x93\x02\x45\"@/v1/{name=projects/*/locations/*}:detachServiceProjectAttachment:\x01*\x12\xd0\x01\n\x16ListDiscoveredServices\x12\x35.google.cloud.apphub.v1.ListDiscoveredServicesRequest\x1a\x36.google.cloud.apphub.v1.ListDiscoveredServicesResponse\"G\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x38\x12\x36/v1/{parent=projects/*/locations/*}/discoveredServices\x12\xbd\x01\n\x14GetDiscoveredService\x12\x33.google.cloud.apphub.v1.GetDiscoveredServiceRequest\x1a).google.cloud.apphub.v1.DiscoveredService\"E\xda\x41\x04name\x82\xd3\xe4\x93\x02\x38\x12\x36/v1/{name=projects/*/locations/*/discoveredServices/*}\x12\xde\x01\n\x17LookupDiscoveredService\x12\x36.google.cloud.apphub.v1.LookupDiscoveredServiceRequest\x1a\x37.google.cloud.apphub.v1.LookupDiscoveredServiceResponse\"R\xda\x41\nparent,uri\x82\xd3\xe4\x93\x02?\x12=/v1/{parent=projects/*/locations/*}/discoveredServices:lookup\x12\xb7\x01\n\x0cListServices\x12+.google.cloud.apphub.v1.ListServicesRequest\x1a,.google.cloud.apphub.v1.ListServicesResponse\"L\xda\x41\x06parent\x82\xd3\xe4\x93\x02=\x12;/v1/{parent=projects/*/locations/*/applications/*}/services\x12\xe6\x01\n\rCreateService\x12,.google.cloud.apphub.v1.CreateServiceRequest\x1a\x1d.google.longrunning.Operation\"\x87\x01\xca\x41\x1c\n\x07Service\x12\x11OperationMetadata\xda\x41\x19parent,service,service_id\x82\xd3\xe4\x93\x02\x46\";/v1/{parent=projects/*/locations/*/applications/*}/services:\x07service\x12\xa4\x01\n\nGetService\x12).google.cloud.apphub.v1.GetServiceRequest\x1a\x1f.google.cloud.apphub.v1.Service\"J\xda\x41\x04name\x82\xd3\xe4\x93\x02=\x12;/v1/{name=projects/*/locations/*/applications/*/services/*}\x12\xe8\x01\n\rUpdateService\x12,.google.cloud.apphub.v1.UpdateServiceRequest\x1a\x1d.google.longrunning.Operation\"\x89\x01\xca\x41\x1c\n\x07Service\x12\x11OperationMetadata\xda\x41\x13service,update_mask\x82\xd3\xe4\x93\x02N2C/v1/{service.name=projects/*/locations/*/applications/*/services/*}:\x07service\x12\xd5\x01\n\rDeleteService\x12,.google.cloud.apphub.v1.DeleteServiceRequest\x1a\x1d.google.longrunning.Operation\"w\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02=*;/v1/{name=projects/*/locations/*/applications/*/services/*}\x12\xd4\x01\n\x17ListDiscoveredWorkloads\x12\x36.google.cloud.apphub.v1.ListDiscoveredWorkloadsRequest\x1a\x37.google.cloud.apphub.v1.ListDiscoveredWorkloadsResponse\"H\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x39\x12\x37/v1/{parent=projects/*/locations/*}/discoveredWorkloads\x12\xc1\x01\n\x15GetDiscoveredWorkload\x12\x34.google.cloud.apphub.v1.GetDiscoveredWorkloadRequest\x1a*.google.cloud.apphub.v1.DiscoveredWorkload\"F\xda\x41\x04name\x82\xd3\xe4\x93\x02\x39\x12\x37/v1/{name=projects/*/locations/*/discoveredWorkloads/*}\x12\xe2\x01\n\x18LookupDiscoveredWorkload\x12\x37.google.cloud.apphub.v1.LookupDiscoveredWorkloadRequest\x1a\x38.google.cloud.apphub.v1.LookupDiscoveredWorkloadResponse\"S\xda\x41\nparent,uri\x82\xd3\xe4\x93\x02@\x12>/v1/{parent=projects/*/locations/*}/discoveredWorkloads:lookup\x12\xbb\x01\n\rListWorkloads\x12,.google.cloud.apphub.v1.ListWorkloadsRequest\x1a-.google.cloud.apphub.v1.ListWorkloadsResponse\"M\xda\x41\x06parent\x82\xd3\xe4\x93\x02>\x12</v1/{parent=projects/*/locations/*/applications/*}/workloads\x12\xed\x01\n\x0e\x43reateWorkload\x12-.google.cloud.apphub.v1.CreateWorkloadRequest\x1a\x1d.google.longrunning.Operation\"\x8c\x01\xca\x41\x1d\n\x08Workload\x12\x11OperationMetadata\xda\x41\x1bparent,workload,workload_id\x82\xd3\xe4\x93\x02H\"</v1/{parent=projects/*/locations/*/applications/*}/workloads:\x08workload\x12\xa8\x01\n\x0bGetWorkload\x12*.google.cloud.apphub.v1.GetWorkloadRequest\x1a .google.cloud.apphub.v1.Workload\"K\xda\x41\x04name\x82\xd3\xe4\x93\x02>\x12</v1/{name=projects/*/locations/*/applications/*/workloads/*}\x12\xef\x01\n\x0eUpdateWorkload\x12-.google.cloud.apphub.v1.UpdateWorkloadRequest\x1a\x1d.google.longrunning.Operation\"\x8e\x01\xca\x41\x1d\n\x08Workload\x12\x11OperationMetadata\xda\x41\x14workload,update_mask\x82\xd3\xe4\x93\x02Q2E/v1/{workload.name=projects/*/locations/*/applications/*/workloads/*}:\x08workload\x12\xd8\x01\n\x0e\x44\x65leteWorkload\x12-.google.cloud.apphub.v1.DeleteWorkloadRequest\x1a\x1d.google.longrunning.Operation\"x\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02>*</v1/{name=projects/*/locations/*/applications/*/workloads/*}\x12\xb8\x01\n\x10ListApplications\x12/.google.cloud.apphub.v1.ListApplicationsRequest\x1a\x30.google.cloud.apphub.v1.ListApplicationsResponse\"A\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{parent=projects/*/locations/*}/applications\x12\xf3\x01\n\x11\x43reateApplication\x12\x30.google.cloud.apphub.v1.CreateApplicationRequest\x1a\x1d.google.longrunning.Operation\"\x8c\x01\xca\x41 \n\x0b\x41pplication\x12\x11OperationMetadata\xda\x41!parent,application,application_id\x82\xd3\xe4\x93\x02?\"0/v1/{parent=projects/*/locations/*}/applications:\x0b\x61pplication\x12\xa5\x01\n\x0eGetApplication\x12-.google.cloud.apphub.v1.GetApplicationRequest\x1a#.google.cloud.apphub.v1.Application\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{name=projects/*/locations/*/applications/*}\x12\xf5\x01\n\x11UpdateApplication\x12\x30.google.cloud.apphub.v1.UpdateApplicationRequest\x1a\x1d.google.longrunning.Operation\"\x8e\x01\xca\x41 \n\x0b\x41pplication\x12\x11OperationMetadata\xda\x41\x17\x61pplication,update_mask\x82\xd3\xe4\x93\x02K2</v1/{application.name=projects/*/locations/*/applications/*}:\x0b\x61pplication\x12\xd2\x01\n\x11\x44\x65leteApplication\x12\x30.google.cloud.apphub.v1.DeleteApplicationRequest\x1a\x1d.google.longrunning.Operation\"l\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32*0/v1/{name=projects/*/locations/*/applications/*}\x1aI\xca\x41\x15\x61pphub.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xb4\x01\n\x1a\x63om.google.cloud.apphub.v1B\x12\x41pphubServiceProtoP\x01Z2cloud.google.com/go/apphub/apiv1/apphubpb;apphubpb\xaa\x02\x16Google.Cloud.AppHub.V1\xca\x02\x16Google\\Cloud\\AppHub\\V1\xea\x02\x19Google::Cloud::AppHub::V1b\x06proto3"
|
22
|
+
|
23
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
24
|
+
|
25
|
+
begin
|
26
|
+
pool.add_serialized_file(descriptor_data)
|
27
|
+
rescue TypeError
|
28
|
+
# Compatibility code: will be removed in the next major version.
|
29
|
+
require 'google/protobuf/descriptor_pb'
|
30
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
31
|
+
parsed.clear_dependency
|
32
|
+
serialized = parsed.class.encode(parsed)
|
33
|
+
file = pool.add_serialized_file(serialized)
|
34
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
35
|
+
imports = [
|
36
|
+
["google.cloud.apphub.v1.ServiceProjectAttachment", "google/cloud/apphub/v1/service_project_attachment.proto"],
|
37
|
+
["google.cloud.apphub.v1.Service", "google/cloud/apphub/v1/service.proto"],
|
38
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
39
|
+
["google.cloud.apphub.v1.Application", "google/cloud/apphub/v1/application.proto"],
|
40
|
+
["google.cloud.apphub.v1.Workload", "google/cloud/apphub/v1/workload.proto"],
|
41
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
42
|
+
]
|
43
|
+
imports.each do |type_name, expected_filename|
|
44
|
+
import_file = pool.lookup(type_name).file_descriptor
|
45
|
+
if import_file.name != expected_filename
|
46
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
47
|
+
end
|
48
|
+
end
|
49
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
50
|
+
warn "This will become an error in the next major version."
|
51
|
+
end
|
52
|
+
|
53
|
+
module Google
|
54
|
+
module Cloud
|
55
|
+
module AppHub
|
56
|
+
module V1
|
57
|
+
LookupServiceProjectAttachmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.LookupServiceProjectAttachmentRequest").msgclass
|
58
|
+
LookupServiceProjectAttachmentResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.LookupServiceProjectAttachmentResponse").msgclass
|
59
|
+
ListServiceProjectAttachmentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.ListServiceProjectAttachmentsRequest").msgclass
|
60
|
+
ListServiceProjectAttachmentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.ListServiceProjectAttachmentsResponse").msgclass
|
61
|
+
CreateServiceProjectAttachmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.CreateServiceProjectAttachmentRequest").msgclass
|
62
|
+
GetServiceProjectAttachmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.GetServiceProjectAttachmentRequest").msgclass
|
63
|
+
DeleteServiceProjectAttachmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.DeleteServiceProjectAttachmentRequest").msgclass
|
64
|
+
DetachServiceProjectAttachmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.DetachServiceProjectAttachmentRequest").msgclass
|
65
|
+
DetachServiceProjectAttachmentResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.DetachServiceProjectAttachmentResponse").msgclass
|
66
|
+
ListServicesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.ListServicesRequest").msgclass
|
67
|
+
ListServicesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.ListServicesResponse").msgclass
|
68
|
+
ListDiscoveredServicesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.ListDiscoveredServicesRequest").msgclass
|
69
|
+
ListDiscoveredServicesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.ListDiscoveredServicesResponse").msgclass
|
70
|
+
CreateServiceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.CreateServiceRequest").msgclass
|
71
|
+
GetServiceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.GetServiceRequest").msgclass
|
72
|
+
GetDiscoveredServiceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.GetDiscoveredServiceRequest").msgclass
|
73
|
+
LookupDiscoveredServiceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.LookupDiscoveredServiceRequest").msgclass
|
74
|
+
LookupDiscoveredServiceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.LookupDiscoveredServiceResponse").msgclass
|
75
|
+
UpdateServiceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.UpdateServiceRequest").msgclass
|
76
|
+
DeleteServiceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.DeleteServiceRequest").msgclass
|
77
|
+
ListApplicationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.ListApplicationsRequest").msgclass
|
78
|
+
ListApplicationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.ListApplicationsResponse").msgclass
|
79
|
+
CreateApplicationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.CreateApplicationRequest").msgclass
|
80
|
+
GetApplicationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.GetApplicationRequest").msgclass
|
81
|
+
UpdateApplicationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.UpdateApplicationRequest").msgclass
|
82
|
+
DeleteApplicationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.DeleteApplicationRequest").msgclass
|
83
|
+
ListWorkloadsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.ListWorkloadsRequest").msgclass
|
84
|
+
ListWorkloadsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.ListWorkloadsResponse").msgclass
|
85
|
+
ListDiscoveredWorkloadsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.ListDiscoveredWorkloadsRequest").msgclass
|
86
|
+
ListDiscoveredWorkloadsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.ListDiscoveredWorkloadsResponse").msgclass
|
87
|
+
CreateWorkloadRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.CreateWorkloadRequest").msgclass
|
88
|
+
GetWorkloadRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.GetWorkloadRequest").msgclass
|
89
|
+
GetDiscoveredWorkloadRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.GetDiscoveredWorkloadRequest").msgclass
|
90
|
+
LookupDiscoveredWorkloadRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.LookupDiscoveredWorkloadRequest").msgclass
|
91
|
+
LookupDiscoveredWorkloadResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.LookupDiscoveredWorkloadResponse").msgclass
|
92
|
+
UpdateWorkloadRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.UpdateWorkloadRequest").msgclass
|
93
|
+
DeleteWorkloadRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.DeleteWorkloadRequest").msgclass
|
94
|
+
OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.OperationMetadata").msgclass
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
@@ -0,0 +1,104 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/apphub/v1/apphub_service.proto for package 'Google.Cloud.AppHub.V1'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2023 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/apphub/v1/apphub_service_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module AppHub
|
25
|
+
module V1
|
26
|
+
module AppHub
|
27
|
+
# The App Hub API allows you to manage App Hub resources.
|
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.apphub.v1.AppHub'
|
35
|
+
|
36
|
+
# Lists a service project attachment for a given service project. You can
|
37
|
+
# call this API from any project to find if it is attached to a host project.
|
38
|
+
rpc :LookupServiceProjectAttachment, ::Google::Cloud::AppHub::V1::LookupServiceProjectAttachmentRequest, ::Google::Cloud::AppHub::V1::LookupServiceProjectAttachmentResponse
|
39
|
+
# Lists service projects attached to the host project.
|
40
|
+
rpc :ListServiceProjectAttachments, ::Google::Cloud::AppHub::V1::ListServiceProjectAttachmentsRequest, ::Google::Cloud::AppHub::V1::ListServiceProjectAttachmentsResponse
|
41
|
+
# Attaches a service project to the host project.
|
42
|
+
rpc :CreateServiceProjectAttachment, ::Google::Cloud::AppHub::V1::CreateServiceProjectAttachmentRequest, ::Google::Longrunning::Operation
|
43
|
+
# Gets a service project attachment.
|
44
|
+
rpc :GetServiceProjectAttachment, ::Google::Cloud::AppHub::V1::GetServiceProjectAttachmentRequest, ::Google::Cloud::AppHub::V1::ServiceProjectAttachment
|
45
|
+
# Deletes a service project attachment.
|
46
|
+
rpc :DeleteServiceProjectAttachment, ::Google::Cloud::AppHub::V1::DeleteServiceProjectAttachmentRequest, ::Google::Longrunning::Operation
|
47
|
+
# Detaches a service project from a host project.
|
48
|
+
# You can call this API from any service project without needing access to
|
49
|
+
# the host project that it is attached to.
|
50
|
+
rpc :DetachServiceProjectAttachment, ::Google::Cloud::AppHub::V1::DetachServiceProjectAttachmentRequest, ::Google::Cloud::AppHub::V1::DetachServiceProjectAttachmentResponse
|
51
|
+
# Lists Discovered Services that can be added to an Application in a host
|
52
|
+
# project and location.
|
53
|
+
rpc :ListDiscoveredServices, ::Google::Cloud::AppHub::V1::ListDiscoveredServicesRequest, ::Google::Cloud::AppHub::V1::ListDiscoveredServicesResponse
|
54
|
+
# Gets a Discovered Service in a host project and location.
|
55
|
+
rpc :GetDiscoveredService, ::Google::Cloud::AppHub::V1::GetDiscoveredServiceRequest, ::Google::Cloud::AppHub::V1::DiscoveredService
|
56
|
+
# Lists a Discovered Service in a host project and location, with a
|
57
|
+
# given resource URI.
|
58
|
+
rpc :LookupDiscoveredService, ::Google::Cloud::AppHub::V1::LookupDiscoveredServiceRequest, ::Google::Cloud::AppHub::V1::LookupDiscoveredServiceResponse
|
59
|
+
# Lists Services in an Application.
|
60
|
+
rpc :ListServices, ::Google::Cloud::AppHub::V1::ListServicesRequest, ::Google::Cloud::AppHub::V1::ListServicesResponse
|
61
|
+
# Creates a Service in an Application.
|
62
|
+
rpc :CreateService, ::Google::Cloud::AppHub::V1::CreateServiceRequest, ::Google::Longrunning::Operation
|
63
|
+
# Gets a Service in an Application.
|
64
|
+
rpc :GetService, ::Google::Cloud::AppHub::V1::GetServiceRequest, ::Google::Cloud::AppHub::V1::Service
|
65
|
+
# Updates a Service in an Application.
|
66
|
+
rpc :UpdateService, ::Google::Cloud::AppHub::V1::UpdateServiceRequest, ::Google::Longrunning::Operation
|
67
|
+
# Deletes a Service from an Application.
|
68
|
+
rpc :DeleteService, ::Google::Cloud::AppHub::V1::DeleteServiceRequest, ::Google::Longrunning::Operation
|
69
|
+
# Lists Discovered Workloads that can be added to an Application in a host
|
70
|
+
# project and location.
|
71
|
+
rpc :ListDiscoveredWorkloads, ::Google::Cloud::AppHub::V1::ListDiscoveredWorkloadsRequest, ::Google::Cloud::AppHub::V1::ListDiscoveredWorkloadsResponse
|
72
|
+
# Gets a Discovered Workload in a host project and location.
|
73
|
+
rpc :GetDiscoveredWorkload, ::Google::Cloud::AppHub::V1::GetDiscoveredWorkloadRequest, ::Google::Cloud::AppHub::V1::DiscoveredWorkload
|
74
|
+
# Lists a Discovered Workload in a host project and location, with a
|
75
|
+
# given resource URI.
|
76
|
+
rpc :LookupDiscoveredWorkload, ::Google::Cloud::AppHub::V1::LookupDiscoveredWorkloadRequest, ::Google::Cloud::AppHub::V1::LookupDiscoveredWorkloadResponse
|
77
|
+
# Lists Workloads in an Application.
|
78
|
+
rpc :ListWorkloads, ::Google::Cloud::AppHub::V1::ListWorkloadsRequest, ::Google::Cloud::AppHub::V1::ListWorkloadsResponse
|
79
|
+
# Creates a Workload in an Application.
|
80
|
+
rpc :CreateWorkload, ::Google::Cloud::AppHub::V1::CreateWorkloadRequest, ::Google::Longrunning::Operation
|
81
|
+
# Gets a Workload in an Application.
|
82
|
+
rpc :GetWorkload, ::Google::Cloud::AppHub::V1::GetWorkloadRequest, ::Google::Cloud::AppHub::V1::Workload
|
83
|
+
# Updates a Workload in an Application.
|
84
|
+
rpc :UpdateWorkload, ::Google::Cloud::AppHub::V1::UpdateWorkloadRequest, ::Google::Longrunning::Operation
|
85
|
+
# Deletes a Workload from an Application.
|
86
|
+
rpc :DeleteWorkload, ::Google::Cloud::AppHub::V1::DeleteWorkloadRequest, ::Google::Longrunning::Operation
|
87
|
+
# Lists Applications in a host project and location.
|
88
|
+
rpc :ListApplications, ::Google::Cloud::AppHub::V1::ListApplicationsRequest, ::Google::Cloud::AppHub::V1::ListApplicationsResponse
|
89
|
+
# Creates an Application in a host project and location.
|
90
|
+
rpc :CreateApplication, ::Google::Cloud::AppHub::V1::CreateApplicationRequest, ::Google::Longrunning::Operation
|
91
|
+
# Gets an Application in a host project and location.
|
92
|
+
rpc :GetApplication, ::Google::Cloud::AppHub::V1::GetApplicationRequest, ::Google::Cloud::AppHub::V1::Application
|
93
|
+
# Updates an Application in a host project and location.
|
94
|
+
rpc :UpdateApplication, ::Google::Cloud::AppHub::V1::UpdateApplicationRequest, ::Google::Longrunning::Operation
|
95
|
+
# Deletes an Application in a host project and location.
|
96
|
+
rpc :DeleteApplication, ::Google::Cloud::AppHub::V1::DeleteApplicationRequest, ::Google::Longrunning::Operation
|
97
|
+
end
|
98
|
+
|
99
|
+
Stub = Service.rpc_stub_class
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
104
|
+
end
|