protobuf-platform 1.2.96 → 1.2.98

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,6 +25,7 @@ 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 deleteZone(GetZoneRequest) returns (ZoneStatusResponse);
28
29
  rpc createMirror(ModifyMirrorRequest) returns (MirrorResponse);
29
30
  rpc updateMirror(ModifyMirrorRequest) returns (MirrorResponse);
30
31
  rpc getMirrorsList(PaginationRequest) returns (MirrorItemsResponse);
@@ -150,6 +151,8 @@ message R2FileListResponse {
150
151
  message GetZoneRequest {
151
152
  optional string domain = 1;
152
153
  optional string id = 2;
154
+ optional string environment = 3;
155
+ optional string customer = 4;
153
156
  }
154
157
  message ZoneItem {
155
158
  string id = 1;
@@ -166,6 +169,9 @@ message ZoneItemResponse {
166
169
  message ZonesResponse {
167
170
  repeated ZoneItem items = 1;
168
171
  }
172
+ message ZoneStatusResponse {
173
+ string status = 1;
174
+ }
169
175
  message MirrorItem {
170
176
  optional string domain = 1;
171
177
  optional string title = 2;
@@ -195,6 +201,8 @@ message ModifyMirrorRequest {
195
201
  optional string priority = 3;
196
202
  optional string status = 4;
197
203
  optional int32 is_active = 5;
204
+ optional string environment = 6;
205
+ optional string customer = 7;
198
206
  }
199
207
  message ActivatedMirrorsResponse {
200
208
  repeated string domains = 1;
@@ -312,6 +312,17 @@ function deserialize_config_ZoneItemResponse(buffer_arg) {
312
312
  return config_pb.ZoneItemResponse.deserializeBinary(new Uint8Array(buffer_arg));
313
313
  }
314
314
 
315
+ function serialize_config_ZoneStatusResponse(arg) {
316
+ if (!(arg instanceof config_pb.ZoneStatusResponse)) {
317
+ throw new Error('Expected argument of type config.ZoneStatusResponse');
318
+ }
319
+ return Buffer.from(arg.serializeBinary());
320
+ }
321
+
322
+ function deserialize_config_ZoneStatusResponse(buffer_arg) {
323
+ return config_pb.ZoneStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
324
+ }
325
+
315
326
  function serialize_config_ZonesResponse(arg) {
316
327
  if (!(arg instanceof config_pb.ZonesResponse)) {
317
328
  throw new Error('Expected argument of type config.ZonesResponse');
@@ -487,6 +498,17 @@ getZonesList: {
487
498
  responseSerialize: serialize_config_ZoneItemResponse,
488
499
  responseDeserialize: deserialize_config_ZoneItemResponse,
489
500
  },
501
+ deleteZone: {
502
+ path: '/config.Config/deleteZone',
503
+ requestStream: false,
504
+ responseStream: false,
505
+ requestType: config_pb.GetZoneRequest,
506
+ responseType: config_pb.ZoneStatusResponse,
507
+ requestSerialize: serialize_config_GetZoneRequest,
508
+ requestDeserialize: deserialize_config_GetZoneRequest,
509
+ responseSerialize: serialize_config_ZoneStatusResponse,
510
+ responseDeserialize: deserialize_config_ZoneStatusResponse,
511
+ },
490
512
  createMirror: {
491
513
  path: '/config.Config/createMirror',
492
514
  requestStream: false,
@@ -53,6 +53,7 @@ goog.exportSymbol('proto.config.SettingsRequest', null, global);
53
53
  goog.exportSymbol('proto.config.SettingsResponse', null, global);
54
54
  goog.exportSymbol('proto.config.ZoneItem', null, global);
55
55
  goog.exportSymbol('proto.config.ZoneItemResponse', null, global);
56
+ goog.exportSymbol('proto.config.ZoneStatusResponse', null, global);
56
57
  goog.exportSymbol('proto.config.ZonesResponse', null, global);
57
58
  /**
58
59
  * Generated by JsPbCodeGenerator.
@@ -621,6 +622,27 @@ if (goog.DEBUG && !COMPILED) {
621
622
  */
622
623
  proto.config.ZonesResponse.displayName = 'proto.config.ZonesResponse';
623
624
  }
625
+ /**
626
+ * Generated by JsPbCodeGenerator.
627
+ * @param {Array=} opt_data Optional initial data array, typically from a
628
+ * server response, or constructed directly in Javascript. The array is used
629
+ * in place and becomes part of the constructed object. It is not cloned.
630
+ * If no data is provided, the constructed object will be empty, but still
631
+ * valid.
632
+ * @extends {jspb.Message}
633
+ * @constructor
634
+ */
635
+ proto.config.ZoneStatusResponse = function(opt_data) {
636
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
637
+ };
638
+ goog.inherits(proto.config.ZoneStatusResponse, jspb.Message);
639
+ if (goog.DEBUG && !COMPILED) {
640
+ /**
641
+ * @public
642
+ * @override
643
+ */
644
+ proto.config.ZoneStatusResponse.displayName = 'proto.config.ZoneStatusResponse';
645
+ }
624
646
  /**
625
647
  * Generated by JsPbCodeGenerator.
626
648
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -5590,7 +5612,9 @@ proto.config.GetZoneRequest.prototype.toObject = function(opt_includeInstance) {
5590
5612
  proto.config.GetZoneRequest.toObject = function(includeInstance, msg) {
5591
5613
  var f, obj = {
5592
5614
  domain: jspb.Message.getFieldWithDefault(msg, 1, ""),
5593
- id: jspb.Message.getFieldWithDefault(msg, 2, "")
5615
+ id: jspb.Message.getFieldWithDefault(msg, 2, ""),
5616
+ environment: jspb.Message.getFieldWithDefault(msg, 3, ""),
5617
+ customer: jspb.Message.getFieldWithDefault(msg, 4, "")
5594
5618
  };
5595
5619
 
5596
5620
  if (includeInstance) {
@@ -5635,6 +5659,14 @@ proto.config.GetZoneRequest.deserializeBinaryFromReader = function(msg, reader)
5635
5659
  var value = /** @type {string} */ (reader.readString());
5636
5660
  msg.setId(value);
5637
5661
  break;
5662
+ case 3:
5663
+ var value = /** @type {string} */ (reader.readString());
5664
+ msg.setEnvironment(value);
5665
+ break;
5666
+ case 4:
5667
+ var value = /** @type {string} */ (reader.readString());
5668
+ msg.setCustomer(value);
5669
+ break;
5638
5670
  default:
5639
5671
  reader.skipField();
5640
5672
  break;
@@ -5678,6 +5710,20 @@ proto.config.GetZoneRequest.serializeBinaryToWriter = function(message, writer)
5678
5710
  f
5679
5711
  );
5680
5712
  }
5713
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
5714
+ if (f != null) {
5715
+ writer.writeString(
5716
+ 3,
5717
+ f
5718
+ );
5719
+ }
5720
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
5721
+ if (f != null) {
5722
+ writer.writeString(
5723
+ 4,
5724
+ f
5725
+ );
5726
+ }
5681
5727
  };
5682
5728
 
5683
5729
 
@@ -5753,6 +5799,78 @@ proto.config.GetZoneRequest.prototype.hasId = function() {
5753
5799
  };
5754
5800
 
5755
5801
 
5802
+ /**
5803
+ * optional string environment = 3;
5804
+ * @return {string}
5805
+ */
5806
+ proto.config.GetZoneRequest.prototype.getEnvironment = function() {
5807
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
5808
+ };
5809
+
5810
+
5811
+ /**
5812
+ * @param {string} value
5813
+ * @return {!proto.config.GetZoneRequest} returns this
5814
+ */
5815
+ proto.config.GetZoneRequest.prototype.setEnvironment = function(value) {
5816
+ return jspb.Message.setField(this, 3, value);
5817
+ };
5818
+
5819
+
5820
+ /**
5821
+ * Clears the field making it undefined.
5822
+ * @return {!proto.config.GetZoneRequest} returns this
5823
+ */
5824
+ proto.config.GetZoneRequest.prototype.clearEnvironment = function() {
5825
+ return jspb.Message.setField(this, 3, undefined);
5826
+ };
5827
+
5828
+
5829
+ /**
5830
+ * Returns whether this field is set.
5831
+ * @return {boolean}
5832
+ */
5833
+ proto.config.GetZoneRequest.prototype.hasEnvironment = function() {
5834
+ return jspb.Message.getField(this, 3) != null;
5835
+ };
5836
+
5837
+
5838
+ /**
5839
+ * optional string customer = 4;
5840
+ * @return {string}
5841
+ */
5842
+ proto.config.GetZoneRequest.prototype.getCustomer = function() {
5843
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
5844
+ };
5845
+
5846
+
5847
+ /**
5848
+ * @param {string} value
5849
+ * @return {!proto.config.GetZoneRequest} returns this
5850
+ */
5851
+ proto.config.GetZoneRequest.prototype.setCustomer = function(value) {
5852
+ return jspb.Message.setField(this, 4, value);
5853
+ };
5854
+
5855
+
5856
+ /**
5857
+ * Clears the field making it undefined.
5858
+ * @return {!proto.config.GetZoneRequest} returns this
5859
+ */
5860
+ proto.config.GetZoneRequest.prototype.clearCustomer = function() {
5861
+ return jspb.Message.setField(this, 4, undefined);
5862
+ };
5863
+
5864
+
5865
+ /**
5866
+ * Returns whether this field is set.
5867
+ * @return {boolean}
5868
+ */
5869
+ proto.config.GetZoneRequest.prototype.hasCustomer = function() {
5870
+ return jspb.Message.getField(this, 4) != null;
5871
+ };
5872
+
5873
+
5756
5874
 
5757
5875
 
5758
5876
 
@@ -6447,6 +6565,136 @@ proto.config.ZonesResponse.prototype.clearItemsList = function() {
6447
6565
 
6448
6566
 
6449
6567
 
6568
+
6569
+
6570
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6571
+ /**
6572
+ * Creates an object representation of this proto.
6573
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6574
+ * Optional fields that are not set will be set to undefined.
6575
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6576
+ * For the list of reserved names please see:
6577
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6578
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6579
+ * JSPB instance for transitional soy proto support:
6580
+ * http://goto/soy-param-migration
6581
+ * @return {!Object}
6582
+ */
6583
+ proto.config.ZoneStatusResponse.prototype.toObject = function(opt_includeInstance) {
6584
+ return proto.config.ZoneStatusResponse.toObject(opt_includeInstance, this);
6585
+ };
6586
+
6587
+
6588
+ /**
6589
+ * Static version of the {@see toObject} method.
6590
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6591
+ * the JSPB instance for transitional soy proto support:
6592
+ * http://goto/soy-param-migration
6593
+ * @param {!proto.config.ZoneStatusResponse} msg The msg instance to transform.
6594
+ * @return {!Object}
6595
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6596
+ */
6597
+ proto.config.ZoneStatusResponse.toObject = function(includeInstance, msg) {
6598
+ var f, obj = {
6599
+ status: jspb.Message.getFieldWithDefault(msg, 1, "")
6600
+ };
6601
+
6602
+ if (includeInstance) {
6603
+ obj.$jspbMessageInstance = msg;
6604
+ }
6605
+ return obj;
6606
+ };
6607
+ }
6608
+
6609
+
6610
+ /**
6611
+ * Deserializes binary data (in protobuf wire format).
6612
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6613
+ * @return {!proto.config.ZoneStatusResponse}
6614
+ */
6615
+ proto.config.ZoneStatusResponse.deserializeBinary = function(bytes) {
6616
+ var reader = new jspb.BinaryReader(bytes);
6617
+ var msg = new proto.config.ZoneStatusResponse;
6618
+ return proto.config.ZoneStatusResponse.deserializeBinaryFromReader(msg, reader);
6619
+ };
6620
+
6621
+
6622
+ /**
6623
+ * Deserializes binary data (in protobuf wire format) from the
6624
+ * given reader into the given message object.
6625
+ * @param {!proto.config.ZoneStatusResponse} msg The message object to deserialize into.
6626
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6627
+ * @return {!proto.config.ZoneStatusResponse}
6628
+ */
6629
+ proto.config.ZoneStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
6630
+ while (reader.nextField()) {
6631
+ if (reader.isEndGroup()) {
6632
+ break;
6633
+ }
6634
+ var field = reader.getFieldNumber();
6635
+ switch (field) {
6636
+ case 1:
6637
+ var value = /** @type {string} */ (reader.readString());
6638
+ msg.setStatus(value);
6639
+ break;
6640
+ default:
6641
+ reader.skipField();
6642
+ break;
6643
+ }
6644
+ }
6645
+ return msg;
6646
+ };
6647
+
6648
+
6649
+ /**
6650
+ * Serializes the message to binary data (in protobuf wire format).
6651
+ * @return {!Uint8Array}
6652
+ */
6653
+ proto.config.ZoneStatusResponse.prototype.serializeBinary = function() {
6654
+ var writer = new jspb.BinaryWriter();
6655
+ proto.config.ZoneStatusResponse.serializeBinaryToWriter(this, writer);
6656
+ return writer.getResultBuffer();
6657
+ };
6658
+
6659
+
6660
+ /**
6661
+ * Serializes the given message to binary data (in protobuf wire
6662
+ * format), writing to the given BinaryWriter.
6663
+ * @param {!proto.config.ZoneStatusResponse} message
6664
+ * @param {!jspb.BinaryWriter} writer
6665
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6666
+ */
6667
+ proto.config.ZoneStatusResponse.serializeBinaryToWriter = function(message, writer) {
6668
+ var f = undefined;
6669
+ f = message.getStatus();
6670
+ if (f.length > 0) {
6671
+ writer.writeString(
6672
+ 1,
6673
+ f
6674
+ );
6675
+ }
6676
+ };
6677
+
6678
+
6679
+ /**
6680
+ * optional string status = 1;
6681
+ * @return {string}
6682
+ */
6683
+ proto.config.ZoneStatusResponse.prototype.getStatus = function() {
6684
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
6685
+ };
6686
+
6687
+
6688
+ /**
6689
+ * @param {string} value
6690
+ * @return {!proto.config.ZoneStatusResponse} returns this
6691
+ */
6692
+ proto.config.ZoneStatusResponse.prototype.setStatus = function(value) {
6693
+ return jspb.Message.setProto3StringField(this, 1, value);
6694
+ };
6695
+
6696
+
6697
+
6450
6698
  /**
6451
6699
  * List of repeated fields within this message type.
6452
6700
  * @private {!Array<number>}
@@ -7607,7 +7855,9 @@ proto.config.ModifyMirrorRequest.toObject = function(includeInstance, msg) {
7607
7855
  title: jspb.Message.getFieldWithDefault(msg, 2, ""),
7608
7856
  priority: jspb.Message.getFieldWithDefault(msg, 3, ""),
7609
7857
  status: jspb.Message.getFieldWithDefault(msg, 4, ""),
7610
- isActive: jspb.Message.getFieldWithDefault(msg, 5, 0)
7858
+ isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
7859
+ environment: jspb.Message.getFieldWithDefault(msg, 6, ""),
7860
+ customer: jspb.Message.getFieldWithDefault(msg, 7, "")
7611
7861
  };
7612
7862
 
7613
7863
  if (includeInstance) {
@@ -7664,6 +7914,14 @@ proto.config.ModifyMirrorRequest.deserializeBinaryFromReader = function(msg, rea
7664
7914
  var value = /** @type {number} */ (reader.readInt32());
7665
7915
  msg.setIsActive(value);
7666
7916
  break;
7917
+ case 6:
7918
+ var value = /** @type {string} */ (reader.readString());
7919
+ msg.setEnvironment(value);
7920
+ break;
7921
+ case 7:
7922
+ var value = /** @type {string} */ (reader.readString());
7923
+ msg.setCustomer(value);
7924
+ break;
7667
7925
  default:
7668
7926
  reader.skipField();
7669
7927
  break;
@@ -7728,6 +7986,20 @@ proto.config.ModifyMirrorRequest.serializeBinaryToWriter = function(message, wri
7728
7986
  f
7729
7987
  );
7730
7988
  }
7989
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
7990
+ if (f != null) {
7991
+ writer.writeString(
7992
+ 6,
7993
+ f
7994
+ );
7995
+ }
7996
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
7997
+ if (f != null) {
7998
+ writer.writeString(
7999
+ 7,
8000
+ f
8001
+ );
8002
+ }
7731
8003
  };
7732
8004
 
7733
8005
 
@@ -7911,6 +8183,78 @@ proto.config.ModifyMirrorRequest.prototype.hasIsActive = function() {
7911
8183
  };
7912
8184
 
7913
8185
 
8186
+ /**
8187
+ * optional string environment = 6;
8188
+ * @return {string}
8189
+ */
8190
+ proto.config.ModifyMirrorRequest.prototype.getEnvironment = function() {
8191
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
8192
+ };
8193
+
8194
+
8195
+ /**
8196
+ * @param {string} value
8197
+ * @return {!proto.config.ModifyMirrorRequest} returns this
8198
+ */
8199
+ proto.config.ModifyMirrorRequest.prototype.setEnvironment = function(value) {
8200
+ return jspb.Message.setField(this, 6, value);
8201
+ };
8202
+
8203
+
8204
+ /**
8205
+ * Clears the field making it undefined.
8206
+ * @return {!proto.config.ModifyMirrorRequest} returns this
8207
+ */
8208
+ proto.config.ModifyMirrorRequest.prototype.clearEnvironment = function() {
8209
+ return jspb.Message.setField(this, 6, undefined);
8210
+ };
8211
+
8212
+
8213
+ /**
8214
+ * Returns whether this field is set.
8215
+ * @return {boolean}
8216
+ */
8217
+ proto.config.ModifyMirrorRequest.prototype.hasEnvironment = function() {
8218
+ return jspb.Message.getField(this, 6) != null;
8219
+ };
8220
+
8221
+
8222
+ /**
8223
+ * optional string customer = 7;
8224
+ * @return {string}
8225
+ */
8226
+ proto.config.ModifyMirrorRequest.prototype.getCustomer = function() {
8227
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
8228
+ };
8229
+
8230
+
8231
+ /**
8232
+ * @param {string} value
8233
+ * @return {!proto.config.ModifyMirrorRequest} returns this
8234
+ */
8235
+ proto.config.ModifyMirrorRequest.prototype.setCustomer = function(value) {
8236
+ return jspb.Message.setField(this, 7, value);
8237
+ };
8238
+
8239
+
8240
+ /**
8241
+ * Clears the field making it undefined.
8242
+ * @return {!proto.config.ModifyMirrorRequest} returns this
8243
+ */
8244
+ proto.config.ModifyMirrorRequest.prototype.clearCustomer = function() {
8245
+ return jspb.Message.setField(this, 7, undefined);
8246
+ };
8247
+
8248
+
8249
+ /**
8250
+ * Returns whether this field is set.
8251
+ * @return {boolean}
8252
+ */
8253
+ proto.config.ModifyMirrorRequest.prototype.hasCustomer = function() {
8254
+ return jspb.Message.getField(this, 7) != null;
8255
+ };
8256
+
8257
+
7914
8258
 
7915
8259
  /**
7916
8260
  * List of repeated fields within this message type.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.96",
3
+ "version": "1.2.98",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {