evrblk 0.1.0 → 0.1.2

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.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +3 -5
  3. data/README.md +2 -4
  4. data/evrblk.gemspec +14 -12
  5. data/lib/evrblk/authn/alfa.rb +11 -11
  6. data/lib/evrblk/authn/base.rb +5 -11
  7. data/lib/evrblk/authn/bravo.rb +9 -8
  8. data/lib/evrblk/authn/request_signer.rb +16 -17
  9. data/lib/evrblk/grackle/v1beta/api_pb.rb +123 -0
  10. data/lib/evrblk/grackle/v1beta/api_services_pb.rb +69 -0
  11. data/lib/evrblk/grackle/v1beta/client.rb +235 -0
  12. data/lib/evrblk/hash_converter.rb +26 -27
  13. data/lib/evrblk/moab/v0/api_pb.rb +71 -0
  14. data/lib/evrblk/moab/v0/api_services_pb.rb +43 -0
  15. data/lib/evrblk/moab/{preview → v0}/client.rb +46 -36
  16. data/lib/evrblk/version.rb +1 -1
  17. data/lib/evrblk.rb +6 -15
  18. data/proto/evrblk/grackle/v1beta/api.proto +886 -0
  19. data/proto/{moab/preview → evrblk/moab/v0}/api.proto +93 -16
  20. metadata +11 -20
  21. data/lib/evrblk/grackle/preview/api_pb.rb +0 -71
  22. data/lib/evrblk/grackle/preview/api_services_pb.rb +0 -48
  23. data/lib/evrblk/grackle/preview/client.rb +0 -126
  24. data/lib/evrblk/iam/preview/api_pb.rb +0 -56
  25. data/lib/evrblk/iam/preview/api_services_pb.rb +0 -39
  26. data/lib/evrblk/iam/preview/client.rb +0 -81
  27. data/lib/evrblk/moab/preview/api_pb.rb +0 -63
  28. data/lib/evrblk/moab/preview/api_services_pb.rb +0 -41
  29. data/lib/evrblk/myaccount/preview/api_pb.rb +0 -25
  30. data/lib/evrblk/myaccount/preview/api_services_pb.rb +0 -26
  31. data/lib/evrblk/myaccount/preview/client.rb +0 -17
  32. data/proto/grackle/preview/api.proto +0 -325
  33. data/proto/iam/preview/api.proto +0 -230
  34. data/proto/myaccount/preview/api.proto +0 -68
  35. data/protogen.sh +0 -6
@@ -1,230 +0,0 @@
1
- syntax = "proto3";
2
-
3
- option go_package = "github.com/evrblk/evrblk-go/iam/preview;iam";
4
- option ruby_package = "Evrblk::IAM::Preview";
5
-
6
- package com.evrblk.iam.preview;
7
-
8
- service IamPreviewApi {
9
- rpc CreateRole(CreateRoleRequest) returns (CreateRoleResponse) {}
10
- rpc GetRole(GetRoleRequest) returns (GetRoleResponse) {}
11
- rpc UpdateRole(UpdateRoleRequest) returns (UpdateRoleResponse) {}
12
- rpc ListRoles(ListRolesRequest) returns (ListRolesResponse) {}
13
- rpc DeleteRole(DeleteRoleRequest) returns (DeleteRoleResponse) {}
14
-
15
- rpc CreateUser(CreateUserRequest) returns (CreateUserResponse) {}
16
- rpc GetUser(GetUserRequest) returns (GetUserResponse) {}
17
- rpc UpdateUser(UpdateUserRequest) returns (UpdateUserResponse) {}
18
- rpc ListUsers(ListUsersRequest) returns (ListUsersResponse) {}
19
- rpc DeleteUser(DeleteUserRequest) returns (DeleteUserResponse) {}
20
-
21
- rpc CreateApiKey(CreateApiKeyRequest) returns (CreateApiKeyResponse) {}
22
- rpc GetApiKey(GetApiKeyRequest) returns (GetApiKeyResponse) {}
23
- rpc ListApiKeys(ListApiKeysRequest) returns (ListApiKeysResponse) {}
24
- rpc DeleteApiKey(DeleteApiKeyRequest) returns (DeleteApiKeyResponse) {}
25
- }
26
-
27
- // roles
28
-
29
- message CreateRoleRequest {
30
- string name = 1;
31
- string description = 2;
32
- }
33
-
34
- message CreateRoleResponse {
35
- Role role = 1;
36
- }
37
-
38
- message GetRoleRequest {
39
- string role_id = 1;
40
- }
41
-
42
- message GetRoleResponse {
43
- Role role = 1;
44
- }
45
-
46
- message UpdateRoleRequest {
47
- string role_id = 1;
48
- string name = 2;
49
- string description = 3;
50
- }
51
-
52
- message UpdateRoleResponse {
53
- Role role = 1;
54
- }
55
-
56
- message ListRolesRequest {
57
- string pagination_token = 1;
58
- int32 limit = 2;
59
- }
60
-
61
- message ListRolesResponse {
62
- repeated Role roles = 1;
63
- string next_pagination_token = 2;
64
- string previous_pagination_token = 3;
65
- }
66
-
67
- message DeleteRoleRequest {
68
- string role_id = 1;
69
- }
70
-
71
- message DeleteRoleResponse {}
72
-
73
- // users
74
-
75
- message CreateUserRequest {
76
- string name = 1;
77
- string description = 2;
78
- string email = 3;
79
- string password = 4;
80
- string role_id = 5;
81
- }
82
-
83
- message CreateUserResponse {
84
- User user = 1;
85
- }
86
-
87
- message GetUserRequest {
88
- string user_id = 1;
89
- }
90
-
91
- message GetUserResponse {
92
- User user = 1;
93
- }
94
-
95
- message UpdateUserRequest {
96
- string user_id = 1;
97
- }
98
-
99
- message UpdateUserResponse {
100
- User user = 1;
101
- }
102
-
103
- message ListUsersRequest {
104
- string pagination_token = 1;
105
- int32 limit = 2;
106
- }
107
-
108
- message ListUsersResponse {
109
- repeated User users = 1;
110
- string next_pagination_token = 2;
111
- string previous_pagination_token = 3;
112
- }
113
-
114
- message DeleteUserRequest {
115
- string user_id = 1;
116
- }
117
-
118
- message DeleteUserResponse {}
119
-
120
- // api keys
121
-
122
- message CreateApiKeyRequest {
123
- string name = 1;
124
- string description = 2;
125
- string role_id = 3;
126
- string user_id = 4;
127
- int64 expires_at = 5;
128
-
129
- oneof key_type {
130
- CreateAlfaKeyRequest alfa = 6;
131
- CreateBravoKeyRequest bravo = 7;
132
- CreateCharlieKeyRequest charlie = 8;
133
- }
134
- }
135
-
136
- message CreateAlfaKeyRequest {
137
- string public_pem = 1;
138
- }
139
-
140
- message CreateBravoKeyRequest {}
141
-
142
- message CreateCharlieKeyRequest {}
143
-
144
- message CreateApiKeyResponse {
145
- NewApiKey api_key = 1;
146
- }
147
-
148
- message NewApiKey {
149
- string id = 1;
150
- string name = 2;
151
- string description = 3;
152
- int64 created_at = 4;
153
- int64 updated_at = 5;
154
- string role_id = 6;
155
- string user_id = 7;
156
- int64 expires_at = 8;
157
-
158
- oneof key_type {
159
- NewAlfaKey alfa = 9;
160
- NewBravoKey bravo = 10;
161
- NewCharlieKey charlie = 11;
162
- }
163
- }
164
-
165
- message NewAlfaKey {
166
- string public_pem = 1;
167
- }
168
-
169
- message NewBravoKey {
170
- string secret = 1;
171
- }
172
-
173
- message NewCharlieKey {}
174
-
175
- message GetApiKeyRequest {
176
- string api_key_id = 1;
177
- }
178
-
179
- message GetApiKeyResponse {
180
- ApiKey api_key = 1;
181
- }
182
-
183
- message ListApiKeysRequest {
184
- string pagination_token = 1;
185
- int32 limit = 2;
186
- }
187
-
188
- message ListApiKeysResponse {
189
- repeated ApiKey api_keys = 1;
190
- string next_pagination_token = 2;
191
- string previous_pagination_token = 3;
192
- }
193
-
194
- message DeleteApiKeyRequest {
195
- string api_key_id = 1;
196
- }
197
-
198
- message DeleteApiKeyResponse {}
199
-
200
- // common
201
-
202
- message Role {
203
- string id = 1;
204
- string name = 2;
205
- string description = 3;
206
- int64 created_at = 4;
207
- int64 updated_at = 5;
208
- }
209
-
210
- message User {
211
- string id = 1;
212
- string name = 2;
213
- string description = 3;
214
- int64 created_at = 4;
215
- int64 updated_at = 5;
216
- string email = 6;
217
- bool is_root = 9;
218
- string role_id = 10;
219
- }
220
-
221
- message ApiKey {
222
- string id = 1;
223
- string name = 2;
224
- string description = 3;
225
- int64 created_at = 4;
226
- int64 updated_at = 5;
227
- string role_id = 6;
228
- string user_id = 7;
229
- int64 expires_at = 8;
230
- }
@@ -1,68 +0,0 @@
1
- syntax = "proto3";
2
-
3
- option go_package = "github.com/evrblk/evrblk-go/myaccount/preview;myaccount";
4
- option ruby_package = "Evrblk::MyAccount::Preview";
5
-
6
- package com.evrblk.myaccount.preview;
7
-
8
- service MyAccountPreviewApi {
9
- rpc GetAccount(GetAccountRequest) returns (GetAccountResponse) {}
10
- // request service limit increase
11
- // update billing info
12
- // update payment methods
13
- // see billing statements
14
- // update notification settings
15
- //
16
- }
17
-
18
- message GetAccountRequest {
19
-
20
- }
21
-
22
- message GetAccountResponse {
23
- Account account = 1;
24
- }
25
-
26
- // common
27
-
28
- message Account {
29
- string id = 1;
30
- string email = 2;
31
- int64 created_at = 3;
32
- int64 updated_at = 4;
33
- uint64 version = 5;
34
- ServiceLimits service_limits = 7;
35
- }
36
-
37
- message ServiceLimits {
38
- IAMServiceLimits iam_service_limits = 1;
39
- MoabServiceLimits moab_service_limits = 2;
40
- BisonServiceLimits bison_service_limits = 3;
41
- }
42
-
43
- message IAMServiceLimits {
44
- int64 max_number_of_roles = 1;
45
- int64 max_number_of_users = 2;
46
- int64 max_number_of_api_keys = 3;
47
- int64 control_plane_read_request_rate = 4;
48
- int64 control_plane_update_request_rate = 5;
49
- // int64 data_plane_request_rate = 6;
50
- }
51
-
52
- message MoabServiceLimits {
53
- int64 max_number_of_queues = 1;
54
- int64 max_number_of_schedules_per_queue = 2;
55
- int64 max_number_of_schedules = 3;
56
- int64 enqueue_per_queue_request_rate = 4;
57
- int64 dequeue_per_queue_request_rate = 5;
58
- int64 max_enqueue_batch_size = 6;
59
- int64 max_dequeue_batch_size = 7;
60
- int64 control_plane_read_request_rate = 8;
61
- int64 control_plane_update_request_rate = 9;
62
- int64 data_plane_request_rate = 10;
63
- int64 purge_queue_request_rate = 11;
64
- }
65
-
66
- message BisonServiceLimits {
67
-
68
- }
data/protogen.sh DELETED
@@ -1,6 +0,0 @@
1
- grpc_tools_ruby_protoc -I ./proto --ruby_out=./lib/evrblk --grpc_out=./lib/evrblk ./proto/moab/preview/api.proto
2
- grpc_tools_ruby_protoc -I ./proto --ruby_out=./lib/evrblk --grpc_out=./lib/evrblk ./proto/myaccount/preview/api.proto
3
- grpc_tools_ruby_protoc -I ./proto --ruby_out=./lib/evrblk --grpc_out=./lib/evrblk ./proto/grackle/preview/api.proto
4
- grpc_tools_ruby_protoc -I ./proto --ruby_out=./lib/evrblk --grpc_out=./lib/evrblk ./proto/iam/preview/api.proto
5
-
6
-