123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198 |
- /*##############################################################################
- HPCC SYSTEMS software Copyright (C) 2019 HPCC Systems.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ############################################################################## */
- ESPStruct KVPair
- {
- string Key;
- string Value;
- };
- ESPStruct NamespaceSet
- {
- string Namespace;
- ESParray<ESPStruct KVPair, Entry> Entries;
- };
- ESPStruct StoreInfo
- {
- string Name;
- string Type;
- string Description;
- string Owner;
- string CreateTime;
- string MaxValSize;
- bool IsDefault(false);
- };
- ESPrequest ListKeysRequest
- {
- string StoreName;
- string Namespace;
- bool UserSpecific(false);
- };
- ESPresponse [exceptions_inline] ListKeysResponse
- {
- string StoreName;
- string Namespace;
- ESParray<string, Key> KeySet;
- };
- ESPrequest ListStoresRequest
- {
- string NameFilter;
- string TypeFilter;
- string OwnerFilter;
- };
- ESPresponse [exceptions_inline] ListStoresResponse
- {
- ESParray<ESPStruct StoreInfo, Store> Stores;
- };
- ESPrequest ListNamespacesRequest
- {
- string StoreName;
- bool UserSpecific(false);
- };
- ESPresponse [exceptions_inline] ListNamespacesResponse
- {
- string StoreName;
- ESParray<string, Namespace> Namespaces;
- };
- ESPrequest DeleteNamespaceRequest
- {
- string StoreName;
- string Namespace;
- bool UserSpecific(false);
- string TargetUser;
- };
- ESPresponse [exceptions_inline] DeleteNamespaceResponse
- {
- bool Success;
- };
- ESPrequest DeleteRequest
- {
- string StoreName;
- string Namespace;
- string Key;
- bool UserSpecific(false);
- string TargetUser;
- };
- ESPresponse [exceptions_inline] DeleteResponse
- {
- bool Success;
- };
- ESPrequest FetchRequest
- {
- string StoreName;
- string Namespace;
- string Key;
- bool UserSpecific(false);
- };
- ESPresponse [exceptions_inline] FetchResponse
- {
- string Value;
- };
- ESPrequest FetchAllRequest
- {
- string StoreName;
- string Namespace;
- bool UserSpecific(false);
- };
- ESPrequest FetchKeyMDRequest
- {
- string StoreName;
- string Namespace;
- string Key;
- bool UserSpecific(false);
- };
- ESPresponse [exceptions_inline] FetchKeyMDResponse
- {
- string StoreName;
- string Namespace;
- string Key;
- ESParray<ESPStruct KVPair, Pair> Pairs;
- };
- ESPresponse [exceptions_inline] FetchAllResponse
- {
- string Namespace;
- ESParray<ESPStruct KVPair, Pair> Pairs;
- };
- ESPrequest SetRequest
- {
- string StoreName;
- string Namespace;
- string Key;
- string Value;
- bool UserSpecific(false);
- };
- ESPresponse [exceptions_inline] SetResponse
- {
- bool Success;
- };
- ESPrequest CreateStoreRequest
- {
- string Name;
- string Type;
- string Description;
- [depr_ver("1.01")] bool UserSpecific(false);
- [min_ver("1.02")] int MaxValueSize(1024);
- };
- ESPresponse [exceptions_inline] CreateStoreResponse
- {
- string Name;
- string Type;
- string Description;
- string Owner;
- [min_ver("1.01")] bool Success;
- };
- ESPservice [version("1.02"), default_client_version("1.02"), auth_feature("WsStoreAccess:READ"), exceptions_inline("./smc_xslt/exceptions.xslt")] wsstore
- {
- ESPmethod [auth_feature("WsStoreAccess:READ"), min_ver("1.02")] ListStores(ListStoresRequest, ListStoresResponse);
- ESPmethod [auth_feature("WsStoreAccess:FULL")] Delete(DeleteRequest, DeleteResponse);
- ESPmethod [auth_feature("WsStoreAccess:FULL")] DeleteNamespace(DeleteNamespaceRequest, DeleteNamespaceResponse);
- ESPmethod [auth_feature("WsStoreAccess:WRITE")] Set(SetRequest, SetResponse);
- ESPmethod [auth_feature("WsStoreAccess:READ")] Fetch(FetchRequest, FetchResponse);
- ESPmethod [auth_feature("WsStoreAccess:READ")] FetchAll(FetchAllRequest, FetchAllResponse);
- ESPmethod [auth_feature("WsStoreAccess:FULL")] FetchKeyMetadata(FetchKeyMDRequest, FetchKeyMDResponse);
- ESPmethod [auth_feature("WsStoreAccess:READ")] ListKeys(ListKeysRequest, ListKeysResponse);
- ESPmethod [auth_feature("WsStoreAccess:READ")] ListNamespaces(ListNamespacesRequest, ListNamespacesResponse);
- ESPmethod [auth_feature("WsStoreAccess:FULL")] CreateStore(CreateStoreRequest, CreateStoreResponse);
- };
- SCMexportdef(wsstore);
- SCMapi(wsstore) IClientwsstore *createwsstoreClient();
|