teamdrive_api 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/teamdrive_api/register.rb +12 -10
- data/lib/teamdrive_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd5737a3ae0b9dac3b6f4f78f9b5869ff2313db0
|
4
|
+
data.tar.gz: 99ec246ed7c734faa67b57c0ba2120ac1c1ace19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89b2340fa3271116168a727b1c7268fa0a7a59fef04ea63dafc061bbf522be10d53bea80a7895818be7020416e0d82286f3d2ea296941add09c07860172843d1
|
7
|
+
data.tar.gz: c61297df37f2f5233602ad85464403a1339b7fc2842b39745660aff0927f63c31a4b49ba33cc72651009c0277d45819cf437ec2c1f88a3fe17387a5b1e7409e8
|
@@ -50,15 +50,15 @@ module TeamdriveApi
|
|
50
50
|
# @option opts [String] :type +monthly+ / +yearly+ / +permanent+
|
51
51
|
# @option opts [String] :featurevalue one of +webdavs+, +personal+,
|
52
52
|
# +professional+, +enterprise+
|
53
|
-
# @option opts [String] :limit Amount, only for client licenses
|
53
|
+
# @option opts [String] :limit Amount, only for client licenses. _Optional_.
|
54
54
|
# @option opts [String] :licensereference An _optional_ external reference.
|
55
55
|
# Added with v1.0.004
|
56
|
-
# @option opts [String] :contactnumber An
|
56
|
+
# @option opts [String] :contactnumber An _optional_ contact number. Added
|
57
57
|
# with v1.0.004
|
58
|
-
# @option opts [String] :validuntil An
|
59
|
-
# must be +DD
|
60
|
-
# @option opts [String] :changeid An
|
61
|
-
# Added with v1.0.004
|
58
|
+
# @option opts [String] :validuntil An _optional_ valid-until date. Format
|
59
|
+
# must be +MM/DD/YYYY+. Added with v1.0.004
|
60
|
+
# @option opts [String] :changeid An _optional_ change id for license
|
61
|
+
# changes. Added with v1.0.004
|
62
62
|
# @return [String] The license number of the created license
|
63
63
|
def create_license(opts = {})
|
64
64
|
require_all of: [:username, :productname, :type, :featurevalue],
|
@@ -142,13 +142,15 @@ module TeamdriveApi
|
|
142
142
|
#
|
143
143
|
# @param [String] username User to be deleted
|
144
144
|
# @param [Boolean] delete_license delete the user's license aswell
|
145
|
-
# @param [
|
146
|
-
#
|
145
|
+
# @param [Boolean] delete_depot delete the user's depot (data) aswell
|
146
|
+
# @param [String] distributor Distributor. Only used if allowed by the API
|
147
|
+
# (see +APIAllowSettingDistributor+ in the Teamdrive Register docs).
|
147
148
|
# @return [Boolean] success?
|
148
|
-
def remove_user(username
|
149
|
+
def remove_user(username:, delete_license: false, delete_depot: false, distributor: nil)
|
149
150
|
res = send_request :removeuser,
|
150
151
|
username: username,
|
151
|
-
|
152
|
+
deletelicense: delete_license,
|
153
|
+
deletedepot: delete_depot,
|
152
154
|
distributor: distributor
|
153
155
|
|
154
156
|
res[:intresult].eql?('0')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: teamdrive_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Manuel Hutter
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|