/** * <pre> * LeaseGrant creates a lease which expires if the server does not receive a keepAlive * within a given time to live period. All keys attached to the lease will be expired and * deleted if the lease expires. Each expired key generates a delete event in the event history. * </pre> */ public etcdserverpb.Rpc.LeaseGrantResponse leaseGrant(etcdserverpb.Rpc.LeaseGrantRequest request) { return blockingUnaryCall( getChannel(), METHOD_LEASE_GRANT, getCallOptions(), request); }
/** * <pre> * Txn processes multiple requests in a single transaction. * A txn request increments the revision of the key-value store * and generates events with the same revision for every completed request. * It is not allowed to modify the same key several times within one txn. * </pre> */ public etcdserverpb.Rpc.TxnResponse txn(etcdserverpb.Rpc.TxnRequest request) { return blockingUnaryCall( getChannel(), METHOD_TXN, getCallOptions(), request); }
/** * <pre> * AuthDisable disables authentication. * </pre> */ public etcdserverpb.Rpc.AuthDisableResponse authDisable(etcdserverpb.Rpc.AuthDisableRequest request) { return blockingUnaryCall( getChannel(), METHOD_AUTH_DISABLE, getCallOptions(), request); }
/** * <pre> * UserGrant grants a role to a specified user. * </pre> */ public etcdserverpb.Rpc.AuthUserGrantRoleResponse userGrantRole(etcdserverpb.Rpc.AuthUserGrantRoleRequest request) { return blockingUnaryCall( getChannel(), METHOD_USER_GRANT_ROLE, getCallOptions(), request); }
/** * <pre> * MemberRemove removes an existing member from the cluster. * </pre> */ public etcdserverpb.Rpc.MemberRemoveResponse memberRemove(etcdserverpb.Rpc.MemberRemoveRequest request) { return blockingUnaryCall( getChannel(), METHOD_MEMBER_REMOVE, getCallOptions(), request); }
/** * <pre> * MemberList lists all the members in the cluster. * </pre> */ public etcdserverpb.Rpc.MemberListResponse memberList(etcdserverpb.Rpc.MemberListRequest request) { return blockingUnaryCall( getChannel(), METHOD_MEMBER_LIST, getCallOptions(), request); } }
/** * <pre> * Status gets the status of the member. * </pre> */ public etcdserverpb.Rpc.StatusResponse status(etcdserverpb.Rpc.StatusRequest request) { return blockingUnaryCall( getChannel(), METHOD_STATUS, getCallOptions(), request); }
/** * <pre> * AuthEnable enables authentication. * </pre> */ public etcdserverpb.Rpc.AuthEnableResponse authEnable(etcdserverpb.Rpc.AuthEnableRequest request) { return blockingUnaryCall( getChannel(), METHOD_AUTH_ENABLE, getCallOptions(), request); }
/** * <pre> * Authenticate processes an authenticate request. * </pre> */ public etcdserverpb.Rpc.AuthenticateResponse authenticate(etcdserverpb.Rpc.AuthenticateRequest request) { return blockingUnaryCall( getChannel(), METHOD_AUTHENTICATE, getCallOptions(), request); }
/** * <pre> * UserGet gets detailed user information. * </pre> */ public etcdserverpb.Rpc.AuthUserGetResponse userGet(etcdserverpb.Rpc.AuthUserGetRequest request) { return blockingUnaryCall( getChannel(), METHOD_USER_GET, getCallOptions(), request); }
/** * <pre> * RoleGet gets detailed role information. * </pre> */ public etcdserverpb.Rpc.AuthRoleGetResponse roleGet(etcdserverpb.Rpc.AuthRoleGetRequest request) { return blockingUnaryCall( getChannel(), METHOD_ROLE_GET, getCallOptions(), request); }
/** * <pre> * RoleList gets lists of all roles. * </pre> */ public etcdserverpb.Rpc.AuthRoleListResponse roleList(etcdserverpb.Rpc.AuthRoleListRequest request) { return blockingUnaryCall( getChannel(), METHOD_ROLE_LIST, getCallOptions(), request); }
/** * <pre> * MemberAdd adds a member into the cluster. * </pre> */ public etcdserverpb.Rpc.MemberAddResponse memberAdd(etcdserverpb.Rpc.MemberAddRequest request) { return blockingUnaryCall( getChannel(), METHOD_MEMBER_ADD, getCallOptions(), request); }
/** * <pre> * DeleteRange deletes the given range from the key-value store. * A delete request increments the revision of the key-value store * and generates a delete event in the event history for every deleted key. * </pre> */ public etcdserverpb.Rpc.DeleteRangeResponse deleteRange(etcdserverpb.Rpc.DeleteRangeRequest request) { return blockingUnaryCall( getChannel(), METHOD_DELETE_RANGE, getCallOptions(), request); }
/** * <pre> * Compact compacts the event history in the etcd key-value store. The key-value * store should be periodically compacted or the event history will continue to grow * indefinitely. * </pre> */ public etcdserverpb.Rpc.CompactionResponse compact(etcdserverpb.Rpc.CompactionRequest request) { return blockingUnaryCall( getChannel(), METHOD_COMPACT, getCallOptions(), request); } }
/** * <pre> * UserAdd adds a new user. * </pre> */ public etcdserverpb.Rpc.AuthUserAddResponse userAdd(etcdserverpb.Rpc.AuthUserAddRequest request) { return blockingUnaryCall( getChannel(), METHOD_USER_ADD, getCallOptions(), request); }
/** * <pre> * UserRevokeRole revokes a role of specified user. * </pre> */ public etcdserverpb.Rpc.AuthUserRevokeRoleResponse userRevokeRole(etcdserverpb.Rpc.AuthUserRevokeRoleRequest request) { return blockingUnaryCall( getChannel(), METHOD_USER_REVOKE_ROLE, getCallOptions(), request); }
/** * <pre> * RoleRevokePermission revokes a key or range permission of a specified role. * </pre> */ public etcdserverpb.Rpc.AuthRoleRevokePermissionResponse roleRevokePermission(etcdserverpb.Rpc.AuthRoleRevokePermissionRequest request) { return blockingUnaryCall( getChannel(), METHOD_ROLE_REVOKE_PERMISSION, getCallOptions(), request); } }
/** * <pre> * UserDelete deletes a specified user. * </pre> */ public etcdserverpb.Rpc.AuthUserDeleteResponse userDelete(etcdserverpb.Rpc.AuthUserDeleteRequest request) { return blockingUnaryCall( getChannel(), METHOD_USER_DELETE, getCallOptions(), request); }
/** * <pre> * MemberUpdate updates the member configuration. * </pre> */ public etcdserverpb.Rpc.MemberUpdateResponse memberUpdate(etcdserverpb.Rpc.MemberUpdateRequest request) { return blockingUnaryCall( getChannel(), METHOD_MEMBER_UPDATE, getCallOptions(), request); }