protobuf-platform 1.2.86 → 1.2.88
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.
- package/config/config.proto +28 -0
- package/config/config_grpc_pb.js +88 -0
- package/config/config_pb.js +1278 -89
- package/package.json +1 -1
package/config/config.proto
CHANGED
|
@@ -24,10 +24,19 @@ service Config {
|
|
|
24
24
|
//Cloud Flare
|
|
25
25
|
rpc getZonesList(GetZoneRequest) returns (ZonesResponse);
|
|
26
26
|
rpc getZone(GetZoneRequest) returns (ZoneItemResponse);
|
|
27
|
+
rpc createZone(GetZoneRequest) returns (ZoneItemResponse);
|
|
28
|
+
rpc createMirror(GetZoneRequest) returns (MirrorResponse);
|
|
29
|
+
rpc getMirrorsList(PaginationRequest) returns (MirrorItemsResponse);
|
|
30
|
+
rpc deleteSingleMirror(GetZoneRequest) returns (MirrorStatusResponse);
|
|
27
31
|
}
|
|
28
32
|
|
|
29
33
|
message PingRequest { string ping = 1; }
|
|
30
34
|
message PongResponse { string pong = 1; }
|
|
35
|
+
message PaginationRequest {
|
|
36
|
+
int32 limit = 1;
|
|
37
|
+
int32 offset = 2;
|
|
38
|
+
optional string order = 3;
|
|
39
|
+
}
|
|
31
40
|
|
|
32
41
|
//Service settings
|
|
33
42
|
message SettingsRequest {
|
|
@@ -144,4 +153,23 @@ message ZoneItemResponse {
|
|
|
144
153
|
}
|
|
145
154
|
message ZonesResponse {
|
|
146
155
|
repeated ZoneItem items = 1;
|
|
156
|
+
}
|
|
157
|
+
message MirrorItem {
|
|
158
|
+
string zone_id = 1;
|
|
159
|
+
string zone_name = 2;
|
|
160
|
+
string zone_status = 3;
|
|
161
|
+
optional string main_record = 4;
|
|
162
|
+
optional string api_record = 5;
|
|
163
|
+
optional string cdn_record = 6;
|
|
164
|
+
}
|
|
165
|
+
message MirrorResponse {
|
|
166
|
+
MirrorItem data = 1;
|
|
167
|
+
}
|
|
168
|
+
message MirrorItemsResponse {
|
|
169
|
+
repeated MirrorItem items = 1;
|
|
170
|
+
optional int32 total_pages = 2;
|
|
171
|
+
optional int32 total_items = 3;
|
|
172
|
+
}
|
|
173
|
+
message MirrorStatusResponse {
|
|
174
|
+
string status = 1;
|
|
147
175
|
}
|
package/config/config_grpc_pb.js
CHANGED
|
@@ -136,6 +136,50 @@ function deserialize_config_GlobalDataRequest(buffer_arg) {
|
|
|
136
136
|
return config_pb.GlobalDataRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
+
function serialize_config_MirrorItemsResponse(arg) {
|
|
140
|
+
if (!(arg instanceof config_pb.MirrorItemsResponse)) {
|
|
141
|
+
throw new Error('Expected argument of type config.MirrorItemsResponse');
|
|
142
|
+
}
|
|
143
|
+
return Buffer.from(arg.serializeBinary());
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
function deserialize_config_MirrorItemsResponse(buffer_arg) {
|
|
147
|
+
return config_pb.MirrorItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
function serialize_config_MirrorResponse(arg) {
|
|
151
|
+
if (!(arg instanceof config_pb.MirrorResponse)) {
|
|
152
|
+
throw new Error('Expected argument of type config.MirrorResponse');
|
|
153
|
+
}
|
|
154
|
+
return Buffer.from(arg.serializeBinary());
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
function deserialize_config_MirrorResponse(buffer_arg) {
|
|
158
|
+
return config_pb.MirrorResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
function serialize_config_MirrorStatusResponse(arg) {
|
|
162
|
+
if (!(arg instanceof config_pb.MirrorStatusResponse)) {
|
|
163
|
+
throw new Error('Expected argument of type config.MirrorStatusResponse');
|
|
164
|
+
}
|
|
165
|
+
return Buffer.from(arg.serializeBinary());
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
function deserialize_config_MirrorStatusResponse(buffer_arg) {
|
|
169
|
+
return config_pb.MirrorStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
function serialize_config_PaginationRequest(arg) {
|
|
173
|
+
if (!(arg instanceof config_pb.PaginationRequest)) {
|
|
174
|
+
throw new Error('Expected argument of type config.PaginationRequest');
|
|
175
|
+
}
|
|
176
|
+
return Buffer.from(arg.serializeBinary());
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
function deserialize_config_PaginationRequest(buffer_arg) {
|
|
180
|
+
return config_pb.PaginationRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
181
|
+
}
|
|
182
|
+
|
|
139
183
|
function serialize_config_PingRequest(arg) {
|
|
140
184
|
if (!(arg instanceof config_pb.PingRequest)) {
|
|
141
185
|
throw new Error('Expected argument of type config.PingRequest');
|
|
@@ -410,6 +454,50 @@ getZonesList: {
|
|
|
410
454
|
responseSerialize: serialize_config_ZoneItemResponse,
|
|
411
455
|
responseDeserialize: deserialize_config_ZoneItemResponse,
|
|
412
456
|
},
|
|
457
|
+
createZone: {
|
|
458
|
+
path: '/config.Config/createZone',
|
|
459
|
+
requestStream: false,
|
|
460
|
+
responseStream: false,
|
|
461
|
+
requestType: config_pb.GetZoneRequest,
|
|
462
|
+
responseType: config_pb.ZoneItemResponse,
|
|
463
|
+
requestSerialize: serialize_config_GetZoneRequest,
|
|
464
|
+
requestDeserialize: deserialize_config_GetZoneRequest,
|
|
465
|
+
responseSerialize: serialize_config_ZoneItemResponse,
|
|
466
|
+
responseDeserialize: deserialize_config_ZoneItemResponse,
|
|
467
|
+
},
|
|
468
|
+
createMirror: {
|
|
469
|
+
path: '/config.Config/createMirror',
|
|
470
|
+
requestStream: false,
|
|
471
|
+
responseStream: false,
|
|
472
|
+
requestType: config_pb.GetZoneRequest,
|
|
473
|
+
responseType: config_pb.MirrorResponse,
|
|
474
|
+
requestSerialize: serialize_config_GetZoneRequest,
|
|
475
|
+
requestDeserialize: deserialize_config_GetZoneRequest,
|
|
476
|
+
responseSerialize: serialize_config_MirrorResponse,
|
|
477
|
+
responseDeserialize: deserialize_config_MirrorResponse,
|
|
478
|
+
},
|
|
479
|
+
getMirrorsList: {
|
|
480
|
+
path: '/config.Config/getMirrorsList',
|
|
481
|
+
requestStream: false,
|
|
482
|
+
responseStream: false,
|
|
483
|
+
requestType: config_pb.PaginationRequest,
|
|
484
|
+
responseType: config_pb.MirrorItemsResponse,
|
|
485
|
+
requestSerialize: serialize_config_PaginationRequest,
|
|
486
|
+
requestDeserialize: deserialize_config_PaginationRequest,
|
|
487
|
+
responseSerialize: serialize_config_MirrorItemsResponse,
|
|
488
|
+
responseDeserialize: deserialize_config_MirrorItemsResponse,
|
|
489
|
+
},
|
|
490
|
+
deleteSingleMirror: {
|
|
491
|
+
path: '/config.Config/deleteSingleMirror',
|
|
492
|
+
requestStream: false,
|
|
493
|
+
responseStream: false,
|
|
494
|
+
requestType: config_pb.GetZoneRequest,
|
|
495
|
+
responseType: config_pb.MirrorStatusResponse,
|
|
496
|
+
requestSerialize: serialize_config_GetZoneRequest,
|
|
497
|
+
requestDeserialize: deserialize_config_GetZoneRequest,
|
|
498
|
+
responseSerialize: serialize_config_MirrorStatusResponse,
|
|
499
|
+
responseDeserialize: deserialize_config_MirrorStatusResponse,
|
|
500
|
+
},
|
|
413
501
|
};
|
|
414
502
|
|
|
415
503
|
exports.ConfigClient = grpc.makeGenericClientConstructor(ConfigService, 'Config');
|