ms_rest_azure 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 67720d4755221ce7b280201aef573104e48b3f63
4
- data.tar.gz: 9559d6fed552c0d8ffcc99a75857ce45cbe7c20a
3
+ metadata.gz: a45accae7a928ebf7126c3b232494f0a0cabe231
4
+ data.tar.gz: c61a480e0f86ffec9d517e8717b7b4e7e09adeb4
5
5
  SHA512:
6
- metadata.gz: 2cdd5052429ac7bb6e2fb0998a177c5622b8bda062e3675461a605243e82eb7dec7011ee1002d7b35b957b71d0c425ab250fefd626e96d188ee4e3cc4b98c57d
7
- data.tar.gz: daa4c182871b3160f92a0ca2bb97460ac50d8bd9d205609afd3efe573ffb3fb72edb44896e225c941fa1e42af490404db9d0f96f5b0b40cbba1751e9bd97ab22
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.7.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::Azure)
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::AzureChina)
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
- Azure = AzureEnvironments::AzureEnvironment.new({
88
- :name => 'Azure',
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
- AzureChina = AzureEnvironments::AzureEnvironment.new({
106
- :name => 'AzureChina',
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
- })
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
- :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
- })
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
- :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
- })
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' # This is the current default for Azure services, and content-type supported by Autorest
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")
@@ -3,5 +3,5 @@
3
3
  # Licensed under the MIT License. See License.txt in the project root for license information.
4
4
 
5
5
  module MsRestAzure
6
- VERSION = '0.7.0'
6
+ VERSION = '0.8.0'
7
7
  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.7.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-02-07 00:00:00.000000000 Z
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.6.3
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.6.3
110
+ version: 0.7.0
111
111
  description: Azure Client Library for Ruby.
112
112
  email: azsdkteam@microsoft.com
113
113
  executables: []