import { SERVICE_CALLS } from "./service-calls";
import { AbstractService } from "@iotize/tap";
export class BundleService extends AbstractService {
    constructor() {
        super(...arguments);
        this.resources = SERVICE_CALLS;
    }
    /**
     * Write acls
     *
     * LWM2M path: /1028/{bundleId}/0
     *
     * @tapVersion(">=")
     * @param bundleId input
     * @param rights input
     * @return
     */
    putAcl(
    /*
     * Group id
     */
    bundleId, 
    /*
     * Rights
     */
    rights) {
        return this.serviceCallRunner.execute(this.putAclCall(bundleId, rights));
    }
    /**
     *
     *
     * LWM2M path: /1028/{bundleId}/0
     *
     * @tapVersion(">=")
     * @param bundleId input
     * @param rights input
     * @return call options
     */
    putAclCall(
    /*
     * Group id
     */
    bundleId, 
    /*
     * Rights
     */
    rights) {
        const callOptions = Object.assign({}, this.resources.putAcl);
        callOptions.body = rights;
        callOptions.pathParameters = {
            bundleId: bundleId
        };
        return callOptions;
    }
    /**
     * Get bundle values
     *
     * LWM2M path: /1028/{bundleId}/1
     *
     * @tapVersion(">=")
     * @param bundleId input
     * @return
     */
    getValues(
    /*
     * Bundle id
     */
    bundleId) {
        return this.serviceCallRunner.execute(this.getValuesCall(bundleId));
    }
    /**
     *
     *
     * LWM2M path: /1028/{bundleId}/1
     *
     * @tapVersion(">=")
     * @param bundleId input
     * @return call options
     */
    getValuesCall(
    /*
     * Bundle id
     */
    bundleId) {
        const callOptions = Object.assign({}, this.resources.getValues);
        callOptions.pathParameters = {
            bundleId: bundleId
        };
        return callOptions;
    }
    /**
     * Get data log acquisition period
     *
     * LWM2M path: /1028/{bundleId}/2
     *
     * @tapVersion(">=")
     * @param bundleId input
     * @return
     */
    getDataLogPeriod(
    /*
     * 0 : no Data log for this bundle (-1) : Log this bundle whenever one of its variables changesOther values : number of minutes between each log (… if there is a change in value?)
     */
    bundleId) {
        return this.serviceCallRunner.execute(this.getDataLogPeriodCall(bundleId));
    }
    /**
     *
     *
     * LWM2M path: /1028/{bundleId}/2
     *
     * @tapVersion(">=")
     * @param bundleId input
     * @return call options
     */
    getDataLogPeriodCall(
    /*
     * 0 : no Data log for this bundle (-1) : Log this bundle whenever one of its variables changesOther values : number of minutes between each log (… if there is a change in value?)
     */
    bundleId) {
        const callOptions = Object.assign({}, this.resources.getDataLogPeriod);
        callOptions.pathParameters = {
            bundleId: bundleId
        };
        return callOptions;
    }
    /**
     * Write data-log acquisition period
     *
     * LWM2M path: /1028/{bundleId}/2
     *
     * @tapVersion(">=")
     * @param bundleId input
     * @param value input
     * @return
     */
    putDataLogPeriod(
    /*
     * Bundle id
     */
    bundleId, 
    /*
     *
     */
    value) {
        return this.serviceCallRunner.execute(this.putDataLogPeriodCall(bundleId, value));
    }
    /**
     *
     *
     * LWM2M path: /1028/{bundleId}/2
     *
     * @tapVersion(">=")
     * @param bundleId input
     * @param value input
     * @return call options
     */
    putDataLogPeriodCall(
    /*
     * Bundle id
     */
    bundleId, 
    /*
     *
     */
    value) {
        const callOptions = Object.assign({}, this.resources.putDataLogPeriod);
        callOptions.body = value;
        callOptions.pathParameters = {
            bundleId: bundleId
        };
        return callOptions;
    }
    /**
     * Create a new bundle
     *
     * LWM2M path: /1028/{bundleId}/65535
     *
     * @tapVersion(">=")
     * @param bundleId input
     * @return
     */
    create(
    /*
     * Bundle id
     */
    bundleId) {
        return this.serviceCallRunner.execute(this.createCall(bundleId));
    }
    /**
     *
     *
     * LWM2M path: /1028/{bundleId}/65535
     *
     * @tapVersion(">=")
     * @param bundleId input
     * @return call options
     */
    createCall(
    /*
     * Bundle id
     */
    bundleId) {
        const callOptions = Object.assign({}, this.resources.create);
        callOptions.pathParameters = {
            bundleId: bundleId
        };
        return callOptions;
    }
    /**
     * Read bundle name
     *
     * LWM2M path: /1028/{bundleId}/4
     *
     * @tapVersion(">=")
     * @param bundleId input
     * @return
     */
    getName(
    /*
     * Bundle id
     */
    bundleId) {
        return this.serviceCallRunner.execute(this.getNameCall(bundleId));
    }
    /**
     *
     *
     * LWM2M path: /1028/{bundleId}/4
     *
     * @tapVersion(">=")
     * @param bundleId input
     * @return call options
     */
    getNameCall(
    /*
     * Bundle id
     */
    bundleId) {
        const callOptions = Object.assign({}, this.resources.getName);
        callOptions.pathParameters = {
            bundleId: bundleId
        };
        return callOptions;
    }
    /**
     * Write bundle name
     *
     * LWM2M path: /1028/{bundleId}/4
     *
     * @tapVersion(">=")
     * @param bundleId input
     * @param name input
     * @return
     */
    putName(
    /*
     * Bundle id
     */
    bundleId, 
    /*
     * Name
     */
    name) {
        return this.serviceCallRunner.execute(this.putNameCall(bundleId, name));
    }
    /**
     *
     *
     * LWM2M path: /1028/{bundleId}/4
     *
     * @tapVersion(">=")
     * @param bundleId input
     * @param name input
     * @return call options
     */
    putNameCall(
    /*
     * Bundle id
     */
    bundleId, 
    /*
     * Name
     */
    name) {
        const callOptions = Object.assign({}, this.resources.putName);
        callOptions.body = name;
        callOptions.pathParameters = {
            bundleId: bundleId
        };
        return callOptions;
    }
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0Bpb3RpemUvdGFwL3NlcnZpY2UvaW1wbC9idW5kbGUvIiwic291cmNlcyI6WyJsaWIvZ2VuZXJhdGVkL3NlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBSUEsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBR2hELE9BQU8sRUFBRSxlQUFlLEVBQW1CLE1BQU0sYUFBYSxDQUFDO0FBRS9ELE1BQU0sT0FBTyxhQUFjLFNBQVEsZUFBZTtJQUFsRDs7UUFDUyxjQUFTLEdBQUcsYUFBYSxDQUFDO0lBNlVuQyxDQUFDO0lBM1VDOzs7Ozs7Ozs7T0FTRztJQUNILE1BQU07SUFDSjs7T0FFRztJQUNILFFBQWdCO0lBQ2hCOztPQUVHO0lBQ0gsTUFBdUI7UUFFdkIsT0FBTyxJQUFJLENBQUMsaUJBQWlCLENBQUMsT0FBTyx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