ms_rest_azure 0.11.0 → 0.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/lib/ms_rest_azure.rb +1 -0
- data/lib/ms_rest_azure/azure_operation_response.rb +6 -0
- data/lib/ms_rest_azure/cloud_error_data.rb +15 -0
- data/lib/ms_rest_azure/typed_error_info.rb +33 -0
- data/lib/ms_rest_azure/version.rb +1 -1
- metadata +21 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 940195f4f289af37bd4eb5197f744c5a16a8952b
|
4
|
+
data.tar.gz: cdbd0bb5b90cc4e707d674cf88fd2968b342b68e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05c9ce3e57ebf64212e416c882b92634ad2e85adb2995c92fb230559663d843f53e81bf989bdd4e6dc302f86adb63634ae54f2e1209bca05d96267d8fb013524
|
7
|
+
data.tar.gz: e53e091eac5c26ee1b864d82e6720e862a6d2a285ef65472b59f0d2717bbfd83b67fe5738d3526871c47739baa8a1385d64b4bcd22ca0895baa8d2e6f80b1a27
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
##2019.05.14 ms_rest_azure version 0.11.1
|
2
|
+
* Set unf_ext dependency version to 0.0.7.2. This change has been done to accommodate the changes made to unf_ext. Refer [Issue #604](https://github.com/meew0/discordrb/issues/604) for further details.
|
3
|
+
* Added correlation_request_id & client_request_id to AzureOperationResponse.
|
4
|
+
|
1
5
|
##2018.07.31 ms_rest_azure version 0.11.0
|
2
6
|
* Added USER_DEFINED_IMDS_MAX_RETRY_TIME to msi_token_provider. Refer [PR #1539](https://github.com/Azure/azure-sdk-for-ruby/pull/1539) and [Issue #1344](https://github.com/Azure/azure-sdk-for-ruby/issues/1344) for further details.
|
3
7
|
* Modified Long Running Operation Logic to make final calls based on Final State Via value. Refer [PR #1537](https://github.com/Azure/azure-sdk-for-ruby/pull/1537) for further details.
|
data/README.md
CHANGED
@@ -37,7 +37,7 @@ To start working on the gem the only additional dev dependecy is required - rspe
|
|
37
37
|
Reference it in the gemfile and also add this line to your client's gemspec file:
|
38
38
|
|
39
39
|
```ruby
|
40
|
-
spec.add_runtime_dependency 'ms_rest_azure', '~> 0.
|
40
|
+
spec.add_runtime_dependency 'ms_rest_azure', '~> 0.11.0'
|
41
41
|
```
|
42
42
|
Don't forget to correct the version.
|
43
43
|
|
data/lib/ms_rest_azure.rb
CHANGED
@@ -17,6 +17,7 @@ require 'ms_rest_azure/credentials/topic_credentials.rb'
|
|
17
17
|
require 'ms_rest_azure/credentials/msi_token_provider.rb'
|
18
18
|
require 'ms_rest_azure/polling_state.rb'
|
19
19
|
require 'ms_rest_azure/serialization.rb'
|
20
|
+
require 'ms_rest_azure/typed_error_info.rb'
|
20
21
|
require 'ms_rest_azure/version'
|
21
22
|
require 'ms_rest_azure/common/configurable'
|
22
23
|
require 'ms_rest_azure/common/default'
|
@@ -10,5 +10,11 @@ module MsRestAzure
|
|
10
10
|
|
11
11
|
# @return [String] identificator of the request.
|
12
12
|
attr_accessor :request_id
|
13
|
+
|
14
|
+
# @return [String] Correlation Id of the request.
|
15
|
+
attr_accessor :correlation_request_id
|
16
|
+
|
17
|
+
# @return [String] Client Request Id of the request.
|
18
|
+
attr_accessor :client_request_id
|
13
19
|
end
|
14
20
|
end
|
@@ -14,6 +14,12 @@ module MsRestAzure
|
|
14
14
|
# @return [String] the error message parsed from the body of the http error response.
|
15
15
|
attr_accessor :message
|
16
16
|
|
17
|
+
# @return [String] the error target parsed from the body of the http error response.
|
18
|
+
attr_accessor :target
|
19
|
+
|
20
|
+
# @return [Array<TypedErrorInfo>] the list of additional error info parsed from the body of the http error response.
|
21
|
+
attr_accessor :additionalInfo
|
22
|
+
|
17
23
|
#
|
18
24
|
# Deserializes given hash into CloudErrorData object.
|
19
25
|
# @param object [Hash] object to deserialize.
|
@@ -27,6 +33,15 @@ module MsRestAzure
|
|
27
33
|
|
28
34
|
output_object.message = object['message']
|
29
35
|
|
36
|
+
output_object.target = object['target']
|
37
|
+
|
38
|
+
unless object['additionalInfo'].nil?
|
39
|
+
output_object.additionalInfo = []
|
40
|
+
object['additionalInfo'].each do |info|
|
41
|
+
output_object.additionalInfo << MsRestAzure::TypedErrorInfo.deserialize_object(info)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
30
45
|
output_object
|
31
46
|
end
|
32
47
|
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
|
+
|
5
|
+
module MsRestAzure
|
6
|
+
#
|
7
|
+
# Class which represents the error type and information.
|
8
|
+
#
|
9
|
+
class TypedErrorInfo
|
10
|
+
|
11
|
+
# @return [String] the error type parsed from the body of the http error response.
|
12
|
+
attr_accessor :type
|
13
|
+
|
14
|
+
# @return [Object] the error info parsed from the body of the http error response.
|
15
|
+
attr_accessor :info
|
16
|
+
|
17
|
+
#
|
18
|
+
# Deserializes given hash into TypedErrorInfo object.
|
19
|
+
# @param object [Hash] object to deserialize.
|
20
|
+
#
|
21
|
+
# @return [TypedErrorInfo] deserialized object.
|
22
|
+
def self.deserialize_object(object)
|
23
|
+
return if object.nil?
|
24
|
+
output_object = TypedErrorInfo.new
|
25
|
+
|
26
|
+
output_object.type = object['type']
|
27
|
+
|
28
|
+
output_object.info = object['info']
|
29
|
+
|
30
|
+
output_object
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
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.11.
|
4
|
+
version: 0.11.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:
|
11
|
+
date: 2019-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '1.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: unf_ext
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.0.7.2
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.0.7.2
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: faraday
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,14 +114,14 @@ dependencies:
|
|
100
114
|
requirements:
|
101
115
|
- - "~>"
|
102
116
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0.7.
|
117
|
+
version: 0.7.4
|
104
118
|
type: :runtime
|
105
119
|
prerelease: false
|
106
120
|
version_requirements: !ruby/object:Gem::Requirement
|
107
121
|
requirements:
|
108
122
|
- - "~>"
|
109
123
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.7.
|
124
|
+
version: 0.7.4
|
111
125
|
description: Azure Client Library for Ruby.
|
112
126
|
email: azsdkteam@microsoft.com
|
113
127
|
executables: []
|
@@ -134,6 +148,7 @@ files:
|
|
134
148
|
- lib/ms_rest_azure/final_state_via.rb
|
135
149
|
- lib/ms_rest_azure/polling_state.rb
|
136
150
|
- lib/ms_rest_azure/serialization.rb
|
151
|
+
- lib/ms_rest_azure/typed_error_info.rb
|
137
152
|
- lib/ms_rest_azure/version.rb
|
138
153
|
homepage: https://aka.ms/ms_rest_azure
|
139
154
|
licenses:
|
@@ -143,7 +158,7 @@ metadata:
|
|
143
158
|
changelog_uri: https://github.com/Azure/azure-sdk-for-ruby/blob/master/runtime/ms_rest_azure/CHANGELOG.md
|
144
159
|
documentation_uri: https://azure.microsoft.com/en-us/develop/ruby/
|
145
160
|
homepage_uri: https://aka.ms/azure-sdk-for-ruby
|
146
|
-
source_code_uri: https://github.com/Azure/azure-sdk-for-ruby/tree/ms_rest_azure-v0.11.
|
161
|
+
source_code_uri: https://github.com/Azure/azure-sdk-for-ruby/tree/ms_rest_azure-v0.11.1
|
147
162
|
post_install_message:
|
148
163
|
rdoc_options: []
|
149
164
|
require_paths:
|
@@ -160,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
160
175
|
version: '0'
|
161
176
|
requirements: []
|
162
177
|
rubyforge_project:
|
163
|
-
rubygems_version: 2.
|
178
|
+
rubygems_version: 2.4.6
|
164
179
|
signing_key:
|
165
180
|
specification_version: 4
|
166
181
|
summary: Azure Client Library for Ruby.
|