google-cloud-apigee_registry-v1 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +149 -0
- data/LICENSE.md +201 -0
- data/README.md +144 -0
- data/lib/google/cloud/apigee_registry/v1/provisioning/client.rb +636 -0
- data/lib/google/cloud/apigee_registry/v1/provisioning/credentials.rb +47 -0
- data/lib/google/cloud/apigee_registry/v1/provisioning/operations.rb +767 -0
- data/lib/google/cloud/apigee_registry/v1/provisioning/paths.rb +69 -0
- data/lib/google/cloud/apigee_registry/v1/provisioning.rb +51 -0
- data/lib/google/cloud/apigee_registry/v1/registry/client.rb +4005 -0
- data/lib/google/cloud/apigee_registry/v1/registry/credentials.rb +47 -0
- data/lib/google/cloud/apigee_registry/v1/registry/paths.rb +238 -0
- data/lib/google/cloud/apigee_registry/v1/registry.rb +49 -0
- data/lib/google/cloud/apigee_registry/v1/version.rb +28 -0
- data/lib/google/cloud/apigee_registry/v1.rb +41 -0
- data/lib/google/cloud/apigeeregistry/v1/provisioning_service_pb.rb +73 -0
- data/lib/google/cloud/apigeeregistry/v1/provisioning_service_services_pb.rb +50 -0
- data/lib/google/cloud/apigeeregistry/v1/registry_models_pb.rb +90 -0
- data/lib/google/cloud/apigeeregistry/v1/registry_service_pb.rb +245 -0
- data/lib/google/cloud/apigeeregistry/v1/registry_service_services_pb.rb +128 -0
- data/lib/google-cloud-apigee_registry-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/field_behavior.rb +71 -0
- data/proto_docs/google/api/httpbody.rb +80 -0
- data/proto_docs/google/api/resource.rb +222 -0
- data/proto_docs/google/cloud/apigeeregistry/v1/provisioning_service.rb +157 -0
- data/proto_docs/google/cloud/apigeeregistry/v1/registry_models.rb +407 -0
- data/proto_docs/google/cloud/apigeeregistry/v1/registry_service.rb +704 -0
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +141 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +36 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +129 -0
- data/proto_docs/google/rpc/status.rb +46 -0
- data/proto_docs/google/type/expr.rb +75 -0
- metadata +273 -0
@@ -0,0 +1,47 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "googleauth"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module ApigeeRegistry
|
24
|
+
module V1
|
25
|
+
module Registry
|
26
|
+
# Credentials for the Registry API.
|
27
|
+
class Credentials < ::Google::Auth::Credentials
|
28
|
+
self.scope = [
|
29
|
+
"https://www.googleapis.com/auth/cloud-platform"
|
30
|
+
]
|
31
|
+
self.env_vars = [
|
32
|
+
"GOOGLE_CLOUD_CREDENTIALS",
|
33
|
+
"GOOGLE_CLOUD_KEYFILE",
|
34
|
+
"GCLOUD_KEYFILE",
|
35
|
+
"GOOGLE_CLOUD_CREDENTIALS_JSON",
|
36
|
+
"GOOGLE_CLOUD_KEYFILE_JSON",
|
37
|
+
"GCLOUD_KEYFILE_JSON"
|
38
|
+
]
|
39
|
+
self.paths = [
|
40
|
+
"~/.config/google_cloud/application_default_credentials.json"
|
41
|
+
]
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,238 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 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
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module ApigeeRegistry
|
23
|
+
module V1
|
24
|
+
module Registry
|
25
|
+
# Path helper methods for the Registry API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified Api resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `projects/{project}/locations/{location}/apis/{api}`
|
33
|
+
#
|
34
|
+
# @param project [String]
|
35
|
+
# @param location [String]
|
36
|
+
# @param api [String]
|
37
|
+
#
|
38
|
+
# @return [::String]
|
39
|
+
def api_path project:, location:, api:
|
40
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
41
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
42
|
+
|
43
|
+
"projects/#{project}/locations/#{location}/apis/#{api}"
|
44
|
+
end
|
45
|
+
|
46
|
+
##
|
47
|
+
# Create a fully-qualified ApiDeployment resource string.
|
48
|
+
#
|
49
|
+
# The resource will be in the following format:
|
50
|
+
#
|
51
|
+
# `projects/{project}/locations/{location}/apis/{api}/deployments/{deployment}`
|
52
|
+
#
|
53
|
+
# @param project [String]
|
54
|
+
# @param location [String]
|
55
|
+
# @param api [String]
|
56
|
+
# @param deployment [String]
|
57
|
+
#
|
58
|
+
# @return [::String]
|
59
|
+
def api_deployment_path project:, location:, api:, deployment:
|
60
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
61
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
62
|
+
raise ::ArgumentError, "api cannot contain /" if api.to_s.include? "/"
|
63
|
+
|
64
|
+
"projects/#{project}/locations/#{location}/apis/#{api}/deployments/#{deployment}"
|
65
|
+
end
|
66
|
+
|
67
|
+
##
|
68
|
+
# Create a fully-qualified ApiSpec resource string.
|
69
|
+
#
|
70
|
+
# The resource will be in the following format:
|
71
|
+
#
|
72
|
+
# `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
|
73
|
+
#
|
74
|
+
# @param project [String]
|
75
|
+
# @param location [String]
|
76
|
+
# @param api [String]
|
77
|
+
# @param version [String]
|
78
|
+
# @param spec [String]
|
79
|
+
#
|
80
|
+
# @return [::String]
|
81
|
+
def api_spec_path project:, location:, api:, version:, spec:
|
82
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
83
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
84
|
+
raise ::ArgumentError, "api cannot contain /" if api.to_s.include? "/"
|
85
|
+
raise ::ArgumentError, "version cannot contain /" if version.to_s.include? "/"
|
86
|
+
|
87
|
+
"projects/#{project}/locations/#{location}/apis/#{api}/versions/#{version}/specs/#{spec}"
|
88
|
+
end
|
89
|
+
|
90
|
+
##
|
91
|
+
# Create a fully-qualified ApiVersion resource string.
|
92
|
+
#
|
93
|
+
# The resource will be in the following format:
|
94
|
+
#
|
95
|
+
# `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
|
96
|
+
#
|
97
|
+
# @param project [String]
|
98
|
+
# @param location [String]
|
99
|
+
# @param api [String]
|
100
|
+
# @param version [String]
|
101
|
+
#
|
102
|
+
# @return [::String]
|
103
|
+
def api_version_path project:, location:, api:, version:
|
104
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
105
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
106
|
+
raise ::ArgumentError, "api cannot contain /" if api.to_s.include? "/"
|
107
|
+
|
108
|
+
"projects/#{project}/locations/#{location}/apis/#{api}/versions/#{version}"
|
109
|
+
end
|
110
|
+
|
111
|
+
##
|
112
|
+
# Create a fully-qualified Artifact resource string.
|
113
|
+
#
|
114
|
+
# @overload artifact_path(project:, location:, artifact:)
|
115
|
+
# The resource will be in the following format:
|
116
|
+
#
|
117
|
+
# `projects/{project}/locations/{location}/artifacts/{artifact}`
|
118
|
+
#
|
119
|
+
# @param project [String]
|
120
|
+
# @param location [String]
|
121
|
+
# @param artifact [String]
|
122
|
+
#
|
123
|
+
# @overload artifact_path(project:, location:, api:, artifact:)
|
124
|
+
# The resource will be in the following format:
|
125
|
+
#
|
126
|
+
# `projects/{project}/locations/{location}/apis/{api}/artifacts/{artifact}`
|
127
|
+
#
|
128
|
+
# @param project [String]
|
129
|
+
# @param location [String]
|
130
|
+
# @param api [String]
|
131
|
+
# @param artifact [String]
|
132
|
+
#
|
133
|
+
# @overload artifact_path(project:, location:, api:, version:, artifact:)
|
134
|
+
# The resource will be in the following format:
|
135
|
+
#
|
136
|
+
# `projects/{project}/locations/{location}/apis/{api}/versions/{version}/artifacts/{artifact}`
|
137
|
+
#
|
138
|
+
# @param project [String]
|
139
|
+
# @param location [String]
|
140
|
+
# @param api [String]
|
141
|
+
# @param version [String]
|
142
|
+
# @param artifact [String]
|
143
|
+
#
|
144
|
+
# @overload artifact_path(project:, location:, api:, version:, spec:, artifact:)
|
145
|
+
# The resource will be in the following format:
|
146
|
+
#
|
147
|
+
# `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}/artifacts/{artifact}`
|
148
|
+
#
|
149
|
+
# @param project [String]
|
150
|
+
# @param location [String]
|
151
|
+
# @param api [String]
|
152
|
+
# @param version [String]
|
153
|
+
# @param spec [String]
|
154
|
+
# @param artifact [String]
|
155
|
+
#
|
156
|
+
# @overload artifact_path(project:, location:, api:, deployment:, artifact:)
|
157
|
+
# The resource will be in the following format:
|
158
|
+
#
|
159
|
+
# `projects/{project}/locations/{location}/apis/{api}/deployments/{deployment}/artifacts/{artifact}`
|
160
|
+
#
|
161
|
+
# @param project [String]
|
162
|
+
# @param location [String]
|
163
|
+
# @param api [String]
|
164
|
+
# @param deployment [String]
|
165
|
+
# @param artifact [String]
|
166
|
+
#
|
167
|
+
# @return [::String]
|
168
|
+
def artifact_path **args
|
169
|
+
resources = {
|
170
|
+
"artifact:location:project" => (proc do |project:, location:, artifact:|
|
171
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
172
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
173
|
+
|
174
|
+
"projects/#{project}/locations/#{location}/artifacts/#{artifact}"
|
175
|
+
end),
|
176
|
+
"api:artifact:location:project" => (proc do |project:, location:, api:, artifact:|
|
177
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
178
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
179
|
+
raise ::ArgumentError, "api cannot contain /" if api.to_s.include? "/"
|
180
|
+
|
181
|
+
"projects/#{project}/locations/#{location}/apis/#{api}/artifacts/#{artifact}"
|
182
|
+
end),
|
183
|
+
"api:artifact:location:project:version" => (proc do |project:, location:, api:, version:, artifact:|
|
184
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
185
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
186
|
+
raise ::ArgumentError, "api cannot contain /" if api.to_s.include? "/"
|
187
|
+
raise ::ArgumentError, "version cannot contain /" if version.to_s.include? "/"
|
188
|
+
|
189
|
+
"projects/#{project}/locations/#{location}/apis/#{api}/versions/#{version}/artifacts/#{artifact}"
|
190
|
+
end),
|
191
|
+
"api:artifact:location:project:spec:version" => (proc do |project:, location:, api:, version:, spec:, artifact:|
|
192
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
193
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
194
|
+
raise ::ArgumentError, "api cannot contain /" if api.to_s.include? "/"
|
195
|
+
raise ::ArgumentError, "version cannot contain /" if version.to_s.include? "/"
|
196
|
+
raise ::ArgumentError, "spec cannot contain /" if spec.to_s.include? "/"
|
197
|
+
|
198
|
+
"projects/#{project}/locations/#{location}/apis/#{api}/versions/#{version}/specs/#{spec}/artifacts/#{artifact}"
|
199
|
+
end),
|
200
|
+
"api:artifact:deployment:location:project" => (proc do |project:, location:, api:, deployment:, artifact:|
|
201
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
202
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
203
|
+
raise ::ArgumentError, "api cannot contain /" if api.to_s.include? "/"
|
204
|
+
raise ::ArgumentError, "deployment cannot contain /" if deployment.to_s.include? "/"
|
205
|
+
|
206
|
+
"projects/#{project}/locations/#{location}/apis/#{api}/deployments/#{deployment}/artifacts/#{artifact}"
|
207
|
+
end)
|
208
|
+
}
|
209
|
+
|
210
|
+
resource = resources[args.keys.sort.join(":")]
|
211
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
212
|
+
resource.call(**args)
|
213
|
+
end
|
214
|
+
|
215
|
+
##
|
216
|
+
# Create a fully-qualified Location resource string.
|
217
|
+
#
|
218
|
+
# The resource will be in the following format:
|
219
|
+
#
|
220
|
+
# `projects/{project}/locations/{location}`
|
221
|
+
#
|
222
|
+
# @param project [String]
|
223
|
+
# @param location [String]
|
224
|
+
#
|
225
|
+
# @return [::String]
|
226
|
+
def location_path project:, location:
|
227
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
228
|
+
|
229
|
+
"projects/#{project}/locations/#{location}"
|
230
|
+
end
|
231
|
+
|
232
|
+
extend self
|
233
|
+
end
|
234
|
+
end
|
235
|
+
end
|
236
|
+
end
|
237
|
+
end
|
238
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 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/apigee_registry/v1/version"
|
24
|
+
|
25
|
+
require "google/cloud/apigee_registry/v1/registry/credentials"
|
26
|
+
require "google/cloud/apigee_registry/v1/registry/paths"
|
27
|
+
require "google/cloud/apigee_registry/v1/registry/client"
|
28
|
+
|
29
|
+
module Google
|
30
|
+
module Cloud
|
31
|
+
module ApigeeRegistry
|
32
|
+
module V1
|
33
|
+
##
|
34
|
+
# The Registry service allows teams to manage descriptions of APIs.
|
35
|
+
#
|
36
|
+
# To load this service and instantiate a client:
|
37
|
+
#
|
38
|
+
# require "google/cloud/apigee_registry/v1/registry"
|
39
|
+
# client = ::Google::Cloud::ApigeeRegistry::V1::Registry::Client.new
|
40
|
+
#
|
41
|
+
module Registry
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
helper_path = ::File.join __dir__, "registry", "helpers.rb"
|
49
|
+
require "google/cloud/apigee_registry/v1/registry/helpers" if ::File.file? helper_path
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 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
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module ApigeeRegistry
|
23
|
+
module V1
|
24
|
+
VERSION = "0.1.0"
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 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/apigee_registry/v1/provisioning"
|
20
|
+
require "google/cloud/apigee_registry/v1/registry"
|
21
|
+
require "google/cloud/apigee_registry/v1/version"
|
22
|
+
|
23
|
+
module Google
|
24
|
+
module Cloud
|
25
|
+
module ApigeeRegistry
|
26
|
+
##
|
27
|
+
# To load this package, including all its services, and instantiate a client:
|
28
|
+
#
|
29
|
+
# @example
|
30
|
+
#
|
31
|
+
# require "google/cloud/apigee_registry/v1"
|
32
|
+
# client = ::Google::Cloud::ApigeeRegistry::V1::Provisioning::Client.new
|
33
|
+
#
|
34
|
+
module V1
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
helper_path = ::File.join __dir__, "v1", "_helpers.rb"
|
41
|
+
require "google/cloud/apigee_registry/v1/_helpers" if ::File.file? helper_path
|
@@ -0,0 +1,73 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/apigeeregistry/v1/provisioning_service.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
require 'google/api/client_pb'
|
8
|
+
require 'google/api/field_behavior_pb'
|
9
|
+
require 'google/api/resource_pb'
|
10
|
+
require 'google/longrunning/operations_pb'
|
11
|
+
require 'google/protobuf/timestamp_pb'
|
12
|
+
|
13
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
|
+
add_file("google/cloud/apigeeregistry/v1/provisioning_service.proto", :syntax => :proto3) do
|
15
|
+
add_message "google.cloud.apigeeregistry.v1.CreateInstanceRequest" do
|
16
|
+
optional :parent, :string, 1
|
17
|
+
optional :instance_id, :string, 2
|
18
|
+
optional :instance, :message, 3, "google.cloud.apigeeregistry.v1.Instance"
|
19
|
+
end
|
20
|
+
add_message "google.cloud.apigeeregistry.v1.DeleteInstanceRequest" do
|
21
|
+
optional :name, :string, 1
|
22
|
+
end
|
23
|
+
add_message "google.cloud.apigeeregistry.v1.GetInstanceRequest" do
|
24
|
+
optional :name, :string, 1
|
25
|
+
end
|
26
|
+
add_message "google.cloud.apigeeregistry.v1.OperationMetadata" do
|
27
|
+
optional :create_time, :message, 1, "google.protobuf.Timestamp"
|
28
|
+
optional :end_time, :message, 2, "google.protobuf.Timestamp"
|
29
|
+
optional :target, :string, 3
|
30
|
+
optional :verb, :string, 4
|
31
|
+
optional :status_message, :string, 5
|
32
|
+
optional :cancellation_requested, :bool, 6
|
33
|
+
optional :api_version, :string, 7
|
34
|
+
end
|
35
|
+
add_message "google.cloud.apigeeregistry.v1.Instance" do
|
36
|
+
optional :name, :string, 1
|
37
|
+
optional :create_time, :message, 2, "google.protobuf.Timestamp"
|
38
|
+
optional :update_time, :message, 3, "google.protobuf.Timestamp"
|
39
|
+
optional :state, :enum, 4, "google.cloud.apigeeregistry.v1.Instance.State"
|
40
|
+
optional :state_message, :string, 5
|
41
|
+
optional :config, :message, 6, "google.cloud.apigeeregistry.v1.Instance.Config"
|
42
|
+
end
|
43
|
+
add_message "google.cloud.apigeeregistry.v1.Instance.Config" do
|
44
|
+
optional :location, :string, 1
|
45
|
+
optional :cmek_key_name, :string, 2
|
46
|
+
end
|
47
|
+
add_enum "google.cloud.apigeeregistry.v1.Instance.State" do
|
48
|
+
value :STATE_UNSPECIFIED, 0
|
49
|
+
value :INACTIVE, 1
|
50
|
+
value :CREATING, 2
|
51
|
+
value :ACTIVE, 3
|
52
|
+
value :UPDATING, 4
|
53
|
+
value :DELETING, 5
|
54
|
+
value :FAILED, 6
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
module Google
|
60
|
+
module Cloud
|
61
|
+
module ApigeeRegistry
|
62
|
+
module V1
|
63
|
+
CreateInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.CreateInstanceRequest").msgclass
|
64
|
+
DeleteInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.DeleteInstanceRequest").msgclass
|
65
|
+
GetInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.GetInstanceRequest").msgclass
|
66
|
+
OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.OperationMetadata").msgclass
|
67
|
+
Instance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.Instance").msgclass
|
68
|
+
Instance::Config = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.Instance.Config").msgclass
|
69
|
+
Instance::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.Instance.State").enummodule
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/apigeeregistry/v1/provisioning_service.proto for package 'Google.Cloud.ApigeeRegistry.V1'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2022 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/apigeeregistry/v1/provisioning_service_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module ApigeeRegistry
|
25
|
+
module V1
|
26
|
+
module Provisioning
|
27
|
+
# The service that is used for managing the data plane provisioning of the
|
28
|
+
# Registry.
|
29
|
+
class Service
|
30
|
+
|
31
|
+
include ::GRPC::GenericService
|
32
|
+
|
33
|
+
self.marshal_class_method = :encode
|
34
|
+
self.unmarshal_class_method = :decode
|
35
|
+
self.service_name = 'google.cloud.apigeeregistry.v1.Provisioning'
|
36
|
+
|
37
|
+
# Provisions instance resources for the Registry.
|
38
|
+
rpc :CreateInstance, ::Google::Cloud::ApigeeRegistry::V1::CreateInstanceRequest, ::Google::Longrunning::Operation
|
39
|
+
# Deletes the Registry instance.
|
40
|
+
rpc :DeleteInstance, ::Google::Cloud::ApigeeRegistry::V1::DeleteInstanceRequest, ::Google::Longrunning::Operation
|
41
|
+
# Gets details of a single Instance.
|
42
|
+
rpc :GetInstance, ::Google::Cloud::ApigeeRegistry::V1::GetInstanceRequest, ::Google::Cloud::ApigeeRegistry::V1::Instance
|
43
|
+
end
|
44
|
+
|
45
|
+
Stub = Service.rpc_stub_class
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,90 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/apigeeregistry/v1/registry_models.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/field_behavior_pb'
|
7
|
+
require 'google/api/resource_pb'
|
8
|
+
require 'google/protobuf/timestamp_pb'
|
9
|
+
|
10
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
|
+
add_file("google/cloud/apigeeregistry/v1/registry_models.proto", :syntax => :proto3) do
|
12
|
+
add_message "google.cloud.apigeeregistry.v1.Api" do
|
13
|
+
optional :name, :string, 1
|
14
|
+
optional :display_name, :string, 2
|
15
|
+
optional :description, :string, 3
|
16
|
+
optional :create_time, :message, 4, "google.protobuf.Timestamp"
|
17
|
+
optional :update_time, :message, 5, "google.protobuf.Timestamp"
|
18
|
+
optional :availability, :string, 6
|
19
|
+
optional :recommended_version, :string, 7
|
20
|
+
optional :recommended_deployment, :string, 8
|
21
|
+
map :labels, :string, :string, 9
|
22
|
+
map :annotations, :string, :string, 10
|
23
|
+
end
|
24
|
+
add_message "google.cloud.apigeeregistry.v1.ApiVersion" do
|
25
|
+
optional :name, :string, 1
|
26
|
+
optional :display_name, :string, 2
|
27
|
+
optional :description, :string, 3
|
28
|
+
optional :create_time, :message, 4, "google.protobuf.Timestamp"
|
29
|
+
optional :update_time, :message, 5, "google.protobuf.Timestamp"
|
30
|
+
optional :state, :string, 6
|
31
|
+
map :labels, :string, :string, 7
|
32
|
+
map :annotations, :string, :string, 8
|
33
|
+
end
|
34
|
+
add_message "google.cloud.apigeeregistry.v1.ApiSpec" do
|
35
|
+
optional :name, :string, 1
|
36
|
+
optional :filename, :string, 2
|
37
|
+
optional :description, :string, 3
|
38
|
+
optional :revision_id, :string, 4
|
39
|
+
optional :create_time, :message, 5, "google.protobuf.Timestamp"
|
40
|
+
optional :revision_create_time, :message, 6, "google.protobuf.Timestamp"
|
41
|
+
optional :revision_update_time, :message, 7, "google.protobuf.Timestamp"
|
42
|
+
optional :mime_type, :string, 8
|
43
|
+
optional :size_bytes, :int32, 9
|
44
|
+
optional :hash, :string, 10
|
45
|
+
optional :source_uri, :string, 11
|
46
|
+
optional :contents, :bytes, 12
|
47
|
+
map :labels, :string, :string, 14
|
48
|
+
map :annotations, :string, :string, 15
|
49
|
+
end
|
50
|
+
add_message "google.cloud.apigeeregistry.v1.ApiDeployment" do
|
51
|
+
optional :name, :string, 1
|
52
|
+
optional :display_name, :string, 2
|
53
|
+
optional :description, :string, 3
|
54
|
+
optional :revision_id, :string, 4
|
55
|
+
optional :create_time, :message, 5, "google.protobuf.Timestamp"
|
56
|
+
optional :revision_create_time, :message, 6, "google.protobuf.Timestamp"
|
57
|
+
optional :revision_update_time, :message, 7, "google.protobuf.Timestamp"
|
58
|
+
optional :api_spec_revision, :string, 8
|
59
|
+
optional :endpoint_uri, :string, 9
|
60
|
+
optional :external_channel_uri, :string, 10
|
61
|
+
optional :intended_audience, :string, 11
|
62
|
+
optional :access_guidance, :string, 12
|
63
|
+
map :labels, :string, :string, 14
|
64
|
+
map :annotations, :string, :string, 15
|
65
|
+
end
|
66
|
+
add_message "google.cloud.apigeeregistry.v1.Artifact" do
|
67
|
+
optional :name, :string, 1
|
68
|
+
optional :create_time, :message, 2, "google.protobuf.Timestamp"
|
69
|
+
optional :update_time, :message, 3, "google.protobuf.Timestamp"
|
70
|
+
optional :mime_type, :string, 4
|
71
|
+
optional :size_bytes, :int32, 5
|
72
|
+
optional :hash, :string, 6
|
73
|
+
optional :contents, :bytes, 7
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
module Google
|
79
|
+
module Cloud
|
80
|
+
module ApigeeRegistry
|
81
|
+
module V1
|
82
|
+
Api = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.Api").msgclass
|
83
|
+
ApiVersion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.ApiVersion").msgclass
|
84
|
+
ApiSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.ApiSpec").msgclass
|
85
|
+
ApiDeployment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.ApiDeployment").msgclass
|
86
|
+
Artifact = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.Artifact").msgclass
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|