ms_rest_azure 0.7.0 → 0.8.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a45accae7a928ebf7126c3b232494f0a0cabe231
|
4
|
+
data.tar.gz: c61a480e0f86ffec9d517e8717b7b4e7e09adeb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ecdcfa08c7b00a5a508282e1b9bbe575da0d6dff6766e72d4ed66df5203f11e8e5e92fc70f336267392fd1d1bcfdb249ff326e59dbe524bd9b8b55a695f0cfcb
|
7
|
+
data.tar.gz: 0cb282ce80473c7bfcae156c2f0bb779bf0d577551332f087780602a07e85cc9d148a87787102b21501c175267230738230ae9393391bfc3e5e5e7887742ab35
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
##2017.06.30 ms_rest_azure version 0.8.0
|
2
|
+
* [Breaking Change] Changed the name of the azure environments from 'Azure' to 'AzureCloud' and 'AzureChina' to 'AzureChinaCloud'.[Issue #600](https://github.com/Azure/azure-sdk-for-ruby/issues/600) [PR #711](https://github.com/Azure/azure-sdk-for-ruby/pull/711)
|
3
|
+
* Added 'Accept' header with the value 'application/json'.[Issue #701](https://github.com/Azure/azure-sdk-for-ruby/issues/701) [PR #710](https://github.com/Azure/azure-sdk-for-ruby/pull/710)
|
4
|
+
|
1
5
|
##2017.02.06 ms_rest_azure version 0.7.0
|
2
6
|
* [Breaking Change] Correcting typo in `storage_endpoint_suffix` key for azure environments [Issue #603](https://github.com/Azure/azure-sdk-for-ruby/issues/603) [PR #604](https://github.com/Azure/azure-sdk-for-ruby/pull/604)
|
3
7
|
* [Breaking Change] Handling custom deserialization block in `MsRestAzure::AzureServiceClient.update_state_from_azure_async_operation_header` [PR #656](https://github.com/Azure/azure-sdk-for-ruby/pull/656)
|
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.8.0'
|
41
41
|
```
|
42
42
|
Don't forget to correct the version.
|
43
43
|
|
@@ -15,19 +15,19 @@ module MsRestAzure
|
|
15
15
|
attr_accessor :token_audience
|
16
16
|
|
17
17
|
#
|
18
|
-
# Returns a set of properties required to login into regular Azure.
|
18
|
+
# Returns a set of properties required to login into regular Azure cloud.
|
19
19
|
#
|
20
20
|
# @return [ActiveDirectoryServiceSettings] settings required for authentication.
|
21
21
|
def self.get_azure_settings
|
22
|
-
get_settings(MsRestAzure::AzureEnvironments::
|
22
|
+
get_settings(MsRestAzure::AzureEnvironments::AzureCloud)
|
23
23
|
end
|
24
24
|
|
25
25
|
#
|
26
|
-
# Returns a set of properties required to login into Azure China.
|
26
|
+
# Returns a set of properties required to login into Azure China cloud.
|
27
27
|
#
|
28
28
|
# @return [ActiveDirectoryServiceSettings] settings required for authentication.
|
29
29
|
def self.get_azure_china_settings
|
30
|
-
get_settings(MsRestAzure::AzureEnvironments::
|
30
|
+
get_settings(MsRestAzure::AzureEnvironments::AzureChinaCloud)
|
31
31
|
end
|
32
32
|
|
33
33
|
#
|
@@ -84,8 +84,8 @@ module MsRestAzure
|
|
84
84
|
end
|
85
85
|
end
|
86
86
|
|
87
|
-
|
88
|
-
:name => '
|
87
|
+
AzureCloud = AzureEnvironments::AzureEnvironment.new({
|
88
|
+
:name => 'AzureCloud',
|
89
89
|
:portal_url => 'http://go.microsoft.com/fwlink/?LinkId=254433',
|
90
90
|
:publishing_profile_url => 'http://go.microsoft.com/fwlink/?LinkId=254432',
|
91
91
|
:management_endpoint_url => 'https://management.core.windows.net',
|
@@ -102,62 +102,62 @@ module MsRestAzure
|
|
102
102
|
:datalake_store_filesystem_endpoint_suffix => 'azuredatalakestore.net',
|
103
103
|
:datalake_analytics_catalog_and_job_endpoint_suffix => 'azuredatalakeanalytics.net'
|
104
104
|
})
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
105
|
+
AzureChinaCloud = AzureEnvironments::AzureEnvironment.new({
|
106
|
+
:name => 'AzureChinaCloud',
|
107
|
+
:portal_url => 'http://go.microsoft.com/fwlink/?LinkId=301902',
|
108
|
+
:publishing_profile_url => 'http://go.microsoft.com/fwlink/?LinkID=301774',
|
109
|
+
:management_endpoint_url => 'https://management.core.chinacloudapi.cn',
|
110
|
+
:resource_manager_endpoint_url => 'https://management.chinacloudapi.cn',
|
111
|
+
:sql_management_endpoint_url => 'https://management.core.chinacloudapi.cn:8443/',
|
112
|
+
:sql_server_hostname_suffix => '.database.chinacloudapi.cn',
|
113
|
+
:gallery_endpoint_url => 'https://gallery.chinacloudapi.cn/',
|
114
|
+
:active_directory_endpoint_url => 'https://login.chinacloudapi.cn/',
|
115
|
+
:active_directory_resource_id => 'https://management.core.chinacloudapi.cn/',
|
116
|
+
:active_directory_graph_resource_id => 'https://graph.chinacloudapi.cn/',
|
117
|
+
:active_directory_graph_api_version => '2013-04-05',
|
118
|
+
:storage_endpoint_suffix => '.core.chinacloudapi.cn',
|
119
|
+
:key_vault_dns_suffix => '.vault.azure.cn',
|
120
|
+
# TODO: add dns suffixes for the china cloud for datalake store and datalake analytics once they are defined.
|
121
|
+
:datalake_store_filesystem_endpoint_suffix => 'N/A',
|
122
|
+
:datalake_analytics_catalog_and_job_endpoint_suffix => 'N/A'
|
123
|
+
})
|
124
124
|
AzureUSGovernment = AzureEnvironments::AzureEnvironment.new({
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
125
|
+
:name => 'AzureUSGovernment',
|
126
|
+
:portal_url => 'https://manage.windowsazure.us',
|
127
|
+
:publishing_profile_url => 'https://manage.windowsazure.us/publishsettings/index',
|
128
|
+
:management_endpoint_url => 'https://management.core.usgovcloudapi.net',
|
129
|
+
:resource_manager_endpoint_url => 'https://management.usgovcloudapi.net',
|
130
|
+
:sql_management_endpoint_url => 'https://management.core.usgovcloudapi.net:8443/',
|
131
|
+
:sql_server_hostname_suffix => '.database.usgovcloudapi.net',
|
132
|
+
:gallery_endpoint_url => 'https://gallery.usgovcloudapi.net/',
|
133
|
+
:active_directory_endpoint_url => 'https://login.microsoftonline.com/',
|
134
|
+
:active_directory_resource_id => 'https://management.core.usgovcloudapi.net/',
|
135
|
+
:active_directory_graph_resource_id => 'https://graph.windows.net/',
|
136
|
+
:active_directory_graph_api_version => '2013-04-05',
|
137
|
+
:storage_endpoint_suffix => '.core.usgovcloudapi.net',
|
138
|
+
:key_vault_dns_suffix => '.vault.usgovcloudapi.net',
|
139
|
+
# TODO: add dns suffixes for the US government for datalake store and datalake analytics once they are defined.
|
140
|
+
:datalake_store_filesystem_endpoint_suffix => 'N/A',
|
141
|
+
:datalake_analytics_catalog_and_job_endpoint_suffix => 'N/A'
|
142
|
+
})
|
143
143
|
AzureGermanCloud = AzureEnvironments::AzureEnvironment.new({
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
144
|
+
:name => 'AzureGermanCloud',
|
145
|
+
:portal_url => 'http://portal.microsoftazure.de/',
|
146
|
+
:publishing_profile_url => 'https://manage.microsoftazure.de/publishsettings/index',
|
147
|
+
:management_endpoint_url => 'https://management.core.cloudapi.de',
|
148
|
+
:resource_manager_endpoint_url => 'https://management.microsoftazure.de',
|
149
|
+
:sql_management_endpoint_url => 'https://management.core.cloudapi.de:8443/',
|
150
|
+
:sql_server_hostname_suffix => '.database.cloudapi.de',
|
151
|
+
:gallery_endpoint_url => 'https://gallery.cloudapi.de/',
|
152
|
+
:active_directory_endpoint_url => 'https://login.microsoftonline.de/',
|
153
|
+
:active_directory_resource_id => 'https://management.core.cloudapi.de/',
|
154
|
+
:active_directory_graph_resource_id => 'https://graph.cloudapi.de/',
|
155
|
+
:active_directory_graph_api_version => '2013-04-05',
|
156
|
+
:storage_endpoint_suffix => '.core.cloudapi.de',
|
157
|
+
:key_vault_dns_suffix => '.vault.microsoftazure.de',
|
158
|
+
# TODO: add dns suffixes for the US government for datalake store and datalake analytics once they are defined.
|
159
|
+
:datalake_store_filesystem_endpoint_suffix => 'N/A',
|
160
|
+
:datalake_analytics_catalog_and_job_endpoint_suffix => 'N/A'
|
161
|
+
})
|
162
162
|
end
|
163
163
|
end
|
@@ -16,8 +16,11 @@ module MsRestAzure
|
|
16
16
|
|
17
17
|
def initialize(credentials, options = nil)
|
18
18
|
super(credentials, options)
|
19
|
+
# This is the current default for Azure services, and content-type
|
20
|
+
# and accept supported by Autorest
|
19
21
|
@request_headers = {
|
20
|
-
'Content-Type' => 'application/json;charset=utf-8'
|
22
|
+
'Content-Type' => 'application/json;charset=utf-8',
|
23
|
+
'Accept' => 'application/json'
|
21
24
|
}
|
22
25
|
add_user_agent_information("ms_rest_azure/#{MsRestAzure::VERSION}")
|
23
26
|
add_user_agent_information("Azure-SDK-For-Ruby")
|
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.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Microsoft Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0.
|
103
|
+
version: 0.7.0
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.
|
110
|
+
version: 0.7.0
|
111
111
|
description: Azure Client Library for Ruby.
|
112
112
|
email: azsdkteam@microsoft.com
|
113
113
|
executables: []
|