ms_rest_azure 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ms_rest_azure/async_operation_status.rb +7 -6
- data/lib/ms_rest_azure/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: d73f7fa9494816693d70e34fb9794f4a11780337
|
4
|
+
data.tar.gz: ddb3ee88a054d14eb7cade5cc1889e6641823874
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c96f2ed453616d3e1a1c08baa3be17aa2044d77201a846150a8e0cb975f4e224476e1fea344dc9ab0d67a1f37aabb72c4b7f15fba9d5d1140d3d35c8481377c4
|
7
|
+
data.tar.gz: db14a8788b94a1ea0d82dbb4e70b1a0e55f1dea33106af6c8d640d70076c4407361da8c574cb291d99e8568d58a1d7776aa9142b6930738c3f4356d3ddc329f8
|
@@ -7,12 +7,13 @@ module MsRestAzure
|
|
7
7
|
# Defines values for AsyncOperationStatus enum.
|
8
8
|
#
|
9
9
|
class AsyncOperationStatus
|
10
|
-
IN_PROGRESS_STATUS =
|
11
|
-
|
12
|
-
|
13
|
-
|
10
|
+
IN_PROGRESS_STATUS = 'InProgress'
|
11
|
+
RUNNING = 'Running'
|
12
|
+
SUCCESS_STATUS = 'Succeeded'
|
13
|
+
FAILED_STATUS = 'Failed'
|
14
|
+
CANCELED_STATUS = 'Canceled'
|
14
15
|
|
15
|
-
ALL_STATUSES = [FAILED_STATUS, CANCELED_STATUS, SUCCESS_STATUS, IN_PROGRESS_STATUS]
|
16
|
+
ALL_STATUSES = [FAILED_STATUS, CANCELED_STATUS, SUCCESS_STATUS, IN_PROGRESS_STATUS, RUNNING]
|
16
17
|
FAILED_STATUSES = [FAILED_STATUS, CANCELED_STATUS]
|
17
18
|
TERMINAL_STATUSES = [FAILED_STATUS, CANCELED_STATUS, SUCCESS_STATUS]
|
18
19
|
|
@@ -63,7 +64,7 @@ module MsRestAzure
|
|
63
64
|
return if object.nil?
|
64
65
|
output_object = AsyncOperationStatus.new
|
65
66
|
|
66
|
-
fail AzureOperationError,
|
67
|
+
fail AzureOperationError, "Invalid status was recieved during polling: #{object['status']}" unless ALL_STATUSES.include?(object['status'])
|
67
68
|
output_object.status = object['status']
|
68
69
|
|
69
70
|
output_object.error = CloudErrorData.deserialize_object(object['error'])
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ms_rest_azure
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Microsoft Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|