forked from apigee/registry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadmin_models.proto
113 lines (91 loc) · 3.12 KB
/
admin_models.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
// Copyright 2021 Google LLC. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
syntax = "proto3";
package google.cloud.apigeeregistry.v1;
import "google/api/field_behavior.proto";
import "google/api/resource.proto";
import "google/protobuf/timestamp.proto";
option java_package = "com.google.cloud.apigeeregistry.v1";
option java_multiple_files = true;
option java_outer_classname = "AdminModelsProto";
option go_package = "github.com/apigee/registry/rpc;rpc";
// BuildInfo describes a server build.
message BuildInfo {
// Version of Go that produced this binary.
string go_version = 1;
// The main package path.
string path = 2;
// A module used to create the build.
message Module {
// The module path.
string path = 1;
// The module version.
string version = 2;
// The module checksum.
string sum = 3;
// An optional replacement for the module
Module replacement = 4;
}
// The main module.
Module main = 3;
// The dependencies of the build.
repeated Module dependencies = 4;
// Settings associated with the build.
map<string,string> settings = 5;
}
// Status represents the status of the service.
message Status {
// A string describing the status.
string message = 1;
// Information about the build of the server.
BuildInfo build = 2;
}
// Storage describes the data stored by the service.
message Storage {
// A string describing the storage backend.
string description = 1;
// A description of a collection in the backend database.
message Collection {
// The name of the collection.
string name = 1;
// The number of entries in the collection.
int64 count = 2;
}
// A list of collections in the storage backend.
// Collections are listed in alphabetical order.
repeated Collection collections = 2;
}
// A Project is a top-level description of a collection of APIs.
// Typically there would be one project for an entire organization.
// Note: in a Google Cloud deployment, this resource and associated methods
// will be omitted and its children will instead be associated with Google
// Cloud projects.
message Project {
option (google.api.resource) = {
type: "apigeeregistry.googleapis.com/Project"
pattern: "projects/{project}"
};
// Resource name.
string name = 1;
// Human-meaningful name.
string display_name = 2;
// A detailed description.
string description = 3;
// Creation timestamp.
google.protobuf.Timestamp create_time = 4
[(google.api.field_behavior) = OUTPUT_ONLY];
// Last update timestamp.
google.protobuf.Timestamp update_time = 5
[(google.api.field_behavior) = OUTPUT_ONLY];
}