protobuf-platform 1.2.587 → 1.2.590

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.
@@ -46,6 +46,7 @@ service Config {
46
46
  rpc enableSingleMirror(GetZoneRequest) returns (MirrorStatusResponse);
47
47
  rpc setDefaultMirror(GetZoneRequest) returns (MirrorStatusResponse);
48
48
  rpc syncActivatedMirrors(GetZoneRequest) returns (ActivatedMirrorsResponse);
49
+ rpc invalidateCloudflareCache(InvalidateCloudflareCacheRequest) returns (InvalidateCloudflareCacheResponse);
49
50
  }
50
51
 
51
52
  message PingRequest { string ping = 1; }
@@ -364,4 +365,32 @@ message MirrorCountriesResponse {
364
365
  repeated CountryItem items = 1;
365
366
  optional int32 total_pages = 2;
366
367
  optional int32 total_items = 3;
368
+ }
369
+ enum CloudflareCacheInvalidationAction {
370
+ CLOUDFLARE_CACHE_INVALIDATION_ACTION_UNSPECIFIED = 0;
371
+ CLOUDFLARE_CACHE_INVALIDATION_ACTION_BUMP_VERSION = 1;
372
+ }
373
+ message CloudflareCacheInvalidationDimension {
374
+ string key = 1;
375
+ string value = 2;
376
+ }
377
+ message CloudflareCacheInvalidationTarget {
378
+ string namespace = 1;
379
+ repeated CloudflareCacheInvalidationDimension dimensions = 2;
380
+ }
381
+ message InvalidateCloudflareCacheRequest {
382
+ string environment = 1;
383
+ CloudflareCacheInvalidationAction action = 2;
384
+ repeated CloudflareCacheInvalidationTarget targets = 3;
385
+ }
386
+ message CloudflareCacheInvalidationTargetResult {
387
+ string namespace = 1;
388
+ repeated CloudflareCacheInvalidationDimension dimensions = 2;
389
+ string status = 3;
390
+ optional int64 resulting_version = 4;
391
+ optional string error_message = 5;
392
+ }
393
+ message InvalidateCloudflareCacheResponse {
394
+ string status = 1;
395
+ repeated CloudflareCacheInvalidationTargetResult results = 2;
367
396
  }
@@ -235,6 +235,28 @@ function deserialize_config_GlobalDataRequest(buffer_arg) {
235
235
  return config_pb.GlobalDataRequest.deserializeBinary(new Uint8Array(buffer_arg));
236
236
  }
237
237
 
238
+ function serialize_config_InvalidateCloudflareCacheRequest(arg) {
239
+ if (!(arg instanceof config_pb.InvalidateCloudflareCacheRequest)) {
240
+ throw new Error('Expected argument of type config.InvalidateCloudflareCacheRequest');
241
+ }
242
+ return Buffer.from(arg.serializeBinary());
243
+ }
244
+
245
+ function deserialize_config_InvalidateCloudflareCacheRequest(buffer_arg) {
246
+ return config_pb.InvalidateCloudflareCacheRequest.deserializeBinary(new Uint8Array(buffer_arg));
247
+ }
248
+
249
+ function serialize_config_InvalidateCloudflareCacheResponse(arg) {
250
+ if (!(arg instanceof config_pb.InvalidateCloudflareCacheResponse)) {
251
+ throw new Error('Expected argument of type config.InvalidateCloudflareCacheResponse');
252
+ }
253
+ return Buffer.from(arg.serializeBinary());
254
+ }
255
+
256
+ function deserialize_config_InvalidateCloudflareCacheResponse(buffer_arg) {
257
+ return config_pb.InvalidateCloudflareCacheResponse.deserializeBinary(new Uint8Array(buffer_arg));
258
+ }
259
+
238
260
  function serialize_config_MirrorCountriesRequest(arg) {
239
261
  if (!(arg instanceof config_pb.MirrorCountriesRequest)) {
240
262
  throw new Error('Expected argument of type config.MirrorCountriesRequest');
@@ -885,6 +907,17 @@ getZonesList: {
885
907
  responseSerialize: serialize_config_ActivatedMirrorsResponse,
886
908
  responseDeserialize: deserialize_config_ActivatedMirrorsResponse,
887
909
  },
910
+ invalidateCloudflareCache: {
911
+ path: '/config.Config/invalidateCloudflareCache',
912
+ requestStream: false,
913
+ responseStream: false,
914
+ requestType: config_pb.InvalidateCloudflareCacheRequest,
915
+ responseType: config_pb.InvalidateCloudflareCacheResponse,
916
+ requestSerialize: serialize_config_InvalidateCloudflareCacheRequest,
917
+ requestDeserialize: deserialize_config_InvalidateCloudflareCacheRequest,
918
+ responseSerialize: serialize_config_InvalidateCloudflareCacheResponse,
919
+ responseDeserialize: deserialize_config_InvalidateCloudflareCacheResponse,
920
+ },
888
921
  };
889
922
 
890
923
  exports.ConfigClient = grpc.makeGenericClientConstructor(ConfigService, 'Config');