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(">=1.0")
     * @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(">=1.0")
     * @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(">=1.0")
     * @param bundleId input
     * @return
     */
    getValues(
    /*
     * Bundle id
     */
    bundleId) {
        return this.serviceCallRunner.execute(this.getValuesCall(bundleId));
    }
    /**
     *
     *
     * LWM2M path: /1028/{bundleId}/1
     *
     * @tapVersion(">=1.0")
     * @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(">=1.0")
     * @param bundleId input
     * @return
     */
    getDataLogPeriod(
    /*
     * 0: no Data log for this bundle. (-1) : Log this bundle whenever one of its variables is written. Other values: number of minutes between each log of the Bundle.
     */
    bundleId) {
        return this.serviceCallRunner.execute(this.getDataLogPeriodCall(bundleId));
    }
    /**
     *
     *
     * LWM2M path: /1028/{bundleId}/2
     *
     * @tapVersion(">=1.0")
     * @param bundleId input
     * @return call options
     */
    getDataLogPeriodCall(
    /*
     * 0: no Data log for this bundle. (-1) : Log this bundle whenever one of its variables is written. Other values: number of minutes between each log of the Bundle.
     */
    bundleId) {
        const callOptions = Object.assign({}, this.resources.getDataLogPeriod);
        callOptions.pathParameters = {
            bundleId: bundleId,
        };
        return callOptions;
    }
    /**
     * Write data-log acquisition period in configuration
     *
     * LWM2M path: /1028/{bundleId}/2
     *
     * @tapVersion(">=1.0")
     * @param bundleId input
     * @param value input
     * @return
     */
    putDataLogPeriod(
    /*
     * Bundle id
     */
    bundleId, 
    /*
     * 0: no Data log for this bundle. (-1) : Log this bundle whenever one of its variables is written. Other values: number of minutes between each log of the Bundle.
     */
    value) {
        return this.serviceCallRunner.execute(this.putDataLogPeriodCall(bundleId, value));
    }
    /**
     *
     *
     * LWM2M path: /1028/{bundleId}/2
     *
     * @tapVersion(">=1.0")
     * @param bundleId input
     * @param value input
     * @return call options
     */
    putDataLogPeriodCall(
    /*
     * Bundle id
     */
    bundleId, 
    /*
     * 0: no Data log for this bundle. (-1) : Log this bundle whenever one of its variables is written. Other values: number of minutes between each log of the Bundle.
     */
    value) {
        const callOptions = Object.assign({}, this.resources.putDataLogPeriod);
        callOptions.body = value;
        callOptions.pathParameters = {
            bundleId: bundleId,
        };
        return callOptions;
    }
    /**
     * Get data log encryption group id
     *
     * LWM2M path: /1028/{bundleId}/3
     *
     * @tapVersion(">=1.0")
     * @param bundleId input
     * @return
     */
    getDataLogCryptoGroupId(
    /*
     * Bundle id
     */
    bundleId) {
        return this.serviceCallRunner.execute(this.getDataLogCryptoGroupIdCall(bundleId));
    }
    /**
     *
     *
     * LWM2M path: /1028/{bundleId}/3
     *
     * @tapVersion(">=1.0")
     * @param bundleId input
     * @return call options
     */
    getDataLogCryptoGroupIdCall(
    /*
     * Bundle id
     */
    bundleId) {
        const callOptions = Object.assign({}, this.resources.getDataLogCryptoGroupId);
        callOptions.pathParameters = {
            bundleId: bundleId,
        };
        return callOptions;
    }
    /**
     * Write data-log acquisition period in configuration
     *
     * LWM2M path: /1028/{bundleId}/3
     *
     * @tapVersion(">=1.0")
     * @param bundleId input
     * @param value input
     * @return
     */
    putDataLogCryptoGroupId(
    /*
     * Bundle id
     */
    bundleId, 
    /*
     *
     */
    value) {
        return this.serviceCallRunner.execute(this.putDataLogCryptoGroupIdCall(bundleId, value));
    }
    /**
     *
     *
     * LWM2M path: /1028/{bundleId}/3
     *
     * @tapVersion(">=1.0")
     * @param bundleId input
     * @param value input
     * @return call options
     */
    putDataLogCryptoGroupIdCall(
    /*
     * Bundle id
     */
    bundleId, 
    /*
     *
     */
    value) {
        const callOptions = Object.assign({}, this.resources.putDataLogCryptoGroupId);
        callOptions.body = value;
        callOptions.pathParameters = {
            bundleId: bundleId,
        };
        return callOptions;
    }
    /**
     * Create a new bundle
     *
     * LWM2M path: /1028/{bundleId}/65535
     *
     * @tapVersion(">=1.0")
     * @param bundleId input
     * @return
     */
    create(
    /*
     * Bundle id
     */
    bundleId) {
        return this.serviceCallRunner.execute(this.createCall(bundleId));
    }
    /**
     *
     *
     * LWM2M path: /1028/{bundleId}/65535
     *
     * @tapVersion(">=1.0")
     * @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(">=1.0")
     * @param bundleId input
     * @return
     */
    getName(
    /*
     * Bundle id
     */
    bundleId) {
        return this.serviceCallRunner.execute(this.getNameCall(bundleId));
    }
    /**
     *
     *
     * LWM2M path: /1028/{bundleId}/4
     *
     * @tapVersion(">=1.0")
     * @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 in configuration
     *
     * LWM2M path: /1028/{bundleId}/4
     *
     * @tapVersion(">=1.0")
     * @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(">=1.0")
     * @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, 