azure_mgmt_storage 0.15.2 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2015-05-01-preview/generated/azure_mgmt_storage/storage_accounts.rb +76 -73
- data/lib/2015-05-01-preview/generated/azure_mgmt_storage/storage_management_client.rb +4 -1
- data/lib/2015-05-01-preview/generated/azure_mgmt_storage/usage_operations.rb +6 -5
- data/lib/2015-06-15/generated/azure_mgmt_storage/storage_accounts.rb +58 -57
- data/lib/2015-06-15/generated/azure_mgmt_storage/storage_management_client.rb +4 -1
- data/lib/2015-06-15/generated/azure_mgmt_storage/usage_operations.rb +6 -5
- data/lib/2016-01-01/generated/azure_mgmt_storage/storage_accounts.rb +58 -57
- data/lib/2016-01-01/generated/azure_mgmt_storage/storage_management_client.rb +4 -1
- data/lib/2016-01-01/generated/azure_mgmt_storage/usage_operations.rb +6 -5
- data/lib/2016-12-01/generated/azure_mgmt_storage/storage_accounts.rb +70 -71
- data/lib/2016-12-01/generated/azure_mgmt_storage/storage_management_client.rb +4 -1
- data/lib/2016-12-01/generated/azure_mgmt_storage/usage_operations.rb +6 -5
- data/lib/2017-06-01/generated/azure_mgmt_storage/operations.rb +6 -5
- data/lib/2017-06-01/generated/azure_mgmt_storage/skus.rb +6 -5
- data/lib/2017-06-01/generated/azure_mgmt_storage/storage_accounts.rb +70 -71
- data/lib/2017-06-01/generated/azure_mgmt_storage/storage_management_client.rb +4 -1
- data/lib/2017-06-01/generated/azure_mgmt_storage/usage_operations.rb +6 -5
- data/lib/2017-10-01/generated/azure_mgmt_storage/operations.rb +6 -5
- data/lib/2017-10-01/generated/azure_mgmt_storage/skus.rb +6 -5
- data/lib/2017-10-01/generated/azure_mgmt_storage/storage_accounts.rb +70 -71
- data/lib/2017-10-01/generated/azure_mgmt_storage/storage_management_client.rb +4 -1
- data/lib/2017-10-01/generated/azure_mgmt_storage/usage_operations.rb +6 -5
- data/lib/profiles/latest/modules/storage_profile_module.rb +202 -183
- data/lib/profiles/latest/storage_latest_profile_client.rb +28 -9
- data/lib/profiles/latest/storage_module_definition.rb +0 -1
- data/lib/profiles/v2017_03_09/modules/storage_profile_module.rb +142 -87
- data/lib/profiles/v2017_03_09/storage_module_definition.rb +0 -1
- data/lib/profiles/v2017_03_09/storage_v2017_03_09_profile_client.rb +28 -9
- data/lib/version.rb +1 -1
- metadata +3 -3
@@ -5,17 +5,36 @@
|
|
5
5
|
require 'profiles/latest/storage_module_definition'
|
6
6
|
require 'profiles/latest/modules/storage_profile_module'
|
7
7
|
|
8
|
-
module Azure::Storage::Profiles::Latest
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
8
|
+
module Azure::Storage::Profiles::Latest
|
9
|
+
module Mgmt
|
10
|
+
#
|
11
|
+
# Client class for the Latest profile SDK.
|
12
|
+
#
|
13
|
+
class Client < StorageManagementClass
|
14
|
+
include MsRestAzure::Common::Configurable
|
14
15
|
|
16
|
+
#
|
17
|
+
# Initializes a new instance of the Client class.
|
18
|
+
# @param options [Hash] hash of client options.
|
19
|
+
# options = {
|
20
|
+
# tenant_id: 'YOUR TENANT ID',
|
21
|
+
# client_id: 'YOUR CLIENT ID',
|
22
|
+
# client_secret: 'YOUR CLIENT SECRET',
|
23
|
+
# subscription_id: 'YOUR SUBSCRIPTION ID',
|
24
|
+
# credentials: credentials,
|
25
|
+
# active_directory_settings: active_directory_settings,
|
26
|
+
# base_url: 'YOUR BASE URL',
|
27
|
+
# options: options
|
28
|
+
# }
|
29
|
+
# 'credentials' are optional and if not passed in the hash, will be obtained
|
30
|
+
# from MsRest::TokenCredentials using MsRestAzure::ApplicationTokenProvider.
|
31
|
+
#
|
32
|
+
# Also, base_url, active_directory_settings & options are optional.
|
33
|
+
#
|
34
|
+
def initialize(options = {})
|
35
|
+
super(options)
|
36
|
+
end
|
15
37
|
|
16
|
-
def initialize(options = {})
|
17
|
-
super(options)
|
18
38
|
end
|
19
|
-
|
20
39
|
end
|
21
40
|
end
|
@@ -4,36 +4,46 @@
|
|
4
4
|
|
5
5
|
require 'azure_mgmt_storage'
|
6
6
|
|
7
|
-
module Azure::Storage::Profiles::V2017_03_09
|
8
|
-
|
9
|
-
|
7
|
+
module Azure::Storage::Profiles::V2017_03_09
|
8
|
+
module Mgmt
|
9
|
+
StorageAccounts = Azure::Storage::Mgmt::V2016_01_01::StorageAccounts
|
10
|
+
UsageOperations = Azure::Storage::Mgmt::V2016_01_01::UsageOperations
|
10
11
|
|
11
12
|
module Models
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
13
|
+
StorageAccountCheckNameAvailabilityParameters = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountCheckNameAvailabilityParameters
|
14
|
+
StorageAccountKey = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountKey
|
15
|
+
Sku = Azure::Storage::Mgmt::V2016_01_01::Models::Sku
|
16
|
+
StorageAccountListResult = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountListResult
|
17
|
+
EncryptionService = Azure::Storage::Mgmt::V2016_01_01::Models::EncryptionService
|
18
|
+
StorageAccountListKeysResult = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountListKeysResult
|
19
|
+
Encryption = Azure::Storage::Mgmt::V2016_01_01::Models::Encryption
|
20
|
+
StorageAccountRegenerateKeyParameters = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountRegenerateKeyParameters
|
21
|
+
Endpoints = Azure::Storage::Mgmt::V2016_01_01::Models::Endpoints
|
22
|
+
StorageAccountUpdateParameters = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountUpdateParameters
|
23
|
+
CustomDomain = Azure::Storage::Mgmt::V2016_01_01::Models::CustomDomain
|
24
|
+
UsageName = Azure::Storage::Mgmt::V2016_01_01::Models::UsageName
|
25
|
+
StorageAccountCreateParameters = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountCreateParameters
|
26
|
+
Usage = Azure::Storage::Mgmt::V2016_01_01::Models::Usage
|
27
|
+
EncryptionServices = Azure::Storage::Mgmt::V2016_01_01::Models::EncryptionServices
|
28
|
+
UsageListResult = Azure::Storage::Mgmt::V2016_01_01::Models::UsageListResult
|
29
|
+
CheckNameAvailabilityResult = Azure::Storage::Mgmt::V2016_01_01::Models::CheckNameAvailabilityResult
|
30
|
+
Resource = Azure::Storage::Mgmt::V2016_01_01::Models::Resource
|
31
|
+
StorageAccount = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccount
|
32
|
+
Reason = Azure::Storage::Mgmt::V2016_01_01::Models::Reason
|
33
|
+
SkuName = Azure::Storage::Mgmt::V2016_01_01::Models::SkuName
|
34
|
+
SkuTier = Azure::Storage::Mgmt::V2016_01_01::Models::SkuTier
|
35
|
+
AccessTier = Azure::Storage::Mgmt::V2016_01_01::Models::AccessTier
|
36
|
+
Kind = Azure::Storage::Mgmt::V2016_01_01::Models::Kind
|
37
|
+
ProvisioningState = Azure::Storage::Mgmt::V2016_01_01::Models::ProvisioningState
|
38
|
+
AccountStatus = Azure::Storage::Mgmt::V2016_01_01::Models::AccountStatus
|
39
|
+
KeyPermission = Azure::Storage::Mgmt::V2016_01_01::Models::KeyPermission
|
40
|
+
UsageUnit = Azure::Storage::Mgmt::V2016_01_01::Models::UsageUnit
|
31
41
|
end
|
32
42
|
|
33
43
|
#
|
34
|
-
#
|
44
|
+
# StorageManagementClass
|
35
45
|
#
|
36
|
-
class
|
46
|
+
class StorageManagementClass
|
37
47
|
attr_reader :storage_accounts, :usage_operations, :configurable, :base_url, :options, :model_classes
|
38
48
|
|
39
49
|
def initialize(options = {})
|
@@ -45,76 +55,121 @@ module Azure::Storage::Profiles::V2017_03_09::Mgmt
|
|
45
55
|
|
46
56
|
reset!(options)
|
47
57
|
|
48
|
-
@configurable
|
58
|
+
@configurable = self
|
59
|
+
@base_url = options[:base_url].nil? ? nil:options[:base_url]
|
60
|
+
@options = options[:options].nil? ? nil:options[:options]
|
49
61
|
|
50
|
-
client_0 = Azure::Storage::Mgmt::
|
51
|
-
if(client_0.respond_to?(:subscription_id))
|
52
|
-
client_0.subscription_id = configurable.subscription_id
|
62
|
+
@client_0 = Azure::Storage::Mgmt::V2016_01_01::StorageManagementClient.new(configurable.credentials, base_url, options)
|
63
|
+
if(@client_0.respond_to?(:subscription_id))
|
64
|
+
@client_0.subscription_id = configurable.subscription_id
|
53
65
|
end
|
54
|
-
@
|
55
|
-
@
|
66
|
+
add_telemetry(@client_0)
|
67
|
+
@storage_accounts = @client_0.storage_accounts
|
68
|
+
@usage_operations = @client_0.usage_operations
|
56
69
|
|
57
70
|
@model_classes = ModelClasses.new
|
58
71
|
end
|
59
72
|
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
def storage_account_create_parameters
|
71
|
-
Azure::Storage::Mgmt::V2015_06_15::Models::StorageAccountCreateParameters
|
72
|
-
end
|
73
|
-
def storage_account_regenerate_key_parameters
|
74
|
-
Azure::Storage::Mgmt::V2015_06_15::Models::StorageAccountRegenerateKeyParameters
|
75
|
-
end
|
76
|
-
def custom_domain
|
77
|
-
Azure::Storage::Mgmt::V2015_06_15::Models::CustomDomain
|
78
|
-
end
|
79
|
-
def usage_name
|
80
|
-
Azure::Storage::Mgmt::V2015_06_15::Models::UsageName
|
81
|
-
end
|
82
|
-
def storage_account_keys
|
83
|
-
Azure::Storage::Mgmt::V2015_06_15::Models::StorageAccountKeys
|
84
|
-
end
|
85
|
-
def usage
|
86
|
-
Azure::Storage::Mgmt::V2015_06_15::Models::Usage
|
87
|
-
end
|
88
|
-
def endpoints
|
89
|
-
Azure::Storage::Mgmt::V2015_06_15::Models::Endpoints
|
90
|
-
end
|
91
|
-
def usage_list_result
|
92
|
-
Azure::Storage::Mgmt::V2015_06_15::Models::UsageListResult
|
93
|
-
end
|
94
|
-
def check_name_availability_result
|
95
|
-
Azure::Storage::Mgmt::V2015_06_15::Models::CheckNameAvailabilityResult
|
96
|
-
end
|
97
|
-
def resource
|
98
|
-
Azure::Storage::Mgmt::V2015_06_15::Models::Resource
|
99
|
-
end
|
100
|
-
def storage_account
|
101
|
-
Azure::Storage::Mgmt::V2015_06_15::Models::StorageAccount
|
102
|
-
end
|
103
|
-
def reason
|
104
|
-
Azure::Storage::Mgmt::V2015_06_15::Models::Reason
|
105
|
-
end
|
106
|
-
def account_type
|
107
|
-
Azure::Storage::Mgmt::V2015_06_15::Models::AccountType
|
108
|
-
end
|
109
|
-
def provisioning_state
|
110
|
-
Azure::Storage::Mgmt::V2015_06_15::Models::ProvisioningState
|
111
|
-
end
|
112
|
-
def account_status
|
113
|
-
Azure::Storage::Mgmt::V2015_06_15::Models::AccountStatus
|
114
|
-
end
|
115
|
-
def usage_unit
|
116
|
-
Azure::Storage::Mgmt::V2015_06_15::Models::UsageUnit
|
73
|
+
def add_telemetry(client)
|
74
|
+
profile_information = 'Profiles/V2017_03_09/Storage/Mgmt'
|
75
|
+
client.add_user_agent_information(profile_information)
|
76
|
+
end
|
77
|
+
|
78
|
+
def method_missing(method, *args)
|
79
|
+
if @client_0.respond_to?method
|
80
|
+
@client_0.send(method, *args)
|
81
|
+
else
|
82
|
+
super
|
117
83
|
end
|
118
84
|
end
|
85
|
+
|
86
|
+
end
|
87
|
+
|
88
|
+
class ModelClasses
|
89
|
+
def storage_account_check_name_availability_parameters
|
90
|
+
Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountCheckNameAvailabilityParameters
|
91
|
+
end
|
92
|
+
def storage_account_key
|
93
|
+
Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountKey
|
94
|
+
end
|
95
|
+
def sku
|
96
|
+
Azure::Storage::Mgmt::V2016_01_01::Models::Sku
|
97
|
+
end
|
98
|
+
def storage_account_list_result
|
99
|
+
Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountListResult
|
100
|
+
end
|
101
|
+
def encryption_service
|
102
|
+
Azure::Storage::Mgmt::V2016_01_01::Models::EncryptionService
|
103
|
+
end
|
104
|
+
def storage_account_list_keys_result
|
105
|
+
Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountListKeysResult
|
106
|
+
end
|
107
|
+
def encryption
|
108
|
+
Azure::Storage::Mgmt::V2016_01_01::Models::Encryption
|
109
|
+
end
|
110
|
+
def storage_account_regenerate_key_parameters
|
111
|
+
Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountRegenerateKeyParameters
|
112
|
+
end
|
113
|
+
def endpoints
|
114
|
+
Azure::Storage::Mgmt::V2016_01_01::Models::Endpoints
|
115
|
+
end
|
116
|
+
def storage_account_update_parameters
|
117
|
+
Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountUpdateParameters
|
118
|
+
end
|
119
|
+
def custom_domain
|
120
|
+
Azure::Storage::Mgmt::V2016_01_01::Models::CustomDomain
|
121
|
+
end
|
122
|
+
def usage_name
|
123
|
+
Azure::Storage::Mgmt::V2016_01_01::Models::UsageName
|
124
|
+
end
|
125
|
+
def storage_account_create_parameters
|
126
|
+
Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountCreateParameters
|
127
|
+
end
|
128
|
+
def usage
|
129
|
+
Azure::Storage::Mgmt::V2016_01_01::Models::Usage
|
130
|
+
end
|
131
|
+
def encryption_services
|
132
|
+
Azure::Storage::Mgmt::V2016_01_01::Models::EncryptionServices
|
133
|
+
end
|
134
|
+
def usage_list_result
|
135
|
+
Azure::Storage::Mgmt::V2016_01_01::Models::UsageListResult
|
136
|
+
end
|
137
|
+
def check_name_availability_result
|
138
|
+
Azure::Storage::Mgmt::V2016_01_01::Models::CheckNameAvailabilityResult
|
139
|
+
end
|
140
|
+
def resource
|
141
|
+
Azure::Storage::Mgmt::V2016_01_01::Models::Resource
|
142
|
+
end
|
143
|
+
def storage_account
|
144
|
+
Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccount
|
145
|
+
end
|
146
|
+
def reason
|
147
|
+
Azure::Storage::Mgmt::V2016_01_01::Models::Reason
|
148
|
+
end
|
149
|
+
def sku_name
|
150
|
+
Azure::Storage::Mgmt::V2016_01_01::Models::SkuName
|
151
|
+
end
|
152
|
+
def sku_tier
|
153
|
+
Azure::Storage::Mgmt::V2016_01_01::Models::SkuTier
|
154
|
+
end
|
155
|
+
def access_tier
|
156
|
+
Azure::Storage::Mgmt::V2016_01_01::Models::AccessTier
|
157
|
+
end
|
158
|
+
def kind
|
159
|
+
Azure::Storage::Mgmt::V2016_01_01::Models::Kind
|
160
|
+
end
|
161
|
+
def provisioning_state
|
162
|
+
Azure::Storage::Mgmt::V2016_01_01::Models::ProvisioningState
|
163
|
+
end
|
164
|
+
def account_status
|
165
|
+
Azure::Storage::Mgmt::V2016_01_01::Models::AccountStatus
|
166
|
+
end
|
167
|
+
def key_permission
|
168
|
+
Azure::Storage::Mgmt::V2016_01_01::Models::KeyPermission
|
169
|
+
end
|
170
|
+
def usage_unit
|
171
|
+
Azure::Storage::Mgmt::V2016_01_01::Models::UsageUnit
|
172
|
+
end
|
119
173
|
end
|
174
|
+
end
|
120
175
|
end
|
@@ -5,17 +5,36 @@
|
|
5
5
|
require 'profiles/v2017_03_09/storage_module_definition'
|
6
6
|
require 'profiles/v2017_03_09/modules/storage_profile_module'
|
7
7
|
|
8
|
-
module Azure::Storage::Profiles::V2017_03_09
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
8
|
+
module Azure::Storage::Profiles::V2017_03_09
|
9
|
+
module Mgmt
|
10
|
+
#
|
11
|
+
# Client class for the V2017_03_09 profile SDK.
|
12
|
+
#
|
13
|
+
class Client < StorageManagementClass
|
14
|
+
include MsRestAzure::Common::Configurable
|
14
15
|
|
16
|
+
#
|
17
|
+
# Initializes a new instance of the Client class.
|
18
|
+
# @param options [Hash] hash of client options.
|
19
|
+
# options = {
|
20
|
+
# tenant_id: 'YOUR TENANT ID',
|
21
|
+
# client_id: 'YOUR CLIENT ID',
|
22
|
+
# client_secret: 'YOUR CLIENT SECRET',
|
23
|
+
# subscription_id: 'YOUR SUBSCRIPTION ID',
|
24
|
+
# credentials: credentials,
|
25
|
+
# active_directory_settings: active_directory_settings,
|
26
|
+
# base_url: 'YOUR BASE URL',
|
27
|
+
# options: options
|
28
|
+
# }
|
29
|
+
# 'credentials' are optional and if not passed in the hash, will be obtained
|
30
|
+
# from MsRest::TokenCredentials using MsRestAzure::ApplicationTokenProvider.
|
31
|
+
#
|
32
|
+
# Also, base_url, active_directory_settings & options are optional.
|
33
|
+
#
|
34
|
+
def initialize(options = {})
|
35
|
+
super(options)
|
36
|
+
end
|
15
37
|
|
16
|
-
def initialize(options = {})
|
17
|
-
super(options)
|
18
38
|
end
|
19
|
-
|
20
39
|
end
|
21
40
|
end
|
data/lib/version.rb
CHANGED
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.16.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: 2018-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -371,7 +371,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
371
371
|
version: '0'
|
372
372
|
requirements: []
|
373
373
|
rubyforge_project:
|
374
|
-
rubygems_version: 2.
|
374
|
+
rubygems_version: 2.6.10
|
375
375
|
signing_key:
|
376
376
|
specification_version: 4
|
377
377
|
summary: Official ruby client library to consume Microsoft Azure Storage Management
|