teamdrive_api 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fd5737a3ae0b9dac3b6f4f78f9b5869ff2313db0
4
- data.tar.gz: 99ec246ed7c734faa67b57c0ba2120ac1c1ace19
3
+ metadata.gz: 5628c9b99ba6df0495720948e1ac9a9198f5f99e
4
+ data.tar.gz: d23f9caa6f5a17f305660a33f7b65b06fa0fd174
5
5
  SHA512:
6
- metadata.gz: 89b2340fa3271116168a727b1c7268fa0a7a59fef04ea63dafc061bbf522be10d53bea80a7895818be7020416e0d82286f3d2ea296941add09c07860172843d1
7
- data.tar.gz: c61297df37f2f5233602ad85464403a1339b7fc2842b39745660aff0927f63c31a4b49ba33cc72651009c0277d45819cf437ec2c1f88a3fe17387a5b1e7409e8
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
@@ -1,4 +1,4 @@
1
1
  # :nodoc:
2
2
  module TeamdriveApi
3
- VERSION = '0.3.3'
3
+ VERSION = '0.3.4'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teamdrive_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Hutter