var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
import { SERVICE_CALLS } from "./service-calls";
import { AbstractService } from "@iotize/tap";
var GroupService = /** @class */ (function (_super) {
    __extends(GroupService, _super);
    function GroupService() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.resources = SERVICE_CALLS;
        return _this;
    }
    /**
     * Get the name of the group from its id
     *
     * LWM2M path: /1025/{groupId}/0
     *
     * @tapVersion(">=")
     * @param groupId input
     * @return
     */
    GroupService.prototype.getName = function (
    /*
     * Group id
     */
    groupId) {
        return this.serviceCallRunner.execute(this.getNameCall(groupId));
    };
    /**
     *
     *
     * LWM2M path: /1025/{groupId}/0
     *
     * @tapVersion(">=")
     * @param groupId input
     * @return call options
     */
    GroupService.prototype.getNameCall = function (
    /*
     * Group id
     */
    groupId) {
        var callOptions = __assign({}, this.resources.getName);
        callOptions.pathParameters = {
            groupId: groupId
        };
        return callOptions;
    };
    /**
     * Write group name
     *
     * LWM2M path: /1025/{groupId}/0
     *
     * @tapVersion(">=")
     * @param groupId input
     * @param name input
     * @return
     */
    GroupService.prototype.putName = function (
    /*
     * Group id to return
     */
    groupId, 
    /*
     *
     */
    name) {
        return this.serviceCallRunner.execute(this.putNameCall(groupId, name));
    };
    /**
     *
     *
     * LWM2M path: /1025/{groupId}/0
     *
     * @tapVersion(">=")
     * @param groupId input
     * @param name input
     * @return call options
     */
    GroupService.prototype.putNameCall = function (
    /*
     * Group id to return
     */
    groupId, 
    /*
     *
     */
    name) {
        var callOptions = __assign({}, this.resources.putName);
        callOptions.body = name;
        callOptions.pathParameters = {
            groupId: groupId
        };
        return callOptions;
    };
    /**
     * Update password
     *
     * LWM2M path: /1025/{groupId}/2
     *
     * @tapVersion(">=")
     * @param groupId input
     * @param password input
     * @return
     */
    GroupService.prototype.changePassword = function (
    /*
     * Group id
     */
    groupId, 
    /*
     *
     */
    password) {
        return this.serviceCallRunner.execute(this.changePasswordCall(groupId, password));
    };
    /**
     *
     *
     * LWM2M path: /1025/{groupId}/2
     *
     * @tapVersion(">=")
     * @param groupId input
     * @param password input
     * @return call options
     */
    GroupService.prototype.changePasswordCall = function (
    /*
     * Group id
     */
    groupId, 
    /*
     *
     */
    password) {
        var callOptions = __assign({}, this.resources.changePassword);
        callOptions.body = password;
        callOptions.pathParameters = {
            groupId: groupId
        };
        return callOptions;
    };
    /**
     * Change password using bytes data
     *
     * LWM2M path: /1025/{groupId}/2
     *
     * @tapVersion(">=")
     * @param groupId input
     * @param password input
     * @return
     */
    GroupService.prototype.changePasswordKey = function (
    /*
     * Group id
     */
    groupId, 
    /*
     *
     */
    password) {
        return this.serviceCallRunner.execute(this.changePasswordKeyCall(groupId, password));
    };
    /**
     *
     *
     * LWM2M path: /1025/{groupId}/2
     *
     * @tapVersion(">=")
     * @param groupId input
     * @param password input
     * @return call options
     */
    GroupService.prototype.changePasswordKeyCall = function (
    /*
     * Group id
     */
    groupId, 
    /*
     *
     */
    password) {
        var callOptions = __assign({}, this.resources.changePasswordKey);
        callOptions.body = password;
        callOptions.pathParameters = {
            groupId: groupId
        };
        return callOptions;
    };
    /**
     * Get the maximum session lifetime
     *
     * LWM2M path: /1025/{groupId}/4
     *
     * @tapVersion(">=")
     * @param groupId input
     * @return
     */
    GroupService.prototype.getSessionLifetime = function (
    /*
     * Group id
     */
    groupId) {
        return this.serviceCallRunner.execute(this.getSessionLifetimeCall(groupId));
    };
    /**
     *
     *
     * LWM2M path: /1025/{groupId}/4
     *
     * @tapVersion(">=")
     * @param groupId input
     * @return call options
     */
    GroupService.prototype.getSessionLifetimeCall = function (
    /*
     * Group id
     */
    groupId) {
        var callOptions = __assign({}, this.resources.getSessionLifetime);
        callOptions.pathParameters = {
            groupId: groupId
        };
        return callOptions;
    };
    /**
     * Write session lifetime
     *
     * LWM2M path: /1025/{groupId}/4
     *
     * @tapVersion(">=")
     * @param groupId input
     * @param value input
     * @return
     */
    GroupService.prototype.putSessionLifetime = function (
    /*
     * Group id to return
     */
    groupId, 
    /*
     *
     */
    value) {
        return this.serviceCallRunner.execute(this.putSessionLifetimeCall(groupId, value));
    };
    /**
     *
     *
     * LWM2M path: /1025/{groupId}/4
     *
     * @tapVersion(">=")
     * @param groupId input
     * @param value input
     * @return call options
     */
    GroupService.prototype.putSessionLifetimeCall = function (
    /*
     * Group id to return
     */
    groupId, 
    /*
     *
     */
    value) {
        var callOptions = __assign({}, this.resources.putSessionLifetime);
        callOptions.body = value;
        callOptions.pathParameters = {
            groupId: groupId
        };
        return callOptions;
    };
    /**
     * Get group alias
     *
     * LWM2M path: /1025/{groupId}/5
     *
     * @tapVersion(">=")
     * @param groupId input
     * @return
     */
    GroupService.prototype.getAlias = function (
    /*
     * Group id
     */
    groupId) {
        return this.serviceCallRunner.execute(this.getAliasCall(groupId));
    };
    /**
     *
     *
     * LWM2M path: /1025/{groupId}/5
     *
     * @tapVersion(">=")
     * @param groupId input
     * @return call options
     */
    GroupService.prototype.getAliasCall = function (
    /*
     * Group id
     */
    groupId) {
        var callOptions = __assign({}, this.resources.getAlias);
        callOptions.pathParameters = {
            groupId: groupId
        };
        return callOptions;
    };
    /**
     * Write group alias
     *
     * LWM2M path: /1025/{groupId}/5
     *
     * @tapVersion(">=")
     * @param groupId input
     * @param value input
     * @return
     */
    GroupService.prototype.putAlias = function (
    /*
     * Group id to return
     */
    groupId, 
    /*
     *
     */
    value) {
        return this.serviceCallRunner.execute(this.putAliasCall(groupId, value));
    };
    /**
     *
     *
     * LWM2M path: /1025/{groupId}/5
     *
     * @tapVersion(">=")
     * @param groupId input
     * @param value input
     * @return call options
     */
    GroupService.prototype.putAliasCall = function (
    /*
     * Group id to return
     */
    groupId, 
    /*
     *
     */
    value) {
        var callOptions = __assign({}, this.resources.putAlias);
        callOptions.body = value;
        callOptions.pathParameters = {
            groupId: groupId
        };
        return callOptions;
    };
    /**
     * Create group with id groupId
     *
     * LWM2M path: /1025/{groupId}/65535
     *
     * @tapVersion(">=")
     * @param groupId input
     * @return
     */
    GroupService.prototype.create = function (
    /*
     * Group id
     */
    groupId) {
        return this.serviceCallRunner.execute(this.createCall(groupId));
    };
    /**
     *
     *
     * LWM2M path: /1025/{groupId}/65535
     *
     * @tapVersion(">=")
     * @param groupId input
     * @return call options
     */
    GroupService.prototype.createCall = function (
    /*
     * Group id
     */
    groupId) {
        var callOptions = __assign({}, this.resources.create);
        callOptions.pathParameters = {
            groupId: groupId
        };
        return callOptions;
    };
    return GroupService;
}(AbstractService));
export { GroupService };
//# sourceMappingURL=data:application/json;base64, 