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,245 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/apigeeregistry/v1/registry_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/httpbody_pb'
|
10
|
+
require 'google/api/resource_pb'
|
11
|
+
require 'google/cloud/apigeeregistry/v1/registry_models_pb'
|
12
|
+
require 'google/protobuf/empty_pb'
|
13
|
+
require 'google/protobuf/field_mask_pb'
|
14
|
+
|
15
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
16
|
+
add_file("google/cloud/apigeeregistry/v1/registry_service.proto", :syntax => :proto3) do
|
17
|
+
add_message "google.cloud.apigeeregistry.v1.ListApisRequest" do
|
18
|
+
optional :parent, :string, 1
|
19
|
+
optional :page_size, :int32, 2
|
20
|
+
optional :page_token, :string, 3
|
21
|
+
optional :filter, :string, 4
|
22
|
+
end
|
23
|
+
add_message "google.cloud.apigeeregistry.v1.ListApisResponse" do
|
24
|
+
repeated :apis, :message, 1, "google.cloud.apigeeregistry.v1.Api"
|
25
|
+
optional :next_page_token, :string, 2
|
26
|
+
end
|
27
|
+
add_message "google.cloud.apigeeregistry.v1.GetApiRequest" do
|
28
|
+
optional :name, :string, 1
|
29
|
+
end
|
30
|
+
add_message "google.cloud.apigeeregistry.v1.CreateApiRequest" do
|
31
|
+
optional :parent, :string, 1
|
32
|
+
optional :api, :message, 2, "google.cloud.apigeeregistry.v1.Api"
|
33
|
+
optional :api_id, :string, 3
|
34
|
+
end
|
35
|
+
add_message "google.cloud.apigeeregistry.v1.UpdateApiRequest" do
|
36
|
+
optional :api, :message, 1, "google.cloud.apigeeregistry.v1.Api"
|
37
|
+
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
38
|
+
optional :allow_missing, :bool, 3
|
39
|
+
end
|
40
|
+
add_message "google.cloud.apigeeregistry.v1.DeleteApiRequest" do
|
41
|
+
optional :name, :string, 1
|
42
|
+
end
|
43
|
+
add_message "google.cloud.apigeeregistry.v1.ListApiVersionsRequest" do
|
44
|
+
optional :parent, :string, 1
|
45
|
+
optional :page_size, :int32, 2
|
46
|
+
optional :page_token, :string, 3
|
47
|
+
optional :filter, :string, 4
|
48
|
+
end
|
49
|
+
add_message "google.cloud.apigeeregistry.v1.ListApiVersionsResponse" do
|
50
|
+
repeated :api_versions, :message, 1, "google.cloud.apigeeregistry.v1.ApiVersion"
|
51
|
+
optional :next_page_token, :string, 2
|
52
|
+
end
|
53
|
+
add_message "google.cloud.apigeeregistry.v1.GetApiVersionRequest" do
|
54
|
+
optional :name, :string, 1
|
55
|
+
end
|
56
|
+
add_message "google.cloud.apigeeregistry.v1.CreateApiVersionRequest" do
|
57
|
+
optional :parent, :string, 1
|
58
|
+
optional :api_version, :message, 2, "google.cloud.apigeeregistry.v1.ApiVersion"
|
59
|
+
optional :api_version_id, :string, 3
|
60
|
+
end
|
61
|
+
add_message "google.cloud.apigeeregistry.v1.UpdateApiVersionRequest" do
|
62
|
+
optional :api_version, :message, 1, "google.cloud.apigeeregistry.v1.ApiVersion"
|
63
|
+
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
64
|
+
optional :allow_missing, :bool, 3
|
65
|
+
end
|
66
|
+
add_message "google.cloud.apigeeregistry.v1.DeleteApiVersionRequest" do
|
67
|
+
optional :name, :string, 1
|
68
|
+
end
|
69
|
+
add_message "google.cloud.apigeeregistry.v1.ListApiSpecsRequest" do
|
70
|
+
optional :parent, :string, 1
|
71
|
+
optional :page_size, :int32, 2
|
72
|
+
optional :page_token, :string, 3
|
73
|
+
optional :filter, :string, 4
|
74
|
+
end
|
75
|
+
add_message "google.cloud.apigeeregistry.v1.ListApiSpecsResponse" do
|
76
|
+
repeated :api_specs, :message, 1, "google.cloud.apigeeregistry.v1.ApiSpec"
|
77
|
+
optional :next_page_token, :string, 2
|
78
|
+
end
|
79
|
+
add_message "google.cloud.apigeeregistry.v1.GetApiSpecRequest" do
|
80
|
+
optional :name, :string, 1
|
81
|
+
end
|
82
|
+
add_message "google.cloud.apigeeregistry.v1.GetApiSpecContentsRequest" do
|
83
|
+
optional :name, :string, 1
|
84
|
+
end
|
85
|
+
add_message "google.cloud.apigeeregistry.v1.CreateApiSpecRequest" do
|
86
|
+
optional :parent, :string, 1
|
87
|
+
optional :api_spec, :message, 2, "google.cloud.apigeeregistry.v1.ApiSpec"
|
88
|
+
optional :api_spec_id, :string, 3
|
89
|
+
end
|
90
|
+
add_message "google.cloud.apigeeregistry.v1.UpdateApiSpecRequest" do
|
91
|
+
optional :api_spec, :message, 1, "google.cloud.apigeeregistry.v1.ApiSpec"
|
92
|
+
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
93
|
+
optional :allow_missing, :bool, 3
|
94
|
+
end
|
95
|
+
add_message "google.cloud.apigeeregistry.v1.DeleteApiSpecRequest" do
|
96
|
+
optional :name, :string, 1
|
97
|
+
optional :force, :bool, 2
|
98
|
+
end
|
99
|
+
add_message "google.cloud.apigeeregistry.v1.TagApiSpecRevisionRequest" do
|
100
|
+
optional :name, :string, 1
|
101
|
+
optional :tag, :string, 2
|
102
|
+
end
|
103
|
+
add_message "google.cloud.apigeeregistry.v1.ListApiSpecRevisionsRequest" do
|
104
|
+
optional :name, :string, 1
|
105
|
+
optional :page_size, :int32, 2
|
106
|
+
optional :page_token, :string, 3
|
107
|
+
end
|
108
|
+
add_message "google.cloud.apigeeregistry.v1.ListApiSpecRevisionsResponse" do
|
109
|
+
repeated :api_specs, :message, 1, "google.cloud.apigeeregistry.v1.ApiSpec"
|
110
|
+
optional :next_page_token, :string, 2
|
111
|
+
end
|
112
|
+
add_message "google.cloud.apigeeregistry.v1.RollbackApiSpecRequest" do
|
113
|
+
optional :name, :string, 1
|
114
|
+
optional :revision_id, :string, 2
|
115
|
+
end
|
116
|
+
add_message "google.cloud.apigeeregistry.v1.DeleteApiSpecRevisionRequest" do
|
117
|
+
optional :name, :string, 1
|
118
|
+
end
|
119
|
+
add_message "google.cloud.apigeeregistry.v1.ListApiDeploymentsRequest" do
|
120
|
+
optional :parent, :string, 1
|
121
|
+
optional :page_size, :int32, 2
|
122
|
+
optional :page_token, :string, 3
|
123
|
+
optional :filter, :string, 4
|
124
|
+
end
|
125
|
+
add_message "google.cloud.apigeeregistry.v1.ListApiDeploymentsResponse" do
|
126
|
+
repeated :api_deployments, :message, 1, "google.cloud.apigeeregistry.v1.ApiDeployment"
|
127
|
+
optional :next_page_token, :string, 2
|
128
|
+
end
|
129
|
+
add_message "google.cloud.apigeeregistry.v1.GetApiDeploymentRequest" do
|
130
|
+
optional :name, :string, 1
|
131
|
+
end
|
132
|
+
add_message "google.cloud.apigeeregistry.v1.CreateApiDeploymentRequest" do
|
133
|
+
optional :parent, :string, 1
|
134
|
+
optional :api_deployment, :message, 2, "google.cloud.apigeeregistry.v1.ApiDeployment"
|
135
|
+
optional :api_deployment_id, :string, 3
|
136
|
+
end
|
137
|
+
add_message "google.cloud.apigeeregistry.v1.UpdateApiDeploymentRequest" do
|
138
|
+
optional :api_deployment, :message, 1, "google.cloud.apigeeregistry.v1.ApiDeployment"
|
139
|
+
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
140
|
+
optional :allow_missing, :bool, 3
|
141
|
+
end
|
142
|
+
add_message "google.cloud.apigeeregistry.v1.DeleteApiDeploymentRequest" do
|
143
|
+
optional :name, :string, 1
|
144
|
+
optional :force, :bool, 2
|
145
|
+
end
|
146
|
+
add_message "google.cloud.apigeeregistry.v1.TagApiDeploymentRevisionRequest" do
|
147
|
+
optional :name, :string, 1
|
148
|
+
optional :tag, :string, 2
|
149
|
+
end
|
150
|
+
add_message "google.cloud.apigeeregistry.v1.ListApiDeploymentRevisionsRequest" do
|
151
|
+
optional :name, :string, 1
|
152
|
+
optional :page_size, :int32, 2
|
153
|
+
optional :page_token, :string, 3
|
154
|
+
end
|
155
|
+
add_message "google.cloud.apigeeregistry.v1.ListApiDeploymentRevisionsResponse" do
|
156
|
+
repeated :api_deployments, :message, 1, "google.cloud.apigeeregistry.v1.ApiDeployment"
|
157
|
+
optional :next_page_token, :string, 2
|
158
|
+
end
|
159
|
+
add_message "google.cloud.apigeeregistry.v1.RollbackApiDeploymentRequest" do
|
160
|
+
optional :name, :string, 1
|
161
|
+
optional :revision_id, :string, 2
|
162
|
+
end
|
163
|
+
add_message "google.cloud.apigeeregistry.v1.DeleteApiDeploymentRevisionRequest" do
|
164
|
+
optional :name, :string, 1
|
165
|
+
end
|
166
|
+
add_message "google.cloud.apigeeregistry.v1.ListArtifactsRequest" do
|
167
|
+
optional :parent, :string, 1
|
168
|
+
optional :page_size, :int32, 2
|
169
|
+
optional :page_token, :string, 3
|
170
|
+
optional :filter, :string, 4
|
171
|
+
end
|
172
|
+
add_message "google.cloud.apigeeregistry.v1.ListArtifactsResponse" do
|
173
|
+
repeated :artifacts, :message, 1, "google.cloud.apigeeregistry.v1.Artifact"
|
174
|
+
optional :next_page_token, :string, 2
|
175
|
+
end
|
176
|
+
add_message "google.cloud.apigeeregistry.v1.GetArtifactRequest" do
|
177
|
+
optional :name, :string, 1
|
178
|
+
end
|
179
|
+
add_message "google.cloud.apigeeregistry.v1.GetArtifactContentsRequest" do
|
180
|
+
optional :name, :string, 1
|
181
|
+
end
|
182
|
+
add_message "google.cloud.apigeeregistry.v1.CreateArtifactRequest" do
|
183
|
+
optional :parent, :string, 1
|
184
|
+
optional :artifact, :message, 2, "google.cloud.apigeeregistry.v1.Artifact"
|
185
|
+
optional :artifact_id, :string, 3
|
186
|
+
end
|
187
|
+
add_message "google.cloud.apigeeregistry.v1.ReplaceArtifactRequest" do
|
188
|
+
optional :artifact, :message, 1, "google.cloud.apigeeregistry.v1.Artifact"
|
189
|
+
end
|
190
|
+
add_message "google.cloud.apigeeregistry.v1.DeleteArtifactRequest" do
|
191
|
+
optional :name, :string, 1
|
192
|
+
end
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
module Google
|
197
|
+
module Cloud
|
198
|
+
module ApigeeRegistry
|
199
|
+
module V1
|
200
|
+
ListApisRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.ListApisRequest").msgclass
|
201
|
+
ListApisResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.ListApisResponse").msgclass
|
202
|
+
GetApiRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.GetApiRequest").msgclass
|
203
|
+
CreateApiRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.CreateApiRequest").msgclass
|
204
|
+
UpdateApiRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.UpdateApiRequest").msgclass
|
205
|
+
DeleteApiRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.DeleteApiRequest").msgclass
|
206
|
+
ListApiVersionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.ListApiVersionsRequest").msgclass
|
207
|
+
ListApiVersionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.ListApiVersionsResponse").msgclass
|
208
|
+
GetApiVersionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.GetApiVersionRequest").msgclass
|
209
|
+
CreateApiVersionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.CreateApiVersionRequest").msgclass
|
210
|
+
UpdateApiVersionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.UpdateApiVersionRequest").msgclass
|
211
|
+
DeleteApiVersionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.DeleteApiVersionRequest").msgclass
|
212
|
+
ListApiSpecsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.ListApiSpecsRequest").msgclass
|
213
|
+
ListApiSpecsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.ListApiSpecsResponse").msgclass
|
214
|
+
GetApiSpecRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.GetApiSpecRequest").msgclass
|
215
|
+
GetApiSpecContentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.GetApiSpecContentsRequest").msgclass
|
216
|
+
CreateApiSpecRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.CreateApiSpecRequest").msgclass
|
217
|
+
UpdateApiSpecRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.UpdateApiSpecRequest").msgclass
|
218
|
+
DeleteApiSpecRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.DeleteApiSpecRequest").msgclass
|
219
|
+
TagApiSpecRevisionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.TagApiSpecRevisionRequest").msgclass
|
220
|
+
ListApiSpecRevisionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.ListApiSpecRevisionsRequest").msgclass
|
221
|
+
ListApiSpecRevisionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.ListApiSpecRevisionsResponse").msgclass
|
222
|
+
RollbackApiSpecRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.RollbackApiSpecRequest").msgclass
|
223
|
+
DeleteApiSpecRevisionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.DeleteApiSpecRevisionRequest").msgclass
|
224
|
+
ListApiDeploymentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.ListApiDeploymentsRequest").msgclass
|
225
|
+
ListApiDeploymentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.ListApiDeploymentsResponse").msgclass
|
226
|
+
GetApiDeploymentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.GetApiDeploymentRequest").msgclass
|
227
|
+
CreateApiDeploymentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.CreateApiDeploymentRequest").msgclass
|
228
|
+
UpdateApiDeploymentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.UpdateApiDeploymentRequest").msgclass
|
229
|
+
DeleteApiDeploymentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.DeleteApiDeploymentRequest").msgclass
|
230
|
+
TagApiDeploymentRevisionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.TagApiDeploymentRevisionRequest").msgclass
|
231
|
+
ListApiDeploymentRevisionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.ListApiDeploymentRevisionsRequest").msgclass
|
232
|
+
ListApiDeploymentRevisionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.ListApiDeploymentRevisionsResponse").msgclass
|
233
|
+
RollbackApiDeploymentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.RollbackApiDeploymentRequest").msgclass
|
234
|
+
DeleteApiDeploymentRevisionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.DeleteApiDeploymentRevisionRequest").msgclass
|
235
|
+
ListArtifactsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.ListArtifactsRequest").msgclass
|
236
|
+
ListArtifactsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.ListArtifactsResponse").msgclass
|
237
|
+
GetArtifactRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.GetArtifactRequest").msgclass
|
238
|
+
GetArtifactContentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.GetArtifactContentsRequest").msgclass
|
239
|
+
CreateArtifactRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.CreateArtifactRequest").msgclass
|
240
|
+
ReplaceArtifactRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.ReplaceArtifactRequest").msgclass
|
241
|
+
DeleteArtifactRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apigeeregistry.v1.DeleteArtifactRequest").msgclass
|
242
|
+
end
|
243
|
+
end
|
244
|
+
end
|
245
|
+
end
|
@@ -0,0 +1,128 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/apigeeregistry/v1/registry_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/registry_service_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module ApigeeRegistry
|
25
|
+
module V1
|
26
|
+
module Registry
|
27
|
+
# The Registry service allows teams to manage descriptions of APIs.
|
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.apigeeregistry.v1.Registry'
|
35
|
+
|
36
|
+
# ListApis returns matching APIs.
|
37
|
+
rpc :ListApis, ::Google::Cloud::ApigeeRegistry::V1::ListApisRequest, ::Google::Cloud::ApigeeRegistry::V1::ListApisResponse
|
38
|
+
# GetApi returns a specified API.
|
39
|
+
rpc :GetApi, ::Google::Cloud::ApigeeRegistry::V1::GetApiRequest, ::Google::Cloud::ApigeeRegistry::V1::Api
|
40
|
+
# CreateApi creates a specified API.
|
41
|
+
rpc :CreateApi, ::Google::Cloud::ApigeeRegistry::V1::CreateApiRequest, ::Google::Cloud::ApigeeRegistry::V1::Api
|
42
|
+
# UpdateApi can be used to modify a specified API.
|
43
|
+
rpc :UpdateApi, ::Google::Cloud::ApigeeRegistry::V1::UpdateApiRequest, ::Google::Cloud::ApigeeRegistry::V1::Api
|
44
|
+
# DeleteApi removes a specified API and all of the resources that it
|
45
|
+
# owns.
|
46
|
+
rpc :DeleteApi, ::Google::Cloud::ApigeeRegistry::V1::DeleteApiRequest, ::Google::Protobuf::Empty
|
47
|
+
# ListApiVersions returns matching versions.
|
48
|
+
rpc :ListApiVersions, ::Google::Cloud::ApigeeRegistry::V1::ListApiVersionsRequest, ::Google::Cloud::ApigeeRegistry::V1::ListApiVersionsResponse
|
49
|
+
# GetApiVersion returns a specified version.
|
50
|
+
rpc :GetApiVersion, ::Google::Cloud::ApigeeRegistry::V1::GetApiVersionRequest, ::Google::Cloud::ApigeeRegistry::V1::ApiVersion
|
51
|
+
# CreateApiVersion creates a specified version.
|
52
|
+
rpc :CreateApiVersion, ::Google::Cloud::ApigeeRegistry::V1::CreateApiVersionRequest, ::Google::Cloud::ApigeeRegistry::V1::ApiVersion
|
53
|
+
# UpdateApiVersion can be used to modify a specified version.
|
54
|
+
rpc :UpdateApiVersion, ::Google::Cloud::ApigeeRegistry::V1::UpdateApiVersionRequest, ::Google::Cloud::ApigeeRegistry::V1::ApiVersion
|
55
|
+
# DeleteApiVersion removes a specified version and all of the resources that
|
56
|
+
# it owns.
|
57
|
+
rpc :DeleteApiVersion, ::Google::Cloud::ApigeeRegistry::V1::DeleteApiVersionRequest, ::Google::Protobuf::Empty
|
58
|
+
# ListApiSpecs returns matching specs.
|
59
|
+
rpc :ListApiSpecs, ::Google::Cloud::ApigeeRegistry::V1::ListApiSpecsRequest, ::Google::Cloud::ApigeeRegistry::V1::ListApiSpecsResponse
|
60
|
+
# GetApiSpec returns a specified spec.
|
61
|
+
rpc :GetApiSpec, ::Google::Cloud::ApigeeRegistry::V1::GetApiSpecRequest, ::Google::Cloud::ApigeeRegistry::V1::ApiSpec
|
62
|
+
# GetApiSpecContents returns the contents of a specified spec.
|
63
|
+
# If specs are stored with GZip compression, the default behavior
|
64
|
+
# is to return the spec uncompressed (the mime_type response field
|
65
|
+
# indicates the exact format returned).
|
66
|
+
rpc :GetApiSpecContents, ::Google::Cloud::ApigeeRegistry::V1::GetApiSpecContentsRequest, ::Google::Api::HttpBody
|
67
|
+
# CreateApiSpec creates a specified spec.
|
68
|
+
rpc :CreateApiSpec, ::Google::Cloud::ApigeeRegistry::V1::CreateApiSpecRequest, ::Google::Cloud::ApigeeRegistry::V1::ApiSpec
|
69
|
+
# UpdateApiSpec can be used to modify a specified spec.
|
70
|
+
rpc :UpdateApiSpec, ::Google::Cloud::ApigeeRegistry::V1::UpdateApiSpecRequest, ::Google::Cloud::ApigeeRegistry::V1::ApiSpec
|
71
|
+
# DeleteApiSpec removes a specified spec, all revisions, and all child
|
72
|
+
# resources (e.g. artifacts).
|
73
|
+
rpc :DeleteApiSpec, ::Google::Cloud::ApigeeRegistry::V1::DeleteApiSpecRequest, ::Google::Protobuf::Empty
|
74
|
+
# TagApiSpecRevision adds a tag to a specified revision of a spec.
|
75
|
+
rpc :TagApiSpecRevision, ::Google::Cloud::ApigeeRegistry::V1::TagApiSpecRevisionRequest, ::Google::Cloud::ApigeeRegistry::V1::ApiSpec
|
76
|
+
# ListApiSpecRevisions lists all revisions of a spec.
|
77
|
+
# Revisions are returned in descending order of revision creation time.
|
78
|
+
rpc :ListApiSpecRevisions, ::Google::Cloud::ApigeeRegistry::V1::ListApiSpecRevisionsRequest, ::Google::Cloud::ApigeeRegistry::V1::ListApiSpecRevisionsResponse
|
79
|
+
# RollbackApiSpec sets the current revision to a specified prior revision.
|
80
|
+
# Note that this creates a new revision with a new revision ID.
|
81
|
+
rpc :RollbackApiSpec, ::Google::Cloud::ApigeeRegistry::V1::RollbackApiSpecRequest, ::Google::Cloud::ApigeeRegistry::V1::ApiSpec
|
82
|
+
# DeleteApiSpecRevision deletes a revision of a spec.
|
83
|
+
rpc :DeleteApiSpecRevision, ::Google::Cloud::ApigeeRegistry::V1::DeleteApiSpecRevisionRequest, ::Google::Cloud::ApigeeRegistry::V1::ApiSpec
|
84
|
+
# ListApiDeployments returns matching deployments.
|
85
|
+
rpc :ListApiDeployments, ::Google::Cloud::ApigeeRegistry::V1::ListApiDeploymentsRequest, ::Google::Cloud::ApigeeRegistry::V1::ListApiDeploymentsResponse
|
86
|
+
# GetApiDeployment returns a specified deployment.
|
87
|
+
rpc :GetApiDeployment, ::Google::Cloud::ApigeeRegistry::V1::GetApiDeploymentRequest, ::Google::Cloud::ApigeeRegistry::V1::ApiDeployment
|
88
|
+
# CreateApiDeployment creates a specified deployment.
|
89
|
+
rpc :CreateApiDeployment, ::Google::Cloud::ApigeeRegistry::V1::CreateApiDeploymentRequest, ::Google::Cloud::ApigeeRegistry::V1::ApiDeployment
|
90
|
+
# UpdateApiDeployment can be used to modify a specified deployment.
|
91
|
+
rpc :UpdateApiDeployment, ::Google::Cloud::ApigeeRegistry::V1::UpdateApiDeploymentRequest, ::Google::Cloud::ApigeeRegistry::V1::ApiDeployment
|
92
|
+
# DeleteApiDeployment removes a specified deployment, all revisions, and all
|
93
|
+
# child resources (e.g. artifacts).
|
94
|
+
rpc :DeleteApiDeployment, ::Google::Cloud::ApigeeRegistry::V1::DeleteApiDeploymentRequest, ::Google::Protobuf::Empty
|
95
|
+
# TagApiDeploymentRevision adds a tag to a specified revision of a
|
96
|
+
# deployment.
|
97
|
+
rpc :TagApiDeploymentRevision, ::Google::Cloud::ApigeeRegistry::V1::TagApiDeploymentRevisionRequest, ::Google::Cloud::ApigeeRegistry::V1::ApiDeployment
|
98
|
+
# ListApiDeploymentRevisions lists all revisions of a deployment.
|
99
|
+
# Revisions are returned in descending order of revision creation time.
|
100
|
+
rpc :ListApiDeploymentRevisions, ::Google::Cloud::ApigeeRegistry::V1::ListApiDeploymentRevisionsRequest, ::Google::Cloud::ApigeeRegistry::V1::ListApiDeploymentRevisionsResponse
|
101
|
+
# RollbackApiDeployment sets the current revision to a specified prior
|
102
|
+
# revision. Note that this creates a new revision with a new revision ID.
|
103
|
+
rpc :RollbackApiDeployment, ::Google::Cloud::ApigeeRegistry::V1::RollbackApiDeploymentRequest, ::Google::Cloud::ApigeeRegistry::V1::ApiDeployment
|
104
|
+
# DeleteApiDeploymentRevision deletes a revision of a deployment.
|
105
|
+
rpc :DeleteApiDeploymentRevision, ::Google::Cloud::ApigeeRegistry::V1::DeleteApiDeploymentRevisionRequest, ::Google::Cloud::ApigeeRegistry::V1::ApiDeployment
|
106
|
+
# ListArtifacts returns matching artifacts.
|
107
|
+
rpc :ListArtifacts, ::Google::Cloud::ApigeeRegistry::V1::ListArtifactsRequest, ::Google::Cloud::ApigeeRegistry::V1::ListArtifactsResponse
|
108
|
+
# GetArtifact returns a specified artifact.
|
109
|
+
rpc :GetArtifact, ::Google::Cloud::ApigeeRegistry::V1::GetArtifactRequest, ::Google::Cloud::ApigeeRegistry::V1::Artifact
|
110
|
+
# GetArtifactContents returns the contents of a specified artifact.
|
111
|
+
# If artifacts are stored with GZip compression, the default behavior
|
112
|
+
# is to return the artifact uncompressed (the mime_type response field
|
113
|
+
# indicates the exact format returned).
|
114
|
+
rpc :GetArtifactContents, ::Google::Cloud::ApigeeRegistry::V1::GetArtifactContentsRequest, ::Google::Api::HttpBody
|
115
|
+
# CreateArtifact creates a specified artifact.
|
116
|
+
rpc :CreateArtifact, ::Google::Cloud::ApigeeRegistry::V1::CreateArtifactRequest, ::Google::Cloud::ApigeeRegistry::V1::Artifact
|
117
|
+
# ReplaceArtifact can be used to replace a specified artifact.
|
118
|
+
rpc :ReplaceArtifact, ::Google::Cloud::ApigeeRegistry::V1::ReplaceArtifactRequest, ::Google::Cloud::ApigeeRegistry::V1::Artifact
|
119
|
+
# DeleteArtifact removes a specified artifact.
|
120
|
+
rpc :DeleteArtifact, ::Google::Cloud::ApigeeRegistry::V1::DeleteArtifactRequest, ::Google::Protobuf::Empty
|
121
|
+
end
|
122
|
+
|
123
|
+
Stub = Service.rpc_stub_class
|
124
|
+
end
|
125
|
+
end
|
126
|
+
end
|
127
|
+
end
|
128
|
+
end
|
@@ -0,0 +1,21 @@
|
|
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
|
+
# 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/apigee_registry/v1"
|
@@ -0,0 +1,71 @@
|
|
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 Api
|
22
|
+
# An indicator of the behavior of a given field (for example, that a field
|
23
|
+
# is required in requests, or given as output but ignored as input).
|
24
|
+
# This **does not** change the behavior in protocol buffers itself; it only
|
25
|
+
# denotes the behavior and may affect how API tooling handles the field.
|
26
|
+
#
|
27
|
+
# Note: This enum **may** receive new values in the future.
|
28
|
+
module FieldBehavior
|
29
|
+
# Conventional default for enums. Do not use this.
|
30
|
+
FIELD_BEHAVIOR_UNSPECIFIED = 0
|
31
|
+
|
32
|
+
# Specifically denotes a field as optional.
|
33
|
+
# While all fields in protocol buffers are optional, this may be specified
|
34
|
+
# for emphasis if appropriate.
|
35
|
+
OPTIONAL = 1
|
36
|
+
|
37
|
+
# Denotes a field as required.
|
38
|
+
# This indicates that the field **must** be provided as part of the request,
|
39
|
+
# and failure to do so will cause an error (usually `INVALID_ARGUMENT`).
|
40
|
+
REQUIRED = 2
|
41
|
+
|
42
|
+
# Denotes a field as output only.
|
43
|
+
# This indicates that the field is provided in responses, but including the
|
44
|
+
# field in a request does nothing (the server *must* ignore it and
|
45
|
+
# *must not* throw an error as a result of the field's presence).
|
46
|
+
OUTPUT_ONLY = 3
|
47
|
+
|
48
|
+
# Denotes a field as input only.
|
49
|
+
# This indicates that the field is provided in requests, and the
|
50
|
+
# corresponding field is not included in output.
|
51
|
+
INPUT_ONLY = 4
|
52
|
+
|
53
|
+
# Denotes a field as immutable.
|
54
|
+
# This indicates that the field may be set once in a request to create a
|
55
|
+
# resource, but may not be changed thereafter.
|
56
|
+
IMMUTABLE = 5
|
57
|
+
|
58
|
+
# Denotes that a (repeated) field is an unordered list.
|
59
|
+
# This indicates that the service may provide the elements of the list
|
60
|
+
# in any arbitrary order, rather than the order the user originally
|
61
|
+
# provided. Additionally, the list's order may or may not be stable.
|
62
|
+
UNORDERED_LIST = 6
|
63
|
+
|
64
|
+
# Denotes that this field returns a non-empty default value if not set.
|
65
|
+
# This indicates that if the user provides the empty value in a request,
|
66
|
+
# a non-empty value will be returned. The user will not be aware of what
|
67
|
+
# non-empty value to expect.
|
68
|
+
NON_EMPTY_DEFAULT = 7
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
@@ -0,0 +1,80 @@
|
|
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 Api
|
22
|
+
# Message that represents an arbitrary HTTP body. It should only be used for
|
23
|
+
# payload formats that can't be represented as JSON, such as raw binary or
|
24
|
+
# an HTML page.
|
25
|
+
#
|
26
|
+
#
|
27
|
+
# This message can be used both in streaming and non-streaming API methods in
|
28
|
+
# the request as well as the response.
|
29
|
+
#
|
30
|
+
# It can be used as a top-level request field, which is convenient if one
|
31
|
+
# wants to extract parameters from either the URL or HTTP template into the
|
32
|
+
# request fields and also want access to the raw HTTP body.
|
33
|
+
#
|
34
|
+
# Example:
|
35
|
+
#
|
36
|
+
# message GetResourceRequest {
|
37
|
+
# // A unique request id.
|
38
|
+
# string request_id = 1;
|
39
|
+
#
|
40
|
+
# // The raw HTTP body is bound to this field.
|
41
|
+
# google.api.HttpBody http_body = 2;
|
42
|
+
#
|
43
|
+
# }
|
44
|
+
#
|
45
|
+
# service ResourceService {
|
46
|
+
# rpc GetResource(GetResourceRequest)
|
47
|
+
# returns (google.api.HttpBody);
|
48
|
+
# rpc UpdateResource(google.api.HttpBody)
|
49
|
+
# returns (google.protobuf.Empty);
|
50
|
+
#
|
51
|
+
# }
|
52
|
+
#
|
53
|
+
# Example with streaming methods:
|
54
|
+
#
|
55
|
+
# service CaldavService {
|
56
|
+
# rpc GetCalendar(stream google.api.HttpBody)
|
57
|
+
# returns (stream google.api.HttpBody);
|
58
|
+
# rpc UpdateCalendar(stream google.api.HttpBody)
|
59
|
+
# returns (stream google.api.HttpBody);
|
60
|
+
#
|
61
|
+
# }
|
62
|
+
#
|
63
|
+
# Use of this type only changes how the request and response bodies are
|
64
|
+
# handled, all other features will continue to work unchanged.
|
65
|
+
# @!attribute [rw] content_type
|
66
|
+
# @return [::String]
|
67
|
+
# The HTTP Content-Type header value specifying the content type of the body.
|
68
|
+
# @!attribute [rw] data
|
69
|
+
# @return [::String]
|
70
|
+
# The HTTP request/response body as raw binary.
|
71
|
+
# @!attribute [rw] extensions
|
72
|
+
# @return [::Array<::Google::Protobuf::Any>]
|
73
|
+
# Application specific response metadata. Must be set in the first response
|
74
|
+
# for streaming APIs.
|
75
|
+
class HttpBody
|
76
|
+
include ::Google::Protobuf::MessageExts
|
77
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|