teamdrive_api 0.3.3 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/teamdrive_api/register.rb +25 -1
- data/lib/teamdrive_api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5628c9b99ba6df0495720948e1ac9a9198f5f99e
|
4
|
+
data.tar.gz: d23f9caa6f5a17f305660a33f7b65b06fa0fd174
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 495b0289cc4bb3f28a0f5b857c0d18f99b931e16f0bdd5926e82e0b9f65ce08a43d66e01aaccf8edcec0cb901de38204d08eda468c8dcb7b25471caaf2a85e55
|
7
|
+
data.tar.gz: c6668c0a33fcfbc3bc88eb97099c4895118692b7c653bb61f9732ce869a2fe022a2dec0a4eb2e6076d4a5ab69d347d4dcfbd84fdf89029de007bd138b4fc820a
|
@@ -20,7 +20,7 @@ module TeamdriveApi
|
|
20
20
|
# @param [Array] devices optional list of devices the user posses. If
|
21
21
|
# empty, all of the user's devices will be used
|
22
22
|
# @return [Boolean] success?
|
23
|
-
def assign_license_to_client(username, number, devices =
|
23
|
+
def assign_license_to_client(username, number, devices = nil)
|
24
24
|
res = send_request :assignlicensetoclient,
|
25
25
|
username: username,
|
26
26
|
number: number,
|
@@ -76,6 +76,30 @@ module TeamdriveApi
|
|
76
76
|
res[:licensedata][:number]
|
77
77
|
end
|
78
78
|
|
79
|
+
# Downgrade default-license
|
80
|
+
#
|
81
|
+
# @param [Hash] opts license options
|
82
|
+
# @option opts [String] :username
|
83
|
+
# @option opts [String] :featurevalue _optional_
|
84
|
+
# @option opts [String] :limit _optional_
|
85
|
+
def downgrade_default_license(opts = {})
|
86
|
+
require_all of: [:username], in_hash: opts
|
87
|
+
res = send_request(:downgradedefaultlicense, opts)
|
88
|
+
res[:intresult].eql?('0')
|
89
|
+
end
|
90
|
+
|
91
|
+
# Upgrade default-license
|
92
|
+
#
|
93
|
+
# @param [Hash] opts license options
|
94
|
+
# @option opts [String] :username
|
95
|
+
# @option opts [String] :featurevalue _optional_
|
96
|
+
# @option opts [String] :limit _optional_
|
97
|
+
def upgrade_default_license(opts = {})
|
98
|
+
require_all of: [:username], in_hash: opts
|
99
|
+
res = send_request(:upgradedefaultlicense, opts)
|
100
|
+
res[:intresult].eql?('0')
|
101
|
+
end
|
102
|
+
|
79
103
|
# Get default-license for a user
|
80
104
|
#
|
81
105
|
# @param [String] username
|