azure_mgmt_storage 0.10.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generated/azure_mgmt_storage.rb +32 -11
- data/lib/generated/azure_mgmt_storage/models/access_tier.rb +1 -1
- data/lib/generated/azure_mgmt_storage/models/account_sas_parameters.rb +12 -11
- data/lib/generated/azure_mgmt_storage/models/account_status.rb +1 -1
- data/lib/generated/azure_mgmt_storage/models/action.rb +15 -0
- data/lib/generated/azure_mgmt_storage/models/bypass.rb +18 -0
- data/lib/generated/azure_mgmt_storage/models/check_name_availability_result.rb +2 -1
- data/lib/generated/azure_mgmt_storage/models/custom_domain.rb +2 -1
- data/lib/generated/azure_mgmt_storage/models/default_action.rb +16 -0
- data/lib/generated/azure_mgmt_storage/models/dimension.rb +55 -0
- data/lib/generated/azure_mgmt_storage/models/encryption.rb +17 -5
- data/lib/generated/azure_mgmt_storage/models/encryption_service.rb +2 -1
- data/lib/generated/azure_mgmt_storage/models/encryption_services.rb +2 -1
- data/lib/generated/azure_mgmt_storage/models/endpoints.rb +2 -1
- data/lib/generated/azure_mgmt_storage/models/http_protocol.rb +1 -1
- data/lib/generated/azure_mgmt_storage/models/identity.rb +69 -0
- data/lib/generated/azure_mgmt_storage/models/iprule.rb +59 -0
- data/lib/generated/azure_mgmt_storage/models/key_permission.rb +1 -1
- data/lib/generated/azure_mgmt_storage/models/key_source.rb +16 -0
- data/lib/generated/azure_mgmt_storage/models/key_vault_properties.rb +65 -0
- data/lib/generated/azure_mgmt_storage/models/kind.rb +1 -1
- data/lib/generated/azure_mgmt_storage/models/list_account_sas_response.rb +2 -1
- data/lib/generated/azure_mgmt_storage/models/list_service_sas_response.rb +2 -1
- data/lib/generated/azure_mgmt_storage/models/metric_specification.rb +134 -0
- data/lib/generated/azure_mgmt_storage/models/operation.rb +79 -0
- data/lib/generated/azure_mgmt_storage/models/operation_display.rb +65 -0
- data/lib/generated/azure_mgmt_storage/models/operation_list_result.rb +55 -0
- data/lib/generated/azure_mgmt_storage/models/permissions.rb +22 -0
- data/lib/generated/azure_mgmt_storage/models/provisioning_state.rb +1 -1
- data/lib/generated/azure_mgmt_storage/models/reason.rb +1 -1
- data/lib/generated/azure_mgmt_storage/models/service_sas_parameters.rb +9 -8
- data/lib/generated/azure_mgmt_storage/models/service_specification.rb +54 -0
- data/lib/generated/azure_mgmt_storage/models/services.rb +18 -0
- data/lib/generated/azure_mgmt_storage/models/signed_resource.rb +18 -0
- data/lib/generated/azure_mgmt_storage/models/signed_resource_types.rb +17 -0
- data/lib/generated/azure_mgmt_storage/models/sku.rb +2 -1
- data/lib/generated/azure_mgmt_storage/models/sku_name.rb +1 -1
- data/lib/generated/azure_mgmt_storage/models/sku_tier.rb +1 -1
- data/lib/generated/azure_mgmt_storage/models/state.rb +19 -0
- data/lib/generated/azure_mgmt_storage/models/storage_account.rb +37 -1
- data/lib/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb +6 -3
- data/lib/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb +36 -1
- data/lib/generated/azure_mgmt_storage/models/storage_account_key.rb +2 -1
- data/lib/generated/azure_mgmt_storage/models/storage_account_list_keys_result.rb +2 -1
- data/lib/generated/azure_mgmt_storage/models/storage_account_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb +4 -2
- data/lib/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb +36 -1
- data/lib/generated/azure_mgmt_storage/models/storage_network_acls.rb +100 -0
- data/lib/generated/azure_mgmt_storage/models/usage.rb +2 -1
- data/lib/generated/azure_mgmt_storage/models/usage_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_storage/models/usage_name.rb +2 -1
- data/lib/generated/azure_mgmt_storage/models/usage_unit.rb +1 -1
- data/lib/generated/azure_mgmt_storage/models/virtual_network_rule.rb +71 -0
- data/lib/generated/azure_mgmt_storage/module_definition.rb +1 -1
- data/lib/generated/azure_mgmt_storage/operations.rb +106 -0
- data/lib/generated/azure_mgmt_storage/storage_accounts.rb +46 -47
- data/lib/generated/azure_mgmt_storage/storage_management_client.rb +6 -2
- data/lib/generated/azure_mgmt_storage/usage_operations.rb +4 -5
- data/lib/generated/azure_mgmt_storage/version.rb +2 -2
- metadata +25 -4
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -12,6 +12,7 @@ module Azure::ARM::Storage
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
+
include MsRest::JSONable
|
15
16
|
# @return [String] Name of the key.
|
16
17
|
attr_accessor :key_name
|
17
18
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -12,6 +12,7 @@ module Azure::ARM::Storage
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
+
include MsRest::JSONable
|
15
16
|
# @return [Array<StorageAccountKey>] Gets the list of storage account
|
16
17
|
# keys and their properties for the specified storage account.
|
17
18
|
attr_accessor :keys
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -12,6 +12,7 @@ module Azure::ARM::Storage
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
+
include MsRest::JSONable
|
15
16
|
# @return [Array<StorageAccount>] Gets the list of storage accounts and
|
16
17
|
# their properties.
|
17
18
|
attr_accessor :value
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -12,7 +12,9 @@ module Azure::ARM::Storage
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [String] The name of storage keys that want to be regenerated,
|
17
|
+
# possible vaules are key1, key2.
|
16
18
|
attr_accessor :key_name
|
17
19
|
|
18
20
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -13,6 +13,7 @@ module Azure::ARM::Storage
|
|
13
13
|
|
14
14
|
include MsRestAzure
|
15
15
|
|
16
|
+
include MsRest::JSONable
|
16
17
|
# @return [Sku] Gets or sets the SKU name. Note that the SKU name cannot
|
17
18
|
# be updated to Standard_ZRS or Premium_LRS, nor can accounts of those
|
18
19
|
# sku names be updated to any other value.
|
@@ -26,6 +27,9 @@ module Azure::ARM::Storage
|
|
26
27
|
# characters.
|
27
28
|
attr_accessor :tags
|
28
29
|
|
30
|
+
# @return [Identity] The identity of the resource.
|
31
|
+
attr_accessor :identity
|
32
|
+
|
29
33
|
# @return [CustomDomain] Custom domain assigned to the storage account by
|
30
34
|
# the user. Name is the CNAME source. Only one custom domain is supported
|
31
35
|
# per storage account at this time. To clear the existing custom domain,
|
@@ -41,6 +45,13 @@ module Azure::ARM::Storage
|
|
41
45
|
# 'Hot', 'Cool'
|
42
46
|
attr_accessor :access_tier
|
43
47
|
|
48
|
+
# @return [Boolean] Allows https traffic only to storage service if sets
|
49
|
+
# to true. Default value: false .
|
50
|
+
attr_accessor :enable_https_traffic_only
|
51
|
+
|
52
|
+
# @return [StorageNetworkAcls] Network ACL
|
53
|
+
attr_accessor :network_acls
|
54
|
+
|
44
55
|
|
45
56
|
#
|
46
57
|
# Mapper for StorageAccountUpdateParameters class as Ruby Hash.
|
@@ -76,6 +87,14 @@ module Azure::ARM::Storage
|
|
76
87
|
}
|
77
88
|
}
|
78
89
|
},
|
90
|
+
identity: {
|
91
|
+
required: false,
|
92
|
+
serialized_name: 'identity',
|
93
|
+
type: {
|
94
|
+
name: 'Composite',
|
95
|
+
class_name: 'Identity'
|
96
|
+
}
|
97
|
+
},
|
79
98
|
custom_domain: {
|
80
99
|
required: false,
|
81
100
|
serialized_name: 'properties.customDomain',
|
@@ -99,6 +118,22 @@ module Azure::ARM::Storage
|
|
99
118
|
name: 'Enum',
|
100
119
|
module: 'AccessTier'
|
101
120
|
}
|
121
|
+
},
|
122
|
+
enable_https_traffic_only: {
|
123
|
+
required: false,
|
124
|
+
serialized_name: 'properties.supportsHttpsTrafficOnly',
|
125
|
+
default_value: false,
|
126
|
+
type: {
|
127
|
+
name: 'Boolean'
|
128
|
+
}
|
129
|
+
},
|
130
|
+
network_acls: {
|
131
|
+
required: false,
|
132
|
+
serialized_name: 'properties.networkAcls',
|
133
|
+
type: {
|
134
|
+
name: 'Composite',
|
135
|
+
class_name: 'StorageNetworkAcls'
|
136
|
+
}
|
102
137
|
}
|
103
138
|
}
|
104
139
|
}
|
@@ -0,0 +1,100 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Storage
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Network ACL
|
10
|
+
#
|
11
|
+
class StorageNetworkAcls
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [Bypass] Specifies whether traffic is bypassed for
|
17
|
+
# Logging/Metrics/AzureServices. Possible values are any combination of
|
18
|
+
# Logging|Metrics|AzureServices (For example, "Logging, Metrics"), or
|
19
|
+
# None to bypass none of those traffics. Possible values include: 'None',
|
20
|
+
# 'Logging', 'Metrics', 'AzureServices'. Default value: 'AzureServices' .
|
21
|
+
attr_accessor :bypass
|
22
|
+
|
23
|
+
# @return [Array<VirtualNetworkRule>] Sets the virtual network ACL rules
|
24
|
+
attr_accessor :virtual_network_rules
|
25
|
+
|
26
|
+
# @return [Array<IPRule>] Sets the IP ACL rules
|
27
|
+
attr_accessor :ip_rules
|
28
|
+
|
29
|
+
# @return [DefaultAction] Specifies the default action of allow or deny
|
30
|
+
# when no other rules match. Possible values include: 'Allow', 'Deny'.
|
31
|
+
# Default value: 'Allow' .
|
32
|
+
attr_accessor :default_action
|
33
|
+
|
34
|
+
|
35
|
+
#
|
36
|
+
# Mapper for StorageNetworkAcls class as Ruby Hash.
|
37
|
+
# This will be used for serialization/deserialization.
|
38
|
+
#
|
39
|
+
def self.mapper()
|
40
|
+
{
|
41
|
+
required: false,
|
42
|
+
serialized_name: 'StorageNetworkAcls',
|
43
|
+
type: {
|
44
|
+
name: 'Composite',
|
45
|
+
class_name: 'StorageNetworkAcls',
|
46
|
+
model_properties: {
|
47
|
+
bypass: {
|
48
|
+
required: false,
|
49
|
+
serialized_name: 'bypass',
|
50
|
+
default_value: 'AzureServices',
|
51
|
+
type: {
|
52
|
+
name: 'String'
|
53
|
+
}
|
54
|
+
},
|
55
|
+
virtual_network_rules: {
|
56
|
+
required: false,
|
57
|
+
serialized_name: 'virtualNetworkRules',
|
58
|
+
type: {
|
59
|
+
name: 'Sequence',
|
60
|
+
element: {
|
61
|
+
required: false,
|
62
|
+
serialized_name: 'VirtualNetworkRuleElementType',
|
63
|
+
type: {
|
64
|
+
name: 'Composite',
|
65
|
+
class_name: 'VirtualNetworkRule'
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
},
|
70
|
+
ip_rules: {
|
71
|
+
required: false,
|
72
|
+
serialized_name: 'ipRules',
|
73
|
+
type: {
|
74
|
+
name: 'Sequence',
|
75
|
+
element: {
|
76
|
+
required: false,
|
77
|
+
serialized_name: 'IPRuleElementType',
|
78
|
+
type: {
|
79
|
+
name: 'Composite',
|
80
|
+
class_name: 'IPRule'
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
},
|
85
|
+
default_action: {
|
86
|
+
required: true,
|
87
|
+
serialized_name: 'defaultAction',
|
88
|
+
default_value: 'Allow',
|
89
|
+
type: {
|
90
|
+
name: 'Enum',
|
91
|
+
module: 'DefaultAction'
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -12,6 +12,7 @@ module Azure::ARM::Storage
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
+
include MsRest::JSONable
|
15
16
|
# @return [UsageUnit] Gets the unit of measurement. Possible values
|
16
17
|
# include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountsPerSecond',
|
17
18
|
# 'BytesPerSecond'
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -12,6 +12,7 @@ module Azure::ARM::Storage
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
+
include MsRest::JSONable
|
15
16
|
# @return [Array<Usage>] Gets or sets the list of Storage Resource
|
16
17
|
# Usages.
|
17
18
|
attr_accessor :value
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -12,6 +12,7 @@ module Azure::ARM::Storage
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
+
include MsRest::JSONable
|
15
16
|
# @return [String] Gets a string describing the resource name.
|
16
17
|
attr_accessor :value
|
17
18
|
|
@@ -0,0 +1,71 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Storage
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Virtual Network rule.
|
10
|
+
#
|
11
|
+
class VirtualNetworkRule
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [String] A URL of vnet, subnet, classicVnet or classicSubnet.
|
17
|
+
attr_accessor :virtual_network_resource_id
|
18
|
+
|
19
|
+
# @return [Action] The action of virtual network ACL rule. Possible
|
20
|
+
# values include: 'Allow'. Default value: 'Allow' .
|
21
|
+
attr_accessor :action
|
22
|
+
|
23
|
+
# @return [State] Gets the state of virtual network ACL rule. Possible
|
24
|
+
# values include: 'provisioning', 'deprovisioning', 'succeeded',
|
25
|
+
# 'failed', 'networkSourceDeleted'
|
26
|
+
attr_accessor :state
|
27
|
+
|
28
|
+
|
29
|
+
#
|
30
|
+
# Mapper for VirtualNetworkRule class as Ruby Hash.
|
31
|
+
# This will be used for serialization/deserialization.
|
32
|
+
#
|
33
|
+
def self.mapper()
|
34
|
+
{
|
35
|
+
required: false,
|
36
|
+
serialized_name: 'VirtualNetworkRule',
|
37
|
+
type: {
|
38
|
+
name: 'Composite',
|
39
|
+
class_name: 'VirtualNetworkRule',
|
40
|
+
model_properties: {
|
41
|
+
virtual_network_resource_id: {
|
42
|
+
required: true,
|
43
|
+
serialized_name: 'id',
|
44
|
+
type: {
|
45
|
+
name: 'String'
|
46
|
+
}
|
47
|
+
},
|
48
|
+
action: {
|
49
|
+
required: false,
|
50
|
+
serialized_name: 'action',
|
51
|
+
default_value: 'Allow',
|
52
|
+
type: {
|
53
|
+
name: 'Enum',
|
54
|
+
module: 'Action'
|
55
|
+
}
|
56
|
+
},
|
57
|
+
state: {
|
58
|
+
required: false,
|
59
|
+
serialized_name: 'state',
|
60
|
+
type: {
|
61
|
+
name: 'Enum',
|
62
|
+
module: 'State'
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
@@ -0,0 +1,106 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Storage
|
7
|
+
#
|
8
|
+
# The Azure Storage Management API.
|
9
|
+
#
|
10
|
+
class Operations
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the Operations class.
|
15
|
+
# @param client service class for accessing basic functionality.
|
16
|
+
#
|
17
|
+
def initialize(client)
|
18
|
+
@client = client
|
19
|
+
end
|
20
|
+
|
21
|
+
# @return [StorageManagementClient] reference to the StorageManagementClient
|
22
|
+
attr_reader :client
|
23
|
+
|
24
|
+
#
|
25
|
+
# Lists all of the available Storage Rest API operations.
|
26
|
+
#
|
27
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
28
|
+
# will be added to the HTTP request.
|
29
|
+
#
|
30
|
+
# @return [OperationListResult] operation results.
|
31
|
+
#
|
32
|
+
def list(custom_headers = nil)
|
33
|
+
response = list_async(custom_headers).value!
|
34
|
+
response.body unless response.nil?
|
35
|
+
end
|
36
|
+
|
37
|
+
#
|
38
|
+
# Lists all of the available Storage Rest API operations.
|
39
|
+
#
|
40
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
41
|
+
# will be added to the HTTP request.
|
42
|
+
#
|
43
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
44
|
+
#
|
45
|
+
def list_with_http_info(custom_headers = nil)
|
46
|
+
list_async(custom_headers).value!
|
47
|
+
end
|
48
|
+
|
49
|
+
#
|
50
|
+
# Lists all of the available Storage Rest API operations.
|
51
|
+
#
|
52
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
53
|
+
# to the HTTP request.
|
54
|
+
#
|
55
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
56
|
+
#
|
57
|
+
def list_async(custom_headers = nil)
|
58
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
59
|
+
|
60
|
+
|
61
|
+
request_headers = {}
|
62
|
+
|
63
|
+
# Set Headers
|
64
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
65
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
66
|
+
path_template = 'providers/Microsoft.Storage/operations'
|
67
|
+
|
68
|
+
request_url = @base_url || @client.base_url
|
69
|
+
|
70
|
+
options = {
|
71
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
72
|
+
query_params: {'api-version' => @client.api_version},
|
73
|
+
headers: request_headers.merge(custom_headers || {}),
|
74
|
+
base_url: request_url
|
75
|
+
}
|
76
|
+
promise = @client.make_request_async(:get, path_template, options)
|
77
|
+
|
78
|
+
promise = promise.then do |result|
|
79
|
+
http_response = result.response
|
80
|
+
status_code = http_response.status
|
81
|
+
response_content = http_response.body
|
82
|
+
unless status_code == 200
|
83
|
+
error_model = JSON.load(response_content)
|
84
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
85
|
+
end
|
86
|
+
|
87
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
88
|
+
# Deserialize Response
|
89
|
+
if status_code == 200
|
90
|
+
begin
|
91
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
92
|
+
result_mapper = Azure::ARM::Storage::Models::OperationListResult.mapper()
|
93
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
94
|
+
rescue Exception => e
|
95
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
result
|
100
|
+
end
|
101
|
+
|
102
|
+
promise.execute
|
103
|
+
end
|
104
|
+
|
105
|
+
end
|
106
|
+
end
|