diff --git a/README.md b/README.md index c15ba766..fa7734c2 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ This repository holds the official Python API for Nebula Graph. ## Before you start -Before you start, please read this section to choose the right branch for you. The compatibility between the API and Nebula Graph service can be found in [How to choose nebula-python](##How-to-choose-nebula-python). The current master branch is compatible with Nebula Graph 3.0. +Before you start, please read this section to choose the right branch for you. The compatibility between the API and Nebula Graph service can be found in [How to choose nebula-python](##How-to-choose-nebula-python). The current master branch is compatible with Nebula Graph 3.1. ## The directory structure @@ -148,6 +148,7 @@ while resp.has_next(): | 2.5.0 | 2.5.0 | | 2.6.0 | 2.6.0/2.6.1 | | 3.0.0 | 3.0.0 | +| 3.1.0 | 3.1.0 | | master | master | ## How to contribute to nebula-python diff --git a/nebula3/common/ttypes.py b/nebula3/common/ttypes.py index 761ae9bb..13e1c5c0 100644 --- a/nebula3/common/ttypes.py +++ b/nebula3/common/ttypes.py @@ -197,6 +197,7 @@ class ErrorCode: E_JOB_NOT_FINISHED = -2048 E_TASK_REPORT_OUT_DATE = -2049 E_JOB_NOT_IN_SPACE = -2050 + E_JOB_NEED_RECOVER = -2051 E_INVALID_JOB = -2065 E_BACKUP_BUILDING_INDEX = -2066 E_BACKUP_SPACE_NOT_FOUND = -2067 @@ -245,11 +246,12 @@ class ErrorCode: E_OUTDATED_EDGE = -3072 E_WRITE_WRITE_CONFLICT = -3073 E_CLIENT_SERVER_INCOMPATIBLE = -3061 - E_WORKER_ID_FAILED = -3062 + E_ID_FAILED = -3062 E_RAFT_UNKNOWN_PART = -3500 E_RAFT_LOG_GAP = -3501 E_RAFT_LOG_STALE = -3502 E_RAFT_TERM_OUT_OF_DATE = -3503 + E_RAFT_UNKNOWN_APPEND_LOG = -3504 E_RAFT_WAITING_SNAPSHOT = -3511 E_RAFT_SENDING_SNAPSHOT = -3512 E_RAFT_INVALID_PEER = -3513 @@ -266,6 +268,7 @@ class ErrorCode: E_RAFT_WRITE_BLOCKED = -3528 E_RAFT_BUFFER_OVERFLOW = -3529 E_RAFT_ATOMIC_OP_FAILED = -3530 + E_LEADER_LEASE_FAILED = -3531 E_UNKNOWN = -8000 _VALUES_TO_NAMES = { @@ -344,6 +347,7 @@ class ErrorCode: -2048: "E_JOB_NOT_FINISHED", -2049: "E_TASK_REPORT_OUT_DATE", -2050: "E_JOB_NOT_IN_SPACE", + -2051: "E_JOB_NEED_RECOVER", -2065: "E_INVALID_JOB", -2066: "E_BACKUP_BUILDING_INDEX", -2067: "E_BACKUP_SPACE_NOT_FOUND", @@ -392,11 +396,12 @@ class ErrorCode: -3072: "E_OUTDATED_EDGE", -3073: "E_WRITE_WRITE_CONFLICT", -3061: "E_CLIENT_SERVER_INCOMPATIBLE", - -3062: "E_WORKER_ID_FAILED", + -3062: "E_ID_FAILED", -3500: "E_RAFT_UNKNOWN_PART", -3501: "E_RAFT_LOG_GAP", -3502: "E_RAFT_LOG_STALE", -3503: "E_RAFT_TERM_OUT_OF_DATE", + -3504: "E_RAFT_UNKNOWN_APPEND_LOG", -3511: "E_RAFT_WAITING_SNAPSHOT", -3512: "E_RAFT_SENDING_SNAPSHOT", -3513: "E_RAFT_INVALID_PEER", @@ -413,6 +418,7 @@ class ErrorCode: -3528: "E_RAFT_WRITE_BLOCKED", -3529: "E_RAFT_BUFFER_OVERFLOW", -3530: "E_RAFT_ATOMIC_OP_FAILED", + -3531: "E_LEADER_LEASE_FAILED", -8000: "E_UNKNOWN", } @@ -492,6 +498,7 @@ class ErrorCode: "E_JOB_NOT_FINISHED": -2048, "E_TASK_REPORT_OUT_DATE": -2049, "E_JOB_NOT_IN_SPACE": -2050, + "E_JOB_NEED_RECOVER": -2051, "E_INVALID_JOB": -2065, "E_BACKUP_BUILDING_INDEX": -2066, "E_BACKUP_SPACE_NOT_FOUND": -2067, @@ -540,11 +547,12 @@ class ErrorCode: "E_OUTDATED_EDGE": -3072, "E_WRITE_WRITE_CONFLICT": -3073, "E_CLIENT_SERVER_INCOMPATIBLE": -3061, - "E_WORKER_ID_FAILED": -3062, + "E_ID_FAILED": -3062, "E_RAFT_UNKNOWN_PART": -3500, "E_RAFT_LOG_GAP": -3501, "E_RAFT_LOG_STALE": -3502, "E_RAFT_TERM_OUT_OF_DATE": -3503, + "E_RAFT_UNKNOWN_APPEND_LOG": -3504, "E_RAFT_WAITING_SNAPSHOT": -3511, "E_RAFT_SENDING_SNAPSHOT": -3512, "E_RAFT_INVALID_PEER": -3513, @@ -561,6 +569,7 @@ class ErrorCode: "E_RAFT_WRITE_BLOCKED": -3528, "E_RAFT_BUFFER_OVERFLOW": -3529, "E_RAFT_ATOMIC_OP_FAILED": -3530, + "E_LEADER_LEASE_FAILED": -3531, "E_UNKNOWN": -8000, } diff --git a/nebula3/meta/MetaService-remote b/nebula3/meta/MetaService-remote index 8ce69942..f8739160 100755 --- a/nebula3/meta/MetaService-remote +++ b/nebula3/meta/MetaService-remote @@ -44,6 +44,7 @@ from nebula3.fbthrift.remote import Remote FUNCTIONS = { 'createSpace': Function('createSpace', 'MetaService', 'ExecResp', [('CreateSpaceReq', 'req', 'CreateSpaceReq')]), 'dropSpace': Function('dropSpace', 'MetaService', 'ExecResp', [('DropSpaceReq', 'req', 'DropSpaceReq')]), + 'clearSpace': Function('clearSpace', 'MetaService', 'ExecResp', [('ClearSpaceReq', 'req', 'ClearSpaceReq')]), 'getSpace': Function('getSpace', 'MetaService', 'GetSpaceResp', [('GetSpaceReq', 'req', 'GetSpaceReq')]), 'listSpaces': Function('listSpaces', 'MetaService', 'ListSpacesResp', [('ListSpacesReq', 'req', 'ListSpacesReq')]), 'alterSpace': Function('alterSpace', 'MetaService', 'ExecResp', [('AlterSpaceReq', 'req', 'AlterSpaceReq')]), @@ -65,12 +66,6 @@ FUNCTIONS = { 'getPartsAlloc': Function('getPartsAlloc', 'MetaService', 'GetPartsAllocResp', [('GetPartsAllocReq', 'req', 'GetPartsAllocReq')]), 'listParts': Function('listParts', 'MetaService', 'ListPartsResp', [('ListPartsReq', 'req', 'ListPartsReq')]), 'getWorkerId': Function('getWorkerId', 'MetaService', 'GetWorkerIdResp', [('GetWorkerIdReq', 'req', 'GetWorkerIdReq')]), - 'multiPut': Function('multiPut', 'MetaService', 'ExecResp', [('MultiPutReq', 'req', 'MultiPutReq')]), - 'get': Function('get', 'MetaService', 'GetResp', [('GetReq', 'req', 'GetReq')]), - 'multiGet': Function('multiGet', 'MetaService', 'MultiGetResp', [('MultiGetReq', 'req', 'MultiGetReq')]), - 'remove': Function('remove', 'MetaService', 'ExecResp', [('RemoveReq', 'req', 'RemoveReq')]), - 'removeRange': Function('removeRange', 'MetaService', 'ExecResp', [('RemoveRangeReq', 'req', 'RemoveRangeReq')]), - 'scan': Function('scan', 'MetaService', 'ScanResp', [('ScanReq', 'req', 'ScanReq')]), 'createTagIndex': Function('createTagIndex', 'MetaService', 'ExecResp', [('CreateTagIndexReq', 'req', 'CreateTagIndexReq')]), 'dropTagIndex': Function('dropTagIndex', 'MetaService', 'ExecResp', [('DropTagIndexReq', 'req', 'DropTagIndexReq')]), 'getTagIndex': Function('getTagIndex', 'MetaService', 'GetTagIndexResp', [('GetTagIndexReq', 'req', 'GetTagIndexReq')]), @@ -130,6 +125,8 @@ FUNCTIONS = { 'listCluster': Function('listCluster', 'MetaService', 'ListClusterInfoResp', [('ListClusterInfoReq', 'req', 'ListClusterInfoReq')]), 'getMetaDirInfo': Function('getMetaDirInfo', 'MetaService', 'GetMetaDirInfoResp', [('GetMetaDirInfoReq', 'req', 'GetMetaDirInfoReq')]), 'verifyClientVersion': Function('verifyClientVersion', 'MetaService', 'VerifyClientVersionResp', [('VerifyClientVersionReq', 'req', 'VerifyClientVersionReq')]), + 'saveGraphVersion': Function('saveGraphVersion', 'MetaService', 'SaveGraphVersionResp', [('SaveGraphVersionReq', 'req', 'SaveGraphVersionReq')]), + 'getSegmentId': Function('getSegmentId', 'MetaService', 'GetSegmentIdResp', [('GetSegmentIdReq', 'req', 'GetSegmentIdReq')]), } SERVICE_NAMES = ['MetaService', ] diff --git a/nebula3/meta/MetaService.py b/nebula3/meta/MetaService.py index 1790a82d..b4c2443c 100644 --- a/nebula3/meta/MetaService.py +++ b/nebula3/meta/MetaService.py @@ -12,7 +12,7 @@ from nebula3.fbthrift.protocol.TProtocol import TProtocolException -from .ttypes import UTF8STRINGS, AlterSchemaOp, RoleType, GeoShape, IsolationLevel, HostStatus, SnapshotStatus, AlterSpaceOp, AdminJobOp, AdminCmd, JobStatus, ListHostType, HostRole, TaskResult, ConfigModule, ConfigMode, ListenerType, ExternalServiceType, QueryStatus, ID, ColumnTypeDef, ColumnDef, SchemaProp, Schema, IdName, SpaceDesc, SpaceItem, TagItem, AlterSchemaItem, EdgeItem, IndexParams, IndexItem, HostItem, UserItem, RoleItem, ExecResp, AlterSpaceReq, AdminJobReq, JobDesc, TaskDesc, AdminJobResult, AdminJobResp, Correlativity, StatsItem, CreateSpaceReq, CreateSpaceAsReq, DropSpaceReq, ListSpacesReq, ListSpacesResp, GetSpaceReq, GetSpaceResp, CreateTagReq, AlterTagReq, DropTagReq, ListTagsReq, ListTagsResp, GetTagReq, GetTagResp, CreateEdgeReq, AlterEdgeReq, GetEdgeReq, GetEdgeResp, DropEdgeReq, ListEdgesReq, ListEdgesResp, AddHostsReq, DropHostsReq, ListHostsReq, ListHostsResp, PartItem, ListPartsReq, ListPartsResp, GetPartsAllocReq, GetPartsAllocResp, GetWorkerIdReq, GetWorkerIdResp, MultiPutReq, GetReq, GetResp, MultiGetReq, MultiGetResp, RemoveReq, RemoveRangeReq, ScanReq, ScanResp, HBResp, LeaderInfo, PartitionList, HBReq, ServiceInfo, AgentHBReq, AgentHBResp, IndexFieldDef, CreateTagIndexReq, DropTagIndexReq, GetTagIndexReq, GetTagIndexResp, ListTagIndexesReq, ListTagIndexesResp, CreateEdgeIndexReq, DropEdgeIndexReq, GetEdgeIndexReq, GetEdgeIndexResp, ListEdgeIndexesReq, ListEdgeIndexesResp, RebuildIndexReq, CreateUserReq, DropUserReq, AlterUserReq, GrantRoleReq, RevokeRoleReq, ListUsersReq, ListUsersResp, ListRolesReq, ListRolesResp, GetUserRolesReq, ChangePasswordReq, BalanceTask, ConfigItem, RegConfigReq, GetConfigReq, GetConfigResp, SetConfigReq, ListConfigsReq, ListConfigsResp, CreateSnapshotReq, DropSnapshotReq, ListSnapshotsReq, Snapshot, ListSnapshotsResp, ListIndexStatusReq, IndexStatus, ListIndexStatusResp, MergeZoneReq, DropZoneReq, DivideZoneReq, RenameZoneReq, AddHostsIntoZoneReq, GetZoneReq, GetZoneResp, ListZonesReq, Zone, ListZonesResp, AddListenerReq, RemoveListenerReq, ListListenerReq, ListenerInfo, ListListenerResp, GetStatsReq, GetStatsResp, HostBackupInfo, SpaceBackupInfo, BackupMeta, CreateBackupReq, CreateBackupResp, HostPair, RestoreMetaReq, ServiceClient, SignInServiceReq, SignOutServiceReq, ListServiceClientsReq, ListServiceClientsResp, FTIndex, CreateFTIndexReq, DropFTIndexReq, ListFTIndexesReq, ListFTIndexesResp, QueryDesc, Session, CreateSessionReq, CreateSessionResp, UpdateSessionsReq, UpdateSessionsResp, ListSessionsReq, ListSessionsResp, GetSessionReq, GetSessionResp, RemoveSessionReq, KillQueryReq, ReportTaskReq, ListClusterInfoResp, ListClusterInfoReq, GetMetaDirInfoResp, GetMetaDirInfoReq, VerifyClientVersionResp, VerifyClientVersionReq, SchemaVer, ClusterID +from .ttypes import UTF8STRINGS, AlterSchemaOp, RoleType, GeoShape, IsolationLevel, HostStatus, SnapshotStatus, AlterSpaceOp, JobOp, JobType, JobStatus, ListHostType, HostRole, TaskResult, ConfigModule, ConfigMode, ListenerType, ExternalServiceType, QueryStatus, ID, ColumnTypeDef, ColumnDef, SchemaProp, Schema, IdName, SpaceDesc, SpaceItem, TagItem, AlterSchemaItem, EdgeItem, IndexParams, IndexItem, HostItem, UserItem, RoleItem, ExecResp, AlterSpaceReq, AdminJobReq, JobDesc, TaskDesc, AdminJobResult, AdminJobResp, Correlativity, StatsItem, CreateSpaceReq, CreateSpaceAsReq, DropSpaceReq, ClearSpaceReq, ListSpacesReq, ListSpacesResp, GetSpaceReq, GetSpaceResp, CreateTagReq, AlterTagReq, DropTagReq, ListTagsReq, ListTagsResp, GetTagReq, GetTagResp, CreateEdgeReq, AlterEdgeReq, GetEdgeReq, GetEdgeResp, DropEdgeReq, ListEdgesReq, ListEdgesResp, AddHostsReq, DropHostsReq, ListHostsReq, ListHostsResp, PartItem, ListPartsReq, ListPartsResp, GetPartsAllocReq, GetPartsAllocResp, GetWorkerIdReq, GetWorkerIdResp, GetSegmentIdReq, GetSegmentIdResp, HBResp, LeaderInfo, PartitionList, HBReq, ServiceInfo, AgentHBReq, AgentHBResp, IndexFieldDef, CreateTagIndexReq, DropTagIndexReq, GetTagIndexReq, GetTagIndexResp, ListTagIndexesReq, ListTagIndexesResp, CreateEdgeIndexReq, DropEdgeIndexReq, GetEdgeIndexReq, GetEdgeIndexResp, ListEdgeIndexesReq, ListEdgeIndexesResp, RebuildIndexReq, CreateUserReq, DropUserReq, AlterUserReq, GrantRoleReq, RevokeRoleReq, ListUsersReq, ListUsersResp, ListRolesReq, ListRolesResp, GetUserRolesReq, ChangePasswordReq, BalanceTask, ConfigItem, RegConfigReq, GetConfigReq, GetConfigResp, SetConfigReq, ListConfigsReq, ListConfigsResp, CreateSnapshotReq, DropSnapshotReq, ListSnapshotsReq, Snapshot, ListSnapshotsResp, ListIndexStatusReq, IndexStatus, ListIndexStatusResp, MergeZoneReq, DropZoneReq, DivideZoneReq, RenameZoneReq, AddHostsIntoZoneReq, GetZoneReq, GetZoneResp, ListZonesReq, Zone, ListZonesResp, AddListenerReq, RemoveListenerReq, ListListenerReq, ListenerInfo, ListListenerResp, GetStatsReq, GetStatsResp, HostBackupInfo, SpaceBackupInfo, BackupMeta, CreateBackupReq, CreateBackupResp, HostPair, RestoreMetaReq, ServiceClient, SignInServiceReq, SignOutServiceReq, ListServiceClientsReq, ListServiceClientsResp, FTIndex, CreateFTIndexReq, DropFTIndexReq, ListFTIndexesReq, ListFTIndexesResp, QueryDesc, Session, CreateSessionReq, CreateSessionResp, UpdateSessionsReq, UpdateSessionsResp, ListSessionsReq, ListSessionsResp, GetSessionReq, GetSessionResp, RemoveSessionReq, KillQueryReq, ReportTaskReq, ListClusterInfoResp, ListClusterInfoReq, GetMetaDirInfoResp, GetMetaDirInfoReq, VerifyClientVersionResp, VerifyClientVersionReq, SaveGraphVersionResp, SaveGraphVersionReq, SchemaVer, ClusterID import nebula3.common.ttypes from nebula3.fbthrift.Thrift import TProcessor @@ -56,6 +56,13 @@ def dropSpace(self, req=None): """ pass + def clearSpace(self, req=None): + """ + Parameters: + - req + """ + pass + def getSpace(self, req=None): """ Parameters: @@ -203,48 +210,6 @@ def getWorkerId(self, req=None): """ pass - def multiPut(self, req=None): - """ - Parameters: - - req - """ - pass - - def get(self, req=None): - """ - Parameters: - - req - """ - pass - - def multiGet(self, req=None): - """ - Parameters: - - req - """ - pass - - def remove(self, req=None): - """ - Parameters: - - req - """ - pass - - def removeRange(self, req=None): - """ - Parameters: - - req - """ - pass - - def scan(self, req=None): - """ - Parameters: - - req - """ - pass - def createTagIndex(self, req=None): """ Parameters: @@ -658,6 +623,20 @@ def verifyClientVersion(self, req=None): """ pass + def saveGraphVersion(self, req=None): + """ + Parameters: + - req + """ + pass + + def getSegmentId(self, req=None): + """ + Parameters: + - req + """ + pass + class ContextIface: def createSpace(self, handler_ctx, req=None): @@ -674,6 +653,13 @@ def dropSpace(self, handler_ctx, req=None): """ pass + def clearSpace(self, handler_ctx, req=None): + """ + Parameters: + - req + """ + pass + def getSpace(self, handler_ctx, req=None): """ Parameters: @@ -821,48 +807,6 @@ def getWorkerId(self, handler_ctx, req=None): """ pass - def multiPut(self, handler_ctx, req=None): - """ - Parameters: - - req - """ - pass - - def get(self, handler_ctx, req=None): - """ - Parameters: - - req - """ - pass - - def multiGet(self, handler_ctx, req=None): - """ - Parameters: - - req - """ - pass - - def remove(self, handler_ctx, req=None): - """ - Parameters: - - req - """ - pass - - def removeRange(self, handler_ctx, req=None): - """ - Parameters: - - req - """ - pass - - def scan(self, handler_ctx, req=None): - """ - Parameters: - - req - """ - pass - def createTagIndex(self, handler_ctx, req=None): """ Parameters: @@ -1276,6 +1220,20 @@ def verifyClientVersion(self, handler_ctx, req=None): """ pass + def saveGraphVersion(self, handler_ctx, req=None): + """ + Parameters: + - req + """ + pass + + def getSegmentId(self, handler_ctx, req=None): + """ + Parameters: + - req + """ + pass + # HELPER FUNCTIONS AND STRUCTURES @@ -1661,7 +1619,7 @@ def dropSpace_result__setstate__(self, state): dropSpace_result.__getstate__ = lambda self: self.__dict__.copy() dropSpace_result.__setstate__ = dropSpace_result__setstate__ -class getSpace_args: +class clearSpace_args: """ Attributes: - req @@ -1689,7 +1647,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = GetSpaceReq() + self.req = ClearSpaceReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -1705,7 +1663,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('getSpace_args') + oprot.writeStructBegin('clearSpace_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -1734,30 +1692,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(getSpace_args) -getSpace_args.thrift_spec = ( +all_structs.append(clearSpace_args) +clearSpace_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [GetSpaceReq, GetSpaceReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [ClearSpaceReq, ClearSpaceReq.thrift_spec, False], None, 2, ), # 1 ) -getSpace_args.thrift_struct_annotations = { +clearSpace_args.thrift_struct_annotations = { } -getSpace_args.thrift_field_annotations = { +clearSpace_args.thrift_field_annotations = { } -def getSpace_args__init__(self, req=None,): +def clearSpace_args__init__(self, req=None,): self.req = req -getSpace_args.__init__ = getSpace_args__init__ +clearSpace_args.__init__ = clearSpace_args__init__ -def getSpace_args__setstate__(self, state): +def clearSpace_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -getSpace_args.__getstate__ = lambda self: self.__dict__.copy() -getSpace_args.__setstate__ = getSpace_args__setstate__ +clearSpace_args.__getstate__ = lambda self: self.__dict__.copy() +clearSpace_args.__setstate__ = clearSpace_args__setstate__ -class getSpace_result: +class clearSpace_result: """ Attributes: - success @@ -1785,7 +1743,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = GetSpaceResp() + self.success = ExecResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -1801,7 +1759,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('getSpace_result') + oprot.writeStructBegin('clearSpace_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -1830,29 +1788,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(getSpace_result) -getSpace_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [GetSpaceResp, GetSpaceResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(clearSpace_result) +clearSpace_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 ) -getSpace_result.thrift_struct_annotations = { +clearSpace_result.thrift_struct_annotations = { } -getSpace_result.thrift_field_annotations = { +clearSpace_result.thrift_field_annotations = { } -def getSpace_result__init__(self, success=None,): +def clearSpace_result__init__(self, success=None,): self.success = success -getSpace_result.__init__ = getSpace_result__init__ +clearSpace_result.__init__ = clearSpace_result__init__ -def getSpace_result__setstate__(self, state): +def clearSpace_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -getSpace_result.__getstate__ = lambda self: self.__dict__.copy() -getSpace_result.__setstate__ = getSpace_result__setstate__ +clearSpace_result.__getstate__ = lambda self: self.__dict__.copy() +clearSpace_result.__setstate__ = clearSpace_result__setstate__ -class listSpaces_args: +class getSpace_args: """ Attributes: - req @@ -1880,7 +1838,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = ListSpacesReq() + self.req = GetSpaceReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -1896,7 +1854,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('listSpaces_args') + oprot.writeStructBegin('getSpace_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -1925,30 +1883,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(listSpaces_args) -listSpaces_args.thrift_spec = ( +all_structs.append(getSpace_args) +getSpace_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [ListSpacesReq, ListSpacesReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [GetSpaceReq, GetSpaceReq.thrift_spec, False], None, 2, ), # 1 ) -listSpaces_args.thrift_struct_annotations = { +getSpace_args.thrift_struct_annotations = { } -listSpaces_args.thrift_field_annotations = { +getSpace_args.thrift_field_annotations = { } -def listSpaces_args__init__(self, req=None,): +def getSpace_args__init__(self, req=None,): self.req = req -listSpaces_args.__init__ = listSpaces_args__init__ +getSpace_args.__init__ = getSpace_args__init__ -def listSpaces_args__setstate__(self, state): +def getSpace_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -listSpaces_args.__getstate__ = lambda self: self.__dict__.copy() -listSpaces_args.__setstate__ = listSpaces_args__setstate__ +getSpace_args.__getstate__ = lambda self: self.__dict__.copy() +getSpace_args.__setstate__ = getSpace_args__setstate__ -class listSpaces_result: +class getSpace_result: """ Attributes: - success @@ -1976,7 +1934,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = ListSpacesResp() + self.success = GetSpaceResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -1992,7 +1950,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('listSpaces_result') + oprot.writeStructBegin('getSpace_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -2021,29 +1979,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(listSpaces_result) -listSpaces_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [ListSpacesResp, ListSpacesResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(getSpace_result) +getSpace_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [GetSpaceResp, GetSpaceResp.thrift_spec, False], None, 2, ), # 0 ) -listSpaces_result.thrift_struct_annotations = { +getSpace_result.thrift_struct_annotations = { } -listSpaces_result.thrift_field_annotations = { +getSpace_result.thrift_field_annotations = { } -def listSpaces_result__init__(self, success=None,): +def getSpace_result__init__(self, success=None,): self.success = success -listSpaces_result.__init__ = listSpaces_result__init__ +getSpace_result.__init__ = getSpace_result__init__ -def listSpaces_result__setstate__(self, state): +def getSpace_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -listSpaces_result.__getstate__ = lambda self: self.__dict__.copy() -listSpaces_result.__setstate__ = listSpaces_result__setstate__ +getSpace_result.__getstate__ = lambda self: self.__dict__.copy() +getSpace_result.__setstate__ = getSpace_result__setstate__ -class alterSpace_args: +class listSpaces_args: """ Attributes: - req @@ -2071,7 +2029,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = AlterSpaceReq() + self.req = ListSpacesReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -2087,7 +2045,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('alterSpace_args') + oprot.writeStructBegin('listSpaces_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -2116,30 +2074,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(alterSpace_args) -alterSpace_args.thrift_spec = ( +all_structs.append(listSpaces_args) +listSpaces_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [AlterSpaceReq, AlterSpaceReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [ListSpacesReq, ListSpacesReq.thrift_spec, False], None, 2, ), # 1 ) -alterSpace_args.thrift_struct_annotations = { +listSpaces_args.thrift_struct_annotations = { } -alterSpace_args.thrift_field_annotations = { +listSpaces_args.thrift_field_annotations = { } -def alterSpace_args__init__(self, req=None,): +def listSpaces_args__init__(self, req=None,): self.req = req -alterSpace_args.__init__ = alterSpace_args__init__ +listSpaces_args.__init__ = listSpaces_args__init__ -def alterSpace_args__setstate__(self, state): +def listSpaces_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -alterSpace_args.__getstate__ = lambda self: self.__dict__.copy() -alterSpace_args.__setstate__ = alterSpace_args__setstate__ +listSpaces_args.__getstate__ = lambda self: self.__dict__.copy() +listSpaces_args.__setstate__ = listSpaces_args__setstate__ -class alterSpace_result: +class listSpaces_result: """ Attributes: - success @@ -2167,7 +2125,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = ExecResp() + self.success = ListSpacesResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -2183,7 +2141,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('alterSpace_result') + oprot.writeStructBegin('listSpaces_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -2212,29 +2170,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(alterSpace_result) -alterSpace_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(listSpaces_result) +listSpaces_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [ListSpacesResp, ListSpacesResp.thrift_spec, False], None, 2, ), # 0 ) -alterSpace_result.thrift_struct_annotations = { +listSpaces_result.thrift_struct_annotations = { } -alterSpace_result.thrift_field_annotations = { +listSpaces_result.thrift_field_annotations = { } -def alterSpace_result__init__(self, success=None,): +def listSpaces_result__init__(self, success=None,): self.success = success -alterSpace_result.__init__ = alterSpace_result__init__ +listSpaces_result.__init__ = listSpaces_result__init__ -def alterSpace_result__setstate__(self, state): +def listSpaces_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -alterSpace_result.__getstate__ = lambda self: self.__dict__.copy() -alterSpace_result.__setstate__ = alterSpace_result__setstate__ +listSpaces_result.__getstate__ = lambda self: self.__dict__.copy() +listSpaces_result.__setstate__ = listSpaces_result__setstate__ -class createSpaceAs_args: +class alterSpace_args: """ Attributes: - req @@ -2262,7 +2220,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = CreateSpaceAsReq() + self.req = AlterSpaceReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -2278,7 +2236,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('createSpaceAs_args') + oprot.writeStructBegin('alterSpace_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -2307,15 +2265,206 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(createSpaceAs_args) -createSpaceAs_args.thrift_spec = ( +all_structs.append(alterSpace_args) +alterSpace_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [CreateSpaceAsReq, CreateSpaceAsReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [AlterSpaceReq, AlterSpaceReq.thrift_spec, False], None, 2, ), # 1 ) -createSpaceAs_args.thrift_struct_annotations = { +alterSpace_args.thrift_struct_annotations = { } -createSpaceAs_args.thrift_field_annotations = { +alterSpace_args.thrift_field_annotations = { +} + +def alterSpace_args__init__(self, req=None,): + self.req = req + +alterSpace_args.__init__ = alterSpace_args__init__ + +def alterSpace_args__setstate__(self, state): + state.setdefault('req', None) + self.__dict__ = state + +alterSpace_args.__getstate__ = lambda self: self.__dict__.copy() +alterSpace_args.__setstate__ = alterSpace_args__setstate__ + +class alterSpace_result: + """ + Attributes: + - success + """ + + thrift_spec = None + thrift_field_annotations = None + thrift_struct_annotations = None + __init__ = None + @staticmethod + def isUnion(): + return False + + def read(self, iprot): + if (isinstance(iprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: + fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0) + return + if (isinstance(iprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: + fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 0: + if ftype == TType.STRUCT: + self.success = ExecResp() + self.success.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if (isinstance(oprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: + oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0)) + return + if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: + oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) + return + oprot.writeStructBegin('alterSpace_result') + if self.success != None: + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def __repr__(self): + L = [] + padding = ' ' * 4 + if self.success is not None: + value = pprint.pformat(self.success, indent=0) + value = padding.join(value.splitlines(True)) + L.append(' success=%s' % (value)) + return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') + + def __eq__(self, other): + if not isinstance(other, self.__class__): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + + # Override the __hash__ function for Python3 - t10434117 + __hash__ = object.__hash__ + +all_structs.append(alterSpace_result) +alterSpace_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 +) + +alterSpace_result.thrift_struct_annotations = { +} +alterSpace_result.thrift_field_annotations = { +} + +def alterSpace_result__init__(self, success=None,): + self.success = success + +alterSpace_result.__init__ = alterSpace_result__init__ + +def alterSpace_result__setstate__(self, state): + state.setdefault('success', None) + self.__dict__ = state + +alterSpace_result.__getstate__ = lambda self: self.__dict__.copy() +alterSpace_result.__setstate__ = alterSpace_result__setstate__ + +class createSpaceAs_args: + """ + Attributes: + - req + """ + + thrift_spec = None + thrift_field_annotations = None + thrift_struct_annotations = None + __init__ = None + @staticmethod + def isUnion(): + return False + + def read(self, iprot): + if (isinstance(iprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: + fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0) + return + if (isinstance(iprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: + fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRUCT: + self.req = CreateSpaceAsReq() + self.req.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if (isinstance(oprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: + oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0)) + return + if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: + oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) + return + oprot.writeStructBegin('createSpaceAs_args') + if self.req != None: + oprot.writeFieldBegin('req', TType.STRUCT, 1) + self.req.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def __repr__(self): + L = [] + padding = ' ' * 4 + if self.req is not None: + value = pprint.pformat(self.req, indent=0) + value = padding.join(value.splitlines(True)) + L.append(' req=%s' % (value)) + return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') + + def __eq__(self, other): + if not isinstance(other, self.__class__): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + + # Override the __hash__ function for Python3 - t10434117 + __hash__ = object.__hash__ + +all_structs.append(createSpaceAs_args) +createSpaceAs_args.thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'req', [CreateSpaceAsReq, CreateSpaceAsReq.thrift_spec, False], None, 2, ), # 1 +) + +createSpaceAs_args.thrift_struct_annotations = { +} +createSpaceAs_args.thrift_field_annotations = { } def createSpaceAs_args__init__(self, req=None,): @@ -5672,7 +5821,7 @@ def getWorkerId_result__setstate__(self, state): getWorkerId_result.__getstate__ = lambda self: self.__dict__.copy() getWorkerId_result.__setstate__ = getWorkerId_result__setstate__ -class multiPut_args: +class createTagIndex_args: """ Attributes: - req @@ -5700,7 +5849,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = MultiPutReq() + self.req = CreateTagIndexReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -5716,7 +5865,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('multiPut_args') + oprot.writeStructBegin('createTagIndex_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -5745,30 +5894,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(multiPut_args) -multiPut_args.thrift_spec = ( +all_structs.append(createTagIndex_args) +createTagIndex_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [MultiPutReq, MultiPutReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [CreateTagIndexReq, CreateTagIndexReq.thrift_spec, False], None, 2, ), # 1 ) -multiPut_args.thrift_struct_annotations = { +createTagIndex_args.thrift_struct_annotations = { } -multiPut_args.thrift_field_annotations = { +createTagIndex_args.thrift_field_annotations = { } -def multiPut_args__init__(self, req=None,): +def createTagIndex_args__init__(self, req=None,): self.req = req -multiPut_args.__init__ = multiPut_args__init__ +createTagIndex_args.__init__ = createTagIndex_args__init__ -def multiPut_args__setstate__(self, state): +def createTagIndex_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -multiPut_args.__getstate__ = lambda self: self.__dict__.copy() -multiPut_args.__setstate__ = multiPut_args__setstate__ +createTagIndex_args.__getstate__ = lambda self: self.__dict__.copy() +createTagIndex_args.__setstate__ = createTagIndex_args__setstate__ -class multiPut_result: +class createTagIndex_result: """ Attributes: - success @@ -5812,7 +5961,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('multiPut_result') + oprot.writeStructBegin('createTagIndex_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -5841,29 +5990,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(multiPut_result) -multiPut_result.thrift_spec = ( +all_structs.append(createTagIndex_result) +createTagIndex_result.thrift_spec = ( (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 ) -multiPut_result.thrift_struct_annotations = { +createTagIndex_result.thrift_struct_annotations = { } -multiPut_result.thrift_field_annotations = { +createTagIndex_result.thrift_field_annotations = { } -def multiPut_result__init__(self, success=None,): +def createTagIndex_result__init__(self, success=None,): self.success = success -multiPut_result.__init__ = multiPut_result__init__ +createTagIndex_result.__init__ = createTagIndex_result__init__ -def multiPut_result__setstate__(self, state): +def createTagIndex_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -multiPut_result.__getstate__ = lambda self: self.__dict__.copy() -multiPut_result.__setstate__ = multiPut_result__setstate__ +createTagIndex_result.__getstate__ = lambda self: self.__dict__.copy() +createTagIndex_result.__setstate__ = createTagIndex_result__setstate__ -class get_args: +class dropTagIndex_args: """ Attributes: - req @@ -5891,7 +6040,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = GetReq() + self.req = DropTagIndexReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -5907,7 +6056,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('get_args') + oprot.writeStructBegin('dropTagIndex_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -5936,30 +6085,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(get_args) -get_args.thrift_spec = ( +all_structs.append(dropTagIndex_args) +dropTagIndex_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [GetReq, GetReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [DropTagIndexReq, DropTagIndexReq.thrift_spec, False], None, 2, ), # 1 ) -get_args.thrift_struct_annotations = { +dropTagIndex_args.thrift_struct_annotations = { } -get_args.thrift_field_annotations = { +dropTagIndex_args.thrift_field_annotations = { } -def get_args__init__(self, req=None,): +def dropTagIndex_args__init__(self, req=None,): self.req = req -get_args.__init__ = get_args__init__ +dropTagIndex_args.__init__ = dropTagIndex_args__init__ -def get_args__setstate__(self, state): +def dropTagIndex_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -get_args.__getstate__ = lambda self: self.__dict__.copy() -get_args.__setstate__ = get_args__setstate__ +dropTagIndex_args.__getstate__ = lambda self: self.__dict__.copy() +dropTagIndex_args.__setstate__ = dropTagIndex_args__setstate__ -class get_result: +class dropTagIndex_result: """ Attributes: - success @@ -5987,7 +6136,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = GetResp() + self.success = ExecResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -6003,7 +6152,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('get_result') + oprot.writeStructBegin('dropTagIndex_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -6032,29 +6181,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(get_result) -get_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [GetResp, GetResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(dropTagIndex_result) +dropTagIndex_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 ) -get_result.thrift_struct_annotations = { +dropTagIndex_result.thrift_struct_annotations = { } -get_result.thrift_field_annotations = { +dropTagIndex_result.thrift_field_annotations = { } -def get_result__init__(self, success=None,): +def dropTagIndex_result__init__(self, success=None,): self.success = success -get_result.__init__ = get_result__init__ +dropTagIndex_result.__init__ = dropTagIndex_result__init__ -def get_result__setstate__(self, state): +def dropTagIndex_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -get_result.__getstate__ = lambda self: self.__dict__.copy() -get_result.__setstate__ = get_result__setstate__ +dropTagIndex_result.__getstate__ = lambda self: self.__dict__.copy() +dropTagIndex_result.__setstate__ = dropTagIndex_result__setstate__ -class multiGet_args: +class getTagIndex_args: """ Attributes: - req @@ -6082,7 +6231,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = MultiGetReq() + self.req = GetTagIndexReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -6098,7 +6247,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('multiGet_args') + oprot.writeStructBegin('getTagIndex_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -6127,30 +6276,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(multiGet_args) -multiGet_args.thrift_spec = ( +all_structs.append(getTagIndex_args) +getTagIndex_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [MultiGetReq, MultiGetReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [GetTagIndexReq, GetTagIndexReq.thrift_spec, False], None, 2, ), # 1 ) -multiGet_args.thrift_struct_annotations = { +getTagIndex_args.thrift_struct_annotations = { } -multiGet_args.thrift_field_annotations = { +getTagIndex_args.thrift_field_annotations = { } -def multiGet_args__init__(self, req=None,): +def getTagIndex_args__init__(self, req=None,): self.req = req -multiGet_args.__init__ = multiGet_args__init__ +getTagIndex_args.__init__ = getTagIndex_args__init__ -def multiGet_args__setstate__(self, state): +def getTagIndex_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -multiGet_args.__getstate__ = lambda self: self.__dict__.copy() -multiGet_args.__setstate__ = multiGet_args__setstate__ +getTagIndex_args.__getstate__ = lambda self: self.__dict__.copy() +getTagIndex_args.__setstate__ = getTagIndex_args__setstate__ -class multiGet_result: +class getTagIndex_result: """ Attributes: - success @@ -6178,7 +6327,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = MultiGetResp() + self.success = GetTagIndexResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -6194,7 +6343,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('multiGet_result') + oprot.writeStructBegin('getTagIndex_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -6223,29 +6372,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(multiGet_result) -multiGet_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [MultiGetResp, MultiGetResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(getTagIndex_result) +getTagIndex_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [GetTagIndexResp, GetTagIndexResp.thrift_spec, False], None, 2, ), # 0 ) -multiGet_result.thrift_struct_annotations = { +getTagIndex_result.thrift_struct_annotations = { } -multiGet_result.thrift_field_annotations = { +getTagIndex_result.thrift_field_annotations = { } -def multiGet_result__init__(self, success=None,): +def getTagIndex_result__init__(self, success=None,): self.success = success -multiGet_result.__init__ = multiGet_result__init__ +getTagIndex_result.__init__ = getTagIndex_result__init__ -def multiGet_result__setstate__(self, state): +def getTagIndex_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -multiGet_result.__getstate__ = lambda self: self.__dict__.copy() -multiGet_result.__setstate__ = multiGet_result__setstate__ +getTagIndex_result.__getstate__ = lambda self: self.__dict__.copy() +getTagIndex_result.__setstate__ = getTagIndex_result__setstate__ -class remove_args: +class listTagIndexes_args: """ Attributes: - req @@ -6273,7 +6422,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = RemoveReq() + self.req = ListTagIndexesReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -6289,7 +6438,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('remove_args') + oprot.writeStructBegin('listTagIndexes_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -6318,30 +6467,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(remove_args) -remove_args.thrift_spec = ( +all_structs.append(listTagIndexes_args) +listTagIndexes_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [RemoveReq, RemoveReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [ListTagIndexesReq, ListTagIndexesReq.thrift_spec, False], None, 2, ), # 1 ) -remove_args.thrift_struct_annotations = { +listTagIndexes_args.thrift_struct_annotations = { } -remove_args.thrift_field_annotations = { +listTagIndexes_args.thrift_field_annotations = { } -def remove_args__init__(self, req=None,): +def listTagIndexes_args__init__(self, req=None,): self.req = req -remove_args.__init__ = remove_args__init__ +listTagIndexes_args.__init__ = listTagIndexes_args__init__ -def remove_args__setstate__(self, state): +def listTagIndexes_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -remove_args.__getstate__ = lambda self: self.__dict__.copy() -remove_args.__setstate__ = remove_args__setstate__ +listTagIndexes_args.__getstate__ = lambda self: self.__dict__.copy() +listTagIndexes_args.__setstate__ = listTagIndexes_args__setstate__ -class remove_result: +class listTagIndexes_result: """ Attributes: - success @@ -6369,7 +6518,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = ExecResp() + self.success = ListTagIndexesResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -6385,7 +6534,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('remove_result') + oprot.writeStructBegin('listTagIndexes_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -6414,29 +6563,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(remove_result) -remove_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(listTagIndexes_result) +listTagIndexes_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [ListTagIndexesResp, ListTagIndexesResp.thrift_spec, False], None, 2, ), # 0 ) -remove_result.thrift_struct_annotations = { +listTagIndexes_result.thrift_struct_annotations = { } -remove_result.thrift_field_annotations = { +listTagIndexes_result.thrift_field_annotations = { } -def remove_result__init__(self, success=None,): +def listTagIndexes_result__init__(self, success=None,): self.success = success -remove_result.__init__ = remove_result__init__ +listTagIndexes_result.__init__ = listTagIndexes_result__init__ -def remove_result__setstate__(self, state): +def listTagIndexes_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -remove_result.__getstate__ = lambda self: self.__dict__.copy() -remove_result.__setstate__ = remove_result__setstate__ +listTagIndexes_result.__getstate__ = lambda self: self.__dict__.copy() +listTagIndexes_result.__setstate__ = listTagIndexes_result__setstate__ -class removeRange_args: +class rebuildTagIndex_args: """ Attributes: - req @@ -6464,7 +6613,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = RemoveRangeReq() + self.req = RebuildIndexReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -6480,7 +6629,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('removeRange_args') + oprot.writeStructBegin('rebuildTagIndex_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -6509,30 +6658,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(removeRange_args) -removeRange_args.thrift_spec = ( +all_structs.append(rebuildTagIndex_args) +rebuildTagIndex_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [RemoveRangeReq, RemoveRangeReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [RebuildIndexReq, RebuildIndexReq.thrift_spec, False], None, 2, ), # 1 ) -removeRange_args.thrift_struct_annotations = { +rebuildTagIndex_args.thrift_struct_annotations = { } -removeRange_args.thrift_field_annotations = { +rebuildTagIndex_args.thrift_field_annotations = { } -def removeRange_args__init__(self, req=None,): +def rebuildTagIndex_args__init__(self, req=None,): self.req = req -removeRange_args.__init__ = removeRange_args__init__ +rebuildTagIndex_args.__init__ = rebuildTagIndex_args__init__ -def removeRange_args__setstate__(self, state): +def rebuildTagIndex_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -removeRange_args.__getstate__ = lambda self: self.__dict__.copy() -removeRange_args.__setstate__ = removeRange_args__setstate__ +rebuildTagIndex_args.__getstate__ = lambda self: self.__dict__.copy() +rebuildTagIndex_args.__setstate__ = rebuildTagIndex_args__setstate__ -class removeRange_result: +class rebuildTagIndex_result: """ Attributes: - success @@ -6576,7 +6725,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('removeRange_result') + oprot.writeStructBegin('rebuildTagIndex_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -6605,29 +6754,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(removeRange_result) -removeRange_result.thrift_spec = ( +all_structs.append(rebuildTagIndex_result) +rebuildTagIndex_result.thrift_spec = ( (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 ) -removeRange_result.thrift_struct_annotations = { +rebuildTagIndex_result.thrift_struct_annotations = { } -removeRange_result.thrift_field_annotations = { +rebuildTagIndex_result.thrift_field_annotations = { } -def removeRange_result__init__(self, success=None,): +def rebuildTagIndex_result__init__(self, success=None,): self.success = success -removeRange_result.__init__ = removeRange_result__init__ +rebuildTagIndex_result.__init__ = rebuildTagIndex_result__init__ -def removeRange_result__setstate__(self, state): +def rebuildTagIndex_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -removeRange_result.__getstate__ = lambda self: self.__dict__.copy() -removeRange_result.__setstate__ = removeRange_result__setstate__ +rebuildTagIndex_result.__getstate__ = lambda self: self.__dict__.copy() +rebuildTagIndex_result.__setstate__ = rebuildTagIndex_result__setstate__ -class scan_args: +class listTagIndexStatus_args: """ Attributes: - req @@ -6655,7 +6804,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = ScanReq() + self.req = ListIndexStatusReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -6671,7 +6820,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('scan_args') + oprot.writeStructBegin('listTagIndexStatus_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -6700,30 +6849,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(scan_args) -scan_args.thrift_spec = ( +all_structs.append(listTagIndexStatus_args) +listTagIndexStatus_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [ScanReq, ScanReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [ListIndexStatusReq, ListIndexStatusReq.thrift_spec, False], None, 2, ), # 1 ) -scan_args.thrift_struct_annotations = { +listTagIndexStatus_args.thrift_struct_annotations = { } -scan_args.thrift_field_annotations = { +listTagIndexStatus_args.thrift_field_annotations = { } -def scan_args__init__(self, req=None,): +def listTagIndexStatus_args__init__(self, req=None,): self.req = req -scan_args.__init__ = scan_args__init__ +listTagIndexStatus_args.__init__ = listTagIndexStatus_args__init__ -def scan_args__setstate__(self, state): +def listTagIndexStatus_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -scan_args.__getstate__ = lambda self: self.__dict__.copy() -scan_args.__setstate__ = scan_args__setstate__ +listTagIndexStatus_args.__getstate__ = lambda self: self.__dict__.copy() +listTagIndexStatus_args.__setstate__ = listTagIndexStatus_args__setstate__ -class scan_result: +class listTagIndexStatus_result: """ Attributes: - success @@ -6751,7 +6900,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = ScanResp() + self.success = ListIndexStatusResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -6767,7 +6916,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('scan_result') + oprot.writeStructBegin('listTagIndexStatus_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -6796,29 +6945,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(scan_result) -scan_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [ScanResp, ScanResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(listTagIndexStatus_result) +listTagIndexStatus_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [ListIndexStatusResp, ListIndexStatusResp.thrift_spec, False], None, 2, ), # 0 ) -scan_result.thrift_struct_annotations = { +listTagIndexStatus_result.thrift_struct_annotations = { } -scan_result.thrift_field_annotations = { +listTagIndexStatus_result.thrift_field_annotations = { } -def scan_result__init__(self, success=None,): +def listTagIndexStatus_result__init__(self, success=None,): self.success = success -scan_result.__init__ = scan_result__init__ +listTagIndexStatus_result.__init__ = listTagIndexStatus_result__init__ -def scan_result__setstate__(self, state): +def listTagIndexStatus_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -scan_result.__getstate__ = lambda self: self.__dict__.copy() -scan_result.__setstate__ = scan_result__setstate__ +listTagIndexStatus_result.__getstate__ = lambda self: self.__dict__.copy() +listTagIndexStatus_result.__setstate__ = listTagIndexStatus_result__setstate__ -class createTagIndex_args: +class createEdgeIndex_args: """ Attributes: - req @@ -6846,7 +6995,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = CreateTagIndexReq() + self.req = CreateEdgeIndexReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -6862,7 +7011,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('createTagIndex_args') + oprot.writeStructBegin('createEdgeIndex_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -6891,30 +7040,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(createTagIndex_args) -createTagIndex_args.thrift_spec = ( +all_structs.append(createEdgeIndex_args) +createEdgeIndex_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [CreateTagIndexReq, CreateTagIndexReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [CreateEdgeIndexReq, CreateEdgeIndexReq.thrift_spec, False], None, 2, ), # 1 ) -createTagIndex_args.thrift_struct_annotations = { +createEdgeIndex_args.thrift_struct_annotations = { } -createTagIndex_args.thrift_field_annotations = { +createEdgeIndex_args.thrift_field_annotations = { } -def createTagIndex_args__init__(self, req=None,): +def createEdgeIndex_args__init__(self, req=None,): self.req = req -createTagIndex_args.__init__ = createTagIndex_args__init__ +createEdgeIndex_args.__init__ = createEdgeIndex_args__init__ -def createTagIndex_args__setstate__(self, state): +def createEdgeIndex_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -createTagIndex_args.__getstate__ = lambda self: self.__dict__.copy() -createTagIndex_args.__setstate__ = createTagIndex_args__setstate__ +createEdgeIndex_args.__getstate__ = lambda self: self.__dict__.copy() +createEdgeIndex_args.__setstate__ = createEdgeIndex_args__setstate__ -class createTagIndex_result: +class createEdgeIndex_result: """ Attributes: - success @@ -6958,7 +7107,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('createTagIndex_result') + oprot.writeStructBegin('createEdgeIndex_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -6987,29 +7136,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(createTagIndex_result) -createTagIndex_result.thrift_spec = ( +all_structs.append(createEdgeIndex_result) +createEdgeIndex_result.thrift_spec = ( (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 ) -createTagIndex_result.thrift_struct_annotations = { +createEdgeIndex_result.thrift_struct_annotations = { } -createTagIndex_result.thrift_field_annotations = { +createEdgeIndex_result.thrift_field_annotations = { } -def createTagIndex_result__init__(self, success=None,): +def createEdgeIndex_result__init__(self, success=None,): self.success = success -createTagIndex_result.__init__ = createTagIndex_result__init__ +createEdgeIndex_result.__init__ = createEdgeIndex_result__init__ -def createTagIndex_result__setstate__(self, state): +def createEdgeIndex_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -createTagIndex_result.__getstate__ = lambda self: self.__dict__.copy() -createTagIndex_result.__setstate__ = createTagIndex_result__setstate__ +createEdgeIndex_result.__getstate__ = lambda self: self.__dict__.copy() +createEdgeIndex_result.__setstate__ = createEdgeIndex_result__setstate__ -class dropTagIndex_args: +class dropEdgeIndex_args: """ Attributes: - req @@ -7037,7 +7186,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = DropTagIndexReq() + self.req = DropEdgeIndexReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -7053,7 +7202,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('dropTagIndex_args') + oprot.writeStructBegin('dropEdgeIndex_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -7082,30 +7231,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(dropTagIndex_args) -dropTagIndex_args.thrift_spec = ( +all_structs.append(dropEdgeIndex_args) +dropEdgeIndex_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [DropTagIndexReq, DropTagIndexReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [DropEdgeIndexReq, DropEdgeIndexReq.thrift_spec, False], None, 2, ), # 1 ) -dropTagIndex_args.thrift_struct_annotations = { +dropEdgeIndex_args.thrift_struct_annotations = { } -dropTagIndex_args.thrift_field_annotations = { +dropEdgeIndex_args.thrift_field_annotations = { } -def dropTagIndex_args__init__(self, req=None,): +def dropEdgeIndex_args__init__(self, req=None,): self.req = req -dropTagIndex_args.__init__ = dropTagIndex_args__init__ +dropEdgeIndex_args.__init__ = dropEdgeIndex_args__init__ -def dropTagIndex_args__setstate__(self, state): +def dropEdgeIndex_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -dropTagIndex_args.__getstate__ = lambda self: self.__dict__.copy() -dropTagIndex_args.__setstate__ = dropTagIndex_args__setstate__ +dropEdgeIndex_args.__getstate__ = lambda self: self.__dict__.copy() +dropEdgeIndex_args.__setstate__ = dropEdgeIndex_args__setstate__ -class dropTagIndex_result: +class dropEdgeIndex_result: """ Attributes: - success @@ -7149,7 +7298,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('dropTagIndex_result') + oprot.writeStructBegin('dropEdgeIndex_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -7178,29 +7327,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(dropTagIndex_result) -dropTagIndex_result.thrift_spec = ( +all_structs.append(dropEdgeIndex_result) +dropEdgeIndex_result.thrift_spec = ( (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 ) -dropTagIndex_result.thrift_struct_annotations = { +dropEdgeIndex_result.thrift_struct_annotations = { } -dropTagIndex_result.thrift_field_annotations = { +dropEdgeIndex_result.thrift_field_annotations = { } -def dropTagIndex_result__init__(self, success=None,): +def dropEdgeIndex_result__init__(self, success=None,): self.success = success -dropTagIndex_result.__init__ = dropTagIndex_result__init__ +dropEdgeIndex_result.__init__ = dropEdgeIndex_result__init__ -def dropTagIndex_result__setstate__(self, state): +def dropEdgeIndex_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -dropTagIndex_result.__getstate__ = lambda self: self.__dict__.copy() -dropTagIndex_result.__setstate__ = dropTagIndex_result__setstate__ +dropEdgeIndex_result.__getstate__ = lambda self: self.__dict__.copy() +dropEdgeIndex_result.__setstate__ = dropEdgeIndex_result__setstate__ -class getTagIndex_args: +class getEdgeIndex_args: """ Attributes: - req @@ -7228,7 +7377,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = GetTagIndexReq() + self.req = GetEdgeIndexReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -7244,7 +7393,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('getTagIndex_args') + oprot.writeStructBegin('getEdgeIndex_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -7273,30 +7422,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(getTagIndex_args) -getTagIndex_args.thrift_spec = ( +all_structs.append(getEdgeIndex_args) +getEdgeIndex_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [GetTagIndexReq, GetTagIndexReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [GetEdgeIndexReq, GetEdgeIndexReq.thrift_spec, False], None, 2, ), # 1 ) -getTagIndex_args.thrift_struct_annotations = { +getEdgeIndex_args.thrift_struct_annotations = { } -getTagIndex_args.thrift_field_annotations = { +getEdgeIndex_args.thrift_field_annotations = { } -def getTagIndex_args__init__(self, req=None,): +def getEdgeIndex_args__init__(self, req=None,): self.req = req -getTagIndex_args.__init__ = getTagIndex_args__init__ +getEdgeIndex_args.__init__ = getEdgeIndex_args__init__ -def getTagIndex_args__setstate__(self, state): +def getEdgeIndex_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -getTagIndex_args.__getstate__ = lambda self: self.__dict__.copy() -getTagIndex_args.__setstate__ = getTagIndex_args__setstate__ +getEdgeIndex_args.__getstate__ = lambda self: self.__dict__.copy() +getEdgeIndex_args.__setstate__ = getEdgeIndex_args__setstate__ -class getTagIndex_result: +class getEdgeIndex_result: """ Attributes: - success @@ -7324,7 +7473,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = GetTagIndexResp() + self.success = GetEdgeIndexResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -7340,7 +7489,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('getTagIndex_result') + oprot.writeStructBegin('getEdgeIndex_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -7369,29 +7518,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(getTagIndex_result) -getTagIndex_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [GetTagIndexResp, GetTagIndexResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(getEdgeIndex_result) +getEdgeIndex_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [GetEdgeIndexResp, GetEdgeIndexResp.thrift_spec, False], None, 2, ), # 0 ) -getTagIndex_result.thrift_struct_annotations = { +getEdgeIndex_result.thrift_struct_annotations = { } -getTagIndex_result.thrift_field_annotations = { +getEdgeIndex_result.thrift_field_annotations = { } -def getTagIndex_result__init__(self, success=None,): +def getEdgeIndex_result__init__(self, success=None,): self.success = success -getTagIndex_result.__init__ = getTagIndex_result__init__ +getEdgeIndex_result.__init__ = getEdgeIndex_result__init__ -def getTagIndex_result__setstate__(self, state): +def getEdgeIndex_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -getTagIndex_result.__getstate__ = lambda self: self.__dict__.copy() -getTagIndex_result.__setstate__ = getTagIndex_result__setstate__ +getEdgeIndex_result.__getstate__ = lambda self: self.__dict__.copy() +getEdgeIndex_result.__setstate__ = getEdgeIndex_result__setstate__ -class listTagIndexes_args: +class listEdgeIndexes_args: """ Attributes: - req @@ -7419,7 +7568,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = ListTagIndexesReq() + self.req = ListEdgeIndexesReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -7435,7 +7584,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('listTagIndexes_args') + oprot.writeStructBegin('listEdgeIndexes_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -7464,30 +7613,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(listTagIndexes_args) -listTagIndexes_args.thrift_spec = ( +all_structs.append(listEdgeIndexes_args) +listEdgeIndexes_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [ListTagIndexesReq, ListTagIndexesReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [ListEdgeIndexesReq, ListEdgeIndexesReq.thrift_spec, False], None, 2, ), # 1 ) -listTagIndexes_args.thrift_struct_annotations = { +listEdgeIndexes_args.thrift_struct_annotations = { } -listTagIndexes_args.thrift_field_annotations = { +listEdgeIndexes_args.thrift_field_annotations = { } -def listTagIndexes_args__init__(self, req=None,): +def listEdgeIndexes_args__init__(self, req=None,): self.req = req -listTagIndexes_args.__init__ = listTagIndexes_args__init__ +listEdgeIndexes_args.__init__ = listEdgeIndexes_args__init__ -def listTagIndexes_args__setstate__(self, state): +def listEdgeIndexes_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -listTagIndexes_args.__getstate__ = lambda self: self.__dict__.copy() -listTagIndexes_args.__setstate__ = listTagIndexes_args__setstate__ +listEdgeIndexes_args.__getstate__ = lambda self: self.__dict__.copy() +listEdgeIndexes_args.__setstate__ = listEdgeIndexes_args__setstate__ -class listTagIndexes_result: +class listEdgeIndexes_result: """ Attributes: - success @@ -7515,7 +7664,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = ListTagIndexesResp() + self.success = ListEdgeIndexesResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -7531,7 +7680,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('listTagIndexes_result') + oprot.writeStructBegin('listEdgeIndexes_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -7560,29 +7709,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(listTagIndexes_result) -listTagIndexes_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [ListTagIndexesResp, ListTagIndexesResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(listEdgeIndexes_result) +listEdgeIndexes_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [ListEdgeIndexesResp, ListEdgeIndexesResp.thrift_spec, False], None, 2, ), # 0 ) -listTagIndexes_result.thrift_struct_annotations = { +listEdgeIndexes_result.thrift_struct_annotations = { } -listTagIndexes_result.thrift_field_annotations = { +listEdgeIndexes_result.thrift_field_annotations = { } -def listTagIndexes_result__init__(self, success=None,): +def listEdgeIndexes_result__init__(self, success=None,): self.success = success -listTagIndexes_result.__init__ = listTagIndexes_result__init__ +listEdgeIndexes_result.__init__ = listEdgeIndexes_result__init__ -def listTagIndexes_result__setstate__(self, state): +def listEdgeIndexes_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -listTagIndexes_result.__getstate__ = lambda self: self.__dict__.copy() -listTagIndexes_result.__setstate__ = listTagIndexes_result__setstate__ +listEdgeIndexes_result.__getstate__ = lambda self: self.__dict__.copy() +listEdgeIndexes_result.__setstate__ = listEdgeIndexes_result__setstate__ -class rebuildTagIndex_args: +class rebuildEdgeIndex_args: """ Attributes: - req @@ -7626,7 +7775,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('rebuildTagIndex_args') + oprot.writeStructBegin('rebuildEdgeIndex_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -7655,30 +7804,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(rebuildTagIndex_args) -rebuildTagIndex_args.thrift_spec = ( +all_structs.append(rebuildEdgeIndex_args) +rebuildEdgeIndex_args.thrift_spec = ( None, # 0 (1, TType.STRUCT, 'req', [RebuildIndexReq, RebuildIndexReq.thrift_spec, False], None, 2, ), # 1 ) -rebuildTagIndex_args.thrift_struct_annotations = { +rebuildEdgeIndex_args.thrift_struct_annotations = { } -rebuildTagIndex_args.thrift_field_annotations = { +rebuildEdgeIndex_args.thrift_field_annotations = { } -def rebuildTagIndex_args__init__(self, req=None,): +def rebuildEdgeIndex_args__init__(self, req=None,): self.req = req -rebuildTagIndex_args.__init__ = rebuildTagIndex_args__init__ +rebuildEdgeIndex_args.__init__ = rebuildEdgeIndex_args__init__ -def rebuildTagIndex_args__setstate__(self, state): +def rebuildEdgeIndex_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -rebuildTagIndex_args.__getstate__ = lambda self: self.__dict__.copy() -rebuildTagIndex_args.__setstate__ = rebuildTagIndex_args__setstate__ +rebuildEdgeIndex_args.__getstate__ = lambda self: self.__dict__.copy() +rebuildEdgeIndex_args.__setstate__ = rebuildEdgeIndex_args__setstate__ -class rebuildTagIndex_result: +class rebuildEdgeIndex_result: """ Attributes: - success @@ -7722,7 +7871,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('rebuildTagIndex_result') + oprot.writeStructBegin('rebuildEdgeIndex_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -7751,29 +7900,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(rebuildTagIndex_result) -rebuildTagIndex_result.thrift_spec = ( +all_structs.append(rebuildEdgeIndex_result) +rebuildEdgeIndex_result.thrift_spec = ( (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 ) -rebuildTagIndex_result.thrift_struct_annotations = { +rebuildEdgeIndex_result.thrift_struct_annotations = { } -rebuildTagIndex_result.thrift_field_annotations = { +rebuildEdgeIndex_result.thrift_field_annotations = { } -def rebuildTagIndex_result__init__(self, success=None,): +def rebuildEdgeIndex_result__init__(self, success=None,): self.success = success -rebuildTagIndex_result.__init__ = rebuildTagIndex_result__init__ +rebuildEdgeIndex_result.__init__ = rebuildEdgeIndex_result__init__ -def rebuildTagIndex_result__setstate__(self, state): +def rebuildEdgeIndex_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -rebuildTagIndex_result.__getstate__ = lambda self: self.__dict__.copy() -rebuildTagIndex_result.__setstate__ = rebuildTagIndex_result__setstate__ +rebuildEdgeIndex_result.__getstate__ = lambda self: self.__dict__.copy() +rebuildEdgeIndex_result.__setstate__ = rebuildEdgeIndex_result__setstate__ -class listTagIndexStatus_args: +class listEdgeIndexStatus_args: """ Attributes: - req @@ -7817,7 +7966,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('listTagIndexStatus_args') + oprot.writeStructBegin('listEdgeIndexStatus_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -7846,30 +7995,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(listTagIndexStatus_args) -listTagIndexStatus_args.thrift_spec = ( +all_structs.append(listEdgeIndexStatus_args) +listEdgeIndexStatus_args.thrift_spec = ( None, # 0 (1, TType.STRUCT, 'req', [ListIndexStatusReq, ListIndexStatusReq.thrift_spec, False], None, 2, ), # 1 ) -listTagIndexStatus_args.thrift_struct_annotations = { +listEdgeIndexStatus_args.thrift_struct_annotations = { } -listTagIndexStatus_args.thrift_field_annotations = { +listEdgeIndexStatus_args.thrift_field_annotations = { } -def listTagIndexStatus_args__init__(self, req=None,): +def listEdgeIndexStatus_args__init__(self, req=None,): self.req = req -listTagIndexStatus_args.__init__ = listTagIndexStatus_args__init__ +listEdgeIndexStatus_args.__init__ = listEdgeIndexStatus_args__init__ -def listTagIndexStatus_args__setstate__(self, state): +def listEdgeIndexStatus_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -listTagIndexStatus_args.__getstate__ = lambda self: self.__dict__.copy() -listTagIndexStatus_args.__setstate__ = listTagIndexStatus_args__setstate__ +listEdgeIndexStatus_args.__getstate__ = lambda self: self.__dict__.copy() +listEdgeIndexStatus_args.__setstate__ = listEdgeIndexStatus_args__setstate__ -class listTagIndexStatus_result: +class listEdgeIndexStatus_result: """ Attributes: - success @@ -7913,7 +8062,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('listTagIndexStatus_result') + oprot.writeStructBegin('listEdgeIndexStatus_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -7942,29 +8091,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(listTagIndexStatus_result) -listTagIndexStatus_result.thrift_spec = ( +all_structs.append(listEdgeIndexStatus_result) +listEdgeIndexStatus_result.thrift_spec = ( (0, TType.STRUCT, 'success', [ListIndexStatusResp, ListIndexStatusResp.thrift_spec, False], None, 2, ), # 0 ) -listTagIndexStatus_result.thrift_struct_annotations = { +listEdgeIndexStatus_result.thrift_struct_annotations = { } -listTagIndexStatus_result.thrift_field_annotations = { +listEdgeIndexStatus_result.thrift_field_annotations = { } -def listTagIndexStatus_result__init__(self, success=None,): +def listEdgeIndexStatus_result__init__(self, success=None,): self.success = success -listTagIndexStatus_result.__init__ = listTagIndexStatus_result__init__ +listEdgeIndexStatus_result.__init__ = listEdgeIndexStatus_result__init__ -def listTagIndexStatus_result__setstate__(self, state): +def listEdgeIndexStatus_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -listTagIndexStatus_result.__getstate__ = lambda self: self.__dict__.copy() -listTagIndexStatus_result.__setstate__ = listTagIndexStatus_result__setstate__ +listEdgeIndexStatus_result.__getstate__ = lambda self: self.__dict__.copy() +listEdgeIndexStatus_result.__setstate__ = listEdgeIndexStatus_result__setstate__ -class createEdgeIndex_args: +class createUser_args: """ Attributes: - req @@ -7992,7 +8141,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = CreateEdgeIndexReq() + self.req = CreateUserReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -8008,7 +8157,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('createEdgeIndex_args') + oprot.writeStructBegin('createUser_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -8037,30 +8186,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(createEdgeIndex_args) -createEdgeIndex_args.thrift_spec = ( +all_structs.append(createUser_args) +createUser_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [CreateEdgeIndexReq, CreateEdgeIndexReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [CreateUserReq, CreateUserReq.thrift_spec, False], None, 2, ), # 1 ) -createEdgeIndex_args.thrift_struct_annotations = { +createUser_args.thrift_struct_annotations = { } -createEdgeIndex_args.thrift_field_annotations = { +createUser_args.thrift_field_annotations = { } -def createEdgeIndex_args__init__(self, req=None,): +def createUser_args__init__(self, req=None,): self.req = req -createEdgeIndex_args.__init__ = createEdgeIndex_args__init__ +createUser_args.__init__ = createUser_args__init__ -def createEdgeIndex_args__setstate__(self, state): +def createUser_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -createEdgeIndex_args.__getstate__ = lambda self: self.__dict__.copy() -createEdgeIndex_args.__setstate__ = createEdgeIndex_args__setstate__ +createUser_args.__getstate__ = lambda self: self.__dict__.copy() +createUser_args.__setstate__ = createUser_args__setstate__ -class createEdgeIndex_result: +class createUser_result: """ Attributes: - success @@ -8104,7 +8253,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('createEdgeIndex_result') + oprot.writeStructBegin('createUser_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -8133,29 +8282,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(createEdgeIndex_result) -createEdgeIndex_result.thrift_spec = ( +all_structs.append(createUser_result) +createUser_result.thrift_spec = ( (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 ) -createEdgeIndex_result.thrift_struct_annotations = { +createUser_result.thrift_struct_annotations = { } -createEdgeIndex_result.thrift_field_annotations = { +createUser_result.thrift_field_annotations = { } -def createEdgeIndex_result__init__(self, success=None,): +def createUser_result__init__(self, success=None,): self.success = success -createEdgeIndex_result.__init__ = createEdgeIndex_result__init__ +createUser_result.__init__ = createUser_result__init__ -def createEdgeIndex_result__setstate__(self, state): +def createUser_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -createEdgeIndex_result.__getstate__ = lambda self: self.__dict__.copy() -createEdgeIndex_result.__setstate__ = createEdgeIndex_result__setstate__ +createUser_result.__getstate__ = lambda self: self.__dict__.copy() +createUser_result.__setstate__ = createUser_result__setstate__ -class dropEdgeIndex_args: +class dropUser_args: """ Attributes: - req @@ -8183,7 +8332,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = DropEdgeIndexReq() + self.req = DropUserReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -8199,7 +8348,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('dropEdgeIndex_args') + oprot.writeStructBegin('dropUser_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -8228,30 +8377,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(dropEdgeIndex_args) -dropEdgeIndex_args.thrift_spec = ( +all_structs.append(dropUser_args) +dropUser_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [DropEdgeIndexReq, DropEdgeIndexReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [DropUserReq, DropUserReq.thrift_spec, False], None, 2, ), # 1 ) -dropEdgeIndex_args.thrift_struct_annotations = { +dropUser_args.thrift_struct_annotations = { } -dropEdgeIndex_args.thrift_field_annotations = { +dropUser_args.thrift_field_annotations = { } -def dropEdgeIndex_args__init__(self, req=None,): +def dropUser_args__init__(self, req=None,): self.req = req -dropEdgeIndex_args.__init__ = dropEdgeIndex_args__init__ +dropUser_args.__init__ = dropUser_args__init__ -def dropEdgeIndex_args__setstate__(self, state): +def dropUser_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -dropEdgeIndex_args.__getstate__ = lambda self: self.__dict__.copy() -dropEdgeIndex_args.__setstate__ = dropEdgeIndex_args__setstate__ +dropUser_args.__getstate__ = lambda self: self.__dict__.copy() +dropUser_args.__setstate__ = dropUser_args__setstate__ -class dropEdgeIndex_result: +class dropUser_result: """ Attributes: - success @@ -8295,7 +8444,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('dropEdgeIndex_result') + oprot.writeStructBegin('dropUser_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -8324,29 +8473,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(dropEdgeIndex_result) -dropEdgeIndex_result.thrift_spec = ( +all_structs.append(dropUser_result) +dropUser_result.thrift_spec = ( (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 ) -dropEdgeIndex_result.thrift_struct_annotations = { +dropUser_result.thrift_struct_annotations = { } -dropEdgeIndex_result.thrift_field_annotations = { +dropUser_result.thrift_field_annotations = { } -def dropEdgeIndex_result__init__(self, success=None,): +def dropUser_result__init__(self, success=None,): self.success = success -dropEdgeIndex_result.__init__ = dropEdgeIndex_result__init__ +dropUser_result.__init__ = dropUser_result__init__ -def dropEdgeIndex_result__setstate__(self, state): +def dropUser_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -dropEdgeIndex_result.__getstate__ = lambda self: self.__dict__.copy() -dropEdgeIndex_result.__setstate__ = dropEdgeIndex_result__setstate__ +dropUser_result.__getstate__ = lambda self: self.__dict__.copy() +dropUser_result.__setstate__ = dropUser_result__setstate__ -class getEdgeIndex_args: +class alterUser_args: """ Attributes: - req @@ -8374,7 +8523,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = GetEdgeIndexReq() + self.req = AlterUserReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -8390,7 +8539,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('getEdgeIndex_args') + oprot.writeStructBegin('alterUser_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -8419,30 +8568,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(getEdgeIndex_args) -getEdgeIndex_args.thrift_spec = ( +all_structs.append(alterUser_args) +alterUser_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [GetEdgeIndexReq, GetEdgeIndexReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [AlterUserReq, AlterUserReq.thrift_spec, False], None, 2, ), # 1 ) -getEdgeIndex_args.thrift_struct_annotations = { +alterUser_args.thrift_struct_annotations = { } -getEdgeIndex_args.thrift_field_annotations = { +alterUser_args.thrift_field_annotations = { } -def getEdgeIndex_args__init__(self, req=None,): +def alterUser_args__init__(self, req=None,): self.req = req -getEdgeIndex_args.__init__ = getEdgeIndex_args__init__ +alterUser_args.__init__ = alterUser_args__init__ -def getEdgeIndex_args__setstate__(self, state): +def alterUser_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -getEdgeIndex_args.__getstate__ = lambda self: self.__dict__.copy() -getEdgeIndex_args.__setstate__ = getEdgeIndex_args__setstate__ +alterUser_args.__getstate__ = lambda self: self.__dict__.copy() +alterUser_args.__setstate__ = alterUser_args__setstate__ -class getEdgeIndex_result: +class alterUser_result: """ Attributes: - success @@ -8470,7 +8619,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = GetEdgeIndexResp() + self.success = ExecResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -8486,7 +8635,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('getEdgeIndex_result') + oprot.writeStructBegin('alterUser_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -8515,29 +8664,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(getEdgeIndex_result) -getEdgeIndex_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [GetEdgeIndexResp, GetEdgeIndexResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(alterUser_result) +alterUser_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 ) -getEdgeIndex_result.thrift_struct_annotations = { +alterUser_result.thrift_struct_annotations = { } -getEdgeIndex_result.thrift_field_annotations = { +alterUser_result.thrift_field_annotations = { } -def getEdgeIndex_result__init__(self, success=None,): +def alterUser_result__init__(self, success=None,): self.success = success -getEdgeIndex_result.__init__ = getEdgeIndex_result__init__ +alterUser_result.__init__ = alterUser_result__init__ -def getEdgeIndex_result__setstate__(self, state): +def alterUser_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -getEdgeIndex_result.__getstate__ = lambda self: self.__dict__.copy() -getEdgeIndex_result.__setstate__ = getEdgeIndex_result__setstate__ +alterUser_result.__getstate__ = lambda self: self.__dict__.copy() +alterUser_result.__setstate__ = alterUser_result__setstate__ -class listEdgeIndexes_args: +class grantRole_args: """ Attributes: - req @@ -8565,7 +8714,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = ListEdgeIndexesReq() + self.req = GrantRoleReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -8581,7 +8730,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('listEdgeIndexes_args') + oprot.writeStructBegin('grantRole_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -8610,30 +8759,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(listEdgeIndexes_args) -listEdgeIndexes_args.thrift_spec = ( +all_structs.append(grantRole_args) +grantRole_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [ListEdgeIndexesReq, ListEdgeIndexesReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [GrantRoleReq, GrantRoleReq.thrift_spec, False], None, 2, ), # 1 ) -listEdgeIndexes_args.thrift_struct_annotations = { +grantRole_args.thrift_struct_annotations = { } -listEdgeIndexes_args.thrift_field_annotations = { +grantRole_args.thrift_field_annotations = { } -def listEdgeIndexes_args__init__(self, req=None,): +def grantRole_args__init__(self, req=None,): self.req = req -listEdgeIndexes_args.__init__ = listEdgeIndexes_args__init__ +grantRole_args.__init__ = grantRole_args__init__ -def listEdgeIndexes_args__setstate__(self, state): +def grantRole_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -listEdgeIndexes_args.__getstate__ = lambda self: self.__dict__.copy() -listEdgeIndexes_args.__setstate__ = listEdgeIndexes_args__setstate__ +grantRole_args.__getstate__ = lambda self: self.__dict__.copy() +grantRole_args.__setstate__ = grantRole_args__setstate__ -class listEdgeIndexes_result: +class grantRole_result: """ Attributes: - success @@ -8661,7 +8810,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = ListEdgeIndexesResp() + self.success = ExecResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -8677,7 +8826,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('listEdgeIndexes_result') + oprot.writeStructBegin('grantRole_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -8706,29 +8855,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(listEdgeIndexes_result) -listEdgeIndexes_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [ListEdgeIndexesResp, ListEdgeIndexesResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(grantRole_result) +grantRole_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 ) -listEdgeIndexes_result.thrift_struct_annotations = { +grantRole_result.thrift_struct_annotations = { } -listEdgeIndexes_result.thrift_field_annotations = { +grantRole_result.thrift_field_annotations = { } -def listEdgeIndexes_result__init__(self, success=None,): +def grantRole_result__init__(self, success=None,): self.success = success -listEdgeIndexes_result.__init__ = listEdgeIndexes_result__init__ +grantRole_result.__init__ = grantRole_result__init__ -def listEdgeIndexes_result__setstate__(self, state): +def grantRole_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -listEdgeIndexes_result.__getstate__ = lambda self: self.__dict__.copy() -listEdgeIndexes_result.__setstate__ = listEdgeIndexes_result__setstate__ +grantRole_result.__getstate__ = lambda self: self.__dict__.copy() +grantRole_result.__setstate__ = grantRole_result__setstate__ -class rebuildEdgeIndex_args: +class revokeRole_args: """ Attributes: - req @@ -8756,7 +8905,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = RebuildIndexReq() + self.req = RevokeRoleReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -8772,7 +8921,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('rebuildEdgeIndex_args') + oprot.writeStructBegin('revokeRole_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -8801,30 +8950,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(rebuildEdgeIndex_args) -rebuildEdgeIndex_args.thrift_spec = ( +all_structs.append(revokeRole_args) +revokeRole_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [RebuildIndexReq, RebuildIndexReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [RevokeRoleReq, RevokeRoleReq.thrift_spec, False], None, 2, ), # 1 ) -rebuildEdgeIndex_args.thrift_struct_annotations = { +revokeRole_args.thrift_struct_annotations = { } -rebuildEdgeIndex_args.thrift_field_annotations = { +revokeRole_args.thrift_field_annotations = { } -def rebuildEdgeIndex_args__init__(self, req=None,): +def revokeRole_args__init__(self, req=None,): self.req = req -rebuildEdgeIndex_args.__init__ = rebuildEdgeIndex_args__init__ +revokeRole_args.__init__ = revokeRole_args__init__ -def rebuildEdgeIndex_args__setstate__(self, state): +def revokeRole_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -rebuildEdgeIndex_args.__getstate__ = lambda self: self.__dict__.copy() -rebuildEdgeIndex_args.__setstate__ = rebuildEdgeIndex_args__setstate__ +revokeRole_args.__getstate__ = lambda self: self.__dict__.copy() +revokeRole_args.__setstate__ = revokeRole_args__setstate__ -class rebuildEdgeIndex_result: +class revokeRole_result: """ Attributes: - success @@ -8868,7 +9017,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('rebuildEdgeIndex_result') + oprot.writeStructBegin('revokeRole_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -8897,29 +9046,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(rebuildEdgeIndex_result) -rebuildEdgeIndex_result.thrift_spec = ( +all_structs.append(revokeRole_result) +revokeRole_result.thrift_spec = ( (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 ) -rebuildEdgeIndex_result.thrift_struct_annotations = { +revokeRole_result.thrift_struct_annotations = { } -rebuildEdgeIndex_result.thrift_field_annotations = { +revokeRole_result.thrift_field_annotations = { } -def rebuildEdgeIndex_result__init__(self, success=None,): +def revokeRole_result__init__(self, success=None,): self.success = success -rebuildEdgeIndex_result.__init__ = rebuildEdgeIndex_result__init__ +revokeRole_result.__init__ = revokeRole_result__init__ -def rebuildEdgeIndex_result__setstate__(self, state): +def revokeRole_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -rebuildEdgeIndex_result.__getstate__ = lambda self: self.__dict__.copy() -rebuildEdgeIndex_result.__setstate__ = rebuildEdgeIndex_result__setstate__ +revokeRole_result.__getstate__ = lambda self: self.__dict__.copy() +revokeRole_result.__setstate__ = revokeRole_result__setstate__ -class listEdgeIndexStatus_args: +class listUsers_args: """ Attributes: - req @@ -8947,7 +9096,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = ListIndexStatusReq() + self.req = ListUsersReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -8963,7 +9112,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('listEdgeIndexStatus_args') + oprot.writeStructBegin('listUsers_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -8992,30 +9141,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(listEdgeIndexStatus_args) -listEdgeIndexStatus_args.thrift_spec = ( +all_structs.append(listUsers_args) +listUsers_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [ListIndexStatusReq, ListIndexStatusReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [ListUsersReq, ListUsersReq.thrift_spec, False], None, 2, ), # 1 ) -listEdgeIndexStatus_args.thrift_struct_annotations = { +listUsers_args.thrift_struct_annotations = { } -listEdgeIndexStatus_args.thrift_field_annotations = { +listUsers_args.thrift_field_annotations = { } -def listEdgeIndexStatus_args__init__(self, req=None,): +def listUsers_args__init__(self, req=None,): self.req = req -listEdgeIndexStatus_args.__init__ = listEdgeIndexStatus_args__init__ +listUsers_args.__init__ = listUsers_args__init__ -def listEdgeIndexStatus_args__setstate__(self, state): +def listUsers_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -listEdgeIndexStatus_args.__getstate__ = lambda self: self.__dict__.copy() -listEdgeIndexStatus_args.__setstate__ = listEdgeIndexStatus_args__setstate__ +listUsers_args.__getstate__ = lambda self: self.__dict__.copy() +listUsers_args.__setstate__ = listUsers_args__setstate__ -class listEdgeIndexStatus_result: +class listUsers_result: """ Attributes: - success @@ -9043,7 +9192,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = ListIndexStatusResp() + self.success = ListUsersResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -9059,7 +9208,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('listEdgeIndexStatus_result') + oprot.writeStructBegin('listUsers_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -9088,29 +9237,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(listEdgeIndexStatus_result) -listEdgeIndexStatus_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [ListIndexStatusResp, ListIndexStatusResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(listUsers_result) +listUsers_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [ListUsersResp, ListUsersResp.thrift_spec, False], None, 2, ), # 0 ) -listEdgeIndexStatus_result.thrift_struct_annotations = { +listUsers_result.thrift_struct_annotations = { } -listEdgeIndexStatus_result.thrift_field_annotations = { +listUsers_result.thrift_field_annotations = { } -def listEdgeIndexStatus_result__init__(self, success=None,): +def listUsers_result__init__(self, success=None,): self.success = success -listEdgeIndexStatus_result.__init__ = listEdgeIndexStatus_result__init__ +listUsers_result.__init__ = listUsers_result__init__ -def listEdgeIndexStatus_result__setstate__(self, state): +def listUsers_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -listEdgeIndexStatus_result.__getstate__ = lambda self: self.__dict__.copy() -listEdgeIndexStatus_result.__setstate__ = listEdgeIndexStatus_result__setstate__ +listUsers_result.__getstate__ = lambda self: self.__dict__.copy() +listUsers_result.__setstate__ = listUsers_result__setstate__ -class createUser_args: +class listRoles_args: """ Attributes: - req @@ -9138,7 +9287,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = CreateUserReq() + self.req = ListRolesReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -9154,7 +9303,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('createUser_args') + oprot.writeStructBegin('listRoles_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -9183,30 +9332,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(createUser_args) -createUser_args.thrift_spec = ( +all_structs.append(listRoles_args) +listRoles_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [CreateUserReq, CreateUserReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [ListRolesReq, ListRolesReq.thrift_spec, False], None, 2, ), # 1 ) -createUser_args.thrift_struct_annotations = { +listRoles_args.thrift_struct_annotations = { } -createUser_args.thrift_field_annotations = { +listRoles_args.thrift_field_annotations = { } -def createUser_args__init__(self, req=None,): +def listRoles_args__init__(self, req=None,): self.req = req -createUser_args.__init__ = createUser_args__init__ +listRoles_args.__init__ = listRoles_args__init__ -def createUser_args__setstate__(self, state): +def listRoles_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -createUser_args.__getstate__ = lambda self: self.__dict__.copy() -createUser_args.__setstate__ = createUser_args__setstate__ +listRoles_args.__getstate__ = lambda self: self.__dict__.copy() +listRoles_args.__setstate__ = listRoles_args__setstate__ -class createUser_result: +class listRoles_result: """ Attributes: - success @@ -9234,7 +9383,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = ExecResp() + self.success = ListRolesResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -9250,7 +9399,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('createUser_result') + oprot.writeStructBegin('listRoles_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -9279,29 +9428,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(createUser_result) -createUser_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(listRoles_result) +listRoles_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [ListRolesResp, ListRolesResp.thrift_spec, False], None, 2, ), # 0 ) -createUser_result.thrift_struct_annotations = { +listRoles_result.thrift_struct_annotations = { } -createUser_result.thrift_field_annotations = { +listRoles_result.thrift_field_annotations = { } -def createUser_result__init__(self, success=None,): +def listRoles_result__init__(self, success=None,): self.success = success -createUser_result.__init__ = createUser_result__init__ +listRoles_result.__init__ = listRoles_result__init__ -def createUser_result__setstate__(self, state): +def listRoles_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -createUser_result.__getstate__ = lambda self: self.__dict__.copy() -createUser_result.__setstate__ = createUser_result__setstate__ +listRoles_result.__getstate__ = lambda self: self.__dict__.copy() +listRoles_result.__setstate__ = listRoles_result__setstate__ -class dropUser_args: +class getUserRoles_args: """ Attributes: - req @@ -9329,7 +9478,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = DropUserReq() + self.req = GetUserRolesReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -9345,7 +9494,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('dropUser_args') + oprot.writeStructBegin('getUserRoles_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -9374,30 +9523,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(dropUser_args) -dropUser_args.thrift_spec = ( +all_structs.append(getUserRoles_args) +getUserRoles_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [DropUserReq, DropUserReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [GetUserRolesReq, GetUserRolesReq.thrift_spec, False], None, 2, ), # 1 ) -dropUser_args.thrift_struct_annotations = { +getUserRoles_args.thrift_struct_annotations = { } -dropUser_args.thrift_field_annotations = { +getUserRoles_args.thrift_field_annotations = { } -def dropUser_args__init__(self, req=None,): +def getUserRoles_args__init__(self, req=None,): self.req = req -dropUser_args.__init__ = dropUser_args__init__ +getUserRoles_args.__init__ = getUserRoles_args__init__ -def dropUser_args__setstate__(self, state): +def getUserRoles_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -dropUser_args.__getstate__ = lambda self: self.__dict__.copy() -dropUser_args.__setstate__ = dropUser_args__setstate__ +getUserRoles_args.__getstate__ = lambda self: self.__dict__.copy() +getUserRoles_args.__setstate__ = getUserRoles_args__setstate__ -class dropUser_result: +class getUserRoles_result: """ Attributes: - success @@ -9425,7 +9574,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = ExecResp() + self.success = ListRolesResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -9441,7 +9590,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('dropUser_result') + oprot.writeStructBegin('getUserRoles_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -9470,29 +9619,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(dropUser_result) -dropUser_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(getUserRoles_result) +getUserRoles_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [ListRolesResp, ListRolesResp.thrift_spec, False], None, 2, ), # 0 ) -dropUser_result.thrift_struct_annotations = { +getUserRoles_result.thrift_struct_annotations = { } -dropUser_result.thrift_field_annotations = { +getUserRoles_result.thrift_field_annotations = { } -def dropUser_result__init__(self, success=None,): +def getUserRoles_result__init__(self, success=None,): self.success = success -dropUser_result.__init__ = dropUser_result__init__ +getUserRoles_result.__init__ = getUserRoles_result__init__ -def dropUser_result__setstate__(self, state): +def getUserRoles_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -dropUser_result.__getstate__ = lambda self: self.__dict__.copy() -dropUser_result.__setstate__ = dropUser_result__setstate__ +getUserRoles_result.__getstate__ = lambda self: self.__dict__.copy() +getUserRoles_result.__setstate__ = getUserRoles_result__setstate__ -class alterUser_args: +class changePassword_args: """ Attributes: - req @@ -9520,7 +9669,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = AlterUserReq() + self.req = ChangePasswordReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -9536,7 +9685,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('alterUser_args') + oprot.writeStructBegin('changePassword_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -9565,30 +9714,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(alterUser_args) -alterUser_args.thrift_spec = ( +all_structs.append(changePassword_args) +changePassword_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [AlterUserReq, AlterUserReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [ChangePasswordReq, ChangePasswordReq.thrift_spec, False], None, 2, ), # 1 ) -alterUser_args.thrift_struct_annotations = { +changePassword_args.thrift_struct_annotations = { } -alterUser_args.thrift_field_annotations = { +changePassword_args.thrift_field_annotations = { } -def alterUser_args__init__(self, req=None,): +def changePassword_args__init__(self, req=None,): self.req = req -alterUser_args.__init__ = alterUser_args__init__ +changePassword_args.__init__ = changePassword_args__init__ -def alterUser_args__setstate__(self, state): +def changePassword_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -alterUser_args.__getstate__ = lambda self: self.__dict__.copy() -alterUser_args.__setstate__ = alterUser_args__setstate__ +changePassword_args.__getstate__ = lambda self: self.__dict__.copy() +changePassword_args.__setstate__ = changePassword_args__setstate__ -class alterUser_result: +class changePassword_result: """ Attributes: - success @@ -9632,7 +9781,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('alterUser_result') + oprot.writeStructBegin('changePassword_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -9661,29 +9810,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(alterUser_result) -alterUser_result.thrift_spec = ( +all_structs.append(changePassword_result) +changePassword_result.thrift_spec = ( (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 ) -alterUser_result.thrift_struct_annotations = { +changePassword_result.thrift_struct_annotations = { } -alterUser_result.thrift_field_annotations = { +changePassword_result.thrift_field_annotations = { } -def alterUser_result__init__(self, success=None,): +def changePassword_result__init__(self, success=None,): self.success = success -alterUser_result.__init__ = alterUser_result__init__ +changePassword_result.__init__ = changePassword_result__init__ -def alterUser_result__setstate__(self, state): +def changePassword_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -alterUser_result.__getstate__ = lambda self: self.__dict__.copy() -alterUser_result.__setstate__ = alterUser_result__setstate__ +changePassword_result.__getstate__ = lambda self: self.__dict__.copy() +changePassword_result.__setstate__ = changePassword_result__setstate__ -class grantRole_args: +class heartBeat_args: """ Attributes: - req @@ -9711,7 +9860,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = GrantRoleReq() + self.req = HBReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -9727,7 +9876,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('grantRole_args') + oprot.writeStructBegin('heartBeat_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -9756,30 +9905,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(grantRole_args) -grantRole_args.thrift_spec = ( +all_structs.append(heartBeat_args) +heartBeat_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [GrantRoleReq, GrantRoleReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [HBReq, HBReq.thrift_spec, False], None, 2, ), # 1 ) -grantRole_args.thrift_struct_annotations = { +heartBeat_args.thrift_struct_annotations = { } -grantRole_args.thrift_field_annotations = { +heartBeat_args.thrift_field_annotations = { } -def grantRole_args__init__(self, req=None,): +def heartBeat_args__init__(self, req=None,): self.req = req -grantRole_args.__init__ = grantRole_args__init__ +heartBeat_args.__init__ = heartBeat_args__init__ -def grantRole_args__setstate__(self, state): +def heartBeat_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -grantRole_args.__getstate__ = lambda self: self.__dict__.copy() -grantRole_args.__setstate__ = grantRole_args__setstate__ +heartBeat_args.__getstate__ = lambda self: self.__dict__.copy() +heartBeat_args.__setstate__ = heartBeat_args__setstate__ -class grantRole_result: +class heartBeat_result: """ Attributes: - success @@ -9807,7 +9956,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = ExecResp() + self.success = HBResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -9823,7 +9972,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('grantRole_result') + oprot.writeStructBegin('heartBeat_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -9852,29 +10001,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(grantRole_result) -grantRole_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(heartBeat_result) +heartBeat_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [HBResp, HBResp.thrift_spec, False], None, 2, ), # 0 ) -grantRole_result.thrift_struct_annotations = { +heartBeat_result.thrift_struct_annotations = { } -grantRole_result.thrift_field_annotations = { +heartBeat_result.thrift_field_annotations = { } -def grantRole_result__init__(self, success=None,): +def heartBeat_result__init__(self, success=None,): self.success = success -grantRole_result.__init__ = grantRole_result__init__ +heartBeat_result.__init__ = heartBeat_result__init__ -def grantRole_result__setstate__(self, state): +def heartBeat_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -grantRole_result.__getstate__ = lambda self: self.__dict__.copy() -grantRole_result.__setstate__ = grantRole_result__setstate__ +heartBeat_result.__getstate__ = lambda self: self.__dict__.copy() +heartBeat_result.__setstate__ = heartBeat_result__setstate__ -class revokeRole_args: +class agentHeartbeat_args: """ Attributes: - req @@ -9902,7 +10051,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = RevokeRoleReq() + self.req = AgentHBReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -9918,7 +10067,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('revokeRole_args') + oprot.writeStructBegin('agentHeartbeat_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -9947,30 +10096,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(revokeRole_args) -revokeRole_args.thrift_spec = ( +all_structs.append(agentHeartbeat_args) +agentHeartbeat_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [RevokeRoleReq, RevokeRoleReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [AgentHBReq, AgentHBReq.thrift_spec, False], None, 2, ), # 1 ) -revokeRole_args.thrift_struct_annotations = { +agentHeartbeat_args.thrift_struct_annotations = { } -revokeRole_args.thrift_field_annotations = { +agentHeartbeat_args.thrift_field_annotations = { } -def revokeRole_args__init__(self, req=None,): +def agentHeartbeat_args__init__(self, req=None,): self.req = req -revokeRole_args.__init__ = revokeRole_args__init__ +agentHeartbeat_args.__init__ = agentHeartbeat_args__init__ -def revokeRole_args__setstate__(self, state): +def agentHeartbeat_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -revokeRole_args.__getstate__ = lambda self: self.__dict__.copy() -revokeRole_args.__setstate__ = revokeRole_args__setstate__ +agentHeartbeat_args.__getstate__ = lambda self: self.__dict__.copy() +agentHeartbeat_args.__setstate__ = agentHeartbeat_args__setstate__ -class revokeRole_result: +class agentHeartbeat_result: """ Attributes: - success @@ -9998,7 +10147,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = ExecResp() + self.success = AgentHBResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -10014,7 +10163,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('revokeRole_result') + oprot.writeStructBegin('agentHeartbeat_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -10043,29 +10192,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(revokeRole_result) -revokeRole_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(agentHeartbeat_result) +agentHeartbeat_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [AgentHBResp, AgentHBResp.thrift_spec, False], None, 2, ), # 0 ) -revokeRole_result.thrift_struct_annotations = { +agentHeartbeat_result.thrift_struct_annotations = { } -revokeRole_result.thrift_field_annotations = { +agentHeartbeat_result.thrift_field_annotations = { } -def revokeRole_result__init__(self, success=None,): +def agentHeartbeat_result__init__(self, success=None,): self.success = success -revokeRole_result.__init__ = revokeRole_result__init__ +agentHeartbeat_result.__init__ = agentHeartbeat_result__init__ -def revokeRole_result__setstate__(self, state): +def agentHeartbeat_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -revokeRole_result.__getstate__ = lambda self: self.__dict__.copy() -revokeRole_result.__setstate__ = revokeRole_result__setstate__ +agentHeartbeat_result.__getstate__ = lambda self: self.__dict__.copy() +agentHeartbeat_result.__setstate__ = agentHeartbeat_result__setstate__ -class listUsers_args: +class regConfig_args: """ Attributes: - req @@ -10093,7 +10242,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = ListUsersReq() + self.req = RegConfigReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -10109,7 +10258,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('listUsers_args') + oprot.writeStructBegin('regConfig_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -10138,30 +10287,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(listUsers_args) -listUsers_args.thrift_spec = ( +all_structs.append(regConfig_args) +regConfig_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [ListUsersReq, ListUsersReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [RegConfigReq, RegConfigReq.thrift_spec, False], None, 2, ), # 1 ) -listUsers_args.thrift_struct_annotations = { +regConfig_args.thrift_struct_annotations = { } -listUsers_args.thrift_field_annotations = { +regConfig_args.thrift_field_annotations = { } -def listUsers_args__init__(self, req=None,): +def regConfig_args__init__(self, req=None,): self.req = req -listUsers_args.__init__ = listUsers_args__init__ +regConfig_args.__init__ = regConfig_args__init__ -def listUsers_args__setstate__(self, state): +def regConfig_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -listUsers_args.__getstate__ = lambda self: self.__dict__.copy() -listUsers_args.__setstate__ = listUsers_args__setstate__ +regConfig_args.__getstate__ = lambda self: self.__dict__.copy() +regConfig_args.__setstate__ = regConfig_args__setstate__ -class listUsers_result: +class regConfig_result: """ Attributes: - success @@ -10189,7 +10338,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = ListUsersResp() + self.success = ExecResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -10205,7 +10354,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('listUsers_result') + oprot.writeStructBegin('regConfig_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -10234,29 +10383,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(listUsers_result) -listUsers_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [ListUsersResp, ListUsersResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(regConfig_result) +regConfig_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 ) -listUsers_result.thrift_struct_annotations = { +regConfig_result.thrift_struct_annotations = { } -listUsers_result.thrift_field_annotations = { +regConfig_result.thrift_field_annotations = { } -def listUsers_result__init__(self, success=None,): +def regConfig_result__init__(self, success=None,): self.success = success -listUsers_result.__init__ = listUsers_result__init__ +regConfig_result.__init__ = regConfig_result__init__ -def listUsers_result__setstate__(self, state): +def regConfig_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -listUsers_result.__getstate__ = lambda self: self.__dict__.copy() -listUsers_result.__setstate__ = listUsers_result__setstate__ +regConfig_result.__getstate__ = lambda self: self.__dict__.copy() +regConfig_result.__setstate__ = regConfig_result__setstate__ -class listRoles_args: +class getConfig_args: """ Attributes: - req @@ -10284,7 +10433,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = ListRolesReq() + self.req = GetConfigReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -10300,7 +10449,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('listRoles_args') + oprot.writeStructBegin('getConfig_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -10329,30 +10478,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(listRoles_args) -listRoles_args.thrift_spec = ( +all_structs.append(getConfig_args) +getConfig_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [ListRolesReq, ListRolesReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [GetConfigReq, GetConfigReq.thrift_spec, False], None, 2, ), # 1 ) -listRoles_args.thrift_struct_annotations = { +getConfig_args.thrift_struct_annotations = { } -listRoles_args.thrift_field_annotations = { +getConfig_args.thrift_field_annotations = { } -def listRoles_args__init__(self, req=None,): +def getConfig_args__init__(self, req=None,): self.req = req -listRoles_args.__init__ = listRoles_args__init__ +getConfig_args.__init__ = getConfig_args__init__ -def listRoles_args__setstate__(self, state): +def getConfig_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -listRoles_args.__getstate__ = lambda self: self.__dict__.copy() -listRoles_args.__setstate__ = listRoles_args__setstate__ +getConfig_args.__getstate__ = lambda self: self.__dict__.copy() +getConfig_args.__setstate__ = getConfig_args__setstate__ -class listRoles_result: +class getConfig_result: """ Attributes: - success @@ -10380,7 +10529,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = ListRolesResp() + self.success = GetConfigResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -10396,7 +10545,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('listRoles_result') + oprot.writeStructBegin('getConfig_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -10425,29 +10574,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(listRoles_result) -listRoles_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [ListRolesResp, ListRolesResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(getConfig_result) +getConfig_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [GetConfigResp, GetConfigResp.thrift_spec, False], None, 2, ), # 0 ) -listRoles_result.thrift_struct_annotations = { +getConfig_result.thrift_struct_annotations = { } -listRoles_result.thrift_field_annotations = { +getConfig_result.thrift_field_annotations = { } -def listRoles_result__init__(self, success=None,): +def getConfig_result__init__(self, success=None,): self.success = success -listRoles_result.__init__ = listRoles_result__init__ +getConfig_result.__init__ = getConfig_result__init__ -def listRoles_result__setstate__(self, state): +def getConfig_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -listRoles_result.__getstate__ = lambda self: self.__dict__.copy() -listRoles_result.__setstate__ = listRoles_result__setstate__ +getConfig_result.__getstate__ = lambda self: self.__dict__.copy() +getConfig_result.__setstate__ = getConfig_result__setstate__ -class getUserRoles_args: +class setConfig_args: """ Attributes: - req @@ -10475,7 +10624,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = GetUserRolesReq() + self.req = SetConfigReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -10491,7 +10640,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('getUserRoles_args') + oprot.writeStructBegin('setConfig_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -10520,30 +10669,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(getUserRoles_args) -getUserRoles_args.thrift_spec = ( +all_structs.append(setConfig_args) +setConfig_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [GetUserRolesReq, GetUserRolesReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [SetConfigReq, SetConfigReq.thrift_spec, False], None, 2, ), # 1 ) -getUserRoles_args.thrift_struct_annotations = { +setConfig_args.thrift_struct_annotations = { } -getUserRoles_args.thrift_field_annotations = { +setConfig_args.thrift_field_annotations = { } -def getUserRoles_args__init__(self, req=None,): +def setConfig_args__init__(self, req=None,): self.req = req -getUserRoles_args.__init__ = getUserRoles_args__init__ +setConfig_args.__init__ = setConfig_args__init__ -def getUserRoles_args__setstate__(self, state): +def setConfig_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -getUserRoles_args.__getstate__ = lambda self: self.__dict__.copy() -getUserRoles_args.__setstate__ = getUserRoles_args__setstate__ +setConfig_args.__getstate__ = lambda self: self.__dict__.copy() +setConfig_args.__setstate__ = setConfig_args__setstate__ -class getUserRoles_result: +class setConfig_result: """ Attributes: - success @@ -10571,7 +10720,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = ListRolesResp() + self.success = ExecResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -10587,7 +10736,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('getUserRoles_result') + oprot.writeStructBegin('setConfig_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -10616,29 +10765,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(getUserRoles_result) -getUserRoles_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [ListRolesResp, ListRolesResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(setConfig_result) +setConfig_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 ) -getUserRoles_result.thrift_struct_annotations = { +setConfig_result.thrift_struct_annotations = { } -getUserRoles_result.thrift_field_annotations = { +setConfig_result.thrift_field_annotations = { } -def getUserRoles_result__init__(self, success=None,): +def setConfig_result__init__(self, success=None,): self.success = success -getUserRoles_result.__init__ = getUserRoles_result__init__ +setConfig_result.__init__ = setConfig_result__init__ -def getUserRoles_result__setstate__(self, state): +def setConfig_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -getUserRoles_result.__getstate__ = lambda self: self.__dict__.copy() -getUserRoles_result.__setstate__ = getUserRoles_result__setstate__ +setConfig_result.__getstate__ = lambda self: self.__dict__.copy() +setConfig_result.__setstate__ = setConfig_result__setstate__ -class changePassword_args: +class listConfigs_args: """ Attributes: - req @@ -10666,7 +10815,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = ChangePasswordReq() + self.req = ListConfigsReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -10682,7 +10831,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('changePassword_args') + oprot.writeStructBegin('listConfigs_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -10711,30 +10860,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(changePassword_args) -changePassword_args.thrift_spec = ( +all_structs.append(listConfigs_args) +listConfigs_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [ChangePasswordReq, ChangePasswordReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [ListConfigsReq, ListConfigsReq.thrift_spec, False], None, 2, ), # 1 ) -changePassword_args.thrift_struct_annotations = { +listConfigs_args.thrift_struct_annotations = { } -changePassword_args.thrift_field_annotations = { +listConfigs_args.thrift_field_annotations = { } -def changePassword_args__init__(self, req=None,): +def listConfigs_args__init__(self, req=None,): self.req = req -changePassword_args.__init__ = changePassword_args__init__ +listConfigs_args.__init__ = listConfigs_args__init__ -def changePassword_args__setstate__(self, state): +def listConfigs_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -changePassword_args.__getstate__ = lambda self: self.__dict__.copy() -changePassword_args.__setstate__ = changePassword_args__setstate__ +listConfigs_args.__getstate__ = lambda self: self.__dict__.copy() +listConfigs_args.__setstate__ = listConfigs_args__setstate__ -class changePassword_result: +class listConfigs_result: """ Attributes: - success @@ -10762,7 +10911,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = ExecResp() + self.success = ListConfigsResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -10778,7 +10927,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('changePassword_result') + oprot.writeStructBegin('listConfigs_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -10807,29 +10956,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(changePassword_result) -changePassword_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(listConfigs_result) +listConfigs_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [ListConfigsResp, ListConfigsResp.thrift_spec, False], None, 2, ), # 0 ) -changePassword_result.thrift_struct_annotations = { +listConfigs_result.thrift_struct_annotations = { } -changePassword_result.thrift_field_annotations = { +listConfigs_result.thrift_field_annotations = { } -def changePassword_result__init__(self, success=None,): +def listConfigs_result__init__(self, success=None,): self.success = success -changePassword_result.__init__ = changePassword_result__init__ +listConfigs_result.__init__ = listConfigs_result__init__ -def changePassword_result__setstate__(self, state): +def listConfigs_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -changePassword_result.__getstate__ = lambda self: self.__dict__.copy() -changePassword_result.__setstate__ = changePassword_result__setstate__ +listConfigs_result.__getstate__ = lambda self: self.__dict__.copy() +listConfigs_result.__setstate__ = listConfigs_result__setstate__ -class heartBeat_args: +class createSnapshot_args: """ Attributes: - req @@ -10857,7 +11006,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = HBReq() + self.req = CreateSnapshotReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -10873,7 +11022,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('heartBeat_args') + oprot.writeStructBegin('createSnapshot_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -10902,30 +11051,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(heartBeat_args) -heartBeat_args.thrift_spec = ( +all_structs.append(createSnapshot_args) +createSnapshot_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [HBReq, HBReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [CreateSnapshotReq, CreateSnapshotReq.thrift_spec, False], None, 2, ), # 1 ) -heartBeat_args.thrift_struct_annotations = { +createSnapshot_args.thrift_struct_annotations = { } -heartBeat_args.thrift_field_annotations = { +createSnapshot_args.thrift_field_annotations = { } -def heartBeat_args__init__(self, req=None,): +def createSnapshot_args__init__(self, req=None,): self.req = req -heartBeat_args.__init__ = heartBeat_args__init__ +createSnapshot_args.__init__ = createSnapshot_args__init__ -def heartBeat_args__setstate__(self, state): +def createSnapshot_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -heartBeat_args.__getstate__ = lambda self: self.__dict__.copy() -heartBeat_args.__setstate__ = heartBeat_args__setstate__ +createSnapshot_args.__getstate__ = lambda self: self.__dict__.copy() +createSnapshot_args.__setstate__ = createSnapshot_args__setstate__ -class heartBeat_result: +class createSnapshot_result: """ Attributes: - success @@ -10953,7 +11102,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = HBResp() + self.success = ExecResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -10969,7 +11118,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('heartBeat_result') + oprot.writeStructBegin('createSnapshot_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -10998,29 +11147,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(heartBeat_result) -heartBeat_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [HBResp, HBResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(createSnapshot_result) +createSnapshot_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 ) -heartBeat_result.thrift_struct_annotations = { +createSnapshot_result.thrift_struct_annotations = { } -heartBeat_result.thrift_field_annotations = { +createSnapshot_result.thrift_field_annotations = { } -def heartBeat_result__init__(self, success=None,): +def createSnapshot_result__init__(self, success=None,): self.success = success -heartBeat_result.__init__ = heartBeat_result__init__ +createSnapshot_result.__init__ = createSnapshot_result__init__ -def heartBeat_result__setstate__(self, state): +def createSnapshot_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -heartBeat_result.__getstate__ = lambda self: self.__dict__.copy() -heartBeat_result.__setstate__ = heartBeat_result__setstate__ +createSnapshot_result.__getstate__ = lambda self: self.__dict__.copy() +createSnapshot_result.__setstate__ = createSnapshot_result__setstate__ -class agentHeartbeat_args: +class dropSnapshot_args: """ Attributes: - req @@ -11048,7 +11197,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = AgentHBReq() + self.req = DropSnapshotReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -11064,7 +11213,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('agentHeartbeat_args') + oprot.writeStructBegin('dropSnapshot_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -11093,30 +11242,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(agentHeartbeat_args) -agentHeartbeat_args.thrift_spec = ( +all_structs.append(dropSnapshot_args) +dropSnapshot_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [AgentHBReq, AgentHBReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [DropSnapshotReq, DropSnapshotReq.thrift_spec, False], None, 2, ), # 1 ) -agentHeartbeat_args.thrift_struct_annotations = { +dropSnapshot_args.thrift_struct_annotations = { } -agentHeartbeat_args.thrift_field_annotations = { +dropSnapshot_args.thrift_field_annotations = { } -def agentHeartbeat_args__init__(self, req=None,): +def dropSnapshot_args__init__(self, req=None,): self.req = req -agentHeartbeat_args.__init__ = agentHeartbeat_args__init__ +dropSnapshot_args.__init__ = dropSnapshot_args__init__ -def agentHeartbeat_args__setstate__(self, state): +def dropSnapshot_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -agentHeartbeat_args.__getstate__ = lambda self: self.__dict__.copy() -agentHeartbeat_args.__setstate__ = agentHeartbeat_args__setstate__ +dropSnapshot_args.__getstate__ = lambda self: self.__dict__.copy() +dropSnapshot_args.__setstate__ = dropSnapshot_args__setstate__ -class agentHeartbeat_result: +class dropSnapshot_result: """ Attributes: - success @@ -11144,7 +11293,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = AgentHBResp() + self.success = ExecResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -11160,7 +11309,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('agentHeartbeat_result') + oprot.writeStructBegin('dropSnapshot_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -11189,29 +11338,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(agentHeartbeat_result) -agentHeartbeat_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [AgentHBResp, AgentHBResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(dropSnapshot_result) +dropSnapshot_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 ) -agentHeartbeat_result.thrift_struct_annotations = { +dropSnapshot_result.thrift_struct_annotations = { } -agentHeartbeat_result.thrift_field_annotations = { +dropSnapshot_result.thrift_field_annotations = { } -def agentHeartbeat_result__init__(self, success=None,): +def dropSnapshot_result__init__(self, success=None,): self.success = success -agentHeartbeat_result.__init__ = agentHeartbeat_result__init__ +dropSnapshot_result.__init__ = dropSnapshot_result__init__ -def agentHeartbeat_result__setstate__(self, state): +def dropSnapshot_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -agentHeartbeat_result.__getstate__ = lambda self: self.__dict__.copy() -agentHeartbeat_result.__setstate__ = agentHeartbeat_result__setstate__ +dropSnapshot_result.__getstate__ = lambda self: self.__dict__.copy() +dropSnapshot_result.__setstate__ = dropSnapshot_result__setstate__ -class regConfig_args: +class listSnapshots_args: """ Attributes: - req @@ -11239,7 +11388,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = RegConfigReq() + self.req = ListSnapshotsReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -11255,7 +11404,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('regConfig_args') + oprot.writeStructBegin('listSnapshots_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -11284,30 +11433,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(regConfig_args) -regConfig_args.thrift_spec = ( +all_structs.append(listSnapshots_args) +listSnapshots_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [RegConfigReq, RegConfigReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [ListSnapshotsReq, ListSnapshotsReq.thrift_spec, False], None, 2, ), # 1 ) -regConfig_args.thrift_struct_annotations = { +listSnapshots_args.thrift_struct_annotations = { } -regConfig_args.thrift_field_annotations = { +listSnapshots_args.thrift_field_annotations = { } -def regConfig_args__init__(self, req=None,): +def listSnapshots_args__init__(self, req=None,): self.req = req -regConfig_args.__init__ = regConfig_args__init__ +listSnapshots_args.__init__ = listSnapshots_args__init__ -def regConfig_args__setstate__(self, state): +def listSnapshots_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -regConfig_args.__getstate__ = lambda self: self.__dict__.copy() -regConfig_args.__setstate__ = regConfig_args__setstate__ +listSnapshots_args.__getstate__ = lambda self: self.__dict__.copy() +listSnapshots_args.__setstate__ = listSnapshots_args__setstate__ -class regConfig_result: +class listSnapshots_result: """ Attributes: - success @@ -11335,7 +11484,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = ExecResp() + self.success = ListSnapshotsResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -11351,7 +11500,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('regConfig_result') + oprot.writeStructBegin('listSnapshots_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -11380,29 +11529,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(regConfig_result) -regConfig_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(listSnapshots_result) +listSnapshots_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [ListSnapshotsResp, ListSnapshotsResp.thrift_spec, False], None, 2, ), # 0 ) -regConfig_result.thrift_struct_annotations = { +listSnapshots_result.thrift_struct_annotations = { } -regConfig_result.thrift_field_annotations = { +listSnapshots_result.thrift_field_annotations = { } -def regConfig_result__init__(self, success=None,): +def listSnapshots_result__init__(self, success=None,): self.success = success -regConfig_result.__init__ = regConfig_result__init__ +listSnapshots_result.__init__ = listSnapshots_result__init__ -def regConfig_result__setstate__(self, state): +def listSnapshots_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -regConfig_result.__getstate__ = lambda self: self.__dict__.copy() -regConfig_result.__setstate__ = regConfig_result__setstate__ +listSnapshots_result.__getstate__ = lambda self: self.__dict__.copy() +listSnapshots_result.__setstate__ = listSnapshots_result__setstate__ -class getConfig_args: +class runAdminJob_args: """ Attributes: - req @@ -11430,7 +11579,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = GetConfigReq() + self.req = AdminJobReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -11446,7 +11595,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('getConfig_args') + oprot.writeStructBegin('runAdminJob_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -11475,30 +11624,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(getConfig_args) -getConfig_args.thrift_spec = ( +all_structs.append(runAdminJob_args) +runAdminJob_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [GetConfigReq, GetConfigReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [AdminJobReq, AdminJobReq.thrift_spec, False], None, 2, ), # 1 ) -getConfig_args.thrift_struct_annotations = { +runAdminJob_args.thrift_struct_annotations = { } -getConfig_args.thrift_field_annotations = { +runAdminJob_args.thrift_field_annotations = { } -def getConfig_args__init__(self, req=None,): +def runAdminJob_args__init__(self, req=None,): self.req = req -getConfig_args.__init__ = getConfig_args__init__ +runAdminJob_args.__init__ = runAdminJob_args__init__ -def getConfig_args__setstate__(self, state): +def runAdminJob_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -getConfig_args.__getstate__ = lambda self: self.__dict__.copy() -getConfig_args.__setstate__ = getConfig_args__setstate__ +runAdminJob_args.__getstate__ = lambda self: self.__dict__.copy() +runAdminJob_args.__setstate__ = runAdminJob_args__setstate__ -class getConfig_result: +class runAdminJob_result: """ Attributes: - success @@ -11526,7 +11675,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = GetConfigResp() + self.success = AdminJobResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -11542,7 +11691,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('getConfig_result') + oprot.writeStructBegin('runAdminJob_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -11571,29 +11720,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(getConfig_result) -getConfig_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [GetConfigResp, GetConfigResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(runAdminJob_result) +runAdminJob_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [AdminJobResp, AdminJobResp.thrift_spec, False], None, 2, ), # 0 ) -getConfig_result.thrift_struct_annotations = { +runAdminJob_result.thrift_struct_annotations = { } -getConfig_result.thrift_field_annotations = { +runAdminJob_result.thrift_field_annotations = { } -def getConfig_result__init__(self, success=None,): +def runAdminJob_result__init__(self, success=None,): self.success = success -getConfig_result.__init__ = getConfig_result__init__ +runAdminJob_result.__init__ = runAdminJob_result__init__ -def getConfig_result__setstate__(self, state): +def runAdminJob_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -getConfig_result.__getstate__ = lambda self: self.__dict__.copy() -getConfig_result.__setstate__ = getConfig_result__setstate__ +runAdminJob_result.__getstate__ = lambda self: self.__dict__.copy() +runAdminJob_result.__setstate__ = runAdminJob_result__setstate__ -class setConfig_args: +class mergeZone_args: """ Attributes: - req @@ -11621,7 +11770,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = SetConfigReq() + self.req = MergeZoneReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -11637,7 +11786,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('setConfig_args') + oprot.writeStructBegin('mergeZone_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -11666,30 +11815,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(setConfig_args) -setConfig_args.thrift_spec = ( +all_structs.append(mergeZone_args) +mergeZone_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [SetConfigReq, SetConfigReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [MergeZoneReq, MergeZoneReq.thrift_spec, False], None, 2, ), # 1 ) -setConfig_args.thrift_struct_annotations = { +mergeZone_args.thrift_struct_annotations = { } -setConfig_args.thrift_field_annotations = { +mergeZone_args.thrift_field_annotations = { } -def setConfig_args__init__(self, req=None,): +def mergeZone_args__init__(self, req=None,): self.req = req -setConfig_args.__init__ = setConfig_args__init__ +mergeZone_args.__init__ = mergeZone_args__init__ -def setConfig_args__setstate__(self, state): +def mergeZone_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -setConfig_args.__getstate__ = lambda self: self.__dict__.copy() -setConfig_args.__setstate__ = setConfig_args__setstate__ +mergeZone_args.__getstate__ = lambda self: self.__dict__.copy() +mergeZone_args.__setstate__ = mergeZone_args__setstate__ -class setConfig_result: +class mergeZone_result: """ Attributes: - success @@ -11733,7 +11882,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('setConfig_result') + oprot.writeStructBegin('mergeZone_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -11762,29 +11911,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(setConfig_result) -setConfig_result.thrift_spec = ( +all_structs.append(mergeZone_result) +mergeZone_result.thrift_spec = ( (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 ) -setConfig_result.thrift_struct_annotations = { +mergeZone_result.thrift_struct_annotations = { } -setConfig_result.thrift_field_annotations = { +mergeZone_result.thrift_field_annotations = { } -def setConfig_result__init__(self, success=None,): +def mergeZone_result__init__(self, success=None,): self.success = success -setConfig_result.__init__ = setConfig_result__init__ +mergeZone_result.__init__ = mergeZone_result__init__ -def setConfig_result__setstate__(self, state): +def mergeZone_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -setConfig_result.__getstate__ = lambda self: self.__dict__.copy() -setConfig_result.__setstate__ = setConfig_result__setstate__ +mergeZone_result.__getstate__ = lambda self: self.__dict__.copy() +mergeZone_result.__setstate__ = mergeZone_result__setstate__ -class listConfigs_args: +class dropZone_args: """ Attributes: - req @@ -11812,7 +11961,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = ListConfigsReq() + self.req = DropZoneReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -11828,7 +11977,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('listConfigs_args') + oprot.writeStructBegin('dropZone_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -11857,30 +12006,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(listConfigs_args) -listConfigs_args.thrift_spec = ( +all_structs.append(dropZone_args) +dropZone_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [ListConfigsReq, ListConfigsReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [DropZoneReq, DropZoneReq.thrift_spec, False], None, 2, ), # 1 ) -listConfigs_args.thrift_struct_annotations = { +dropZone_args.thrift_struct_annotations = { } -listConfigs_args.thrift_field_annotations = { +dropZone_args.thrift_field_annotations = { } -def listConfigs_args__init__(self, req=None,): +def dropZone_args__init__(self, req=None,): self.req = req -listConfigs_args.__init__ = listConfigs_args__init__ +dropZone_args.__init__ = dropZone_args__init__ -def listConfigs_args__setstate__(self, state): +def dropZone_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -listConfigs_args.__getstate__ = lambda self: self.__dict__.copy() -listConfigs_args.__setstate__ = listConfigs_args__setstate__ +dropZone_args.__getstate__ = lambda self: self.__dict__.copy() +dropZone_args.__setstate__ = dropZone_args__setstate__ -class listConfigs_result: +class dropZone_result: """ Attributes: - success @@ -11908,7 +12057,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = ListConfigsResp() + self.success = ExecResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -11924,7 +12073,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('listConfigs_result') + oprot.writeStructBegin('dropZone_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -11953,29 +12102,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(listConfigs_result) -listConfigs_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [ListConfigsResp, ListConfigsResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(dropZone_result) +dropZone_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 ) -listConfigs_result.thrift_struct_annotations = { +dropZone_result.thrift_struct_annotations = { } -listConfigs_result.thrift_field_annotations = { +dropZone_result.thrift_field_annotations = { } -def listConfigs_result__init__(self, success=None,): +def dropZone_result__init__(self, success=None,): self.success = success -listConfigs_result.__init__ = listConfigs_result__init__ +dropZone_result.__init__ = dropZone_result__init__ -def listConfigs_result__setstate__(self, state): +def dropZone_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -listConfigs_result.__getstate__ = lambda self: self.__dict__.copy() -listConfigs_result.__setstate__ = listConfigs_result__setstate__ +dropZone_result.__getstate__ = lambda self: self.__dict__.copy() +dropZone_result.__setstate__ = dropZone_result__setstate__ -class createSnapshot_args: +class divideZone_args: """ Attributes: - req @@ -12003,7 +12152,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = CreateSnapshotReq() + self.req = DivideZoneReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -12019,7 +12168,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('createSnapshot_args') + oprot.writeStructBegin('divideZone_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -12048,30 +12197,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(createSnapshot_args) -createSnapshot_args.thrift_spec = ( +all_structs.append(divideZone_args) +divideZone_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [CreateSnapshotReq, CreateSnapshotReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [DivideZoneReq, DivideZoneReq.thrift_spec, False], None, 2, ), # 1 ) -createSnapshot_args.thrift_struct_annotations = { +divideZone_args.thrift_struct_annotations = { } -createSnapshot_args.thrift_field_annotations = { +divideZone_args.thrift_field_annotations = { } -def createSnapshot_args__init__(self, req=None,): +def divideZone_args__init__(self, req=None,): self.req = req -createSnapshot_args.__init__ = createSnapshot_args__init__ +divideZone_args.__init__ = divideZone_args__init__ -def createSnapshot_args__setstate__(self, state): +def divideZone_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -createSnapshot_args.__getstate__ = lambda self: self.__dict__.copy() -createSnapshot_args.__setstate__ = createSnapshot_args__setstate__ +divideZone_args.__getstate__ = lambda self: self.__dict__.copy() +divideZone_args.__setstate__ = divideZone_args__setstate__ -class createSnapshot_result: +class divideZone_result: """ Attributes: - success @@ -12115,7 +12264,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('createSnapshot_result') + oprot.writeStructBegin('divideZone_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -12144,29 +12293,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(createSnapshot_result) -createSnapshot_result.thrift_spec = ( +all_structs.append(divideZone_result) +divideZone_result.thrift_spec = ( (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 ) -createSnapshot_result.thrift_struct_annotations = { +divideZone_result.thrift_struct_annotations = { } -createSnapshot_result.thrift_field_annotations = { +divideZone_result.thrift_field_annotations = { } -def createSnapshot_result__init__(self, success=None,): +def divideZone_result__init__(self, success=None,): self.success = success -createSnapshot_result.__init__ = createSnapshot_result__init__ +divideZone_result.__init__ = divideZone_result__init__ -def createSnapshot_result__setstate__(self, state): +def divideZone_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -createSnapshot_result.__getstate__ = lambda self: self.__dict__.copy() -createSnapshot_result.__setstate__ = createSnapshot_result__setstate__ +divideZone_result.__getstate__ = lambda self: self.__dict__.copy() +divideZone_result.__setstate__ = divideZone_result__setstate__ -class dropSnapshot_args: +class renameZone_args: """ Attributes: - req @@ -12194,7 +12343,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = DropSnapshotReq() + self.req = RenameZoneReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -12210,7 +12359,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('dropSnapshot_args') + oprot.writeStructBegin('renameZone_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -12239,30 +12388,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(dropSnapshot_args) -dropSnapshot_args.thrift_spec = ( +all_structs.append(renameZone_args) +renameZone_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [DropSnapshotReq, DropSnapshotReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [RenameZoneReq, RenameZoneReq.thrift_spec, False], None, 2, ), # 1 ) -dropSnapshot_args.thrift_struct_annotations = { +renameZone_args.thrift_struct_annotations = { } -dropSnapshot_args.thrift_field_annotations = { +renameZone_args.thrift_field_annotations = { } -def dropSnapshot_args__init__(self, req=None,): +def renameZone_args__init__(self, req=None,): self.req = req -dropSnapshot_args.__init__ = dropSnapshot_args__init__ +renameZone_args.__init__ = renameZone_args__init__ -def dropSnapshot_args__setstate__(self, state): +def renameZone_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -dropSnapshot_args.__getstate__ = lambda self: self.__dict__.copy() -dropSnapshot_args.__setstate__ = dropSnapshot_args__setstate__ +renameZone_args.__getstate__ = lambda self: self.__dict__.copy() +renameZone_args.__setstate__ = renameZone_args__setstate__ -class dropSnapshot_result: +class renameZone_result: """ Attributes: - success @@ -12306,7 +12455,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('dropSnapshot_result') + oprot.writeStructBegin('renameZone_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -12335,29 +12484,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(dropSnapshot_result) -dropSnapshot_result.thrift_spec = ( +all_structs.append(renameZone_result) +renameZone_result.thrift_spec = ( (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 ) -dropSnapshot_result.thrift_struct_annotations = { +renameZone_result.thrift_struct_annotations = { } -dropSnapshot_result.thrift_field_annotations = { +renameZone_result.thrift_field_annotations = { } -def dropSnapshot_result__init__(self, success=None,): +def renameZone_result__init__(self, success=None,): self.success = success -dropSnapshot_result.__init__ = dropSnapshot_result__init__ +renameZone_result.__init__ = renameZone_result__init__ -def dropSnapshot_result__setstate__(self, state): +def renameZone_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -dropSnapshot_result.__getstate__ = lambda self: self.__dict__.copy() -dropSnapshot_result.__setstate__ = dropSnapshot_result__setstate__ +renameZone_result.__getstate__ = lambda self: self.__dict__.copy() +renameZone_result.__setstate__ = renameZone_result__setstate__ -class listSnapshots_args: +class getZone_args: """ Attributes: - req @@ -12385,7 +12534,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = ListSnapshotsReq() + self.req = GetZoneReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -12401,7 +12550,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('listSnapshots_args') + oprot.writeStructBegin('getZone_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -12430,30 +12579,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(listSnapshots_args) -listSnapshots_args.thrift_spec = ( +all_structs.append(getZone_args) +getZone_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [ListSnapshotsReq, ListSnapshotsReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [GetZoneReq, GetZoneReq.thrift_spec, False], None, 2, ), # 1 ) -listSnapshots_args.thrift_struct_annotations = { +getZone_args.thrift_struct_annotations = { } -listSnapshots_args.thrift_field_annotations = { +getZone_args.thrift_field_annotations = { } -def listSnapshots_args__init__(self, req=None,): +def getZone_args__init__(self, req=None,): self.req = req -listSnapshots_args.__init__ = listSnapshots_args__init__ +getZone_args.__init__ = getZone_args__init__ -def listSnapshots_args__setstate__(self, state): +def getZone_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -listSnapshots_args.__getstate__ = lambda self: self.__dict__.copy() -listSnapshots_args.__setstate__ = listSnapshots_args__setstate__ +getZone_args.__getstate__ = lambda self: self.__dict__.copy() +getZone_args.__setstate__ = getZone_args__setstate__ -class listSnapshots_result: +class getZone_result: """ Attributes: - success @@ -12481,7 +12630,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = ListSnapshotsResp() + self.success = GetZoneResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -12497,7 +12646,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('listSnapshots_result') + oprot.writeStructBegin('getZone_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -12526,29 +12675,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(listSnapshots_result) -listSnapshots_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [ListSnapshotsResp, ListSnapshotsResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(getZone_result) +getZone_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [GetZoneResp, GetZoneResp.thrift_spec, False], None, 2, ), # 0 ) -listSnapshots_result.thrift_struct_annotations = { +getZone_result.thrift_struct_annotations = { } -listSnapshots_result.thrift_field_annotations = { +getZone_result.thrift_field_annotations = { } -def listSnapshots_result__init__(self, success=None,): +def getZone_result__init__(self, success=None,): self.success = success -listSnapshots_result.__init__ = listSnapshots_result__init__ +getZone_result.__init__ = getZone_result__init__ -def listSnapshots_result__setstate__(self, state): +def getZone_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -listSnapshots_result.__getstate__ = lambda self: self.__dict__.copy() -listSnapshots_result.__setstate__ = listSnapshots_result__setstate__ +getZone_result.__getstate__ = lambda self: self.__dict__.copy() +getZone_result.__setstate__ = getZone_result__setstate__ -class runAdminJob_args: +class listZones_args: """ Attributes: - req @@ -12576,7 +12725,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = AdminJobReq() + self.req = ListZonesReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -12592,7 +12741,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('runAdminJob_args') + oprot.writeStructBegin('listZones_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -12621,30 +12770,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(runAdminJob_args) -runAdminJob_args.thrift_spec = ( +all_structs.append(listZones_args) +listZones_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [AdminJobReq, AdminJobReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [ListZonesReq, ListZonesReq.thrift_spec, False], None, 2, ), # 1 ) -runAdminJob_args.thrift_struct_annotations = { +listZones_args.thrift_struct_annotations = { } -runAdminJob_args.thrift_field_annotations = { +listZones_args.thrift_field_annotations = { } -def runAdminJob_args__init__(self, req=None,): +def listZones_args__init__(self, req=None,): self.req = req -runAdminJob_args.__init__ = runAdminJob_args__init__ +listZones_args.__init__ = listZones_args__init__ -def runAdminJob_args__setstate__(self, state): +def listZones_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -runAdminJob_args.__getstate__ = lambda self: self.__dict__.copy() -runAdminJob_args.__setstate__ = runAdminJob_args__setstate__ +listZones_args.__getstate__ = lambda self: self.__dict__.copy() +listZones_args.__setstate__ = listZones_args__setstate__ -class runAdminJob_result: +class listZones_result: """ Attributes: - success @@ -12672,7 +12821,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = AdminJobResp() + self.success = ListZonesResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -12688,7 +12837,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('runAdminJob_result') + oprot.writeStructBegin('listZones_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -12717,29 +12866,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(runAdminJob_result) -runAdminJob_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [AdminJobResp, AdminJobResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(listZones_result) +listZones_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [ListZonesResp, ListZonesResp.thrift_spec, False], None, 2, ), # 0 ) -runAdminJob_result.thrift_struct_annotations = { +listZones_result.thrift_struct_annotations = { } -runAdminJob_result.thrift_field_annotations = { +listZones_result.thrift_field_annotations = { } -def runAdminJob_result__init__(self, success=None,): +def listZones_result__init__(self, success=None,): self.success = success -runAdminJob_result.__init__ = runAdminJob_result__init__ +listZones_result.__init__ = listZones_result__init__ -def runAdminJob_result__setstate__(self, state): +def listZones_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -runAdminJob_result.__getstate__ = lambda self: self.__dict__.copy() -runAdminJob_result.__setstate__ = runAdminJob_result__setstate__ +listZones_result.__getstate__ = lambda self: self.__dict__.copy() +listZones_result.__setstate__ = listZones_result__setstate__ -class mergeZone_args: +class addListener_args: """ Attributes: - req @@ -12767,7 +12916,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = MergeZoneReq() + self.req = AddListenerReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -12783,7 +12932,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('mergeZone_args') + oprot.writeStructBegin('addListener_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -12812,30 +12961,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(mergeZone_args) -mergeZone_args.thrift_spec = ( +all_structs.append(addListener_args) +addListener_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [MergeZoneReq, MergeZoneReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [AddListenerReq, AddListenerReq.thrift_spec, False], None, 2, ), # 1 ) -mergeZone_args.thrift_struct_annotations = { +addListener_args.thrift_struct_annotations = { } -mergeZone_args.thrift_field_annotations = { +addListener_args.thrift_field_annotations = { } -def mergeZone_args__init__(self, req=None,): +def addListener_args__init__(self, req=None,): self.req = req -mergeZone_args.__init__ = mergeZone_args__init__ +addListener_args.__init__ = addListener_args__init__ -def mergeZone_args__setstate__(self, state): +def addListener_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -mergeZone_args.__getstate__ = lambda self: self.__dict__.copy() -mergeZone_args.__setstate__ = mergeZone_args__setstate__ +addListener_args.__getstate__ = lambda self: self.__dict__.copy() +addListener_args.__setstate__ = addListener_args__setstate__ -class mergeZone_result: +class addListener_result: """ Attributes: - success @@ -12879,7 +13028,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('mergeZone_result') + oprot.writeStructBegin('addListener_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -12908,29 +13057,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(mergeZone_result) -mergeZone_result.thrift_spec = ( +all_structs.append(addListener_result) +addListener_result.thrift_spec = ( (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 ) -mergeZone_result.thrift_struct_annotations = { +addListener_result.thrift_struct_annotations = { } -mergeZone_result.thrift_field_annotations = { +addListener_result.thrift_field_annotations = { } -def mergeZone_result__init__(self, success=None,): +def addListener_result__init__(self, success=None,): self.success = success -mergeZone_result.__init__ = mergeZone_result__init__ +addListener_result.__init__ = addListener_result__init__ -def mergeZone_result__setstate__(self, state): +def addListener_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -mergeZone_result.__getstate__ = lambda self: self.__dict__.copy() -mergeZone_result.__setstate__ = mergeZone_result__setstate__ +addListener_result.__getstate__ = lambda self: self.__dict__.copy() +addListener_result.__setstate__ = addListener_result__setstate__ -class dropZone_args: +class removeListener_args: """ Attributes: - req @@ -12958,7 +13107,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = DropZoneReq() + self.req = RemoveListenerReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -12974,7 +13123,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('dropZone_args') + oprot.writeStructBegin('removeListener_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -13003,30 +13152,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(dropZone_args) -dropZone_args.thrift_spec = ( +all_structs.append(removeListener_args) +removeListener_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [DropZoneReq, DropZoneReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [RemoveListenerReq, RemoveListenerReq.thrift_spec, False], None, 2, ), # 1 ) -dropZone_args.thrift_struct_annotations = { +removeListener_args.thrift_struct_annotations = { } -dropZone_args.thrift_field_annotations = { +removeListener_args.thrift_field_annotations = { } -def dropZone_args__init__(self, req=None,): +def removeListener_args__init__(self, req=None,): self.req = req -dropZone_args.__init__ = dropZone_args__init__ +removeListener_args.__init__ = removeListener_args__init__ -def dropZone_args__setstate__(self, state): +def removeListener_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -dropZone_args.__getstate__ = lambda self: self.__dict__.copy() -dropZone_args.__setstate__ = dropZone_args__setstate__ +removeListener_args.__getstate__ = lambda self: self.__dict__.copy() +removeListener_args.__setstate__ = removeListener_args__setstate__ -class dropZone_result: +class removeListener_result: """ Attributes: - success @@ -13070,7 +13219,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('dropZone_result') + oprot.writeStructBegin('removeListener_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -13099,29 +13248,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(dropZone_result) -dropZone_result.thrift_spec = ( +all_structs.append(removeListener_result) +removeListener_result.thrift_spec = ( (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 ) -dropZone_result.thrift_struct_annotations = { +removeListener_result.thrift_struct_annotations = { } -dropZone_result.thrift_field_annotations = { +removeListener_result.thrift_field_annotations = { } -def dropZone_result__init__(self, success=None,): +def removeListener_result__init__(self, success=None,): self.success = success -dropZone_result.__init__ = dropZone_result__init__ +removeListener_result.__init__ = removeListener_result__init__ -def dropZone_result__setstate__(self, state): +def removeListener_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -dropZone_result.__getstate__ = lambda self: self.__dict__.copy() -dropZone_result.__setstate__ = dropZone_result__setstate__ +removeListener_result.__getstate__ = lambda self: self.__dict__.copy() +removeListener_result.__setstate__ = removeListener_result__setstate__ -class divideZone_args: +class listListener_args: """ Attributes: - req @@ -13149,7 +13298,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = DivideZoneReq() + self.req = ListListenerReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -13165,7 +13314,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('divideZone_args') + oprot.writeStructBegin('listListener_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -13194,30 +13343,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(divideZone_args) -divideZone_args.thrift_spec = ( +all_structs.append(listListener_args) +listListener_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [DivideZoneReq, DivideZoneReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [ListListenerReq, ListListenerReq.thrift_spec, False], None, 2, ), # 1 ) -divideZone_args.thrift_struct_annotations = { +listListener_args.thrift_struct_annotations = { } -divideZone_args.thrift_field_annotations = { +listListener_args.thrift_field_annotations = { } -def divideZone_args__init__(self, req=None,): +def listListener_args__init__(self, req=None,): self.req = req -divideZone_args.__init__ = divideZone_args__init__ +listListener_args.__init__ = listListener_args__init__ -def divideZone_args__setstate__(self, state): +def listListener_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -divideZone_args.__getstate__ = lambda self: self.__dict__.copy() -divideZone_args.__setstate__ = divideZone_args__setstate__ +listListener_args.__getstate__ = lambda self: self.__dict__.copy() +listListener_args.__setstate__ = listListener_args__setstate__ -class divideZone_result: +class listListener_result: """ Attributes: - success @@ -13245,7 +13394,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = ExecResp() + self.success = ListListenerResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -13261,7 +13410,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('divideZone_result') + oprot.writeStructBegin('listListener_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -13290,29 +13439,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(divideZone_result) -divideZone_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(listListener_result) +listListener_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [ListListenerResp, ListListenerResp.thrift_spec, False], None, 2, ), # 0 ) -divideZone_result.thrift_struct_annotations = { +listListener_result.thrift_struct_annotations = { } -divideZone_result.thrift_field_annotations = { +listListener_result.thrift_field_annotations = { } -def divideZone_result__init__(self, success=None,): +def listListener_result__init__(self, success=None,): self.success = success -divideZone_result.__init__ = divideZone_result__init__ +listListener_result.__init__ = listListener_result__init__ -def divideZone_result__setstate__(self, state): +def listListener_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -divideZone_result.__getstate__ = lambda self: self.__dict__.copy() -divideZone_result.__setstate__ = divideZone_result__setstate__ +listListener_result.__getstate__ = lambda self: self.__dict__.copy() +listListener_result.__setstate__ = listListener_result__setstate__ -class renameZone_args: +class getStats_args: """ Attributes: - req @@ -13340,7 +13489,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = RenameZoneReq() + self.req = GetStatsReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -13356,7 +13505,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('renameZone_args') + oprot.writeStructBegin('getStats_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -13385,30 +13534,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(renameZone_args) -renameZone_args.thrift_spec = ( +all_structs.append(getStats_args) +getStats_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [RenameZoneReq, RenameZoneReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [GetStatsReq, GetStatsReq.thrift_spec, False], None, 2, ), # 1 ) -renameZone_args.thrift_struct_annotations = { +getStats_args.thrift_struct_annotations = { } -renameZone_args.thrift_field_annotations = { +getStats_args.thrift_field_annotations = { } -def renameZone_args__init__(self, req=None,): +def getStats_args__init__(self, req=None,): self.req = req -renameZone_args.__init__ = renameZone_args__init__ +getStats_args.__init__ = getStats_args__init__ -def renameZone_args__setstate__(self, state): +def getStats_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -renameZone_args.__getstate__ = lambda self: self.__dict__.copy() -renameZone_args.__setstate__ = renameZone_args__setstate__ +getStats_args.__getstate__ = lambda self: self.__dict__.copy() +getStats_args.__setstate__ = getStats_args__setstate__ -class renameZone_result: +class getStats_result: """ Attributes: - success @@ -13436,7 +13585,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = ExecResp() + self.success = GetStatsResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -13452,7 +13601,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('renameZone_result') + oprot.writeStructBegin('getStats_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -13481,29 +13630,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(renameZone_result) -renameZone_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(getStats_result) +getStats_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [GetStatsResp, GetStatsResp.thrift_spec, False], None, 2, ), # 0 ) -renameZone_result.thrift_struct_annotations = { +getStats_result.thrift_struct_annotations = { } -renameZone_result.thrift_field_annotations = { +getStats_result.thrift_field_annotations = { } -def renameZone_result__init__(self, success=None,): +def getStats_result__init__(self, success=None,): self.success = success -renameZone_result.__init__ = renameZone_result__init__ +getStats_result.__init__ = getStats_result__init__ -def renameZone_result__setstate__(self, state): +def getStats_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -renameZone_result.__getstate__ = lambda self: self.__dict__.copy() -renameZone_result.__setstate__ = renameZone_result__setstate__ +getStats_result.__getstate__ = lambda self: self.__dict__.copy() +getStats_result.__setstate__ = getStats_result__setstate__ -class getZone_args: +class signInService_args: """ Attributes: - req @@ -13531,7 +13680,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = GetZoneReq() + self.req = SignInServiceReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -13547,7 +13696,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('getZone_args') + oprot.writeStructBegin('signInService_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -13576,30 +13725,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(getZone_args) -getZone_args.thrift_spec = ( +all_structs.append(signInService_args) +signInService_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [GetZoneReq, GetZoneReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [SignInServiceReq, SignInServiceReq.thrift_spec, False], None, 2, ), # 1 ) -getZone_args.thrift_struct_annotations = { +signInService_args.thrift_struct_annotations = { } -getZone_args.thrift_field_annotations = { +signInService_args.thrift_field_annotations = { } -def getZone_args__init__(self, req=None,): +def signInService_args__init__(self, req=None,): self.req = req -getZone_args.__init__ = getZone_args__init__ +signInService_args.__init__ = signInService_args__init__ -def getZone_args__setstate__(self, state): +def signInService_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -getZone_args.__getstate__ = lambda self: self.__dict__.copy() -getZone_args.__setstate__ = getZone_args__setstate__ +signInService_args.__getstate__ = lambda self: self.__dict__.copy() +signInService_args.__setstate__ = signInService_args__setstate__ -class getZone_result: +class signInService_result: """ Attributes: - success @@ -13627,7 +13776,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = GetZoneResp() + self.success = ExecResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -13643,7 +13792,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('getZone_result') + oprot.writeStructBegin('signInService_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -13672,29 +13821,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(getZone_result) -getZone_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [GetZoneResp, GetZoneResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(signInService_result) +signInService_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 ) -getZone_result.thrift_struct_annotations = { +signInService_result.thrift_struct_annotations = { } -getZone_result.thrift_field_annotations = { +signInService_result.thrift_field_annotations = { } -def getZone_result__init__(self, success=None,): +def signInService_result__init__(self, success=None,): self.success = success -getZone_result.__init__ = getZone_result__init__ +signInService_result.__init__ = signInService_result__init__ -def getZone_result__setstate__(self, state): +def signInService_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -getZone_result.__getstate__ = lambda self: self.__dict__.copy() -getZone_result.__setstate__ = getZone_result__setstate__ +signInService_result.__getstate__ = lambda self: self.__dict__.copy() +signInService_result.__setstate__ = signInService_result__setstate__ -class listZones_args: +class signOutService_args: """ Attributes: - req @@ -13722,7 +13871,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = ListZonesReq() + self.req = SignOutServiceReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -13738,7 +13887,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('listZones_args') + oprot.writeStructBegin('signOutService_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -13767,30 +13916,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(listZones_args) -listZones_args.thrift_spec = ( +all_structs.append(signOutService_args) +signOutService_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [ListZonesReq, ListZonesReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [SignOutServiceReq, SignOutServiceReq.thrift_spec, False], None, 2, ), # 1 ) -listZones_args.thrift_struct_annotations = { +signOutService_args.thrift_struct_annotations = { } -listZones_args.thrift_field_annotations = { +signOutService_args.thrift_field_annotations = { } -def listZones_args__init__(self, req=None,): +def signOutService_args__init__(self, req=None,): self.req = req -listZones_args.__init__ = listZones_args__init__ +signOutService_args.__init__ = signOutService_args__init__ -def listZones_args__setstate__(self, state): +def signOutService_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -listZones_args.__getstate__ = lambda self: self.__dict__.copy() -listZones_args.__setstate__ = listZones_args__setstate__ +signOutService_args.__getstate__ = lambda self: self.__dict__.copy() +signOutService_args.__setstate__ = signOutService_args__setstate__ -class listZones_result: +class signOutService_result: """ Attributes: - success @@ -13818,7 +13967,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = ListZonesResp() + self.success = ExecResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -13834,7 +13983,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('listZones_result') + oprot.writeStructBegin('signOutService_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -13863,29 +14012,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(listZones_result) -listZones_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [ListZonesResp, ListZonesResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(signOutService_result) +signOutService_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 ) -listZones_result.thrift_struct_annotations = { +signOutService_result.thrift_struct_annotations = { } -listZones_result.thrift_field_annotations = { +signOutService_result.thrift_field_annotations = { } -def listZones_result__init__(self, success=None,): +def signOutService_result__init__(self, success=None,): self.success = success -listZones_result.__init__ = listZones_result__init__ +signOutService_result.__init__ = signOutService_result__init__ -def listZones_result__setstate__(self, state): +def signOutService_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -listZones_result.__getstate__ = lambda self: self.__dict__.copy() -listZones_result.__setstate__ = listZones_result__setstate__ +signOutService_result.__getstate__ = lambda self: self.__dict__.copy() +signOutService_result.__setstate__ = signOutService_result__setstate__ -class addListener_args: +class listServiceClients_args: """ Attributes: - req @@ -13913,7 +14062,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = AddListenerReq() + self.req = ListServiceClientsReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -13929,7 +14078,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('addListener_args') + oprot.writeStructBegin('listServiceClients_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -13958,30 +14107,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(addListener_args) -addListener_args.thrift_spec = ( +all_structs.append(listServiceClients_args) +listServiceClients_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [AddListenerReq, AddListenerReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [ListServiceClientsReq, ListServiceClientsReq.thrift_spec, False], None, 2, ), # 1 ) -addListener_args.thrift_struct_annotations = { +listServiceClients_args.thrift_struct_annotations = { } -addListener_args.thrift_field_annotations = { +listServiceClients_args.thrift_field_annotations = { } -def addListener_args__init__(self, req=None,): +def listServiceClients_args__init__(self, req=None,): self.req = req -addListener_args.__init__ = addListener_args__init__ +listServiceClients_args.__init__ = listServiceClients_args__init__ -def addListener_args__setstate__(self, state): +def listServiceClients_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -addListener_args.__getstate__ = lambda self: self.__dict__.copy() -addListener_args.__setstate__ = addListener_args__setstate__ +listServiceClients_args.__getstate__ = lambda self: self.__dict__.copy() +listServiceClients_args.__setstate__ = listServiceClients_args__setstate__ -class addListener_result: +class listServiceClients_result: """ Attributes: - success @@ -14009,7 +14158,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = ExecResp() + self.success = ListServiceClientsResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -14025,7 +14174,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('addListener_result') + oprot.writeStructBegin('listServiceClients_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -14054,29 +14203,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(addListener_result) -addListener_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(listServiceClients_result) +listServiceClients_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [ListServiceClientsResp, ListServiceClientsResp.thrift_spec, False], None, 2, ), # 0 ) -addListener_result.thrift_struct_annotations = { +listServiceClients_result.thrift_struct_annotations = { } -addListener_result.thrift_field_annotations = { +listServiceClients_result.thrift_field_annotations = { } -def addListener_result__init__(self, success=None,): +def listServiceClients_result__init__(self, success=None,): self.success = success -addListener_result.__init__ = addListener_result__init__ +listServiceClients_result.__init__ = listServiceClients_result__init__ -def addListener_result__setstate__(self, state): +def listServiceClients_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -addListener_result.__getstate__ = lambda self: self.__dict__.copy() -addListener_result.__setstate__ = addListener_result__setstate__ +listServiceClients_result.__getstate__ = lambda self: self.__dict__.copy() +listServiceClients_result.__setstate__ = listServiceClients_result__setstate__ -class removeListener_args: +class createFTIndex_args: """ Attributes: - req @@ -14104,7 +14253,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = RemoveListenerReq() + self.req = CreateFTIndexReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -14120,7 +14269,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('removeListener_args') + oprot.writeStructBegin('createFTIndex_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -14149,30 +14298,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(removeListener_args) -removeListener_args.thrift_spec = ( +all_structs.append(createFTIndex_args) +createFTIndex_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [RemoveListenerReq, RemoveListenerReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [CreateFTIndexReq, CreateFTIndexReq.thrift_spec, False], None, 2, ), # 1 ) -removeListener_args.thrift_struct_annotations = { +createFTIndex_args.thrift_struct_annotations = { } -removeListener_args.thrift_field_annotations = { +createFTIndex_args.thrift_field_annotations = { } -def removeListener_args__init__(self, req=None,): +def createFTIndex_args__init__(self, req=None,): self.req = req -removeListener_args.__init__ = removeListener_args__init__ +createFTIndex_args.__init__ = createFTIndex_args__init__ -def removeListener_args__setstate__(self, state): +def createFTIndex_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -removeListener_args.__getstate__ = lambda self: self.__dict__.copy() -removeListener_args.__setstate__ = removeListener_args__setstate__ +createFTIndex_args.__getstate__ = lambda self: self.__dict__.copy() +createFTIndex_args.__setstate__ = createFTIndex_args__setstate__ -class removeListener_result: +class createFTIndex_result: """ Attributes: - success @@ -14216,7 +14365,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('removeListener_result') + oprot.writeStructBegin('createFTIndex_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -14245,29 +14394,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(removeListener_result) -removeListener_result.thrift_spec = ( +all_structs.append(createFTIndex_result) +createFTIndex_result.thrift_spec = ( (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 ) -removeListener_result.thrift_struct_annotations = { +createFTIndex_result.thrift_struct_annotations = { } -removeListener_result.thrift_field_annotations = { +createFTIndex_result.thrift_field_annotations = { } -def removeListener_result__init__(self, success=None,): +def createFTIndex_result__init__(self, success=None,): self.success = success -removeListener_result.__init__ = removeListener_result__init__ +createFTIndex_result.__init__ = createFTIndex_result__init__ -def removeListener_result__setstate__(self, state): +def createFTIndex_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -removeListener_result.__getstate__ = lambda self: self.__dict__.copy() -removeListener_result.__setstate__ = removeListener_result__setstate__ +createFTIndex_result.__getstate__ = lambda self: self.__dict__.copy() +createFTIndex_result.__setstate__ = createFTIndex_result__setstate__ -class listListener_args: +class dropFTIndex_args: """ Attributes: - req @@ -14295,7 +14444,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = ListListenerReq() + self.req = DropFTIndexReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -14311,7 +14460,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('listListener_args') + oprot.writeStructBegin('dropFTIndex_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -14340,30 +14489,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(listListener_args) -listListener_args.thrift_spec = ( +all_structs.append(dropFTIndex_args) +dropFTIndex_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [ListListenerReq, ListListenerReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [DropFTIndexReq, DropFTIndexReq.thrift_spec, False], None, 2, ), # 1 ) -listListener_args.thrift_struct_annotations = { +dropFTIndex_args.thrift_struct_annotations = { } -listListener_args.thrift_field_annotations = { +dropFTIndex_args.thrift_field_annotations = { } -def listListener_args__init__(self, req=None,): +def dropFTIndex_args__init__(self, req=None,): self.req = req -listListener_args.__init__ = listListener_args__init__ +dropFTIndex_args.__init__ = dropFTIndex_args__init__ -def listListener_args__setstate__(self, state): +def dropFTIndex_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -listListener_args.__getstate__ = lambda self: self.__dict__.copy() -listListener_args.__setstate__ = listListener_args__setstate__ +dropFTIndex_args.__getstate__ = lambda self: self.__dict__.copy() +dropFTIndex_args.__setstate__ = dropFTIndex_args__setstate__ -class listListener_result: +class dropFTIndex_result: """ Attributes: - success @@ -14391,7 +14540,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = ListListenerResp() + self.success = ExecResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -14407,7 +14556,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('listListener_result') + oprot.writeStructBegin('dropFTIndex_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -14436,29 +14585,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(listListener_result) -listListener_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [ListListenerResp, ListListenerResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(dropFTIndex_result) +dropFTIndex_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 ) -listListener_result.thrift_struct_annotations = { +dropFTIndex_result.thrift_struct_annotations = { } -listListener_result.thrift_field_annotations = { +dropFTIndex_result.thrift_field_annotations = { } -def listListener_result__init__(self, success=None,): +def dropFTIndex_result__init__(self, success=None,): self.success = success -listListener_result.__init__ = listListener_result__init__ +dropFTIndex_result.__init__ = dropFTIndex_result__init__ -def listListener_result__setstate__(self, state): +def dropFTIndex_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -listListener_result.__getstate__ = lambda self: self.__dict__.copy() -listListener_result.__setstate__ = listListener_result__setstate__ +dropFTIndex_result.__getstate__ = lambda self: self.__dict__.copy() +dropFTIndex_result.__setstate__ = dropFTIndex_result__setstate__ -class getStats_args: +class listFTIndexes_args: """ Attributes: - req @@ -14486,7 +14635,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = GetStatsReq() + self.req = ListFTIndexesReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -14502,7 +14651,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('getStats_args') + oprot.writeStructBegin('listFTIndexes_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -14531,30 +14680,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(getStats_args) -getStats_args.thrift_spec = ( +all_structs.append(listFTIndexes_args) +listFTIndexes_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [GetStatsReq, GetStatsReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [ListFTIndexesReq, ListFTIndexesReq.thrift_spec, False], None, 2, ), # 1 ) -getStats_args.thrift_struct_annotations = { +listFTIndexes_args.thrift_struct_annotations = { } -getStats_args.thrift_field_annotations = { +listFTIndexes_args.thrift_field_annotations = { } -def getStats_args__init__(self, req=None,): +def listFTIndexes_args__init__(self, req=None,): self.req = req -getStats_args.__init__ = getStats_args__init__ +listFTIndexes_args.__init__ = listFTIndexes_args__init__ -def getStats_args__setstate__(self, state): +def listFTIndexes_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -getStats_args.__getstate__ = lambda self: self.__dict__.copy() -getStats_args.__setstate__ = getStats_args__setstate__ +listFTIndexes_args.__getstate__ = lambda self: self.__dict__.copy() +listFTIndexes_args.__setstate__ = listFTIndexes_args__setstate__ -class getStats_result: +class listFTIndexes_result: """ Attributes: - success @@ -14582,7 +14731,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = GetStatsResp() + self.success = ListFTIndexesResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -14598,7 +14747,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('getStats_result') + oprot.writeStructBegin('listFTIndexes_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -14627,29 +14776,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(getStats_result) -getStats_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [GetStatsResp, GetStatsResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(listFTIndexes_result) +listFTIndexes_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [ListFTIndexesResp, ListFTIndexesResp.thrift_spec, False], None, 2, ), # 0 ) -getStats_result.thrift_struct_annotations = { +listFTIndexes_result.thrift_struct_annotations = { } -getStats_result.thrift_field_annotations = { +listFTIndexes_result.thrift_field_annotations = { } -def getStats_result__init__(self, success=None,): +def listFTIndexes_result__init__(self, success=None,): self.success = success -getStats_result.__init__ = getStats_result__init__ +listFTIndexes_result.__init__ = listFTIndexes_result__init__ -def getStats_result__setstate__(self, state): +def listFTIndexes_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -getStats_result.__getstate__ = lambda self: self.__dict__.copy() -getStats_result.__setstate__ = getStats_result__setstate__ +listFTIndexes_result.__getstate__ = lambda self: self.__dict__.copy() +listFTIndexes_result.__setstate__ = listFTIndexes_result__setstate__ -class signInService_args: +class createSession_args: """ Attributes: - req @@ -14677,7 +14826,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = SignInServiceReq() + self.req = CreateSessionReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -14693,7 +14842,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('signInService_args') + oprot.writeStructBegin('createSession_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -14722,30 +14871,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(signInService_args) -signInService_args.thrift_spec = ( +all_structs.append(createSession_args) +createSession_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [SignInServiceReq, SignInServiceReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [CreateSessionReq, CreateSessionReq.thrift_spec, False], None, 2, ), # 1 ) -signInService_args.thrift_struct_annotations = { +createSession_args.thrift_struct_annotations = { } -signInService_args.thrift_field_annotations = { +createSession_args.thrift_field_annotations = { } -def signInService_args__init__(self, req=None,): +def createSession_args__init__(self, req=None,): self.req = req -signInService_args.__init__ = signInService_args__init__ +createSession_args.__init__ = createSession_args__init__ -def signInService_args__setstate__(self, state): +def createSession_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -signInService_args.__getstate__ = lambda self: self.__dict__.copy() -signInService_args.__setstate__ = signInService_args__setstate__ +createSession_args.__getstate__ = lambda self: self.__dict__.copy() +createSession_args.__setstate__ = createSession_args__setstate__ -class signInService_result: +class createSession_result: """ Attributes: - success @@ -14773,7 +14922,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = ExecResp() + self.success = CreateSessionResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -14789,7 +14938,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('signInService_result') + oprot.writeStructBegin('createSession_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -14818,29 +14967,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(signInService_result) -signInService_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(createSession_result) +createSession_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [CreateSessionResp, CreateSessionResp.thrift_spec, False], None, 2, ), # 0 ) -signInService_result.thrift_struct_annotations = { +createSession_result.thrift_struct_annotations = { } -signInService_result.thrift_field_annotations = { +createSession_result.thrift_field_annotations = { } -def signInService_result__init__(self, success=None,): +def createSession_result__init__(self, success=None,): self.success = success -signInService_result.__init__ = signInService_result__init__ +createSession_result.__init__ = createSession_result__init__ -def signInService_result__setstate__(self, state): +def createSession_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -signInService_result.__getstate__ = lambda self: self.__dict__.copy() -signInService_result.__setstate__ = signInService_result__setstate__ +createSession_result.__getstate__ = lambda self: self.__dict__.copy() +createSession_result.__setstate__ = createSession_result__setstate__ -class signOutService_args: +class updateSessions_args: """ Attributes: - req @@ -14868,7 +15017,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = SignOutServiceReq() + self.req = UpdateSessionsReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -14884,7 +15033,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('signOutService_args') + oprot.writeStructBegin('updateSessions_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -14913,30 +15062,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(signOutService_args) -signOutService_args.thrift_spec = ( +all_structs.append(updateSessions_args) +updateSessions_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [SignOutServiceReq, SignOutServiceReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [UpdateSessionsReq, UpdateSessionsReq.thrift_spec, False], None, 2, ), # 1 ) -signOutService_args.thrift_struct_annotations = { +updateSessions_args.thrift_struct_annotations = { } -signOutService_args.thrift_field_annotations = { +updateSessions_args.thrift_field_annotations = { } -def signOutService_args__init__(self, req=None,): +def updateSessions_args__init__(self, req=None,): self.req = req -signOutService_args.__init__ = signOutService_args__init__ +updateSessions_args.__init__ = updateSessions_args__init__ -def signOutService_args__setstate__(self, state): +def updateSessions_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -signOutService_args.__getstate__ = lambda self: self.__dict__.copy() -signOutService_args.__setstate__ = signOutService_args__setstate__ +updateSessions_args.__getstate__ = lambda self: self.__dict__.copy() +updateSessions_args.__setstate__ = updateSessions_args__setstate__ -class signOutService_result: +class updateSessions_result: """ Attributes: - success @@ -14964,7 +15113,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = ExecResp() + self.success = UpdateSessionsResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -14980,7 +15129,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('signOutService_result') + oprot.writeStructBegin('updateSessions_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -15009,29 +15158,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(signOutService_result) -signOutService_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(updateSessions_result) +updateSessions_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [UpdateSessionsResp, UpdateSessionsResp.thrift_spec, False], None, 2, ), # 0 ) -signOutService_result.thrift_struct_annotations = { +updateSessions_result.thrift_struct_annotations = { } -signOutService_result.thrift_field_annotations = { +updateSessions_result.thrift_field_annotations = { } -def signOutService_result__init__(self, success=None,): +def updateSessions_result__init__(self, success=None,): self.success = success -signOutService_result.__init__ = signOutService_result__init__ +updateSessions_result.__init__ = updateSessions_result__init__ -def signOutService_result__setstate__(self, state): +def updateSessions_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -signOutService_result.__getstate__ = lambda self: self.__dict__.copy() -signOutService_result.__setstate__ = signOutService_result__setstate__ +updateSessions_result.__getstate__ = lambda self: self.__dict__.copy() +updateSessions_result.__setstate__ = updateSessions_result__setstate__ -class listServiceClients_args: +class listSessions_args: """ Attributes: - req @@ -15059,7 +15208,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = ListServiceClientsReq() + self.req = ListSessionsReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -15075,7 +15224,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('listServiceClients_args') + oprot.writeStructBegin('listSessions_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -15104,30 +15253,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(listServiceClients_args) -listServiceClients_args.thrift_spec = ( +all_structs.append(listSessions_args) +listSessions_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [ListServiceClientsReq, ListServiceClientsReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [ListSessionsReq, ListSessionsReq.thrift_spec, False], None, 2, ), # 1 ) -listServiceClients_args.thrift_struct_annotations = { +listSessions_args.thrift_struct_annotations = { } -listServiceClients_args.thrift_field_annotations = { +listSessions_args.thrift_field_annotations = { } -def listServiceClients_args__init__(self, req=None,): +def listSessions_args__init__(self, req=None,): self.req = req -listServiceClients_args.__init__ = listServiceClients_args__init__ +listSessions_args.__init__ = listSessions_args__init__ -def listServiceClients_args__setstate__(self, state): +def listSessions_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -listServiceClients_args.__getstate__ = lambda self: self.__dict__.copy() -listServiceClients_args.__setstate__ = listServiceClients_args__setstate__ +listSessions_args.__getstate__ = lambda self: self.__dict__.copy() +listSessions_args.__setstate__ = listSessions_args__setstate__ -class listServiceClients_result: +class listSessions_result: """ Attributes: - success @@ -15155,7 +15304,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = ListServiceClientsResp() + self.success = ListSessionsResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -15171,7 +15320,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('listServiceClients_result') + oprot.writeStructBegin('listSessions_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -15200,29 +15349,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(listServiceClients_result) -listServiceClients_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [ListServiceClientsResp, ListServiceClientsResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(listSessions_result) +listSessions_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [ListSessionsResp, ListSessionsResp.thrift_spec, False], None, 2, ), # 0 ) -listServiceClients_result.thrift_struct_annotations = { +listSessions_result.thrift_struct_annotations = { } -listServiceClients_result.thrift_field_annotations = { +listSessions_result.thrift_field_annotations = { } -def listServiceClients_result__init__(self, success=None,): +def listSessions_result__init__(self, success=None,): self.success = success -listServiceClients_result.__init__ = listServiceClients_result__init__ +listSessions_result.__init__ = listSessions_result__init__ -def listServiceClients_result__setstate__(self, state): +def listSessions_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -listServiceClients_result.__getstate__ = lambda self: self.__dict__.copy() -listServiceClients_result.__setstate__ = listServiceClients_result__setstate__ +listSessions_result.__getstate__ = lambda self: self.__dict__.copy() +listSessions_result.__setstate__ = listSessions_result__setstate__ -class createFTIndex_args: +class getSession_args: """ Attributes: - req @@ -15250,7 +15399,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = CreateFTIndexReq() + self.req = GetSessionReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -15266,7 +15415,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('createFTIndex_args') + oprot.writeStructBegin('getSession_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -15295,30 +15444,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(createFTIndex_args) -createFTIndex_args.thrift_spec = ( +all_structs.append(getSession_args) +getSession_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [CreateFTIndexReq, CreateFTIndexReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [GetSessionReq, GetSessionReq.thrift_spec, False], None, 2, ), # 1 ) -createFTIndex_args.thrift_struct_annotations = { +getSession_args.thrift_struct_annotations = { } -createFTIndex_args.thrift_field_annotations = { +getSession_args.thrift_field_annotations = { } -def createFTIndex_args__init__(self, req=None,): +def getSession_args__init__(self, req=None,): self.req = req -createFTIndex_args.__init__ = createFTIndex_args__init__ +getSession_args.__init__ = getSession_args__init__ -def createFTIndex_args__setstate__(self, state): +def getSession_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -createFTIndex_args.__getstate__ = lambda self: self.__dict__.copy() -createFTIndex_args.__setstate__ = createFTIndex_args__setstate__ +getSession_args.__getstate__ = lambda self: self.__dict__.copy() +getSession_args.__setstate__ = getSession_args__setstate__ -class createFTIndex_result: +class getSession_result: """ Attributes: - success @@ -15346,7 +15495,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = ExecResp() + self.success = GetSessionResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -15362,7 +15511,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('createFTIndex_result') + oprot.writeStructBegin('getSession_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -15391,29 +15540,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(createFTIndex_result) -createFTIndex_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(getSession_result) +getSession_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [GetSessionResp, GetSessionResp.thrift_spec, False], None, 2, ), # 0 ) -createFTIndex_result.thrift_struct_annotations = { +getSession_result.thrift_struct_annotations = { } -createFTIndex_result.thrift_field_annotations = { +getSession_result.thrift_field_annotations = { } -def createFTIndex_result__init__(self, success=None,): +def getSession_result__init__(self, success=None,): self.success = success -createFTIndex_result.__init__ = createFTIndex_result__init__ +getSession_result.__init__ = getSession_result__init__ -def createFTIndex_result__setstate__(self, state): +def getSession_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -createFTIndex_result.__getstate__ = lambda self: self.__dict__.copy() -createFTIndex_result.__setstate__ = createFTIndex_result__setstate__ +getSession_result.__getstate__ = lambda self: self.__dict__.copy() +getSession_result.__setstate__ = getSession_result__setstate__ -class dropFTIndex_args: +class removeSession_args: """ Attributes: - req @@ -15441,7 +15590,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = DropFTIndexReq() + self.req = RemoveSessionReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -15457,7 +15606,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('dropFTIndex_args') + oprot.writeStructBegin('removeSession_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -15486,30 +15635,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(dropFTIndex_args) -dropFTIndex_args.thrift_spec = ( +all_structs.append(removeSession_args) +removeSession_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [DropFTIndexReq, DropFTIndexReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [RemoveSessionReq, RemoveSessionReq.thrift_spec, False], None, 2, ), # 1 ) -dropFTIndex_args.thrift_struct_annotations = { +removeSession_args.thrift_struct_annotations = { } -dropFTIndex_args.thrift_field_annotations = { +removeSession_args.thrift_field_annotations = { } -def dropFTIndex_args__init__(self, req=None,): +def removeSession_args__init__(self, req=None,): self.req = req -dropFTIndex_args.__init__ = dropFTIndex_args__init__ +removeSession_args.__init__ = removeSession_args__init__ -def dropFTIndex_args__setstate__(self, state): +def removeSession_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -dropFTIndex_args.__getstate__ = lambda self: self.__dict__.copy() -dropFTIndex_args.__setstate__ = dropFTIndex_args__setstate__ +removeSession_args.__getstate__ = lambda self: self.__dict__.copy() +removeSession_args.__setstate__ = removeSession_args__setstate__ -class dropFTIndex_result: +class removeSession_result: """ Attributes: - success @@ -15553,7 +15702,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('dropFTIndex_result') + oprot.writeStructBegin('removeSession_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -15582,29 +15731,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(dropFTIndex_result) -dropFTIndex_result.thrift_spec = ( +all_structs.append(removeSession_result) +removeSession_result.thrift_spec = ( (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 ) -dropFTIndex_result.thrift_struct_annotations = { +removeSession_result.thrift_struct_annotations = { } -dropFTIndex_result.thrift_field_annotations = { +removeSession_result.thrift_field_annotations = { } -def dropFTIndex_result__init__(self, success=None,): +def removeSession_result__init__(self, success=None,): self.success = success -dropFTIndex_result.__init__ = dropFTIndex_result__init__ +removeSession_result.__init__ = removeSession_result__init__ -def dropFTIndex_result__setstate__(self, state): +def removeSession_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -dropFTIndex_result.__getstate__ = lambda self: self.__dict__.copy() -dropFTIndex_result.__setstate__ = dropFTIndex_result__setstate__ +removeSession_result.__getstate__ = lambda self: self.__dict__.copy() +removeSession_result.__setstate__ = removeSession_result__setstate__ -class listFTIndexes_args: +class killQuery_args: """ Attributes: - req @@ -15632,7 +15781,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = ListFTIndexesReq() + self.req = KillQueryReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -15648,7 +15797,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('listFTIndexes_args') + oprot.writeStructBegin('killQuery_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -15677,30 +15826,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(listFTIndexes_args) -listFTIndexes_args.thrift_spec = ( +all_structs.append(killQuery_args) +killQuery_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [ListFTIndexesReq, ListFTIndexesReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [KillQueryReq, KillQueryReq.thrift_spec, False], None, 2, ), # 1 ) -listFTIndexes_args.thrift_struct_annotations = { +killQuery_args.thrift_struct_annotations = { } -listFTIndexes_args.thrift_field_annotations = { +killQuery_args.thrift_field_annotations = { } -def listFTIndexes_args__init__(self, req=None,): +def killQuery_args__init__(self, req=None,): self.req = req -listFTIndexes_args.__init__ = listFTIndexes_args__init__ +killQuery_args.__init__ = killQuery_args__init__ -def listFTIndexes_args__setstate__(self, state): +def killQuery_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -listFTIndexes_args.__getstate__ = lambda self: self.__dict__.copy() -listFTIndexes_args.__setstate__ = listFTIndexes_args__setstate__ +killQuery_args.__getstate__ = lambda self: self.__dict__.copy() +killQuery_args.__setstate__ = killQuery_args__setstate__ -class listFTIndexes_result: +class killQuery_result: """ Attributes: - success @@ -15728,7 +15877,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = ListFTIndexesResp() + self.success = ExecResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -15744,7 +15893,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('listFTIndexes_result') + oprot.writeStructBegin('killQuery_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -15773,29 +15922,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(listFTIndexes_result) -listFTIndexes_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [ListFTIndexesResp, ListFTIndexesResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(killQuery_result) +killQuery_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 ) -listFTIndexes_result.thrift_struct_annotations = { +killQuery_result.thrift_struct_annotations = { } -listFTIndexes_result.thrift_field_annotations = { +killQuery_result.thrift_field_annotations = { } -def listFTIndexes_result__init__(self, success=None,): +def killQuery_result__init__(self, success=None,): self.success = success -listFTIndexes_result.__init__ = listFTIndexes_result__init__ +killQuery_result.__init__ = killQuery_result__init__ -def listFTIndexes_result__setstate__(self, state): +def killQuery_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -listFTIndexes_result.__getstate__ = lambda self: self.__dict__.copy() -listFTIndexes_result.__setstate__ = listFTIndexes_result__setstate__ +killQuery_result.__getstate__ = lambda self: self.__dict__.copy() +killQuery_result.__setstate__ = killQuery_result__setstate__ -class createSession_args: +class reportTaskFinish_args: """ Attributes: - req @@ -15823,7 +15972,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = CreateSessionReq() + self.req = ReportTaskReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -15839,7 +15988,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('createSession_args') + oprot.writeStructBegin('reportTaskFinish_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -15868,30 +16017,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(createSession_args) -createSession_args.thrift_spec = ( +all_structs.append(reportTaskFinish_args) +reportTaskFinish_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [CreateSessionReq, CreateSessionReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [ReportTaskReq, ReportTaskReq.thrift_spec, False], None, 2, ), # 1 ) -createSession_args.thrift_struct_annotations = { +reportTaskFinish_args.thrift_struct_annotations = { } -createSession_args.thrift_field_annotations = { +reportTaskFinish_args.thrift_field_annotations = { } -def createSession_args__init__(self, req=None,): +def reportTaskFinish_args__init__(self, req=None,): self.req = req -createSession_args.__init__ = createSession_args__init__ +reportTaskFinish_args.__init__ = reportTaskFinish_args__init__ -def createSession_args__setstate__(self, state): +def reportTaskFinish_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -createSession_args.__getstate__ = lambda self: self.__dict__.copy() -createSession_args.__setstate__ = createSession_args__setstate__ +reportTaskFinish_args.__getstate__ = lambda self: self.__dict__.copy() +reportTaskFinish_args.__setstate__ = reportTaskFinish_args__setstate__ -class createSession_result: +class reportTaskFinish_result: """ Attributes: - success @@ -15919,7 +16068,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = CreateSessionResp() + self.success = ExecResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -15935,7 +16084,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('createSession_result') + oprot.writeStructBegin('reportTaskFinish_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -15964,29 +16113,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(createSession_result) -createSession_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [CreateSessionResp, CreateSessionResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(reportTaskFinish_result) +reportTaskFinish_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 ) -createSession_result.thrift_struct_annotations = { +reportTaskFinish_result.thrift_struct_annotations = { } -createSession_result.thrift_field_annotations = { +reportTaskFinish_result.thrift_field_annotations = { } -def createSession_result__init__(self, success=None,): +def reportTaskFinish_result__init__(self, success=None,): self.success = success -createSession_result.__init__ = createSession_result__init__ +reportTaskFinish_result.__init__ = reportTaskFinish_result__init__ -def createSession_result__setstate__(self, state): +def reportTaskFinish_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -createSession_result.__getstate__ = lambda self: self.__dict__.copy() -createSession_result.__setstate__ = createSession_result__setstate__ +reportTaskFinish_result.__getstate__ = lambda self: self.__dict__.copy() +reportTaskFinish_result.__setstate__ = reportTaskFinish_result__setstate__ -class updateSessions_args: +class createBackup_args: """ Attributes: - req @@ -16014,7 +16163,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = UpdateSessionsReq() + self.req = CreateBackupReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -16030,7 +16179,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('updateSessions_args') + oprot.writeStructBegin('createBackup_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -16059,30 +16208,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(updateSessions_args) -updateSessions_args.thrift_spec = ( +all_structs.append(createBackup_args) +createBackup_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [UpdateSessionsReq, UpdateSessionsReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [CreateBackupReq, CreateBackupReq.thrift_spec, False], None, 2, ), # 1 ) -updateSessions_args.thrift_struct_annotations = { +createBackup_args.thrift_struct_annotations = { } -updateSessions_args.thrift_field_annotations = { +createBackup_args.thrift_field_annotations = { } -def updateSessions_args__init__(self, req=None,): +def createBackup_args__init__(self, req=None,): self.req = req -updateSessions_args.__init__ = updateSessions_args__init__ +createBackup_args.__init__ = createBackup_args__init__ -def updateSessions_args__setstate__(self, state): +def createBackup_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -updateSessions_args.__getstate__ = lambda self: self.__dict__.copy() -updateSessions_args.__setstate__ = updateSessions_args__setstate__ +createBackup_args.__getstate__ = lambda self: self.__dict__.copy() +createBackup_args.__setstate__ = createBackup_args__setstate__ -class updateSessions_result: +class createBackup_result: """ Attributes: - success @@ -16110,7 +16259,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = UpdateSessionsResp() + self.success = CreateBackupResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -16126,7 +16275,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('updateSessions_result') + oprot.writeStructBegin('createBackup_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -16155,29 +16304,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(updateSessions_result) -updateSessions_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [UpdateSessionsResp, UpdateSessionsResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(createBackup_result) +createBackup_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [CreateBackupResp, CreateBackupResp.thrift_spec, False], None, 2, ), # 0 ) -updateSessions_result.thrift_struct_annotations = { +createBackup_result.thrift_struct_annotations = { } -updateSessions_result.thrift_field_annotations = { +createBackup_result.thrift_field_annotations = { } -def updateSessions_result__init__(self, success=None,): +def createBackup_result__init__(self, success=None,): self.success = success -updateSessions_result.__init__ = updateSessions_result__init__ +createBackup_result.__init__ = createBackup_result__init__ -def updateSessions_result__setstate__(self, state): +def createBackup_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -updateSessions_result.__getstate__ = lambda self: self.__dict__.copy() -updateSessions_result.__setstate__ = updateSessions_result__setstate__ +createBackup_result.__getstate__ = lambda self: self.__dict__.copy() +createBackup_result.__setstate__ = createBackup_result__setstate__ -class listSessions_args: +class restoreMeta_args: """ Attributes: - req @@ -16205,7 +16354,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = ListSessionsReq() + self.req = RestoreMetaReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -16221,7 +16370,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('listSessions_args') + oprot.writeStructBegin('restoreMeta_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -16250,30 +16399,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(listSessions_args) -listSessions_args.thrift_spec = ( +all_structs.append(restoreMeta_args) +restoreMeta_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [ListSessionsReq, ListSessionsReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [RestoreMetaReq, RestoreMetaReq.thrift_spec, False], None, 2, ), # 1 ) -listSessions_args.thrift_struct_annotations = { +restoreMeta_args.thrift_struct_annotations = { } -listSessions_args.thrift_field_annotations = { +restoreMeta_args.thrift_field_annotations = { } -def listSessions_args__init__(self, req=None,): +def restoreMeta_args__init__(self, req=None,): self.req = req -listSessions_args.__init__ = listSessions_args__init__ +restoreMeta_args.__init__ = restoreMeta_args__init__ -def listSessions_args__setstate__(self, state): +def restoreMeta_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -listSessions_args.__getstate__ = lambda self: self.__dict__.copy() -listSessions_args.__setstate__ = listSessions_args__setstate__ +restoreMeta_args.__getstate__ = lambda self: self.__dict__.copy() +restoreMeta_args.__setstate__ = restoreMeta_args__setstate__ -class listSessions_result: +class restoreMeta_result: """ Attributes: - success @@ -16301,7 +16450,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = ListSessionsResp() + self.success = ExecResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -16317,7 +16466,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('listSessions_result') + oprot.writeStructBegin('restoreMeta_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -16346,29 +16495,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(listSessions_result) -listSessions_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [ListSessionsResp, ListSessionsResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(restoreMeta_result) +restoreMeta_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 ) -listSessions_result.thrift_struct_annotations = { +restoreMeta_result.thrift_struct_annotations = { } -listSessions_result.thrift_field_annotations = { +restoreMeta_result.thrift_field_annotations = { } -def listSessions_result__init__(self, success=None,): +def restoreMeta_result__init__(self, success=None,): self.success = success -listSessions_result.__init__ = listSessions_result__init__ +restoreMeta_result.__init__ = restoreMeta_result__init__ -def listSessions_result__setstate__(self, state): +def restoreMeta_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -listSessions_result.__getstate__ = lambda self: self.__dict__.copy() -listSessions_result.__setstate__ = listSessions_result__setstate__ +restoreMeta_result.__getstate__ = lambda self: self.__dict__.copy() +restoreMeta_result.__setstate__ = restoreMeta_result__setstate__ -class getSession_args: +class listCluster_args: """ Attributes: - req @@ -16396,7 +16545,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = GetSessionReq() + self.req = ListClusterInfoReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -16412,7 +16561,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('getSession_args') + oprot.writeStructBegin('listCluster_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -16441,30 +16590,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(getSession_args) -getSession_args.thrift_spec = ( +all_structs.append(listCluster_args) +listCluster_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [GetSessionReq, GetSessionReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [ListClusterInfoReq, ListClusterInfoReq.thrift_spec, False], None, 2, ), # 1 ) -getSession_args.thrift_struct_annotations = { +listCluster_args.thrift_struct_annotations = { } -getSession_args.thrift_field_annotations = { +listCluster_args.thrift_field_annotations = { } -def getSession_args__init__(self, req=None,): +def listCluster_args__init__(self, req=None,): self.req = req -getSession_args.__init__ = getSession_args__init__ +listCluster_args.__init__ = listCluster_args__init__ -def getSession_args__setstate__(self, state): +def listCluster_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -getSession_args.__getstate__ = lambda self: self.__dict__.copy() -getSession_args.__setstate__ = getSession_args__setstate__ +listCluster_args.__getstate__ = lambda self: self.__dict__.copy() +listCluster_args.__setstate__ = listCluster_args__setstate__ -class getSession_result: +class listCluster_result: """ Attributes: - success @@ -16492,7 +16641,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = GetSessionResp() + self.success = ListClusterInfoResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -16508,7 +16657,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('getSession_result') + oprot.writeStructBegin('listCluster_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -16537,29 +16686,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(getSession_result) -getSession_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [GetSessionResp, GetSessionResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(listCluster_result) +listCluster_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [ListClusterInfoResp, ListClusterInfoResp.thrift_spec, False], None, 2, ), # 0 ) -getSession_result.thrift_struct_annotations = { +listCluster_result.thrift_struct_annotations = { } -getSession_result.thrift_field_annotations = { +listCluster_result.thrift_field_annotations = { } -def getSession_result__init__(self, success=None,): +def listCluster_result__init__(self, success=None,): self.success = success -getSession_result.__init__ = getSession_result__init__ +listCluster_result.__init__ = listCluster_result__init__ -def getSession_result__setstate__(self, state): +def listCluster_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -getSession_result.__getstate__ = lambda self: self.__dict__.copy() -getSession_result.__setstate__ = getSession_result__setstate__ +listCluster_result.__getstate__ = lambda self: self.__dict__.copy() +listCluster_result.__setstate__ = listCluster_result__setstate__ -class removeSession_args: +class getMetaDirInfo_args: """ Attributes: - req @@ -16587,7 +16736,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = RemoveSessionReq() + self.req = GetMetaDirInfoReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -16603,7 +16752,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('removeSession_args') + oprot.writeStructBegin('getMetaDirInfo_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -16632,30 +16781,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(removeSession_args) -removeSession_args.thrift_spec = ( +all_structs.append(getMetaDirInfo_args) +getMetaDirInfo_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [RemoveSessionReq, RemoveSessionReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [GetMetaDirInfoReq, GetMetaDirInfoReq.thrift_spec, False], None, 2, ), # 1 ) -removeSession_args.thrift_struct_annotations = { +getMetaDirInfo_args.thrift_struct_annotations = { } -removeSession_args.thrift_field_annotations = { +getMetaDirInfo_args.thrift_field_annotations = { } -def removeSession_args__init__(self, req=None,): +def getMetaDirInfo_args__init__(self, req=None,): self.req = req -removeSession_args.__init__ = removeSession_args__init__ +getMetaDirInfo_args.__init__ = getMetaDirInfo_args__init__ -def removeSession_args__setstate__(self, state): +def getMetaDirInfo_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -removeSession_args.__getstate__ = lambda self: self.__dict__.copy() -removeSession_args.__setstate__ = removeSession_args__setstate__ +getMetaDirInfo_args.__getstate__ = lambda self: self.__dict__.copy() +getMetaDirInfo_args.__setstate__ = getMetaDirInfo_args__setstate__ -class removeSession_result: +class getMetaDirInfo_result: """ Attributes: - success @@ -16683,7 +16832,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = ExecResp() + self.success = GetMetaDirInfoResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -16699,7 +16848,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('removeSession_result') + oprot.writeStructBegin('getMetaDirInfo_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -16728,29 +16877,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(removeSession_result) -removeSession_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(getMetaDirInfo_result) +getMetaDirInfo_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [GetMetaDirInfoResp, GetMetaDirInfoResp.thrift_spec, False], None, 2, ), # 0 ) -removeSession_result.thrift_struct_annotations = { +getMetaDirInfo_result.thrift_struct_annotations = { } -removeSession_result.thrift_field_annotations = { +getMetaDirInfo_result.thrift_field_annotations = { } -def removeSession_result__init__(self, success=None,): +def getMetaDirInfo_result__init__(self, success=None,): self.success = success -removeSession_result.__init__ = removeSession_result__init__ +getMetaDirInfo_result.__init__ = getMetaDirInfo_result__init__ -def removeSession_result__setstate__(self, state): +def getMetaDirInfo_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -removeSession_result.__getstate__ = lambda self: self.__dict__.copy() -removeSession_result.__setstate__ = removeSession_result__setstate__ +getMetaDirInfo_result.__getstate__ = lambda self: self.__dict__.copy() +getMetaDirInfo_result.__setstate__ = getMetaDirInfo_result__setstate__ -class killQuery_args: +class verifyClientVersion_args: """ Attributes: - req @@ -16778,7 +16927,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = KillQueryReq() + self.req = VerifyClientVersionReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -16794,7 +16943,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('killQuery_args') + oprot.writeStructBegin('verifyClientVersion_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -16823,30 +16972,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(killQuery_args) -killQuery_args.thrift_spec = ( +all_structs.append(verifyClientVersion_args) +verifyClientVersion_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [KillQueryReq, KillQueryReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [VerifyClientVersionReq, VerifyClientVersionReq.thrift_spec, False], None, 2, ), # 1 ) -killQuery_args.thrift_struct_annotations = { +verifyClientVersion_args.thrift_struct_annotations = { } -killQuery_args.thrift_field_annotations = { +verifyClientVersion_args.thrift_field_annotations = { } -def killQuery_args__init__(self, req=None,): +def verifyClientVersion_args__init__(self, req=None,): self.req = req -killQuery_args.__init__ = killQuery_args__init__ +verifyClientVersion_args.__init__ = verifyClientVersion_args__init__ -def killQuery_args__setstate__(self, state): +def verifyClientVersion_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -killQuery_args.__getstate__ = lambda self: self.__dict__.copy() -killQuery_args.__setstate__ = killQuery_args__setstate__ +verifyClientVersion_args.__getstate__ = lambda self: self.__dict__.copy() +verifyClientVersion_args.__setstate__ = verifyClientVersion_args__setstate__ -class killQuery_result: +class verifyClientVersion_result: """ Attributes: - success @@ -16874,7 +17023,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = ExecResp() + self.success = VerifyClientVersionResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -16890,7 +17039,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('killQuery_result') + oprot.writeStructBegin('verifyClientVersion_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -16919,29 +17068,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(killQuery_result) -killQuery_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(verifyClientVersion_result) +verifyClientVersion_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [VerifyClientVersionResp, VerifyClientVersionResp.thrift_spec, False], None, 2, ), # 0 ) -killQuery_result.thrift_struct_annotations = { +verifyClientVersion_result.thrift_struct_annotations = { } -killQuery_result.thrift_field_annotations = { +verifyClientVersion_result.thrift_field_annotations = { } -def killQuery_result__init__(self, success=None,): +def verifyClientVersion_result__init__(self, success=None,): self.success = success -killQuery_result.__init__ = killQuery_result__init__ +verifyClientVersion_result.__init__ = verifyClientVersion_result__init__ -def killQuery_result__setstate__(self, state): +def verifyClientVersion_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -killQuery_result.__getstate__ = lambda self: self.__dict__.copy() -killQuery_result.__setstate__ = killQuery_result__setstate__ +verifyClientVersion_result.__getstate__ = lambda self: self.__dict__.copy() +verifyClientVersion_result.__setstate__ = verifyClientVersion_result__setstate__ -class reportTaskFinish_args: +class saveGraphVersion_args: """ Attributes: - req @@ -16969,7 +17118,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = ReportTaskReq() + self.req = SaveGraphVersionReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -16985,7 +17134,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('reportTaskFinish_args') + oprot.writeStructBegin('saveGraphVersion_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -17014,30 +17163,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(reportTaskFinish_args) -reportTaskFinish_args.thrift_spec = ( +all_structs.append(saveGraphVersion_args) +saveGraphVersion_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [ReportTaskReq, ReportTaskReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [SaveGraphVersionReq, SaveGraphVersionReq.thrift_spec, False], None, 2, ), # 1 ) -reportTaskFinish_args.thrift_struct_annotations = { +saveGraphVersion_args.thrift_struct_annotations = { } -reportTaskFinish_args.thrift_field_annotations = { +saveGraphVersion_args.thrift_field_annotations = { } -def reportTaskFinish_args__init__(self, req=None,): +def saveGraphVersion_args__init__(self, req=None,): self.req = req -reportTaskFinish_args.__init__ = reportTaskFinish_args__init__ +saveGraphVersion_args.__init__ = saveGraphVersion_args__init__ -def reportTaskFinish_args__setstate__(self, state): +def saveGraphVersion_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -reportTaskFinish_args.__getstate__ = lambda self: self.__dict__.copy() -reportTaskFinish_args.__setstate__ = reportTaskFinish_args__setstate__ +saveGraphVersion_args.__getstate__ = lambda self: self.__dict__.copy() +saveGraphVersion_args.__setstate__ = saveGraphVersion_args__setstate__ -class reportTaskFinish_result: +class saveGraphVersion_result: """ Attributes: - success @@ -17065,7 +17214,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = ExecResp() + self.success = SaveGraphVersionResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -17081,7 +17230,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('reportTaskFinish_result') + oprot.writeStructBegin('saveGraphVersion_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -17110,29 +17259,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(reportTaskFinish_result) -reportTaskFinish_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(saveGraphVersion_result) +saveGraphVersion_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [SaveGraphVersionResp, SaveGraphVersionResp.thrift_spec, False], None, 2, ), # 0 ) -reportTaskFinish_result.thrift_struct_annotations = { +saveGraphVersion_result.thrift_struct_annotations = { } -reportTaskFinish_result.thrift_field_annotations = { +saveGraphVersion_result.thrift_field_annotations = { } -def reportTaskFinish_result__init__(self, success=None,): +def saveGraphVersion_result__init__(self, success=None,): self.success = success -reportTaskFinish_result.__init__ = reportTaskFinish_result__init__ +saveGraphVersion_result.__init__ = saveGraphVersion_result__init__ -def reportTaskFinish_result__setstate__(self, state): +def saveGraphVersion_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -reportTaskFinish_result.__getstate__ = lambda self: self.__dict__.copy() -reportTaskFinish_result.__setstate__ = reportTaskFinish_result__setstate__ +saveGraphVersion_result.__getstate__ = lambda self: self.__dict__.copy() +saveGraphVersion_result.__setstate__ = saveGraphVersion_result__setstate__ -class createBackup_args: +class getSegmentId_args: """ Attributes: - req @@ -17160,7 +17309,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = CreateBackupReq() + self.req = GetSegmentIdReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -17176,7 +17325,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('createBackup_args') + oprot.writeStructBegin('getSegmentId_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -17205,794 +17354,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(createBackup_args) -createBackup_args.thrift_spec = ( +all_structs.append(getSegmentId_args) +getSegmentId_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [CreateBackupReq, CreateBackupReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [GetSegmentIdReq, GetSegmentIdReq.thrift_spec, False], None, 2, ), # 1 ) -createBackup_args.thrift_struct_annotations = { +getSegmentId_args.thrift_struct_annotations = { } -createBackup_args.thrift_field_annotations = { +getSegmentId_args.thrift_field_annotations = { } -def createBackup_args__init__(self, req=None,): +def getSegmentId_args__init__(self, req=None,): self.req = req -createBackup_args.__init__ = createBackup_args__init__ +getSegmentId_args.__init__ = getSegmentId_args__init__ -def createBackup_args__setstate__(self, state): +def getSegmentId_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -createBackup_args.__getstate__ = lambda self: self.__dict__.copy() -createBackup_args.__setstate__ = createBackup_args__setstate__ +getSegmentId_args.__getstate__ = lambda self: self.__dict__.copy() +getSegmentId_args.__setstate__ = getSegmentId_args__setstate__ -class createBackup_result: - """ - Attributes: - - success - """ - - thrift_spec = None - thrift_field_annotations = None - thrift_struct_annotations = None - __init__ = None - @staticmethod - def isUnion(): - return False - - def read(self, iprot): - if (isinstance(iprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: - fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0) - return - if (isinstance(iprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: - fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - if fid == 0: - if ftype == TType.STRUCT: - self.success = CreateBackupResp() - self.success.read(iprot) - else: - iprot.skip(ftype) - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if (isinstance(oprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: - oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0)) - return - if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: - oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) - return - oprot.writeStructBegin('createBackup_result') - if self.success != None: - oprot.writeFieldBegin('success', TType.STRUCT, 0) - self.success.write(oprot) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def __repr__(self): - L = [] - padding = ' ' * 4 - if self.success is not None: - value = pprint.pformat(self.success, indent=0) - value = padding.join(value.splitlines(True)) - L.append(' success=%s' % (value)) - return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') - - def __eq__(self, other): - if not isinstance(other, self.__class__): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not (self == other) - - # Override the __hash__ function for Python3 - t10434117 - __hash__ = object.__hash__ - -all_structs.append(createBackup_result) -createBackup_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [CreateBackupResp, CreateBackupResp.thrift_spec, False], None, 2, ), # 0 -) - -createBackup_result.thrift_struct_annotations = { -} -createBackup_result.thrift_field_annotations = { -} - -def createBackup_result__init__(self, success=None,): - self.success = success - -createBackup_result.__init__ = createBackup_result__init__ - -def createBackup_result__setstate__(self, state): - state.setdefault('success', None) - self.__dict__ = state - -createBackup_result.__getstate__ = lambda self: self.__dict__.copy() -createBackup_result.__setstate__ = createBackup_result__setstate__ - -class restoreMeta_args: - """ - Attributes: - - req - """ - - thrift_spec = None - thrift_field_annotations = None - thrift_struct_annotations = None - __init__ = None - @staticmethod - def isUnion(): - return False - - def read(self, iprot): - if (isinstance(iprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: - fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0) - return - if (isinstance(iprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: - fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - if fid == 1: - if ftype == TType.STRUCT: - self.req = RestoreMetaReq() - self.req.read(iprot) - else: - iprot.skip(ftype) - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if (isinstance(oprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: - oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0)) - return - if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: - oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) - return - oprot.writeStructBegin('restoreMeta_args') - if self.req != None: - oprot.writeFieldBegin('req', TType.STRUCT, 1) - self.req.write(oprot) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def __repr__(self): - L = [] - padding = ' ' * 4 - if self.req is not None: - value = pprint.pformat(self.req, indent=0) - value = padding.join(value.splitlines(True)) - L.append(' req=%s' % (value)) - return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') - - def __eq__(self, other): - if not isinstance(other, self.__class__): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not (self == other) - - # Override the __hash__ function for Python3 - t10434117 - __hash__ = object.__hash__ - -all_structs.append(restoreMeta_args) -restoreMeta_args.thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'req', [RestoreMetaReq, RestoreMetaReq.thrift_spec, False], None, 2, ), # 1 -) - -restoreMeta_args.thrift_struct_annotations = { -} -restoreMeta_args.thrift_field_annotations = { -} - -def restoreMeta_args__init__(self, req=None,): - self.req = req - -restoreMeta_args.__init__ = restoreMeta_args__init__ - -def restoreMeta_args__setstate__(self, state): - state.setdefault('req', None) - self.__dict__ = state - -restoreMeta_args.__getstate__ = lambda self: self.__dict__.copy() -restoreMeta_args.__setstate__ = restoreMeta_args__setstate__ - -class restoreMeta_result: - """ - Attributes: - - success - """ - - thrift_spec = None - thrift_field_annotations = None - thrift_struct_annotations = None - __init__ = None - @staticmethod - def isUnion(): - return False - - def read(self, iprot): - if (isinstance(iprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: - fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0) - return - if (isinstance(iprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: - fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - if fid == 0: - if ftype == TType.STRUCT: - self.success = ExecResp() - self.success.read(iprot) - else: - iprot.skip(ftype) - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if (isinstance(oprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: - oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0)) - return - if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: - oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) - return - oprot.writeStructBegin('restoreMeta_result') - if self.success != None: - oprot.writeFieldBegin('success', TType.STRUCT, 0) - self.success.write(oprot) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def __repr__(self): - L = [] - padding = ' ' * 4 - if self.success is not None: - value = pprint.pformat(self.success, indent=0) - value = padding.join(value.splitlines(True)) - L.append(' success=%s' % (value)) - return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') - - def __eq__(self, other): - if not isinstance(other, self.__class__): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not (self == other) - - # Override the __hash__ function for Python3 - t10434117 - __hash__ = object.__hash__ - -all_structs.append(restoreMeta_result) -restoreMeta_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [ExecResp, ExecResp.thrift_spec, False], None, 2, ), # 0 -) - -restoreMeta_result.thrift_struct_annotations = { -} -restoreMeta_result.thrift_field_annotations = { -} - -def restoreMeta_result__init__(self, success=None,): - self.success = success - -restoreMeta_result.__init__ = restoreMeta_result__init__ - -def restoreMeta_result__setstate__(self, state): - state.setdefault('success', None) - self.__dict__ = state - -restoreMeta_result.__getstate__ = lambda self: self.__dict__.copy() -restoreMeta_result.__setstate__ = restoreMeta_result__setstate__ - -class listCluster_args: - """ - Attributes: - - req - """ - - thrift_spec = None - thrift_field_annotations = None - thrift_struct_annotations = None - __init__ = None - @staticmethod - def isUnion(): - return False - - def read(self, iprot): - if (isinstance(iprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: - fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0) - return - if (isinstance(iprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: - fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - if fid == 1: - if ftype == TType.STRUCT: - self.req = ListClusterInfoReq() - self.req.read(iprot) - else: - iprot.skip(ftype) - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if (isinstance(oprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: - oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0)) - return - if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: - oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) - return - oprot.writeStructBegin('listCluster_args') - if self.req != None: - oprot.writeFieldBegin('req', TType.STRUCT, 1) - self.req.write(oprot) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def __repr__(self): - L = [] - padding = ' ' * 4 - if self.req is not None: - value = pprint.pformat(self.req, indent=0) - value = padding.join(value.splitlines(True)) - L.append(' req=%s' % (value)) - return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') - - def __eq__(self, other): - if not isinstance(other, self.__class__): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not (self == other) - - # Override the __hash__ function for Python3 - t10434117 - __hash__ = object.__hash__ - -all_structs.append(listCluster_args) -listCluster_args.thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'req', [ListClusterInfoReq, ListClusterInfoReq.thrift_spec, False], None, 2, ), # 1 -) - -listCluster_args.thrift_struct_annotations = { -} -listCluster_args.thrift_field_annotations = { -} - -def listCluster_args__init__(self, req=None,): - self.req = req - -listCluster_args.__init__ = listCluster_args__init__ - -def listCluster_args__setstate__(self, state): - state.setdefault('req', None) - self.__dict__ = state - -listCluster_args.__getstate__ = lambda self: self.__dict__.copy() -listCluster_args.__setstate__ = listCluster_args__setstate__ - -class listCluster_result: - """ - Attributes: - - success - """ - - thrift_spec = None - thrift_field_annotations = None - thrift_struct_annotations = None - __init__ = None - @staticmethod - def isUnion(): - return False - - def read(self, iprot): - if (isinstance(iprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: - fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0) - return - if (isinstance(iprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: - fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - if fid == 0: - if ftype == TType.STRUCT: - self.success = ListClusterInfoResp() - self.success.read(iprot) - else: - iprot.skip(ftype) - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if (isinstance(oprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: - oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0)) - return - if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: - oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) - return - oprot.writeStructBegin('listCluster_result') - if self.success != None: - oprot.writeFieldBegin('success', TType.STRUCT, 0) - self.success.write(oprot) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def __repr__(self): - L = [] - padding = ' ' * 4 - if self.success is not None: - value = pprint.pformat(self.success, indent=0) - value = padding.join(value.splitlines(True)) - L.append(' success=%s' % (value)) - return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') - - def __eq__(self, other): - if not isinstance(other, self.__class__): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not (self == other) - - # Override the __hash__ function for Python3 - t10434117 - __hash__ = object.__hash__ - -all_structs.append(listCluster_result) -listCluster_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [ListClusterInfoResp, ListClusterInfoResp.thrift_spec, False], None, 2, ), # 0 -) - -listCluster_result.thrift_struct_annotations = { -} -listCluster_result.thrift_field_annotations = { -} - -def listCluster_result__init__(self, success=None,): - self.success = success - -listCluster_result.__init__ = listCluster_result__init__ - -def listCluster_result__setstate__(self, state): - state.setdefault('success', None) - self.__dict__ = state - -listCluster_result.__getstate__ = lambda self: self.__dict__.copy() -listCluster_result.__setstate__ = listCluster_result__setstate__ - -class getMetaDirInfo_args: - """ - Attributes: - - req - """ - - thrift_spec = None - thrift_field_annotations = None - thrift_struct_annotations = None - __init__ = None - @staticmethod - def isUnion(): - return False - - def read(self, iprot): - if (isinstance(iprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: - fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0) - return - if (isinstance(iprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: - fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - if fid == 1: - if ftype == TType.STRUCT: - self.req = GetMetaDirInfoReq() - self.req.read(iprot) - else: - iprot.skip(ftype) - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if (isinstance(oprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: - oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0)) - return - if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: - oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) - return - oprot.writeStructBegin('getMetaDirInfo_args') - if self.req != None: - oprot.writeFieldBegin('req', TType.STRUCT, 1) - self.req.write(oprot) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def __repr__(self): - L = [] - padding = ' ' * 4 - if self.req is not None: - value = pprint.pformat(self.req, indent=0) - value = padding.join(value.splitlines(True)) - L.append(' req=%s' % (value)) - return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') - - def __eq__(self, other): - if not isinstance(other, self.__class__): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not (self == other) - - # Override the __hash__ function for Python3 - t10434117 - __hash__ = object.__hash__ - -all_structs.append(getMetaDirInfo_args) -getMetaDirInfo_args.thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'req', [GetMetaDirInfoReq, GetMetaDirInfoReq.thrift_spec, False], None, 2, ), # 1 -) - -getMetaDirInfo_args.thrift_struct_annotations = { -} -getMetaDirInfo_args.thrift_field_annotations = { -} - -def getMetaDirInfo_args__init__(self, req=None,): - self.req = req - -getMetaDirInfo_args.__init__ = getMetaDirInfo_args__init__ - -def getMetaDirInfo_args__setstate__(self, state): - state.setdefault('req', None) - self.__dict__ = state - -getMetaDirInfo_args.__getstate__ = lambda self: self.__dict__.copy() -getMetaDirInfo_args.__setstate__ = getMetaDirInfo_args__setstate__ - -class getMetaDirInfo_result: - """ - Attributes: - - success - """ - - thrift_spec = None - thrift_field_annotations = None - thrift_struct_annotations = None - __init__ = None - @staticmethod - def isUnion(): - return False - - def read(self, iprot): - if (isinstance(iprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: - fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0) - return - if (isinstance(iprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: - fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - if fid == 0: - if ftype == TType.STRUCT: - self.success = GetMetaDirInfoResp() - self.success.read(iprot) - else: - iprot.skip(ftype) - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if (isinstance(oprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: - oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0)) - return - if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: - oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) - return - oprot.writeStructBegin('getMetaDirInfo_result') - if self.success != None: - oprot.writeFieldBegin('success', TType.STRUCT, 0) - self.success.write(oprot) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def __repr__(self): - L = [] - padding = ' ' * 4 - if self.success is not None: - value = pprint.pformat(self.success, indent=0) - value = padding.join(value.splitlines(True)) - L.append(' success=%s' % (value)) - return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') - - def __eq__(self, other): - if not isinstance(other, self.__class__): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not (self == other) - - # Override the __hash__ function for Python3 - t10434117 - __hash__ = object.__hash__ - -all_structs.append(getMetaDirInfo_result) -getMetaDirInfo_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [GetMetaDirInfoResp, GetMetaDirInfoResp.thrift_spec, False], None, 2, ), # 0 -) - -getMetaDirInfo_result.thrift_struct_annotations = { -} -getMetaDirInfo_result.thrift_field_annotations = { -} - -def getMetaDirInfo_result__init__(self, success=None,): - self.success = success - -getMetaDirInfo_result.__init__ = getMetaDirInfo_result__init__ - -def getMetaDirInfo_result__setstate__(self, state): - state.setdefault('success', None) - self.__dict__ = state - -getMetaDirInfo_result.__getstate__ = lambda self: self.__dict__.copy() -getMetaDirInfo_result.__setstate__ = getMetaDirInfo_result__setstate__ - -class verifyClientVersion_args: - """ - Attributes: - - req - """ - - thrift_spec = None - thrift_field_annotations = None - thrift_struct_annotations = None - __init__ = None - @staticmethod - def isUnion(): - return False - - def read(self, iprot): - if (isinstance(iprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: - fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0) - return - if (isinstance(iprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: - fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - if fid == 1: - if ftype == TType.STRUCT: - self.req = VerifyClientVersionReq() - self.req.read(iprot) - else: - iprot.skip(ftype) - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if (isinstance(oprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: - oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0)) - return - if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: - oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) - return - oprot.writeStructBegin('verifyClientVersion_args') - if self.req != None: - oprot.writeFieldBegin('req', TType.STRUCT, 1) - self.req.write(oprot) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def __repr__(self): - L = [] - padding = ' ' * 4 - if self.req is not None: - value = pprint.pformat(self.req, indent=0) - value = padding.join(value.splitlines(True)) - L.append(' req=%s' % (value)) - return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') - - def __eq__(self, other): - if not isinstance(other, self.__class__): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not (self == other) - - # Override the __hash__ function for Python3 - t10434117 - __hash__ = object.__hash__ - -all_structs.append(verifyClientVersion_args) -verifyClientVersion_args.thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'req', [VerifyClientVersionReq, VerifyClientVersionReq.thrift_spec, False], None, 2, ), # 1 -) - -verifyClientVersion_args.thrift_struct_annotations = { -} -verifyClientVersion_args.thrift_field_annotations = { -} - -def verifyClientVersion_args__init__(self, req=None,): - self.req = req - -verifyClientVersion_args.__init__ = verifyClientVersion_args__init__ - -def verifyClientVersion_args__setstate__(self, state): - state.setdefault('req', None) - self.__dict__ = state - -verifyClientVersion_args.__getstate__ = lambda self: self.__dict__.copy() -verifyClientVersion_args.__setstate__ = verifyClientVersion_args__setstate__ - -class verifyClientVersion_result: +class getSegmentId_result: """ Attributes: - success @@ -18020,7 +17405,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = VerifyClientVersionResp() + self.success = GetSegmentIdResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -18036,7 +17421,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('verifyClientVersion_result') + oprot.writeStructBegin('getSegmentId_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -18065,27 +17450,27 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(verifyClientVersion_result) -verifyClientVersion_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [VerifyClientVersionResp, VerifyClientVersionResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(getSegmentId_result) +getSegmentId_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [GetSegmentIdResp, GetSegmentIdResp.thrift_spec, False], None, 2, ), # 0 ) -verifyClientVersion_result.thrift_struct_annotations = { +getSegmentId_result.thrift_struct_annotations = { } -verifyClientVersion_result.thrift_field_annotations = { +getSegmentId_result.thrift_field_annotations = { } -def verifyClientVersion_result__init__(self, success=None,): +def getSegmentId_result__init__(self, success=None,): self.success = success -verifyClientVersion_result.__init__ = verifyClientVersion_result__init__ +getSegmentId_result.__init__ = getSegmentId_result__init__ -def verifyClientVersion_result__setstate__(self, state): +def getSegmentId_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -verifyClientVersion_result.__getstate__ = lambda self: self.__dict__.copy() -verifyClientVersion_result.__setstate__ = verifyClientVersion_result__setstate__ +getSegmentId_result.__getstate__ = lambda self: self.__dict__.copy() +getSegmentId_result.__setstate__ = getSegmentId_result__setstate__ class Client(Iface): def __enter__(self): @@ -18162,6 +17547,36 @@ def recv_dropSpace(self, ): return result.success raise TApplicationException(TApplicationException.MISSING_RESULT, "dropSpace failed: unknown result"); + def clearSpace(self, req=None): + """ + Parameters: + - req + """ + self.send_clearSpace(req) + return self.recv_clearSpace() + + def send_clearSpace(self, req=None): + self._oprot.writeMessageBegin('clearSpace', TMessageType.CALL, self._seqid) + args = clearSpace_args() + args.req = req + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_clearSpace(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(self._iprot) + self._iprot.readMessageEnd() + raise x + result = clearSpace_result() + result.read(self._iprot) + self._iprot.readMessageEnd() + if result.success != None: + return result.success + raise TApplicationException(TApplicationException.MISSING_RESULT, "clearSpace failed: unknown result"); + def getSpace(self, req=None): """ Parameters: @@ -18527,450 +17942,270 @@ def getEdge(self, req=None): Parameters: - req """ - self.send_getEdge(req) - return self.recv_getEdge() - - def send_getEdge(self, req=None): - self._oprot.writeMessageBegin('getEdge', TMessageType.CALL, self._seqid) - args = getEdge_args() - args.req = req - args.write(self._oprot) - self._oprot.writeMessageEnd() - self._oprot.trans.flush() - - def recv_getEdge(self, ): - (fname, mtype, rseqid) = self._iprot.readMessageBegin() - if mtype == TMessageType.EXCEPTION: - x = TApplicationException() - x.read(self._iprot) - self._iprot.readMessageEnd() - raise x - result = getEdge_result() - result.read(self._iprot) - self._iprot.readMessageEnd() - if result.success != None: - return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "getEdge failed: unknown result"); - - def listEdges(self, req=None): - """ - Parameters: - - req - """ - self.send_listEdges(req) - return self.recv_listEdges() - - def send_listEdges(self, req=None): - self._oprot.writeMessageBegin('listEdges', TMessageType.CALL, self._seqid) - args = listEdges_args() - args.req = req - args.write(self._oprot) - self._oprot.writeMessageEnd() - self._oprot.trans.flush() - - def recv_listEdges(self, ): - (fname, mtype, rseqid) = self._iprot.readMessageBegin() - if mtype == TMessageType.EXCEPTION: - x = TApplicationException() - x.read(self._iprot) - self._iprot.readMessageEnd() - raise x - result = listEdges_result() - result.read(self._iprot) - self._iprot.readMessageEnd() - if result.success != None: - return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "listEdges failed: unknown result"); - - def addHosts(self, req=None): - """ - Parameters: - - req - """ - self.send_addHosts(req) - return self.recv_addHosts() - - def send_addHosts(self, req=None): - self._oprot.writeMessageBegin('addHosts', TMessageType.CALL, self._seqid) - args = addHosts_args() - args.req = req - args.write(self._oprot) - self._oprot.writeMessageEnd() - self._oprot.trans.flush() - - def recv_addHosts(self, ): - (fname, mtype, rseqid) = self._iprot.readMessageBegin() - if mtype == TMessageType.EXCEPTION: - x = TApplicationException() - x.read(self._iprot) - self._iprot.readMessageEnd() - raise x - result = addHosts_result() - result.read(self._iprot) - self._iprot.readMessageEnd() - if result.success != None: - return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "addHosts failed: unknown result"); - - def addHostsIntoZone(self, req=None): - """ - Parameters: - - req - """ - self.send_addHostsIntoZone(req) - return self.recv_addHostsIntoZone() - - def send_addHostsIntoZone(self, req=None): - self._oprot.writeMessageBegin('addHostsIntoZone', TMessageType.CALL, self._seqid) - args = addHostsIntoZone_args() - args.req = req - args.write(self._oprot) - self._oprot.writeMessageEnd() - self._oprot.trans.flush() - - def recv_addHostsIntoZone(self, ): - (fname, mtype, rseqid) = self._iprot.readMessageBegin() - if mtype == TMessageType.EXCEPTION: - x = TApplicationException() - x.read(self._iprot) - self._iprot.readMessageEnd() - raise x - result = addHostsIntoZone_result() - result.read(self._iprot) - self._iprot.readMessageEnd() - if result.success != None: - return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "addHostsIntoZone failed: unknown result"); - - def dropHosts(self, req=None): - """ - Parameters: - - req - """ - self.send_dropHosts(req) - return self.recv_dropHosts() - - def send_dropHosts(self, req=None): - self._oprot.writeMessageBegin('dropHosts', TMessageType.CALL, self._seqid) - args = dropHosts_args() - args.req = req - args.write(self._oprot) - self._oprot.writeMessageEnd() - self._oprot.trans.flush() - - def recv_dropHosts(self, ): - (fname, mtype, rseqid) = self._iprot.readMessageBegin() - if mtype == TMessageType.EXCEPTION: - x = TApplicationException() - x.read(self._iprot) - self._iprot.readMessageEnd() - raise x - result = dropHosts_result() - result.read(self._iprot) - self._iprot.readMessageEnd() - if result.success != None: - return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "dropHosts failed: unknown result"); - - def listHosts(self, req=None): - """ - Parameters: - - req - """ - self.send_listHosts(req) - return self.recv_listHosts() - - def send_listHosts(self, req=None): - self._oprot.writeMessageBegin('listHosts', TMessageType.CALL, self._seqid) - args = listHosts_args() - args.req = req - args.write(self._oprot) - self._oprot.writeMessageEnd() - self._oprot.trans.flush() - - def recv_listHosts(self, ): - (fname, mtype, rseqid) = self._iprot.readMessageBegin() - if mtype == TMessageType.EXCEPTION: - x = TApplicationException() - x.read(self._iprot) - self._iprot.readMessageEnd() - raise x - result = listHosts_result() - result.read(self._iprot) - self._iprot.readMessageEnd() - if result.success != None: - return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "listHosts failed: unknown result"); - - def getPartsAlloc(self, req=None): - """ - Parameters: - - req - """ - self.send_getPartsAlloc(req) - return self.recv_getPartsAlloc() + self.send_getEdge(req) + return self.recv_getEdge() - def send_getPartsAlloc(self, req=None): - self._oprot.writeMessageBegin('getPartsAlloc', TMessageType.CALL, self._seqid) - args = getPartsAlloc_args() + def send_getEdge(self, req=None): + self._oprot.writeMessageBegin('getEdge', TMessageType.CALL, self._seqid) + args = getEdge_args() args.req = req args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_getPartsAlloc(self, ): + def recv_getEdge(self, ): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = getPartsAlloc_result() + result = getEdge_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success != None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "getPartsAlloc failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "getEdge failed: unknown result"); - def listParts(self, req=None): + def listEdges(self, req=None): """ Parameters: - req """ - self.send_listParts(req) - return self.recv_listParts() + self.send_listEdges(req) + return self.recv_listEdges() - def send_listParts(self, req=None): - self._oprot.writeMessageBegin('listParts', TMessageType.CALL, self._seqid) - args = listParts_args() + def send_listEdges(self, req=None): + self._oprot.writeMessageBegin('listEdges', TMessageType.CALL, self._seqid) + args = listEdges_args() args.req = req args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_listParts(self, ): + def recv_listEdges(self, ): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = listParts_result() + result = listEdges_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success != None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "listParts failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "listEdges failed: unknown result"); - def getWorkerId(self, req=None): + def addHosts(self, req=None): """ Parameters: - req """ - self.send_getWorkerId(req) - return self.recv_getWorkerId() + self.send_addHosts(req) + return self.recv_addHosts() - def send_getWorkerId(self, req=None): - self._oprot.writeMessageBegin('getWorkerId', TMessageType.CALL, self._seqid) - args = getWorkerId_args() + def send_addHosts(self, req=None): + self._oprot.writeMessageBegin('addHosts', TMessageType.CALL, self._seqid) + args = addHosts_args() args.req = req args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_getWorkerId(self, ): + def recv_addHosts(self, ): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = getWorkerId_result() + result = addHosts_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success != None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "getWorkerId failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "addHosts failed: unknown result"); - def multiPut(self, req=None): + def addHostsIntoZone(self, req=None): """ Parameters: - req """ - self.send_multiPut(req) - return self.recv_multiPut() + self.send_addHostsIntoZone(req) + return self.recv_addHostsIntoZone() - def send_multiPut(self, req=None): - self._oprot.writeMessageBegin('multiPut', TMessageType.CALL, self._seqid) - args = multiPut_args() + def send_addHostsIntoZone(self, req=None): + self._oprot.writeMessageBegin('addHostsIntoZone', TMessageType.CALL, self._seqid) + args = addHostsIntoZone_args() args.req = req args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_multiPut(self, ): + def recv_addHostsIntoZone(self, ): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = multiPut_result() + result = addHostsIntoZone_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success != None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "multiPut failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "addHostsIntoZone failed: unknown result"); - def get(self, req=None): + def dropHosts(self, req=None): """ Parameters: - req """ - self.send_get(req) - return self.recv_get() + self.send_dropHosts(req) + return self.recv_dropHosts() - def send_get(self, req=None): - self._oprot.writeMessageBegin('get', TMessageType.CALL, self._seqid) - args = get_args() + def send_dropHosts(self, req=None): + self._oprot.writeMessageBegin('dropHosts', TMessageType.CALL, self._seqid) + args = dropHosts_args() args.req = req args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get(self, ): + def recv_dropHosts(self, ): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = get_result() + result = dropHosts_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success != None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "get failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "dropHosts failed: unknown result"); - def multiGet(self, req=None): + def listHosts(self, req=None): """ Parameters: - req """ - self.send_multiGet(req) - return self.recv_multiGet() + self.send_listHosts(req) + return self.recv_listHosts() - def send_multiGet(self, req=None): - self._oprot.writeMessageBegin('multiGet', TMessageType.CALL, self._seqid) - args = multiGet_args() + def send_listHosts(self, req=None): + self._oprot.writeMessageBegin('listHosts', TMessageType.CALL, self._seqid) + args = listHosts_args() args.req = req args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_multiGet(self, ): + def recv_listHosts(self, ): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = multiGet_result() + result = listHosts_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success != None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "multiGet failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "listHosts failed: unknown result"); - def remove(self, req=None): + def getPartsAlloc(self, req=None): """ Parameters: - req """ - self.send_remove(req) - return self.recv_remove() + self.send_getPartsAlloc(req) + return self.recv_getPartsAlloc() - def send_remove(self, req=None): - self._oprot.writeMessageBegin('remove', TMessageType.CALL, self._seqid) - args = remove_args() + def send_getPartsAlloc(self, req=None): + self._oprot.writeMessageBegin('getPartsAlloc', TMessageType.CALL, self._seqid) + args = getPartsAlloc_args() args.req = req args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_remove(self, ): + def recv_getPartsAlloc(self, ): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = remove_result() + result = getPartsAlloc_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success != None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "remove failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "getPartsAlloc failed: unknown result"); - def removeRange(self, req=None): + def listParts(self, req=None): """ Parameters: - req """ - self.send_removeRange(req) - return self.recv_removeRange() + self.send_listParts(req) + return self.recv_listParts() - def send_removeRange(self, req=None): - self._oprot.writeMessageBegin('removeRange', TMessageType.CALL, self._seqid) - args = removeRange_args() + def send_listParts(self, req=None): + self._oprot.writeMessageBegin('listParts', TMessageType.CALL, self._seqid) + args = listParts_args() args.req = req args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_removeRange(self, ): + def recv_listParts(self, ): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = removeRange_result() + result = listParts_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success != None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "removeRange failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "listParts failed: unknown result"); - def scan(self, req=None): + def getWorkerId(self, req=None): """ Parameters: - req """ - self.send_scan(req) - return self.recv_scan() + self.send_getWorkerId(req) + return self.recv_getWorkerId() - def send_scan(self, req=None): - self._oprot.writeMessageBegin('scan', TMessageType.CALL, self._seqid) - args = scan_args() + def send_getWorkerId(self, req=None): + self._oprot.writeMessageBegin('getWorkerId', TMessageType.CALL, self._seqid) + args = getWorkerId_args() args.req = req args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_scan(self, ): + def recv_getWorkerId(self, ): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = scan_result() + result = getWorkerId_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success != None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "scan failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "getWorkerId failed: unknown result"); def createTagIndex(self, req=None): """ @@ -20742,6 +19977,66 @@ def recv_verifyClientVersion(self, ): return result.success raise TApplicationException(TApplicationException.MISSING_RESULT, "verifyClientVersion failed: unknown result"); + def saveGraphVersion(self, req=None): + """ + Parameters: + - req + """ + self.send_saveGraphVersion(req) + return self.recv_saveGraphVersion() + + def send_saveGraphVersion(self, req=None): + self._oprot.writeMessageBegin('saveGraphVersion', TMessageType.CALL, self._seqid) + args = saveGraphVersion_args() + args.req = req + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_saveGraphVersion(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(self._iprot) + self._iprot.readMessageEnd() + raise x + result = saveGraphVersion_result() + result.read(self._iprot) + self._iprot.readMessageEnd() + if result.success != None: + return result.success + raise TApplicationException(TApplicationException.MISSING_RESULT, "saveGraphVersion failed: unknown result"); + + def getSegmentId(self, req=None): + """ + Parameters: + - req + """ + self.send_getSegmentId(req) + return self.recv_getSegmentId() + + def send_getSegmentId(self, req=None): + self._oprot.writeMessageBegin('getSegmentId', TMessageType.CALL, self._seqid) + args = getSegmentId_args() + args.req = req + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_getSegmentId(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(self._iprot) + self._iprot.readMessageEnd() + raise x + result = getSegmentId_result() + result.read(self._iprot) + self._iprot.readMessageEnd() + if result.success != None: + return result.success + raise TApplicationException(TApplicationException.MISSING_RESULT, "getSegmentId failed: unknown result"); + class Processor(Iface, TProcessor): _onewayMethods = () @@ -20755,6 +20050,8 @@ def __init__(self, handler): self._priorityMap["createSpace"] = TPriority.NORMAL self._processMap["dropSpace"] = Processor.process_dropSpace self._priorityMap["dropSpace"] = TPriority.NORMAL + self._processMap["clearSpace"] = Processor.process_clearSpace + self._priorityMap["clearSpace"] = TPriority.NORMAL self._processMap["getSpace"] = Processor.process_getSpace self._priorityMap["getSpace"] = TPriority.NORMAL self._processMap["listSpaces"] = Processor.process_listSpaces @@ -20797,18 +20094,6 @@ def __init__(self, handler): self._priorityMap["listParts"] = TPriority.NORMAL self._processMap["getWorkerId"] = Processor.process_getWorkerId self._priorityMap["getWorkerId"] = TPriority.NORMAL - self._processMap["multiPut"] = Processor.process_multiPut - self._priorityMap["multiPut"] = TPriority.NORMAL - self._processMap["get"] = Processor.process_get - self._priorityMap["get"] = TPriority.NORMAL - self._processMap["multiGet"] = Processor.process_multiGet - self._priorityMap["multiGet"] = TPriority.NORMAL - self._processMap["remove"] = Processor.process_remove - self._priorityMap["remove"] = TPriority.NORMAL - self._processMap["removeRange"] = Processor.process_removeRange - self._priorityMap["removeRange"] = TPriority.NORMAL - self._processMap["scan"] = Processor.process_scan - self._priorityMap["scan"] = TPriority.NORMAL self._processMap["createTagIndex"] = Processor.process_createTagIndex self._priorityMap["createTagIndex"] = TPriority.NORMAL self._processMap["dropTagIndex"] = Processor.process_dropTagIndex @@ -20927,6 +20212,10 @@ def __init__(self, handler): self._priorityMap["getMetaDirInfo"] = TPriority.NORMAL self._processMap["verifyClientVersion"] = Processor.process_verifyClientVersion self._priorityMap["verifyClientVersion"] = TPriority.NORMAL + self._processMap["saveGraphVersion"] = Processor.process_saveGraphVersion + self._priorityMap["saveGraphVersion"] = TPriority.NORMAL + self._processMap["getSegmentId"] = Processor.process_getSegmentId + self._priorityMap["getSegmentId"] = TPriority.NORMAL def onewayMethods(self): l = [] @@ -20958,6 +20247,17 @@ def process_dropSpace(self, args, handler_ctx): result = Thrift.TApplicationException(message=repr(ex)) return result + @thrift_process_method(clearSpace_args, oneway=False) + def process_clearSpace(self, args, handler_ctx): + result = clearSpace_result() + try: + result.success = self._handler.clearSpace(args.req) + except: + ex = sys.exc_info()[1] + self._event_handler.handlerError(handler_ctx, 'clearSpace', ex) + result = Thrift.TApplicationException(message=repr(ex)) + return result + @thrift_process_method(getSpace_args, oneway=False) def process_getSpace(self, args, handler_ctx): result = getSpace_result() @@ -21189,72 +20489,6 @@ def process_getWorkerId(self, args, handler_ctx): result = Thrift.TApplicationException(message=repr(ex)) return result - @thrift_process_method(multiPut_args, oneway=False) - def process_multiPut(self, args, handler_ctx): - result = multiPut_result() - try: - result.success = self._handler.multiPut(args.req) - except: - ex = sys.exc_info()[1] - self._event_handler.handlerError(handler_ctx, 'multiPut', ex) - result = Thrift.TApplicationException(message=repr(ex)) - return result - - @thrift_process_method(get_args, oneway=False) - def process_get(self, args, handler_ctx): - result = get_result() - try: - result.success = self._handler.get(args.req) - except: - ex = sys.exc_info()[1] - self._event_handler.handlerError(handler_ctx, 'get', ex) - result = Thrift.TApplicationException(message=repr(ex)) - return result - - @thrift_process_method(multiGet_args, oneway=False) - def process_multiGet(self, args, handler_ctx): - result = multiGet_result() - try: - result.success = self._handler.multiGet(args.req) - except: - ex = sys.exc_info()[1] - self._event_handler.handlerError(handler_ctx, 'multiGet', ex) - result = Thrift.TApplicationException(message=repr(ex)) - return result - - @thrift_process_method(remove_args, oneway=False) - def process_remove(self, args, handler_ctx): - result = remove_result() - try: - result.success = self._handler.remove(args.req) - except: - ex = sys.exc_info()[1] - self._event_handler.handlerError(handler_ctx, 'remove', ex) - result = Thrift.TApplicationException(message=repr(ex)) - return result - - @thrift_process_method(removeRange_args, oneway=False) - def process_removeRange(self, args, handler_ctx): - result = removeRange_result() - try: - result.success = self._handler.removeRange(args.req) - except: - ex = sys.exc_info()[1] - self._event_handler.handlerError(handler_ctx, 'removeRange', ex) - result = Thrift.TApplicationException(message=repr(ex)) - return result - - @thrift_process_method(scan_args, oneway=False) - def process_scan(self, args, handler_ctx): - result = scan_result() - try: - result.success = self._handler.scan(args.req) - except: - ex = sys.exc_info()[1] - self._event_handler.handlerError(handler_ctx, 'scan', ex) - result = Thrift.TApplicationException(message=repr(ex)) - return result - @thrift_process_method(createTagIndex_args, oneway=False) def process_createTagIndex(self, args, handler_ctx): result = createTagIndex_result() @@ -21904,6 +21138,28 @@ def process_verifyClientVersion(self, args, handler_ctx): result = Thrift.TApplicationException(message=repr(ex)) return result + @thrift_process_method(saveGraphVersion_args, oneway=False) + def process_saveGraphVersion(self, args, handler_ctx): + result = saveGraphVersion_result() + try: + result.success = self._handler.saveGraphVersion(args.req) + except: + ex = sys.exc_info()[1] + self._event_handler.handlerError(handler_ctx, 'saveGraphVersion', ex) + result = Thrift.TApplicationException(message=repr(ex)) + return result + + @thrift_process_method(getSegmentId_args, oneway=False) + def process_getSegmentId(self, args, handler_ctx): + result = getSegmentId_result() + try: + result.success = self._handler.getSegmentId(args.req) + except: + ex = sys.exc_info()[1] + self._event_handler.handlerError(handler_ctx, 'getSegmentId', ex) + result = Thrift.TApplicationException(message=repr(ex)) + return result + Iface._processor_type = Processor class ContextProcessor(ContextIface, TProcessor): @@ -21918,6 +21174,8 @@ def __init__(self, handler): self._priorityMap["createSpace"] = TPriority.NORMAL self._processMap["dropSpace"] = ContextProcessor.process_dropSpace self._priorityMap["dropSpace"] = TPriority.NORMAL + self._processMap["clearSpace"] = ContextProcessor.process_clearSpace + self._priorityMap["clearSpace"] = TPriority.NORMAL self._processMap["getSpace"] = ContextProcessor.process_getSpace self._priorityMap["getSpace"] = TPriority.NORMAL self._processMap["listSpaces"] = ContextProcessor.process_listSpaces @@ -21960,18 +21218,6 @@ def __init__(self, handler): self._priorityMap["listParts"] = TPriority.NORMAL self._processMap["getWorkerId"] = ContextProcessor.process_getWorkerId self._priorityMap["getWorkerId"] = TPriority.NORMAL - self._processMap["multiPut"] = ContextProcessor.process_multiPut - self._priorityMap["multiPut"] = TPriority.NORMAL - self._processMap["get"] = ContextProcessor.process_get - self._priorityMap["get"] = TPriority.NORMAL - self._processMap["multiGet"] = ContextProcessor.process_multiGet - self._priorityMap["multiGet"] = TPriority.NORMAL - self._processMap["remove"] = ContextProcessor.process_remove - self._priorityMap["remove"] = TPriority.NORMAL - self._processMap["removeRange"] = ContextProcessor.process_removeRange - self._priorityMap["removeRange"] = TPriority.NORMAL - self._processMap["scan"] = ContextProcessor.process_scan - self._priorityMap["scan"] = TPriority.NORMAL self._processMap["createTagIndex"] = ContextProcessor.process_createTagIndex self._priorityMap["createTagIndex"] = TPriority.NORMAL self._processMap["dropTagIndex"] = ContextProcessor.process_dropTagIndex @@ -22090,6 +21336,10 @@ def __init__(self, handler): self._priorityMap["getMetaDirInfo"] = TPriority.NORMAL self._processMap["verifyClientVersion"] = ContextProcessor.process_verifyClientVersion self._priorityMap["verifyClientVersion"] = TPriority.NORMAL + self._processMap["saveGraphVersion"] = ContextProcessor.process_saveGraphVersion + self._priorityMap["saveGraphVersion"] = TPriority.NORMAL + self._processMap["getSegmentId"] = ContextProcessor.process_getSegmentId + self._priorityMap["getSegmentId"] = TPriority.NORMAL def onewayMethods(self): l = [] @@ -22121,6 +21371,17 @@ def process_dropSpace(self, args, handler_ctx): result = Thrift.TApplicationException(message=repr(ex)) return result + @thrift_process_method(clearSpace_args, oneway=False) + def process_clearSpace(self, args, handler_ctx): + result = clearSpace_result() + try: + result.success = self._handler.clearSpace(handler_ctx, args.req) + except: + ex = sys.exc_info()[1] + self._event_handler.handlerError(handler_ctx, 'clearSpace', ex) + result = Thrift.TApplicationException(message=repr(ex)) + return result + @thrift_process_method(getSpace_args, oneway=False) def process_getSpace(self, args, handler_ctx): result = getSpace_result() @@ -22352,72 +21613,6 @@ def process_getWorkerId(self, args, handler_ctx): result = Thrift.TApplicationException(message=repr(ex)) return result - @thrift_process_method(multiPut_args, oneway=False) - def process_multiPut(self, args, handler_ctx): - result = multiPut_result() - try: - result.success = self._handler.multiPut(handler_ctx, args.req) - except: - ex = sys.exc_info()[1] - self._event_handler.handlerError(handler_ctx, 'multiPut', ex) - result = Thrift.TApplicationException(message=repr(ex)) - return result - - @thrift_process_method(get_args, oneway=False) - def process_get(self, args, handler_ctx): - result = get_result() - try: - result.success = self._handler.get(handler_ctx, args.req) - except: - ex = sys.exc_info()[1] - self._event_handler.handlerError(handler_ctx, 'get', ex) - result = Thrift.TApplicationException(message=repr(ex)) - return result - - @thrift_process_method(multiGet_args, oneway=False) - def process_multiGet(self, args, handler_ctx): - result = multiGet_result() - try: - result.success = self._handler.multiGet(handler_ctx, args.req) - except: - ex = sys.exc_info()[1] - self._event_handler.handlerError(handler_ctx, 'multiGet', ex) - result = Thrift.TApplicationException(message=repr(ex)) - return result - - @thrift_process_method(remove_args, oneway=False) - def process_remove(self, args, handler_ctx): - result = remove_result() - try: - result.success = self._handler.remove(handler_ctx, args.req) - except: - ex = sys.exc_info()[1] - self._event_handler.handlerError(handler_ctx, 'remove', ex) - result = Thrift.TApplicationException(message=repr(ex)) - return result - - @thrift_process_method(removeRange_args, oneway=False) - def process_removeRange(self, args, handler_ctx): - result = removeRange_result() - try: - result.success = self._handler.removeRange(handler_ctx, args.req) - except: - ex = sys.exc_info()[1] - self._event_handler.handlerError(handler_ctx, 'removeRange', ex) - result = Thrift.TApplicationException(message=repr(ex)) - return result - - @thrift_process_method(scan_args, oneway=False) - def process_scan(self, args, handler_ctx): - result = scan_result() - try: - result.success = self._handler.scan(handler_ctx, args.req) - except: - ex = sys.exc_info()[1] - self._event_handler.handlerError(handler_ctx, 'scan', ex) - result = Thrift.TApplicationException(message=repr(ex)) - return result - @thrift_process_method(createTagIndex_args, oneway=False) def process_createTagIndex(self, args, handler_ctx): result = createTagIndex_result() @@ -23067,6 +22262,28 @@ def process_verifyClientVersion(self, args, handler_ctx): result = Thrift.TApplicationException(message=repr(ex)) return result + @thrift_process_method(saveGraphVersion_args, oneway=False) + def process_saveGraphVersion(self, args, handler_ctx): + result = saveGraphVersion_result() + try: + result.success = self._handler.saveGraphVersion(handler_ctx, args.req) + except: + ex = sys.exc_info()[1] + self._event_handler.handlerError(handler_ctx, 'saveGraphVersion', ex) + result = Thrift.TApplicationException(message=repr(ex)) + return result + + @thrift_process_method(getSegmentId_args, oneway=False) + def process_getSegmentId(self, args, handler_ctx): + result = getSegmentId_result() + try: + result.success = self._handler.getSegmentId(handler_ctx, args.req) + except: + ex = sys.exc_info()[1] + self._event_handler.handlerError(handler_ctx, 'getSegmentId', ex) + result = Thrift.TApplicationException(message=repr(ex)) + return result + ContextIface._processor_type = ContextProcessor fix_spec(all_structs) diff --git a/nebula3/meta/constants.py b/nebula3/meta/constants.py index 0f295d33..25f575ca 100644 --- a/nebula3/meta/constants.py +++ b/nebula3/meta/constants.py @@ -15,5 +15,5 @@ import nebula3.common.ttypes -from .ttypes import UTF8STRINGS, AlterSchemaOp, RoleType, GeoShape, IsolationLevel, HostStatus, SnapshotStatus, AlterSpaceOp, AdminJobOp, AdminCmd, JobStatus, ListHostType, HostRole, TaskResult, ConfigModule, ConfigMode, ListenerType, ExternalServiceType, QueryStatus, ID, ColumnTypeDef, ColumnDef, SchemaProp, Schema, IdName, SpaceDesc, SpaceItem, TagItem, AlterSchemaItem, EdgeItem, IndexParams, IndexItem, HostItem, UserItem, RoleItem, ExecResp, AlterSpaceReq, AdminJobReq, JobDesc, TaskDesc, AdminJobResult, AdminJobResp, Correlativity, StatsItem, CreateSpaceReq, CreateSpaceAsReq, DropSpaceReq, ListSpacesReq, ListSpacesResp, GetSpaceReq, GetSpaceResp, CreateTagReq, AlterTagReq, DropTagReq, ListTagsReq, ListTagsResp, GetTagReq, GetTagResp, CreateEdgeReq, AlterEdgeReq, GetEdgeReq, GetEdgeResp, DropEdgeReq, ListEdgesReq, ListEdgesResp, AddHostsReq, DropHostsReq, ListHostsReq, ListHostsResp, PartItem, ListPartsReq, ListPartsResp, GetPartsAllocReq, GetPartsAllocResp, GetWorkerIdReq, GetWorkerIdResp, MultiPutReq, GetReq, GetResp, MultiGetReq, MultiGetResp, RemoveReq, RemoveRangeReq, ScanReq, ScanResp, HBResp, LeaderInfo, PartitionList, HBReq, ServiceInfo, AgentHBReq, AgentHBResp, IndexFieldDef, CreateTagIndexReq, DropTagIndexReq, GetTagIndexReq, GetTagIndexResp, ListTagIndexesReq, ListTagIndexesResp, CreateEdgeIndexReq, DropEdgeIndexReq, GetEdgeIndexReq, GetEdgeIndexResp, ListEdgeIndexesReq, ListEdgeIndexesResp, RebuildIndexReq, CreateUserReq, DropUserReq, AlterUserReq, GrantRoleReq, RevokeRoleReq, ListUsersReq, ListUsersResp, ListRolesReq, ListRolesResp, GetUserRolesReq, ChangePasswordReq, BalanceTask, ConfigItem, RegConfigReq, GetConfigReq, GetConfigResp, SetConfigReq, ListConfigsReq, ListConfigsResp, CreateSnapshotReq, DropSnapshotReq, ListSnapshotsReq, Snapshot, ListSnapshotsResp, ListIndexStatusReq, IndexStatus, ListIndexStatusResp, MergeZoneReq, DropZoneReq, DivideZoneReq, RenameZoneReq, AddHostsIntoZoneReq, GetZoneReq, GetZoneResp, ListZonesReq, Zone, ListZonesResp, AddListenerReq, RemoveListenerReq, ListListenerReq, ListenerInfo, ListListenerResp, GetStatsReq, GetStatsResp, HostBackupInfo, SpaceBackupInfo, BackupMeta, CreateBackupReq, CreateBackupResp, HostPair, RestoreMetaReq, ServiceClient, SignInServiceReq, SignOutServiceReq, ListServiceClientsReq, ListServiceClientsResp, FTIndex, CreateFTIndexReq, DropFTIndexReq, ListFTIndexesReq, ListFTIndexesResp, QueryDesc, Session, CreateSessionReq, CreateSessionResp, UpdateSessionsReq, UpdateSessionsResp, ListSessionsReq, ListSessionsResp, GetSessionReq, GetSessionResp, RemoveSessionReq, KillQueryReq, ReportTaskReq, ListClusterInfoResp, ListClusterInfoReq, GetMetaDirInfoResp, GetMetaDirInfoReq, VerifyClientVersionResp, VerifyClientVersionReq, SchemaVer, ClusterID +from .ttypes import UTF8STRINGS, AlterSchemaOp, RoleType, GeoShape, IsolationLevel, HostStatus, SnapshotStatus, AlterSpaceOp, JobOp, JobType, JobStatus, ListHostType, HostRole, TaskResult, ConfigModule, ConfigMode, ListenerType, ExternalServiceType, QueryStatus, ID, ColumnTypeDef, ColumnDef, SchemaProp, Schema, IdName, SpaceDesc, SpaceItem, TagItem, AlterSchemaItem, EdgeItem, IndexParams, IndexItem, HostItem, UserItem, RoleItem, ExecResp, AlterSpaceReq, AdminJobReq, JobDesc, TaskDesc, AdminJobResult, AdminJobResp, Correlativity, StatsItem, CreateSpaceReq, CreateSpaceAsReq, DropSpaceReq, ClearSpaceReq, ListSpacesReq, ListSpacesResp, GetSpaceReq, GetSpaceResp, CreateTagReq, AlterTagReq, DropTagReq, ListTagsReq, ListTagsResp, GetTagReq, GetTagResp, CreateEdgeReq, AlterEdgeReq, GetEdgeReq, GetEdgeResp, DropEdgeReq, ListEdgesReq, ListEdgesResp, AddHostsReq, DropHostsReq, ListHostsReq, ListHostsResp, PartItem, ListPartsReq, ListPartsResp, GetPartsAllocReq, GetPartsAllocResp, GetWorkerIdReq, GetWorkerIdResp, GetSegmentIdReq, GetSegmentIdResp, HBResp, LeaderInfo, PartitionList, HBReq, ServiceInfo, AgentHBReq, AgentHBResp, IndexFieldDef, CreateTagIndexReq, DropTagIndexReq, GetTagIndexReq, GetTagIndexResp, ListTagIndexesReq, ListTagIndexesResp, CreateEdgeIndexReq, DropEdgeIndexReq, GetEdgeIndexReq, GetEdgeIndexResp, ListEdgeIndexesReq, ListEdgeIndexesResp, RebuildIndexReq, CreateUserReq, DropUserReq, AlterUserReq, GrantRoleReq, RevokeRoleReq, ListUsersReq, ListUsersResp, ListRolesReq, ListRolesResp, GetUserRolesReq, ChangePasswordReq, BalanceTask, ConfigItem, RegConfigReq, GetConfigReq, GetConfigResp, SetConfigReq, ListConfigsReq, ListConfigsResp, CreateSnapshotReq, DropSnapshotReq, ListSnapshotsReq, Snapshot, ListSnapshotsResp, ListIndexStatusReq, IndexStatus, ListIndexStatusResp, MergeZoneReq, DropZoneReq, DivideZoneReq, RenameZoneReq, AddHostsIntoZoneReq, GetZoneReq, GetZoneResp, ListZonesReq, Zone, ListZonesResp, AddListenerReq, RemoveListenerReq, ListListenerReq, ListenerInfo, ListListenerResp, GetStatsReq, GetStatsResp, HostBackupInfo, SpaceBackupInfo, BackupMeta, CreateBackupReq, CreateBackupResp, HostPair, RestoreMetaReq, ServiceClient, SignInServiceReq, SignOutServiceReq, ListServiceClientsReq, ListServiceClientsResp, FTIndex, CreateFTIndexReq, DropFTIndexReq, ListFTIndexesReq, ListFTIndexesResp, QueryDesc, Session, CreateSessionReq, CreateSessionResp, UpdateSessionsReq, UpdateSessionsResp, ListSessionsReq, ListSessionsResp, GetSessionReq, GetSessionResp, RemoveSessionReq, KillQueryReq, ReportTaskReq, ListClusterInfoResp, ListClusterInfoReq, GetMetaDirInfoResp, GetMetaDirInfoReq, VerifyClientVersionResp, VerifyClientVersionReq, SaveGraphVersionResp, SaveGraphVersionReq, SchemaVer, ClusterID diff --git a/nebula3/meta/ttypes.py b/nebula3/meta/ttypes.py index 5423a048..525721ed 100644 --- a/nebula3/meta/ttypes.py +++ b/nebula3/meta/ttypes.py @@ -30,7 +30,7 @@ all_structs = [] UTF8STRINGS = bool(0) or sys.version_info.major >= 3 -__all__ = ['UTF8STRINGS', 'AlterSchemaOp', 'RoleType', 'GeoShape', 'IsolationLevel', 'HostStatus', 'SnapshotStatus', 'AlterSpaceOp', 'AdminJobOp', 'AdminCmd', 'JobStatus', 'ListHostType', 'HostRole', 'TaskResult', 'ConfigModule', 'ConfigMode', 'ListenerType', 'ExternalServiceType', 'QueryStatus', 'ID', 'ColumnTypeDef', 'ColumnDef', 'SchemaProp', 'Schema', 'IdName', 'SpaceDesc', 'SpaceItem', 'TagItem', 'AlterSchemaItem', 'EdgeItem', 'IndexParams', 'IndexItem', 'HostItem', 'UserItem', 'RoleItem', 'ExecResp', 'AlterSpaceReq', 'AdminJobReq', 'JobDesc', 'TaskDesc', 'AdminJobResult', 'AdminJobResp', 'Correlativity', 'StatsItem', 'CreateSpaceReq', 'CreateSpaceAsReq', 'DropSpaceReq', 'ListSpacesReq', 'ListSpacesResp', 'GetSpaceReq', 'GetSpaceResp', 'CreateTagReq', 'AlterTagReq', 'DropTagReq', 'ListTagsReq', 'ListTagsResp', 'GetTagReq', 'GetTagResp', 'CreateEdgeReq', 'AlterEdgeReq', 'GetEdgeReq', 'GetEdgeResp', 'DropEdgeReq', 'ListEdgesReq', 'ListEdgesResp', 'AddHostsReq', 'DropHostsReq', 'ListHostsReq', 'ListHostsResp', 'PartItem', 'ListPartsReq', 'ListPartsResp', 'GetPartsAllocReq', 'GetPartsAllocResp', 'GetWorkerIdReq', 'GetWorkerIdResp', 'MultiPutReq', 'GetReq', 'GetResp', 'MultiGetReq', 'MultiGetResp', 'RemoveReq', 'RemoveRangeReq', 'ScanReq', 'ScanResp', 'HBResp', 'LeaderInfo', 'PartitionList', 'HBReq', 'ServiceInfo', 'AgentHBReq', 'AgentHBResp', 'IndexFieldDef', 'CreateTagIndexReq', 'DropTagIndexReq', 'GetTagIndexReq', 'GetTagIndexResp', 'ListTagIndexesReq', 'ListTagIndexesResp', 'CreateEdgeIndexReq', 'DropEdgeIndexReq', 'GetEdgeIndexReq', 'GetEdgeIndexResp', 'ListEdgeIndexesReq', 'ListEdgeIndexesResp', 'RebuildIndexReq', 'CreateUserReq', 'DropUserReq', 'AlterUserReq', 'GrantRoleReq', 'RevokeRoleReq', 'ListUsersReq', 'ListUsersResp', 'ListRolesReq', 'ListRolesResp', 'GetUserRolesReq', 'ChangePasswordReq', 'BalanceTask', 'ConfigItem', 'RegConfigReq', 'GetConfigReq', 'GetConfigResp', 'SetConfigReq', 'ListConfigsReq', 'ListConfigsResp', 'CreateSnapshotReq', 'DropSnapshotReq', 'ListSnapshotsReq', 'Snapshot', 'ListSnapshotsResp', 'ListIndexStatusReq', 'IndexStatus', 'ListIndexStatusResp', 'MergeZoneReq', 'DropZoneReq', 'DivideZoneReq', 'RenameZoneReq', 'AddHostsIntoZoneReq', 'GetZoneReq', 'GetZoneResp', 'ListZonesReq', 'Zone', 'ListZonesResp', 'AddListenerReq', 'RemoveListenerReq', 'ListListenerReq', 'ListenerInfo', 'ListListenerResp', 'GetStatsReq', 'GetStatsResp', 'HostBackupInfo', 'SpaceBackupInfo', 'BackupMeta', 'CreateBackupReq', 'CreateBackupResp', 'HostPair', 'RestoreMetaReq', 'ServiceClient', 'SignInServiceReq', 'SignOutServiceReq', 'ListServiceClientsReq', 'ListServiceClientsResp', 'FTIndex', 'CreateFTIndexReq', 'DropFTIndexReq', 'ListFTIndexesReq', 'ListFTIndexesResp', 'QueryDesc', 'Session', 'CreateSessionReq', 'CreateSessionResp', 'UpdateSessionsReq', 'UpdateSessionsResp', 'ListSessionsReq', 'ListSessionsResp', 'GetSessionReq', 'GetSessionResp', 'RemoveSessionReq', 'KillQueryReq', 'ReportTaskReq', 'ListClusterInfoResp', 'ListClusterInfoReq', 'GetMetaDirInfoResp', 'GetMetaDirInfoReq', 'VerifyClientVersionResp', 'VerifyClientVersionReq', 'SchemaVer', 'ClusterID'] +__all__ = ['UTF8STRINGS', 'AlterSchemaOp', 'RoleType', 'GeoShape', 'IsolationLevel', 'HostStatus', 'SnapshotStatus', 'AlterSpaceOp', 'JobOp', 'JobType', 'JobStatus', 'ListHostType', 'HostRole', 'TaskResult', 'ConfigModule', 'ConfigMode', 'ListenerType', 'ExternalServiceType', 'QueryStatus', 'ID', 'ColumnTypeDef', 'ColumnDef', 'SchemaProp', 'Schema', 'IdName', 'SpaceDesc', 'SpaceItem', 'TagItem', 'AlterSchemaItem', 'EdgeItem', 'IndexParams', 'IndexItem', 'HostItem', 'UserItem', 'RoleItem', 'ExecResp', 'AlterSpaceReq', 'AdminJobReq', 'JobDesc', 'TaskDesc', 'AdminJobResult', 'AdminJobResp', 'Correlativity', 'StatsItem', 'CreateSpaceReq', 'CreateSpaceAsReq', 'DropSpaceReq', 'ClearSpaceReq', 'ListSpacesReq', 'ListSpacesResp', 'GetSpaceReq', 'GetSpaceResp', 'CreateTagReq', 'AlterTagReq', 'DropTagReq', 'ListTagsReq', 'ListTagsResp', 'GetTagReq', 'GetTagResp', 'CreateEdgeReq', 'AlterEdgeReq', 'GetEdgeReq', 'GetEdgeResp', 'DropEdgeReq', 'ListEdgesReq', 'ListEdgesResp', 'AddHostsReq', 'DropHostsReq', 'ListHostsReq', 'ListHostsResp', 'PartItem', 'ListPartsReq', 'ListPartsResp', 'GetPartsAllocReq', 'GetPartsAllocResp', 'GetWorkerIdReq', 'GetWorkerIdResp', 'GetSegmentIdReq', 'GetSegmentIdResp', 'HBResp', 'LeaderInfo', 'PartitionList', 'HBReq', 'ServiceInfo', 'AgentHBReq', 'AgentHBResp', 'IndexFieldDef', 'CreateTagIndexReq', 'DropTagIndexReq', 'GetTagIndexReq', 'GetTagIndexResp', 'ListTagIndexesReq', 'ListTagIndexesResp', 'CreateEdgeIndexReq', 'DropEdgeIndexReq', 'GetEdgeIndexReq', 'GetEdgeIndexResp', 'ListEdgeIndexesReq', 'ListEdgeIndexesResp', 'RebuildIndexReq', 'CreateUserReq', 'DropUserReq', 'AlterUserReq', 'GrantRoleReq', 'RevokeRoleReq', 'ListUsersReq', 'ListUsersResp', 'ListRolesReq', 'ListRolesResp', 'GetUserRolesReq', 'ChangePasswordReq', 'BalanceTask', 'ConfigItem', 'RegConfigReq', 'GetConfigReq', 'GetConfigResp', 'SetConfigReq', 'ListConfigsReq', 'ListConfigsResp', 'CreateSnapshotReq', 'DropSnapshotReq', 'ListSnapshotsReq', 'Snapshot', 'ListSnapshotsResp', 'ListIndexStatusReq', 'IndexStatus', 'ListIndexStatusResp', 'MergeZoneReq', 'DropZoneReq', 'DivideZoneReq', 'RenameZoneReq', 'AddHostsIntoZoneReq', 'GetZoneReq', 'GetZoneResp', 'ListZonesReq', 'Zone', 'ListZonesResp', 'AddListenerReq', 'RemoveListenerReq', 'ListListenerReq', 'ListenerInfo', 'ListListenerResp', 'GetStatsReq', 'GetStatsResp', 'HostBackupInfo', 'SpaceBackupInfo', 'BackupMeta', 'CreateBackupReq', 'CreateBackupResp', 'HostPair', 'RestoreMetaReq', 'ServiceClient', 'SignInServiceReq', 'SignOutServiceReq', 'ListServiceClientsReq', 'ListServiceClientsResp', 'FTIndex', 'CreateFTIndexReq', 'DropFTIndexReq', 'ListFTIndexesReq', 'ListFTIndexesResp', 'QueryDesc', 'Session', 'CreateSessionReq', 'CreateSessionResp', 'UpdateSessionsReq', 'UpdateSessionsResp', 'ListSessionsReq', 'ListSessionsResp', 'GetSessionReq', 'GetSessionResp', 'RemoveSessionReq', 'KillQueryReq', 'ReportTaskReq', 'ListClusterInfoResp', 'ListClusterInfoReq', 'GetMetaDirInfoResp', 'GetMetaDirInfoReq', 'VerifyClientVersionResp', 'VerifyClientVersionReq', 'SaveGraphVersionResp', 'SaveGraphVersionReq', 'SchemaVer', 'ClusterID'] class AlterSchemaOp: ADD = 1 @@ -151,7 +151,7 @@ class AlterSpaceOp: "ADD_ZONE": 1, } -class AdminJobOp: +class JobOp: ADD = 1 SHOW_All = 2 SHOW = 3 @@ -174,7 +174,7 @@ class AdminJobOp: "RECOVER": 5, } -class AdminCmd: +class JobType: COMPACT = 0 FLUSH = 1 REBUILD_TAG_INDEX = 2 @@ -2675,8 +2675,9 @@ def __ne__(self, other): class AdminJobReq: """ Attributes: + - space_id - op - - cmd + - type - paras """ @@ -2702,15 +2703,20 @@ def read(self, iprot): break if fid == 1: if ftype == TType.I32: - self.op = iprot.readI32() + self.space_id = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I32: - self.cmd = iprot.readI32() + self.op = iprot.readI32() else: iprot.skip(ftype) elif fid == 3: + if ftype == TType.I32: + self.type = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 4: if ftype == TType.LIST: self.paras = [] (_etype87, _size84) = iprot.readListBegin() @@ -2738,16 +2744,20 @@ def write(self, oprot): oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return oprot.writeStructBegin('AdminJobReq') + if self.space_id != None: + oprot.writeFieldBegin('space_id', TType.I32, 1) + oprot.writeI32(self.space_id) + oprot.writeFieldEnd() if self.op != None: - oprot.writeFieldBegin('op', TType.I32, 1) + oprot.writeFieldBegin('op', TType.I32, 2) oprot.writeI32(self.op) oprot.writeFieldEnd() - if self.cmd != None: - oprot.writeFieldBegin('cmd', TType.I32, 2) - oprot.writeI32(self.cmd) + if self.type != None: + oprot.writeFieldBegin('type', TType.I32, 3) + oprot.writeI32(self.type) oprot.writeFieldEnd() if self.paras != None: - oprot.writeFieldBegin('paras', TType.LIST, 3) + oprot.writeFieldBegin('paras', TType.LIST, 4) oprot.writeListBegin(TType.STRING, len(self.paras)) for iter91 in self.paras: oprot.writeString(iter91) @@ -2759,14 +2769,18 @@ def write(self, oprot): def __repr__(self): L = [] padding = ' ' * 4 + if self.space_id is not None: + value = pprint.pformat(self.space_id, indent=0) + value = padding.join(value.splitlines(True)) + L.append(' space_id=%s' % (value)) if self.op is not None: value = pprint.pformat(self.op, indent=0) value = padding.join(value.splitlines(True)) L.append(' op=%s' % (value)) - if self.cmd is not None: - value = pprint.pformat(self.cmd, indent=0) + if self.type is not None: + value = pprint.pformat(self.type, indent=0) value = padding.join(value.splitlines(True)) - L.append(' cmd=%s' % (value)) + L.append(' type=%s' % (value)) if self.paras is not None: value = pprint.pformat(self.paras, indent=0) value = padding.join(value.splitlines(True)) @@ -2788,12 +2802,14 @@ def __ne__(self, other): class JobDesc: """ Attributes: - - id - - cmd + - space_id + - job_id + - type - paras - status - start_time - stop_time + - code """ thrift_spec = None @@ -2818,15 +2834,20 @@ def read(self, iprot): break if fid == 1: if ftype == TType.I32: - self.id = iprot.readI32() + self.space_id = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I32: - self.cmd = iprot.readI32() + self.job_id = iprot.readI32() else: iprot.skip(ftype) elif fid == 3: + if ftype == TType.I32: + self.type = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 4: if ftype == TType.LIST: self.paras = [] (_etype95, _size92) = iprot.readListBegin() @@ -2841,21 +2862,26 @@ def read(self, iprot): iprot.readListEnd() else: iprot.skip(ftype) - elif fid == 4: + elif fid == 5: if ftype == TType.I32: self.status = iprot.readI32() else: iprot.skip(ftype) - elif fid == 5: + elif fid == 6: if ftype == TType.I64: self.start_time = iprot.readI64() else: iprot.skip(ftype) - elif fid == 6: + elif fid == 7: if ftype == TType.I64: self.stop_time = iprot.readI64() else: iprot.skip(ftype) + elif fid == 8: + if ftype == TType.I32: + self.code = iprot.readI32() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -2869,47 +2895,59 @@ def write(self, oprot): oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return oprot.writeStructBegin('JobDesc') - if self.id != None: - oprot.writeFieldBegin('id', TType.I32, 1) - oprot.writeI32(self.id) + if self.space_id != None: + oprot.writeFieldBegin('space_id', TType.I32, 1) + oprot.writeI32(self.space_id) + oprot.writeFieldEnd() + if self.job_id != None: + oprot.writeFieldBegin('job_id', TType.I32, 2) + oprot.writeI32(self.job_id) oprot.writeFieldEnd() - if self.cmd != None: - oprot.writeFieldBegin('cmd', TType.I32, 2) - oprot.writeI32(self.cmd) + if self.type != None: + oprot.writeFieldBegin('type', TType.I32, 3) + oprot.writeI32(self.type) oprot.writeFieldEnd() if self.paras != None: - oprot.writeFieldBegin('paras', TType.LIST, 3) + oprot.writeFieldBegin('paras', TType.LIST, 4) oprot.writeListBegin(TType.STRING, len(self.paras)) for iter99 in self.paras: oprot.writeString(iter99.encode('utf-8')) if UTF8STRINGS and not isinstance(iter99, bytes) else oprot.writeString(iter99) oprot.writeListEnd() oprot.writeFieldEnd() if self.status != None: - oprot.writeFieldBegin('status', TType.I32, 4) + oprot.writeFieldBegin('status', TType.I32, 5) oprot.writeI32(self.status) oprot.writeFieldEnd() if self.start_time != None: - oprot.writeFieldBegin('start_time', TType.I64, 5) + oprot.writeFieldBegin('start_time', TType.I64, 6) oprot.writeI64(self.start_time) oprot.writeFieldEnd() if self.stop_time != None: - oprot.writeFieldBegin('stop_time', TType.I64, 6) + oprot.writeFieldBegin('stop_time', TType.I64, 7) oprot.writeI64(self.stop_time) oprot.writeFieldEnd() + if self.code != None: + oprot.writeFieldBegin('code', TType.I32, 8) + oprot.writeI32(self.code) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def __repr__(self): L = [] padding = ' ' * 4 - if self.id is not None: - value = pprint.pformat(self.id, indent=0) + if self.space_id is not None: + value = pprint.pformat(self.space_id, indent=0) value = padding.join(value.splitlines(True)) - L.append(' id=%s' % (value)) - if self.cmd is not None: - value = pprint.pformat(self.cmd, indent=0) + L.append(' space_id=%s' % (value)) + if self.job_id is not None: + value = pprint.pformat(self.job_id, indent=0) value = padding.join(value.splitlines(True)) - L.append(' cmd=%s' % (value)) + L.append(' job_id=%s' % (value)) + if self.type is not None: + value = pprint.pformat(self.type, indent=0) + value = padding.join(value.splitlines(True)) + L.append(' type=%s' % (value)) if self.paras is not None: value = pprint.pformat(self.paras, indent=0) value = padding.join(value.splitlines(True)) @@ -2926,6 +2964,10 @@ def __repr__(self): value = pprint.pformat(self.stop_time, indent=0) value = padding.join(value.splitlines(True)) L.append(' stop_time=%s' % (value)) + if self.code is not None: + value = pprint.pformat(self.code, indent=0) + value = padding.join(value.splitlines(True)) + L.append(' code=%s' % (value)) return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') def __eq__(self, other): @@ -2943,12 +2985,14 @@ def __ne__(self, other): class TaskDesc: """ Attributes: + - space_id + - job_id - task_id - host - status - start_time - stop_time - - job_id + - code """ thrift_spec = None @@ -2973,33 +3017,43 @@ def read(self, iprot): break if fid == 1: if ftype == TType.I32: - self.task_id = iprot.readI32() + self.space_id = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: + if ftype == TType.I32: + self.job_id = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I32: + self.task_id = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 4: if ftype == TType.STRUCT: self.host = nebula3.common.ttypes.HostAddr() self.host.read(iprot) else: iprot.skip(ftype) - elif fid == 3: + elif fid == 5: if ftype == TType.I32: self.status = iprot.readI32() else: iprot.skip(ftype) - elif fid == 4: + elif fid == 6: if ftype == TType.I64: self.start_time = iprot.readI64() else: iprot.skip(ftype) - elif fid == 5: + elif fid == 7: if ftype == TType.I64: self.stop_time = iprot.readI64() else: iprot.skip(ftype) - elif fid == 6: + elif fid == 8: if ftype == TType.I32: - self.job_id = iprot.readI32() + self.code = iprot.readI32() else: iprot.skip(ftype) else: @@ -3015,29 +3069,37 @@ def write(self, oprot): oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return oprot.writeStructBegin('TaskDesc') + if self.space_id != None: + oprot.writeFieldBegin('space_id', TType.I32, 1) + oprot.writeI32(self.space_id) + oprot.writeFieldEnd() + if self.job_id != None: + oprot.writeFieldBegin('job_id', TType.I32, 2) + oprot.writeI32(self.job_id) + oprot.writeFieldEnd() if self.task_id != None: - oprot.writeFieldBegin('task_id', TType.I32, 1) + oprot.writeFieldBegin('task_id', TType.I32, 3) oprot.writeI32(self.task_id) oprot.writeFieldEnd() if self.host != None: - oprot.writeFieldBegin('host', TType.STRUCT, 2) + oprot.writeFieldBegin('host', TType.STRUCT, 4) self.host.write(oprot) oprot.writeFieldEnd() if self.status != None: - oprot.writeFieldBegin('status', TType.I32, 3) + oprot.writeFieldBegin('status', TType.I32, 5) oprot.writeI32(self.status) oprot.writeFieldEnd() if self.start_time != None: - oprot.writeFieldBegin('start_time', TType.I64, 4) + oprot.writeFieldBegin('start_time', TType.I64, 6) oprot.writeI64(self.start_time) oprot.writeFieldEnd() if self.stop_time != None: - oprot.writeFieldBegin('stop_time', TType.I64, 5) + oprot.writeFieldBegin('stop_time', TType.I64, 7) oprot.writeI64(self.stop_time) oprot.writeFieldEnd() - if self.job_id != None: - oprot.writeFieldBegin('job_id', TType.I32, 6) - oprot.writeI32(self.job_id) + if self.code != None: + oprot.writeFieldBegin('code', TType.I32, 8) + oprot.writeI32(self.code) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -3045,6 +3107,14 @@ def write(self, oprot): def __repr__(self): L = [] padding = ' ' * 4 + if self.space_id is not None: + value = pprint.pformat(self.space_id, indent=0) + value = padding.join(value.splitlines(True)) + L.append(' space_id=%s' % (value)) + if self.job_id is not None: + value = pprint.pformat(self.job_id, indent=0) + value = padding.join(value.splitlines(True)) + L.append(' job_id=%s' % (value)) if self.task_id is not None: value = pprint.pformat(self.task_id, indent=0) value = padding.join(value.splitlines(True)) @@ -3065,10 +3135,10 @@ def __repr__(self): value = pprint.pformat(self.stop_time, indent=0) value = padding.join(value.splitlines(True)) L.append(' stop_time=%s' % (value)) - if self.job_id is not None: - value = pprint.pformat(self.job_id, indent=0) + if self.code is not None: + value = pprint.pformat(self.code, indent=0) value = padding.join(value.splitlines(True)) - L.append(' job_id=%s' % (value)) + L.append(' code=%s' % (value)) return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') def __eq__(self, other): @@ -3948,6 +4018,92 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ +class ClearSpaceReq: + """ + Attributes: + - space_name + - if_exists + """ + + thrift_spec = None + thrift_field_annotations = None + thrift_struct_annotations = None + __init__ = None + @staticmethod + def isUnion(): + return False + + def read(self, iprot): + if (isinstance(iprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: + fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0) + return + if (isinstance(iprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: + fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRING: + self.space_name = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.BOOL: + self.if_exists = iprot.readBool() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if (isinstance(oprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: + oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0)) + return + if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: + oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) + return + oprot.writeStructBegin('ClearSpaceReq') + if self.space_name != None: + oprot.writeFieldBegin('space_name', TType.STRING, 1) + oprot.writeString(self.space_name) + oprot.writeFieldEnd() + if self.if_exists != None: + oprot.writeFieldBegin('if_exists', TType.BOOL, 2) + oprot.writeBool(self.if_exists) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def __repr__(self): + L = [] + padding = ' ' * 4 + if self.space_name is not None: + value = pprint.pformat(self.space_name, indent=0) + value = padding.join(value.splitlines(True)) + L.append(' space_name=%s' % (value)) + if self.if_exists is not None: + value = pprint.pformat(self.if_exists, indent=0) + value = padding.join(value.splitlines(True)) + L.append(' if_exists=%s' % (value)) + return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') + + def __eq__(self, other): + if not isinstance(other, self.__class__): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + + # Override the __hash__ function for Python3 - t10434117 + __hash__ = object.__hash__ + class ListSpacesReq: thrift_spec = None @@ -6346,736 +6502,14 @@ def write(self, oprot): def __repr__(self): L = [] padding = ' ' * 4 - if self.space_id is not None: - value = pprint.pformat(self.space_id, indent=0) - value = padding.join(value.splitlines(True)) - L.append(' space_id=%s' % (value)) - if self.part_ids is not None: - value = pprint.pformat(self.part_ids, indent=0) - value = padding.join(value.splitlines(True)) - L.append(' part_ids=%s' % (value)) - return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') - - def __eq__(self, other): - if not isinstance(other, self.__class__): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not (self == other) - - # Override the __hash__ function for Python3 - t10434117 - __hash__ = object.__hash__ - -class ListPartsResp: - """ - Attributes: - - code - - leader - - parts - """ - - thrift_spec = None - thrift_field_annotations = None - thrift_struct_annotations = None - __init__ = None - @staticmethod - def isUnion(): - return False - - def read(self, iprot): - if (isinstance(iprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: - fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0) - return - if (isinstance(iprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: - fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - if fid == 1: - if ftype == TType.I32: - self.code = iprot.readI32() - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRUCT: - self.leader = nebula3.common.ttypes.HostAddr() - self.leader.read(iprot) - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.LIST: - self.parts = [] - (_etype281, _size278) = iprot.readListBegin() - if _size278 >= 0: - for _i282 in range(_size278): - _elem283 = PartItem() - _elem283.read(iprot) - self.parts.append(_elem283) - else: - while iprot.peekList(): - _elem284 = PartItem() - _elem284.read(iprot) - self.parts.append(_elem284) - iprot.readListEnd() - else: - iprot.skip(ftype) - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if (isinstance(oprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: - oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0)) - return - if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: - oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) - return - oprot.writeStructBegin('ListPartsResp') - if self.code != None: - oprot.writeFieldBegin('code', TType.I32, 1) - oprot.writeI32(self.code) - oprot.writeFieldEnd() - if self.leader != None: - oprot.writeFieldBegin('leader', TType.STRUCT, 2) - self.leader.write(oprot) - oprot.writeFieldEnd() - if self.parts != None: - oprot.writeFieldBegin('parts', TType.LIST, 3) - oprot.writeListBegin(TType.STRUCT, len(self.parts)) - for iter285 in self.parts: - iter285.write(oprot) - oprot.writeListEnd() - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def __repr__(self): - L = [] - padding = ' ' * 4 - if self.code is not None: - value = pprint.pformat(self.code, indent=0) - value = padding.join(value.splitlines(True)) - L.append(' code=%s' % (value)) - if self.leader is not None: - value = pprint.pformat(self.leader, indent=0) - value = padding.join(value.splitlines(True)) - L.append(' leader=%s' % (value)) - if self.parts is not None: - value = pprint.pformat(self.parts, indent=0) - value = padding.join(value.splitlines(True)) - L.append(' parts=%s' % (value)) - return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') - - def __eq__(self, other): - if not isinstance(other, self.__class__): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not (self == other) - - # Override the __hash__ function for Python3 - t10434117 - __hash__ = object.__hash__ - -class GetPartsAllocReq: - """ - Attributes: - - space_id - """ - - thrift_spec = None - thrift_field_annotations = None - thrift_struct_annotations = None - __init__ = None - @staticmethod - def isUnion(): - return False - - def read(self, iprot): - if (isinstance(iprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: - fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0) - return - if (isinstance(iprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: - fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - if fid == 1: - if ftype == TType.I32: - self.space_id = iprot.readI32() - else: - iprot.skip(ftype) - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if (isinstance(oprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: - oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0)) - return - if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: - oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) - return - oprot.writeStructBegin('GetPartsAllocReq') - if self.space_id != None: - oprot.writeFieldBegin('space_id', TType.I32, 1) - oprot.writeI32(self.space_id) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def __repr__(self): - L = [] - padding = ' ' * 4 - if self.space_id is not None: - value = pprint.pformat(self.space_id, indent=0) - value = padding.join(value.splitlines(True)) - L.append(' space_id=%s' % (value)) - return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') - - def __eq__(self, other): - if not isinstance(other, self.__class__): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not (self == other) - - # Override the __hash__ function for Python3 - t10434117 - __hash__ = object.__hash__ - -class GetPartsAllocResp: - """ - Attributes: - - code - - leader - - parts - - terms - """ - - thrift_spec = None - thrift_field_annotations = None - thrift_struct_annotations = None - __init__ = None - @staticmethod - def isUnion(): - return False - - def read(self, iprot): - if (isinstance(iprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: - fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0) - return - if (isinstance(iprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: - fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - if fid == 1: - if ftype == TType.I32: - self.code = iprot.readI32() - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRUCT: - self.leader = nebula3.common.ttypes.HostAddr() - self.leader.read(iprot) - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.MAP: - self.parts = {} - (_ktype287, _vtype288, _size286 ) = iprot.readMapBegin() - if _size286 >= 0: - for _i290 in range(_size286): - _key291 = iprot.readI32() - _val292 = [] - (_etype296, _size293) = iprot.readListBegin() - if _size293 >= 0: - for _i297 in range(_size293): - _elem298 = nebula3.common.ttypes.HostAddr() - _elem298.read(iprot) - _val292.append(_elem298) - else: - while iprot.peekList(): - _elem299 = nebula3.common.ttypes.HostAddr() - _elem299.read(iprot) - _val292.append(_elem299) - iprot.readListEnd() - self.parts[_key291] = _val292 - else: - while iprot.peekMap(): - _key300 = iprot.readI32() - _val301 = [] - (_etype305, _size302) = iprot.readListBegin() - if _size302 >= 0: - for _i306 in range(_size302): - _elem307 = nebula3.common.ttypes.HostAddr() - _elem307.read(iprot) - _val301.append(_elem307) - else: - while iprot.peekList(): - _elem308 = nebula3.common.ttypes.HostAddr() - _elem308.read(iprot) - _val301.append(_elem308) - iprot.readListEnd() - self.parts[_key300] = _val301 - iprot.readMapEnd() - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.MAP: - self.terms = {} - (_ktype310, _vtype311, _size309 ) = iprot.readMapBegin() - if _size309 >= 0: - for _i313 in range(_size309): - _key314 = iprot.readI32() - _val315 = iprot.readI64() - self.terms[_key314] = _val315 - else: - while iprot.peekMap(): - _key316 = iprot.readI32() - _val317 = iprot.readI64() - self.terms[_key316] = _val317 - iprot.readMapEnd() - else: - iprot.skip(ftype) - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if (isinstance(oprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: - oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0)) - return - if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: - oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) - return - oprot.writeStructBegin('GetPartsAllocResp') - if self.code != None: - oprot.writeFieldBegin('code', TType.I32, 1) - oprot.writeI32(self.code) - oprot.writeFieldEnd() - if self.leader != None: - oprot.writeFieldBegin('leader', TType.STRUCT, 2) - self.leader.write(oprot) - oprot.writeFieldEnd() - if self.parts != None: - oprot.writeFieldBegin('parts', TType.MAP, 3) - oprot.writeMapBegin(TType.I32, TType.LIST, len(self.parts)) - for kiter318,viter319 in self.parts.items(): - oprot.writeI32(kiter318) - oprot.writeListBegin(TType.STRUCT, len(viter319)) - for iter320 in viter319: - iter320.write(oprot) - oprot.writeListEnd() - oprot.writeMapEnd() - oprot.writeFieldEnd() - if self.terms != None: - oprot.writeFieldBegin('terms', TType.MAP, 4) - oprot.writeMapBegin(TType.I32, TType.I64, len(self.terms)) - for kiter321,viter322 in self.terms.items(): - oprot.writeI32(kiter321) - oprot.writeI64(viter322) - oprot.writeMapEnd() - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def __repr__(self): - L = [] - padding = ' ' * 4 - if self.code is not None: - value = pprint.pformat(self.code, indent=0) - value = padding.join(value.splitlines(True)) - L.append(' code=%s' % (value)) - if self.leader is not None: - value = pprint.pformat(self.leader, indent=0) - value = padding.join(value.splitlines(True)) - L.append(' leader=%s' % (value)) - if self.parts is not None: - value = pprint.pformat(self.parts, indent=0) - value = padding.join(value.splitlines(True)) - L.append(' parts=%s' % (value)) - if self.terms is not None: - value = pprint.pformat(self.terms, indent=0) - value = padding.join(value.splitlines(True)) - L.append(' terms=%s' % (value)) - return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') - - def __eq__(self, other): - if not isinstance(other, self.__class__): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not (self == other) - - # Override the __hash__ function for Python3 - t10434117 - __hash__ = object.__hash__ - -class GetWorkerIdReq: - """ - Attributes: - - host - """ - - thrift_spec = None - thrift_field_annotations = None - thrift_struct_annotations = None - __init__ = None - @staticmethod - def isUnion(): - return False - - def read(self, iprot): - if (isinstance(iprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: - fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0) - return - if (isinstance(iprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: - fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - if fid == 1: - if ftype == TType.STRING: - self.host = iprot.readString() - else: - iprot.skip(ftype) - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if (isinstance(oprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: - oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0)) - return - if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: - oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) - return - oprot.writeStructBegin('GetWorkerIdReq') - if self.host != None: - oprot.writeFieldBegin('host', TType.STRING, 1) - oprot.writeString(self.host) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def __repr__(self): - L = [] - padding = ' ' * 4 - if self.host is not None: - value = pprint.pformat(self.host, indent=0) - value = padding.join(value.splitlines(True)) - L.append(' host=%s' % (value)) - return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') - - def __eq__(self, other): - if not isinstance(other, self.__class__): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not (self == other) - - # Override the __hash__ function for Python3 - t10434117 - __hash__ = object.__hash__ - -class GetWorkerIdResp: - """ - Attributes: - - code - - leader - - workerid - """ - - thrift_spec = None - thrift_field_annotations = None - thrift_struct_annotations = None - __init__ = None - @staticmethod - def isUnion(): - return False - - def read(self, iprot): - if (isinstance(iprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: - fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0) - return - if (isinstance(iprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: - fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - if fid == 1: - if ftype == TType.I32: - self.code = iprot.readI32() - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRUCT: - self.leader = nebula3.common.ttypes.HostAddr() - self.leader.read(iprot) - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.I64: - self.workerid = iprot.readI64() - else: - iprot.skip(ftype) - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if (isinstance(oprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: - oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0)) - return - if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: - oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) - return - oprot.writeStructBegin('GetWorkerIdResp') - if self.code != None: - oprot.writeFieldBegin('code', TType.I32, 1) - oprot.writeI32(self.code) - oprot.writeFieldEnd() - if self.leader != None: - oprot.writeFieldBegin('leader', TType.STRUCT, 2) - self.leader.write(oprot) - oprot.writeFieldEnd() - if self.workerid != None: - oprot.writeFieldBegin('workerid', TType.I64, 3) - oprot.writeI64(self.workerid) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def __repr__(self): - L = [] - padding = ' ' * 4 - if self.code is not None: - value = pprint.pformat(self.code, indent=0) - value = padding.join(value.splitlines(True)) - L.append(' code=%s' % (value)) - if self.leader is not None: - value = pprint.pformat(self.leader, indent=0) - value = padding.join(value.splitlines(True)) - L.append(' leader=%s' % (value)) - if self.workerid is not None: - value = pprint.pformat(self.workerid, indent=0) - value = padding.join(value.splitlines(True)) - L.append(' workerid=%s' % (value)) - return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') - - def __eq__(self, other): - if not isinstance(other, self.__class__): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not (self == other) - - # Override the __hash__ function for Python3 - t10434117 - __hash__ = object.__hash__ - -class MultiPutReq: - """ - Attributes: - - segment - - pairs - """ - - thrift_spec = None - thrift_field_annotations = None - thrift_struct_annotations = None - __init__ = None - @staticmethod - def isUnion(): - return False - - def read(self, iprot): - if (isinstance(iprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: - fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0) - return - if (isinstance(iprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: - fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - if fid == 1: - if ftype == TType.STRING: - self.segment = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.LIST: - self.pairs = [] - (_etype326, _size323) = iprot.readListBegin() - if _size323 >= 0: - for _i327 in range(_size323): - _elem328 = nebula3.common.ttypes.KeyValue() - _elem328.read(iprot) - self.pairs.append(_elem328) - else: - while iprot.peekList(): - _elem329 = nebula3.common.ttypes.KeyValue() - _elem329.read(iprot) - self.pairs.append(_elem329) - iprot.readListEnd() - else: - iprot.skip(ftype) - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if (isinstance(oprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: - oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0)) - return - if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: - oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) - return - oprot.writeStructBegin('MultiPutReq') - if self.segment != None: - oprot.writeFieldBegin('segment', TType.STRING, 1) - oprot.writeString(self.segment) - oprot.writeFieldEnd() - if self.pairs != None: - oprot.writeFieldBegin('pairs', TType.LIST, 2) - oprot.writeListBegin(TType.STRUCT, len(self.pairs)) - for iter330 in self.pairs: - iter330.write(oprot) - oprot.writeListEnd() - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def __repr__(self): - L = [] - padding = ' ' * 4 - if self.segment is not None: - value = pprint.pformat(self.segment, indent=0) - value = padding.join(value.splitlines(True)) - L.append(' segment=%s' % (value)) - if self.pairs is not None: - value = pprint.pformat(self.pairs, indent=0) - value = padding.join(value.splitlines(True)) - L.append(' pairs=%s' % (value)) - return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') - - def __eq__(self, other): - if not isinstance(other, self.__class__): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not (self == other) - - # Override the __hash__ function for Python3 - t10434117 - __hash__ = object.__hash__ - -class GetReq: - """ - Attributes: - - segment - - key - """ - - thrift_spec = None - thrift_field_annotations = None - thrift_struct_annotations = None - __init__ = None - @staticmethod - def isUnion(): - return False - - def read(self, iprot): - if (isinstance(iprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: - fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0) - return - if (isinstance(iprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: - fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - if fid == 1: - if ftype == TType.STRING: - self.segment = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.key = iprot.readString() - else: - iprot.skip(ftype) - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if (isinstance(oprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: - oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0)) - return - if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: - oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) - return - oprot.writeStructBegin('GetReq') - if self.segment != None: - oprot.writeFieldBegin('segment', TType.STRING, 1) - oprot.writeString(self.segment) - oprot.writeFieldEnd() - if self.key != None: - oprot.writeFieldBegin('key', TType.STRING, 2) - oprot.writeString(self.key) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def __repr__(self): - L = [] - padding = ' ' * 4 - if self.segment is not None: - value = pprint.pformat(self.segment, indent=0) + if self.space_id is not None: + value = pprint.pformat(self.space_id, indent=0) value = padding.join(value.splitlines(True)) - L.append(' segment=%s' % (value)) - if self.key is not None: - value = pprint.pformat(self.key, indent=0) + L.append(' space_id=%s' % (value)) + if self.part_ids is not None: + value = pprint.pformat(self.part_ids, indent=0) value = padding.join(value.splitlines(True)) - L.append(' key=%s' % (value)) + L.append(' part_ids=%s' % (value)) return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') def __eq__(self, other): @@ -7090,12 +6524,12 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -class GetResp: +class ListPartsResp: """ Attributes: - code - leader - - value + - parts """ thrift_spec = None @@ -7130,8 +6564,20 @@ def read(self, iprot): else: iprot.skip(ftype) elif fid == 3: - if ftype == TType.STRING: - self.value = iprot.readString() + if ftype == TType.LIST: + self.parts = [] + (_etype281, _size278) = iprot.readListBegin() + if _size278 >= 0: + for _i282 in range(_size278): + _elem283 = PartItem() + _elem283.read(iprot) + self.parts.append(_elem283) + else: + while iprot.peekList(): + _elem284 = PartItem() + _elem284.read(iprot) + self.parts.append(_elem284) + iprot.readListEnd() else: iprot.skip(ftype) else: @@ -7146,7 +6592,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('GetResp') + oprot.writeStructBegin('ListPartsResp') if self.code != None: oprot.writeFieldBegin('code', TType.I32, 1) oprot.writeI32(self.code) @@ -7155,9 +6601,12 @@ def write(self, oprot): oprot.writeFieldBegin('leader', TType.STRUCT, 2) self.leader.write(oprot) oprot.writeFieldEnd() - if self.value != None: - oprot.writeFieldBegin('value', TType.STRING, 3) - oprot.writeString(self.value) + if self.parts != None: + oprot.writeFieldBegin('parts', TType.LIST, 3) + oprot.writeListBegin(TType.STRUCT, len(self.parts)) + for iter285 in self.parts: + iter285.write(oprot) + oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -7173,10 +6622,10 @@ def __repr__(self): value = pprint.pformat(self.leader, indent=0) value = padding.join(value.splitlines(True)) L.append(' leader=%s' % (value)) - if self.value is not None: - value = pprint.pformat(self.value, indent=0) + if self.parts is not None: + value = pprint.pformat(self.parts, indent=0) value = padding.join(value.splitlines(True)) - L.append(' value=%s' % (value)) + L.append(' parts=%s' % (value)) return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') def __eq__(self, other): @@ -7191,11 +6640,10 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -class MultiGetReq: +class GetPartsAllocReq: """ Attributes: - - segment - - keys + - space_id """ thrift_spec = None @@ -7219,23 +6667,8 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRING: - self.segment = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.LIST: - self.keys = [] - (_etype334, _size331) = iprot.readListBegin() - if _size331 >= 0: - for _i335 in range(_size331): - _elem336 = iprot.readString() - self.keys.append(_elem336) - else: - while iprot.peekList(): - _elem337 = iprot.readString() - self.keys.append(_elem337) - iprot.readListEnd() + if ftype == TType.I32: + self.space_id = iprot.readI32() else: iprot.skip(ftype) else: @@ -7250,17 +6683,10 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('MultiGetReq') - if self.segment != None: - oprot.writeFieldBegin('segment', TType.STRING, 1) - oprot.writeString(self.segment) - oprot.writeFieldEnd() - if self.keys != None: - oprot.writeFieldBegin('keys', TType.LIST, 2) - oprot.writeListBegin(TType.STRING, len(self.keys)) - for iter338 in self.keys: - oprot.writeString(iter338) - oprot.writeListEnd() + oprot.writeStructBegin('GetPartsAllocReq') + if self.space_id != None: + oprot.writeFieldBegin('space_id', TType.I32, 1) + oprot.writeI32(self.space_id) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -7268,14 +6694,10 @@ def write(self, oprot): def __repr__(self): L = [] padding = ' ' * 4 - if self.segment is not None: - value = pprint.pformat(self.segment, indent=0) - value = padding.join(value.splitlines(True)) - L.append(' segment=%s' % (value)) - if self.keys is not None: - value = pprint.pformat(self.keys, indent=0) + if self.space_id is not None: + value = pprint.pformat(self.space_id, indent=0) value = padding.join(value.splitlines(True)) - L.append(' keys=%s' % (value)) + L.append(' space_id=%s' % (value)) return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') def __eq__(self, other): @@ -7290,12 +6712,13 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -class MultiGetResp: +class GetPartsAllocResp: """ Attributes: - code - leader - - values + - parts + - terms """ thrift_spec = None @@ -7330,18 +6753,61 @@ def read(self, iprot): else: iprot.skip(ftype) elif fid == 3: - if ftype == TType.LIST: - self.values = [] - (_etype342, _size339) = iprot.readListBegin() - if _size339 >= 0: - for _i343 in range(_size339): - _elem344 = iprot.readString() - self.values.append(_elem344) + if ftype == TType.MAP: + self.parts = {} + (_ktype287, _vtype288, _size286 ) = iprot.readMapBegin() + if _size286 >= 0: + for _i290 in range(_size286): + _key291 = iprot.readI32() + _val292 = [] + (_etype296, _size293) = iprot.readListBegin() + if _size293 >= 0: + for _i297 in range(_size293): + _elem298 = nebula3.common.ttypes.HostAddr() + _elem298.read(iprot) + _val292.append(_elem298) + else: + while iprot.peekList(): + _elem299 = nebula3.common.ttypes.HostAddr() + _elem299.read(iprot) + _val292.append(_elem299) + iprot.readListEnd() + self.parts[_key291] = _val292 else: - while iprot.peekList(): - _elem345 = iprot.readString() - self.values.append(_elem345) - iprot.readListEnd() + while iprot.peekMap(): + _key300 = iprot.readI32() + _val301 = [] + (_etype305, _size302) = iprot.readListBegin() + if _size302 >= 0: + for _i306 in range(_size302): + _elem307 = nebula3.common.ttypes.HostAddr() + _elem307.read(iprot) + _val301.append(_elem307) + else: + while iprot.peekList(): + _elem308 = nebula3.common.ttypes.HostAddr() + _elem308.read(iprot) + _val301.append(_elem308) + iprot.readListEnd() + self.parts[_key300] = _val301 + iprot.readMapEnd() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.MAP: + self.terms = {} + (_ktype310, _vtype311, _size309 ) = iprot.readMapBegin() + if _size309 >= 0: + for _i313 in range(_size309): + _key314 = iprot.readI32() + _val315 = iprot.readI64() + self.terms[_key314] = _val315 + else: + while iprot.peekMap(): + _key316 = iprot.readI32() + _val317 = iprot.readI64() + self.terms[_key316] = _val317 + iprot.readMapEnd() else: iprot.skip(ftype) else: @@ -7356,7 +6822,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('MultiGetResp') + oprot.writeStructBegin('GetPartsAllocResp') if self.code != None: oprot.writeFieldBegin('code', TType.I32, 1) oprot.writeI32(self.code) @@ -7365,12 +6831,24 @@ def write(self, oprot): oprot.writeFieldBegin('leader', TType.STRUCT, 2) self.leader.write(oprot) oprot.writeFieldEnd() - if self.values != None: - oprot.writeFieldBegin('values', TType.LIST, 3) - oprot.writeListBegin(TType.STRING, len(self.values)) - for iter346 in self.values: - oprot.writeString(iter346) - oprot.writeListEnd() + if self.parts != None: + oprot.writeFieldBegin('parts', TType.MAP, 3) + oprot.writeMapBegin(TType.I32, TType.LIST, len(self.parts)) + for kiter318,viter319 in self.parts.items(): + oprot.writeI32(kiter318) + oprot.writeListBegin(TType.STRUCT, len(viter319)) + for iter320 in viter319: + iter320.write(oprot) + oprot.writeListEnd() + oprot.writeMapEnd() + oprot.writeFieldEnd() + if self.terms != None: + oprot.writeFieldBegin('terms', TType.MAP, 4) + oprot.writeMapBegin(TType.I32, TType.I64, len(self.terms)) + for kiter321,viter322 in self.terms.items(): + oprot.writeI32(kiter321) + oprot.writeI64(viter322) + oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -7386,10 +6864,14 @@ def __repr__(self): value = pprint.pformat(self.leader, indent=0) value = padding.join(value.splitlines(True)) L.append(' leader=%s' % (value)) - if self.values is not None: - value = pprint.pformat(self.values, indent=0) + if self.parts is not None: + value = pprint.pformat(self.parts, indent=0) value = padding.join(value.splitlines(True)) - L.append(' values=%s' % (value)) + L.append(' parts=%s' % (value)) + if self.terms is not None: + value = pprint.pformat(self.terms, indent=0) + value = padding.join(value.splitlines(True)) + L.append(' terms=%s' % (value)) return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') def __eq__(self, other): @@ -7404,11 +6886,10 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -class RemoveReq: +class GetWorkerIdReq: """ Attributes: - - segment - - key + - host """ thrift_spec = None @@ -7433,12 +6914,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.segment = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.key = iprot.readString() + self.host = iprot.readString() else: iprot.skip(ftype) else: @@ -7453,14 +6929,10 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('RemoveReq') - if self.segment != None: - oprot.writeFieldBegin('segment', TType.STRING, 1) - oprot.writeString(self.segment) - oprot.writeFieldEnd() - if self.key != None: - oprot.writeFieldBegin('key', TType.STRING, 2) - oprot.writeString(self.key) + oprot.writeStructBegin('GetWorkerIdReq') + if self.host != None: + oprot.writeFieldBegin('host', TType.STRING, 1) + oprot.writeString(self.host) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -7468,14 +6940,10 @@ def write(self, oprot): def __repr__(self): L = [] padding = ' ' * 4 - if self.segment is not None: - value = pprint.pformat(self.segment, indent=0) - value = padding.join(value.splitlines(True)) - L.append(' segment=%s' % (value)) - if self.key is not None: - value = pprint.pformat(self.key, indent=0) + if self.host is not None: + value = pprint.pformat(self.host, indent=0) value = padding.join(value.splitlines(True)) - L.append(' key=%s' % (value)) + L.append(' host=%s' % (value)) return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') def __eq__(self, other): @@ -7490,12 +6958,12 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -class RemoveRangeReq: +class GetWorkerIdResp: """ Attributes: - - segment - - start - - end + - code + - leader + - workerid """ thrift_spec = None @@ -7519,18 +6987,19 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRING: - self.segment = iprot.readString() + if ftype == TType.I32: + self.code = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: - if ftype == TType.STRING: - self.start = iprot.readString() + if ftype == TType.STRUCT: + self.leader = nebula3.common.ttypes.HostAddr() + self.leader.read(iprot) else: iprot.skip(ftype) elif fid == 3: - if ftype == TType.STRING: - self.end = iprot.readString() + if ftype == TType.I64: + self.workerid = iprot.readI64() else: iprot.skip(ftype) else: @@ -7545,18 +7014,18 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('RemoveRangeReq') - if self.segment != None: - oprot.writeFieldBegin('segment', TType.STRING, 1) - oprot.writeString(self.segment) + oprot.writeStructBegin('GetWorkerIdResp') + if self.code != None: + oprot.writeFieldBegin('code', TType.I32, 1) + oprot.writeI32(self.code) oprot.writeFieldEnd() - if self.start != None: - oprot.writeFieldBegin('start', TType.STRING, 2) - oprot.writeString(self.start) + if self.leader != None: + oprot.writeFieldBegin('leader', TType.STRUCT, 2) + self.leader.write(oprot) oprot.writeFieldEnd() - if self.end != None: - oprot.writeFieldBegin('end', TType.STRING, 3) - oprot.writeString(self.end) + if self.workerid != None: + oprot.writeFieldBegin('workerid', TType.I64, 3) + oprot.writeI64(self.workerid) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -7564,18 +7033,18 @@ def write(self, oprot): def __repr__(self): L = [] padding = ' ' * 4 - if self.segment is not None: - value = pprint.pformat(self.segment, indent=0) + if self.code is not None: + value = pprint.pformat(self.code, indent=0) value = padding.join(value.splitlines(True)) - L.append(' segment=%s' % (value)) - if self.start is not None: - value = pprint.pformat(self.start, indent=0) + L.append(' code=%s' % (value)) + if self.leader is not None: + value = pprint.pformat(self.leader, indent=0) value = padding.join(value.splitlines(True)) - L.append(' start=%s' % (value)) - if self.end is not None: - value = pprint.pformat(self.end, indent=0) + L.append(' leader=%s' % (value)) + if self.workerid is not None: + value = pprint.pformat(self.workerid, indent=0) value = padding.join(value.splitlines(True)) - L.append(' end=%s' % (value)) + L.append(' workerid=%s' % (value)) return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') def __eq__(self, other): @@ -7590,12 +7059,10 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -class ScanReq: +class GetSegmentIdReq: """ Attributes: - - segment - - start - - end + - length """ thrift_spec = None @@ -7619,18 +7086,8 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRING: - self.segment = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.start = iprot.readString() - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRING: - self.end = iprot.readString() + if ftype == TType.I64: + self.length = iprot.readI64() else: iprot.skip(ftype) else: @@ -7645,18 +7102,10 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('ScanReq') - if self.segment != None: - oprot.writeFieldBegin('segment', TType.STRING, 1) - oprot.writeString(self.segment) - oprot.writeFieldEnd() - if self.start != None: - oprot.writeFieldBegin('start', TType.STRING, 2) - oprot.writeString(self.start) - oprot.writeFieldEnd() - if self.end != None: - oprot.writeFieldBegin('end', TType.STRING, 3) - oprot.writeString(self.end) + oprot.writeStructBegin('GetSegmentIdReq') + if self.length != None: + oprot.writeFieldBegin('length', TType.I64, 1) + oprot.writeI64(self.length) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -7664,18 +7113,10 @@ def write(self, oprot): def __repr__(self): L = [] padding = ' ' * 4 - if self.segment is not None: - value = pprint.pformat(self.segment, indent=0) - value = padding.join(value.splitlines(True)) - L.append(' segment=%s' % (value)) - if self.start is not None: - value = pprint.pformat(self.start, indent=0) - value = padding.join(value.splitlines(True)) - L.append(' start=%s' % (value)) - if self.end is not None: - value = pprint.pformat(self.end, indent=0) + if self.length is not None: + value = pprint.pformat(self.length, indent=0) value = padding.join(value.splitlines(True)) - L.append(' end=%s' % (value)) + L.append(' length=%s' % (value)) return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') def __eq__(self, other): @@ -7690,12 +7131,12 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -class ScanResp: +class GetSegmentIdResp: """ Attributes: - code - leader - - values + - segment_id """ thrift_spec = None @@ -7730,18 +7171,8 @@ def read(self, iprot): else: iprot.skip(ftype) elif fid == 3: - if ftype == TType.LIST: - self.values = [] - (_etype350, _size347) = iprot.readListBegin() - if _size347 >= 0: - for _i351 in range(_size347): - _elem352 = iprot.readString() - self.values.append(_elem352) - else: - while iprot.peekList(): - _elem353 = iprot.readString() - self.values.append(_elem353) - iprot.readListEnd() + if ftype == TType.I64: + self.segment_id = iprot.readI64() else: iprot.skip(ftype) else: @@ -7756,7 +7187,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('ScanResp') + oprot.writeStructBegin('GetSegmentIdResp') if self.code != None: oprot.writeFieldBegin('code', TType.I32, 1) oprot.writeI32(self.code) @@ -7765,12 +7196,9 @@ def write(self, oprot): oprot.writeFieldBegin('leader', TType.STRUCT, 2) self.leader.write(oprot) oprot.writeFieldEnd() - if self.values != None: - oprot.writeFieldBegin('values', TType.LIST, 3) - oprot.writeListBegin(TType.STRING, len(self.values)) - for iter354 in self.values: - oprot.writeString(iter354) - oprot.writeListEnd() + if self.segment_id != None: + oprot.writeFieldBegin('segment_id', TType.I64, 3) + oprot.writeI64(self.segment_id) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -7786,10 +7214,10 @@ def __repr__(self): value = pprint.pformat(self.leader, indent=0) value = padding.join(value.splitlines(True)) L.append(' leader=%s' % (value)) - if self.values is not None: - value = pprint.pformat(self.values, indent=0) + if self.segment_id is not None: + value = pprint.pformat(self.segment_id, indent=0) value = padding.join(value.splitlines(True)) - L.append(' values=%s' % (value)) + L.append(' segment_id=%s' % (value)) return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') def __eq__(self, other): @@ -8048,15 +7476,15 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.part_list = [] - (_etype358, _size355) = iprot.readListBegin() - if _size355 >= 0: - for _i359 in range(_size355): - _elem360 = iprot.readI32() - self.part_list.append(_elem360) + (_etype326, _size323) = iprot.readListBegin() + if _size323 >= 0: + for _i327 in range(_size323): + _elem328 = iprot.readI32() + self.part_list.append(_elem328) else: while iprot.peekList(): - _elem361 = iprot.readI32() - self.part_list.append(_elem361) + _elem329 = iprot.readI32() + self.part_list.append(_elem329) iprot.readListEnd() else: iprot.skip(ftype) @@ -8076,8 +7504,8 @@ def write(self, oprot): if self.part_list != None: oprot.writeFieldBegin('part_list', TType.LIST, 1) oprot.writeListBegin(TType.I32, len(self.part_list)) - for iter362 in self.part_list: - oprot.writeI32(iter362) + for iter330 in self.part_list: + oprot.writeI32(iter330) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8156,41 +7584,41 @@ def read(self, iprot): elif fid == 4: if ftype == TType.MAP: self.leader_partIds = {} - (_ktype364, _vtype365, _size363 ) = iprot.readMapBegin() - if _size363 >= 0: - for _i367 in range(_size363): - _key368 = iprot.readI32() - _val369 = [] - (_etype373, _size370) = iprot.readListBegin() - if _size370 >= 0: - for _i374 in range(_size370): - _elem375 = LeaderInfo() - _elem375.read(iprot) - _val369.append(_elem375) + (_ktype332, _vtype333, _size331 ) = iprot.readMapBegin() + if _size331 >= 0: + for _i335 in range(_size331): + _key336 = iprot.readI32() + _val337 = [] + (_etype341, _size338) = iprot.readListBegin() + if _size338 >= 0: + for _i342 in range(_size338): + _elem343 = LeaderInfo() + _elem343.read(iprot) + _val337.append(_elem343) else: while iprot.peekList(): - _elem376 = LeaderInfo() - _elem376.read(iprot) - _val369.append(_elem376) + _elem344 = LeaderInfo() + _elem344.read(iprot) + _val337.append(_elem344) iprot.readListEnd() - self.leader_partIds[_key368] = _val369 + self.leader_partIds[_key336] = _val337 else: while iprot.peekMap(): - _key377 = iprot.readI32() - _val378 = [] - (_etype382, _size379) = iprot.readListBegin() - if _size379 >= 0: - for _i383 in range(_size379): - _elem384 = LeaderInfo() - _elem384.read(iprot) - _val378.append(_elem384) + _key345 = iprot.readI32() + _val346 = [] + (_etype350, _size347) = iprot.readListBegin() + if _size347 >= 0: + for _i351 in range(_size347): + _elem352 = LeaderInfo() + _elem352.read(iprot) + _val346.append(_elem352) else: while iprot.peekList(): - _elem385 = LeaderInfo() - _elem385.read(iprot) - _val378.append(_elem385) + _elem353 = LeaderInfo() + _elem353.read(iprot) + _val346.append(_elem353) iprot.readListEnd() - self.leader_partIds[_key377] = _val378 + self.leader_partIds[_key345] = _val346 iprot.readMapEnd() else: iprot.skip(ftype) @@ -8202,45 +7630,45 @@ def read(self, iprot): elif fid == 6: if ftype == TType.MAP: self.disk_parts = {} - (_ktype387, _vtype388, _size386 ) = iprot.readMapBegin() - if _size386 >= 0: - for _i390 in range(_size386): - _key391 = iprot.readI32() - _val392 = {} - (_ktype394, _vtype395, _size393 ) = iprot.readMapBegin() - if _size393 >= 0: - for _i397 in range(_size393): - _key398 = iprot.readString() - _val399 = PartitionList() - _val399.read(iprot) - _val392[_key398] = _val399 + (_ktype355, _vtype356, _size354 ) = iprot.readMapBegin() + if _size354 >= 0: + for _i358 in range(_size354): + _key359 = iprot.readI32() + _val360 = {} + (_ktype362, _vtype363, _size361 ) = iprot.readMapBegin() + if _size361 >= 0: + for _i365 in range(_size361): + _key366 = iprot.readString() + _val367 = PartitionList() + _val367.read(iprot) + _val360[_key366] = _val367 else: while iprot.peekMap(): - _key400 = iprot.readString() - _val401 = PartitionList() - _val401.read(iprot) - _val392[_key400] = _val401 + _key368 = iprot.readString() + _val369 = PartitionList() + _val369.read(iprot) + _val360[_key368] = _val369 iprot.readMapEnd() - self.disk_parts[_key391] = _val392 + self.disk_parts[_key359] = _val360 else: while iprot.peekMap(): - _key402 = iprot.readI32() - _val403 = {} - (_ktype405, _vtype406, _size404 ) = iprot.readMapBegin() - if _size404 >= 0: - for _i408 in range(_size404): - _key409 = iprot.readString() - _val410 = PartitionList() - _val410.read(iprot) - _val403[_key409] = _val410 + _key370 = iprot.readI32() + _val371 = {} + (_ktype373, _vtype374, _size372 ) = iprot.readMapBegin() + if _size372 >= 0: + for _i376 in range(_size372): + _key377 = iprot.readString() + _val378 = PartitionList() + _val378.read(iprot) + _val371[_key377] = _val378 else: while iprot.peekMap(): - _key411 = iprot.readString() - _val412 = PartitionList() - _val412.read(iprot) - _val403[_key411] = _val412 + _key379 = iprot.readString() + _val380 = PartitionList() + _val380.read(iprot) + _val371[_key379] = _val380 iprot.readMapEnd() - self.disk_parts[_key402] = _val403 + self.disk_parts[_key370] = _val371 iprot.readMapEnd() else: iprot.skip(ftype) @@ -8283,11 +7711,11 @@ def write(self, oprot): if self.leader_partIds != None: oprot.writeFieldBegin('leader_partIds', TType.MAP, 4) oprot.writeMapBegin(TType.I32, TType.LIST, len(self.leader_partIds)) - for kiter413,viter414 in self.leader_partIds.items(): - oprot.writeI32(kiter413) - oprot.writeListBegin(TType.STRUCT, len(viter414)) - for iter415 in viter414: - iter415.write(oprot) + for kiter381,viter382 in self.leader_partIds.items(): + oprot.writeI32(kiter381) + oprot.writeListBegin(TType.STRUCT, len(viter382)) + for iter383 in viter382: + iter383.write(oprot) oprot.writeListEnd() oprot.writeMapEnd() oprot.writeFieldEnd() @@ -8298,12 +7726,12 @@ def write(self, oprot): if self.disk_parts != None: oprot.writeFieldBegin('disk_parts', TType.MAP, 6) oprot.writeMapBegin(TType.I32, TType.MAP, len(self.disk_parts)) - for kiter416,viter417 in self.disk_parts.items(): - oprot.writeI32(kiter416) - oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(viter417)) - for kiter418,viter419 in viter417.items(): - oprot.writeString(kiter418) - viter419.write(oprot) + for kiter384,viter385 in self.disk_parts.items(): + oprot.writeI32(kiter384) + oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(viter385)) + for kiter386,viter387 in viter385.items(): + oprot.writeString(kiter386) + viter387.write(oprot) oprot.writeMapEnd() oprot.writeMapEnd() oprot.writeFieldEnd() @@ -8612,17 +8040,17 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.service_list = [] - (_etype423, _size420) = iprot.readListBegin() - if _size420 >= 0: - for _i424 in range(_size420): - _elem425 = ServiceInfo() - _elem425.read(iprot) - self.service_list.append(_elem425) + (_etype391, _size388) = iprot.readListBegin() + if _size388 >= 0: + for _i392 in range(_size388): + _elem393 = ServiceInfo() + _elem393.read(iprot) + self.service_list.append(_elem393) else: while iprot.peekList(): - _elem426 = ServiceInfo() - _elem426.read(iprot) - self.service_list.append(_elem426) + _elem394 = ServiceInfo() + _elem394.read(iprot) + self.service_list.append(_elem394) iprot.readListEnd() else: iprot.skip(ftype) @@ -8650,8 +8078,8 @@ def write(self, oprot): if self.service_list != None: oprot.writeFieldBegin('service_list', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.service_list)) - for iter427 in self.service_list: - iter427.write(oprot) + for iter395 in self.service_list: + iter395.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8822,17 +8250,17 @@ def read(self, iprot): elif fid == 4: if ftype == TType.LIST: self.fields = [] - (_etype431, _size428) = iprot.readListBegin() - if _size428 >= 0: - for _i432 in range(_size428): - _elem433 = IndexFieldDef() - _elem433.read(iprot) - self.fields.append(_elem433) + (_etype399, _size396) = iprot.readListBegin() + if _size396 >= 0: + for _i400 in range(_size396): + _elem401 = IndexFieldDef() + _elem401.read(iprot) + self.fields.append(_elem401) else: while iprot.peekList(): - _elem434 = IndexFieldDef() - _elem434.read(iprot) - self.fields.append(_elem434) + _elem402 = IndexFieldDef() + _elem402.read(iprot) + self.fields.append(_elem402) iprot.readListEnd() else: iprot.skip(ftype) @@ -8880,8 +8308,8 @@ def write(self, oprot): if self.fields != None: oprot.writeFieldBegin('fields', TType.LIST, 4) oprot.writeListBegin(TType.STRUCT, len(self.fields)) - for iter435 in self.fields: - iter435.write(oprot) + for iter403 in self.fields: + iter403.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.if_not_exists != None: @@ -9346,17 +8774,17 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.items = [] - (_etype439, _size436) = iprot.readListBegin() - if _size436 >= 0: - for _i440 in range(_size436): - _elem441 = IndexItem() - _elem441.read(iprot) - self.items.append(_elem441) + (_etype407, _size404) = iprot.readListBegin() + if _size404 >= 0: + for _i408 in range(_size404): + _elem409 = IndexItem() + _elem409.read(iprot) + self.items.append(_elem409) else: while iprot.peekList(): - _elem442 = IndexItem() - _elem442.read(iprot) - self.items.append(_elem442) + _elem410 = IndexItem() + _elem410.read(iprot) + self.items.append(_elem410) iprot.readListEnd() else: iprot.skip(ftype) @@ -9384,8 +8812,8 @@ def write(self, oprot): if self.items != None: oprot.writeFieldBegin('items', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.items)) - for iter443 in self.items: - iter443.write(oprot) + for iter411 in self.items: + iter411.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9470,17 +8898,17 @@ def read(self, iprot): elif fid == 4: if ftype == TType.LIST: self.fields = [] - (_etype447, _size444) = iprot.readListBegin() - if _size444 >= 0: - for _i448 in range(_size444): - _elem449 = IndexFieldDef() - _elem449.read(iprot) - self.fields.append(_elem449) + (_etype415, _size412) = iprot.readListBegin() + if _size412 >= 0: + for _i416 in range(_size412): + _elem417 = IndexFieldDef() + _elem417.read(iprot) + self.fields.append(_elem417) else: while iprot.peekList(): - _elem450 = IndexFieldDef() - _elem450.read(iprot) - self.fields.append(_elem450) + _elem418 = IndexFieldDef() + _elem418.read(iprot) + self.fields.append(_elem418) iprot.readListEnd() else: iprot.skip(ftype) @@ -9528,8 +8956,8 @@ def write(self, oprot): if self.fields != None: oprot.writeFieldBegin('fields', TType.LIST, 4) oprot.writeListBegin(TType.STRUCT, len(self.fields)) - for iter451 in self.fields: - iter451.write(oprot) + for iter419 in self.fields: + iter419.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.if_not_exists != None: @@ -9994,17 +9422,17 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.items = [] - (_etype455, _size452) = iprot.readListBegin() - if _size452 >= 0: - for _i456 in range(_size452): - _elem457 = IndexItem() - _elem457.read(iprot) - self.items.append(_elem457) + (_etype423, _size420) = iprot.readListBegin() + if _size420 >= 0: + for _i424 in range(_size420): + _elem425 = IndexItem() + _elem425.read(iprot) + self.items.append(_elem425) else: while iprot.peekList(): - _elem458 = IndexItem() - _elem458.read(iprot) - self.items.append(_elem458) + _elem426 = IndexItem() + _elem426.read(iprot) + self.items.append(_elem426) iprot.readListEnd() else: iprot.skip(ftype) @@ -10032,8 +9460,8 @@ def write(self, oprot): if self.items != None: oprot.writeFieldBegin('items', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.items)) - for iter459 in self.items: - iter459.write(oprot) + for iter427 in self.items: + iter427.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -10668,17 +10096,17 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.users = {} - (_ktype461, _vtype462, _size460 ) = iprot.readMapBegin() - if _size460 >= 0: - for _i464 in range(_size460): - _key465 = iprot.readString() - _val466 = iprot.readString() - self.users[_key465] = _val466 + (_ktype429, _vtype430, _size428 ) = iprot.readMapBegin() + if _size428 >= 0: + for _i432 in range(_size428): + _key433 = iprot.readString() + _val434 = iprot.readString() + self.users[_key433] = _val434 else: while iprot.peekMap(): - _key467 = iprot.readString() - _val468 = iprot.readString() - self.users[_key467] = _val468 + _key435 = iprot.readString() + _val436 = iprot.readString() + self.users[_key435] = _val436 iprot.readMapEnd() else: iprot.skip(ftype) @@ -10706,9 +10134,9 @@ def write(self, oprot): if self.users != None: oprot.writeFieldBegin('users', TType.MAP, 3) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.users)) - for kiter469,viter470 in self.users.items(): - oprot.writeString(kiter469) - oprot.writeString(viter470) + for kiter437,viter438 in self.users.items(): + oprot.writeString(kiter437) + oprot.writeString(viter438) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -10857,17 +10285,17 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.roles = [] - (_etype474, _size471) = iprot.readListBegin() - if _size471 >= 0: - for _i475 in range(_size471): - _elem476 = RoleItem() - _elem476.read(iprot) - self.roles.append(_elem476) + (_etype442, _size439) = iprot.readListBegin() + if _size439 >= 0: + for _i443 in range(_size439): + _elem444 = RoleItem() + _elem444.read(iprot) + self.roles.append(_elem444) else: while iprot.peekList(): - _elem477 = RoleItem() - _elem477.read(iprot) - self.roles.append(_elem477) + _elem445 = RoleItem() + _elem445.read(iprot) + self.roles.append(_elem445) iprot.readListEnd() else: iprot.skip(ftype) @@ -10895,8 +10323,8 @@ def write(self, oprot): if self.roles != None: oprot.writeFieldBegin('roles', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.roles)) - for iter478 in self.roles: - iter478.write(oprot) + for iter446 in self.roles: + iter446.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11375,17 +10803,17 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.items = [] - (_etype482, _size479) = iprot.readListBegin() - if _size479 >= 0: - for _i483 in range(_size479): - _elem484 = ConfigItem() - _elem484.read(iprot) - self.items.append(_elem484) + (_etype450, _size447) = iprot.readListBegin() + if _size447 >= 0: + for _i451 in range(_size447): + _elem452 = ConfigItem() + _elem452.read(iprot) + self.items.append(_elem452) else: while iprot.peekList(): - _elem485 = ConfigItem() - _elem485.read(iprot) - self.items.append(_elem485) + _elem453 = ConfigItem() + _elem453.read(iprot) + self.items.append(_elem453) iprot.readListEnd() else: iprot.skip(ftype) @@ -11405,8 +10833,8 @@ def write(self, oprot): if self.items != None: oprot.writeFieldBegin('items', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.items)) - for iter486 in self.items: - iter486.write(oprot) + for iter454 in self.items: + iter454.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11548,17 +10976,17 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.items = [] - (_etype490, _size487) = iprot.readListBegin() - if _size487 >= 0: - for _i491 in range(_size487): - _elem492 = ConfigItem() - _elem492.read(iprot) - self.items.append(_elem492) + (_etype458, _size455) = iprot.readListBegin() + if _size455 >= 0: + for _i459 in range(_size455): + _elem460 = ConfigItem() + _elem460.read(iprot) + self.items.append(_elem460) else: while iprot.peekList(): - _elem493 = ConfigItem() - _elem493.read(iprot) - self.items.append(_elem493) + _elem461 = ConfigItem() + _elem461.read(iprot) + self.items.append(_elem461) iprot.readListEnd() else: iprot.skip(ftype) @@ -11586,8 +11014,8 @@ def write(self, oprot): if self.items != None: oprot.writeFieldBegin('items', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.items)) - for iter494 in self.items: - iter494.write(oprot) + for iter462 in self.items: + iter462.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11823,17 +11251,17 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.items = [] - (_etype498, _size495) = iprot.readListBegin() - if _size495 >= 0: - for _i499 in range(_size495): - _elem500 = ConfigItem() - _elem500.read(iprot) - self.items.append(_elem500) + (_etype466, _size463) = iprot.readListBegin() + if _size463 >= 0: + for _i467 in range(_size463): + _elem468 = ConfigItem() + _elem468.read(iprot) + self.items.append(_elem468) else: while iprot.peekList(): - _elem501 = ConfigItem() - _elem501.read(iprot) - self.items.append(_elem501) + _elem469 = ConfigItem() + _elem469.read(iprot) + self.items.append(_elem469) iprot.readListEnd() else: iprot.skip(ftype) @@ -11861,8 +11289,8 @@ def write(self, oprot): if self.items != None: oprot.writeFieldBegin('items', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.items)) - for iter502 in self.items: - iter502.write(oprot) + for iter470 in self.items: + iter470.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12219,17 +11647,17 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.snapshots = [] - (_etype506, _size503) = iprot.readListBegin() - if _size503 >= 0: - for _i507 in range(_size503): - _elem508 = Snapshot() - _elem508.read(iprot) - self.snapshots.append(_elem508) + (_etype474, _size471) = iprot.readListBegin() + if _size471 >= 0: + for _i475 in range(_size471): + _elem476 = Snapshot() + _elem476.read(iprot) + self.snapshots.append(_elem476) else: while iprot.peekList(): - _elem509 = Snapshot() - _elem509.read(iprot) - self.snapshots.append(_elem509) + _elem477 = Snapshot() + _elem477.read(iprot) + self.snapshots.append(_elem477) iprot.readListEnd() else: iprot.skip(ftype) @@ -12257,8 +11685,8 @@ def write(self, oprot): if self.snapshots != None: oprot.writeFieldBegin('snapshots', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.snapshots)) - for iter510 in self.snapshots: - iter510.write(oprot) + for iter478 in self.snapshots: + iter478.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12493,17 +11921,17 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.statuses = [] - (_etype514, _size511) = iprot.readListBegin() - if _size511 >= 0: - for _i515 in range(_size511): - _elem516 = IndexStatus() - _elem516.read(iprot) - self.statuses.append(_elem516) + (_etype482, _size479) = iprot.readListBegin() + if _size479 >= 0: + for _i483 in range(_size479): + _elem484 = IndexStatus() + _elem484.read(iprot) + self.statuses.append(_elem484) else: while iprot.peekList(): - _elem517 = IndexStatus() - _elem517.read(iprot) - self.statuses.append(_elem517) + _elem485 = IndexStatus() + _elem485.read(iprot) + self.statuses.append(_elem485) iprot.readListEnd() else: iprot.skip(ftype) @@ -12531,8 +11959,8 @@ def write(self, oprot): if self.statuses != None: oprot.writeFieldBegin('statuses', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.statuses)) - for iter518 in self.statuses: - iter518.write(oprot) + for iter486 in self.statuses: + iter486.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12597,15 +12025,15 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.zones = [] - (_etype522, _size519) = iprot.readListBegin() - if _size519 >= 0: - for _i523 in range(_size519): - _elem524 = iprot.readString() - self.zones.append(_elem524) + (_etype490, _size487) = iprot.readListBegin() + if _size487 >= 0: + for _i491 in range(_size487): + _elem492 = iprot.readString() + self.zones.append(_elem492) else: while iprot.peekList(): - _elem525 = iprot.readString() - self.zones.append(_elem525) + _elem493 = iprot.readString() + self.zones.append(_elem493) iprot.readListEnd() else: iprot.skip(ftype) @@ -12630,8 +12058,8 @@ def write(self, oprot): if self.zones != None: oprot.writeFieldBegin('zones', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.zones)) - for iter526 in self.zones: - oprot.writeString(iter526) + for iter494 in self.zones: + oprot.writeString(iter494) oprot.writeListEnd() oprot.writeFieldEnd() if self.zone_name != None: @@ -12773,41 +12201,41 @@ def read(self, iprot): elif fid == 2: if ftype == TType.MAP: self.zone_items = {} - (_ktype528, _vtype529, _size527 ) = iprot.readMapBegin() - if _size527 >= 0: - for _i531 in range(_size527): - _key532 = iprot.readString() - _val533 = [] - (_etype537, _size534) = iprot.readListBegin() - if _size534 >= 0: - for _i538 in range(_size534): - _elem539 = nebula3.common.ttypes.HostAddr() - _elem539.read(iprot) - _val533.append(_elem539) + (_ktype496, _vtype497, _size495 ) = iprot.readMapBegin() + if _size495 >= 0: + for _i499 in range(_size495): + _key500 = iprot.readString() + _val501 = [] + (_etype505, _size502) = iprot.readListBegin() + if _size502 >= 0: + for _i506 in range(_size502): + _elem507 = nebula3.common.ttypes.HostAddr() + _elem507.read(iprot) + _val501.append(_elem507) else: while iprot.peekList(): - _elem540 = nebula3.common.ttypes.HostAddr() - _elem540.read(iprot) - _val533.append(_elem540) + _elem508 = nebula3.common.ttypes.HostAddr() + _elem508.read(iprot) + _val501.append(_elem508) iprot.readListEnd() - self.zone_items[_key532] = _val533 + self.zone_items[_key500] = _val501 else: while iprot.peekMap(): - _key541 = iprot.readString() - _val542 = [] - (_etype546, _size543) = iprot.readListBegin() - if _size543 >= 0: - for _i547 in range(_size543): - _elem548 = nebula3.common.ttypes.HostAddr() - _elem548.read(iprot) - _val542.append(_elem548) + _key509 = iprot.readString() + _val510 = [] + (_etype514, _size511) = iprot.readListBegin() + if _size511 >= 0: + for _i515 in range(_size511): + _elem516 = nebula3.common.ttypes.HostAddr() + _elem516.read(iprot) + _val510.append(_elem516) else: while iprot.peekList(): - _elem549 = nebula3.common.ttypes.HostAddr() - _elem549.read(iprot) - _val542.append(_elem549) + _elem517 = nebula3.common.ttypes.HostAddr() + _elem517.read(iprot) + _val510.append(_elem517) iprot.readListEnd() - self.zone_items[_key541] = _val542 + self.zone_items[_key509] = _val510 iprot.readMapEnd() else: iprot.skip(ftype) @@ -12831,11 +12259,11 @@ def write(self, oprot): if self.zone_items != None: oprot.writeFieldBegin('zone_items', TType.MAP, 2) oprot.writeMapBegin(TType.STRING, TType.LIST, len(self.zone_items)) - for kiter550,viter551 in self.zone_items.items(): - oprot.writeString(kiter550) - oprot.writeListBegin(TType.STRUCT, len(viter551)) - for iter552 in viter551: - iter552.write(oprot) + for kiter518,viter519 in self.zone_items.items(): + oprot.writeString(kiter518) + oprot.writeListBegin(TType.STRUCT, len(viter519)) + for iter520 in viter519: + iter520.write(oprot) oprot.writeListEnd() oprot.writeMapEnd() oprot.writeFieldEnd() @@ -12984,17 +12412,17 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.hosts = [] - (_etype556, _size553) = iprot.readListBegin() - if _size553 >= 0: - for _i557 in range(_size553): - _elem558 = nebula3.common.ttypes.HostAddr() - _elem558.read(iprot) - self.hosts.append(_elem558) + (_etype524, _size521) = iprot.readListBegin() + if _size521 >= 0: + for _i525 in range(_size521): + _elem526 = nebula3.common.ttypes.HostAddr() + _elem526.read(iprot) + self.hosts.append(_elem526) else: while iprot.peekList(): - _elem559 = nebula3.common.ttypes.HostAddr() - _elem559.read(iprot) - self.hosts.append(_elem559) + _elem527 = nebula3.common.ttypes.HostAddr() + _elem527.read(iprot) + self.hosts.append(_elem527) iprot.readListEnd() else: iprot.skip(ftype) @@ -13024,8 +12452,8 @@ def write(self, oprot): if self.hosts != None: oprot.writeFieldBegin('hosts', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.hosts)) - for iter560 in self.hosts: - iter560.write(oprot) + for iter528 in self.hosts: + iter528.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.zone_name != None: @@ -13182,17 +12610,17 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.hosts = [] - (_etype564, _size561) = iprot.readListBegin() - if _size561 >= 0: - for _i565 in range(_size561): - _elem566 = nebula3.common.ttypes.HostAddr() - _elem566.read(iprot) - self.hosts.append(_elem566) + (_etype532, _size529) = iprot.readListBegin() + if _size529 >= 0: + for _i533 in range(_size529): + _elem534 = nebula3.common.ttypes.HostAddr() + _elem534.read(iprot) + self.hosts.append(_elem534) else: while iprot.peekList(): - _elem567 = nebula3.common.ttypes.HostAddr() - _elem567.read(iprot) - self.hosts.append(_elem567) + _elem535 = nebula3.common.ttypes.HostAddr() + _elem535.read(iprot) + self.hosts.append(_elem535) iprot.readListEnd() else: iprot.skip(ftype) @@ -13220,8 +12648,8 @@ def write(self, oprot): if self.hosts != None: oprot.writeFieldBegin('hosts', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.hosts)) - for iter568 in self.hosts: - iter568.write(oprot) + for iter536 in self.hosts: + iter536.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13345,17 +12773,17 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.nodes = [] - (_etype572, _size569) = iprot.readListBegin() - if _size569 >= 0: - for _i573 in range(_size569): - _elem574 = nebula3.common.ttypes.HostAddr() - _elem574.read(iprot) - self.nodes.append(_elem574) + (_etype540, _size537) = iprot.readListBegin() + if _size537 >= 0: + for _i541 in range(_size537): + _elem542 = nebula3.common.ttypes.HostAddr() + _elem542.read(iprot) + self.nodes.append(_elem542) else: while iprot.peekList(): - _elem575 = nebula3.common.ttypes.HostAddr() - _elem575.read(iprot) - self.nodes.append(_elem575) + _elem543 = nebula3.common.ttypes.HostAddr() + _elem543.read(iprot) + self.nodes.append(_elem543) iprot.readListEnd() else: iprot.skip(ftype) @@ -13379,8 +12807,8 @@ def write(self, oprot): if self.nodes != None: oprot.writeFieldBegin('nodes', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.nodes)) - for iter576 in self.nodes: - iter576.write(oprot) + for iter544 in self.nodes: + iter544.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13453,17 +12881,17 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.zones = [] - (_etype580, _size577) = iprot.readListBegin() - if _size577 >= 0: - for _i581 in range(_size577): - _elem582 = Zone() - _elem582.read(iprot) - self.zones.append(_elem582) + (_etype548, _size545) = iprot.readListBegin() + if _size545 >= 0: + for _i549 in range(_size545): + _elem550 = Zone() + _elem550.read(iprot) + self.zones.append(_elem550) else: while iprot.peekList(): - _elem583 = Zone() - _elem583.read(iprot) - self.zones.append(_elem583) + _elem551 = Zone() + _elem551.read(iprot) + self.zones.append(_elem551) iprot.readListEnd() else: iprot.skip(ftype) @@ -13491,8 +12919,8 @@ def write(self, oprot): if self.zones != None: oprot.writeFieldBegin('zones', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.zones)) - for iter584 in self.zones: - iter584.write(oprot) + for iter552 in self.zones: + iter552.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13568,17 +12996,17 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.hosts = [] - (_etype588, _size585) = iprot.readListBegin() - if _size585 >= 0: - for _i589 in range(_size585): - _elem590 = nebula3.common.ttypes.HostAddr() - _elem590.read(iprot) - self.hosts.append(_elem590) + (_etype556, _size553) = iprot.readListBegin() + if _size553 >= 0: + for _i557 in range(_size553): + _elem558 = nebula3.common.ttypes.HostAddr() + _elem558.read(iprot) + self.hosts.append(_elem558) else: while iprot.peekList(): - _elem591 = nebula3.common.ttypes.HostAddr() - _elem591.read(iprot) - self.hosts.append(_elem591) + _elem559 = nebula3.common.ttypes.HostAddr() + _elem559.read(iprot) + self.hosts.append(_elem559) iprot.readListEnd() else: iprot.skip(ftype) @@ -13606,8 +13034,8 @@ def write(self, oprot): if self.hosts != None: oprot.writeFieldBegin('hosts', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.hosts)) - for iter592 in self.hosts: - iter592.write(oprot) + for iter560 in self.hosts: + iter560.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13957,17 +13385,17 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.listeners = [] - (_etype596, _size593) = iprot.readListBegin() - if _size593 >= 0: - for _i597 in range(_size593): - _elem598 = ListenerInfo() - _elem598.read(iprot) - self.listeners.append(_elem598) + (_etype564, _size561) = iprot.readListBegin() + if _size561 >= 0: + for _i565 in range(_size561): + _elem566 = ListenerInfo() + _elem566.read(iprot) + self.listeners.append(_elem566) else: while iprot.peekList(): - _elem599 = ListenerInfo() - _elem599.read(iprot) - self.listeners.append(_elem599) + _elem567 = ListenerInfo() + _elem567.read(iprot) + self.listeners.append(_elem567) iprot.readListEnd() else: iprot.skip(ftype) @@ -13995,8 +13423,8 @@ def write(self, oprot): if self.listeners != None: oprot.writeFieldBegin('listeners', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.listeners)) - for iter600 in self.listeners: - iter600.write(oprot) + for iter568 in self.listeners: + iter568.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14241,17 +13669,17 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.checkpoints = [] - (_etype604, _size601) = iprot.readListBegin() - if _size601 >= 0: - for _i605 in range(_size601): - _elem606 = nebula3.common.ttypes.CheckpointInfo() - _elem606.read(iprot) - self.checkpoints.append(_elem606) + (_etype572, _size569) = iprot.readListBegin() + if _size569 >= 0: + for _i573 in range(_size569): + _elem574 = nebula3.common.ttypes.CheckpointInfo() + _elem574.read(iprot) + self.checkpoints.append(_elem574) else: while iprot.peekList(): - _elem607 = nebula3.common.ttypes.CheckpointInfo() - _elem607.read(iprot) - self.checkpoints.append(_elem607) + _elem575 = nebula3.common.ttypes.CheckpointInfo() + _elem575.read(iprot) + self.checkpoints.append(_elem575) iprot.readListEnd() else: iprot.skip(ftype) @@ -14275,8 +13703,8 @@ def write(self, oprot): if self.checkpoints != None: oprot.writeFieldBegin('checkpoints', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.checkpoints)) - for iter608 in self.checkpoints: - iter608.write(oprot) + for iter576 in self.checkpoints: + iter576.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14343,17 +13771,17 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.host_backups = [] - (_etype612, _size609) = iprot.readListBegin() - if _size609 >= 0: - for _i613 in range(_size609): - _elem614 = HostBackupInfo() - _elem614.read(iprot) - self.host_backups.append(_elem614) + (_etype580, _size577) = iprot.readListBegin() + if _size577 >= 0: + for _i581 in range(_size577): + _elem582 = HostBackupInfo() + _elem582.read(iprot) + self.host_backups.append(_elem582) else: while iprot.peekList(): - _elem615 = HostBackupInfo() - _elem615.read(iprot) - self.host_backups.append(_elem615) + _elem583 = HostBackupInfo() + _elem583.read(iprot) + self.host_backups.append(_elem583) iprot.readListEnd() else: iprot.skip(ftype) @@ -14377,8 +13805,8 @@ def write(self, oprot): if self.host_backups != None: oprot.writeFieldBegin('host_backups', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.host_backups)) - for iter616 in self.host_backups: - iter616.write(oprot) + for iter584 in self.host_backups: + iter584.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14443,34 +13871,34 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.space_backups = {} - (_ktype618, _vtype619, _size617 ) = iprot.readMapBegin() - if _size617 >= 0: - for _i621 in range(_size617): - _key622 = iprot.readI32() - _val623 = SpaceBackupInfo() - _val623.read(iprot) - self.space_backups[_key622] = _val623 + (_ktype586, _vtype587, _size585 ) = iprot.readMapBegin() + if _size585 >= 0: + for _i589 in range(_size585): + _key590 = iprot.readI32() + _val591 = SpaceBackupInfo() + _val591.read(iprot) + self.space_backups[_key590] = _val591 else: while iprot.peekMap(): - _key624 = iprot.readI32() - _val625 = SpaceBackupInfo() - _val625.read(iprot) - self.space_backups[_key624] = _val625 + _key592 = iprot.readI32() + _val593 = SpaceBackupInfo() + _val593.read(iprot) + self.space_backups[_key592] = _val593 iprot.readMapEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.meta_files = [] - (_etype629, _size626) = iprot.readListBegin() - if _size626 >= 0: - for _i630 in range(_size626): - _elem631 = iprot.readString() - self.meta_files.append(_elem631) + (_etype597, _size594) = iprot.readListBegin() + if _size594 >= 0: + for _i598 in range(_size594): + _elem599 = iprot.readString() + self.meta_files.append(_elem599) else: while iprot.peekList(): - _elem632 = iprot.readString() - self.meta_files.append(_elem632) + _elem600 = iprot.readString() + self.meta_files.append(_elem600) iprot.readListEnd() else: iprot.skip(ftype) @@ -14510,16 +13938,16 @@ def write(self, oprot): if self.space_backups != None: oprot.writeFieldBegin('space_backups', TType.MAP, 1) oprot.writeMapBegin(TType.I32, TType.STRUCT, len(self.space_backups)) - for kiter633,viter634 in self.space_backups.items(): - oprot.writeI32(kiter633) - viter634.write(oprot) + for kiter601,viter602 in self.space_backups.items(): + oprot.writeI32(kiter601) + viter602.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.meta_files != None: oprot.writeFieldBegin('meta_files', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.meta_files)) - for iter635 in self.meta_files: - oprot.writeString(iter635) + for iter603 in self.meta_files: + oprot.writeString(iter603) oprot.writeListEnd() oprot.writeFieldEnd() if self.backup_name != None: @@ -14611,15 +14039,15 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.spaces = [] - (_etype639, _size636) = iprot.readListBegin() - if _size636 >= 0: - for _i640 in range(_size636): - _elem641 = iprot.readString() - self.spaces.append(_elem641) + (_etype607, _size604) = iprot.readListBegin() + if _size604 >= 0: + for _i608 in range(_size604): + _elem609 = iprot.readString() + self.spaces.append(_elem609) else: while iprot.peekList(): - _elem642 = iprot.readString() - self.spaces.append(_elem642) + _elem610 = iprot.readString() + self.spaces.append(_elem610) iprot.readListEnd() else: iprot.skip(ftype) @@ -14639,8 +14067,8 @@ def write(self, oprot): if self.spaces != None: oprot.writeFieldBegin('spaces', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.spaces)) - for iter643 in self.spaces: - oprot.writeString(iter643) + for iter611 in self.spaces: + oprot.writeString(iter611) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14887,32 +14315,32 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.files = [] - (_etype647, _size644) = iprot.readListBegin() - if _size644 >= 0: - for _i648 in range(_size644): - _elem649 = iprot.readString() - self.files.append(_elem649) + (_etype615, _size612) = iprot.readListBegin() + if _size612 >= 0: + for _i616 in range(_size612): + _elem617 = iprot.readString() + self.files.append(_elem617) else: while iprot.peekList(): - _elem650 = iprot.readString() - self.files.append(_elem650) + _elem618 = iprot.readString() + self.files.append(_elem618) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.hosts = [] - (_etype654, _size651) = iprot.readListBegin() - if _size651 >= 0: - for _i655 in range(_size651): - _elem656 = HostPair() - _elem656.read(iprot) - self.hosts.append(_elem656) + (_etype622, _size619) = iprot.readListBegin() + if _size619 >= 0: + for _i623 in range(_size619): + _elem624 = HostPair() + _elem624.read(iprot) + self.hosts.append(_elem624) else: while iprot.peekList(): - _elem657 = HostPair() - _elem657.read(iprot) - self.hosts.append(_elem657) + _elem625 = HostPair() + _elem625.read(iprot) + self.hosts.append(_elem625) iprot.readListEnd() else: iprot.skip(ftype) @@ -14932,15 +14360,15 @@ def write(self, oprot): if self.files != None: oprot.writeFieldBegin('files', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.files)) - for iter658 in self.files: - oprot.writeString(iter658) + for iter626 in self.files: + oprot.writeString(iter626) oprot.writeListEnd() oprot.writeFieldEnd() if self.hosts != None: oprot.writeFieldBegin('hosts', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.hosts)) - for iter659 in self.hosts: - iter659.write(oprot) + for iter627 in self.hosts: + iter627.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15121,17 +14549,17 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.clients = [] - (_etype663, _size660) = iprot.readListBegin() - if _size660 >= 0: - for _i664 in range(_size660): - _elem665 = ServiceClient() - _elem665.read(iprot) - self.clients.append(_elem665) + (_etype631, _size628) = iprot.readListBegin() + if _size628 >= 0: + for _i632 in range(_size628): + _elem633 = ServiceClient() + _elem633.read(iprot) + self.clients.append(_elem633) else: while iprot.peekList(): - _elem666 = ServiceClient() - _elem666.read(iprot) - self.clients.append(_elem666) + _elem634 = ServiceClient() + _elem634.read(iprot) + self.clients.append(_elem634) iprot.readListEnd() else: iprot.skip(ftype) @@ -15155,8 +14583,8 @@ def write(self, oprot): if self.clients != None: oprot.writeFieldBegin('clients', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.clients)) - for iter667 in self.clients: - iter667.write(oprot) + for iter635 in self.clients: + iter635.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15373,41 +14801,41 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.clients = {} - (_ktype669, _vtype670, _size668 ) = iprot.readMapBegin() - if _size668 >= 0: - for _i672 in range(_size668): - _key673 = iprot.readI32() - _val674 = [] - (_etype678, _size675) = iprot.readListBegin() - if _size675 >= 0: - for _i679 in range(_size675): - _elem680 = ServiceClient() - _elem680.read(iprot) - _val674.append(_elem680) + (_ktype637, _vtype638, _size636 ) = iprot.readMapBegin() + if _size636 >= 0: + for _i640 in range(_size636): + _key641 = iprot.readI32() + _val642 = [] + (_etype646, _size643) = iprot.readListBegin() + if _size643 >= 0: + for _i647 in range(_size643): + _elem648 = ServiceClient() + _elem648.read(iprot) + _val642.append(_elem648) else: while iprot.peekList(): - _elem681 = ServiceClient() - _elem681.read(iprot) - _val674.append(_elem681) + _elem649 = ServiceClient() + _elem649.read(iprot) + _val642.append(_elem649) iprot.readListEnd() - self.clients[_key673] = _val674 + self.clients[_key641] = _val642 else: while iprot.peekMap(): - _key682 = iprot.readI32() - _val683 = [] - (_etype687, _size684) = iprot.readListBegin() - if _size684 >= 0: - for _i688 in range(_size684): - _elem689 = ServiceClient() - _elem689.read(iprot) - _val683.append(_elem689) + _key650 = iprot.readI32() + _val651 = [] + (_etype655, _size652) = iprot.readListBegin() + if _size652 >= 0: + for _i656 in range(_size652): + _elem657 = ServiceClient() + _elem657.read(iprot) + _val651.append(_elem657) else: while iprot.peekList(): - _elem690 = ServiceClient() - _elem690.read(iprot) - _val683.append(_elem690) + _elem658 = ServiceClient() + _elem658.read(iprot) + _val651.append(_elem658) iprot.readListEnd() - self.clients[_key682] = _val683 + self.clients[_key650] = _val651 iprot.readMapEnd() else: iprot.skip(ftype) @@ -15435,11 +14863,11 @@ def write(self, oprot): if self.clients != None: oprot.writeFieldBegin('clients', TType.MAP, 3) oprot.writeMapBegin(TType.I32, TType.LIST, len(self.clients)) - for kiter691,viter692 in self.clients.items(): - oprot.writeI32(kiter691) - oprot.writeListBegin(TType.STRUCT, len(viter692)) - for iter693 in viter692: - iter693.write(oprot) + for kiter659,viter660 in self.clients.items(): + oprot.writeI32(kiter659) + oprot.writeListBegin(TType.STRUCT, len(viter660)) + for iter661 in viter660: + iter661.write(oprot) oprot.writeListEnd() oprot.writeMapEnd() oprot.writeFieldEnd() @@ -15517,15 +14945,15 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.fields = [] - (_etype697, _size694) = iprot.readListBegin() - if _size694 >= 0: - for _i698 in range(_size694): - _elem699 = iprot.readString() - self.fields.append(_elem699) + (_etype665, _size662) = iprot.readListBegin() + if _size662 >= 0: + for _i666 in range(_size662): + _elem667 = iprot.readString() + self.fields.append(_elem667) else: while iprot.peekList(): - _elem700 = iprot.readString() - self.fields.append(_elem700) + _elem668 = iprot.readString() + self.fields.append(_elem668) iprot.readListEnd() else: iprot.skip(ftype) @@ -15553,8 +14981,8 @@ def write(self, oprot): if self.fields != None: oprot.writeFieldBegin('fields', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.fields)) - for iter701 in self.fields: - oprot.writeString(iter701) + for iter669 in self.fields: + oprot.writeString(iter669) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15858,19 +15286,19 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.indexes = {} - (_ktype703, _vtype704, _size702 ) = iprot.readMapBegin() - if _size702 >= 0: - for _i706 in range(_size702): - _key707 = iprot.readString() - _val708 = FTIndex() - _val708.read(iprot) - self.indexes[_key707] = _val708 + (_ktype671, _vtype672, _size670 ) = iprot.readMapBegin() + if _size670 >= 0: + for _i674 in range(_size670): + _key675 = iprot.readString() + _val676 = FTIndex() + _val676.read(iprot) + self.indexes[_key675] = _val676 else: while iprot.peekMap(): - _key709 = iprot.readString() - _val710 = FTIndex() - _val710.read(iprot) - self.indexes[_key709] = _val710 + _key677 = iprot.readString() + _val678 = FTIndex() + _val678.read(iprot) + self.indexes[_key677] = _val678 iprot.readMapEnd() else: iprot.skip(ftype) @@ -15898,9 +15326,9 @@ def write(self, oprot): if self.indexes != None: oprot.writeFieldBegin('indexes', TType.MAP, 3) oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.indexes)) - for kiter711,viter712 in self.indexes.items(): - oprot.writeString(kiter711) - viter712.write(oprot) + for kiter679,viter680 in self.indexes.items(): + oprot.writeString(kiter679) + viter680.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -16143,38 +15571,38 @@ def read(self, iprot): elif fid == 9: if ftype == TType.MAP: self.configs = {} - (_ktype714, _vtype715, _size713 ) = iprot.readMapBegin() - if _size713 >= 0: - for _i717 in range(_size713): - _key718 = iprot.readString() - _val719 = nebula3.common.ttypes.Value() - _val719.read(iprot) - self.configs[_key718] = _val719 + (_ktype682, _vtype683, _size681 ) = iprot.readMapBegin() + if _size681 >= 0: + for _i685 in range(_size681): + _key686 = iprot.readString() + _val687 = nebula3.common.ttypes.Value() + _val687.read(iprot) + self.configs[_key686] = _val687 else: while iprot.peekMap(): - _key720 = iprot.readString() - _val721 = nebula3.common.ttypes.Value() - _val721.read(iprot) - self.configs[_key720] = _val721 + _key688 = iprot.readString() + _val689 = nebula3.common.ttypes.Value() + _val689.read(iprot) + self.configs[_key688] = _val689 iprot.readMapEnd() else: iprot.skip(ftype) elif fid == 10: if ftype == TType.MAP: self.queries = {} - (_ktype723, _vtype724, _size722 ) = iprot.readMapBegin() - if _size722 >= 0: - for _i726 in range(_size722): - _key727 = iprot.readI64() - _val728 = QueryDesc() - _val728.read(iprot) - self.queries[_key727] = _val728 + (_ktype691, _vtype692, _size690 ) = iprot.readMapBegin() + if _size690 >= 0: + for _i694 in range(_size690): + _key695 = iprot.readI64() + _val696 = QueryDesc() + _val696.read(iprot) + self.queries[_key695] = _val696 else: while iprot.peekMap(): - _key729 = iprot.readI64() - _val730 = QueryDesc() - _val730.read(iprot) - self.queries[_key729] = _val730 + _key697 = iprot.readI64() + _val698 = QueryDesc() + _val698.read(iprot) + self.queries[_key697] = _val698 iprot.readMapEnd() else: iprot.skip(ftype) @@ -16226,17 +15654,17 @@ def write(self, oprot): if self.configs != None: oprot.writeFieldBegin('configs', TType.MAP, 9) oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.configs)) - for kiter731,viter732 in self.configs.items(): - oprot.writeString(kiter731) - viter732.write(oprot) + for kiter699,viter700 in self.configs.items(): + oprot.writeString(kiter699) + viter700.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.queries != None: oprot.writeFieldBegin('queries', TType.MAP, 10) oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.queries)) - for kiter733,viter734 in self.queries.items(): - oprot.writeI64(kiter733) - viter734.write(oprot) + for kiter701,viter702 in self.queries.items(): + oprot.writeI64(kiter701) + viter702.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -16531,17 +15959,17 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.sessions = [] - (_etype738, _size735) = iprot.readListBegin() - if _size735 >= 0: - for _i739 in range(_size735): - _elem740 = Session() - _elem740.read(iprot) - self.sessions.append(_elem740) + (_etype706, _size703) = iprot.readListBegin() + if _size703 >= 0: + for _i707 in range(_size703): + _elem708 = Session() + _elem708.read(iprot) + self.sessions.append(_elem708) else: while iprot.peekList(): - _elem741 = Session() - _elem741.read(iprot) - self.sessions.append(_elem741) + _elem709 = Session() + _elem709.read(iprot) + self.sessions.append(_elem709) iprot.readListEnd() else: iprot.skip(ftype) @@ -16561,8 +15989,8 @@ def write(self, oprot): if self.sessions != None: oprot.writeFieldBegin('sessions', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.sessions)) - for iter742 in self.sessions: - iter742.write(oprot) + for iter710 in self.sessions: + iter710.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -16631,45 +16059,45 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.killed_queries = {} - (_ktype744, _vtype745, _size743 ) = iprot.readMapBegin() - if _size743 >= 0: - for _i747 in range(_size743): - _key748 = iprot.readI64() - _val749 = {} - (_ktype751, _vtype752, _size750 ) = iprot.readMapBegin() - if _size750 >= 0: - for _i754 in range(_size750): - _key755 = iprot.readI64() - _val756 = QueryDesc() - _val756.read(iprot) - _val749[_key755] = _val756 + (_ktype712, _vtype713, _size711 ) = iprot.readMapBegin() + if _size711 >= 0: + for _i715 in range(_size711): + _key716 = iprot.readI64() + _val717 = {} + (_ktype719, _vtype720, _size718 ) = iprot.readMapBegin() + if _size718 >= 0: + for _i722 in range(_size718): + _key723 = iprot.readI64() + _val724 = QueryDesc() + _val724.read(iprot) + _val717[_key723] = _val724 else: while iprot.peekMap(): - _key757 = iprot.readI64() - _val758 = QueryDesc() - _val758.read(iprot) - _val749[_key757] = _val758 + _key725 = iprot.readI64() + _val726 = QueryDesc() + _val726.read(iprot) + _val717[_key725] = _val726 iprot.readMapEnd() - self.killed_queries[_key748] = _val749 + self.killed_queries[_key716] = _val717 else: while iprot.peekMap(): - _key759 = iprot.readI64() - _val760 = {} - (_ktype762, _vtype763, _size761 ) = iprot.readMapBegin() - if _size761 >= 0: - for _i765 in range(_size761): - _key766 = iprot.readI64() - _val767 = QueryDesc() - _val767.read(iprot) - _val760[_key766] = _val767 + _key727 = iprot.readI64() + _val728 = {} + (_ktype730, _vtype731, _size729 ) = iprot.readMapBegin() + if _size729 >= 0: + for _i733 in range(_size729): + _key734 = iprot.readI64() + _val735 = QueryDesc() + _val735.read(iprot) + _val728[_key734] = _val735 else: while iprot.peekMap(): - _key768 = iprot.readI64() - _val769 = QueryDesc() - _val769.read(iprot) - _val760[_key768] = _val769 + _key736 = iprot.readI64() + _val737 = QueryDesc() + _val737.read(iprot) + _val728[_key736] = _val737 iprot.readMapEnd() - self.killed_queries[_key759] = _val760 + self.killed_queries[_key727] = _val728 iprot.readMapEnd() else: iprot.skip(ftype) @@ -16697,12 +16125,12 @@ def write(self, oprot): if self.killed_queries != None: oprot.writeFieldBegin('killed_queries', TType.MAP, 3) oprot.writeMapBegin(TType.I64, TType.MAP, len(self.killed_queries)) - for kiter770,viter771 in self.killed_queries.items(): - oprot.writeI64(kiter770) - oprot.writeMapBegin(TType.I64, TType.STRUCT, len(viter771)) - for kiter772,viter773 in viter771.items(): - oprot.writeI64(kiter772) - viter773.write(oprot) + for kiter738,viter739 in self.killed_queries.items(): + oprot.writeI64(kiter738) + oprot.writeMapBegin(TType.I64, TType.STRUCT, len(viter739)) + for kiter740,viter741 in viter739.items(): + oprot.writeI64(kiter740) + viter741.write(oprot) oprot.writeMapEnd() oprot.writeMapEnd() oprot.writeFieldEnd() @@ -16834,17 +16262,17 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.sessions = [] - (_etype777, _size774) = iprot.readListBegin() - if _size774 >= 0: - for _i778 in range(_size774): - _elem779 = Session() - _elem779.read(iprot) - self.sessions.append(_elem779) + (_etype745, _size742) = iprot.readListBegin() + if _size742 >= 0: + for _i746 in range(_size742): + _elem747 = Session() + _elem747.read(iprot) + self.sessions.append(_elem747) else: while iprot.peekList(): - _elem780 = Session() - _elem780.read(iprot) - self.sessions.append(_elem780) + _elem748 = Session() + _elem748.read(iprot) + self.sessions.append(_elem748) iprot.readListEnd() else: iprot.skip(ftype) @@ -16872,8 +16300,8 @@ def write(self, oprot): if self.sessions != None: oprot.writeFieldBegin('sessions', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.sessions)) - for iter781 in self.sessions: - iter781.write(oprot) + for iter749 in self.sessions: + iter749.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -17183,37 +16611,37 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.kill_queries = {} - (_ktype783, _vtype784, _size782 ) = iprot.readMapBegin() - if _size782 >= 0: - for _i786 in range(_size782): - _key787 = iprot.readI64() - _val788 = set() - (_etype792, _size789) = iprot.readSetBegin() - if _size789 >= 0: - for _i793 in range(_size789): - _elem794 = iprot.readI64() - _val788.add(_elem794) + (_ktype751, _vtype752, _size750 ) = iprot.readMapBegin() + if _size750 >= 0: + for _i754 in range(_size750): + _key755 = iprot.readI64() + _val756 = set() + (_etype760, _size757) = iprot.readSetBegin() + if _size757 >= 0: + for _i761 in range(_size757): + _elem762 = iprot.readI64() + _val756.add(_elem762) else: while iprot.peekSet(): - _elem795 = iprot.readI64() - _val788.add(_elem795) + _elem763 = iprot.readI64() + _val756.add(_elem763) iprot.readSetEnd() - self.kill_queries[_key787] = _val788 + self.kill_queries[_key755] = _val756 else: while iprot.peekMap(): - _key796 = iprot.readI64() - _val797 = set() - (_etype801, _size798) = iprot.readSetBegin() - if _size798 >= 0: - for _i802 in range(_size798): - _elem803 = iprot.readI64() - _val797.add(_elem803) + _key764 = iprot.readI64() + _val765 = set() + (_etype769, _size766) = iprot.readSetBegin() + if _size766 >= 0: + for _i770 in range(_size766): + _elem771 = iprot.readI64() + _val765.add(_elem771) else: while iprot.peekSet(): - _elem804 = iprot.readI64() - _val797.add(_elem804) + _elem772 = iprot.readI64() + _val765.add(_elem772) iprot.readSetEnd() - self.kill_queries[_key796] = _val797 + self.kill_queries[_key764] = _val765 iprot.readMapEnd() else: iprot.skip(ftype) @@ -17233,11 +16661,11 @@ def write(self, oprot): if self.kill_queries != None: oprot.writeFieldBegin('kill_queries', TType.MAP, 1) oprot.writeMapBegin(TType.I64, TType.SET, len(self.kill_queries)) - for kiter805,viter806 in self.kill_queries.items(): - oprot.writeI64(kiter805) - oprot.writeSetBegin(TType.I64, len(viter806)) - for iter807 in viter806: - oprot.writeI64(iter807) + for kiter773,viter774 in self.kill_queries.items(): + oprot.writeI64(kiter773) + oprot.writeSetBegin(TType.I64, len(viter774)) + for iter775 in viter774: + oprot.writeI64(iter775) oprot.writeSetEnd() oprot.writeMapEnd() oprot.writeFieldEnd() @@ -17269,6 +16697,7 @@ class ReportTaskReq: """ Attributes: - code + - space_id - job_id - task_id - stats @@ -17301,15 +16730,20 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.I32: - self.job_id = iprot.readI32() + self.space_id = iprot.readI32() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: - self.task_id = iprot.readI32() + self.job_id = iprot.readI32() else: iprot.skip(ftype) elif fid == 4: + if ftype == TType.I32: + self.task_id = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 5: if ftype == TType.STRUCT: self.stats = StatsItem() self.stats.read(iprot) @@ -17332,16 +16766,20 @@ def write(self, oprot): oprot.writeFieldBegin('code', TType.I32, 1) oprot.writeI32(self.code) oprot.writeFieldEnd() + if self.space_id != None: + oprot.writeFieldBegin('space_id', TType.I32, 2) + oprot.writeI32(self.space_id) + oprot.writeFieldEnd() if self.job_id != None: - oprot.writeFieldBegin('job_id', TType.I32, 2) + oprot.writeFieldBegin('job_id', TType.I32, 3) oprot.writeI32(self.job_id) oprot.writeFieldEnd() if self.task_id != None: - oprot.writeFieldBegin('task_id', TType.I32, 3) + oprot.writeFieldBegin('task_id', TType.I32, 4) oprot.writeI32(self.task_id) oprot.writeFieldEnd() if self.stats != None: - oprot.writeFieldBegin('stats', TType.STRUCT, 4) + oprot.writeFieldBegin('stats', TType.STRUCT, 5) self.stats.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -17354,6 +16792,10 @@ def __repr__(self): value = pprint.pformat(self.code, indent=0) value = padding.join(value.splitlines(True)) L.append(' code=%s' % (value)) + if self.space_id is not None: + value = pprint.pformat(self.space_id, indent=0) + value = padding.join(value.splitlines(True)) + L.append(' space_id=%s' % (value)) if self.job_id is not None: value = pprint.pformat(self.job_id, indent=0) value = padding.join(value.splitlines(True)) @@ -17422,41 +16864,41 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.host_services = {} - (_ktype809, _vtype810, _size808 ) = iprot.readMapBegin() - if _size808 >= 0: - for _i812 in range(_size808): - _key813 = iprot.readString().decode('utf-8') if UTF8STRINGS else iprot.readString() - _val814 = [] - (_etype818, _size815) = iprot.readListBegin() - if _size815 >= 0: - for _i819 in range(_size815): - _elem820 = ServiceInfo() - _elem820.read(iprot) - _val814.append(_elem820) + (_ktype777, _vtype778, _size776 ) = iprot.readMapBegin() + if _size776 >= 0: + for _i780 in range(_size776): + _key781 = iprot.readString().decode('utf-8') if UTF8STRINGS else iprot.readString() + _val782 = [] + (_etype786, _size783) = iprot.readListBegin() + if _size783 >= 0: + for _i787 in range(_size783): + _elem788 = ServiceInfo() + _elem788.read(iprot) + _val782.append(_elem788) else: while iprot.peekList(): - _elem821 = ServiceInfo() - _elem821.read(iprot) - _val814.append(_elem821) + _elem789 = ServiceInfo() + _elem789.read(iprot) + _val782.append(_elem789) iprot.readListEnd() - self.host_services[_key813] = _val814 + self.host_services[_key781] = _val782 else: while iprot.peekMap(): - _key822 = iprot.readString().decode('utf-8') if UTF8STRINGS else iprot.readString() - _val823 = [] - (_etype827, _size824) = iprot.readListBegin() - if _size824 >= 0: - for _i828 in range(_size824): - _elem829 = ServiceInfo() - _elem829.read(iprot) - _val823.append(_elem829) + _key790 = iprot.readString().decode('utf-8') if UTF8STRINGS else iprot.readString() + _val791 = [] + (_etype795, _size792) = iprot.readListBegin() + if _size792 >= 0: + for _i796 in range(_size792): + _elem797 = ServiceInfo() + _elem797.read(iprot) + _val791.append(_elem797) else: while iprot.peekList(): - _elem830 = ServiceInfo() - _elem830.read(iprot) - _val823.append(_elem830) + _elem798 = ServiceInfo() + _elem798.read(iprot) + _val791.append(_elem798) iprot.readListEnd() - self.host_services[_key822] = _val823 + self.host_services[_key790] = _val791 iprot.readMapEnd() else: iprot.skip(ftype) @@ -17484,11 +16926,11 @@ def write(self, oprot): if self.host_services != None: oprot.writeFieldBegin('host_services', TType.MAP, 3) oprot.writeMapBegin(TType.STRING, TType.LIST, len(self.host_services)) - for kiter831,viter832 in self.host_services.items(): - oprot.writeString(kiter831.encode('utf-8')) if UTF8STRINGS and not isinstance(kiter831, bytes) else oprot.writeString(kiter831) - oprot.writeListBegin(TType.STRUCT, len(viter832)) - for iter833 in viter832: - iter833.write(oprot) + for kiter799,viter800 in self.host_services.items(): + oprot.writeString(kiter799.encode('utf-8')) if UTF8STRINGS and not isinstance(kiter799, bytes) else oprot.writeString(kiter799) + oprot.writeListBegin(TType.STRUCT, len(viter800)) + for iter801 in viter800: + iter801.write(oprot) oprot.writeListEnd() oprot.writeMapEnd() oprot.writeFieldEnd() @@ -17633,9 +17075,160 @@ def write(self, oprot): oprot.writeFieldBegin('code', TType.I32, 1) oprot.writeI32(self.code) oprot.writeFieldEnd() - if self.dir != None: - oprot.writeFieldBegin('dir', TType.STRUCT, 2) - self.dir.write(oprot) + if self.dir != None: + oprot.writeFieldBegin('dir', TType.STRUCT, 2) + self.dir.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def __repr__(self): + L = [] + padding = ' ' * 4 + if self.code is not None: + value = pprint.pformat(self.code, indent=0) + value = padding.join(value.splitlines(True)) + L.append(' code=%s' % (value)) + if self.dir is not None: + value = pprint.pformat(self.dir, indent=0) + value = padding.join(value.splitlines(True)) + L.append(' dir=%s' % (value)) + return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') + + def __eq__(self, other): + if not isinstance(other, self.__class__): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + + # Override the __hash__ function for Python3 - t10434117 + __hash__ = object.__hash__ + +class GetMetaDirInfoReq: + + thrift_spec = None + thrift_field_annotations = None + thrift_struct_annotations = None + @staticmethod + def isUnion(): + return False + + def read(self, iprot): + if (isinstance(iprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: + fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0) + return + if (isinstance(iprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: + fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if (isinstance(oprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: + oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0)) + return + if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: + oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) + return + oprot.writeStructBegin('GetMetaDirInfoReq') + oprot.writeFieldStop() + oprot.writeStructEnd() + + def __repr__(self): + L = [] + padding = ' ' * 4 + return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') + + def __eq__(self, other): + if not isinstance(other, self.__class__): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + + # Override the __hash__ function for Python3 - t10434117 + __hash__ = object.__hash__ + +class VerifyClientVersionResp: + """ + Attributes: + - code + - leader + - error_msg + """ + + thrift_spec = None + thrift_field_annotations = None + thrift_struct_annotations = None + __init__ = None + @staticmethod + def isUnion(): + return False + + def read(self, iprot): + if (isinstance(iprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: + fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0) + return + if (isinstance(iprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: + fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.I32: + self.code = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.leader = nebula3.common.ttypes.HostAddr() + self.leader.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.error_msg = iprot.readString() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if (isinstance(oprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: + oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0)) + return + if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: + oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) + return + oprot.writeStructBegin('VerifyClientVersionResp') + if self.code != None: + oprot.writeFieldBegin('code', TType.I32, 1) + oprot.writeI32(self.code) + oprot.writeFieldEnd() + if self.leader != None: + oprot.writeFieldBegin('leader', TType.STRUCT, 2) + self.leader.write(oprot) + oprot.writeFieldEnd() + if self.error_msg != None: + oprot.writeFieldBegin('error_msg', TType.STRING, 3) + oprot.writeString(self.error_msg) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -17647,10 +17240,14 @@ def __repr__(self): value = pprint.pformat(self.code, indent=0) value = padding.join(value.splitlines(True)) L.append(' code=%s' % (value)) - if self.dir is not None: - value = pprint.pformat(self.dir, indent=0) + if self.leader is not None: + value = pprint.pformat(self.leader, indent=0) value = padding.join(value.splitlines(True)) - L.append(' dir=%s' % (value)) + L.append(' leader=%s' % (value)) + if self.error_msg is not None: + value = pprint.pformat(self.error_msg, indent=0) + value = padding.join(value.splitlines(True)) + L.append(' error_msg=%s' % (value)) return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') def __eq__(self, other): @@ -17665,11 +17262,18 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -class GetMetaDirInfoReq: +class VerifyClientVersionReq: + """ + Attributes: + - client_version + - host + - build_version + """ thrift_spec = None thrift_field_annotations = None thrift_struct_annotations = None + __init__ = None @staticmethod def isUnion(): return False @@ -17686,6 +17290,22 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break + if fid == 1: + if ftype == TType.STRING: + self.client_version = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.host = nebula3.common.ttypes.HostAddr() + self.host.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.build_version = iprot.readString() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -17698,13 +17318,37 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('GetMetaDirInfoReq') + oprot.writeStructBegin('VerifyClientVersionReq') + if self.client_version != None: + oprot.writeFieldBegin('client_version', TType.STRING, 1) + oprot.writeString(self.client_version) + oprot.writeFieldEnd() + if self.host != None: + oprot.writeFieldBegin('host', TType.STRUCT, 2) + self.host.write(oprot) + oprot.writeFieldEnd() + if self.build_version != None: + oprot.writeFieldBegin('build_version', TType.STRING, 3) + oprot.writeString(self.build_version) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def __repr__(self): L = [] padding = ' ' * 4 + if self.client_version is not None: + value = pprint.pformat(self.client_version, indent=0) + value = padding.join(value.splitlines(True)) + L.append(' client_version=%s' % (value)) + if self.host is not None: + value = pprint.pformat(self.host, indent=0) + value = padding.join(value.splitlines(True)) + L.append(' host=%s' % (value)) + if self.build_version is not None: + value = pprint.pformat(self.build_version, indent=0) + value = padding.join(value.splitlines(True)) + L.append(' build_version=%s' % (value)) return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') def __eq__(self, other): @@ -17719,7 +17363,7 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -class VerifyClientVersionResp: +class SaveGraphVersionResp: """ Attributes: - code @@ -17775,7 +17419,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('VerifyClientVersionResp') + oprot.writeStructBegin('SaveGraphVersionResp') if self.code != None: oprot.writeFieldBegin('code', TType.I32, 1) oprot.writeI32(self.code) @@ -17820,7 +17464,7 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -class VerifyClientVersionReq: +class SaveGraphVersionReq: """ Attributes: - client_version @@ -17876,7 +17520,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('VerifyClientVersionReq') + oprot.writeStructBegin('SaveGraphVersionReq') if self.client_version != None: oprot.writeFieldBegin('client_version', TType.STRING, 1) oprot.writeString(self.client_version) @@ -18522,9 +18166,10 @@ def AlterSpaceReq__setstate__(self, state): all_structs.append(AdminJobReq) AdminJobReq.thrift_spec = ( None, # 0 - (1, TType.I32, 'op', AdminJobOp, None, 2, ), # 1 - (2, TType.I32, 'cmd', AdminCmd, None, 2, ), # 2 - (3, TType.LIST, 'paras', (TType.STRING,False), None, 2, ), # 3 + (1, TType.I32, 'space_id', None, None, 2, ), # 1 + (2, TType.I32, 'op', JobOp, None, 2, ), # 2 + (3, TType.I32, 'type', JobType, None, 2, ), # 3 + (4, TType.LIST, 'paras', (TType.STRING,False), None, 2, ), # 4 ) AdminJobReq.thrift_struct_annotations = { @@ -18532,16 +18177,18 @@ def AlterSpaceReq__setstate__(self, state): AdminJobReq.thrift_field_annotations = { } -def AdminJobReq__init__(self, op=None, cmd=None, paras=None,): +def AdminJobReq__init__(self, space_id=None, op=None, type=None, paras=None,): + self.space_id = space_id self.op = op - self.cmd = cmd + self.type = type self.paras = paras AdminJobReq.__init__ = AdminJobReq__init__ def AdminJobReq__setstate__(self, state): + state.setdefault('space_id', None) state.setdefault('op', None) - state.setdefault('cmd', None) + state.setdefault('type', None) state.setdefault('paras', None) self.__dict__ = state @@ -18551,12 +18198,14 @@ def AdminJobReq__setstate__(self, state): all_structs.append(JobDesc) JobDesc.thrift_spec = ( None, # 0 - (1, TType.I32, 'id', None, None, 2, ), # 1 - (2, TType.I32, 'cmd', AdminCmd, None, 2, ), # 2 - (3, TType.LIST, 'paras', (TType.STRING,True), None, 2, ), # 3 - (4, TType.I32, 'status', JobStatus, None, 2, ), # 4 - (5, TType.I64, 'start_time', None, None, 2, ), # 5 - (6, TType.I64, 'stop_time', None, None, 2, ), # 6 + (1, TType.I32, 'space_id', None, None, 2, ), # 1 + (2, TType.I32, 'job_id', None, None, 2, ), # 2 + (3, TType.I32, 'type', JobType, None, 2, ), # 3 + (4, TType.LIST, 'paras', (TType.STRING,True), None, 2, ), # 4 + (5, TType.I32, 'status', JobStatus, None, 2, ), # 5 + (6, TType.I64, 'start_time', None, None, 2, ), # 6 + (7, TType.I64, 'stop_time', None, None, 2, ), # 7 + (8, TType.I32, 'code', nebula3.common.ttypes.ErrorCode, None, 2, ), # 8 ) JobDesc.thrift_struct_annotations = { @@ -18564,23 +18213,27 @@ def AdminJobReq__setstate__(self, state): JobDesc.thrift_field_annotations = { } -def JobDesc__init__(self, id=None, cmd=None, paras=None, status=None, start_time=None, stop_time=None,): - self.id = id - self.cmd = cmd +def JobDesc__init__(self, space_id=None, job_id=None, type=None, paras=None, status=None, start_time=None, stop_time=None, code=None,): + self.space_id = space_id + self.job_id = job_id + self.type = type self.paras = paras self.status = status self.start_time = start_time self.stop_time = stop_time + self.code = code JobDesc.__init__ = JobDesc__init__ def JobDesc__setstate__(self, state): - state.setdefault('id', None) - state.setdefault('cmd', None) + state.setdefault('space_id', None) + state.setdefault('job_id', None) + state.setdefault('type', None) state.setdefault('paras', None) state.setdefault('status', None) state.setdefault('start_time', None) state.setdefault('stop_time', None) + state.setdefault('code', None) self.__dict__ = state JobDesc.__getstate__ = lambda self: self.__dict__.copy() @@ -18589,12 +18242,14 @@ def JobDesc__setstate__(self, state): all_structs.append(TaskDesc) TaskDesc.thrift_spec = ( None, # 0 - (1, TType.I32, 'task_id', None, None, 2, ), # 1 - (2, TType.STRUCT, 'host', [nebula3.common.ttypes.HostAddr, nebula3.common.ttypes.HostAddr.thrift_spec, False], None, 2, ), # 2 - (3, TType.I32, 'status', JobStatus, None, 2, ), # 3 - (4, TType.I64, 'start_time', None, None, 2, ), # 4 - (5, TType.I64, 'stop_time', None, None, 2, ), # 5 - (6, TType.I32, 'job_id', None, None, 2, ), # 6 + (1, TType.I32, 'space_id', None, None, 2, ), # 1 + (2, TType.I32, 'job_id', None, None, 2, ), # 2 + (3, TType.I32, 'task_id', None, None, 2, ), # 3 + (4, TType.STRUCT, 'host', [nebula3.common.ttypes.HostAddr, nebula3.common.ttypes.HostAddr.thrift_spec, False], None, 2, ), # 4 + (5, TType.I32, 'status', JobStatus, None, 2, ), # 5 + (6, TType.I64, 'start_time', None, None, 2, ), # 6 + (7, TType.I64, 'stop_time', None, None, 2, ), # 7 + (8, TType.I32, 'code', nebula3.common.ttypes.ErrorCode, None, 2, ), # 8 ) TaskDesc.thrift_struct_annotations = { @@ -18602,23 +18257,27 @@ def JobDesc__setstate__(self, state): TaskDesc.thrift_field_annotations = { } -def TaskDesc__init__(self, task_id=None, host=None, status=None, start_time=None, stop_time=None, job_id=None,): +def TaskDesc__init__(self, space_id=None, job_id=None, task_id=None, host=None, status=None, start_time=None, stop_time=None, code=None,): + self.space_id = space_id + self.job_id = job_id self.task_id = task_id self.host = host self.status = status self.start_time = start_time self.stop_time = stop_time - self.job_id = job_id + self.code = code TaskDesc.__init__ = TaskDesc__init__ def TaskDesc__setstate__(self, state): + state.setdefault('space_id', None) + state.setdefault('job_id', None) state.setdefault('task_id', None) state.setdefault('host', None) state.setdefault('status', None) state.setdefault('start_time', None) state.setdefault('stop_time', None) - state.setdefault('job_id', None) + state.setdefault('code', None) self.__dict__ = state TaskDesc.__getstate__ = lambda self: self.__dict__.copy() @@ -18830,6 +18489,32 @@ def DropSpaceReq__setstate__(self, state): DropSpaceReq.__getstate__ = lambda self: self.__dict__.copy() DropSpaceReq.__setstate__ = DropSpaceReq__setstate__ +all_structs.append(ClearSpaceReq) +ClearSpaceReq.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'space_name', False, None, 2, ), # 1 + (2, TType.BOOL, 'if_exists', None, None, 2, ), # 2 +) + +ClearSpaceReq.thrift_struct_annotations = { +} +ClearSpaceReq.thrift_field_annotations = { +} + +def ClearSpaceReq__init__(self, space_name=None, if_exists=None,): + self.space_name = space_name + self.if_exists = if_exists + +ClearSpaceReq.__init__ = ClearSpaceReq__init__ + +def ClearSpaceReq__setstate__(self, state): + state.setdefault('space_name', None) + state.setdefault('if_exists', None) + self.__dict__ = state + +ClearSpaceReq.__getstate__ = lambda self: self.__dict__.copy() +ClearSpaceReq.__setstate__ = ClearSpaceReq__setstate__ + all_structs.append(ListSpacesReq) ListSpacesReq.thrift_spec = ( ) @@ -19618,254 +19303,57 @@ def GetWorkerIdResp__setstate__(self, state): GetWorkerIdResp.__getstate__ = lambda self: self.__dict__.copy() GetWorkerIdResp.__setstate__ = GetWorkerIdResp__setstate__ -all_structs.append(MultiPutReq) -MultiPutReq.thrift_spec = ( - None, # 0 - (1, TType.STRING, 'segment', False, None, 2, ), # 1 - (2, TType.LIST, 'pairs', (TType.STRUCT,[nebula3.common.ttypes.KeyValue, nebula3.common.ttypes.KeyValue.thrift_spec, False]), None, 2, ), # 2 -) - -MultiPutReq.thrift_struct_annotations = { -} -MultiPutReq.thrift_field_annotations = { -} - -def MultiPutReq__init__(self, segment=None, pairs=None,): - self.segment = segment - self.pairs = pairs - -MultiPutReq.__init__ = MultiPutReq__init__ - -def MultiPutReq__setstate__(self, state): - state.setdefault('segment', None) - state.setdefault('pairs', None) - self.__dict__ = state - -MultiPutReq.__getstate__ = lambda self: self.__dict__.copy() -MultiPutReq.__setstate__ = MultiPutReq__setstate__ - -all_structs.append(GetReq) -GetReq.thrift_spec = ( - None, # 0 - (1, TType.STRING, 'segment', False, None, 2, ), # 1 - (2, TType.STRING, 'key', False, None, 2, ), # 2 -) - -GetReq.thrift_struct_annotations = { -} -GetReq.thrift_field_annotations = { -} - -def GetReq__init__(self, segment=None, key=None,): - self.segment = segment - self.key = key - -GetReq.__init__ = GetReq__init__ - -def GetReq__setstate__(self, state): - state.setdefault('segment', None) - state.setdefault('key', None) - self.__dict__ = state - -GetReq.__getstate__ = lambda self: self.__dict__.copy() -GetReq.__setstate__ = GetReq__setstate__ - -all_structs.append(GetResp) -GetResp.thrift_spec = ( - None, # 0 - (1, TType.I32, 'code', nebula3.common.ttypes.ErrorCode, None, 2, ), # 1 - (2, TType.STRUCT, 'leader', [nebula3.common.ttypes.HostAddr, nebula3.common.ttypes.HostAddr.thrift_spec, False], None, 2, ), # 2 - (3, TType.STRING, 'value', False, None, 2, ), # 3 -) - -GetResp.thrift_struct_annotations = { -} -GetResp.thrift_field_annotations = { -} - -def GetResp__init__(self, code=None, leader=None, value=None,): - self.code = code - self.leader = leader - self.value = value - -GetResp.__init__ = GetResp__init__ - -def GetResp__setstate__(self, state): - state.setdefault('code', None) - state.setdefault('leader', None) - state.setdefault('value', None) - self.__dict__ = state - -GetResp.__getstate__ = lambda self: self.__dict__.copy() -GetResp.__setstate__ = GetResp__setstate__ - -all_structs.append(MultiGetReq) -MultiGetReq.thrift_spec = ( - None, # 0 - (1, TType.STRING, 'segment', False, None, 2, ), # 1 - (2, TType.LIST, 'keys', (TType.STRING,False), None, 2, ), # 2 -) - -MultiGetReq.thrift_struct_annotations = { -} -MultiGetReq.thrift_field_annotations = { -} - -def MultiGetReq__init__(self, segment=None, keys=None,): - self.segment = segment - self.keys = keys - -MultiGetReq.__init__ = MultiGetReq__init__ - -def MultiGetReq__setstate__(self, state): - state.setdefault('segment', None) - state.setdefault('keys', None) - self.__dict__ = state - -MultiGetReq.__getstate__ = lambda self: self.__dict__.copy() -MultiGetReq.__setstate__ = MultiGetReq__setstate__ - -all_structs.append(MultiGetResp) -MultiGetResp.thrift_spec = ( - None, # 0 - (1, TType.I32, 'code', nebula3.common.ttypes.ErrorCode, None, 2, ), # 1 - (2, TType.STRUCT, 'leader', [nebula3.common.ttypes.HostAddr, nebula3.common.ttypes.HostAddr.thrift_spec, False], None, 2, ), # 2 - (3, TType.LIST, 'values', (TType.STRING,False), None, 2, ), # 3 -) - -MultiGetResp.thrift_struct_annotations = { -} -MultiGetResp.thrift_field_annotations = { -} - -def MultiGetResp__init__(self, code=None, leader=None, values=None,): - self.code = code - self.leader = leader - self.values = values - -MultiGetResp.__init__ = MultiGetResp__init__ - -def MultiGetResp__setstate__(self, state): - state.setdefault('code', None) - state.setdefault('leader', None) - state.setdefault('values', None) - self.__dict__ = state - -MultiGetResp.__getstate__ = lambda self: self.__dict__.copy() -MultiGetResp.__setstate__ = MultiGetResp__setstate__ - -all_structs.append(RemoveReq) -RemoveReq.thrift_spec = ( - None, # 0 - (1, TType.STRING, 'segment', False, None, 2, ), # 1 - (2, TType.STRING, 'key', False, None, 2, ), # 2 -) - -RemoveReq.thrift_struct_annotations = { -} -RemoveReq.thrift_field_annotations = { -} - -def RemoveReq__init__(self, segment=None, key=None,): - self.segment = segment - self.key = key - -RemoveReq.__init__ = RemoveReq__init__ - -def RemoveReq__setstate__(self, state): - state.setdefault('segment', None) - state.setdefault('key', None) - self.__dict__ = state - -RemoveReq.__getstate__ = lambda self: self.__dict__.copy() -RemoveReq.__setstate__ = RemoveReq__setstate__ - -all_structs.append(RemoveRangeReq) -RemoveRangeReq.thrift_spec = ( - None, # 0 - (1, TType.STRING, 'segment', False, None, 2, ), # 1 - (2, TType.STRING, 'start', False, None, 2, ), # 2 - (3, TType.STRING, 'end', False, None, 2, ), # 3 -) - -RemoveRangeReq.thrift_struct_annotations = { -} -RemoveRangeReq.thrift_field_annotations = { -} - -def RemoveRangeReq__init__(self, segment=None, start=None, end=None,): - self.segment = segment - self.start = start - self.end = end - -RemoveRangeReq.__init__ = RemoveRangeReq__init__ - -def RemoveRangeReq__setstate__(self, state): - state.setdefault('segment', None) - state.setdefault('start', None) - state.setdefault('end', None) - self.__dict__ = state - -RemoveRangeReq.__getstate__ = lambda self: self.__dict__.copy() -RemoveRangeReq.__setstate__ = RemoveRangeReq__setstate__ - -all_structs.append(ScanReq) -ScanReq.thrift_spec = ( +all_structs.append(GetSegmentIdReq) +GetSegmentIdReq.thrift_spec = ( None, # 0 - (1, TType.STRING, 'segment', False, None, 2, ), # 1 - (2, TType.STRING, 'start', False, None, 2, ), # 2 - (3, TType.STRING, 'end', False, None, 2, ), # 3 + (1, TType.I64, 'length', None, None, 2, ), # 1 ) -ScanReq.thrift_struct_annotations = { +GetSegmentIdReq.thrift_struct_annotations = { } -ScanReq.thrift_field_annotations = { +GetSegmentIdReq.thrift_field_annotations = { } -def ScanReq__init__(self, segment=None, start=None, end=None,): - self.segment = segment - self.start = start - self.end = end +def GetSegmentIdReq__init__(self, length=None,): + self.length = length -ScanReq.__init__ = ScanReq__init__ +GetSegmentIdReq.__init__ = GetSegmentIdReq__init__ -def ScanReq__setstate__(self, state): - state.setdefault('segment', None) - state.setdefault('start', None) - state.setdefault('end', None) +def GetSegmentIdReq__setstate__(self, state): + state.setdefault('length', None) self.__dict__ = state -ScanReq.__getstate__ = lambda self: self.__dict__.copy() -ScanReq.__setstate__ = ScanReq__setstate__ +GetSegmentIdReq.__getstate__ = lambda self: self.__dict__.copy() +GetSegmentIdReq.__setstate__ = GetSegmentIdReq__setstate__ -all_structs.append(ScanResp) -ScanResp.thrift_spec = ( +all_structs.append(GetSegmentIdResp) +GetSegmentIdResp.thrift_spec = ( None, # 0 (1, TType.I32, 'code', nebula3.common.ttypes.ErrorCode, None, 2, ), # 1 (2, TType.STRUCT, 'leader', [nebula3.common.ttypes.HostAddr, nebula3.common.ttypes.HostAddr.thrift_spec, False], None, 2, ), # 2 - (3, TType.LIST, 'values', (TType.STRING,False), None, 2, ), # 3 + (3, TType.I64, 'segment_id', None, None, 2, ), # 3 ) -ScanResp.thrift_struct_annotations = { +GetSegmentIdResp.thrift_struct_annotations = { } -ScanResp.thrift_field_annotations = { +GetSegmentIdResp.thrift_field_annotations = { } -def ScanResp__init__(self, code=None, leader=None, values=None,): +def GetSegmentIdResp__init__(self, code=None, leader=None, segment_id=None,): self.code = code self.leader = leader - self.values = values + self.segment_id = segment_id -ScanResp.__init__ = ScanResp__init__ +GetSegmentIdResp.__init__ = GetSegmentIdResp__init__ -def ScanResp__setstate__(self, state): +def GetSegmentIdResp__setstate__(self, state): state.setdefault('code', None) state.setdefault('leader', None) - state.setdefault('values', None) + state.setdefault('segment_id', None) self.__dict__ = state -ScanResp.__getstate__ = lambda self: self.__dict__.copy() -ScanResp.__setstate__ = ScanResp__setstate__ +GetSegmentIdResp.__getstate__ = lambda self: self.__dict__.copy() +GetSegmentIdResp.__setstate__ = GetSegmentIdResp__setstate__ all_structs.append(HBResp) HBResp.thrift_spec = ( @@ -22372,9 +21860,10 @@ def KillQueryReq__setstate__(self, state): ReportTaskReq.thrift_spec = ( None, # 0 (1, TType.I32, 'code', nebula3.common.ttypes.ErrorCode, None, 2, ), # 1 - (2, TType.I32, 'job_id', None, None, 2, ), # 2 - (3, TType.I32, 'task_id', None, None, 2, ), # 3 - (4, TType.STRUCT, 'stats', [StatsItem, StatsItem.thrift_spec, False], None, 1, ), # 4 + (2, TType.I32, 'space_id', None, None, 2, ), # 2 + (3, TType.I32, 'job_id', None, None, 2, ), # 3 + (4, TType.I32, 'task_id', None, None, 2, ), # 4 + (5, TType.STRUCT, 'stats', [StatsItem, StatsItem.thrift_spec, False], None, 1, ), # 5 ) ReportTaskReq.thrift_struct_annotations = { @@ -22382,8 +21871,9 @@ def KillQueryReq__setstate__(self, state): ReportTaskReq.thrift_field_annotations = { } -def ReportTaskReq__init__(self, code=None, job_id=None, task_id=None, stats=None,): +def ReportTaskReq__init__(self, code=None, space_id=None, job_id=None, task_id=None, stats=None,): self.code = code + self.space_id = space_id self.job_id = job_id self.task_id = task_id self.stats = stats @@ -22392,6 +21882,7 @@ def ReportTaskReq__init__(self, code=None, job_id=None, task_id=None, stats=None def ReportTaskReq__setstate__(self, state): state.setdefault('code', None) + state.setdefault('space_id', None) state.setdefault('job_id', None) state.setdefault('task_id', None) state.setdefault('stats', None) @@ -22531,5 +22022,63 @@ def VerifyClientVersionReq__setstate__(self, state): VerifyClientVersionReq.__getstate__ = lambda self: self.__dict__.copy() VerifyClientVersionReq.__setstate__ = VerifyClientVersionReq__setstate__ +all_structs.append(SaveGraphVersionResp) +SaveGraphVersionResp.thrift_spec = ( + None, # 0 + (1, TType.I32, 'code', nebula3.common.ttypes.ErrorCode, None, 2, ), # 1 + (2, TType.STRUCT, 'leader', [nebula3.common.ttypes.HostAddr, nebula3.common.ttypes.HostAddr.thrift_spec, False], None, 2, ), # 2 + (3, TType.STRING, 'error_msg', False, None, 1, ), # 3 +) + +SaveGraphVersionResp.thrift_struct_annotations = { +} +SaveGraphVersionResp.thrift_field_annotations = { +} + +def SaveGraphVersionResp__init__(self, code=None, leader=None, error_msg=None,): + self.code = code + self.leader = leader + self.error_msg = error_msg + +SaveGraphVersionResp.__init__ = SaveGraphVersionResp__init__ + +def SaveGraphVersionResp__setstate__(self, state): + state.setdefault('code', None) + state.setdefault('leader', None) + state.setdefault('error_msg', None) + self.__dict__ = state + +SaveGraphVersionResp.__getstate__ = lambda self: self.__dict__.copy() +SaveGraphVersionResp.__setstate__ = SaveGraphVersionResp__setstate__ + +all_structs.append(SaveGraphVersionReq) +SaveGraphVersionReq.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'client_version', False, "3.0.0", 0, ), # 1 + (2, TType.STRUCT, 'host', [nebula3.common.ttypes.HostAddr, nebula3.common.ttypes.HostAddr.thrift_spec, False], None, 2, ), # 2 + (3, TType.STRING, 'build_version', False, None, 2, ), # 3 +) + +SaveGraphVersionReq.thrift_struct_annotations = { +} +SaveGraphVersionReq.thrift_field_annotations = { +} + +def SaveGraphVersionReq__init__(self, client_version=SaveGraphVersionReq.thrift_spec[1][4], host=None, build_version=None,): + self.client_version = client_version + self.host = host + self.build_version = build_version + +SaveGraphVersionReq.__init__ = SaveGraphVersionReq__init__ + +def SaveGraphVersionReq__setstate__(self, state): + state.setdefault('client_version', "3.0.0") + state.setdefault('host', None) + state.setdefault('build_version', None) + self.__dict__ = state + +SaveGraphVersionReq.__getstate__ = lambda self: self.__dict__.copy() +SaveGraphVersionReq.__setstate__ = SaveGraphVersionReq__setstate__ + fix_spec(all_structs) del all_structs diff --git a/nebula3/storage/GraphStorageService.py b/nebula3/storage/GraphStorageService.py index f90d0fdd..36da314a 100644 --- a/nebula3/storage/GraphStorageService.py +++ b/nebula3/storage/GraphStorageService.py @@ -12,7 +12,7 @@ from nebula3.fbthrift.protocol.TProtocol import TProtocolException -from .ttypes import UTF8STRINGS, StatType, OrderDirection, EdgeDirection, ScanType, EngineSignType, RequestCommon, PartitionResult, ResponseCommon, StatProp, Expr, EdgeProp, VertexProp, OrderBy, TraverseSpec, GetNeighborsRequest, GetNeighborsResponse, ExecResponse, GetPropRequest, GetPropResponse, NewTag, NewVertex, EdgeKey, NewEdge, AddVerticesRequest, AddEdgesRequest, DeleteVerticesRequest, DeleteEdgesRequest, DelTags, DeleteTagsRequest, UpdateResponse, UpdatedProp, UpdateVertexRequest, UpdateEdgeRequest, GetUUIDReq, GetUUIDResp, LookupIndexResp, IndexColumnHint, IndexQueryContext, IndexSpec, LookupIndexRequest, LookupAndTraverseRequest, ScanCursor, ScanVertexRequest, ScanEdgeRequest, ScanResponse, TaskPara, KVGetRequest, KVGetResponse, KVPutRequest, KVRemoveRequest, AdminExecResp, TransLeaderReq, AddPartReq, AddLearnerReq, RemovePartReq, MemberChangeReq, CatchUpDataReq, GetLeaderReq, CreateCPRequest, DropCPRequest, BlockingSignRequest, GetLeaderPartsResp, CheckPeersReq, RebuildIndexRequest, CreateCPResp, ListClusterInfoResp, ListClusterInfoReq, AddAdminTaskRequest, StopAdminTaskRequest, ChainAddEdgesRequest, ChainUpdateEdgeRequest, ChainDeleteEdgesRequest +from .ttypes import UTF8STRINGS, StatType, OrderDirection, EdgeDirection, ScanType, EngineSignType, RequestCommon, PartitionResult, ResponseCommon, StatProp, Expr, EdgeProp, VertexProp, OrderBy, TraverseSpec, GetNeighborsRequest, GetNeighborsResponse, ExecResponse, GetPropRequest, GetPropResponse, NewTag, NewVertex, EdgeKey, NewEdge, AddVerticesRequest, AddEdgesRequest, DeleteVerticesRequest, DeleteEdgesRequest, DelTags, DeleteTagsRequest, UpdateResponse, UpdatedProp, UpdateVertexRequest, UpdateEdgeRequest, GetUUIDReq, GetUUIDResp, LookupIndexResp, IndexColumnHint, IndexQueryContext, IndexSpec, LookupIndexRequest, LookupAndTraverseRequest, ScanCursor, ScanVertexRequest, ScanEdgeRequest, ScanResponse, TaskPara, KVGetRequest, KVGetResponse, KVPutRequest, KVRemoveRequest, AdminExecResp, TransLeaderReq, AddPartReq, AddLearnerReq, RemovePartReq, MemberChangeReq, CatchUpDataReq, GetLeaderReq, CreateCPRequest, CreateCPResp, DropCPRequest, DropCPResp, BlockingSignRequest, BlockingSignResp, GetLeaderPartsResp, CheckPeersReq, RebuildIndexRequest, ListClusterInfoResp, ListClusterInfoReq, AddTaskRequest, AddTaskResp, StopTaskRequest, StopTaskResp, ClearSpaceReq, ClearSpaceResp, ChainAddEdgesRequest, ChainUpdateEdgeRequest, ChainDeleteEdgesRequest import nebula3.common.ttypes import nebula3.meta.ttypes diff --git a/nebula3/storage/StorageAdminService-remote b/nebula3/storage/StorageAdminService-remote index b462ab0d..04a2724a 100755 --- a/nebula3/storage/StorageAdminService-remote +++ b/nebula3/storage/StorageAdminService-remote @@ -49,14 +49,13 @@ FUNCTIONS = { 'memberChange': Function('memberChange', 'StorageAdminService', 'AdminExecResp', [('MemberChangeReq', 'req', 'MemberChangeReq')]), 'waitingForCatchUpData': Function('waitingForCatchUpData', 'StorageAdminService', 'AdminExecResp', [('CatchUpDataReq', 'req', 'CatchUpDataReq')]), 'createCheckpoint': Function('createCheckpoint', 'StorageAdminService', 'CreateCPResp', [('CreateCPRequest', 'req', 'CreateCPRequest')]), - 'dropCheckpoint': Function('dropCheckpoint', 'StorageAdminService', 'AdminExecResp', [('DropCPRequest', 'req', 'DropCPRequest')]), - 'blockingWrites': Function('blockingWrites', 'StorageAdminService', 'AdminExecResp', [('BlockingSignRequest', 'req', 'BlockingSignRequest')]), - 'rebuildTagIndex': Function('rebuildTagIndex', 'StorageAdminService', 'AdminExecResp', [('RebuildIndexRequest', 'req', 'RebuildIndexRequest')]), - 'rebuildEdgeIndex': Function('rebuildEdgeIndex', 'StorageAdminService', 'AdminExecResp', [('RebuildIndexRequest', 'req', 'RebuildIndexRequest')]), + 'dropCheckpoint': Function('dropCheckpoint', 'StorageAdminService', 'DropCPResp', [('DropCPRequest', 'req', 'DropCPRequest')]), + 'blockingWrites': Function('blockingWrites', 'StorageAdminService', 'BlockingSignResp', [('BlockingSignRequest', 'req', 'BlockingSignRequest')]), 'getLeaderParts': Function('getLeaderParts', 'StorageAdminService', 'GetLeaderPartsResp', [('GetLeaderReq', 'req', 'GetLeaderReq')]), 'checkPeers': Function('checkPeers', 'StorageAdminService', 'AdminExecResp', [('CheckPeersReq', 'req', 'CheckPeersReq')]), - 'addAdminTask': Function('addAdminTask', 'StorageAdminService', 'AdminExecResp', [('AddAdminTaskRequest', 'req', 'AddAdminTaskRequest')]), - 'stopAdminTask': Function('stopAdminTask', 'StorageAdminService', 'AdminExecResp', [('StopAdminTaskRequest', 'req', 'StopAdminTaskRequest')]), + 'addAdminTask': Function('addAdminTask', 'StorageAdminService', 'AddTaskResp', [('AddTaskRequest', 'req', 'AddTaskRequest')]), + 'stopAdminTask': Function('stopAdminTask', 'StorageAdminService', 'StopTaskResp', [('StopTaskRequest', 'req', 'StopTaskRequest')]), + 'clearSpace': Function('clearSpace', 'StorageAdminService', 'ClearSpaceResp', [('ClearSpaceReq', 'req', 'ClearSpaceReq')]), } SERVICE_NAMES = ['StorageAdminService', ] diff --git a/nebula3/storage/StorageAdminService.py b/nebula3/storage/StorageAdminService.py index 235483fa..8f60dc0c 100644 --- a/nebula3/storage/StorageAdminService.py +++ b/nebula3/storage/StorageAdminService.py @@ -12,7 +12,7 @@ from nebula3.fbthrift.protocol.TProtocol import TProtocolException -from .ttypes import UTF8STRINGS, StatType, OrderDirection, EdgeDirection, ScanType, EngineSignType, RequestCommon, PartitionResult, ResponseCommon, StatProp, Expr, EdgeProp, VertexProp, OrderBy, TraverseSpec, GetNeighborsRequest, GetNeighborsResponse, ExecResponse, GetPropRequest, GetPropResponse, NewTag, NewVertex, EdgeKey, NewEdge, AddVerticesRequest, AddEdgesRequest, DeleteVerticesRequest, DeleteEdgesRequest, DelTags, DeleteTagsRequest, UpdateResponse, UpdatedProp, UpdateVertexRequest, UpdateEdgeRequest, GetUUIDReq, GetUUIDResp, LookupIndexResp, IndexColumnHint, IndexQueryContext, IndexSpec, LookupIndexRequest, LookupAndTraverseRequest, ScanCursor, ScanVertexRequest, ScanEdgeRequest, ScanResponse, TaskPara, KVGetRequest, KVGetResponse, KVPutRequest, KVRemoveRequest, AdminExecResp, TransLeaderReq, AddPartReq, AddLearnerReq, RemovePartReq, MemberChangeReq, CatchUpDataReq, GetLeaderReq, CreateCPRequest, DropCPRequest, BlockingSignRequest, GetLeaderPartsResp, CheckPeersReq, RebuildIndexRequest, CreateCPResp, ListClusterInfoResp, ListClusterInfoReq, AddAdminTaskRequest, StopAdminTaskRequest, ChainAddEdgesRequest, ChainUpdateEdgeRequest, ChainDeleteEdgesRequest +from .ttypes import UTF8STRINGS, StatType, OrderDirection, EdgeDirection, ScanType, EngineSignType, RequestCommon, PartitionResult, ResponseCommon, StatProp, Expr, EdgeProp, VertexProp, OrderBy, TraverseSpec, GetNeighborsRequest, GetNeighborsResponse, ExecResponse, GetPropRequest, GetPropResponse, NewTag, NewVertex, EdgeKey, NewEdge, AddVerticesRequest, AddEdgesRequest, DeleteVerticesRequest, DeleteEdgesRequest, DelTags, DeleteTagsRequest, UpdateResponse, UpdatedProp, UpdateVertexRequest, UpdateEdgeRequest, GetUUIDReq, GetUUIDResp, LookupIndexResp, IndexColumnHint, IndexQueryContext, IndexSpec, LookupIndexRequest, LookupAndTraverseRequest, ScanCursor, ScanVertexRequest, ScanEdgeRequest, ScanResponse, TaskPara, KVGetRequest, KVGetResponse, KVPutRequest, KVRemoveRequest, AdminExecResp, TransLeaderReq, AddPartReq, AddLearnerReq, RemovePartReq, MemberChangeReq, CatchUpDataReq, GetLeaderReq, CreateCPRequest, CreateCPResp, DropCPRequest, DropCPResp, BlockingSignRequest, BlockingSignResp, GetLeaderPartsResp, CheckPeersReq, RebuildIndexRequest, ListClusterInfoResp, ListClusterInfoReq, AddTaskRequest, AddTaskResp, StopTaskRequest, StopTaskResp, ClearSpaceReq, ClearSpaceResp, ChainAddEdgesRequest, ChainUpdateEdgeRequest, ChainDeleteEdgesRequest import nebula3.common.ttypes import nebula3.meta.ttypes @@ -106,42 +106,35 @@ def blockingWrites(self, req=None): """ pass - def rebuildTagIndex(self, req=None): - """ - Parameters: - - req - """ - pass - - def rebuildEdgeIndex(self, req=None): + def getLeaderParts(self, req=None): """ Parameters: - req """ pass - def getLeaderParts(self, req=None): + def checkPeers(self, req=None): """ Parameters: - req """ pass - def checkPeers(self, req=None): + def addAdminTask(self, req=None): """ Parameters: - req """ pass - def addAdminTask(self, req=None): + def stopAdminTask(self, req=None): """ Parameters: - req """ pass - def stopAdminTask(self, req=None): + def clearSpace(self, req=None): """ Parameters: - req @@ -213,42 +206,35 @@ def blockingWrites(self, handler_ctx, req=None): """ pass - def rebuildTagIndex(self, handler_ctx, req=None): - """ - Parameters: - - req - """ - pass - - def rebuildEdgeIndex(self, handler_ctx, req=None): + def getLeaderParts(self, handler_ctx, req=None): """ Parameters: - req """ pass - def getLeaderParts(self, handler_ctx, req=None): + def checkPeers(self, handler_ctx, req=None): """ Parameters: - req """ pass - def checkPeers(self, handler_ctx, req=None): + def addAdminTask(self, handler_ctx, req=None): """ Parameters: - req """ pass - def addAdminTask(self, handler_ctx, req=None): + def stopAdminTask(self, handler_ctx, req=None): """ Parameters: - req """ pass - def stopAdminTask(self, handler_ctx, req=None): + def clearSpace(self, handler_ctx, req=None): """ Parameters: - req @@ -1719,7 +1705,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = AdminExecResp() + self.success = DropCPResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -1766,7 +1752,7 @@ def __ne__(self, other): all_structs.append(dropCheckpoint_result) dropCheckpoint_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [AdminExecResp, AdminExecResp.thrift_spec, False], None, 2, ), # 0 + (0, TType.STRUCT, 'success', [DropCPResp, DropCPResp.thrift_spec, False], None, 2, ), # 0 ) dropCheckpoint_result.thrift_struct_annotations = { @@ -1910,7 +1896,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = AdminExecResp() + self.success = BlockingSignResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -1957,7 +1943,7 @@ def __ne__(self, other): all_structs.append(blockingWrites_result) blockingWrites_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [AdminExecResp, AdminExecResp.thrift_spec, False], None, 2, ), # 0 + (0, TType.STRUCT, 'success', [BlockingSignResp, BlockingSignResp.thrift_spec, False], None, 2, ), # 0 ) blockingWrites_result.thrift_struct_annotations = { @@ -1977,7 +1963,7 @@ def blockingWrites_result__setstate__(self, state): blockingWrites_result.__getstate__ = lambda self: self.__dict__.copy() blockingWrites_result.__setstate__ = blockingWrites_result__setstate__ -class rebuildTagIndex_args: +class getLeaderParts_args: """ Attributes: - req @@ -2005,7 +1991,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = RebuildIndexRequest() + self.req = GetLeaderReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -2021,7 +2007,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('rebuildTagIndex_args') + oprot.writeStructBegin('getLeaderParts_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -2050,30 +2036,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(rebuildTagIndex_args) -rebuildTagIndex_args.thrift_spec = ( +all_structs.append(getLeaderParts_args) +getLeaderParts_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [RebuildIndexRequest, RebuildIndexRequest.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [GetLeaderReq, GetLeaderReq.thrift_spec, False], None, 2, ), # 1 ) -rebuildTagIndex_args.thrift_struct_annotations = { +getLeaderParts_args.thrift_struct_annotations = { } -rebuildTagIndex_args.thrift_field_annotations = { +getLeaderParts_args.thrift_field_annotations = { } -def rebuildTagIndex_args__init__(self, req=None,): +def getLeaderParts_args__init__(self, req=None,): self.req = req -rebuildTagIndex_args.__init__ = rebuildTagIndex_args__init__ +getLeaderParts_args.__init__ = getLeaderParts_args__init__ -def rebuildTagIndex_args__setstate__(self, state): +def getLeaderParts_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -rebuildTagIndex_args.__getstate__ = lambda self: self.__dict__.copy() -rebuildTagIndex_args.__setstate__ = rebuildTagIndex_args__setstate__ +getLeaderParts_args.__getstate__ = lambda self: self.__dict__.copy() +getLeaderParts_args.__setstate__ = getLeaderParts_args__setstate__ -class rebuildTagIndex_result: +class getLeaderParts_result: """ Attributes: - success @@ -2101,7 +2087,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = AdminExecResp() + self.success = GetLeaderPartsResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -2117,7 +2103,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('rebuildTagIndex_result') + oprot.writeStructBegin('getLeaderParts_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -2146,29 +2132,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(rebuildTagIndex_result) -rebuildTagIndex_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [AdminExecResp, AdminExecResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(getLeaderParts_result) +getLeaderParts_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [GetLeaderPartsResp, GetLeaderPartsResp.thrift_spec, False], None, 2, ), # 0 ) -rebuildTagIndex_result.thrift_struct_annotations = { +getLeaderParts_result.thrift_struct_annotations = { } -rebuildTagIndex_result.thrift_field_annotations = { +getLeaderParts_result.thrift_field_annotations = { } -def rebuildTagIndex_result__init__(self, success=None,): +def getLeaderParts_result__init__(self, success=None,): self.success = success -rebuildTagIndex_result.__init__ = rebuildTagIndex_result__init__ +getLeaderParts_result.__init__ = getLeaderParts_result__init__ -def rebuildTagIndex_result__setstate__(self, state): +def getLeaderParts_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -rebuildTagIndex_result.__getstate__ = lambda self: self.__dict__.copy() -rebuildTagIndex_result.__setstate__ = rebuildTagIndex_result__setstate__ +getLeaderParts_result.__getstate__ = lambda self: self.__dict__.copy() +getLeaderParts_result.__setstate__ = getLeaderParts_result__setstate__ -class rebuildEdgeIndex_args: +class checkPeers_args: """ Attributes: - req @@ -2196,7 +2182,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = RebuildIndexRequest() + self.req = CheckPeersReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -2212,7 +2198,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('rebuildEdgeIndex_args') + oprot.writeStructBegin('checkPeers_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -2241,30 +2227,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(rebuildEdgeIndex_args) -rebuildEdgeIndex_args.thrift_spec = ( +all_structs.append(checkPeers_args) +checkPeers_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [RebuildIndexRequest, RebuildIndexRequest.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [CheckPeersReq, CheckPeersReq.thrift_spec, False], None, 2, ), # 1 ) -rebuildEdgeIndex_args.thrift_struct_annotations = { +checkPeers_args.thrift_struct_annotations = { } -rebuildEdgeIndex_args.thrift_field_annotations = { +checkPeers_args.thrift_field_annotations = { } -def rebuildEdgeIndex_args__init__(self, req=None,): +def checkPeers_args__init__(self, req=None,): self.req = req -rebuildEdgeIndex_args.__init__ = rebuildEdgeIndex_args__init__ +checkPeers_args.__init__ = checkPeers_args__init__ -def rebuildEdgeIndex_args__setstate__(self, state): +def checkPeers_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -rebuildEdgeIndex_args.__getstate__ = lambda self: self.__dict__.copy() -rebuildEdgeIndex_args.__setstate__ = rebuildEdgeIndex_args__setstate__ +checkPeers_args.__getstate__ = lambda self: self.__dict__.copy() +checkPeers_args.__setstate__ = checkPeers_args__setstate__ -class rebuildEdgeIndex_result: +class checkPeers_result: """ Attributes: - success @@ -2308,7 +2294,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('rebuildEdgeIndex_result') + oprot.writeStructBegin('checkPeers_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -2337,220 +2323,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(rebuildEdgeIndex_result) -rebuildEdgeIndex_result.thrift_spec = ( +all_structs.append(checkPeers_result) +checkPeers_result.thrift_spec = ( (0, TType.STRUCT, 'success', [AdminExecResp, AdminExecResp.thrift_spec, False], None, 2, ), # 0 ) -rebuildEdgeIndex_result.thrift_struct_annotations = { -} -rebuildEdgeIndex_result.thrift_field_annotations = { -} - -def rebuildEdgeIndex_result__init__(self, success=None,): - self.success = success - -rebuildEdgeIndex_result.__init__ = rebuildEdgeIndex_result__init__ - -def rebuildEdgeIndex_result__setstate__(self, state): - state.setdefault('success', None) - self.__dict__ = state - -rebuildEdgeIndex_result.__getstate__ = lambda self: self.__dict__.copy() -rebuildEdgeIndex_result.__setstate__ = rebuildEdgeIndex_result__setstate__ - -class getLeaderParts_args: - """ - Attributes: - - req - """ - - thrift_spec = None - thrift_field_annotations = None - thrift_struct_annotations = None - __init__ = None - @staticmethod - def isUnion(): - return False - - def read(self, iprot): - if (isinstance(iprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: - fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0) - return - if (isinstance(iprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: - fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - if fid == 1: - if ftype == TType.STRUCT: - self.req = GetLeaderReq() - self.req.read(iprot) - else: - iprot.skip(ftype) - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if (isinstance(oprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: - oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0)) - return - if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: - oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) - return - oprot.writeStructBegin('getLeaderParts_args') - if self.req != None: - oprot.writeFieldBegin('req', TType.STRUCT, 1) - self.req.write(oprot) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def __repr__(self): - L = [] - padding = ' ' * 4 - if self.req is not None: - value = pprint.pformat(self.req, indent=0) - value = padding.join(value.splitlines(True)) - L.append(' req=%s' % (value)) - return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') - - def __eq__(self, other): - if not isinstance(other, self.__class__): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not (self == other) - - # Override the __hash__ function for Python3 - t10434117 - __hash__ = object.__hash__ - -all_structs.append(getLeaderParts_args) -getLeaderParts_args.thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'req', [GetLeaderReq, GetLeaderReq.thrift_spec, False], None, 2, ), # 1 -) - -getLeaderParts_args.thrift_struct_annotations = { -} -getLeaderParts_args.thrift_field_annotations = { -} - -def getLeaderParts_args__init__(self, req=None,): - self.req = req - -getLeaderParts_args.__init__ = getLeaderParts_args__init__ - -def getLeaderParts_args__setstate__(self, state): - state.setdefault('req', None) - self.__dict__ = state - -getLeaderParts_args.__getstate__ = lambda self: self.__dict__.copy() -getLeaderParts_args.__setstate__ = getLeaderParts_args__setstate__ - -class getLeaderParts_result: - """ - Attributes: - - success - """ - - thrift_spec = None - thrift_field_annotations = None - thrift_struct_annotations = None - __init__ = None - @staticmethod - def isUnion(): - return False - - def read(self, iprot): - if (isinstance(iprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: - fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0) - return - if (isinstance(iprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: - fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - if fid == 0: - if ftype == TType.STRUCT: - self.success = GetLeaderPartsResp() - self.success.read(iprot) - else: - iprot.skip(ftype) - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if (isinstance(oprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: - oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0)) - return - if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: - oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) - return - oprot.writeStructBegin('getLeaderParts_result') - if self.success != None: - oprot.writeFieldBegin('success', TType.STRUCT, 0) - self.success.write(oprot) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def __repr__(self): - L = [] - padding = ' ' * 4 - if self.success is not None: - value = pprint.pformat(self.success, indent=0) - value = padding.join(value.splitlines(True)) - L.append(' success=%s' % (value)) - return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') - - def __eq__(self, other): - if not isinstance(other, self.__class__): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not (self == other) - - # Override the __hash__ function for Python3 - t10434117 - __hash__ = object.__hash__ - -all_structs.append(getLeaderParts_result) -getLeaderParts_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [GetLeaderPartsResp, GetLeaderPartsResp.thrift_spec, False], None, 2, ), # 0 -) - -getLeaderParts_result.thrift_struct_annotations = { +checkPeers_result.thrift_struct_annotations = { } -getLeaderParts_result.thrift_field_annotations = { +checkPeers_result.thrift_field_annotations = { } -def getLeaderParts_result__init__(self, success=None,): +def checkPeers_result__init__(self, success=None,): self.success = success -getLeaderParts_result.__init__ = getLeaderParts_result__init__ +checkPeers_result.__init__ = checkPeers_result__init__ -def getLeaderParts_result__setstate__(self, state): +def checkPeers_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -getLeaderParts_result.__getstate__ = lambda self: self.__dict__.copy() -getLeaderParts_result.__setstate__ = getLeaderParts_result__setstate__ +checkPeers_result.__getstate__ = lambda self: self.__dict__.copy() +checkPeers_result.__setstate__ = checkPeers_result__setstate__ -class checkPeers_args: +class addAdminTask_args: """ Attributes: - req @@ -2578,7 +2373,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = CheckPeersReq() + self.req = AddTaskRequest() self.req.read(iprot) else: iprot.skip(ftype) @@ -2594,7 +2389,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('checkPeers_args') + oprot.writeStructBegin('addAdminTask_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -2623,30 +2418,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(checkPeers_args) -checkPeers_args.thrift_spec = ( +all_structs.append(addAdminTask_args) +addAdminTask_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [CheckPeersReq, CheckPeersReq.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [AddTaskRequest, AddTaskRequest.thrift_spec, False], None, 2, ), # 1 ) -checkPeers_args.thrift_struct_annotations = { +addAdminTask_args.thrift_struct_annotations = { } -checkPeers_args.thrift_field_annotations = { +addAdminTask_args.thrift_field_annotations = { } -def checkPeers_args__init__(self, req=None,): +def addAdminTask_args__init__(self, req=None,): self.req = req -checkPeers_args.__init__ = checkPeers_args__init__ +addAdminTask_args.__init__ = addAdminTask_args__init__ -def checkPeers_args__setstate__(self, state): +def addAdminTask_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -checkPeers_args.__getstate__ = lambda self: self.__dict__.copy() -checkPeers_args.__setstate__ = checkPeers_args__setstate__ +addAdminTask_args.__getstate__ = lambda self: self.__dict__.copy() +addAdminTask_args.__setstate__ = addAdminTask_args__setstate__ -class checkPeers_result: +class addAdminTask_result: """ Attributes: - success @@ -2674,7 +2469,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = AdminExecResp() + self.success = AddTaskResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -2690,7 +2485,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('checkPeers_result') + oprot.writeStructBegin('addAdminTask_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -2719,29 +2514,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(checkPeers_result) -checkPeers_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [AdminExecResp, AdminExecResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(addAdminTask_result) +addAdminTask_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [AddTaskResp, AddTaskResp.thrift_spec, False], None, 2, ), # 0 ) -checkPeers_result.thrift_struct_annotations = { +addAdminTask_result.thrift_struct_annotations = { } -checkPeers_result.thrift_field_annotations = { +addAdminTask_result.thrift_field_annotations = { } -def checkPeers_result__init__(self, success=None,): +def addAdminTask_result__init__(self, success=None,): self.success = success -checkPeers_result.__init__ = checkPeers_result__init__ +addAdminTask_result.__init__ = addAdminTask_result__init__ -def checkPeers_result__setstate__(self, state): +def addAdminTask_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -checkPeers_result.__getstate__ = lambda self: self.__dict__.copy() -checkPeers_result.__setstate__ = checkPeers_result__setstate__ +addAdminTask_result.__getstate__ = lambda self: self.__dict__.copy() +addAdminTask_result.__setstate__ = addAdminTask_result__setstate__ -class addAdminTask_args: +class stopAdminTask_args: """ Attributes: - req @@ -2769,7 +2564,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = AddAdminTaskRequest() + self.req = StopTaskRequest() self.req.read(iprot) else: iprot.skip(ftype) @@ -2785,7 +2580,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('addAdminTask_args') + oprot.writeStructBegin('stopAdminTask_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -2814,30 +2609,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(addAdminTask_args) -addAdminTask_args.thrift_spec = ( +all_structs.append(stopAdminTask_args) +stopAdminTask_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [AddAdminTaskRequest, AddAdminTaskRequest.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [StopTaskRequest, StopTaskRequest.thrift_spec, False], None, 2, ), # 1 ) -addAdminTask_args.thrift_struct_annotations = { +stopAdminTask_args.thrift_struct_annotations = { } -addAdminTask_args.thrift_field_annotations = { +stopAdminTask_args.thrift_field_annotations = { } -def addAdminTask_args__init__(self, req=None,): +def stopAdminTask_args__init__(self, req=None,): self.req = req -addAdminTask_args.__init__ = addAdminTask_args__init__ +stopAdminTask_args.__init__ = stopAdminTask_args__init__ -def addAdminTask_args__setstate__(self, state): +def stopAdminTask_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -addAdminTask_args.__getstate__ = lambda self: self.__dict__.copy() -addAdminTask_args.__setstate__ = addAdminTask_args__setstate__ +stopAdminTask_args.__getstate__ = lambda self: self.__dict__.copy() +stopAdminTask_args.__setstate__ = stopAdminTask_args__setstate__ -class addAdminTask_result: +class stopAdminTask_result: """ Attributes: - success @@ -2865,7 +2660,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = AdminExecResp() + self.success = StopTaskResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -2881,7 +2676,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('addAdminTask_result') + oprot.writeStructBegin('stopAdminTask_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -2910,29 +2705,29 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(addAdminTask_result) -addAdminTask_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [AdminExecResp, AdminExecResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(stopAdminTask_result) +stopAdminTask_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [StopTaskResp, StopTaskResp.thrift_spec, False], None, 2, ), # 0 ) -addAdminTask_result.thrift_struct_annotations = { +stopAdminTask_result.thrift_struct_annotations = { } -addAdminTask_result.thrift_field_annotations = { +stopAdminTask_result.thrift_field_annotations = { } -def addAdminTask_result__init__(self, success=None,): +def stopAdminTask_result__init__(self, success=None,): self.success = success -addAdminTask_result.__init__ = addAdminTask_result__init__ +stopAdminTask_result.__init__ = stopAdminTask_result__init__ -def addAdminTask_result__setstate__(self, state): +def stopAdminTask_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -addAdminTask_result.__getstate__ = lambda self: self.__dict__.copy() -addAdminTask_result.__setstate__ = addAdminTask_result__setstate__ +stopAdminTask_result.__getstate__ = lambda self: self.__dict__.copy() +stopAdminTask_result.__setstate__ = stopAdminTask_result__setstate__ -class stopAdminTask_args: +class clearSpace_args: """ Attributes: - req @@ -2960,7 +2755,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRUCT: - self.req = StopAdminTaskRequest() + self.req = ClearSpaceReq() self.req.read(iprot) else: iprot.skip(ftype) @@ -2976,7 +2771,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('stopAdminTask_args') + oprot.writeStructBegin('clearSpace_args') if self.req != None: oprot.writeFieldBegin('req', TType.STRUCT, 1) self.req.write(oprot) @@ -3005,30 +2800,30 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(stopAdminTask_args) -stopAdminTask_args.thrift_spec = ( +all_structs.append(clearSpace_args) +clearSpace_args.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', [StopAdminTaskRequest, StopAdminTaskRequest.thrift_spec, False], None, 2, ), # 1 + (1, TType.STRUCT, 'req', [ClearSpaceReq, ClearSpaceReq.thrift_spec, False], None, 2, ), # 1 ) -stopAdminTask_args.thrift_struct_annotations = { +clearSpace_args.thrift_struct_annotations = { } -stopAdminTask_args.thrift_field_annotations = { +clearSpace_args.thrift_field_annotations = { } -def stopAdminTask_args__init__(self, req=None,): +def clearSpace_args__init__(self, req=None,): self.req = req -stopAdminTask_args.__init__ = stopAdminTask_args__init__ +clearSpace_args.__init__ = clearSpace_args__init__ -def stopAdminTask_args__setstate__(self, state): +def clearSpace_args__setstate__(self, state): state.setdefault('req', None) self.__dict__ = state -stopAdminTask_args.__getstate__ = lambda self: self.__dict__.copy() -stopAdminTask_args.__setstate__ = stopAdminTask_args__setstate__ +clearSpace_args.__getstate__ = lambda self: self.__dict__.copy() +clearSpace_args.__setstate__ = clearSpace_args__setstate__ -class stopAdminTask_result: +class clearSpace_result: """ Attributes: - success @@ -3056,7 +2851,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRUCT: - self.success = AdminExecResp() + self.success = ClearSpaceResp() self.success.read(iprot) else: iprot.skip(ftype) @@ -3072,7 +2867,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('stopAdminTask_result') + oprot.writeStructBegin('clearSpace_result') if self.success != None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) @@ -3101,27 +2896,27 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -all_structs.append(stopAdminTask_result) -stopAdminTask_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [AdminExecResp, AdminExecResp.thrift_spec, False], None, 2, ), # 0 +all_structs.append(clearSpace_result) +clearSpace_result.thrift_spec = ( + (0, TType.STRUCT, 'success', [ClearSpaceResp, ClearSpaceResp.thrift_spec, False], None, 2, ), # 0 ) -stopAdminTask_result.thrift_struct_annotations = { +clearSpace_result.thrift_struct_annotations = { } -stopAdminTask_result.thrift_field_annotations = { +clearSpace_result.thrift_field_annotations = { } -def stopAdminTask_result__init__(self, success=None,): +def clearSpace_result__init__(self, success=None,): self.success = success -stopAdminTask_result.__init__ = stopAdminTask_result__init__ +clearSpace_result.__init__ = clearSpace_result__init__ -def stopAdminTask_result__setstate__(self, state): +def clearSpace_result__setstate__(self, state): state.setdefault('success', None) self.__dict__ = state -stopAdminTask_result.__getstate__ = lambda self: self.__dict__.copy() -stopAdminTask_result.__setstate__ = stopAdminTask_result__setstate__ +clearSpace_result.__getstate__ = lambda self: self.__dict__.copy() +clearSpace_result.__setstate__ = clearSpace_result__setstate__ class Client(Iface): def __enter__(self): @@ -3408,66 +3203,6 @@ def recv_blockingWrites(self, ): return result.success raise TApplicationException(TApplicationException.MISSING_RESULT, "blockingWrites failed: unknown result"); - def rebuildTagIndex(self, req=None): - """ - Parameters: - - req - """ - self.send_rebuildTagIndex(req) - return self.recv_rebuildTagIndex() - - def send_rebuildTagIndex(self, req=None): - self._oprot.writeMessageBegin('rebuildTagIndex', TMessageType.CALL, self._seqid) - args = rebuildTagIndex_args() - args.req = req - args.write(self._oprot) - self._oprot.writeMessageEnd() - self._oprot.trans.flush() - - def recv_rebuildTagIndex(self, ): - (fname, mtype, rseqid) = self._iprot.readMessageBegin() - if mtype == TMessageType.EXCEPTION: - x = TApplicationException() - x.read(self._iprot) - self._iprot.readMessageEnd() - raise x - result = rebuildTagIndex_result() - result.read(self._iprot) - self._iprot.readMessageEnd() - if result.success != None: - return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "rebuildTagIndex failed: unknown result"); - - def rebuildEdgeIndex(self, req=None): - """ - Parameters: - - req - """ - self.send_rebuildEdgeIndex(req) - return self.recv_rebuildEdgeIndex() - - def send_rebuildEdgeIndex(self, req=None): - self._oprot.writeMessageBegin('rebuildEdgeIndex', TMessageType.CALL, self._seqid) - args = rebuildEdgeIndex_args() - args.req = req - args.write(self._oprot) - self._oprot.writeMessageEnd() - self._oprot.trans.flush() - - def recv_rebuildEdgeIndex(self, ): - (fname, mtype, rseqid) = self._iprot.readMessageBegin() - if mtype == TMessageType.EXCEPTION: - x = TApplicationException() - x.read(self._iprot) - self._iprot.readMessageEnd() - raise x - result = rebuildEdgeIndex_result() - result.read(self._iprot) - self._iprot.readMessageEnd() - if result.success != None: - return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "rebuildEdgeIndex failed: unknown result"); - def getLeaderParts(self, req=None): """ Parameters: @@ -3588,6 +3323,36 @@ def recv_stopAdminTask(self, ): return result.success raise TApplicationException(TApplicationException.MISSING_RESULT, "stopAdminTask failed: unknown result"); + def clearSpace(self, req=None): + """ + Parameters: + - req + """ + self.send_clearSpace(req) + return self.recv_clearSpace() + + def send_clearSpace(self, req=None): + self._oprot.writeMessageBegin('clearSpace', TMessageType.CALL, self._seqid) + args = clearSpace_args() + args.req = req + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_clearSpace(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(self._iprot) + self._iprot.readMessageEnd() + raise x + result = clearSpace_result() + result.read(self._iprot) + self._iprot.readMessageEnd() + if result.success != None: + return result.success + raise TApplicationException(TApplicationException.MISSING_RESULT, "clearSpace failed: unknown result"); + class Processor(Iface, TProcessor): _onewayMethods = () @@ -3615,10 +3380,6 @@ def __init__(self, handler): self._priorityMap["dropCheckpoint"] = TPriority.NORMAL self._processMap["blockingWrites"] = Processor.process_blockingWrites self._priorityMap["blockingWrites"] = TPriority.NORMAL - self._processMap["rebuildTagIndex"] = Processor.process_rebuildTagIndex - self._priorityMap["rebuildTagIndex"] = TPriority.NORMAL - self._processMap["rebuildEdgeIndex"] = Processor.process_rebuildEdgeIndex - self._priorityMap["rebuildEdgeIndex"] = TPriority.NORMAL self._processMap["getLeaderParts"] = Processor.process_getLeaderParts self._priorityMap["getLeaderParts"] = TPriority.NORMAL self._processMap["checkPeers"] = Processor.process_checkPeers @@ -3627,6 +3388,8 @@ def __init__(self, handler): self._priorityMap["addAdminTask"] = TPriority.NORMAL self._processMap["stopAdminTask"] = Processor.process_stopAdminTask self._priorityMap["stopAdminTask"] = TPriority.NORMAL + self._processMap["clearSpace"] = Processor.process_clearSpace + self._priorityMap["clearSpace"] = TPriority.NORMAL def onewayMethods(self): l = [] @@ -3735,28 +3498,6 @@ def process_blockingWrites(self, args, handler_ctx): result = Thrift.TApplicationException(message=repr(ex)) return result - @thrift_process_method(rebuildTagIndex_args, oneway=False) - def process_rebuildTagIndex(self, args, handler_ctx): - result = rebuildTagIndex_result() - try: - result.success = self._handler.rebuildTagIndex(args.req) - except: - ex = sys.exc_info()[1] - self._event_handler.handlerError(handler_ctx, 'rebuildTagIndex', ex) - result = Thrift.TApplicationException(message=repr(ex)) - return result - - @thrift_process_method(rebuildEdgeIndex_args, oneway=False) - def process_rebuildEdgeIndex(self, args, handler_ctx): - result = rebuildEdgeIndex_result() - try: - result.success = self._handler.rebuildEdgeIndex(args.req) - except: - ex = sys.exc_info()[1] - self._event_handler.handlerError(handler_ctx, 'rebuildEdgeIndex', ex) - result = Thrift.TApplicationException(message=repr(ex)) - return result - @thrift_process_method(getLeaderParts_args, oneway=False) def process_getLeaderParts(self, args, handler_ctx): result = getLeaderParts_result() @@ -3801,6 +3542,17 @@ def process_stopAdminTask(self, args, handler_ctx): result = Thrift.TApplicationException(message=repr(ex)) return result + @thrift_process_method(clearSpace_args, oneway=False) + def process_clearSpace(self, args, handler_ctx): + result = clearSpace_result() + try: + result.success = self._handler.clearSpace(args.req) + except: + ex = sys.exc_info()[1] + self._event_handler.handlerError(handler_ctx, 'clearSpace', ex) + result = Thrift.TApplicationException(message=repr(ex)) + return result + Iface._processor_type = Processor class ContextProcessor(ContextIface, TProcessor): @@ -3829,10 +3581,6 @@ def __init__(self, handler): self._priorityMap["dropCheckpoint"] = TPriority.NORMAL self._processMap["blockingWrites"] = ContextProcessor.process_blockingWrites self._priorityMap["blockingWrites"] = TPriority.NORMAL - self._processMap["rebuildTagIndex"] = ContextProcessor.process_rebuildTagIndex - self._priorityMap["rebuildTagIndex"] = TPriority.NORMAL - self._processMap["rebuildEdgeIndex"] = ContextProcessor.process_rebuildEdgeIndex - self._priorityMap["rebuildEdgeIndex"] = TPriority.NORMAL self._processMap["getLeaderParts"] = ContextProcessor.process_getLeaderParts self._priorityMap["getLeaderParts"] = TPriority.NORMAL self._processMap["checkPeers"] = ContextProcessor.process_checkPeers @@ -3841,6 +3589,8 @@ def __init__(self, handler): self._priorityMap["addAdminTask"] = TPriority.NORMAL self._processMap["stopAdminTask"] = ContextProcessor.process_stopAdminTask self._priorityMap["stopAdminTask"] = TPriority.NORMAL + self._processMap["clearSpace"] = ContextProcessor.process_clearSpace + self._priorityMap["clearSpace"] = TPriority.NORMAL def onewayMethods(self): l = [] @@ -3949,28 +3699,6 @@ def process_blockingWrites(self, args, handler_ctx): result = Thrift.TApplicationException(message=repr(ex)) return result - @thrift_process_method(rebuildTagIndex_args, oneway=False) - def process_rebuildTagIndex(self, args, handler_ctx): - result = rebuildTagIndex_result() - try: - result.success = self._handler.rebuildTagIndex(handler_ctx, args.req) - except: - ex = sys.exc_info()[1] - self._event_handler.handlerError(handler_ctx, 'rebuildTagIndex', ex) - result = Thrift.TApplicationException(message=repr(ex)) - return result - - @thrift_process_method(rebuildEdgeIndex_args, oneway=False) - def process_rebuildEdgeIndex(self, args, handler_ctx): - result = rebuildEdgeIndex_result() - try: - result.success = self._handler.rebuildEdgeIndex(handler_ctx, args.req) - except: - ex = sys.exc_info()[1] - self._event_handler.handlerError(handler_ctx, 'rebuildEdgeIndex', ex) - result = Thrift.TApplicationException(message=repr(ex)) - return result - @thrift_process_method(getLeaderParts_args, oneway=False) def process_getLeaderParts(self, args, handler_ctx): result = getLeaderParts_result() @@ -4015,6 +3743,17 @@ def process_stopAdminTask(self, args, handler_ctx): result = Thrift.TApplicationException(message=repr(ex)) return result + @thrift_process_method(clearSpace_args, oneway=False) + def process_clearSpace(self, args, handler_ctx): + result = clearSpace_result() + try: + result.success = self._handler.clearSpace(handler_ctx, args.req) + except: + ex = sys.exc_info()[1] + self._event_handler.handlerError(handler_ctx, 'clearSpace', ex) + result = Thrift.TApplicationException(message=repr(ex)) + return result + ContextIface._processor_type = ContextProcessor fix_spec(all_structs) diff --git a/nebula3/storage/constants.py b/nebula3/storage/constants.py index 2a73d771..38db6b9b 100644 --- a/nebula3/storage/constants.py +++ b/nebula3/storage/constants.py @@ -16,5 +16,5 @@ import nebula3.meta.ttypes -from .ttypes import UTF8STRINGS, StatType, OrderDirection, EdgeDirection, ScanType, EngineSignType, RequestCommon, PartitionResult, ResponseCommon, StatProp, Expr, EdgeProp, VertexProp, OrderBy, TraverseSpec, GetNeighborsRequest, GetNeighborsResponse, ExecResponse, GetPropRequest, GetPropResponse, NewTag, NewVertex, EdgeKey, NewEdge, AddVerticesRequest, AddEdgesRequest, DeleteVerticesRequest, DeleteEdgesRequest, DelTags, DeleteTagsRequest, UpdateResponse, UpdatedProp, UpdateVertexRequest, UpdateEdgeRequest, GetUUIDReq, GetUUIDResp, LookupIndexResp, IndexColumnHint, IndexQueryContext, IndexSpec, LookupIndexRequest, LookupAndTraverseRequest, ScanCursor, ScanVertexRequest, ScanEdgeRequest, ScanResponse, TaskPara, KVGetRequest, KVGetResponse, KVPutRequest, KVRemoveRequest, AdminExecResp, TransLeaderReq, AddPartReq, AddLearnerReq, RemovePartReq, MemberChangeReq, CatchUpDataReq, GetLeaderReq, CreateCPRequest, DropCPRequest, BlockingSignRequest, GetLeaderPartsResp, CheckPeersReq, RebuildIndexRequest, CreateCPResp, ListClusterInfoResp, ListClusterInfoReq, AddAdminTaskRequest, StopAdminTaskRequest, ChainAddEdgesRequest, ChainUpdateEdgeRequest, ChainDeleteEdgesRequest +from .ttypes import UTF8STRINGS, StatType, OrderDirection, EdgeDirection, ScanType, EngineSignType, RequestCommon, PartitionResult, ResponseCommon, StatProp, Expr, EdgeProp, VertexProp, OrderBy, TraverseSpec, GetNeighborsRequest, GetNeighborsResponse, ExecResponse, GetPropRequest, GetPropResponse, NewTag, NewVertex, EdgeKey, NewEdge, AddVerticesRequest, AddEdgesRequest, DeleteVerticesRequest, DeleteEdgesRequest, DelTags, DeleteTagsRequest, UpdateResponse, UpdatedProp, UpdateVertexRequest, UpdateEdgeRequest, GetUUIDReq, GetUUIDResp, LookupIndexResp, IndexColumnHint, IndexQueryContext, IndexSpec, LookupIndexRequest, LookupAndTraverseRequest, ScanCursor, ScanVertexRequest, ScanEdgeRequest, ScanResponse, TaskPara, KVGetRequest, KVGetResponse, KVPutRequest, KVRemoveRequest, AdminExecResp, TransLeaderReq, AddPartReq, AddLearnerReq, RemovePartReq, MemberChangeReq, CatchUpDataReq, GetLeaderReq, CreateCPRequest, CreateCPResp, DropCPRequest, DropCPResp, BlockingSignRequest, BlockingSignResp, GetLeaderPartsResp, CheckPeersReq, RebuildIndexRequest, ListClusterInfoResp, ListClusterInfoReq, AddTaskRequest, AddTaskResp, StopTaskRequest, StopTaskResp, ClearSpaceReq, ClearSpaceResp, ChainAddEdgesRequest, ChainUpdateEdgeRequest, ChainDeleteEdgesRequest diff --git a/nebula3/storage/ttypes.py b/nebula3/storage/ttypes.py index 1865f065..5ce05993 100644 --- a/nebula3/storage/ttypes.py +++ b/nebula3/storage/ttypes.py @@ -31,7 +31,7 @@ all_structs = [] UTF8STRINGS = bool(0) or sys.version_info.major >= 3 -__all__ = ['UTF8STRINGS', 'StatType', 'OrderDirection', 'EdgeDirection', 'ScanType', 'EngineSignType', 'RequestCommon', 'PartitionResult', 'ResponseCommon', 'StatProp', 'Expr', 'EdgeProp', 'VertexProp', 'OrderBy', 'TraverseSpec', 'GetNeighborsRequest', 'GetNeighborsResponse', 'ExecResponse', 'GetPropRequest', 'GetPropResponse', 'NewTag', 'NewVertex', 'EdgeKey', 'NewEdge', 'AddVerticesRequest', 'AddEdgesRequest', 'DeleteVerticesRequest', 'DeleteEdgesRequest', 'DelTags', 'DeleteTagsRequest', 'UpdateResponse', 'UpdatedProp', 'UpdateVertexRequest', 'UpdateEdgeRequest', 'GetUUIDReq', 'GetUUIDResp', 'LookupIndexResp', 'IndexColumnHint', 'IndexQueryContext', 'IndexSpec', 'LookupIndexRequest', 'LookupAndTraverseRequest', 'ScanCursor', 'ScanVertexRequest', 'ScanEdgeRequest', 'ScanResponse', 'TaskPara', 'KVGetRequest', 'KVGetResponse', 'KVPutRequest', 'KVRemoveRequest', 'AdminExecResp', 'TransLeaderReq', 'AddPartReq', 'AddLearnerReq', 'RemovePartReq', 'MemberChangeReq', 'CatchUpDataReq', 'GetLeaderReq', 'CreateCPRequest', 'DropCPRequest', 'BlockingSignRequest', 'GetLeaderPartsResp', 'CheckPeersReq', 'RebuildIndexRequest', 'CreateCPResp', 'ListClusterInfoResp', 'ListClusterInfoReq', 'AddAdminTaskRequest', 'StopAdminTaskRequest', 'ChainAddEdgesRequest', 'ChainUpdateEdgeRequest', 'ChainDeleteEdgesRequest'] +__all__ = ['UTF8STRINGS', 'StatType', 'OrderDirection', 'EdgeDirection', 'ScanType', 'EngineSignType', 'RequestCommon', 'PartitionResult', 'ResponseCommon', 'StatProp', 'Expr', 'EdgeProp', 'VertexProp', 'OrderBy', 'TraverseSpec', 'GetNeighborsRequest', 'GetNeighborsResponse', 'ExecResponse', 'GetPropRequest', 'GetPropResponse', 'NewTag', 'NewVertex', 'EdgeKey', 'NewEdge', 'AddVerticesRequest', 'AddEdgesRequest', 'DeleteVerticesRequest', 'DeleteEdgesRequest', 'DelTags', 'DeleteTagsRequest', 'UpdateResponse', 'UpdatedProp', 'UpdateVertexRequest', 'UpdateEdgeRequest', 'GetUUIDReq', 'GetUUIDResp', 'LookupIndexResp', 'IndexColumnHint', 'IndexQueryContext', 'IndexSpec', 'LookupIndexRequest', 'LookupAndTraverseRequest', 'ScanCursor', 'ScanVertexRequest', 'ScanEdgeRequest', 'ScanResponse', 'TaskPara', 'KVGetRequest', 'KVGetResponse', 'KVPutRequest', 'KVRemoveRequest', 'AdminExecResp', 'TransLeaderReq', 'AddPartReq', 'AddLearnerReq', 'RemovePartReq', 'MemberChangeReq', 'CatchUpDataReq', 'GetLeaderReq', 'CreateCPRequest', 'CreateCPResp', 'DropCPRequest', 'DropCPResp', 'BlockingSignRequest', 'BlockingSignResp', 'GetLeaderPartsResp', 'CheckPeersReq', 'RebuildIndexRequest', 'ListClusterInfoResp', 'ListClusterInfoReq', 'AddTaskRequest', 'AddTaskResp', 'StopTaskRequest', 'StopTaskResp', 'ClearSpaceReq', 'ClearSpaceResp', 'ChainAddEdgesRequest', 'ChainUpdateEdgeRequest', 'ChainDeleteEdgesRequest'] class StatType: SUM = 1 @@ -7110,11 +7110,11 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -class DropCPRequest: +class CreateCPResp: """ Attributes: - - space_ids - - name + - code + - info """ thrift_spec = None @@ -7138,25 +7138,27 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: + if ftype == TType.I32: + self.code = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: if ftype == TType.LIST: - self.space_ids = [] + self.info = [] (_etype632, _size629) = iprot.readListBegin() if _size629 >= 0: for _i633 in range(_size629): - _elem634 = iprot.readI32() - self.space_ids.append(_elem634) + _elem634 = nebula3.common.ttypes.CheckpointInfo() + _elem634.read(iprot) + self.info.append(_elem634) else: while iprot.peekList(): - _elem635 = iprot.readI32() - self.space_ids.append(_elem635) + _elem635 = nebula3.common.ttypes.CheckpointInfo() + _elem635.read(iprot) + self.info.append(_elem635) iprot.readListEnd() else: iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.name = iprot.readString() - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -7169,17 +7171,17 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('DropCPRequest') - if self.space_ids != None: - oprot.writeFieldBegin('space_ids', TType.LIST, 1) - oprot.writeListBegin(TType.I32, len(self.space_ids)) - for iter636 in self.space_ids: - oprot.writeI32(iter636) - oprot.writeListEnd() + oprot.writeStructBegin('CreateCPResp') + if self.code != None: + oprot.writeFieldBegin('code', TType.I32, 1) + oprot.writeI32(self.code) oprot.writeFieldEnd() - if self.name != None: - oprot.writeFieldBegin('name', TType.STRING, 2) - oprot.writeString(self.name) + if self.info != None: + oprot.writeFieldBegin('info', TType.LIST, 2) + oprot.writeListBegin(TType.STRUCT, len(self.info)) + for iter636 in self.info: + iter636.write(oprot) + oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -7187,14 +7189,14 @@ def write(self, oprot): def __repr__(self): L = [] padding = ' ' * 4 - if self.space_ids is not None: - value = pprint.pformat(self.space_ids, indent=0) + if self.code is not None: + value = pprint.pformat(self.code, indent=0) value = padding.join(value.splitlines(True)) - L.append(' space_ids=%s' % (value)) - if self.name is not None: - value = pprint.pformat(self.name, indent=0) + L.append(' code=%s' % (value)) + if self.info is not None: + value = pprint.pformat(self.info, indent=0) value = padding.join(value.splitlines(True)) - L.append(' name=%s' % (value)) + L.append(' info=%s' % (value)) return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') def __eq__(self, other): @@ -7209,11 +7211,11 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -class BlockingSignRequest: +class DropCPRequest: """ Attributes: - space_ids - - sign + - name """ thrift_spec = None @@ -7252,8 +7254,8 @@ def read(self, iprot): else: iprot.skip(ftype) elif fid == 2: - if ftype == TType.I32: - self.sign = iprot.readI32() + if ftype == TType.STRING: + self.name = iprot.readString() else: iprot.skip(ftype) else: @@ -7268,7 +7270,7 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('BlockingSignRequest') + oprot.writeStructBegin('DropCPRequest') if self.space_ids != None: oprot.writeFieldBegin('space_ids', TType.LIST, 1) oprot.writeListBegin(TType.I32, len(self.space_ids)) @@ -7276,9 +7278,9 @@ def write(self, oprot): oprot.writeI32(iter644) oprot.writeListEnd() oprot.writeFieldEnd() - if self.sign != None: - oprot.writeFieldBegin('sign', TType.I32, 2) - oprot.writeI32(self.sign) + if self.name != None: + oprot.writeFieldBegin('name', TType.STRING, 2) + oprot.writeString(self.name) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -7290,10 +7292,10 @@ def __repr__(self): value = pprint.pformat(self.space_ids, indent=0) value = padding.join(value.splitlines(True)) L.append(' space_ids=%s' % (value)) - if self.sign is not None: - value = pprint.pformat(self.sign, indent=0) + if self.name is not None: + value = pprint.pformat(self.name, indent=0) value = padding.join(value.splitlines(True)) - L.append(' sign=%s' % (value)) + L.append(' name=%s' % (value)) return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') def __eq__(self, other): @@ -7308,11 +7310,10 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -class GetLeaderPartsResp: +class DropCPResp: """ Attributes: - - result - - leader_parts + - code """ thrift_spec = None @@ -7336,46 +7337,8 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRUCT: - self.result = ResponseCommon() - self.result.read(iprot) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.MAP: - self.leader_parts = {} - (_ktype646, _vtype647, _size645 ) = iprot.readMapBegin() - if _size645 >= 0: - for _i649 in range(_size645): - _key650 = iprot.readI32() - _val651 = [] - (_etype655, _size652) = iprot.readListBegin() - if _size652 >= 0: - for _i656 in range(_size652): - _elem657 = iprot.readI32() - _val651.append(_elem657) - else: - while iprot.peekList(): - _elem658 = iprot.readI32() - _val651.append(_elem658) - iprot.readListEnd() - self.leader_parts[_key650] = _val651 - else: - while iprot.peekMap(): - _key659 = iprot.readI32() - _val660 = [] - (_etype664, _size661) = iprot.readListBegin() - if _size661 >= 0: - for _i665 in range(_size661): - _elem666 = iprot.readI32() - _val660.append(_elem666) - else: - while iprot.peekList(): - _elem667 = iprot.readI32() - _val660.append(_elem667) - iprot.readListEnd() - self.leader_parts[_key659] = _val660 - iprot.readMapEnd() + if ftype == TType.I32: + self.code = iprot.readI32() else: iprot.skip(ftype) else: @@ -7390,21 +7353,10 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('GetLeaderPartsResp') - if self.result != None: - oprot.writeFieldBegin('result', TType.STRUCT, 1) - self.result.write(oprot) - oprot.writeFieldEnd() - if self.leader_parts != None: - oprot.writeFieldBegin('leader_parts', TType.MAP, 2) - oprot.writeMapBegin(TType.I32, TType.LIST, len(self.leader_parts)) - for kiter668,viter669 in self.leader_parts.items(): - oprot.writeI32(kiter668) - oprot.writeListBegin(TType.I32, len(viter669)) - for iter670 in viter669: - oprot.writeI32(iter670) - oprot.writeListEnd() - oprot.writeMapEnd() + oprot.writeStructBegin('DropCPResp') + if self.code != None: + oprot.writeFieldBegin('code', TType.I32, 1) + oprot.writeI32(self.code) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -7412,14 +7364,10 @@ def write(self, oprot): def __repr__(self): L = [] padding = ' ' * 4 - if self.result is not None: - value = pprint.pformat(self.result, indent=0) - value = padding.join(value.splitlines(True)) - L.append(' result=%s' % (value)) - if self.leader_parts is not None: - value = pprint.pformat(self.leader_parts, indent=0) + if self.code is not None: + value = pprint.pformat(self.code, indent=0) value = padding.join(value.splitlines(True)) - L.append(' leader_parts=%s' % (value)) + L.append(' code=%s' % (value)) return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') def __eq__(self, other): @@ -7434,12 +7382,11 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -class CheckPeersReq: +class BlockingSignRequest: """ Attributes: - - space_id - - part_id - - peers + - space_ids + - sign """ thrift_spec = None @@ -7463,32 +7410,25 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.I32: - self.space_id = iprot.readI32() - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.I32: - self.part_id = iprot.readI32() - else: - iprot.skip(ftype) - elif fid == 3: if ftype == TType.LIST: - self.peers = [] - (_etype674, _size671) = iprot.readListBegin() - if _size671 >= 0: - for _i675 in range(_size671): - _elem676 = nebula3.common.ttypes.HostAddr() - _elem676.read(iprot) - self.peers.append(_elem676) + self.space_ids = [] + (_etype648, _size645) = iprot.readListBegin() + if _size645 >= 0: + for _i649 in range(_size645): + _elem650 = iprot.readI32() + self.space_ids.append(_elem650) else: while iprot.peekList(): - _elem677 = nebula3.common.ttypes.HostAddr() - _elem677.read(iprot) - self.peers.append(_elem677) + _elem651 = iprot.readI32() + self.space_ids.append(_elem651) iprot.readListEnd() else: iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I32: + self.sign = iprot.readI32() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -7501,40 +7441,32 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('CheckPeersReq') - if self.space_id != None: - oprot.writeFieldBegin('space_id', TType.I32, 1) - oprot.writeI32(self.space_id) - oprot.writeFieldEnd() - if self.part_id != None: - oprot.writeFieldBegin('part_id', TType.I32, 2) - oprot.writeI32(self.part_id) - oprot.writeFieldEnd() - if self.peers != None: - oprot.writeFieldBegin('peers', TType.LIST, 3) - oprot.writeListBegin(TType.STRUCT, len(self.peers)) - for iter678 in self.peers: - iter678.write(oprot) + oprot.writeStructBegin('BlockingSignRequest') + if self.space_ids != None: + oprot.writeFieldBegin('space_ids', TType.LIST, 1) + oprot.writeListBegin(TType.I32, len(self.space_ids)) + for iter652 in self.space_ids: + oprot.writeI32(iter652) oprot.writeListEnd() oprot.writeFieldEnd() + if self.sign != None: + oprot.writeFieldBegin('sign', TType.I32, 2) + oprot.writeI32(self.sign) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def __repr__(self): L = [] padding = ' ' * 4 - if self.space_id is not None: - value = pprint.pformat(self.space_id, indent=0) - value = padding.join(value.splitlines(True)) - L.append(' space_id=%s' % (value)) - if self.part_id is not None: - value = pprint.pformat(self.part_id, indent=0) + if self.space_ids is not None: + value = pprint.pformat(self.space_ids, indent=0) value = padding.join(value.splitlines(True)) - L.append(' part_id=%s' % (value)) - if self.peers is not None: - value = pprint.pformat(self.peers, indent=0) + L.append(' space_ids=%s' % (value)) + if self.sign is not None: + value = pprint.pformat(self.sign, indent=0) value = padding.join(value.splitlines(True)) - L.append(' peers=%s' % (value)) + L.append(' sign=%s' % (value)) return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') def __eq__(self, other): @@ -7549,12 +7481,10 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -class RebuildIndexRequest: +class BlockingSignResp: """ Attributes: - - space_id - - parts - - index_id + - code """ thrift_spec = None @@ -7579,27 +7509,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.I32: - self.space_id = iprot.readI32() - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.LIST: - self.parts = [] - (_etype682, _size679) = iprot.readListBegin() - if _size679 >= 0: - for _i683 in range(_size679): - _elem684 = iprot.readI32() - self.parts.append(_elem684) - else: - while iprot.peekList(): - _elem685 = iprot.readI32() - self.parts.append(_elem685) - iprot.readListEnd() - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.I32: - self.index_id = iprot.readI32() + self.code = iprot.readI32() else: iprot.skip(ftype) else: @@ -7614,21 +7524,10 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('RebuildIndexRequest') - if self.space_id != None: - oprot.writeFieldBegin('space_id', TType.I32, 1) - oprot.writeI32(self.space_id) - oprot.writeFieldEnd() - if self.parts != None: - oprot.writeFieldBegin('parts', TType.LIST, 2) - oprot.writeListBegin(TType.I32, len(self.parts)) - for iter686 in self.parts: - oprot.writeI32(iter686) - oprot.writeListEnd() - oprot.writeFieldEnd() - if self.index_id != None: - oprot.writeFieldBegin('index_id', TType.I32, 3) - oprot.writeI32(self.index_id) + oprot.writeStructBegin('BlockingSignResp') + if self.code != None: + oprot.writeFieldBegin('code', TType.I32, 1) + oprot.writeI32(self.code) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -7636,18 +7535,10 @@ def write(self, oprot): def __repr__(self): L = [] padding = ' ' * 4 - if self.space_id is not None: - value = pprint.pformat(self.space_id, indent=0) - value = padding.join(value.splitlines(True)) - L.append(' space_id=%s' % (value)) - if self.parts is not None: - value = pprint.pformat(self.parts, indent=0) - value = padding.join(value.splitlines(True)) - L.append(' parts=%s' % (value)) - if self.index_id is not None: - value = pprint.pformat(self.index_id, indent=0) + if self.code is not None: + value = pprint.pformat(self.code, indent=0) value = padding.join(value.splitlines(True)) - L.append(' index_id=%s' % (value)) + L.append(' code=%s' % (value)) return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') def __eq__(self, other): @@ -7662,11 +7553,11 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -class CreateCPResp: +class GetLeaderPartsResp: """ Attributes: - - result - - info + - code + - leader_parts """ thrift_spec = None @@ -7690,26 +7581,45 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRUCT: - self.result = ResponseCommon() - self.result.read(iprot) + if ftype == TType.I32: + self.code = iprot.readI32() else: iprot.skip(ftype) elif fid == 2: - if ftype == TType.LIST: - self.info = [] - (_etype690, _size687) = iprot.readListBegin() - if _size687 >= 0: - for _i691 in range(_size687): - _elem692 = nebula3.common.ttypes.CheckpointInfo() - _elem692.read(iprot) - self.info.append(_elem692) + if ftype == TType.MAP: + self.leader_parts = {} + (_ktype654, _vtype655, _size653 ) = iprot.readMapBegin() + if _size653 >= 0: + for _i657 in range(_size653): + _key658 = iprot.readI32() + _val659 = [] + (_etype663, _size660) = iprot.readListBegin() + if _size660 >= 0: + for _i664 in range(_size660): + _elem665 = iprot.readI32() + _val659.append(_elem665) + else: + while iprot.peekList(): + _elem666 = iprot.readI32() + _val659.append(_elem666) + iprot.readListEnd() + self.leader_parts[_key658] = _val659 else: - while iprot.peekList(): - _elem693 = nebula3.common.ttypes.CheckpointInfo() - _elem693.read(iprot) - self.info.append(_elem693) - iprot.readListEnd() + while iprot.peekMap(): + _key667 = iprot.readI32() + _val668 = [] + (_etype672, _size669) = iprot.readListBegin() + if _size669 >= 0: + for _i673 in range(_size669): + _elem674 = iprot.readI32() + _val668.append(_elem674) + else: + while iprot.peekList(): + _elem675 = iprot.readI32() + _val668.append(_elem675) + iprot.readListEnd() + self.leader_parts[_key667] = _val668 + iprot.readMapEnd() else: iprot.skip(ftype) else: @@ -7724,16 +7634,131 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('CreateCPResp') - if self.result != None: - oprot.writeFieldBegin('result', TType.STRUCT, 1) - self.result.write(oprot) + oprot.writeStructBegin('GetLeaderPartsResp') + if self.code != None: + oprot.writeFieldBegin('code', TType.I32, 1) + oprot.writeI32(self.code) oprot.writeFieldEnd() - if self.info != None: - oprot.writeFieldBegin('info', TType.LIST, 2) - oprot.writeListBegin(TType.STRUCT, len(self.info)) - for iter694 in self.info: - iter694.write(oprot) + if self.leader_parts != None: + oprot.writeFieldBegin('leader_parts', TType.MAP, 2) + oprot.writeMapBegin(TType.I32, TType.LIST, len(self.leader_parts)) + for kiter676,viter677 in self.leader_parts.items(): + oprot.writeI32(kiter676) + oprot.writeListBegin(TType.I32, len(viter677)) + for iter678 in viter677: + oprot.writeI32(iter678) + oprot.writeListEnd() + oprot.writeMapEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def __repr__(self): + L = [] + padding = ' ' * 4 + if self.code is not None: + value = pprint.pformat(self.code, indent=0) + value = padding.join(value.splitlines(True)) + L.append(' code=%s' % (value)) + if self.leader_parts is not None: + value = pprint.pformat(self.leader_parts, indent=0) + value = padding.join(value.splitlines(True)) + L.append(' leader_parts=%s' % (value)) + return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') + + def __eq__(self, other): + if not isinstance(other, self.__class__): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + + # Override the __hash__ function for Python3 - t10434117 + __hash__ = object.__hash__ + +class CheckPeersReq: + """ + Attributes: + - space_id + - part_id + - peers + """ + + thrift_spec = None + thrift_field_annotations = None + thrift_struct_annotations = None + __init__ = None + @staticmethod + def isUnion(): + return False + + def read(self, iprot): + if (isinstance(iprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: + fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0) + return + if (isinstance(iprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: + fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.I32: + self.space_id = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I32: + self.part_id = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.LIST: + self.peers = [] + (_etype682, _size679) = iprot.readListBegin() + if _size679 >= 0: + for _i683 in range(_size679): + _elem684 = nebula3.common.ttypes.HostAddr() + _elem684.read(iprot) + self.peers.append(_elem684) + else: + while iprot.peekList(): + _elem685 = nebula3.common.ttypes.HostAddr() + _elem685.read(iprot) + self.peers.append(_elem685) + iprot.readListEnd() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if (isinstance(oprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: + oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0)) + return + if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: + oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) + return + oprot.writeStructBegin('CheckPeersReq') + if self.space_id != None: + oprot.writeFieldBegin('space_id', TType.I32, 1) + oprot.writeI32(self.space_id) + oprot.writeFieldEnd() + if self.part_id != None: + oprot.writeFieldBegin('part_id', TType.I32, 2) + oprot.writeI32(self.part_id) + oprot.writeFieldEnd() + if self.peers != None: + oprot.writeFieldBegin('peers', TType.LIST, 3) + oprot.writeListBegin(TType.STRUCT, len(self.peers)) + for iter686 in self.peers: + iter686.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -7742,14 +7767,131 @@ def write(self, oprot): def __repr__(self): L = [] padding = ' ' * 4 - if self.result is not None: - value = pprint.pformat(self.result, indent=0) + if self.space_id is not None: + value = pprint.pformat(self.space_id, indent=0) value = padding.join(value.splitlines(True)) - L.append(' result=%s' % (value)) - if self.info is not None: - value = pprint.pformat(self.info, indent=0) + L.append(' space_id=%s' % (value)) + if self.part_id is not None: + value = pprint.pformat(self.part_id, indent=0) value = padding.join(value.splitlines(True)) - L.append(' info=%s' % (value)) + L.append(' part_id=%s' % (value)) + if self.peers is not None: + value = pprint.pformat(self.peers, indent=0) + value = padding.join(value.splitlines(True)) + L.append(' peers=%s' % (value)) + return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') + + def __eq__(self, other): + if not isinstance(other, self.__class__): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + + # Override the __hash__ function for Python3 - t10434117 + __hash__ = object.__hash__ + +class RebuildIndexRequest: + """ + Attributes: + - space_id + - parts + - index_id + """ + + thrift_spec = None + thrift_field_annotations = None + thrift_struct_annotations = None + __init__ = None + @staticmethod + def isUnion(): + return False + + def read(self, iprot): + if (isinstance(iprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: + fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0) + return + if (isinstance(iprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: + fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.I32: + self.space_id = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.LIST: + self.parts = [] + (_etype690, _size687) = iprot.readListBegin() + if _size687 >= 0: + for _i691 in range(_size687): + _elem692 = iprot.readI32() + self.parts.append(_elem692) + else: + while iprot.peekList(): + _elem693 = iprot.readI32() + self.parts.append(_elem693) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I32: + self.index_id = iprot.readI32() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if (isinstance(oprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: + oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0)) + return + if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: + oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) + return + oprot.writeStructBegin('RebuildIndexRequest') + if self.space_id != None: + oprot.writeFieldBegin('space_id', TType.I32, 1) + oprot.writeI32(self.space_id) + oprot.writeFieldEnd() + if self.parts != None: + oprot.writeFieldBegin('parts', TType.LIST, 2) + oprot.writeListBegin(TType.I32, len(self.parts)) + for iter694 in self.parts: + oprot.writeI32(iter694) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.index_id != None: + oprot.writeFieldBegin('index_id', TType.I32, 3) + oprot.writeI32(self.index_id) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def __repr__(self): + L = [] + padding = ' ' * 4 + if self.space_id is not None: + value = pprint.pformat(self.space_id, indent=0) + value = padding.join(value.splitlines(True)) + L.append(' space_id=%s' % (value)) + if self.parts is not None: + value = pprint.pformat(self.parts, indent=0) + value = padding.join(value.splitlines(True)) + L.append(' parts=%s' % (value)) + if self.index_id is not None: + value = pprint.pformat(self.index_id, indent=0) + value = padding.join(value.splitlines(True)) + L.append(' index_id=%s' % (value)) return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') def __eq__(self, other): @@ -7830,14 +7972,341 @@ def write(self, oprot): def __repr__(self): L = [] padding = ' ' * 4 - if self.result is not None: - value = pprint.pformat(self.result, indent=0) + if self.result is not None: + value = pprint.pformat(self.result, indent=0) + value = padding.join(value.splitlines(True)) + L.append(' result=%s' % (value)) + if self.dir is not None: + value = pprint.pformat(self.dir, indent=0) + value = padding.join(value.splitlines(True)) + L.append(' dir=%s' % (value)) + return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') + + def __eq__(self, other): + if not isinstance(other, self.__class__): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + + # Override the __hash__ function for Python3 - t10434117 + __hash__ = object.__hash__ + +class ListClusterInfoReq: + + thrift_spec = None + thrift_field_annotations = None + thrift_struct_annotations = None + @staticmethod + def isUnion(): + return False + + def read(self, iprot): + if (isinstance(iprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: + fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0) + return + if (isinstance(iprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: + fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if (isinstance(oprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: + oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0)) + return + if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: + oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) + return + oprot.writeStructBegin('ListClusterInfoReq') + oprot.writeFieldStop() + oprot.writeStructEnd() + + def __repr__(self): + L = [] + padding = ' ' * 4 + return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') + + def __eq__(self, other): + if not isinstance(other, self.__class__): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + + # Override the __hash__ function for Python3 - t10434117 + __hash__ = object.__hash__ + +class AddTaskRequest: + """ + Attributes: + - job_type + - job_id + - task_id + - para + """ + + thrift_spec = None + thrift_field_annotations = None + thrift_struct_annotations = None + __init__ = None + @staticmethod + def isUnion(): + return False + + def read(self, iprot): + if (isinstance(iprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: + fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0) + return + if (isinstance(iprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: + fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.I32: + self.job_type = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I32: + self.job_id = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I32: + self.task_id = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRUCT: + self.para = TaskPara() + self.para.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if (isinstance(oprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: + oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0)) + return + if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: + oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) + return + oprot.writeStructBegin('AddTaskRequest') + if self.job_type != None: + oprot.writeFieldBegin('job_type', TType.I32, 1) + oprot.writeI32(self.job_type) + oprot.writeFieldEnd() + if self.job_id != None: + oprot.writeFieldBegin('job_id', TType.I32, 2) + oprot.writeI32(self.job_id) + oprot.writeFieldEnd() + if self.task_id != None: + oprot.writeFieldBegin('task_id', TType.I32, 3) + oprot.writeI32(self.task_id) + oprot.writeFieldEnd() + if self.para != None: + oprot.writeFieldBegin('para', TType.STRUCT, 4) + self.para.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def __repr__(self): + L = [] + padding = ' ' * 4 + if self.job_type is not None: + value = pprint.pformat(self.job_type, indent=0) + value = padding.join(value.splitlines(True)) + L.append(' job_type=%s' % (value)) + if self.job_id is not None: + value = pprint.pformat(self.job_id, indent=0) + value = padding.join(value.splitlines(True)) + L.append(' job_id=%s' % (value)) + if self.task_id is not None: + value = pprint.pformat(self.task_id, indent=0) + value = padding.join(value.splitlines(True)) + L.append(' task_id=%s' % (value)) + if self.para is not None: + value = pprint.pformat(self.para, indent=0) + value = padding.join(value.splitlines(True)) + L.append(' para=%s' % (value)) + return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') + + def __eq__(self, other): + if not isinstance(other, self.__class__): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + + # Override the __hash__ function for Python3 - t10434117 + __hash__ = object.__hash__ + +class AddTaskResp: + """ + Attributes: + - code + """ + + thrift_spec = None + thrift_field_annotations = None + thrift_struct_annotations = None + __init__ = None + @staticmethod + def isUnion(): + return False + + def read(self, iprot): + if (isinstance(iprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: + fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0) + return + if (isinstance(iprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: + fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.I32: + self.code = iprot.readI32() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if (isinstance(oprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: + oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0)) + return + if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: + oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) + return + oprot.writeStructBegin('AddTaskResp') + if self.code != None: + oprot.writeFieldBegin('code', TType.I32, 1) + oprot.writeI32(self.code) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def __repr__(self): + L = [] + padding = ' ' * 4 + if self.code is not None: + value = pprint.pformat(self.code, indent=0) + value = padding.join(value.splitlines(True)) + L.append(' code=%s' % (value)) + return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') + + def __eq__(self, other): + if not isinstance(other, self.__class__): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + + # Override the __hash__ function for Python3 - t10434117 + __hash__ = object.__hash__ + +class StopTaskRequest: + """ + Attributes: + - job_id + - task_id + """ + + thrift_spec = None + thrift_field_annotations = None + thrift_struct_annotations = None + __init__ = None + @staticmethod + def isUnion(): + return False + + def read(self, iprot): + if (isinstance(iprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: + fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0) + return + if (isinstance(iprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(iprot, THeaderProtocol.THeaderProtocolAccelerate) and iprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastproto is not None: + fastproto.decode(self, iprot.trans, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.I32: + self.job_id = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I32: + self.task_id = iprot.readI32() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if (isinstance(oprot, TBinaryProtocol.TBinaryProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_BINARY_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: + oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=0)) + return + if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: + oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) + return + oprot.writeStructBegin('StopTaskRequest') + if self.job_id != None: + oprot.writeFieldBegin('job_id', TType.I32, 1) + oprot.writeI32(self.job_id) + oprot.writeFieldEnd() + if self.task_id != None: + oprot.writeFieldBegin('task_id', TType.I32, 2) + oprot.writeI32(self.task_id) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def __repr__(self): + L = [] + padding = ' ' * 4 + if self.job_id is not None: + value = pprint.pformat(self.job_id, indent=0) value = padding.join(value.splitlines(True)) - L.append(' result=%s' % (value)) - if self.dir is not None: - value = pprint.pformat(self.dir, indent=0) + L.append(' job_id=%s' % (value)) + if self.task_id is not None: + value = pprint.pformat(self.task_id, indent=0) value = padding.join(value.splitlines(True)) - L.append(' dir=%s' % (value)) + L.append(' task_id=%s' % (value)) return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') def __eq__(self, other): @@ -7852,11 +8321,16 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -class ListClusterInfoReq: +class StopTaskResp: + """ + Attributes: + - code + """ thrift_spec = None thrift_field_annotations = None thrift_struct_annotations = None + __init__ = None @staticmethod def isUnion(): return False @@ -7873,6 +8347,11 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break + if fid == 1: + if ftype == TType.I32: + self.code = iprot.readI32() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -7885,13 +8364,21 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('ListClusterInfoReq') + oprot.writeStructBegin('StopTaskResp') + if self.code != None: + oprot.writeFieldBegin('code', TType.I32, 1) + oprot.writeI32(self.code) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def __repr__(self): L = [] padding = ' ' * 4 + if self.code is not None: + value = pprint.pformat(self.code, indent=0) + value = padding.join(value.splitlines(True)) + L.append(' code=%s' % (value)) return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') def __eq__(self, other): @@ -7906,14 +8393,10 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -class AddAdminTaskRequest: +class ClearSpaceReq: """ Attributes: - - cmd - - job_id - - task_id - - para - - concurrency + - space_id """ thrift_spec = None @@ -7938,28 +8421,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.I32: - self.cmd = iprot.readI32() - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.I32: - self.job_id = iprot.readI32() - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.I32: - self.task_id = iprot.readI32() - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.STRUCT: - self.para = TaskPara() - self.para.read(iprot) - else: - iprot.skip(ftype) - elif fid == 5: - if ftype == TType.I32: - self.concurrency = iprot.readI32() + self.space_id = iprot.readI32() else: iprot.skip(ftype) else: @@ -7974,26 +8436,10 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('AddAdminTaskRequest') - if self.cmd != None: - oprot.writeFieldBegin('cmd', TType.I32, 1) - oprot.writeI32(self.cmd) - oprot.writeFieldEnd() - if self.job_id != None: - oprot.writeFieldBegin('job_id', TType.I32, 2) - oprot.writeI32(self.job_id) - oprot.writeFieldEnd() - if self.task_id != None: - oprot.writeFieldBegin('task_id', TType.I32, 3) - oprot.writeI32(self.task_id) - oprot.writeFieldEnd() - if self.para != None: - oprot.writeFieldBegin('para', TType.STRUCT, 4) - self.para.write(oprot) - oprot.writeFieldEnd() - if self.concurrency != None: - oprot.writeFieldBegin('concurrency', TType.I32, 5) - oprot.writeI32(self.concurrency) + oprot.writeStructBegin('ClearSpaceReq') + if self.space_id != None: + oprot.writeFieldBegin('space_id', TType.I32, 1) + oprot.writeI32(self.space_id) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -8001,26 +8447,10 @@ def write(self, oprot): def __repr__(self): L = [] padding = ' ' * 4 - if self.cmd is not None: - value = pprint.pformat(self.cmd, indent=0) - value = padding.join(value.splitlines(True)) - L.append(' cmd=%s' % (value)) - if self.job_id is not None: - value = pprint.pformat(self.job_id, indent=0) - value = padding.join(value.splitlines(True)) - L.append(' job_id=%s' % (value)) - if self.task_id is not None: - value = pprint.pformat(self.task_id, indent=0) - value = padding.join(value.splitlines(True)) - L.append(' task_id=%s' % (value)) - if self.para is not None: - value = pprint.pformat(self.para, indent=0) - value = padding.join(value.splitlines(True)) - L.append(' para=%s' % (value)) - if self.concurrency is not None: - value = pprint.pformat(self.concurrency, indent=0) + if self.space_id is not None: + value = pprint.pformat(self.space_id, indent=0) value = padding.join(value.splitlines(True)) - L.append(' concurrency=%s' % (value)) + L.append(' space_id=%s' % (value)) return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') def __eq__(self, other): @@ -8035,11 +8465,10 @@ def __ne__(self, other): # Override the __hash__ function for Python3 - t10434117 __hash__ = object.__hash__ -class StopAdminTaskRequest: +class ClearSpaceResp: """ Attributes: - - job_id - - task_id + - code """ thrift_spec = None @@ -8064,12 +8493,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.I32: - self.job_id = iprot.readI32() - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.I32: - self.task_id = iprot.readI32() + self.code = iprot.readI32() else: iprot.skip(ftype) else: @@ -8084,14 +8508,10 @@ def write(self, oprot): if (isinstance(oprot, TCompactProtocol.TCompactProtocolAccelerated) or (isinstance(oprot, THeaderProtocol.THeaderProtocolAccelerate) and oprot.get_protocol_id() == THeaderProtocol.THeaderProtocol.T_COMPACT_PROTOCOL)) and self.thrift_spec is not None and fastproto is not None: oprot.trans.write(fastproto.encode(self, [self.__class__, self.thrift_spec, False], utf8strings=UTF8STRINGS, protoid=2)) return - oprot.writeStructBegin('StopAdminTaskRequest') - if self.job_id != None: - oprot.writeFieldBegin('job_id', TType.I32, 1) - oprot.writeI32(self.job_id) - oprot.writeFieldEnd() - if self.task_id != None: - oprot.writeFieldBegin('task_id', TType.I32, 2) - oprot.writeI32(self.task_id) + oprot.writeStructBegin('ClearSpaceResp') + if self.code != None: + oprot.writeFieldBegin('code', TType.I32, 1) + oprot.writeI32(self.code) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -8099,14 +8519,10 @@ def write(self, oprot): def __repr__(self): L = [] padding = ' ' * 4 - if self.job_id is not None: - value = pprint.pformat(self.job_id, indent=0) - value = padding.join(value.splitlines(True)) - L.append(' job_id=%s' % (value)) - if self.task_id is not None: - value = pprint.pformat(self.task_id, indent=0) + if self.code is not None: + value = pprint.pformat(self.code, indent=0) value = padding.join(value.splitlines(True)) - L.append(' task_id=%s' % (value)) + L.append(' code=%s' % (value)) return "%s(%s)" % (self.__class__.__name__, "\n" + ",\n".join(L) if L else '') def __eq__(self, other): @@ -10278,6 +10694,32 @@ def CreateCPRequest__setstate__(self, state): CreateCPRequest.__getstate__ = lambda self: self.__dict__.copy() CreateCPRequest.__setstate__ = CreateCPRequest__setstate__ +all_structs.append(CreateCPResp) +CreateCPResp.thrift_spec = ( + None, # 0 + (1, TType.I32, 'code', nebula3.common.ttypes.ErrorCode, None, 2, ), # 1 + (2, TType.LIST, 'info', (TType.STRUCT,[nebula3.common.ttypes.CheckpointInfo, nebula3.common.ttypes.CheckpointInfo.thrift_spec, False]), None, 2, ), # 2 +) + +CreateCPResp.thrift_struct_annotations = { +} +CreateCPResp.thrift_field_annotations = { +} + +def CreateCPResp__init__(self, code=None, info=None,): + self.code = code + self.info = info + +CreateCPResp.__init__ = CreateCPResp__init__ + +def CreateCPResp__setstate__(self, state): + state.setdefault('code', None) + state.setdefault('info', None) + self.__dict__ = state + +CreateCPResp.__getstate__ = lambda self: self.__dict__.copy() +CreateCPResp.__setstate__ = CreateCPResp__setstate__ + all_structs.append(DropCPRequest) DropCPRequest.thrift_spec = ( None, # 0 @@ -10304,6 +10746,29 @@ def DropCPRequest__setstate__(self, state): DropCPRequest.__getstate__ = lambda self: self.__dict__.copy() DropCPRequest.__setstate__ = DropCPRequest__setstate__ +all_structs.append(DropCPResp) +DropCPResp.thrift_spec = ( + None, # 0 + (1, TType.I32, 'code', nebula3.common.ttypes.ErrorCode, None, 2, ), # 1 +) + +DropCPResp.thrift_struct_annotations = { +} +DropCPResp.thrift_field_annotations = { +} + +def DropCPResp__init__(self, code=None,): + self.code = code + +DropCPResp.__init__ = DropCPResp__init__ + +def DropCPResp__setstate__(self, state): + state.setdefault('code', None) + self.__dict__ = state + +DropCPResp.__getstate__ = lambda self: self.__dict__.copy() +DropCPResp.__setstate__ = DropCPResp__setstate__ + all_structs.append(BlockingSignRequest) BlockingSignRequest.thrift_spec = ( None, # 0 @@ -10330,10 +10795,33 @@ def BlockingSignRequest__setstate__(self, state): BlockingSignRequest.__getstate__ = lambda self: self.__dict__.copy() BlockingSignRequest.__setstate__ = BlockingSignRequest__setstate__ +all_structs.append(BlockingSignResp) +BlockingSignResp.thrift_spec = ( + None, # 0 + (1, TType.I32, 'code', nebula3.common.ttypes.ErrorCode, None, 2, ), # 1 +) + +BlockingSignResp.thrift_struct_annotations = { +} +BlockingSignResp.thrift_field_annotations = { +} + +def BlockingSignResp__init__(self, code=None,): + self.code = code + +BlockingSignResp.__init__ = BlockingSignResp__init__ + +def BlockingSignResp__setstate__(self, state): + state.setdefault('code', None) + self.__dict__ = state + +BlockingSignResp.__getstate__ = lambda self: self.__dict__.copy() +BlockingSignResp.__setstate__ = BlockingSignResp__setstate__ + all_structs.append(GetLeaderPartsResp) GetLeaderPartsResp.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'result', [ResponseCommon, ResponseCommon.thrift_spec, False], None, 0, ), # 1 + (1, TType.I32, 'code', nebula3.common.ttypes.ErrorCode, None, 2, ), # 1 (2, TType.MAP, 'leader_parts', (TType.I32,None,TType.LIST,(TType.I32,None)), None, 2, ), # 2 ) @@ -10342,14 +10830,14 @@ def BlockingSignRequest__setstate__(self, state): GetLeaderPartsResp.thrift_field_annotations = { } -def GetLeaderPartsResp__init__(self, result=None, leader_parts=None,): - self.result = result +def GetLeaderPartsResp__init__(self, code=None, leader_parts=None,): + self.code = code self.leader_parts = leader_parts GetLeaderPartsResp.__init__ = GetLeaderPartsResp__init__ def GetLeaderPartsResp__setstate__(self, state): - state.setdefault('result', None) + state.setdefault('code', None) state.setdefault('leader_parts', None) self.__dict__ = state @@ -10414,32 +10902,6 @@ def RebuildIndexRequest__setstate__(self, state): RebuildIndexRequest.__getstate__ = lambda self: self.__dict__.copy() RebuildIndexRequest.__setstate__ = RebuildIndexRequest__setstate__ -all_structs.append(CreateCPResp) -CreateCPResp.thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'result', [ResponseCommon, ResponseCommon.thrift_spec, False], None, 0, ), # 1 - (2, TType.LIST, 'info', (TType.STRUCT,[nebula3.common.ttypes.CheckpointInfo, nebula3.common.ttypes.CheckpointInfo.thrift_spec, False]), None, 2, ), # 2 -) - -CreateCPResp.thrift_struct_annotations = { -} -CreateCPResp.thrift_field_annotations = { -} - -def CreateCPResp__init__(self, result=None, info=None,): - self.result = result - self.info = info - -CreateCPResp.__init__ = CreateCPResp__init__ - -def CreateCPResp__setstate__(self, state): - state.setdefault('result', None) - state.setdefault('info', None) - self.__dict__ = state - -CreateCPResp.__getstate__ = lambda self: self.__dict__.copy() -CreateCPResp.__setstate__ = CreateCPResp__setstate__ - all_structs.append(ListClusterInfoResp) ListClusterInfoResp.thrift_spec = ( None, # 0 @@ -10475,66 +10937,155 @@ def ListClusterInfoResp__setstate__(self, state): ListClusterInfoReq.thrift_field_annotations = { } -all_structs.append(AddAdminTaskRequest) -AddAdminTaskRequest.thrift_spec = ( +all_structs.append(AddTaskRequest) +AddTaskRequest.thrift_spec = ( None, # 0 - (1, TType.I32, 'cmd', nebula3.meta.ttypes.AdminCmd, None, 2, ), # 1 + (1, TType.I32, 'job_type', nebula3.meta.ttypes.JobType, None, 2, ), # 1 (2, TType.I32, 'job_id', None, None, 2, ), # 2 (3, TType.I32, 'task_id', None, None, 2, ), # 3 (4, TType.STRUCT, 'para', [TaskPara, TaskPara.thrift_spec, False], None, 2, ), # 4 - (5, TType.I32, 'concurrency', None, None, 1, ), # 5 ) -AddAdminTaskRequest.thrift_struct_annotations = { +AddTaskRequest.thrift_struct_annotations = { } -AddAdminTaskRequest.thrift_field_annotations = { +AddTaskRequest.thrift_field_annotations = { } -def AddAdminTaskRequest__init__(self, cmd=None, job_id=None, task_id=None, para=None, concurrency=None,): - self.cmd = cmd +def AddTaskRequest__init__(self, job_type=None, job_id=None, task_id=None, para=None,): + self.job_type = job_type self.job_id = job_id self.task_id = task_id self.para = para - self.concurrency = concurrency -AddAdminTaskRequest.__init__ = AddAdminTaskRequest__init__ +AddTaskRequest.__init__ = AddTaskRequest__init__ -def AddAdminTaskRequest__setstate__(self, state): - state.setdefault('cmd', None) +def AddTaskRequest__setstate__(self, state): + state.setdefault('job_type', None) state.setdefault('job_id', None) state.setdefault('task_id', None) state.setdefault('para', None) - state.setdefault('concurrency', None) self.__dict__ = state -AddAdminTaskRequest.__getstate__ = lambda self: self.__dict__.copy() -AddAdminTaskRequest.__setstate__ = AddAdminTaskRequest__setstate__ +AddTaskRequest.__getstate__ = lambda self: self.__dict__.copy() +AddTaskRequest.__setstate__ = AddTaskRequest__setstate__ + +all_structs.append(AddTaskResp) +AddTaskResp.thrift_spec = ( + None, # 0 + (1, TType.I32, 'code', nebula3.common.ttypes.ErrorCode, None, 2, ), # 1 +) + +AddTaskResp.thrift_struct_annotations = { +} +AddTaskResp.thrift_field_annotations = { +} + +def AddTaskResp__init__(self, code=None,): + self.code = code + +AddTaskResp.__init__ = AddTaskResp__init__ + +def AddTaskResp__setstate__(self, state): + state.setdefault('code', None) + self.__dict__ = state + +AddTaskResp.__getstate__ = lambda self: self.__dict__.copy() +AddTaskResp.__setstate__ = AddTaskResp__setstate__ -all_structs.append(StopAdminTaskRequest) -StopAdminTaskRequest.thrift_spec = ( +all_structs.append(StopTaskRequest) +StopTaskRequest.thrift_spec = ( None, # 0 (1, TType.I32, 'job_id', None, None, 2, ), # 1 (2, TType.I32, 'task_id', None, None, 2, ), # 2 ) -StopAdminTaskRequest.thrift_struct_annotations = { +StopTaskRequest.thrift_struct_annotations = { } -StopAdminTaskRequest.thrift_field_annotations = { +StopTaskRequest.thrift_field_annotations = { } -def StopAdminTaskRequest__init__(self, job_id=None, task_id=None,): +def StopTaskRequest__init__(self, job_id=None, task_id=None,): self.job_id = job_id self.task_id = task_id -StopAdminTaskRequest.__init__ = StopAdminTaskRequest__init__ +StopTaskRequest.__init__ = StopTaskRequest__init__ -def StopAdminTaskRequest__setstate__(self, state): +def StopTaskRequest__setstate__(self, state): state.setdefault('job_id', None) state.setdefault('task_id', None) self.__dict__ = state -StopAdminTaskRequest.__getstate__ = lambda self: self.__dict__.copy() -StopAdminTaskRequest.__setstate__ = StopAdminTaskRequest__setstate__ +StopTaskRequest.__getstate__ = lambda self: self.__dict__.copy() +StopTaskRequest.__setstate__ = StopTaskRequest__setstate__ + +all_structs.append(StopTaskResp) +StopTaskResp.thrift_spec = ( + None, # 0 + (1, TType.I32, 'code', nebula3.common.ttypes.ErrorCode, None, 2, ), # 1 +) + +StopTaskResp.thrift_struct_annotations = { +} +StopTaskResp.thrift_field_annotations = { +} + +def StopTaskResp__init__(self, code=None,): + self.code = code + +StopTaskResp.__init__ = StopTaskResp__init__ + +def StopTaskResp__setstate__(self, state): + state.setdefault('code', None) + self.__dict__ = state + +StopTaskResp.__getstate__ = lambda self: self.__dict__.copy() +StopTaskResp.__setstate__ = StopTaskResp__setstate__ + +all_structs.append(ClearSpaceReq) +ClearSpaceReq.thrift_spec = ( + None, # 0 + (1, TType.I32, 'space_id', None, None, 2, ), # 1 +) + +ClearSpaceReq.thrift_struct_annotations = { +} +ClearSpaceReq.thrift_field_annotations = { +} + +def ClearSpaceReq__init__(self, space_id=None,): + self.space_id = space_id + +ClearSpaceReq.__init__ = ClearSpaceReq__init__ + +def ClearSpaceReq__setstate__(self, state): + state.setdefault('space_id', None) + self.__dict__ = state + +ClearSpaceReq.__getstate__ = lambda self: self.__dict__.copy() +ClearSpaceReq.__setstate__ = ClearSpaceReq__setstate__ + +all_structs.append(ClearSpaceResp) +ClearSpaceResp.thrift_spec = ( + None, # 0 + (1, TType.I32, 'code', nebula3.common.ttypes.ErrorCode, None, 2, ), # 1 +) + +ClearSpaceResp.thrift_struct_annotations = { +} +ClearSpaceResp.thrift_field_annotations = { +} + +def ClearSpaceResp__init__(self, code=None,): + self.code = code + +ClearSpaceResp.__init__ = ClearSpaceResp__init__ + +def ClearSpaceResp__setstate__(self, state): + state.setdefault('code', None) + self.__dict__ = state + +ClearSpaceResp.__getstate__ = lambda self: self.__dict__.copy() +ClearSpaceResp.__setstate__ = ClearSpaceResp__setstate__ all_structs.append(ChainAddEdgesRequest) ChainAddEdgesRequest.thrift_spec = (