code42 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/.rspec +1 -0
  3. data/code42.gemspec +3 -0
  4. data/lib/code42.rb +66 -27
  5. data/lib/code42/api/destination.rb +18 -0
  6. data/lib/code42/api/diagnostic.rb +9 -0
  7. data/lib/code42/api/org.rb +5 -2
  8. data/lib/code42/api/product_license.rb +21 -0
  9. data/lib/code42/api/server.rb +21 -0
  10. data/lib/code42/api/server_connection_string.rb +9 -0
  11. data/lib/code42/api/server_settings.rb +13 -0
  12. data/lib/code42/api/store_point.rb +22 -0
  13. data/lib/code42/api/token.rb +7 -0
  14. data/lib/code42/client.rb +23 -31
  15. data/lib/code42/computer.rb +0 -2
  16. data/lib/code42/connection.rb +14 -26
  17. data/lib/code42/destination.rb +52 -0
  18. data/lib/code42/product_license.rb +12 -0
  19. data/lib/code42/server.rb +54 -0
  20. data/lib/code42/server_connection_string.rb +10 -0
  21. data/lib/code42/server_settings.rb +4 -0
  22. data/lib/code42/settings.rb +1 -1
  23. data/lib/code42/store_point.rb +63 -0
  24. data/lib/code42/version.rb +1 -1
  25. data/spec/cassettes/Code42_Client/_add_product_license/adds_a_product_license.yml +39 -0
  26. data/spec/cassettes/Code42_Client/_apply_mlk/applies_the_mlk.yml +77 -0
  27. data/spec/cassettes/Code42_Client/_create_destination/creates_a_destination.yml +40 -0
  28. data/spec/cassettes/Code42_Client/_create_server/creates_a_server.yml +38 -0
  29. data/spec/cassettes/Code42_Client/_destination/returns_a_destination.yml +37 -0
  30. data/spec/cassettes/Code42_Client/_destinations/returns_an_array_of_desinations.yml +37 -0
  31. data/spec/cassettes/Code42_Client/_org_share_destinations/returns_a_provider_key.yml +36 -0
  32. data/spec/cassettes/Code42_Client/_product_licenses/returns_an_array_of_product_licenses.yml +81 -0
  33. data/spec/cassettes/Code42_Client/_remove_product_license/removes_a_product_license.yml +104 -0
  34. data/spec/cassettes/Code42_Client/_server/returns_a_server.yml +37 -0
  35. data/spec/cassettes/Code42_Client/_server_connection_string/returns_a_connection_string.yml +36 -0
  36. data/spec/cassettes/Code42_Client/_server_settings/returns_a_server_settings_object.yml +37 -0
  37. data/spec/cassettes/Code42_Client/_servers/returns_an_array_of_servers.yml +37 -0
  38. data/spec/cassettes/Code42_Client/_update_product_license/updates_a_product_license.yml +76 -0
  39. data/spec/cassettes/Code42_Client/_update_server_settings/updates_server_settings.yml +70 -0
  40. data/spec/cassettes/Code42_StorePoint/_accept_new_devices/should_return_store_point_with_accept_new_devices_enabled.yml +75 -0
  41. data/spec/cassettes/Code42_StorePoint/_disable_balancing/should_return_store_point_with_balancing_enabled.yml +75 -0
  42. data/spec/cassettes/Code42_StorePoint/_disable_inbound_backup/should_return_store_point_with_inbound_backup_disabled.yml +75 -0
  43. data/spec/cassettes/Code42_StorePoint/_enable_balancing/should_return_store_point_with_balancing_enabled.yml +75 -0
  44. data/spec/cassettes/Code42_StorePoint/_enable_inbound_backup/should_return_store_point_with_inbound_backup_disabled.yml +75 -0
  45. data/spec/cassettes/Code42_StorePoint/_find_store_point_by_id/should_return_correct_store_point.yml +38 -0
  46. data/spec/cassettes/Code42_StorePoint/_find_store_point_by_name/should_return_correct_store_point.yml +38 -0
  47. data/spec/cassettes/Code42_StorePoint/_find_store_point_by_server_name/should_return_correct_store_point.yml +38 -0
  48. data/spec/cassettes/Code42_StorePoint/_reject_new_devices/should_return_store_point_with_accept_new_devices_disabled.yml +75 -0
  49. data/spec/code42/client_spec.rb +161 -57
  50. data/spec/code42/connection_spec.rb +10 -12
  51. data/spec/code42/extension_spec.rb +0 -2
  52. data/spec/code42/org_spec.rb +20 -22
  53. data/spec/code42/ping_spec.rb +1 -3
  54. data/spec/code42/product_license_spec.rb +34 -0
  55. data/spec/code42/resource_spec.rb +0 -2
  56. data/spec/code42/role_spec.rb +2 -4
  57. data/spec/code42/server_connection_string_spec.rb +34 -0
  58. data/spec/code42/server_spec.rb +66 -0
  59. data/spec/code42/settings_spec.rb +25 -27
  60. data/spec/code42/store_point_spec.rb +90 -0
  61. data/spec/code42/token_spec.rb +10 -15
  62. data/spec/code42/user_spec.rb +4 -6
  63. data/spec/spec_helper.rb +1 -1
  64. metadata +74 -4
@@ -0,0 +1,37 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://10.10.46.137:4280/api/destinations
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.8
12
+ Authorization:
13
+ - Basic YWRtaW46YWRtaW4=
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: ''
18
+ headers:
19
+ Cache-Control:
20
+ - no-store
21
+ Pragma:
22
+ - no-cache
23
+ Content-Location:
24
+ - http://10.10.46.137:4280/api/v1/destinations
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Server:
30
+ - Jetty(7.6.3.v20120416)
31
+ body:
32
+ encoding: UTF-8
33
+ string: '{"metadata":{"timestamp":"2013-09-10T15:07:11.856-05:00","params":{}},"data":{"totalCount":1,"destinations":[{"destinationId":2,"computerId":2,"guid":"600782252019810561","destinationName":"CrashPlan
34
+ PROe Server","type":"CLUSTER","acceptingInboundBackup":"ALL","acceptingNewComputers":"ALL","serverOnlineStatus":"ALL","clusterServerId":1,"orgCount":0,"userCount":0,"computerCount":0,"onlineComputerCount":0,"usedBytes":3746668544,"archiveBytes":0,"backupSessionCount":0,"inboundBandwidth":0,"outboundBandwidth":0,"selectedBytes":0,"remainingBytes":0,"balancingData":"NONE","serverCount":1,"offlineServerCount":0,"storePointCount":1,"totalBytes":19674116096,"usedPercentage":19.0,"freeBytes":15927447552,"freePercentage":81.0,"coldBytes":0,"coldPercentageOfUsed":0.0,"coldPercentageOfTotal":0.0,"settings":{"balancerEnabled":true,"allowedDiskVariance":20,"localPriority":100,"remotePriority":100}}]}}'
35
+ http_version:
36
+ recorded_at: Tue, 10 Sep 2013 20:07:11 GMT
37
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,36 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://10.10.46.137:4280/api/orgShareDestinations/5
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.8
12
+ Authorization:
13
+ - Basic YWRtaW46YWRtaW4=
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: ''
18
+ headers:
19
+ Cache-Control:
20
+ - no-store
21
+ Pragma:
22
+ - no-cache
23
+ Content-Location:
24
+ - http://10.10.46.137:4280/api/v1/orgShareDestinations/5
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Server:
30
+ - Jetty(7.6.3.v20120416)
31
+ body:
32
+ encoding: UTF-8
33
+ string: '{"metadata":{"timestamp":"2013-09-11T11:23:20.115-05:00","params":{}},"data":"rO0ABXQCnSI2MDA3ODIyNTE5MDIzNzAwNDkifHwiNjAwNzgyMTgzNjg2MjA5NzkzInx8IkNyYXNoUGxhbiBQUk9lIFNlcnZlciJ8fCJ1cms4Mm1tMjRtdzc4amNjInx8IjEwLjEwLjQ2LjEzNzo0MjgyInx8Im51bGwifHwiMTAuMTAuNDYuMTM3OjQyODYifHwiMTAuMTAuNDYuMTM3OjQyODMifHwiaHR0cDovLzEwLjEwLjQ2LjEzNzo0MjgwInx8Ik1JSUJJakFOQmdrcWhraUc5dzBCQVFFRkFBT0NBUThBTUlJQkNnS0NBUUVBb2hoeXdmYUpTWDh2RzZmK2JvR3ZDeGJPUzJrdk8yRlRIQUdJUGJtb0kwUUphd2gxZ3ZPQVFUQk5WeHY2Y1k4R1hKckphelI4dUl0UGQ3ZFNHNFNTbFYyR2FsT09WVUJuRitpUGQ2T1E2cDBhaVgvR1JIcjNqaTU2ZVNNNW1yYlUvTmQybGVKMSttV1Z2UkhOQ2ErTXFWbWQ3K3dNYkJvZk5aeGRSbzhZRk1SSVVMVFJEZk1MRFJLbnZUWUgzRk5vMCt6STZkb1RUeHpueXdTWXlqN0hEbkRDbW4yZGs4WnJwbnNpRkZHU3NDRUxPWXUraDZEUVppTkhlVDdwNWMzYnhSSW1tU2VxOUtPRmxkSlhZYk9ZSXB4TVE0QUtnYXYyWk9RWlBKZkIxOTJNek8rK25TY1B4Z1R6SVR4Nmw1N0xIY3Fzc1RPaFV3Z29JSm9ncTJDZzl3SURBUUFCInx8IlBST1ZJREVSInx8Ijgya21yOGo5a3Bjdzk5cHMifHwiNjAwNzgyMjUyMDE5ODEwNTYxInx8IkNyYXNoUGxhbiBQUk9lIFNlcnZlciJ8fCJudWxsIg\u003d\u003d"}'
34
+ http_version:
35
+ recorded_at: Wed, 11 Sep 2013 18:08:40 GMT
36
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,81 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:7280/api/productLicense
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.8
12
+ Authorization:
13
+ - Basic YWRtaW46YWRtaW4=
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: ''
18
+ headers:
19
+ Cache-Control:
20
+ - no-store
21
+ Pragma:
22
+ - no-cache
23
+ Content-Location:
24
+ - http://localhost:7280/api/v1/productLicense
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Server:
30
+ - Jetty(7.6.3.v20120416)
31
+ body:
32
+ encoding: UTF-8
33
+ string: '{"metadata":{"timestamp":"2013-09-09T16:51:59.260-05:00","params":{}},"data":{"products":[{"productLicenseId":1,"name":"PROe
34
+ Client 1000-Pack","quantity":1000,"creationDate":"2011-10-28T00:00:00.000-05:00","expirationDate":"2011-10-28T00:00:00.000-05:00","productType":"B42_PRO_LICENSE","licenseKey":"pAMJj3qqYdk7GPjlzj/Qz2KVjPo5+ce9fE/3zdR24SV6ayS/nTm8OZyDXAKmdjqyk6vmmqb5jxDjM+IU2udIug\u003d\u003d"},{"productLicenseId":2,"name":"1YR
35
+ PROe Service 1000-pack","quantity":1000,"creationDate":"2011-10-28T00:00:00.000-05:00","expirationDate":"2012-10-27T00:00:00.000-05:00","productType":"B42_1YR_LICENSE","licenseKey":"KnL7NFI1CyLEwupMMEfxqIrTjoxcyzou0JQLMi0gE3U8vxghDSbJ1OXwfBrFHpcfaAjNTTH4Y7YdNDRhDQT5wA\u003d\u003d"},{"productLicenseId":3,"name":"1YR
36
+ PROe Service 1000-pack","quantity":1000,"creationDate":"2011-10-28T00:00:00.000-05:00","expirationDate":"2012-10-27T00:00:00.000-05:00","productType":"B42_1YR_LICENSE","licenseKey":"O8oq6zgOIZWfThxZzY5YoNxJ+LvSGcXSP2YaOkua3FkHlAtvqEw1kFTWoWFcKmC9XH8DzB+SQsMx/Sj3HGriRw\u003d\u003d"},{"productLicenseId":4,"name":"1YR
37
+ PROe Service 1000-pack","quantity":1000,"creationDate":"2011-10-28T00:00:00.000-05:00","expirationDate":"2012-10-27T00:00:00.000-05:00","productType":"B42_1YR_LICENSE","licenseKey":"C2ycPbvIQGzGbOcEq9flBg1LspsbeR1YRsoXsYUTvo6LOXi5dHCV3TcbvylwVefE6myHVP255+xnIIyUnoMdNg\u003d\u003d"},{"productLicenseId":5,"name":"1YR
38
+ PROe Service 1000-pack","quantity":1000,"creationDate":"2011-10-28T00:00:00.000-05:00","expirationDate":"2012-10-27T00:00:00.000-05:00","productType":"B42_1YR_LICENSE","licenseKey":"oOFqGbhos/jtlBEmIJrvH0Zu4BkzjEtnoR8+sNB4m9ob2MoyclvjxHgMqIh7I1CLEo+qLBokPZ5urQxn+HlKcQ\u003d\u003d"},{"productLicenseId":6,"name":"1YR
39
+ PROe Service 1000-pack","quantity":1000,"creationDate":"2011-10-28T00:00:00.000-05:00","expirationDate":"2012-10-27T00:00:00.000-05:00","productType":"B42_1YR_LICENSE","licenseKey":"JJ/9eOjHek8LSubMjx323pdlteexGZWcMc8GtQJcQ9yH7YvgD+TonmjDPebPC5TNOF7+8O1ZyPsWAirumLZZBQ\u003d\u003d"}]}}'
40
+ http_version:
41
+ recorded_at: Mon, 09 Sep 2013 21:51:59 GMT
42
+ - request:
43
+ method: get
44
+ uri: http://localhost:7280/api/productLicense
45
+ body:
46
+ encoding: US-ASCII
47
+ string: ''
48
+ headers:
49
+ User-Agent:
50
+ - Faraday v0.8.8
51
+ Authorization:
52
+ - Basic YWRtaW46YWRtaW4=
53
+ response:
54
+ status:
55
+ code: 200
56
+ message: ''
57
+ headers:
58
+ Cache-Control:
59
+ - no-store
60
+ Pragma:
61
+ - no-cache
62
+ Content-Location:
63
+ - http://localhost:7280/api/v1/productLicense
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":"2013-09-09T16:51:59.293-05:00","params":{}},"data":{"products":[{"productLicenseId":1,"name":"PROe
73
+ Client 1000-Pack","quantity":1000,"creationDate":"2011-10-28T00:00:00.000-05:00","expirationDate":"2011-10-28T00:00:00.000-05:00","productType":"B42_PRO_LICENSE","licenseKey":"pAMJj3qqYdk7GPjlzj/Qz2KVjPo5+ce9fE/3zdR24SV6ayS/nTm8OZyDXAKmdjqyk6vmmqb5jxDjM+IU2udIug\u003d\u003d"},{"productLicenseId":2,"name":"1YR
74
+ PROe Service 1000-pack","quantity":1000,"creationDate":"2011-10-28T00:00:00.000-05:00","expirationDate":"2012-10-27T00:00:00.000-05:00","productType":"B42_1YR_LICENSE","licenseKey":"KnL7NFI1CyLEwupMMEfxqIrTjoxcyzou0JQLMi0gE3U8vxghDSbJ1OXwfBrFHpcfaAjNTTH4Y7YdNDRhDQT5wA\u003d\u003d"},{"productLicenseId":3,"name":"1YR
75
+ PROe Service 1000-pack","quantity":1000,"creationDate":"2011-10-28T00:00:00.000-05:00","expirationDate":"2012-10-27T00:00:00.000-05:00","productType":"B42_1YR_LICENSE","licenseKey":"O8oq6zgOIZWfThxZzY5YoNxJ+LvSGcXSP2YaOkua3FkHlAtvqEw1kFTWoWFcKmC9XH8DzB+SQsMx/Sj3HGriRw\u003d\u003d"},{"productLicenseId":4,"name":"1YR
76
+ PROe Service 1000-pack","quantity":1000,"creationDate":"2011-10-28T00:00:00.000-05:00","expirationDate":"2012-10-27T00:00:00.000-05:00","productType":"B42_1YR_LICENSE","licenseKey":"C2ycPbvIQGzGbOcEq9flBg1LspsbeR1YRsoXsYUTvo6LOXi5dHCV3TcbvylwVefE6myHVP255+xnIIyUnoMdNg\u003d\u003d"},{"productLicenseId":5,"name":"1YR
77
+ PROe Service 1000-pack","quantity":1000,"creationDate":"2011-10-28T00:00:00.000-05:00","expirationDate":"2012-10-27T00:00:00.000-05:00","productType":"B42_1YR_LICENSE","licenseKey":"oOFqGbhos/jtlBEmIJrvH0Zu4BkzjEtnoR8+sNB4m9ob2MoyclvjxHgMqIh7I1CLEo+qLBokPZ5urQxn+HlKcQ\u003d\u003d"},{"productLicenseId":6,"name":"1YR
78
+ PROe Service 1000-pack","quantity":1000,"creationDate":"2011-10-28T00:00:00.000-05:00","expirationDate":"2012-10-27T00:00:00.000-05:00","productType":"B42_1YR_LICENSE","licenseKey":"JJ/9eOjHek8LSubMjx323pdlteexGZWcMc8GtQJcQ9yH7YvgD+TonmjDPebPC5TNOF7+8O1ZyPsWAirumLZZBQ\u003d\u003d"}]}}'
79
+ http_version:
80
+ recorded_at: Mon, 09 Sep 2013 21:51:59 GMT
81
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,104 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://10.10.46.137:4280/api/productLicense
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.8
12
+ Authorization:
13
+ - Basic YWRtaW46YWRtaW4=
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: ''
18
+ headers:
19
+ Cache-Control:
20
+ - no-store
21
+ Pragma:
22
+ - no-cache
23
+ Content-Location:
24
+ - http://10.10.46.137:4280/api/v1/productLicense
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Server:
30
+ - Jetty(7.6.3.v20120416)
31
+ body:
32
+ encoding: UTF-8
33
+ string: '{"metadata":{"timestamp":"2013-09-10T13:22:50.510-05:00","params":{}},"data":{"products":[{"productLicenseId":3,"name":"PROe
34
+ Server Unlimited-Pack","quantity":2147483647,"creationDate":"2013-01-16T00:00:00.000-06:00","expirationDate":"2013-01-16T00:00:00.000-06:00","productType":"B42_PRO_LICENSE","licenseKey":"ZP5Pbz8wx1dBHKjhkkQjGDZ+tTtkvuD5e5d2TC9/uHoODR9NvyaHfbypRUHR15hbeHdf7ExfnVpmwPiIcgYxCQ\u003d\u003d"}]}}'
35
+ http_version:
36
+ recorded_at: Tue, 10 Sep 2013 18:22:47 GMT
37
+ - request:
38
+ method: delete
39
+ uri: http://10.10.46.137:4280/api/productLicense/3
40
+ body:
41
+ encoding: US-ASCII
42
+ string: ''
43
+ headers:
44
+ User-Agent:
45
+ - Faraday v0.8.8
46
+ Authorization:
47
+ - Basic YWRtaW46YWRtaW4=
48
+ response:
49
+ status:
50
+ code: 200
51
+ message: ''
52
+ headers:
53
+ Cache-Control:
54
+ - no-store
55
+ Pragma:
56
+ - no-cache
57
+ Content-Location:
58
+ - http://10.10.46.137:4280/api/v1/productLicense/3
59
+ Content-Type:
60
+ - application/json; charset=utf-8
61
+ Transfer-Encoding:
62
+ - chunked
63
+ Server:
64
+ - Jetty(7.6.3.v20120416)
65
+ body:
66
+ encoding: UTF-8
67
+ string: '{"metadata":{"timestamp":"2013-09-10T13:23:34.777-05:00","params":{}},"data":"Product
68
+ license removed"}'
69
+ http_version:
70
+ recorded_at: Tue, 10 Sep 2013 18:23:32 GMT
71
+ - request:
72
+ method: get
73
+ uri: http://10.10.46.137:4280/api/productLicense
74
+ body:
75
+ encoding: US-ASCII
76
+ string: ''
77
+ headers:
78
+ User-Agent:
79
+ - Faraday v0.8.8
80
+ Authorization:
81
+ - Basic YWRtaW46YWRtaW4=
82
+ response:
83
+ status:
84
+ code: 200
85
+ message: ''
86
+ headers:
87
+ Cache-Control:
88
+ - no-store
89
+ Pragma:
90
+ - no-cache
91
+ Content-Location:
92
+ - http://10.10.46.137:4280/api/v1/productLicense
93
+ Content-Type:
94
+ - application/json; charset=utf-8
95
+ Transfer-Encoding:
96
+ - chunked
97
+ Server:
98
+ - Jetty(7.6.3.v20120416)
99
+ body:
100
+ encoding: UTF-8
101
+ string: '{"metadata":{"timestamp":"2013-09-10T13:23:34.805-05:00","params":{}},"data":{"products":[]}}'
102
+ http_version:
103
+ recorded_at: Tue, 10 Sep 2013 18:23:32 GMT
104
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,37 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://10.10.47.82:4280/api/server/3
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.8
12
+ Authorization:
13
+ - Basic YWRtaW46YWRtaW4=
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: ''
18
+ headers:
19
+ Cache-Control:
20
+ - no-store
21
+ Pragma:
22
+ - no-cache
23
+ Content-Location:
24
+ - http://10.10.47.82:4280/api/v1/server/3
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Server:
30
+ - Jetty(7.6.3.v20120416)
31
+ body:
32
+ encoding: UTF-8
33
+ string: '{"metadata":{"timestamp":"2013-09-11T13:12:18.952-05:00","params":{}},"data":{"serverId":3,"guid":"600624193549107457","serverName":"more-03","type":"SERVER","version":"3.6.1.3","online":true,"outOfDate":false,"acceptingInboundBackup":"ALL","balancingData":"NONE","acceptingNewComputers":"ALL","dbEmpty":true,"clusterServerId":1,"destinationId":2,"destinationName":"CrashPlan
34
+ PROe Server","providerDestinationName":null,"primaryAddress":"10.10.47.82:4282","secondaryAddress":null,"websiteHost":"http://10.10.47.82:4280","storePointCount":1,"totalBytes":19674116096,"usedBytes":3819704320,"usedPercentage":19.0,"freeBytes":15854411776,"freePercentage":81.0,"coldBytes":0,"coldPercentageOfUsed":0.0,"coldPercentageOfTotal":0.0,"archiveBytes":0,"selectedBytes":0,"remainingBytes":0,"inboundBandwidth":0,"outboundBandwidth":0,"orgCount":0,"userCount":0,"licensedUserCount":0,"computerCount":0,"backupComputerCount":0,"onlineComputerCount":0,"backupSessionCount":0}}'
35
+ http_version:
36
+ recorded_at: Wed, 11 Sep 2013 18:31:08 GMT
37
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,36 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://10.10.47.82:4280/api/serverConnectionString/3
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.8
12
+ Authorization:
13
+ - Basic YWRtaW46YWRtaW4=
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: ''
18
+ headers:
19
+ Cache-Control:
20
+ - no-store
21
+ Pragma:
22
+ - no-cache
23
+ Content-Location:
24
+ - http://10.10.47.82:4280/api/v1/serverConnectionString/3
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Server:
30
+ - Jetty(7.6.3.v20120416)
31
+ body:
32
+ encoding: UTF-8
33
+ string: '{"metadata":{"timestamp":"2013-09-11T13:06:42.931-05:00","params":{}},"data":{"serverId":3,"connectionString":"rO0ABXQCmCI2MDA2MjQyODUyMDMwMzg0NjUifHwiNjAwNjI0MTkzNTQ5MTA3NDU3Inx8Im1vcmUtMDMifHwibWh3aGNza3I4bThocHcycyJ8fCIxMC4xMC40Ny44Mjo0MjgyInx8Im51bGwifHwiMTAuMTAuNDcuODI6NDI4NiJ8fCIxMC4xMC40Ny44Mjo0MjgzInx8Imh0dHA6Ly8xMC4xMC40Ny44Mjo0MjgwInx8Ik1JSUJJakFOQmdrcWhraUc5dzBCQVFFRkFBT0NBUThBTUlJQkNnS0NBUUVBb3NDYU1UYkE5SkpoZlduZVh5RHdsN1NKKzZxYi83UFd0WFpUNG1KNnZkZmJxK2tQQUJVSWYzazNoRXUwSG5OcVJCdzNaeDBCZlpNejBsZE1mcUhvYVhTMUpva2RseFZSZmVydERUaXNJVkZteEptdUljZElOU3RaNUZnWHgweWV1aTJYZ1BHWkJsWmhYVkdqdFV3Wm1KbHlXdkhRc2pmYnJmTlBEcGtad0cwQnJUWUQ4cVRHd3RMc244R2tSOStvWUpNYTdmVGZ2T1VOMHhkVmtYZ1VTWjNLdUEvYmdsZXNFVUJoeWk5VVE4bGc2cEIvWnk2MmpXaVMzRjhzR1dSMThsdEkwNmcyWjBzSXJzd2hOb0VBbTRKSnQyR21iTFRJZUx6akpmTzRHbjFjdG8zdUpjQzdCOEhCTGJTeDhFWHZMa0NuazRIbExDYTdjblhZZTFXUER3SURBUUFCInx8IlNUT1JBR0VfTk9ERSJ8fCJEZWZhdWx0Inx8Ii92YXIvb3B0L3Byb3NlcnZlci9iYWNrdXBBcmNoaXZlcyJ8fCJDcmFzaFBsYW5BcmNoaXZlX0RlZmF1bHQifHwibnVsbCI\u003d"}}'
34
+ http_version:
35
+ recorded_at: Wed, 11 Sep 2013 18:25:32 GMT
36
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,37 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://10.10.46.137:4280/api/serverSettings/1
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.8
12
+ Authorization:
13
+ - Basic YWRtaW46YWRtaW4=
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: ''
18
+ headers:
19
+ Cache-Control:
20
+ - no-store
21
+ Pragma:
22
+ - no-cache
23
+ Content-Location:
24
+ - http://10.10.46.137:4280/api/v1/serverSettings/1
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Server:
30
+ - Jetty(7.6.3.v20120416)
31
+ body:
32
+ encoding: UTF-8
33
+ string: '{"metadata":{"timestamp":"2013-09-10T13:49:22.277-05:00","params":{}},"data":{"serverId":1,"name":"CrashPlan
34
+ PROe 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}}}'
35
+ http_version:
36
+ recorded_at: Tue, 10 Sep 2013 18:49:19 GMT
37
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,37 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://10.10.47.201:4280/api/server
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.8
12
+ Authorization:
13
+ - Basic YWRtaW46YWRtaW4=
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: ''
18
+ headers:
19
+ Cache-Control:
20
+ - no-store
21
+ Pragma:
22
+ - no-cache
23
+ Content-Location:
24
+ - http://10.10.47.201:4280/api/v1/server
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Server:
30
+ - Jetty(7.6.3.v20120416)
31
+ body:
32
+ encoding: UTF-8
33
+ string: '{"metadata":{"timestamp":"2013-09-11T10:46:19.028-05:00","params":{}},"data":{"totalCount":1,"servers":[{"serverId":3,"guid":"600624121205752065","serverName":"more-01","type":"SERVER","version":"3.6.1.3","online":true,"outOfDate":false,"acceptingInboundBackup":"ALL","balancingData":"NONE","acceptingNewComputers":"ALL","dbEmpty":false,"clusterServerId":1,"destinationId":2,"destinationName":"CrashPlan
34
+ PROe Server","providerDestinationName":null,"primaryAddress":"10.10.47.201:4282","secondaryAddress":null,"websiteHost":"http://10.10.47.201:4280","storePointCount":1,"totalBytes":19674116096,"usedBytes":3905138688,"usedPercentage":20.0,"freeBytes":15768977408,"freePercentage":80.0,"coldBytes":0,"coldPercentageOfUsed":0.0,"coldPercentageOfTotal":0.0,"archiveBytes":0,"selectedBytes":0,"remainingBytes":0,"inboundBandwidth":0,"outboundBandwidth":0,"orgCount":0,"userCount":0,"licensedUserCount":0,"computerCount":0,"backupComputerCount":0,"onlineComputerCount":0,"backupSessionCount":0}]}}'
35
+ http_version:
36
+ recorded_at: Wed, 11 Sep 2013 15:46:14 GMT
37
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,76 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://stgw.crashplan.com:4285/api/productLicense
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"productLicense":"ZP5Pbz8wx1dBHKjhkkQjGDZ+tTtkvuD5e5d2TC9/uHoODR9NvyaHfbypRUHR15hbeHdf7ExfnVpmwPiIcgYxCQ=="}'
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: 500
19
+ message: ''
20
+ headers:
21
+ X-Ua-Compatible:
22
+ - IE=Edge
23
+ Pragma:
24
+ - no-cache
25
+ Content-Location:
26
+ - https://stgw.crashplan.com:4285/api/v1/productLicense
27
+ Content-Type:
28
+ - text/html;charset=ISO-8859-1
29
+ Cache-Control:
30
+ - must-revalidate,no-cache,no-store
31
+ Content-Length:
32
+ - '106'
33
+ Server:
34
+ - Jetty(7.6.3.v20120416)
35
+ body:
36
+ encoding: UTF-8
37
+ string: '[{"name":"SYSTEM","description":"com.code42.core.CommandException","objects":["ProductLicenseKeyAddCmd"]}]'
38
+ http_version:
39
+ recorded_at: Tue, 10 Sep 2013 17:50:12 GMT
40
+ - request:
41
+ method: put
42
+ uri: http://10.10.46.137:4280/api/productLicense
43
+ body:
44
+ encoding: UTF-8
45
+ string: '{"productLicense":"ZP5Pbz8wx1dBHKjhkkQjGDZ+tTtkvuD5e5d2TC9/uHoODR9NvyaHfbypRUHR15hbeHdf7ExfnVpmwPiIcgYxCQ=="}'
46
+ headers:
47
+ User-Agent:
48
+ - Faraday v0.8.8
49
+ Authorization:
50
+ - Basic YWRtaW46YWRtaW4=
51
+ Content-Type:
52
+ - application/json
53
+ response:
54
+ status:
55
+ code: 200
56
+ message: ''
57
+ headers:
58
+ Cache-Control:
59
+ - no-store
60
+ Pragma:
61
+ - no-cache
62
+ Content-Location:
63
+ - http://10.10.46.137:4280/api/v1/productLicense
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":"2013-09-10T12:53:54.604-05:00","params":{}},"data":{"products":[{"productLicenseId":1,"name":"PROe
73
+ Server Unlimited-Pack","quantity":2147483647,"creationDate":"2013-01-16T00:00:00.000-06:00","expirationDate":"2013-01-16T00:00:00.000-06:00","productType":"B42_PRO_LICENSE","licenseKey":"ZP5Pbz8wx1dBHKjhkkQjGDZ+tTtkvuD5e5d2TC9/uHoODR9NvyaHfbypRUHR15hbeHdf7ExfnVpmwPiIcgYxCQ\u003d\u003d"}]}}'
74
+ http_version:
75
+ recorded_at: Tue, 10 Sep 2013 17:53:51 GMT
76
+ recorded_with: VCR 2.5.0