protobuf-platform 1.2.88 → 1.2.90

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.
@@ -25,7 +25,8 @@ service Config {
25
25
  rpc getZonesList(GetZoneRequest) returns (ZonesResponse);
26
26
  rpc getZone(GetZoneRequest) returns (ZoneItemResponse);
27
27
  rpc createZone(GetZoneRequest) returns (ZoneItemResponse);
28
- rpc createMirror(GetZoneRequest) returns (MirrorResponse);
28
+ rpc createMirror(ModifyMirrorRequest) returns (MirrorResponse);
29
+ rpc updateMirror(ModifyMirrorRequest) returns (MirrorResponse);
29
30
  rpc getMirrorsList(PaginationRequest) returns (MirrorItemsResponse);
30
31
  rpc deleteSingleMirror(GetZoneRequest) returns (MirrorStatusResponse);
31
32
  }
@@ -36,8 +37,16 @@ message PaginationRequest {
36
37
  int32 limit = 1;
37
38
  int32 offset = 2;
38
39
  optional string order = 3;
40
+ optional MirrorSearchRequest mirror_search_params = 4;
41
+ }
42
+ message MirrorSearchRequest {
43
+ optional string title = 1;
44
+ optional string domain = 2;
45
+ optional int32 is_active = 3;
46
+ repeated string country = 4;
47
+ repeated string status = 5;
48
+ repeated string priority = 6;
39
49
  }
40
-
41
50
  //Service settings
42
51
  message SettingsRequest {
43
52
  string environment = 1;
@@ -155,12 +164,15 @@ message ZonesResponse {
155
164
  repeated ZoneItem items = 1;
156
165
  }
157
166
  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;
167
+ optional string domain = 1;
168
+ optional string title = 2;
169
+ optional string main_record = 3;
170
+ optional string api_record = 4;
171
+ optional string cdn_record = 5;
172
+ repeated string countries = 6;
173
+ optional string priority = 7;
174
+ optional string status = 8;
175
+ optional int32 is_active = 9;
164
176
  }
165
177
  message MirrorResponse {
166
178
  MirrorItem data = 1;
@@ -172,4 +184,11 @@ message MirrorItemsResponse {
172
184
  }
173
185
  message MirrorStatusResponse {
174
186
  string status = 1;
187
+ }
188
+ message ModifyMirrorRequest {
189
+ optional string domain = 1;
190
+ optional string title = 2;
191
+ optional string priority = 3;
192
+ optional string status = 4;
193
+ optional int32 is_active = 5;
175
194
  }
@@ -169,6 +169,17 @@ function deserialize_config_MirrorStatusResponse(buffer_arg) {
169
169
  return config_pb.MirrorStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
170
170
  }
171
171
 
172
+ function serialize_config_ModifyMirrorRequest(arg) {
173
+ if (!(arg instanceof config_pb.ModifyMirrorRequest)) {
174
+ throw new Error('Expected argument of type config.ModifyMirrorRequest');
175
+ }
176
+ return Buffer.from(arg.serializeBinary());
177
+ }
178
+
179
+ function deserialize_config_ModifyMirrorRequest(buffer_arg) {
180
+ return config_pb.ModifyMirrorRequest.deserializeBinary(new Uint8Array(buffer_arg));
181
+ }
182
+
172
183
  function serialize_config_PaginationRequest(arg) {
173
184
  if (!(arg instanceof config_pb.PaginationRequest)) {
174
185
  throw new Error('Expected argument of type config.PaginationRequest');
@@ -469,10 +480,21 @@ getZonesList: {
469
480
  path: '/config.Config/createMirror',
470
481
  requestStream: false,
471
482
  responseStream: false,
472
- requestType: config_pb.GetZoneRequest,
483
+ requestType: config_pb.ModifyMirrorRequest,
473
484
  responseType: config_pb.MirrorResponse,
474
- requestSerialize: serialize_config_GetZoneRequest,
475
- requestDeserialize: deserialize_config_GetZoneRequest,
485
+ requestSerialize: serialize_config_ModifyMirrorRequest,
486
+ requestDeserialize: deserialize_config_ModifyMirrorRequest,
487
+ responseSerialize: serialize_config_MirrorResponse,
488
+ responseDeserialize: deserialize_config_MirrorResponse,
489
+ },
490
+ updateMirror: {
491
+ path: '/config.Config/updateMirror',
492
+ requestStream: false,
493
+ responseStream: false,
494
+ requestType: config_pb.ModifyMirrorRequest,
495
+ responseType: config_pb.MirrorResponse,
496
+ requestSerialize: serialize_config_ModifyMirrorRequest,
497
+ requestDeserialize: deserialize_config_ModifyMirrorRequest,
476
498
  responseSerialize: serialize_config_MirrorResponse,
477
499
  responseDeserialize: deserialize_config_MirrorResponse,
478
500
  },