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.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-05-01-preview/generated/azure_mgmt_storage/storage_accounts.rb +76 -73
  3. data/lib/2015-05-01-preview/generated/azure_mgmt_storage/storage_management_client.rb +4 -1
  4. data/lib/2015-05-01-preview/generated/azure_mgmt_storage/usage_operations.rb +6 -5
  5. data/lib/2015-06-15/generated/azure_mgmt_storage/storage_accounts.rb +58 -57
  6. data/lib/2015-06-15/generated/azure_mgmt_storage/storage_management_client.rb +4 -1
  7. data/lib/2015-06-15/generated/azure_mgmt_storage/usage_operations.rb +6 -5
  8. data/lib/2016-01-01/generated/azure_mgmt_storage/storage_accounts.rb +58 -57
  9. data/lib/2016-01-01/generated/azure_mgmt_storage/storage_management_client.rb +4 -1
  10. data/lib/2016-01-01/generated/azure_mgmt_storage/usage_operations.rb +6 -5
  11. data/lib/2016-12-01/generated/azure_mgmt_storage/storage_accounts.rb +70 -71
  12. data/lib/2016-12-01/generated/azure_mgmt_storage/storage_management_client.rb +4 -1
  13. data/lib/2016-12-01/generated/azure_mgmt_storage/usage_operations.rb +6 -5
  14. data/lib/2017-06-01/generated/azure_mgmt_storage/operations.rb +6 -5
  15. data/lib/2017-06-01/generated/azure_mgmt_storage/skus.rb +6 -5
  16. data/lib/2017-06-01/generated/azure_mgmt_storage/storage_accounts.rb +70 -71
  17. data/lib/2017-06-01/generated/azure_mgmt_storage/storage_management_client.rb +4 -1
  18. data/lib/2017-06-01/generated/azure_mgmt_storage/usage_operations.rb +6 -5
  19. data/lib/2017-10-01/generated/azure_mgmt_storage/operations.rb +6 -5
  20. data/lib/2017-10-01/generated/azure_mgmt_storage/skus.rb +6 -5
  21. data/lib/2017-10-01/generated/azure_mgmt_storage/storage_accounts.rb +70 -71
  22. data/lib/2017-10-01/generated/azure_mgmt_storage/storage_management_client.rb +4 -1
  23. data/lib/2017-10-01/generated/azure_mgmt_storage/usage_operations.rb +6 -5
  24. data/lib/profiles/latest/modules/storage_profile_module.rb +202 -183
  25. data/lib/profiles/latest/storage_latest_profile_client.rb +28 -9
  26. data/lib/profiles/latest/storage_module_definition.rb +0 -1
  27. data/lib/profiles/v2017_03_09/modules/storage_profile_module.rb +142 -87
  28. data/lib/profiles/v2017_03_09/storage_module_definition.rb +0 -1
  29. data/lib/profiles/v2017_03_09/storage_v2017_03_09_profile_client.rb +28 -9
  30. data/lib/version.rb +1 -1
  31. 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::Mgmt
9
- #
10
- # Client class for the Latest profile SDK.
11
- #
12
- class Client < StorageClass
13
- include MsRestAzure::Common::Configurable
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
@@ -6,4 +6,3 @@ module Azure end
6
6
  module Azure::Storage end
7
7
  module Azure::Storage::Profiles end
8
8
  module Azure::Storage::Profiles::Latest end
9
- module Azure::Storage::Profiles::Latest::Mgmt end
@@ -4,36 +4,46 @@
4
4
 
5
5
  require 'azure_mgmt_storage'
6
6
 
7
- module Azure::Storage::Profiles::V2017_03_09::Mgmt
8
- StorageAccounts = Azure::Storage::Mgmt::V2015_06_15::StorageAccounts
9
- UsageOperations = Azure::Storage::Mgmt::V2015_06_15::UsageOperations
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
- StorageAccountListResult = Azure::Storage::Mgmt::V2015_06_15::Models::StorageAccountListResult
13
- StorageAccountCheckNameAvailabilityParameters = Azure::Storage::Mgmt::V2015_06_15::Models::StorageAccountCheckNameAvailabilityParameters
14
- StorageAccountUpdateParameters = Azure::Storage::Mgmt::V2015_06_15::Models::StorageAccountUpdateParameters
15
- StorageAccountCreateParameters = Azure::Storage::Mgmt::V2015_06_15::Models::StorageAccountCreateParameters
16
- StorageAccountRegenerateKeyParameters = Azure::Storage::Mgmt::V2015_06_15::Models::StorageAccountRegenerateKeyParameters
17
- CustomDomain = Azure::Storage::Mgmt::V2015_06_15::Models::CustomDomain
18
- UsageName = Azure::Storage::Mgmt::V2015_06_15::Models::UsageName
19
- StorageAccountKeys = Azure::Storage::Mgmt::V2015_06_15::Models::StorageAccountKeys
20
- Usage = Azure::Storage::Mgmt::V2015_06_15::Models::Usage
21
- Endpoints = Azure::Storage::Mgmt::V2015_06_15::Models::Endpoints
22
- UsageListResult = Azure::Storage::Mgmt::V2015_06_15::Models::UsageListResult
23
- CheckNameAvailabilityResult = Azure::Storage::Mgmt::V2015_06_15::Models::CheckNameAvailabilityResult
24
- Resource = Azure::Storage::Mgmt::V2015_06_15::Models::Resource
25
- StorageAccount = Azure::Storage::Mgmt::V2015_06_15::Models::StorageAccount
26
- Reason = Azure::Storage::Mgmt::V2015_06_15::Models::Reason
27
- AccountType = Azure::Storage::Mgmt::V2015_06_15::Models::AccountType
28
- ProvisioningState = Azure::Storage::Mgmt::V2015_06_15::Models::ProvisioningState
29
- AccountStatus = Azure::Storage::Mgmt::V2015_06_15::Models::AccountStatus
30
- UsageUnit = Azure::Storage::Mgmt::V2015_06_15::Models::UsageUnit
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
- # Storage
44
+ # StorageManagementClass
35
45
  #
36
- class StorageClass
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, @base_url, @options = self, nil, nil
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::V2015_06_15::StorageManagementClient.new(configurable.credentials, base_url, options)
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
- @storage_accounts = client_0.storage_accounts
55
- @usage_operations = client_0.usage_operations
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
- class ModelClasses
61
- def storage_account_list_result
62
- Azure::Storage::Mgmt::V2015_06_15::Models::StorageAccountListResult
63
- end
64
- def storage_account_check_name_availability_parameters
65
- Azure::Storage::Mgmt::V2015_06_15::Models::StorageAccountCheckNameAvailabilityParameters
66
- end
67
- def storage_account_update_parameters
68
- Azure::Storage::Mgmt::V2015_06_15::Models::StorageAccountUpdateParameters
69
- end
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
@@ -6,4 +6,3 @@ module Azure end
6
6
  module Azure::Storage end
7
7
  module Azure::Storage::Profiles end
8
8
  module Azure::Storage::Profiles::V2017_03_09 end
9
- module Azure::Storage::Profiles::V2017_03_09::Mgmt 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::Mgmt
9
- #
10
- # Client class for the V2017_03_09 profile SDK.
11
- #
12
- class Client < StorageClass
13
- include MsRestAzure::Common::Configurable
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
@@ -3,5 +3,5 @@
3
3
  # Licensed under the MIT License. See License.txt in the project root for license information.
4
4
 
5
5
  module Azure::Storage::Mgmt
6
- VERSION = '0.15.2'
6
+ VERSION = '0.16.0'
7
7
  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.15.2
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: 2017-12-12 00:00:00.000000000 Z
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.5.1
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