code42 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rspec +1 -0
- data/code42.gemspec +3 -0
- data/lib/code42.rb +66 -27
- data/lib/code42/api/destination.rb +18 -0
- data/lib/code42/api/diagnostic.rb +9 -0
- data/lib/code42/api/org.rb +5 -2
- data/lib/code42/api/product_license.rb +21 -0
- data/lib/code42/api/server.rb +21 -0
- data/lib/code42/api/server_connection_string.rb +9 -0
- data/lib/code42/api/server_settings.rb +13 -0
- data/lib/code42/api/store_point.rb +22 -0
- data/lib/code42/api/token.rb +7 -0
- data/lib/code42/client.rb +23 -31
- data/lib/code42/computer.rb +0 -2
- data/lib/code42/connection.rb +14 -26
- data/lib/code42/destination.rb +52 -0
- data/lib/code42/product_license.rb +12 -0
- data/lib/code42/server.rb +54 -0
- data/lib/code42/server_connection_string.rb +10 -0
- data/lib/code42/server_settings.rb +4 -0
- data/lib/code42/settings.rb +1 -1
- data/lib/code42/store_point.rb +63 -0
- data/lib/code42/version.rb +1 -1
- data/spec/cassettes/Code42_Client/_add_product_license/adds_a_product_license.yml +39 -0
- data/spec/cassettes/Code42_Client/_apply_mlk/applies_the_mlk.yml +77 -0
- data/spec/cassettes/Code42_Client/_create_destination/creates_a_destination.yml +40 -0
- data/spec/cassettes/Code42_Client/_create_server/creates_a_server.yml +38 -0
- data/spec/cassettes/Code42_Client/_destination/returns_a_destination.yml +37 -0
- data/spec/cassettes/Code42_Client/_destinations/returns_an_array_of_desinations.yml +37 -0
- data/spec/cassettes/Code42_Client/_org_share_destinations/returns_a_provider_key.yml +36 -0
- data/spec/cassettes/Code42_Client/_product_licenses/returns_an_array_of_product_licenses.yml +81 -0
- data/spec/cassettes/Code42_Client/_remove_product_license/removes_a_product_license.yml +104 -0
- data/spec/cassettes/Code42_Client/_server/returns_a_server.yml +37 -0
- data/spec/cassettes/Code42_Client/_server_connection_string/returns_a_connection_string.yml +36 -0
- data/spec/cassettes/Code42_Client/_server_settings/returns_a_server_settings_object.yml +37 -0
- data/spec/cassettes/Code42_Client/_servers/returns_an_array_of_servers.yml +37 -0
- data/spec/cassettes/Code42_Client/_update_product_license/updates_a_product_license.yml +76 -0
- data/spec/cassettes/Code42_Client/_update_server_settings/updates_server_settings.yml +70 -0
- data/spec/cassettes/Code42_StorePoint/_accept_new_devices/should_return_store_point_with_accept_new_devices_enabled.yml +75 -0
- data/spec/cassettes/Code42_StorePoint/_disable_balancing/should_return_store_point_with_balancing_enabled.yml +75 -0
- data/spec/cassettes/Code42_StorePoint/_disable_inbound_backup/should_return_store_point_with_inbound_backup_disabled.yml +75 -0
- data/spec/cassettes/Code42_StorePoint/_enable_balancing/should_return_store_point_with_balancing_enabled.yml +75 -0
- data/spec/cassettes/Code42_StorePoint/_enable_inbound_backup/should_return_store_point_with_inbound_backup_disabled.yml +75 -0
- data/spec/cassettes/Code42_StorePoint/_find_store_point_by_id/should_return_correct_store_point.yml +38 -0
- data/spec/cassettes/Code42_StorePoint/_find_store_point_by_name/should_return_correct_store_point.yml +38 -0
- data/spec/cassettes/Code42_StorePoint/_find_store_point_by_server_name/should_return_correct_store_point.yml +38 -0
- data/spec/cassettes/Code42_StorePoint/_reject_new_devices/should_return_store_point_with_accept_new_devices_disabled.yml +75 -0
- data/spec/code42/client_spec.rb +161 -57
- data/spec/code42/connection_spec.rb +10 -12
- data/spec/code42/extension_spec.rb +0 -2
- data/spec/code42/org_spec.rb +20 -22
- data/spec/code42/ping_spec.rb +1 -3
- data/spec/code42/product_license_spec.rb +34 -0
- data/spec/code42/resource_spec.rb +0 -2
- data/spec/code42/role_spec.rb +2 -4
- data/spec/code42/server_connection_string_spec.rb +34 -0
- data/spec/code42/server_spec.rb +66 -0
- data/spec/code42/settings_spec.rb +25 -27
- data/spec/code42/store_point_spec.rb +90 -0
- data/spec/code42/token_spec.rb +10 -15
- data/spec/code42/user_spec.rb +4 -6
- data/spec/spec_helper.rb +1 -1
- metadata +74 -4
@@ -0,0 +1,70 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: put
|
5
|
+
uri: http://10.10.46.137:4280/api/serverSettings/1
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"name":"Foo Bar Server"}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.8
|
12
|
+
Authorization:
|
13
|
+
- Basic YWRtaW46YWRtaW4=
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: ''
|
20
|
+
headers:
|
21
|
+
Cache-Control:
|
22
|
+
- no-store
|
23
|
+
Pragma:
|
24
|
+
- no-cache
|
25
|
+
Content-Location:
|
26
|
+
- http://10.10.46.137:4280/api/v1/serverSettings/1
|
27
|
+
Content-Length:
|
28
|
+
- '0'
|
29
|
+
Server:
|
30
|
+
- Jetty(7.6.3.v20120416)
|
31
|
+
body:
|
32
|
+
encoding: UTF-8
|
33
|
+
string: ''
|
34
|
+
http_version:
|
35
|
+
recorded_at: Tue, 10 Sep 2013 18:58:41 GMT
|
36
|
+
- request:
|
37
|
+
method: get
|
38
|
+
uri: http://10.10.46.137:4280/api/serverSettings/1
|
39
|
+
body:
|
40
|
+
encoding: US-ASCII
|
41
|
+
string: ''
|
42
|
+
headers:
|
43
|
+
User-Agent:
|
44
|
+
- Faraday v0.8.8
|
45
|
+
Authorization:
|
46
|
+
- Basic YWRtaW46YWRtaW4=
|
47
|
+
response:
|
48
|
+
status:
|
49
|
+
code: 200
|
50
|
+
message: ''
|
51
|
+
headers:
|
52
|
+
Cache-Control:
|
53
|
+
- no-store
|
54
|
+
Pragma:
|
55
|
+
- no-cache
|
56
|
+
Content-Location:
|
57
|
+
- http://10.10.46.137:4280/api/v1/serverSettings/1
|
58
|
+
Content-Type:
|
59
|
+
- application/json; charset=utf-8
|
60
|
+
Transfer-Encoding:
|
61
|
+
- chunked
|
62
|
+
Server:
|
63
|
+
- Jetty(7.6.3.v20120416)
|
64
|
+
body:
|
65
|
+
encoding: UTF-8
|
66
|
+
string: '{"metadata":{"timestamp":"2013-09-10T13:58:44.584-05:00","params":{}},"data":{"serverId":1,"name":"Foo
|
67
|
+
Bar Server","discriminator":"MyCluster","dailyAccountingTime":"02:01","archiveMaintenanceIntervalInDays":7,"expiredArchiveCleanupInDays":20,"autoUpgrade":true,"deviceAutoUpgrade":true,"serverUpgraded":false,"clientUpgradeAvailable":false,"network":{"website":"http://10.10.46.137:4280","primaryAddress":null,"secondaryAddress":null,"privateAddress":""},"email":{"internal":true,"host":null,"ssl":false,"username":null,"password":null,"sender":"noreply@crashplanproe.com","isUsingInheritedValues":false},"emailInherited":{"internal":true,"host":null,"ssl":false,"username":null,"password":null},"cluster":true,"alert":{"freeSpace":{"warning":10,"critical":5},"license":{"warning":1,"critical":0},"backup":{"warning":3,"critical":7},"email":{"sysAdmins":[],"additional":[]}},"ldap":{"syncIntervalHours":12,"nonLdapOrgId":0},"security":{"useHttps":false}}}'
|
68
|
+
http_version:
|
69
|
+
recorded_at: Tue, 10 Sep 2013 18:58:41 GMT
|
70
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,75 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://admin:admin@10.10.40.57:4280/api/storePoint/2
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.0
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- '*/*'
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Cache-Control:
|
22
|
+
- no-store
|
23
|
+
Pragma:
|
24
|
+
- no-cache
|
25
|
+
Content-Location:
|
26
|
+
- http://10.10.40.57:4280/api/v1/storePoint/2
|
27
|
+
Content-Type:
|
28
|
+
- application/json;charset=UTF-8
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Server:
|
32
|
+
- Jetty(7.6.3.v20120416)
|
33
|
+
body:
|
34
|
+
encoding: UTF-8
|
35
|
+
string: '{"metadata":{"timestamp":"2014-08-30T18:27:28.435Z","params":{}},"data":{"storePointId":2,"storePointName":"651951667247317249_Default","note":null,"path":"/var/opt/proserver/backupArchives","directory":"CrashPlanArchive_Default","absolutePath":"/var/opt/proserver/backupArchives/CrashPlanArchive_Default","serverId":5,"serverName":"test_storage_node","destinationId":4,"destinationName":"local-storage","backupSessionCount":0,"computerCount":0,"backupComputerCount":0,"userCount":0,"licensedUserCount":0,"orgCount":0,"usedBytes":4658135040,"usedPercentage":22.0,"freeBytes":16478662656,"freeBytesAlert":"null","freePercentage":78.0,"coldBytes":0,"coldPercentageOfUsed":0.0,"coldPercentageOfTotal":0.0,"totalBytes":21136797696,"acceptingInboundBackup":true,"balancingData":true,"acceptingNewComputers":true,"writeSpeed":null,"online":true,"serverOnline":true,"archiveBytes":0,"selectedBytes":0,"todoBytes":0}}'
|
36
|
+
http_version:
|
37
|
+
recorded_at: Sat, 30 Aug 2014 18:27:28 GMT
|
38
|
+
- request:
|
39
|
+
method: put
|
40
|
+
uri: http://admin:admin@10.10.40.57:4280/api/storePoint/2
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"acceptingNewComputers":true}'
|
44
|
+
headers:
|
45
|
+
User-Agent:
|
46
|
+
- Faraday v0.9.0
|
47
|
+
Content-Type:
|
48
|
+
- application/json
|
49
|
+
Accept-Encoding:
|
50
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
51
|
+
Accept:
|
52
|
+
- '*/*'
|
53
|
+
response:
|
54
|
+
status:
|
55
|
+
code: 200
|
56
|
+
message: OK
|
57
|
+
headers:
|
58
|
+
Cache-Control:
|
59
|
+
- no-store
|
60
|
+
Pragma:
|
61
|
+
- no-cache
|
62
|
+
Content-Location:
|
63
|
+
- http://10.10.40.57:4280/api/v1/storePoint/2
|
64
|
+
Content-Type:
|
65
|
+
- application/json;charset=UTF-8
|
66
|
+
Transfer-Encoding:
|
67
|
+
- chunked
|
68
|
+
Server:
|
69
|
+
- Jetty(7.6.3.v20120416)
|
70
|
+
body:
|
71
|
+
encoding: UTF-8
|
72
|
+
string: '{"metadata":{"timestamp":"2014-08-30T18:27:29.797Z","params":{}},"data":{"storePointId":2,"storePointName":"651951667247317249_Default","note":null,"path":"/var/opt/proserver/backupArchives","directory":"CrashPlanArchive_Default","absolutePath":"/var/opt/proserver/backupArchives/CrashPlanArchive_Default","serverId":5,"serverName":"test_storage_node","destinationId":4,"destinationName":"local-storage","backupSessionCount":0,"computerCount":0,"backupComputerCount":0,"userCount":0,"licensedUserCount":0,"orgCount":0,"usedBytes":4658135040,"usedPercentage":22.0,"freeBytes":16478662656,"freeBytesAlert":"null","freePercentage":78.0,"coldBytes":0,"coldPercentageOfUsed":0.0,"coldPercentageOfTotal":0.0,"totalBytes":21136797696,"acceptingInboundBackup":true,"balancingData":true,"acceptingNewComputers":true,"writeSpeed":null,"online":true,"serverOnline":true,"archiveBytes":0,"selectedBytes":0,"todoBytes":0}}'
|
73
|
+
http_version:
|
74
|
+
recorded_at: Sat, 30 Aug 2014 18:27:29 GMT
|
75
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,75 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://admin:admin@10.10.40.57:4280/api/storePoint/2
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.0
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- '*/*'
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Cache-Control:
|
22
|
+
- no-store
|
23
|
+
Pragma:
|
24
|
+
- no-cache
|
25
|
+
Content-Location:
|
26
|
+
- http://10.10.40.57:4280/api/v1/storePoint/2
|
27
|
+
Content-Type:
|
28
|
+
- application/json;charset=UTF-8
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Server:
|
32
|
+
- Jetty(7.6.3.v20120416)
|
33
|
+
body:
|
34
|
+
encoding: UTF-8
|
35
|
+
string: '{"metadata":{"timestamp":"2014-08-30T17:29:16.953Z","params":{}},"data":{"storePointId":2,"storePointName":"651951667247317249_Default","note":null,"path":"/var/opt/proserver/backupArchives","directory":"CrashPlanArchive_Default","absolutePath":"/var/opt/proserver/backupArchives/CrashPlanArchive_Default","serverId":5,"serverName":"test_storage_node","destinationId":4,"destinationName":"local-storage","backupSessionCount":0,"computerCount":0,"backupComputerCount":0,"userCount":0,"licensedUserCount":0,"orgCount":0,"usedBytes":4657950720,"usedPercentage":22.0,"freeBytes":16478846976,"freeBytesAlert":"null","freePercentage":78.0,"coldBytes":0,"coldPercentageOfUsed":0.0,"coldPercentageOfTotal":0.0,"totalBytes":21136797696,"acceptingInboundBackup":false,"balancingData":true,"acceptingNewComputers":true,"writeSpeed":null,"online":true,"serverOnline":true,"archiveBytes":0,"selectedBytes":0,"todoBytes":0}}'
|
36
|
+
http_version:
|
37
|
+
recorded_at: Sat, 30 Aug 2014 17:29:16 GMT
|
38
|
+
- request:
|
39
|
+
method: put
|
40
|
+
uri: http://admin:admin@10.10.40.57:4280/api/storePoint/2
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"balancingData":false}'
|
44
|
+
headers:
|
45
|
+
User-Agent:
|
46
|
+
- Faraday v0.9.0
|
47
|
+
Content-Type:
|
48
|
+
- application/json
|
49
|
+
Accept-Encoding:
|
50
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
51
|
+
Accept:
|
52
|
+
- '*/*'
|
53
|
+
response:
|
54
|
+
status:
|
55
|
+
code: 200
|
56
|
+
message: OK
|
57
|
+
headers:
|
58
|
+
Cache-Control:
|
59
|
+
- no-store
|
60
|
+
Pragma:
|
61
|
+
- no-cache
|
62
|
+
Content-Location:
|
63
|
+
- http://10.10.40.57:4280/api/v1/storePoint/2
|
64
|
+
Content-Type:
|
65
|
+
- application/json;charset=UTF-8
|
66
|
+
Transfer-Encoding:
|
67
|
+
- chunked
|
68
|
+
Server:
|
69
|
+
- Jetty(7.6.3.v20120416)
|
70
|
+
body:
|
71
|
+
encoding: UTF-8
|
72
|
+
string: '{"metadata":{"timestamp":"2014-08-30T17:29:17.467Z","params":{}},"data":{"storePointId":2,"storePointName":"651951667247317249_Default","note":null,"path":"/var/opt/proserver/backupArchives","directory":"CrashPlanArchive_Default","absolutePath":"/var/opt/proserver/backupArchives/CrashPlanArchive_Default","serverId":5,"serverName":"test_storage_node","destinationId":4,"destinationName":"local-storage","backupSessionCount":0,"computerCount":0,"backupComputerCount":0,"userCount":0,"licensedUserCount":0,"orgCount":0,"usedBytes":4657950720,"usedPercentage":22.0,"freeBytes":16478846976,"freeBytesAlert":"null","freePercentage":78.0,"coldBytes":0,"coldPercentageOfUsed":0.0,"coldPercentageOfTotal":0.0,"totalBytes":21136797696,"acceptingInboundBackup":false,"balancingData":false,"acceptingNewComputers":true,"writeSpeed":null,"online":true,"serverOnline":true,"archiveBytes":0,"selectedBytes":0,"todoBytes":0}}'
|
73
|
+
http_version:
|
74
|
+
recorded_at: Sat, 30 Aug 2014 17:29:17 GMT
|
75
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,75 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://admin:admin@10.10.40.57:4280/api/storePoint/2
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.0
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- '*/*'
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Cache-Control:
|
22
|
+
- no-store
|
23
|
+
Pragma:
|
24
|
+
- no-cache
|
25
|
+
Content-Location:
|
26
|
+
- http://10.10.40.57:4280/api/v1/storePoint/2
|
27
|
+
Content-Type:
|
28
|
+
- application/json;charset=UTF-8
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Server:
|
32
|
+
- Jetty(7.6.3.v20120416)
|
33
|
+
body:
|
34
|
+
encoding: UTF-8
|
35
|
+
string: '{"metadata":{"timestamp":"2014-08-30T17:29:16.104Z","params":{}},"data":{"storePointId":2,"storePointName":"651951667247317249_Default","note":null,"path":"/var/opt/proserver/backupArchives","directory":"CrashPlanArchive_Default","absolutePath":"/var/opt/proserver/backupArchives/CrashPlanArchive_Default","serverId":5,"serverName":"test_storage_node","destinationId":4,"destinationName":"local-storage","backupSessionCount":0,"computerCount":0,"backupComputerCount":0,"userCount":0,"licensedUserCount":0,"orgCount":0,"usedBytes":4657950720,"usedPercentage":22.0,"freeBytes":16478846976,"freeBytesAlert":"null","freePercentage":78.0,"coldBytes":0,"coldPercentageOfUsed":0.0,"coldPercentageOfTotal":0.0,"totalBytes":21136797696,"acceptingInboundBackup":true,"balancingData":true,"acceptingNewComputers":true,"writeSpeed":null,"online":true,"serverOnline":true,"archiveBytes":0,"selectedBytes":0,"todoBytes":0}}'
|
36
|
+
http_version:
|
37
|
+
recorded_at: Sat, 30 Aug 2014 17:29:16 GMT
|
38
|
+
- request:
|
39
|
+
method: put
|
40
|
+
uri: http://admin:admin@10.10.40.57:4280/api/storePoint/2
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"acceptingInboundBackup":false}'
|
44
|
+
headers:
|
45
|
+
User-Agent:
|
46
|
+
- Faraday v0.9.0
|
47
|
+
Content-Type:
|
48
|
+
- application/json
|
49
|
+
Accept-Encoding:
|
50
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
51
|
+
Accept:
|
52
|
+
- '*/*'
|
53
|
+
response:
|
54
|
+
status:
|
55
|
+
code: 200
|
56
|
+
message: OK
|
57
|
+
headers:
|
58
|
+
Cache-Control:
|
59
|
+
- no-store
|
60
|
+
Pragma:
|
61
|
+
- no-cache
|
62
|
+
Content-Location:
|
63
|
+
- http://10.10.40.57:4280/api/v1/storePoint/2
|
64
|
+
Content-Type:
|
65
|
+
- application/json;charset=UTF-8
|
66
|
+
Transfer-Encoding:
|
67
|
+
- chunked
|
68
|
+
Server:
|
69
|
+
- Jetty(7.6.3.v20120416)
|
70
|
+
body:
|
71
|
+
encoding: UTF-8
|
72
|
+
string: '{"metadata":{"timestamp":"2014-08-30T17:29:16.605Z","params":{}},"data":{"storePointId":2,"storePointName":"651951667247317249_Default","note":null,"path":"/var/opt/proserver/backupArchives","directory":"CrashPlanArchive_Default","absolutePath":"/var/opt/proserver/backupArchives/CrashPlanArchive_Default","serverId":5,"serverName":"test_storage_node","destinationId":4,"destinationName":"local-storage","backupSessionCount":0,"computerCount":0,"backupComputerCount":0,"userCount":0,"licensedUserCount":0,"orgCount":0,"usedBytes":4657950720,"usedPercentage":22.0,"freeBytes":16478846976,"freeBytesAlert":"null","freePercentage":78.0,"coldBytes":0,"coldPercentageOfUsed":0.0,"coldPercentageOfTotal":0.0,"totalBytes":21136797696,"acceptingInboundBackup":false,"balancingData":true,"acceptingNewComputers":true,"writeSpeed":null,"online":true,"serverOnline":true,"archiveBytes":0,"selectedBytes":0,"todoBytes":0}}'
|
73
|
+
http_version:
|
74
|
+
recorded_at: Sat, 30 Aug 2014 17:29:16 GMT
|
75
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,75 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://admin:admin@10.10.40.57:4280/api/storePoint/2
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.0
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- '*/*'
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Cache-Control:
|
22
|
+
- no-store
|
23
|
+
Pragma:
|
24
|
+
- no-cache
|
25
|
+
Content-Location:
|
26
|
+
- http://10.10.40.57:4280/api/v1/storePoint/2
|
27
|
+
Content-Type:
|
28
|
+
- application/json;charset=UTF-8
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Server:
|
32
|
+
- Jetty(7.6.3.v20120416)
|
33
|
+
body:
|
34
|
+
encoding: UTF-8
|
35
|
+
string: '{"metadata":{"timestamp":"2014-08-30T17:29:13.022Z","params":{}},"data":{"storePointId":2,"storePointName":"651951667247317249_Default","note":null,"path":"/var/opt/proserver/backupArchives","directory":"CrashPlanArchive_Default","absolutePath":"/var/opt/proserver/backupArchives/CrashPlanArchive_Default","serverId":5,"serverName":"test_storage_node","destinationId":4,"destinationName":"local-storage","backupSessionCount":0,"computerCount":0,"backupComputerCount":0,"userCount":0,"licensedUserCount":0,"orgCount":0,"usedBytes":4657938432,"usedPercentage":22.0,"freeBytes":16478859264,"freeBytesAlert":"null","freePercentage":78.0,"coldBytes":0,"coldPercentageOfUsed":0.0,"coldPercentageOfTotal":0.0,"totalBytes":21136797696,"acceptingInboundBackup":true,"balancingData":true,"acceptingNewComputers":true,"writeSpeed":null,"online":true,"serverOnline":true,"archiveBytes":0,"selectedBytes":0,"todoBytes":0}}'
|
36
|
+
http_version:
|
37
|
+
recorded_at: Sat, 30 Aug 2014 17:29:12 GMT
|
38
|
+
- request:
|
39
|
+
method: put
|
40
|
+
uri: http://admin:admin@10.10.40.57:4280/api/storePoint/2
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"balancingData":true}'
|
44
|
+
headers:
|
45
|
+
User-Agent:
|
46
|
+
- Faraday v0.9.0
|
47
|
+
Content-Type:
|
48
|
+
- application/json
|
49
|
+
Accept-Encoding:
|
50
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
51
|
+
Accept:
|
52
|
+
- '*/*'
|
53
|
+
response:
|
54
|
+
status:
|
55
|
+
code: 200
|
56
|
+
message: OK
|
57
|
+
headers:
|
58
|
+
Cache-Control:
|
59
|
+
- no-store
|
60
|
+
Pragma:
|
61
|
+
- no-cache
|
62
|
+
Content-Location:
|
63
|
+
- http://10.10.40.57:4280/api/v1/storePoint/2
|
64
|
+
Content-Type:
|
65
|
+
- application/json;charset=UTF-8
|
66
|
+
Transfer-Encoding:
|
67
|
+
- chunked
|
68
|
+
Server:
|
69
|
+
- Jetty(7.6.3.v20120416)
|
70
|
+
body:
|
71
|
+
encoding: UTF-8
|
72
|
+
string: '{"metadata":{"timestamp":"2014-08-30T17:29:13.618Z","params":{}},"data":{"storePointId":2,"storePointName":"651951667247317249_Default","note":null,"path":"/var/opt/proserver/backupArchives","directory":"CrashPlanArchive_Default","absolutePath":"/var/opt/proserver/backupArchives/CrashPlanArchive_Default","serverId":5,"serverName":"test_storage_node","destinationId":4,"destinationName":"local-storage","backupSessionCount":0,"computerCount":0,"backupComputerCount":0,"userCount":0,"licensedUserCount":0,"orgCount":0,"usedBytes":4657938432,"usedPercentage":22.0,"freeBytes":16478859264,"freeBytesAlert":"null","freePercentage":78.0,"coldBytes":0,"coldPercentageOfUsed":0.0,"coldPercentageOfTotal":0.0,"totalBytes":21136797696,"acceptingInboundBackup":true,"balancingData":true,"acceptingNewComputers":true,"writeSpeed":null,"online":true,"serverOnline":true,"archiveBytes":0,"selectedBytes":0,"todoBytes":0}}'
|
73
|
+
http_version:
|
74
|
+
recorded_at: Sat, 30 Aug 2014 17:29:13 GMT
|
75
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,75 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://admin:admin@10.10.40.57:4280/api/storePoint/2
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.0
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- '*/*'
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Cache-Control:
|
22
|
+
- no-store
|
23
|
+
Pragma:
|
24
|
+
- no-cache
|
25
|
+
Content-Location:
|
26
|
+
- http://10.10.40.57:4280/api/v1/storePoint/2
|
27
|
+
Content-Type:
|
28
|
+
- application/json;charset=UTF-8
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Server:
|
32
|
+
- Jetty(7.6.3.v20120416)
|
33
|
+
body:
|
34
|
+
encoding: UTF-8
|
35
|
+
string: '{"metadata":{"timestamp":"2014-08-30T17:29:14.313Z","params":{}},"data":{"storePointId":2,"storePointName":"651951667247317249_Default","note":null,"path":"/var/opt/proserver/backupArchives","directory":"CrashPlanArchive_Default","absolutePath":"/var/opt/proserver/backupArchives/CrashPlanArchive_Default","serverId":5,"serverName":"test_storage_node","destinationId":4,"destinationName":"local-storage","backupSessionCount":0,"computerCount":0,"backupComputerCount":0,"userCount":0,"licensedUserCount":0,"orgCount":0,"usedBytes":4657938432,"usedPercentage":22.0,"freeBytes":16478859264,"freeBytesAlert":"null","freePercentage":78.0,"coldBytes":0,"coldPercentageOfUsed":0.0,"coldPercentageOfTotal":0.0,"totalBytes":21136797696,"acceptingInboundBackup":true,"balancingData":true,"acceptingNewComputers":true,"writeSpeed":null,"online":true,"serverOnline":true,"archiveBytes":0,"selectedBytes":0,"todoBytes":0}}'
|
36
|
+
http_version:
|
37
|
+
recorded_at: Sat, 30 Aug 2014 17:29:14 GMT
|
38
|
+
- request:
|
39
|
+
method: put
|
40
|
+
uri: http://admin:admin@10.10.40.57:4280/api/storePoint/2
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"acceptingInboundBackup":true}'
|
44
|
+
headers:
|
45
|
+
User-Agent:
|
46
|
+
- Faraday v0.9.0
|
47
|
+
Content-Type:
|
48
|
+
- application/json
|
49
|
+
Accept-Encoding:
|
50
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
51
|
+
Accept:
|
52
|
+
- '*/*'
|
53
|
+
response:
|
54
|
+
status:
|
55
|
+
code: 200
|
56
|
+
message: OK
|
57
|
+
headers:
|
58
|
+
Cache-Control:
|
59
|
+
- no-store
|
60
|
+
Pragma:
|
61
|
+
- no-cache
|
62
|
+
Content-Location:
|
63
|
+
- http://10.10.40.57:4280/api/v1/storePoint/2
|
64
|
+
Content-Type:
|
65
|
+
- application/json;charset=UTF-8
|
66
|
+
Transfer-Encoding:
|
67
|
+
- chunked
|
68
|
+
Server:
|
69
|
+
- Jetty(7.6.3.v20120416)
|
70
|
+
body:
|
71
|
+
encoding: UTF-8
|
72
|
+
string: '{"metadata":{"timestamp":"2014-08-30T17:29:14.842Z","params":{}},"data":{"storePointId":2,"storePointName":"651951667247317249_Default","note":null,"path":"/var/opt/proserver/backupArchives","directory":"CrashPlanArchive_Default","absolutePath":"/var/opt/proserver/backupArchives/CrashPlanArchive_Default","serverId":5,"serverName":"test_storage_node","destinationId":4,"destinationName":"local-storage","backupSessionCount":0,"computerCount":0,"backupComputerCount":0,"userCount":0,"licensedUserCount":0,"orgCount":0,"usedBytes":4657938432,"usedPercentage":22.0,"freeBytes":16478859264,"freeBytesAlert":"null","freePercentage":78.0,"coldBytes":0,"coldPercentageOfUsed":0.0,"coldPercentageOfTotal":0.0,"totalBytes":21136797696,"acceptingInboundBackup":true,"balancingData":true,"acceptingNewComputers":true,"writeSpeed":null,"online":true,"serverOnline":true,"archiveBytes":0,"selectedBytes":0,"todoBytes":0}}'
|
73
|
+
http_version:
|
74
|
+
recorded_at: Sat, 30 Aug 2014 17:29:14 GMT
|
75
|
+
recorded_with: VCR 2.5.0
|