azure-armrest 0.1.2 → 0.1.3

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: db15c7c2486506cdae662e57d6a5ff870a405537
4
- data.tar.gz: 94a95cd28468371f916dab1394cb25f7a6f23773
3
+ metadata.gz: 3e89c3fbbfe48ed417ffd5ffd8a7d0c31d99ac0b
4
+ data.tar.gz: a7dffd29227228c2a59e4e4b1bdf751fd1dc052a
5
5
  SHA512:
6
- metadata.gz: c6bb034e35c08f91d1a34f4454ba4bc53af3ec8c263665b5d9a423273cc6534542fe061afd254e20c0d58d5c6f8d69c8bb04e2b8730d5bf60b3c360e24f68b4f
7
- data.tar.gz: ce4243411b2067a1371c8305d553068fd1d9e5baea71960ceb3a02d5bec928e6f3ee044374d4134025f474422e4b189f04ef88739b0231e672486cab88969d72
6
+ metadata.gz: ae33ec0c1675d5c13bb674d7bea315aac0eb3657ec854d8c98e1aab4c024f4d4cfff4c9f0616feaf9c0f25424784307fd13e67ad1eb0ff1080c2e4e0a8f2ac6b
7
+ data.tar.gz: 77ae01437b56cf5322885e6c19850c94ccce7d3d4654ece3b1bf25f3e144cf40544b0dad68d1f718b0a7564aeabf5c44ad2fcda990add72fb862c07beaffd4f0
data/CHANGES CHANGED
@@ -1,3 +1,8 @@
1
+ = 0.1.3 - 7-Mar-2016
2
+ * StorageAccount model objects now have their proxy value automatically
3
+ set to whatever the proxy was set to in the configuration argument
4
+ for StorageAccountService.
5
+
1
6
  = 0.1.2 - 2-Mar-2016
2
7
  * When selecting the appropriate api version string, we now reject dates
3
8
  that are ahead of the current date.
@@ -246,7 +246,8 @@ module Azure
246
246
  response = ArmrestService.rest_put(
247
247
  :url => dst_url,
248
248
  :payload => '',
249
- :headers => headers
249
+ :headers => headers,
250
+ :proxy => proxy
250
251
  )
251
252
 
252
253
  Blob.new(response.headers)
@@ -20,6 +20,24 @@ module Azure
20
20
  super(configuration, 'storageAccounts', 'Microsoft.Storage', options)
21
21
  end
22
22
 
23
+ # Same as other resource based get methods, but also sets the proxy on the model object.
24
+ #
25
+ def get(name, resource_group = configuration.resource_group)
26
+ super.tap { |m| m.proxy = configuration.proxy }
27
+ end
28
+
29
+ # Same as other resource based list methods, but also sets the proxy on each model object.
30
+ #
31
+ def list(resource_group = configuration.resource_group)
32
+ super.each { |m| m.proxy = configuration.proxy }
33
+ end
34
+
35
+ # Same as other resource based list_all methods, but also sets the proxy on each model object.
36
+ #
37
+ def list_all
38
+ super.each { |m| m.proxy = configuration.proxy }
39
+ end
40
+
23
41
  # Creates a new storage account, or updates an existing account with the
24
42
  # specified parameters.
25
43
  #
@@ -65,7 +83,7 @@ module Azure
65
83
 
66
84
  super(account_name, rgroup, options) do |url|
67
85
  url << "&validating=" << validating if validating
68
- end
86
+ end.tap { |m| m.proxy = configuration.proxy }
69
87
  end
70
88
 
71
89
  # Returns the primary and secondary access keys for the given
@@ -1,5 +1,5 @@
1
1
  module Azure
2
2
  module Armrest
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure-armrest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel J. Berger
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2016-03-02 00:00:00.000000000 Z
14
+ date: 2016-03-07 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: json