azure_mgmt_storage 0.8.0 → 0.9.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 +4 -4
- data/lib/generated/azure_mgmt_storage.rb +14 -9
- data/lib/generated/azure_mgmt_storage/models/account_sas_parameters.rb +127 -0
- data/lib/generated/azure_mgmt_storage/models/account_status.rb +2 -2
- data/lib/generated/azure_mgmt_storage/models/encryption_services.rb +38 -0
- data/lib/generated/azure_mgmt_storage/models/http_protocol.rb +16 -0
- data/lib/generated/azure_mgmt_storage/models/key_permission.rb +2 -2
- data/lib/generated/azure_mgmt_storage/models/list_account_sas_response.rb +45 -0
- data/lib/generated/azure_mgmt_storage/models/list_service_sas_response.rb +45 -0
- data/lib/generated/azure_mgmt_storage/models/service_sas_parameters.rb +228 -0
- data/lib/generated/azure_mgmt_storage/models/storage_account.rb +2 -2
- data/lib/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb +1 -2
- data/lib/generated/azure_mgmt_storage/models/storage_account_key.rb +1 -1
- data/lib/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb +1 -2
- data/lib/generated/azure_mgmt_storage/storage_accounts.rb +256 -24
- data/lib/generated/azure_mgmt_storage/storage_management_client.rb +5 -6
- data/lib/generated/azure_mgmt_storage/usage_operations.rb +1 -1
- data/lib/generated/azure_mgmt_storage/version.rb +1 -1
- metadata +9 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa89aa4465d0bec27ab086055719801697ad4fdf
|
4
|
+
data.tar.gz: bad659d4c7357b5f96e2f373a8f6bd86da3ebd1d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12ed776f9beabcc1f560136bff8b21df2e881f543b53ac6dea570dd2cef10e8e61cd0f0f0e5ad01d41862a840091ca64d252049329c46957dfe26b4b68da96c6
|
7
|
+
data.tar.gz: 72a220d7fad6393e11fab1147e5110c22a9fb6a8db703149aa9ad1d88e0017bd5d49dd799992b9dd9f7f403fba39f1f1986d094a3c776b1e58921730a096bbba
|
@@ -25,23 +25,27 @@ module Azure::ARM::Storage
|
|
25
25
|
autoload :StorageManagementClient, 'generated/azure_mgmt_storage/storage_management_client.rb'
|
26
26
|
|
27
27
|
module Models
|
28
|
-
autoload :StorageAccountCheckNameAvailabilityParameters, 'generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb'
|
29
|
-
autoload :StorageAccountKey, 'generated/azure_mgmt_storage/models/storage_account_key.rb'
|
30
|
-
autoload :Sku, 'generated/azure_mgmt_storage/models/sku.rb'
|
31
28
|
autoload :StorageAccountListResult, 'generated/azure_mgmt_storage/models/storage_account_list_result.rb'
|
32
|
-
autoload :EncryptionService, 'generated/azure_mgmt_storage/models/encryption_service.rb'
|
33
29
|
autoload :StorageAccountListKeysResult, 'generated/azure_mgmt_storage/models/storage_account_list_keys_result.rb'
|
34
|
-
autoload :
|
30
|
+
autoload :CheckNameAvailabilityResult, 'generated/azure_mgmt_storage/models/check_name_availability_result.rb'
|
35
31
|
autoload :StorageAccountRegenerateKeyParameters, 'generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb'
|
36
|
-
autoload :Endpoints, 'generated/azure_mgmt_storage/models/endpoints.rb'
|
37
|
-
autoload :StorageAccountUpdateParameters, 'generated/azure_mgmt_storage/models/storage_account_update_parameters.rb'
|
38
32
|
autoload :CustomDomain, 'generated/azure_mgmt_storage/models/custom_domain.rb'
|
33
|
+
autoload :StorageAccountUpdateParameters, 'generated/azure_mgmt_storage/models/storage_account_update_parameters.rb'
|
34
|
+
autoload :EncryptionServices, 'generated/azure_mgmt_storage/models/encryption_services.rb'
|
39
35
|
autoload :UsageName, 'generated/azure_mgmt_storage/models/usage_name.rb'
|
40
36
|
autoload :StorageAccountCreateParameters, 'generated/azure_mgmt_storage/models/storage_account_create_parameters.rb'
|
41
37
|
autoload :Usage, 'generated/azure_mgmt_storage/models/usage.rb'
|
42
|
-
autoload :
|
38
|
+
autoload :StorageAccountKey, 'generated/azure_mgmt_storage/models/storage_account_key.rb'
|
43
39
|
autoload :UsageListResult, 'generated/azure_mgmt_storage/models/usage_list_result.rb'
|
44
|
-
autoload :
|
40
|
+
autoload :Sku, 'generated/azure_mgmt_storage/models/sku.rb'
|
41
|
+
autoload :Encryption, 'generated/azure_mgmt_storage/models/encryption.rb'
|
42
|
+
autoload :AccountSasParameters, 'generated/azure_mgmt_storage/models/account_sas_parameters.rb'
|
43
|
+
autoload :StorageAccountCheckNameAvailabilityParameters, 'generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb'
|
44
|
+
autoload :ListAccountSasResponse, 'generated/azure_mgmt_storage/models/list_account_sas_response.rb'
|
45
|
+
autoload :Endpoints, 'generated/azure_mgmt_storage/models/endpoints.rb'
|
46
|
+
autoload :ServiceSasParameters, 'generated/azure_mgmt_storage/models/service_sas_parameters.rb'
|
47
|
+
autoload :EncryptionService, 'generated/azure_mgmt_storage/models/encryption_service.rb'
|
48
|
+
autoload :ListServiceSasResponse, 'generated/azure_mgmt_storage/models/list_service_sas_response.rb'
|
45
49
|
autoload :StorageAccount, 'generated/azure_mgmt_storage/models/storage_account.rb'
|
46
50
|
autoload :Reason, 'generated/azure_mgmt_storage/models/reason.rb'
|
47
51
|
autoload :SkuName, 'generated/azure_mgmt_storage/models/sku_name.rb'
|
@@ -52,5 +56,6 @@ module Azure::ARM::Storage
|
|
52
56
|
autoload :AccountStatus, 'generated/azure_mgmt_storage/models/account_status.rb'
|
53
57
|
autoload :KeyPermission, 'generated/azure_mgmt_storage/models/key_permission.rb'
|
54
58
|
autoload :UsageUnit, 'generated/azure_mgmt_storage/models/usage_unit.rb'
|
59
|
+
autoload :HttpProtocol, 'generated/azure_mgmt_storage/models/http_protocol.rb'
|
55
60
|
end
|
56
61
|
end
|
@@ -0,0 +1,127 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.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
|
+
# The parameters to list SAS credentials of a storage account.
|
10
|
+
#
|
11
|
+
class AccountSasParameters
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Enum] The signed services accessible with the account SAS.
|
16
|
+
# Possible values include: Blob (b), Queue (q), Table (t), File (f).
|
17
|
+
# Possible values include: 'b', 'q', 't', 'f'
|
18
|
+
attr_accessor :services
|
19
|
+
|
20
|
+
# @return [Enum] The signed resource types that are accessible with the
|
21
|
+
# account SAS. Service (s): Access to service-level APIs; Container (c):
|
22
|
+
# Access to container-level APIs; Object (o): Access to object-level APIs
|
23
|
+
# for blobs, queue messages, table entities, and files. Possible values
|
24
|
+
# include: 's', 'c', 'o'
|
25
|
+
attr_accessor :resource_types
|
26
|
+
|
27
|
+
# @return [Enum] The signed permissions for the account SAS. Possible
|
28
|
+
# values include: Read (r), Write (w), Delete (d), List (l), Add (a),
|
29
|
+
# Create (c), Update (u) and Process (p). Possible values include: 'r',
|
30
|
+
# 'd', 'w', 'l', 'a', 'c', 'u', 'p'
|
31
|
+
attr_accessor :permissions
|
32
|
+
|
33
|
+
# @return [String] An IP address or a range of IP addresses from which to
|
34
|
+
# accept requests.
|
35
|
+
attr_accessor :ipaddress_or_range
|
36
|
+
|
37
|
+
# @return [HttpProtocol] The protocol permitted for a request made with
|
38
|
+
# the account SAS. Possible values include: 'https,http', 'https'
|
39
|
+
attr_accessor :protocols
|
40
|
+
|
41
|
+
# @return [DateTime] The time at which the SAS becomes valid.
|
42
|
+
attr_accessor :shared_access_start_time
|
43
|
+
|
44
|
+
# @return [DateTime] The time at which the shared access signature
|
45
|
+
# becomes invalid.
|
46
|
+
attr_accessor :shared_access_expiry_time
|
47
|
+
|
48
|
+
# @return [String] The key to sign the account SAS token with.
|
49
|
+
attr_accessor :key_to_sign
|
50
|
+
|
51
|
+
|
52
|
+
#
|
53
|
+
# Mapper for AccountSasParameters class as Ruby Hash.
|
54
|
+
# This will be used for serialization/deserialization.
|
55
|
+
#
|
56
|
+
def self.mapper()
|
57
|
+
{
|
58
|
+
required: false,
|
59
|
+
serialized_name: 'AccountSasParameters',
|
60
|
+
type: {
|
61
|
+
name: 'Composite',
|
62
|
+
class_name: 'AccountSasParameters',
|
63
|
+
model_properties: {
|
64
|
+
services: {
|
65
|
+
required: true,
|
66
|
+
serialized_name: 'signedServices',
|
67
|
+
type: {
|
68
|
+
name: 'String'
|
69
|
+
}
|
70
|
+
},
|
71
|
+
resource_types: {
|
72
|
+
required: true,
|
73
|
+
serialized_name: 'signedResourceTypes',
|
74
|
+
type: {
|
75
|
+
name: 'String'
|
76
|
+
}
|
77
|
+
},
|
78
|
+
permissions: {
|
79
|
+
required: true,
|
80
|
+
serialized_name: 'signedPermission',
|
81
|
+
type: {
|
82
|
+
name: 'String'
|
83
|
+
}
|
84
|
+
},
|
85
|
+
ipaddress_or_range: {
|
86
|
+
required: false,
|
87
|
+
serialized_name: 'signedIp',
|
88
|
+
type: {
|
89
|
+
name: 'String'
|
90
|
+
}
|
91
|
+
},
|
92
|
+
protocols: {
|
93
|
+
required: false,
|
94
|
+
serialized_name: 'signedProtocol',
|
95
|
+
type: {
|
96
|
+
name: 'Enum',
|
97
|
+
module: 'HttpProtocol'
|
98
|
+
}
|
99
|
+
},
|
100
|
+
shared_access_start_time: {
|
101
|
+
required: false,
|
102
|
+
serialized_name: 'signedStart',
|
103
|
+
type: {
|
104
|
+
name: 'DateTime'
|
105
|
+
}
|
106
|
+
},
|
107
|
+
shared_access_expiry_time: {
|
108
|
+
required: true,
|
109
|
+
serialized_name: 'signedExpiry',
|
110
|
+
type: {
|
111
|
+
name: 'DateTime'
|
112
|
+
}
|
113
|
+
},
|
114
|
+
key_to_sign: {
|
115
|
+
required: false,
|
116
|
+
serialized_name: 'keyToSign',
|
117
|
+
type: {
|
118
|
+
name: 'String'
|
119
|
+
}
|
120
|
+
}
|
121
|
+
}
|
122
|
+
}
|
123
|
+
}
|
124
|
+
end
|
125
|
+
end
|
126
|
+
end
|
127
|
+
end
|
@@ -16,6 +16,18 @@ module Azure::ARM::Storage
|
|
16
16
|
# service.
|
17
17
|
attr_accessor :blob
|
18
18
|
|
19
|
+
# @return [EncryptionService] The encryption function of the file storage
|
20
|
+
# service.
|
21
|
+
attr_accessor :file
|
22
|
+
|
23
|
+
# @return [EncryptionService] The encryption function of the table
|
24
|
+
# storage service.
|
25
|
+
attr_accessor :table
|
26
|
+
|
27
|
+
# @return [EncryptionService] The encryption function of the queue
|
28
|
+
# storage service.
|
29
|
+
attr_accessor :queue
|
30
|
+
|
19
31
|
|
20
32
|
#
|
21
33
|
# Mapper for EncryptionServices class as Ruby Hash.
|
@@ -36,6 +48,32 @@ module Azure::ARM::Storage
|
|
36
48
|
name: 'Composite',
|
37
49
|
class_name: 'EncryptionService'
|
38
50
|
}
|
51
|
+
},
|
52
|
+
file: {
|
53
|
+
required: false,
|
54
|
+
serialized_name: 'file',
|
55
|
+
type: {
|
56
|
+
name: 'Composite',
|
57
|
+
class_name: 'EncryptionService'
|
58
|
+
}
|
59
|
+
},
|
60
|
+
table: {
|
61
|
+
required: false,
|
62
|
+
read_only: true,
|
63
|
+
serialized_name: 'table',
|
64
|
+
type: {
|
65
|
+
name: 'Composite',
|
66
|
+
class_name: 'EncryptionService'
|
67
|
+
}
|
68
|
+
},
|
69
|
+
queue: {
|
70
|
+
required: false,
|
71
|
+
read_only: true,
|
72
|
+
serialized_name: 'queue',
|
73
|
+
type: {
|
74
|
+
name: 'Composite',
|
75
|
+
class_name: 'EncryptionService'
|
76
|
+
}
|
39
77
|
}
|
40
78
|
}
|
41
79
|
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.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
|
+
# Defines values for HttpProtocol
|
10
|
+
#
|
11
|
+
module HttpProtocol
|
12
|
+
Httpshttp = "https,http"
|
13
|
+
Https = "https"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.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
|
+
# The List SAS credentials operation response.
|
10
|
+
#
|
11
|
+
class ListAccountSasResponse
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] List SAS credentials of storage account.
|
16
|
+
attr_accessor :account_sas_token
|
17
|
+
|
18
|
+
|
19
|
+
#
|
20
|
+
# Mapper for ListAccountSasResponse class as Ruby Hash.
|
21
|
+
# This will be used for serialization/deserialization.
|
22
|
+
#
|
23
|
+
def self.mapper()
|
24
|
+
{
|
25
|
+
required: false,
|
26
|
+
serialized_name: 'ListAccountSasResponse',
|
27
|
+
type: {
|
28
|
+
name: 'Composite',
|
29
|
+
class_name: 'ListAccountSasResponse',
|
30
|
+
model_properties: {
|
31
|
+
account_sas_token: {
|
32
|
+
required: false,
|
33
|
+
read_only: true,
|
34
|
+
serialized_name: 'accountSasToken',
|
35
|
+
type: {
|
36
|
+
name: 'String'
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.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
|
+
# The List service SAS credentials operation response.
|
10
|
+
#
|
11
|
+
class ListServiceSasResponse
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] List service SAS credentials of speicific resource.
|
16
|
+
attr_accessor :service_sas_token
|
17
|
+
|
18
|
+
|
19
|
+
#
|
20
|
+
# Mapper for ListServiceSasResponse class as Ruby Hash.
|
21
|
+
# This will be used for serialization/deserialization.
|
22
|
+
#
|
23
|
+
def self.mapper()
|
24
|
+
{
|
25
|
+
required: false,
|
26
|
+
serialized_name: 'ListServiceSasResponse',
|
27
|
+
type: {
|
28
|
+
name: 'Composite',
|
29
|
+
class_name: 'ListServiceSasResponse',
|
30
|
+
model_properties: {
|
31
|
+
service_sas_token: {
|
32
|
+
required: false,
|
33
|
+
read_only: true,
|
34
|
+
serialized_name: 'serviceSasToken',
|
35
|
+
type: {
|
36
|
+
name: 'String'
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,228 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.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
|
+
# The parameters to list service SAS credentials of a speicific resource.
|
10
|
+
#
|
11
|
+
class ServiceSasParameters
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The canonical path to the signed resource.
|
16
|
+
attr_accessor :canonicalized_resource
|
17
|
+
|
18
|
+
# @return [Enum] The signed services accessible with the service SAS.
|
19
|
+
# Possible values include: Blob (b), Container (c), File (f), Share (s).
|
20
|
+
# Possible values include: 'b', 'c', 'f', 's'
|
21
|
+
attr_accessor :resource
|
22
|
+
|
23
|
+
# @return [Enum] The signed permissions for the service SAS. Possible
|
24
|
+
# values include: Read (r), Write (w), Delete (d), List (l), Add (a),
|
25
|
+
# Create (c), Update (u) and Process (p). Possible values include: 'r',
|
26
|
+
# 'd', 'w', 'l', 'a', 'c', 'u', 'p'
|
27
|
+
attr_accessor :permissions
|
28
|
+
|
29
|
+
# @return [String] An IP address or a range of IP addresses from which to
|
30
|
+
# accept requests.
|
31
|
+
attr_accessor :ipaddress_or_range
|
32
|
+
|
33
|
+
# @return [HttpProtocol] The protocol permitted for a request made with
|
34
|
+
# the account SAS. Possible values include: 'https,http', 'https'
|
35
|
+
attr_accessor :protocols
|
36
|
+
|
37
|
+
# @return [DateTime] The time at which the SAS becomes valid.
|
38
|
+
attr_accessor :shared_access_start_time
|
39
|
+
|
40
|
+
# @return [DateTime] The time at which the shared access signature
|
41
|
+
# becomes invalid.
|
42
|
+
attr_accessor :shared_access_expiry_time
|
43
|
+
|
44
|
+
# @return [String] A unique value up to 64 characters in length that
|
45
|
+
# correlates to an access policy specified for the container, queue, or
|
46
|
+
# table.
|
47
|
+
attr_accessor :identifier
|
48
|
+
|
49
|
+
# @return [String] The start of partition key.
|
50
|
+
attr_accessor :partition_key_start
|
51
|
+
|
52
|
+
# @return [String] The end of partition key.
|
53
|
+
attr_accessor :partition_key_end
|
54
|
+
|
55
|
+
# @return [String] The start of row key.
|
56
|
+
attr_accessor :row_key_start
|
57
|
+
|
58
|
+
# @return [String] The end of row key.
|
59
|
+
attr_accessor :row_key_end
|
60
|
+
|
61
|
+
# @return [String] The key to sign the account SAS token with.
|
62
|
+
attr_accessor :key_to_sign
|
63
|
+
|
64
|
+
# @return [String] The response header override for cache control.
|
65
|
+
attr_accessor :cache_control
|
66
|
+
|
67
|
+
# @return [String] The response header override for content disposition.
|
68
|
+
attr_accessor :content_disposition
|
69
|
+
|
70
|
+
# @return [String] The response header override for content encoding.
|
71
|
+
attr_accessor :content_encoding
|
72
|
+
|
73
|
+
# @return [String] The response header override for content language.
|
74
|
+
attr_accessor :content_language
|
75
|
+
|
76
|
+
# @return [String] The response header override for content type.
|
77
|
+
attr_accessor :content_type
|
78
|
+
|
79
|
+
|
80
|
+
#
|
81
|
+
# Mapper for ServiceSasParameters class as Ruby Hash.
|
82
|
+
# This will be used for serialization/deserialization.
|
83
|
+
#
|
84
|
+
def self.mapper()
|
85
|
+
{
|
86
|
+
required: false,
|
87
|
+
serialized_name: 'ServiceSasParameters',
|
88
|
+
type: {
|
89
|
+
name: 'Composite',
|
90
|
+
class_name: 'ServiceSasParameters',
|
91
|
+
model_properties: {
|
92
|
+
canonicalized_resource: {
|
93
|
+
required: true,
|
94
|
+
serialized_name: 'canonicalizedResource',
|
95
|
+
type: {
|
96
|
+
name: 'String'
|
97
|
+
}
|
98
|
+
},
|
99
|
+
resource: {
|
100
|
+
required: true,
|
101
|
+
serialized_name: 'signedResource',
|
102
|
+
type: {
|
103
|
+
name: 'String'
|
104
|
+
}
|
105
|
+
},
|
106
|
+
permissions: {
|
107
|
+
required: false,
|
108
|
+
serialized_name: 'signedPermission',
|
109
|
+
type: {
|
110
|
+
name: 'String'
|
111
|
+
}
|
112
|
+
},
|
113
|
+
ipaddress_or_range: {
|
114
|
+
required: false,
|
115
|
+
serialized_name: 'signedIp',
|
116
|
+
type: {
|
117
|
+
name: 'String'
|
118
|
+
}
|
119
|
+
},
|
120
|
+
protocols: {
|
121
|
+
required: false,
|
122
|
+
serialized_name: 'signedProtocol',
|
123
|
+
type: {
|
124
|
+
name: 'Enum',
|
125
|
+
module: 'HttpProtocol'
|
126
|
+
}
|
127
|
+
},
|
128
|
+
shared_access_start_time: {
|
129
|
+
required: false,
|
130
|
+
serialized_name: 'signedStart',
|
131
|
+
type: {
|
132
|
+
name: 'DateTime'
|
133
|
+
}
|
134
|
+
},
|
135
|
+
shared_access_expiry_time: {
|
136
|
+
required: false,
|
137
|
+
serialized_name: 'signedExpiry',
|
138
|
+
type: {
|
139
|
+
name: 'DateTime'
|
140
|
+
}
|
141
|
+
},
|
142
|
+
identifier: {
|
143
|
+
required: false,
|
144
|
+
serialized_name: 'signedIdentifier',
|
145
|
+
constraints: {
|
146
|
+
MaxLength: 64
|
147
|
+
},
|
148
|
+
type: {
|
149
|
+
name: 'String'
|
150
|
+
}
|
151
|
+
},
|
152
|
+
partition_key_start: {
|
153
|
+
required: false,
|
154
|
+
serialized_name: 'startPk',
|
155
|
+
type: {
|
156
|
+
name: 'String'
|
157
|
+
}
|
158
|
+
},
|
159
|
+
partition_key_end: {
|
160
|
+
required: false,
|
161
|
+
serialized_name: 'endPk',
|
162
|
+
type: {
|
163
|
+
name: 'String'
|
164
|
+
}
|
165
|
+
},
|
166
|
+
row_key_start: {
|
167
|
+
required: false,
|
168
|
+
serialized_name: 'startRk',
|
169
|
+
type: {
|
170
|
+
name: 'String'
|
171
|
+
}
|
172
|
+
},
|
173
|
+
row_key_end: {
|
174
|
+
required: false,
|
175
|
+
serialized_name: 'endRk',
|
176
|
+
type: {
|
177
|
+
name: 'String'
|
178
|
+
}
|
179
|
+
},
|
180
|
+
key_to_sign: {
|
181
|
+
required: false,
|
182
|
+
serialized_name: 'keyToSign',
|
183
|
+
type: {
|
184
|
+
name: 'String'
|
185
|
+
}
|
186
|
+
},
|
187
|
+
cache_control: {
|
188
|
+
required: false,
|
189
|
+
serialized_name: 'rscc',
|
190
|
+
type: {
|
191
|
+
name: 'String'
|
192
|
+
}
|
193
|
+
},
|
194
|
+
content_disposition: {
|
195
|
+
required: false,
|
196
|
+
serialized_name: 'rscd',
|
197
|
+
type: {
|
198
|
+
name: 'String'
|
199
|
+
}
|
200
|
+
},
|
201
|
+
content_encoding: {
|
202
|
+
required: false,
|
203
|
+
serialized_name: 'rsce',
|
204
|
+
type: {
|
205
|
+
name: 'String'
|
206
|
+
}
|
207
|
+
},
|
208
|
+
content_language: {
|
209
|
+
required: false,
|
210
|
+
serialized_name: 'rscl',
|
211
|
+
type: {
|
212
|
+
name: 'String'
|
213
|
+
}
|
214
|
+
},
|
215
|
+
content_type: {
|
216
|
+
required: false,
|
217
|
+
serialized_name: 'rsct',
|
218
|
+
type: {
|
219
|
+
name: 'String'
|
220
|
+
}
|
221
|
+
}
|
222
|
+
}
|
223
|
+
}
|
224
|
+
}
|
225
|
+
end
|
226
|
+
end
|
227
|
+
end
|
228
|
+
end
|
@@ -35,7 +35,7 @@ module Azure::ARM::Storage
|
|
35
35
|
|
36
36
|
# @return [AccountStatus] Gets the status indicating whether the primary
|
37
37
|
# location of the storage account is available or unavailable. Possible
|
38
|
-
# values include: '
|
38
|
+
# values include: 'available', 'unavailable'
|
39
39
|
attr_accessor :status_of_primary
|
40
40
|
|
41
41
|
# @return [DateTime] Gets the timestamp of the most recent instance of a
|
@@ -53,7 +53,7 @@ module Azure::ARM::Storage
|
|
53
53
|
# @return [AccountStatus] Gets the status indicating whether the
|
54
54
|
# secondary location of the storage account is available or unavailable.
|
55
55
|
# Only available if the SKU name is Standard_GRS or Standard_RAGRS.
|
56
|
-
# Possible values include: '
|
56
|
+
# Possible values include: 'available', 'unavailable'
|
57
57
|
attr_accessor :status_of_secondary
|
58
58
|
|
59
59
|
# @return [DateTime] Gets the creation date and time of the storage
|
@@ -19,7 +19,7 @@ module Azure::ARM::Storage
|
|
19
19
|
attr_accessor :value
|
20
20
|
|
21
21
|
# @return [KeyPermission] Permissions for the key -- read-only or full
|
22
|
-
# permissions. Possible values include: '
|
22
|
+
# permissions. Possible values include: 'Read', 'Full'
|
23
23
|
attr_accessor :permissions
|
24
24
|
|
25
25
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
module Azure::ARM::Storage
|
7
7
|
#
|
8
|
-
# The Storage Management
|
8
|
+
# The Azure Storage Management API.
|
9
9
|
#
|
10
10
|
class StorageAccounts
|
11
11
|
include Azure::ARM::Storage::Models
|
@@ -135,7 +135,7 @@ module Azure::ARM::Storage
|
|
135
135
|
# issued with the exact same set of properties, the request will succeed.
|
136
136
|
#
|
137
137
|
# @param resource_group_name [String] The name of the resource group within the
|
138
|
-
# user's subscription.
|
138
|
+
# user's subscription. The name is case insensitive.
|
139
139
|
# @param account_name [String] The name of the storage account within the
|
140
140
|
# specified resource group. Storage account names must be between 3 and 24
|
141
141
|
# characters in length and use numbers and lower-case letters only.
|
@@ -153,7 +153,7 @@ module Azure::ARM::Storage
|
|
153
153
|
|
154
154
|
#
|
155
155
|
# @param resource_group_name [String] The name of the resource group within the
|
156
|
-
# user's subscription.
|
156
|
+
# user's subscription. The name is case insensitive.
|
157
157
|
# @param account_name [String] The name of the storage account within the
|
158
158
|
# specified resource group. Storage account names must be between 3 and 24
|
159
159
|
# characters in length and use numbers and lower-case letters only.
|
@@ -187,7 +187,7 @@ module Azure::ARM::Storage
|
|
187
187
|
# Deletes a storage account in Microsoft Azure.
|
188
188
|
#
|
189
189
|
# @param resource_group_name [String] The name of the resource group within the
|
190
|
-
# user's subscription.
|
190
|
+
# user's subscription. The name is case insensitive.
|
191
191
|
# @param account_name [String] The name of the storage account within the
|
192
192
|
# specified resource group. Storage account names must be between 3 and 24
|
193
193
|
# characters in length and use numbers and lower-case letters only.
|
@@ -204,7 +204,7 @@ module Azure::ARM::Storage
|
|
204
204
|
# Deletes a storage account in Microsoft Azure.
|
205
205
|
#
|
206
206
|
# @param resource_group_name [String] The name of the resource group within the
|
207
|
-
# user's subscription.
|
207
|
+
# user's subscription. The name is case insensitive.
|
208
208
|
# @param account_name [String] The name of the storage account within the
|
209
209
|
# specified resource group. Storage account names must be between 3 and 24
|
210
210
|
# characters in length and use numbers and lower-case letters only.
|
@@ -221,7 +221,7 @@ module Azure::ARM::Storage
|
|
221
221
|
# Deletes a storage account in Microsoft Azure.
|
222
222
|
#
|
223
223
|
# @param resource_group_name [String] The name of the resource group within the
|
224
|
-
# user's subscription.
|
224
|
+
# user's subscription. The name is case insensitive.
|
225
225
|
# @param account_name [String] The name of the storage account within the
|
226
226
|
# specified resource group. Storage account names must be between 3 and 24
|
227
227
|
# characters in length and use numbers and lower-case letters only.
|
@@ -278,7 +278,7 @@ module Azure::ARM::Storage
|
|
278
278
|
# operation should be used to retrieve storage keys.
|
279
279
|
#
|
280
280
|
# @param resource_group_name [String] The name of the resource group within the
|
281
|
-
# user's subscription.
|
281
|
+
# user's subscription. The name is case insensitive.
|
282
282
|
# @param account_name [String] The name of the storage account within the
|
283
283
|
# specified resource group. Storage account names must be between 3 and 24
|
284
284
|
# characters in length and use numbers and lower-case letters only.
|
@@ -298,7 +298,7 @@ module Azure::ARM::Storage
|
|
298
298
|
# operation should be used to retrieve storage keys.
|
299
299
|
#
|
300
300
|
# @param resource_group_name [String] The name of the resource group within the
|
301
|
-
# user's subscription.
|
301
|
+
# user's subscription. The name is case insensitive.
|
302
302
|
# @param account_name [String] The name of the storage account within the
|
303
303
|
# specified resource group. Storage account names must be between 3 and 24
|
304
304
|
# characters in length and use numbers and lower-case letters only.
|
@@ -317,7 +317,7 @@ module Azure::ARM::Storage
|
|
317
317
|
# operation should be used to retrieve storage keys.
|
318
318
|
#
|
319
319
|
# @param resource_group_name [String] The name of the resource group within the
|
320
|
-
# user's subscription.
|
320
|
+
# user's subscription. The name is case insensitive.
|
321
321
|
# @param account_name [String] The name of the storage account within the
|
322
322
|
# specified resource group. Storage account names must be between 3 and 24
|
323
323
|
# characters in length and use numbers and lower-case letters only.
|
@@ -390,7 +390,7 @@ module Azure::ARM::Storage
|
|
390
390
|
# name of the storage account cannot be changed after creation.
|
391
391
|
#
|
392
392
|
# @param resource_group_name [String] The name of the resource group within the
|
393
|
-
# user's subscription.
|
393
|
+
# user's subscription. The name is case insensitive.
|
394
394
|
# @param account_name [String] The name of the storage account within the
|
395
395
|
# specified resource group. Storage account names must be between 3 and 24
|
396
396
|
# characters in length and use numbers and lower-case letters only.
|
@@ -418,7 +418,7 @@ module Azure::ARM::Storage
|
|
418
418
|
# name of the storage account cannot be changed after creation.
|
419
419
|
#
|
420
420
|
# @param resource_group_name [String] The name of the resource group within the
|
421
|
-
# user's subscription.
|
421
|
+
# user's subscription. The name is case insensitive.
|
422
422
|
# @param account_name [String] The name of the storage account within the
|
423
423
|
# specified resource group. Storage account names must be between 3 and 24
|
424
424
|
# characters in length and use numbers and lower-case letters only.
|
@@ -445,7 +445,7 @@ module Azure::ARM::Storage
|
|
445
445
|
# name of the storage account cannot be changed after creation.
|
446
446
|
#
|
447
447
|
# @param resource_group_name [String] The name of the resource group within the
|
448
|
-
# user's subscription.
|
448
|
+
# user's subscription. The name is case insensitive.
|
449
449
|
# @param account_name [String] The name of the storage account within the
|
450
450
|
# specified resource group. Storage account names must be between 3 and 24
|
451
451
|
# characters in length and use numbers and lower-case letters only.
|
@@ -609,7 +609,7 @@ module Azure::ARM::Storage
|
|
609
609
|
# that storage keys are not returned; use the ListKeys operation for this.
|
610
610
|
#
|
611
611
|
# @param resource_group_name [String] The name of the resource group within the
|
612
|
-
# user's subscription.
|
612
|
+
# user's subscription. The name is case insensitive.
|
613
613
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
614
614
|
# will be added to the HTTP request.
|
615
615
|
#
|
@@ -625,7 +625,7 @@ module Azure::ARM::Storage
|
|
625
625
|
# that storage keys are not returned; use the ListKeys operation for this.
|
626
626
|
#
|
627
627
|
# @param resource_group_name [String] The name of the resource group within the
|
628
|
-
# user's subscription.
|
628
|
+
# user's subscription. The name is case insensitive.
|
629
629
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
630
630
|
# will be added to the HTTP request.
|
631
631
|
#
|
@@ -640,7 +640,7 @@ module Azure::ARM::Storage
|
|
640
640
|
# that storage keys are not returned; use the ListKeys operation for this.
|
641
641
|
#
|
642
642
|
# @param resource_group_name [String] The name of the resource group within the
|
643
|
-
# user's subscription.
|
643
|
+
# user's subscription. The name is case insensitive.
|
644
644
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
645
645
|
# to the HTTP request.
|
646
646
|
#
|
@@ -701,7 +701,7 @@ module Azure::ARM::Storage
|
|
701
701
|
# Lists the access keys for the specified storage account.
|
702
702
|
#
|
703
703
|
# @param resource_group_name [String] The name of the resource group within the
|
704
|
-
# user's subscription.
|
704
|
+
# user's subscription. The name is case insensitive.
|
705
705
|
# @param account_name [String] The name of the storage account within the
|
706
706
|
# specified resource group. Storage account names must be between 3 and 24
|
707
707
|
# characters in length and use numbers and lower-case letters only.
|
@@ -719,7 +719,7 @@ module Azure::ARM::Storage
|
|
719
719
|
# Lists the access keys for the specified storage account.
|
720
720
|
#
|
721
721
|
# @param resource_group_name [String] The name of the resource group within the
|
722
|
-
# user's subscription.
|
722
|
+
# user's subscription. The name is case insensitive.
|
723
723
|
# @param account_name [String] The name of the storage account within the
|
724
724
|
# specified resource group. Storage account names must be between 3 and 24
|
725
725
|
# characters in length and use numbers and lower-case letters only.
|
@@ -736,7 +736,7 @@ module Azure::ARM::Storage
|
|
736
736
|
# Lists the access keys for the specified storage account.
|
737
737
|
#
|
738
738
|
# @param resource_group_name [String] The name of the resource group within the
|
739
|
-
# user's subscription.
|
739
|
+
# user's subscription. The name is case insensitive.
|
740
740
|
# @param account_name [String] The name of the storage account within the
|
741
741
|
# specified resource group. Storage account names must be between 3 and 24
|
742
742
|
# characters in length and use numbers and lower-case letters only.
|
@@ -801,7 +801,7 @@ module Azure::ARM::Storage
|
|
801
801
|
# Regenerates one of the access keys for the specified storage account.
|
802
802
|
#
|
803
803
|
# @param resource_group_name [String] The name of the resource group within the
|
804
|
-
# user's subscription.
|
804
|
+
# user's subscription. The name is case insensitive.
|
805
805
|
# @param account_name [String] The name of the storage account within the
|
806
806
|
# specified resource group. Storage account names must be between 3 and 24
|
807
807
|
# characters in length and use numbers and lower-case letters only.
|
@@ -821,7 +821,7 @@ module Azure::ARM::Storage
|
|
821
821
|
# Regenerates one of the access keys for the specified storage account.
|
822
822
|
#
|
823
823
|
# @param resource_group_name [String] The name of the resource group within the
|
824
|
-
# user's subscription.
|
824
|
+
# user's subscription. The name is case insensitive.
|
825
825
|
# @param account_name [String] The name of the storage account within the
|
826
826
|
# specified resource group. Storage account names must be between 3 and 24
|
827
827
|
# characters in length and use numbers and lower-case letters only.
|
@@ -840,7 +840,7 @@ module Azure::ARM::Storage
|
|
840
840
|
# Regenerates one of the access keys for the specified storage account.
|
841
841
|
#
|
842
842
|
# @param resource_group_name [String] The name of the resource group within the
|
843
|
-
# user's subscription.
|
843
|
+
# user's subscription. The name is case insensitive.
|
844
844
|
# @param account_name [String] The name of the storage account within the
|
845
845
|
# specified resource group. Storage account names must be between 3 and 24
|
846
846
|
# characters in length and use numbers and lower-case letters only.
|
@@ -913,6 +913,238 @@ module Azure::ARM::Storage
|
|
913
913
|
promise.execute
|
914
914
|
end
|
915
915
|
|
916
|
+
#
|
917
|
+
# List SAS credentials of a storage account.
|
918
|
+
#
|
919
|
+
# @param resource_group_name [String] The name of the resource group within the
|
920
|
+
# user's subscription. The name is case insensitive.
|
921
|
+
# @param account_name [String] The name of the storage account within the
|
922
|
+
# specified resource group. Storage account names must be between 3 and 24
|
923
|
+
# characters in length and use numbers and lower-case letters only.
|
924
|
+
# @param parameters [AccountSasParameters] The parameters to provide to list
|
925
|
+
# SAS credentials for the storage account.
|
926
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
927
|
+
# will be added to the HTTP request.
|
928
|
+
#
|
929
|
+
# @return [ListAccountSasResponse] operation results.
|
930
|
+
#
|
931
|
+
def list_account_sas(resource_group_name, account_name, parameters, custom_headers = nil)
|
932
|
+
response = list_account_sas_async(resource_group_name, account_name, parameters, custom_headers).value!
|
933
|
+
response.body unless response.nil?
|
934
|
+
end
|
935
|
+
|
936
|
+
#
|
937
|
+
# List SAS credentials of a storage account.
|
938
|
+
#
|
939
|
+
# @param resource_group_name [String] The name of the resource group within the
|
940
|
+
# user's subscription. The name is case insensitive.
|
941
|
+
# @param account_name [String] The name of the storage account within the
|
942
|
+
# specified resource group. Storage account names must be between 3 and 24
|
943
|
+
# characters in length and use numbers and lower-case letters only.
|
944
|
+
# @param parameters [AccountSasParameters] The parameters to provide to list
|
945
|
+
# SAS credentials for the storage account.
|
946
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
947
|
+
# will be added to the HTTP request.
|
948
|
+
#
|
949
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
950
|
+
#
|
951
|
+
def list_account_sas_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil)
|
952
|
+
list_account_sas_async(resource_group_name, account_name, parameters, custom_headers).value!
|
953
|
+
end
|
954
|
+
|
955
|
+
#
|
956
|
+
# List SAS credentials of a storage account.
|
957
|
+
#
|
958
|
+
# @param resource_group_name [String] The name of the resource group within the
|
959
|
+
# user's subscription. The name is case insensitive.
|
960
|
+
# @param account_name [String] The name of the storage account within the
|
961
|
+
# specified resource group. Storage account names must be between 3 and 24
|
962
|
+
# characters in length and use numbers and lower-case letters only.
|
963
|
+
# @param parameters [AccountSasParameters] The parameters to provide to list
|
964
|
+
# SAS credentials for the storage account.
|
965
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
966
|
+
# to the HTTP request.
|
967
|
+
#
|
968
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
969
|
+
#
|
970
|
+
def list_account_sas_async(resource_group_name, account_name, parameters, custom_headers = nil)
|
971
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
972
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
973
|
+
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
974
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
975
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
976
|
+
|
977
|
+
|
978
|
+
request_headers = {}
|
979
|
+
|
980
|
+
# Set Headers
|
981
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
982
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
983
|
+
|
984
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
985
|
+
|
986
|
+
# Serialize Request
|
987
|
+
request_mapper = AccountSasParameters.mapper()
|
988
|
+
request_content = @client.serialize(request_mapper, parameters, 'parameters')
|
989
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
990
|
+
|
991
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/ListAccountSas'
|
992
|
+
|
993
|
+
request_url = @base_url || @client.base_url
|
994
|
+
|
995
|
+
options = {
|
996
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
997
|
+
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
|
998
|
+
query_params: {'api-version' => @client.api_version},
|
999
|
+
body: request_content,
|
1000
|
+
headers: request_headers.merge(custom_headers || {}),
|
1001
|
+
base_url: request_url
|
1002
|
+
}
|
1003
|
+
promise = @client.make_request_async(:post, path_template, options)
|
1004
|
+
|
1005
|
+
promise = promise.then do |result|
|
1006
|
+
http_response = result.response
|
1007
|
+
status_code = http_response.status
|
1008
|
+
response_content = http_response.body
|
1009
|
+
unless status_code == 200
|
1010
|
+
error_model = JSON.load(response_content)
|
1011
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1012
|
+
end
|
1013
|
+
|
1014
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1015
|
+
# Deserialize Response
|
1016
|
+
if status_code == 200
|
1017
|
+
begin
|
1018
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1019
|
+
result_mapper = ListAccountSasResponse.mapper()
|
1020
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
1021
|
+
rescue Exception => e
|
1022
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1023
|
+
end
|
1024
|
+
end
|
1025
|
+
|
1026
|
+
result
|
1027
|
+
end
|
1028
|
+
|
1029
|
+
promise.execute
|
1030
|
+
end
|
1031
|
+
|
1032
|
+
#
|
1033
|
+
# List service SAS credentials of a specific resource.
|
1034
|
+
#
|
1035
|
+
# @param resource_group_name [String] The name of the resource group within the
|
1036
|
+
# user's subscription. The name is case insensitive.
|
1037
|
+
# @param account_name [String] The name of the storage account within the
|
1038
|
+
# specified resource group. Storage account names must be between 3 and 24
|
1039
|
+
# characters in length and use numbers and lower-case letters only.
|
1040
|
+
# @param parameters [ServiceSasParameters] The parameters to provide to list
|
1041
|
+
# service SAS credentials.
|
1042
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1043
|
+
# will be added to the HTTP request.
|
1044
|
+
#
|
1045
|
+
# @return [ListServiceSasResponse] operation results.
|
1046
|
+
#
|
1047
|
+
def list_service_sas(resource_group_name, account_name, parameters, custom_headers = nil)
|
1048
|
+
response = list_service_sas_async(resource_group_name, account_name, parameters, custom_headers).value!
|
1049
|
+
response.body unless response.nil?
|
1050
|
+
end
|
1051
|
+
|
1052
|
+
#
|
1053
|
+
# List service SAS credentials of a specific resource.
|
1054
|
+
#
|
1055
|
+
# @param resource_group_name [String] The name of the resource group within the
|
1056
|
+
# user's subscription. The name is case insensitive.
|
1057
|
+
# @param account_name [String] The name of the storage account within the
|
1058
|
+
# specified resource group. Storage account names must be between 3 and 24
|
1059
|
+
# characters in length and use numbers and lower-case letters only.
|
1060
|
+
# @param parameters [ServiceSasParameters] The parameters to provide to list
|
1061
|
+
# service SAS credentials.
|
1062
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1063
|
+
# will be added to the HTTP request.
|
1064
|
+
#
|
1065
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1066
|
+
#
|
1067
|
+
def list_service_sas_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil)
|
1068
|
+
list_service_sas_async(resource_group_name, account_name, parameters, custom_headers).value!
|
1069
|
+
end
|
1070
|
+
|
1071
|
+
#
|
1072
|
+
# List service SAS credentials of a specific resource.
|
1073
|
+
#
|
1074
|
+
# @param resource_group_name [String] The name of the resource group within the
|
1075
|
+
# user's subscription. The name is case insensitive.
|
1076
|
+
# @param account_name [String] The name of the storage account within the
|
1077
|
+
# specified resource group. Storage account names must be between 3 and 24
|
1078
|
+
# characters in length and use numbers and lower-case letters only.
|
1079
|
+
# @param parameters [ServiceSasParameters] The parameters to provide to list
|
1080
|
+
# service SAS credentials.
|
1081
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1082
|
+
# to the HTTP request.
|
1083
|
+
#
|
1084
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1085
|
+
#
|
1086
|
+
def list_service_sas_async(resource_group_name, account_name, parameters, custom_headers = nil)
|
1087
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1088
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
1089
|
+
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
1090
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1091
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1092
|
+
|
1093
|
+
|
1094
|
+
request_headers = {}
|
1095
|
+
|
1096
|
+
# Set Headers
|
1097
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1098
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1099
|
+
|
1100
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1101
|
+
|
1102
|
+
# Serialize Request
|
1103
|
+
request_mapper = ServiceSasParameters.mapper()
|
1104
|
+
request_content = @client.serialize(request_mapper, parameters, 'parameters')
|
1105
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
1106
|
+
|
1107
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/ListServiceSas'
|
1108
|
+
|
1109
|
+
request_url = @base_url || @client.base_url
|
1110
|
+
|
1111
|
+
options = {
|
1112
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1113
|
+
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
|
1114
|
+
query_params: {'api-version' => @client.api_version},
|
1115
|
+
body: request_content,
|
1116
|
+
headers: request_headers.merge(custom_headers || {}),
|
1117
|
+
base_url: request_url
|
1118
|
+
}
|
1119
|
+
promise = @client.make_request_async(:post, path_template, options)
|
1120
|
+
|
1121
|
+
promise = promise.then do |result|
|
1122
|
+
http_response = result.response
|
1123
|
+
status_code = http_response.status
|
1124
|
+
response_content = http_response.body
|
1125
|
+
unless status_code == 200
|
1126
|
+
error_model = JSON.load(response_content)
|
1127
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1128
|
+
end
|
1129
|
+
|
1130
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1131
|
+
# Deserialize Response
|
1132
|
+
if status_code == 200
|
1133
|
+
begin
|
1134
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1135
|
+
result_mapper = ListServiceSasResponse.mapper()
|
1136
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
1137
|
+
rescue Exception => e
|
1138
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1139
|
+
end
|
1140
|
+
end
|
1141
|
+
|
1142
|
+
result
|
1143
|
+
end
|
1144
|
+
|
1145
|
+
promise.execute
|
1146
|
+
end
|
1147
|
+
|
916
1148
|
#
|
917
1149
|
# Asynchronously creates a new storage account with the specified parameters.
|
918
1150
|
# If an account is already created and a subsequent create request is issued
|
@@ -921,7 +1153,7 @@ module Azure::ARM::Storage
|
|
921
1153
|
# issued with the exact same set of properties, the request will succeed.
|
922
1154
|
#
|
923
1155
|
# @param resource_group_name [String] The name of the resource group within the
|
924
|
-
# user's subscription.
|
1156
|
+
# user's subscription. The name is case insensitive.
|
925
1157
|
# @param account_name [String] The name of the storage account within the
|
926
1158
|
# specified resource group. Storage account names must be between 3 and 24
|
927
1159
|
# characters in length and use numbers and lower-case letters only.
|
@@ -945,7 +1177,7 @@ module Azure::ARM::Storage
|
|
945
1177
|
# issued with the exact same set of properties, the request will succeed.
|
946
1178
|
#
|
947
1179
|
# @param resource_group_name [String] The name of the resource group within the
|
948
|
-
# user's subscription.
|
1180
|
+
# user's subscription. The name is case insensitive.
|
949
1181
|
# @param account_name [String] The name of the storage account within the
|
950
1182
|
# specified resource group. Storage account names must be between 3 and 24
|
951
1183
|
# characters in length and use numbers and lower-case letters only.
|
@@ -968,7 +1200,7 @@ module Azure::ARM::Storage
|
|
968
1200
|
# issued with the exact same set of properties, the request will succeed.
|
969
1201
|
#
|
970
1202
|
# @param resource_group_name [String] The name of the resource group within the
|
971
|
-
# user's subscription.
|
1203
|
+
# user's subscription. The name is case insensitive.
|
972
1204
|
# @param account_name [String] The name of the storage account within the
|
973
1205
|
# specified resource group. Storage account names must be between 3 and 24
|
974
1206
|
# characters in length and use numbers and lower-case letters only.
|
@@ -48,17 +48,16 @@ module Azure::ARM::Storage
|
|
48
48
|
# @param base_url [String] the base URI of the service.
|
49
49
|
# @param options [Array] filters to be applied to the HTTP requests.
|
50
50
|
#
|
51
|
-
def initialize(credentials, base_url = nil, options = nil)
|
51
|
+
def initialize(credentials = nil, base_url = nil, options = nil)
|
52
52
|
super(credentials, options)
|
53
53
|
@base_url = base_url || 'https://management.azure.com'
|
54
54
|
|
55
|
-
fail ArgumentError, 'credentials
|
56
|
-
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials)
|
55
|
+
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
|
57
56
|
@credentials = credentials
|
58
57
|
|
59
58
|
@storage_accounts = StorageAccounts.new(self)
|
60
59
|
@usage_operations = UsageOperations.new(self)
|
61
|
-
@api_version = '2016-
|
60
|
+
@api_version = '2016-12-01'
|
62
61
|
@accept_language = 'en-US'
|
63
62
|
@long_running_operation_retry_timeout = 30
|
64
63
|
@generate_client_request_id = true
|
@@ -67,7 +66,7 @@ module Azure::ARM::Storage
|
|
67
66
|
|
68
67
|
#
|
69
68
|
# Makes a request and returns the body of the response.
|
70
|
-
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
69
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
71
70
|
# @param path [String] the path, relative to {base_url}.
|
72
71
|
# @param options [Hash{String=>String}] specifying any request options like :body.
|
73
72
|
# @return [Hash{String=>String}] containing the body of the response.
|
@@ -128,7 +127,7 @@ module Azure::ARM::Storage
|
|
128
127
|
def add_telemetry
|
129
128
|
sdk_information = 'azure_mgmt_storage'
|
130
129
|
if defined? Azure::ARM::Storage::VERSION
|
131
|
-
sdk_information = "#{sdk_information}/#{Azure::ARM::Storage::VERSION}"
|
130
|
+
sdk_information = "#{sdk_information}/#{Azure::ARM::Storage::VERSION}"
|
132
131
|
end
|
133
132
|
add_user_agent_information(sdk_information)
|
134
133
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azure_mgmt_storage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.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:
|
11
|
+
date: 2017-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
75
|
+
version: 0.7.0
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.
|
82
|
+
version: 0.7.0
|
83
83
|
description: Microsoft Azure Storage Management Client Library for Ruby
|
84
84
|
email: azrubyteam@microsoft.com
|
85
85
|
executables: []
|
@@ -91,6 +91,7 @@ files:
|
|
91
91
|
- lib/azure_mgmt_storage.rb
|
92
92
|
- lib/generated/azure_mgmt_storage.rb
|
93
93
|
- lib/generated/azure_mgmt_storage/models/access_tier.rb
|
94
|
+
- lib/generated/azure_mgmt_storage/models/account_sas_parameters.rb
|
94
95
|
- lib/generated/azure_mgmt_storage/models/account_status.rb
|
95
96
|
- lib/generated/azure_mgmt_storage/models/check_name_availability_result.rb
|
96
97
|
- lib/generated/azure_mgmt_storage/models/custom_domain.rb
|
@@ -98,10 +99,14 @@ files:
|
|
98
99
|
- lib/generated/azure_mgmt_storage/models/encryption_service.rb
|
99
100
|
- lib/generated/azure_mgmt_storage/models/encryption_services.rb
|
100
101
|
- lib/generated/azure_mgmt_storage/models/endpoints.rb
|
102
|
+
- lib/generated/azure_mgmt_storage/models/http_protocol.rb
|
101
103
|
- lib/generated/azure_mgmt_storage/models/key_permission.rb
|
102
104
|
- lib/generated/azure_mgmt_storage/models/kind.rb
|
105
|
+
- lib/generated/azure_mgmt_storage/models/list_account_sas_response.rb
|
106
|
+
- lib/generated/azure_mgmt_storage/models/list_service_sas_response.rb
|
103
107
|
- lib/generated/azure_mgmt_storage/models/provisioning_state.rb
|
104
108
|
- lib/generated/azure_mgmt_storage/models/reason.rb
|
109
|
+
- lib/generated/azure_mgmt_storage/models/service_sas_parameters.rb
|
105
110
|
- lib/generated/azure_mgmt_storage/models/sku.rb
|
106
111
|
- lib/generated/azure_mgmt_storage/models/sku_name.rb
|
107
112
|
- lib/generated/azure_mgmt_storage/models/sku_tier.rb
|