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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NlcnZpY2UvaW1wbC9idW5kbGUvc3JjL2xpYi9nZW5lcmF0ZWQvc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFJQSxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFHaEQsT0FBTyxFQUFFLGVBQWUsRUFBbUIsTUFBTSxhQUFhLENBQUM7QUFFL0QsTUFBTSxPQUFPLGFBQWMsU0FBUSxlQUFlO0lBQWxEOztRQUNTLGNBQVMsR0FBRyxhQUFhLENBQUM7SUFtVm5DLENBQUM7SUFqVkM7Ozs7Ozs7OztPQVNHO0lBQ0gsTUFBTTtJQUNKOztPQUVHO0lBQ0gsUUFBZ0I7SUFFaEI7O09BRUc7SUFDSCxNQUF1QjtRQUV2QixPQUFPLElBQUksQ0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