import { SERVICE_CALLS } from "./service-calls";
import { AbstractService } from "@iotize/tap";
export class VariableService extends AbstractService {
    constructor() {
        super(...arguments);
        this.resources = SERVICE_CALLS;
    }
    /**
     * Get variable address
     *
     * LWM2M path: /1029/{variableId}/0
     *
     * @tapVersion(">=")
     * @param variableId input
     * @return
     */
    getVariableAddress(
    /*
     * ID of the variable
     */
    variableId) {
        return this.serviceCallRunner.execute(this.getVariableAddressCall(variableId));
    }
    /**
     *
     *
     * LWM2M path: /1029/{variableId}/0
     *
     * @tapVersion(">=")
     * @param variableId input
     * @return call options
     */
    getVariableAddressCall(
    /*
     * ID of the variable
     */
    variableId) {
        const callOptions = Object.assign({}, this.resources.getVariableAddress);
        callOptions.pathParameters = {
            variableId: variableId
        };
        return callOptions;
    }
    /**
     * Write variable address
     *
     * LWM2M path: /1029/{variableId}/0
     *
     * @tapVersion(">=")
     * @param variableId input
     * @param address input
     * @return
     */
    putVariableAddress(
    /*
     * ID of the variable
     */
    variableId, 
    /*
     * New address of the variable
     */
    address) {
        return this.serviceCallRunner.execute(this.putVariableAddressCall(variableId, address));
    }
    /**
     *
     *
     * LWM2M path: /1029/{variableId}/0
     *
     * @tapVersion(">=")
     * @param variableId input
     * @param address input
     * @return call options
     */
    putVariableAddressCall(
    /*
     * ID of the variable
     */
    variableId, 
    /*
     * New address of the variable
     */
    address) {
        const callOptions = Object.assign({}, this.resources.putVariableAddress);
        callOptions.body = address;
        callOptions.pathParameters = {
            variableId: variableId
        };
        return callOptions;
    }
    /**
     * Write modbus variable address
     *
     * LWM2M path: /1029/{variableId}/0
     *
     * @tapVersion(">=")
     * @param variableId input
     * @param address input
     * @return
     */
    putModbusVariableAddress(
    /*
     * ID of the variable
     */
    variableId, 
    /*
     * New address of the variable
     */
    address) {
        return this.serviceCallRunner.execute(this.putModbusVariableAddressCall(variableId, address));
    }
    /**
     *
     *
     * LWM2M path: /1029/{variableId}/0
     *
     * @tapVersion(">=")
     * @param variableId input
     * @param address input
     * @return call options
     */
    putModbusVariableAddressCall(
    /*
     * ID of the variable
     */
    variableId, 
    /*
     * New address of the variable
     */
    address) {
        const callOptions = Object.assign({}, this.resources.putModbusVariableAddress);
        callOptions.body = address;
        callOptions.pathParameters = {
            variableId: variableId
        };
        return callOptions;
    }
    /**
     * Get data type for variable
     *
     * LWM2M path: /1029/{variableId}/1
     *
     * @tapVersion(">=")
     * @param variableId input
     * @return
     */
    getType(
    /*
     * ID of the variable
     */
    variableId) {
        return this.serviceCallRunner.execute(this.getTypeCall(variableId));
    }
    /**
     *
     *
     * LWM2M path: /1029/{variableId}/1
     *
     * @tapVersion(">=")
     * @param variableId input
     * @return call options
     */
    getTypeCall(
    /*
     * ID of the variable
     */
    variableId) {
        const callOptions = Object.assign({}, this.resources.getType);
        callOptions.pathParameters = {
            variableId: variableId
        };
        return callOptions;
    }
    /**
     * Get data type for variable
     *
     * LWM2M path: /1029/{variableId}/1
     *
     * @tapVersion(">=")
     * @param variableId input
     * @param type input
     * @return
     */
    putType(
    /*
     * ID of the variable
     */
    variableId, 
    /*
     * variable type
     */
    type) {
        return this.serviceCallRunner.execute(this.putTypeCall(variableId, type));
    }
    /**
     *
     *
     * LWM2M path: /1029/{variableId}/1
     *
     * @tapVersion(">=")
     * @param variableId input
     * @param type input
     * @return call options
     */
    putTypeCall(
    /*
     * ID of the variable
     */
    variableId, 
    /*
     * variable type
     */
    type) {
        const callOptions = Object.assign({}, this.resources.putType);
        callOptions.body = type;
        callOptions.pathParameters = {
            variableId: variableId
        };
        return callOptions;
    }
    /**
     * Get variable meta
     *
     * LWM2M path: /1029/{variableId}/8
     *
     * @tapVersion(">=1.73")
     * @param variableId input
     * @return
     */
    getRawMeta(
    /*
     * ID of the variable
     */
    variableId) {
        return this.serviceCallRunner.execute(this.getRawMetaCall(variableId));
    }
    /**
     *
     *
     * LWM2M path: /1029/{variableId}/8
     *
     * @tapVersion(">=1.73")
     * @param variableId input
     * @return call options
     */
    getRawMetaCall(
    /*
     * ID of the variable
     */
    variableId) {
        const callOptions = Object.assign({}, this.resources.getRawMeta);
        callOptions.pathParameters = {
            variableId: variableId
        };
        return callOptions;
    }
    /**
     * Write variable meta
     *
     * LWM2M path: /1029/{variableId}/8
     *
     * @tapVersion(">=1.73")
     * @param variableId input
     * @param meta input
     * @return
     */
    putRawMeta(
    /*
     * ID of the variable
     */
    variableId, 
    /*
     * Variable meta
     */
    meta) {
        return this.serviceCallRunner.execute(this.putRawMetaCall(variableId, meta));
    }
    /**
     *
     *
     * LWM2M path: /1029/{variableId}/8
     *
     * @tapVersion(">=1.73")
     * @param variableId input
     * @param meta input
     * @return call options
     */
    putRawMetaCall(
    /*
     * ID of the variable
     */
    variableId, 
    /*
     * Variable meta
     */
    meta) {
        const callOptions = Object.assign({}, this.resources.putRawMeta);
        callOptions.body = meta;
        callOptions.pathParameters = {
            variableId: variableId
        };
        return callOptions;
    }
    /**
     * Get variable meta
     *
     * LWM2M path: /1029/{variableId}/8
     *
     * @tapVersion(">=1.73")
     * @param variableId input
     * @return
     */
    getMeta(
    /*
     * ID of the variable
     */
    variableId) {
        return this.serviceCallRunner.execute(this.getMetaCall(variableId));
    }
    /**
     *
     *
     * LWM2M path: /1029/{variableId}/8
     *
     * @tapVersion(">=1.73")
     * @param variableId input
     * @return call options
     */
    getMetaCall(
    /*
     * ID of the variable
     */
    variableId) {
        const callOptions = Object.assign({}, this.resources.getMeta);
        callOptions.pathParameters = {
            variableId: variableId
        };
        return callOptions;
    }
    /**
     * Write variable meta
     *
     * LWM2M path: /1029/{variableId}/8
     *
     * @tapVersion(">=1.73")
     * @param variableId input
     * @param meta input
     * @return
     */
    putMeta(
    /*
     * ID of the variable
     */
    variableId, 
    /*
     * Variable meta
     */
    meta) {
        return this.serviceCallRunner.execute(this.putMetaCall(variableId, meta));
    }
    /**
     *
     *
     * LWM2M path: /1029/{variableId}/8
     *
     * @tapVersion(">=1.73")
     * @param variableId input
     * @param meta input
     * @return call options
     */
    putMetaCall(
    /*
     * ID of the variable
     */
    variableId, 
    /*
     * Variable meta
     */
    meta) {
        const callOptions = Object.assign({}, this.resources.putMeta);
        callOptions.body = meta;
        callOptions.pathParameters = {
            variableId: variableId
        };
        return callOptions;
    }
    /**
     * Get variable unit
     *
     * LWM2M path: /1029/{variableId}/9
     *
     * @deprecated
     * @tapVersion(">=1.60")
     * @param variableId input
     * @return
     */
    getUnit(
    /*
     * Variable id
     */
    variableId) {
        return this.serviceCallRunner.execute(this.getUnitCall(variableId));
    }
    /**
     *
     *
     * LWM2M path: /1029/{variableId}/9
     *
     * @deprecated
     * @tapVersion(">=1.60")
     * @param variableId input
     * @return call options
     */
    getUnitCall(
    /*
     * Variable id
     */
    variableId) {
        const callOptions = Object.assign({}, this.resources.getUnit);
        callOptions.pathParameters = {
            variableId: variableId
        };
        return callOptions;
    }
    /**
     * Write variable unit
     *
     * LWM2M path: /1029/{variableId}/9
     *
     * @deprecated
     * @tapVersion(">=1.60")
     * @param variableId input
     * @param address input
     * @return
     */
    putUnit(
    /*
     * ID of the variable
     */
    variableId, 
    /*
     * Variable unit
     */
    address) {
        return this.serviceCallRunner.execute(this.putUnitCall(variableId, address));
    }
    /**
     *
     *
     * LWM2M path: /1029/{variableId}/9
     *
     * @deprecated
     * @tapVersion(">=1.60")
     * @param variableId input
     * @param address input
     * @return call options
     */
    putUnitCall(
    /*
     * ID of the variable
     */
    variableId, 
    /*
     * Variable unit
     */
    address) {
        const callOptions = Object.assign({}, this.resources.putUnit);
        callOptions.body = address;
        callOptions.pathParameters = {
            variableId: variableId
        };
        return callOptions;
    }
    /**
     * Get variable array size
     *
     * LWM2M path: /1029/{variableId}/2
     *
     * @tapVersion(">=")
     * @param variableId input
     * @return
     */
    getNumberOfElements(
    /*
     * ID of the variable
     */
    variableId) {
        return this.serviceCallRunner.execute(this.getNumberOfElementsCall(variableId));
    }
    /**
     *
     *
     * LWM2M path: /1029/{variableId}/2
     *
     * @tapVersion(">=")
     * @param variableId input
     * @return call options
     */
    getNumberOfElementsCall(
    /*
     * ID of the variable
     */
    variableId) {
        const callOptions = Object.assign({}, this.resources.getNumberOfElements);
        callOptions.pathParameters = {
            variableId: variableId
        };
        return callOptions;
    }
    /**
     * Write variable array size
     *
     * LWM2M path: /1029/{variableId}/2
     *
     * @tapVersion(">=")
     * @param variableId input
     * @param value input
     * @return
     */
    putNumberOfElements(
    /*
     * ID of the variable
     */
    variableId, 
    /*
     * New number of element for this variable
     */
    value) {
        return this.serviceCallRunner.execute(this.putNumberOfElementsCall(variableId, value));
    }
    /**
     *
     *
     * LWM2M path: /1029/{variableId}/2
     *
     * @tapVersion(">=")
     * @param variableId input
     * @param value input
     * @return call options
     */
    putNumberOfElementsCall(
    /*
     * ID of the variable
     */
    variableId, 
    /*
     * New number of element for this variable
     */
    value) {
        const callOptions = Object.assign({}, this.resources.putNumberOfElements);
        callOptions.body = value;
        callOptions.pathParameters = {
            variableId: variableId
        };
        return callOptions;
    }
    /**
     * Get access rights for the variable
     *
     * LWM2M path: /1029/{variableId}/3
     *
     * @tapVersion(">=")
     * @param variableId input
     * @return
     */
    getCurrentAccess(
    /*
     * ID of the variable
     */
    variableId) {
        return this.serviceCallRunner.execute(this.getCurrentAccessCall(variableId));
    }
    /**
     *
     *
     * LWM2M path: /1029/{variableId}/3
     *
     * @tapVersion(">=")
     * @param variableId input
     * @return call options
     */
    getCurrentAccessCall(
    /*
     * ID of the variable
     */
    variableId) {
        const callOptions = Object.assign({}, this.resources.getCurrentAccess);
        callOptions.pathParameters = {
            variableId: variableId
        };
        return callOptions;
    }
    /**
     * Get all variable values for the current profile
     *
     * LWM2M path: /1029//4
     *
     * @tapVersion(">=")
     * @return
     */
    readProfile() {
        return this.serviceCallRunner.execute(this.readProfileCall());
    }
    /**
     *
     *
     * LWM2M path: /1029//4
     *
     * @tapVersion(">=")
     * @return call options
     */
    readProfileCall() {
        const callOptions = Object.assign({}, this.resources.readProfile);
        return callOptions;
    }
    /**
     * Get variable value
     *
     * LWM2M path: /1029/{variableId}/4
     *
     * @tapVersion(">=")
     * @param variableId input
     * @return
     */
    getValue(
    /*
     * ID of the variable
     */
    variableId) {
        return this.serviceCallRunner.execute(this.getValueCall(variableId));
    }
    /**
     *
     *
     * LWM2M path: /1029/{variableId}/4
     *
     * @tapVersion(">=")
     * @param variableId input
     * @return call options
     */
    getValueCall(
    /*
     * ID of the variable
     */
    variableId) {
        const callOptions = Object.assign({}, this.resources.getValue);
        callOptions.pathParameters = {
            variableId: variableId
        };
        return callOptions;
    }
    /**
     * Set variable value
     *
     * LWM2M path: /1029/{variableId}/5
     *
     * @tapVersion(">=")
     * @param variableId input
     * @param value input
     * @return
     */
    setValue(
    /*
     * ID of the variable
     */
    variableId, 
    /*
     *
     */
    value) {
        return this.serviceCallRunner.execute(this.setValueCall(variableId, value));
    }
    /**
     *
     *
     * LWM2M path: /1029/{variableId}/5
     *
     * @tapVersion(">=")
     * @param variableId input
     * @param value input
     * @return call options
     */
    setValueCall(
    /*
     * ID of the variable
     */
    variableId, 
    /*
     *
     */
    value) {
        const callOptions = Object.assign({}, this.resources.setValue);
        callOptions.body = value;
        callOptions.pathParameters = {
            variableId: variableId
        };
        return callOptions;
    }
    /**
     * Set variable value
     *
     * LWM2M path: /1029/{variableId}/4
     *
     * @tapVersion(">=")
     * @param variableId input
     * @param value input
     * @return
     */
    putValue(
    /*
     * ID of the variable
     */
    variableId, 
    /*
     *
     */
    value) {
        return this.serviceCallRunner.execute(this.putValueCall(variableId, value));
    }
    /**
     *
     *
     * LWM2M path: /1029/{variableId}/4
     *
     * @tapVersion(">=")
     * @param variableId input
     * @param value input
     * @return call options
     */
    putValueCall(
    /*
     * ID of the variable
     */
    variableId, 
    /*
     *
     */
    value) {
        const callOptions = Object.assign({}, this.resources.putValue);
        callOptions.body = value;
        callOptions.pathParameters = {
            variableId: variableId
        };
        return callOptions;
    }
    /**
     * Get variable bundle id
     *
     * LWM2M path: /1029/{variableId}/6
     *
     * @tapVersion(">=")
     * @param variableId input
     * @return
     */
    getBundleId(
    /*
     *
     */
    variableId) {
        return this.serviceCallRunner.execute(this.getBundleIdCall(variableId));
    }
    /**
     *
     *
     * LWM2M path: /1029/{variableId}/6
     *
     * @tapVersion(">=")
     * @param variableId input
     * @return call options
     */
    getBundleIdCall(
    /*
     *
     */
    variableId) {
        const callOptions = Object.assign({}, this.resources.getBundleId);
        callOptions.pathParameters = {
            variableId: variableId
        };
        return callOptions;
    }
    /**
     * Write variable bundle id
     *
     * LWM2M path: /1029/{variableId}/6
     *
     * @tapVersion(">=")
     * @param variableId input
     * @param value input
     * @return
     */
    putBundleId(
    /*
     *
     */
    variableId, 
    /*
     *
     */
    value) {
        return this.serviceCallRunner.execute(this.putBundleIdCall(variableId, value));
    }
    /**
     *
     *
     * LWM2M path: /1029/{variableId}/6
     *
     * @tapVersion(">=")
     * @param variableId input
     * @param value input
     * @return call options
     */
    putBundleIdCall(
    /*
     *
     */
    variableId, 
    /*
     *
     */
    value) {
        const callOptions = Object.assign({}, this.resources.putBundleId);
        callOptions.body = value;
        callOptions.pathParameters = {
            variableId: variableId
        };
        return callOptions;
    }
    /**
     * Get variable bundle values (formated as a TLV)
     *
     * LWM2M path: /1029/{variableId}/7
     *
     * @tapVersion(">=")
     * @param variableId input
     * @return
     */
    getBundleValues(
    /*
     *
     */
    variableId) {
        return this.serviceCallRunner.execute(this.getBundleValuesCall(variableId));
    }
    /**
     *
     *
     * LWM2M path: /1029/{variableId}/7
     *
     * @tapVersion(">=")
     * @param variableId input
     * @return call options
     */
    getBundleValuesCall(
    /*
     *
     */
    variableId) {
        const callOptions = Object.assign({}, this.resources.getBundleValues);
        callOptions.pathParameters = {
            variableId: variableId
        };
        return callOptions;
    }
    /**
     * Write variable bundle id
     *
     * LWM2M path: /1029/{variableId}/65535
     *
     * @tapVersion(">=")
     * @param variableId input
     * @param extraSize input
     * @return
     */
    create(
    /*
     *
     */
    variableId, 
    /*
     * extra data size in bytes
     */
    extraSize) {
        return this.serviceCallRunner.execute(this.createCall(variableId, extraSize));
    }
    /**
     *
     *
     * LWM2M path: /1029/{variableId}/65535
     *
     * @tapVersion(">=")
     * @param variableId input
     * @param extraSize input
     * @return call options
     */
    createCall(
    /*
     *
     */
    variableId, 
    /*
     * extra data size in bytes
     */
    extraSize) {
        const callOptions = Object.assign({}, this.resources.create);
        callOptions.body = extraSize;
        callOptions.pathParameters = {
            variableId: variableId
        };
        return callOptions;
    }
}
//# sourceMappingURL=data:application/json;base64, 