azure_sdk 0.25.0 → 0.25.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/azure_sdk.rb +1 -0
- data/lib/azure_sdk/version.rb +1 -1
- data/lib/latest/modules/network_profile_module.rb +1176 -1142
- data/lib/v2018_03_01/modules/network_profile_module.rb +4 -0
- data/lib/v2019_03_01_hybrid/module_definition.rb +7 -0
- data/lib/v2019_03_01_hybrid/modules/authorization_profile_module.rb +133 -0
- data/lib/v2019_03_01_hybrid/modules/compute_profile_module.rb +855 -0
- data/lib/v2019_03_01_hybrid/modules/dns_profile_module.rb +139 -0
- data/lib/v2019_03_01_hybrid/modules/keyvault_profile_module.rb +559 -0
- data/lib/v2019_03_01_hybrid/modules/locks_profile_module.rb +79 -0
- data/lib/v2019_03_01_hybrid/modules/monitor_profile_module.rb +285 -0
- data/lib/v2019_03_01_hybrid/modules/network_profile_module.rb +1261 -0
- data/lib/v2019_03_01_hybrid/modules/policy_profile_module.rb +75 -0
- data/lib/v2019_03_01_hybrid/modules/resources_profile_module.rb +277 -0
- data/lib/v2019_03_01_hybrid/modules/storage_profile_module.rb +283 -0
- data/lib/v2019_03_01_hybrid/modules/subscriptions_profile_module.rb +101 -0
- data/lib/v2019_03_01_hybrid/modules/web_profile_module.rb +1457 -0
- data/lib/v2019_03_01_hybrid/v2019_03_01_hybrid_profile_client.rb +170 -0
- metadata +43 -29
@@ -0,0 +1,75 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
|
+
|
5
|
+
require 'azure_mgmt_policy'
|
6
|
+
|
7
|
+
module Azure::Profiles::V2019_03_01_Hybrid
|
8
|
+
module Policy
|
9
|
+
module Mgmt
|
10
|
+
PolicyDefinitions = Azure::Policy::Mgmt::V2016_12_01::PolicyDefinitions
|
11
|
+
PolicyAssignments = Azure::Policy::Mgmt::V2016_12_01::PolicyAssignments
|
12
|
+
|
13
|
+
module Models
|
14
|
+
PolicyAssignment = Azure::Policy::Mgmt::V2016_12_01::Models::PolicyAssignment
|
15
|
+
PolicyDefinition = Azure::Policy::Mgmt::V2016_12_01::Models::PolicyDefinition
|
16
|
+
PolicyAssignmentListResult = Azure::Policy::Mgmt::V2016_12_01::Models::PolicyAssignmentListResult
|
17
|
+
PolicyDefinitionListResult = Azure::Policy::Mgmt::V2016_12_01::Models::PolicyDefinitionListResult
|
18
|
+
PolicyType = Azure::Policy::Mgmt::V2016_12_01::Models::PolicyType
|
19
|
+
PolicyMode = Azure::Policy::Mgmt::V2016_12_01::Models::PolicyMode
|
20
|
+
end
|
21
|
+
|
22
|
+
class PolicyManagementClass
|
23
|
+
attr_reader :policy_definitions, :policy_assignments, :configurable, :base_url, :options, :model_classes
|
24
|
+
|
25
|
+
def initialize(configurable, base_url=nil, options=nil)
|
26
|
+
@configurable, @base_url, @options = configurable, base_url, options
|
27
|
+
|
28
|
+
@client_0 = Azure::Policy::Mgmt::V2016_12_01::PolicyClient.new(configurable.credentials, base_url, options)
|
29
|
+
if(@client_0.respond_to?(:subscription_id))
|
30
|
+
@client_0.subscription_id = configurable.subscription_id
|
31
|
+
end
|
32
|
+
add_telemetry(@client_0)
|
33
|
+
@policy_definitions = @client_0.policy_definitions
|
34
|
+
@policy_assignments = @client_0.policy_assignments
|
35
|
+
|
36
|
+
@model_classes = ModelClasses.new
|
37
|
+
end
|
38
|
+
|
39
|
+
def add_telemetry(client)
|
40
|
+
profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/V2019_03_01_Hybrid/Policy/Mgmt"
|
41
|
+
client.add_user_agent_information(profile_information)
|
42
|
+
end
|
43
|
+
|
44
|
+
def method_missing(method, *args)
|
45
|
+
if @client_0.respond_to?method
|
46
|
+
@client_0.send(method, *args)
|
47
|
+
else
|
48
|
+
super
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
class ModelClasses
|
53
|
+
def policy_assignment
|
54
|
+
Azure::Policy::Mgmt::V2016_12_01::Models::PolicyAssignment
|
55
|
+
end
|
56
|
+
def policy_definition
|
57
|
+
Azure::Policy::Mgmt::V2016_12_01::Models::PolicyDefinition
|
58
|
+
end
|
59
|
+
def policy_assignment_list_result
|
60
|
+
Azure::Policy::Mgmt::V2016_12_01::Models::PolicyAssignmentListResult
|
61
|
+
end
|
62
|
+
def policy_definition_list_result
|
63
|
+
Azure::Policy::Mgmt::V2016_12_01::Models::PolicyDefinitionListResult
|
64
|
+
end
|
65
|
+
def policy_type
|
66
|
+
Azure::Policy::Mgmt::V2016_12_01::Models::PolicyType
|
67
|
+
end
|
68
|
+
def policy_mode
|
69
|
+
Azure::Policy::Mgmt::V2016_12_01::Models::PolicyMode
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
@@ -0,0 +1,277 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
|
+
|
5
|
+
require 'azure_mgmt_resources'
|
6
|
+
|
7
|
+
module Azure::Profiles::V2019_03_01_Hybrid
|
8
|
+
module Resources
|
9
|
+
module Mgmt
|
10
|
+
Operations = Azure::Resources::Mgmt::V2018_05_01::Operations
|
11
|
+
Deployments = Azure::Resources::Mgmt::V2018_05_01::Deployments
|
12
|
+
Providers = Azure::Resources::Mgmt::V2018_05_01::Providers
|
13
|
+
Resources = Azure::Resources::Mgmt::V2018_05_01::Resources
|
14
|
+
ResourceGroups = Azure::Resources::Mgmt::V2018_05_01::ResourceGroups
|
15
|
+
Tags = Azure::Resources::Mgmt::V2018_05_01::Tags
|
16
|
+
DeploymentOperations = Azure::Resources::Mgmt::V2018_05_01::DeploymentOperations
|
17
|
+
|
18
|
+
module Models
|
19
|
+
IdentityUserAssignedIdentitiesValue = Azure::Resources::Mgmt::V2018_05_01::Models::IdentityUserAssignedIdentitiesValue
|
20
|
+
Identity = Azure::Resources::Mgmt::V2018_05_01::Models::Identity
|
21
|
+
GenericResourceFilter = Azure::Resources::Mgmt::V2018_05_01::Models::GenericResourceFilter
|
22
|
+
ResourceGroupFilter = Azure::Resources::Mgmt::V2018_05_01::Models::ResourceGroupFilter
|
23
|
+
ParametersLink = Azure::Resources::Mgmt::V2018_05_01::Models::ParametersLink
|
24
|
+
ResourceListResult = Azure::Resources::Mgmt::V2018_05_01::Models::ResourceListResult
|
25
|
+
OnErrorDeployment = Azure::Resources::Mgmt::V2018_05_01::Models::OnErrorDeployment
|
26
|
+
ResourceGroupProperties = Azure::Resources::Mgmt::V2018_05_01::Models::ResourceGroupProperties
|
27
|
+
Deployment = Azure::Resources::Mgmt::V2018_05_01::Models::Deployment
|
28
|
+
ResourceGroup = Azure::Resources::Mgmt::V2018_05_01::Models::ResourceGroup
|
29
|
+
ResourceManagementErrorWithDetails = Azure::Resources::Mgmt::V2018_05_01::Models::ResourceManagementErrorWithDetails
|
30
|
+
ResourceGroupPatchable = Azure::Resources::Mgmt::V2018_05_01::Models::ResourceGroupPatchable
|
31
|
+
AliasType = Azure::Resources::Mgmt::V2018_05_01::Models::AliasType
|
32
|
+
ResourceGroupListResult = Azure::Resources::Mgmt::V2018_05_01::Models::ResourceGroupListResult
|
33
|
+
Provider = Azure::Resources::Mgmt::V2018_05_01::Models::Provider
|
34
|
+
ResourcesMoveInfo = Azure::Resources::Mgmt::V2018_05_01::Models::ResourcesMoveInfo
|
35
|
+
Dependency = Azure::Resources::Mgmt::V2018_05_01::Models::Dependency
|
36
|
+
ExportTemplateRequest = Azure::Resources::Mgmt::V2018_05_01::Models::ExportTemplateRequest
|
37
|
+
DeploymentPropertiesExtended = Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentPropertiesExtended
|
38
|
+
TagCount = Azure::Resources::Mgmt::V2018_05_01::Models::TagCount
|
39
|
+
DeploymentExtended = Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentExtended
|
40
|
+
TagValue = Azure::Resources::Mgmt::V2018_05_01::Models::TagValue
|
41
|
+
ProviderListResult = Azure::Resources::Mgmt::V2018_05_01::Models::ProviderListResult
|
42
|
+
TagDetails = Azure::Resources::Mgmt::V2018_05_01::Models::TagDetails
|
43
|
+
Sku = Azure::Resources::Mgmt::V2018_05_01::Models::Sku
|
44
|
+
TagsListResult = Azure::Resources::Mgmt::V2018_05_01::Models::TagsListResult
|
45
|
+
TemplateLink = Azure::Resources::Mgmt::V2018_05_01::Models::TemplateLink
|
46
|
+
TargetResource = Azure::Resources::Mgmt::V2018_05_01::Models::TargetResource
|
47
|
+
DeploymentProperties = Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentProperties
|
48
|
+
HttpMessage = Azure::Resources::Mgmt::V2018_05_01::Models::HttpMessage
|
49
|
+
AliasPathType = Azure::Resources::Mgmt::V2018_05_01::Models::AliasPathType
|
50
|
+
DeploymentOperationProperties = Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentOperationProperties
|
51
|
+
BasicDependency = Azure::Resources::Mgmt::V2018_05_01::Models::BasicDependency
|
52
|
+
DeploymentOperation = Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentOperation
|
53
|
+
DeploymentValidateResult = Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentValidateResult
|
54
|
+
DeploymentOperationsListResult = Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentOperationsListResult
|
55
|
+
Plan = Azure::Resources::Mgmt::V2018_05_01::Models::Plan
|
56
|
+
ResourceProviderOperationDisplayProperties = Azure::Resources::Mgmt::V2018_05_01::Models::ResourceProviderOperationDisplayProperties
|
57
|
+
DebugSetting = Azure::Resources::Mgmt::V2018_05_01::Models::DebugSetting
|
58
|
+
Resource = Azure::Resources::Mgmt::V2018_05_01::Models::Resource
|
59
|
+
ProviderResourceType = Azure::Resources::Mgmt::V2018_05_01::Models::ProviderResourceType
|
60
|
+
SubResource = Azure::Resources::Mgmt::V2018_05_01::Models::SubResource
|
61
|
+
DeploymentListResult = Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentListResult
|
62
|
+
ResourceGroupExportResult = Azure::Resources::Mgmt::V2018_05_01::Models::ResourceGroupExportResult
|
63
|
+
DeploymentExportResult = Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentExportResult
|
64
|
+
OperationDisplay = Azure::Resources::Mgmt::V2018_05_01::Models::OperationDisplay
|
65
|
+
DeploymentExtendedFilter = Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentExtendedFilter
|
66
|
+
Operation = Azure::Resources::Mgmt::V2018_05_01::Models::Operation
|
67
|
+
OnErrorDeploymentExtended = Azure::Resources::Mgmt::V2018_05_01::Models::OnErrorDeploymentExtended
|
68
|
+
OperationListResult = Azure::Resources::Mgmt::V2018_05_01::Models::OperationListResult
|
69
|
+
GenericResource = Azure::Resources::Mgmt::V2018_05_01::Models::GenericResource
|
70
|
+
DeploymentMode = Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentMode
|
71
|
+
OnErrorDeploymentType = Azure::Resources::Mgmt::V2018_05_01::Models::OnErrorDeploymentType
|
72
|
+
ResourceIdentityType = Azure::Resources::Mgmt::V2018_05_01::Models::ResourceIdentityType
|
73
|
+
end
|
74
|
+
|
75
|
+
class ResourcesManagementClass
|
76
|
+
attr_reader :operations, :deployments, :providers, :resources, :resource_groups, :tags, :deployment_operations, :configurable, :base_url, :options, :model_classes
|
77
|
+
|
78
|
+
def initialize(configurable, base_url=nil, options=nil)
|
79
|
+
@configurable, @base_url, @options = configurable, base_url, options
|
80
|
+
|
81
|
+
@client_0 = Azure::Resources::Mgmt::V2018_05_01::ResourceManagementClient.new(configurable.credentials, base_url, options)
|
82
|
+
if(@client_0.respond_to?(:subscription_id))
|
83
|
+
@client_0.subscription_id = configurable.subscription_id
|
84
|
+
end
|
85
|
+
add_telemetry(@client_0)
|
86
|
+
@operations = @client_0.operations
|
87
|
+
@deployments = @client_0.deployments
|
88
|
+
@providers = @client_0.providers
|
89
|
+
@resources = @client_0.resources
|
90
|
+
@resource_groups = @client_0.resource_groups
|
91
|
+
@tags = @client_0.tags
|
92
|
+
@deployment_operations = @client_0.deployment_operations
|
93
|
+
|
94
|
+
@model_classes = ModelClasses.new
|
95
|
+
end
|
96
|
+
|
97
|
+
def add_telemetry(client)
|
98
|
+
profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/V2019_03_01_Hybrid/Resources/Mgmt"
|
99
|
+
client.add_user_agent_information(profile_information)
|
100
|
+
end
|
101
|
+
|
102
|
+
def method_missing(method, *args)
|
103
|
+
if @client_0.respond_to?method
|
104
|
+
@client_0.send(method, *args)
|
105
|
+
else
|
106
|
+
super
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
110
|
+
class ModelClasses
|
111
|
+
def identity_user_assigned_identities_value
|
112
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::IdentityUserAssignedIdentitiesValue
|
113
|
+
end
|
114
|
+
def identity
|
115
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::Identity
|
116
|
+
end
|
117
|
+
def generic_resource_filter
|
118
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::GenericResourceFilter
|
119
|
+
end
|
120
|
+
def resource_group_filter
|
121
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::ResourceGroupFilter
|
122
|
+
end
|
123
|
+
def parameters_link
|
124
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::ParametersLink
|
125
|
+
end
|
126
|
+
def resource_list_result
|
127
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::ResourceListResult
|
128
|
+
end
|
129
|
+
def on_error_deployment
|
130
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::OnErrorDeployment
|
131
|
+
end
|
132
|
+
def resource_group_properties
|
133
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::ResourceGroupProperties
|
134
|
+
end
|
135
|
+
def deployment
|
136
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::Deployment
|
137
|
+
end
|
138
|
+
def resource_group
|
139
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::ResourceGroup
|
140
|
+
end
|
141
|
+
def resource_management_error_with_details
|
142
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::ResourceManagementErrorWithDetails
|
143
|
+
end
|
144
|
+
def resource_group_patchable
|
145
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::ResourceGroupPatchable
|
146
|
+
end
|
147
|
+
def alias_type
|
148
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::AliasType
|
149
|
+
end
|
150
|
+
def resource_group_list_result
|
151
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::ResourceGroupListResult
|
152
|
+
end
|
153
|
+
def provider
|
154
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::Provider
|
155
|
+
end
|
156
|
+
def resources_move_info
|
157
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::ResourcesMoveInfo
|
158
|
+
end
|
159
|
+
def dependency
|
160
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::Dependency
|
161
|
+
end
|
162
|
+
def export_template_request
|
163
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::ExportTemplateRequest
|
164
|
+
end
|
165
|
+
def deployment_properties_extended
|
166
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentPropertiesExtended
|
167
|
+
end
|
168
|
+
def tag_count
|
169
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::TagCount
|
170
|
+
end
|
171
|
+
def deployment_extended
|
172
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentExtended
|
173
|
+
end
|
174
|
+
def tag_value
|
175
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::TagValue
|
176
|
+
end
|
177
|
+
def provider_list_result
|
178
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::ProviderListResult
|
179
|
+
end
|
180
|
+
def tag_details
|
181
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::TagDetails
|
182
|
+
end
|
183
|
+
def sku
|
184
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::Sku
|
185
|
+
end
|
186
|
+
def tags_list_result
|
187
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::TagsListResult
|
188
|
+
end
|
189
|
+
def template_link
|
190
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::TemplateLink
|
191
|
+
end
|
192
|
+
def target_resource
|
193
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::TargetResource
|
194
|
+
end
|
195
|
+
def deployment_properties
|
196
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentProperties
|
197
|
+
end
|
198
|
+
def http_message
|
199
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::HttpMessage
|
200
|
+
end
|
201
|
+
def alias_path_type
|
202
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::AliasPathType
|
203
|
+
end
|
204
|
+
def deployment_operation_properties
|
205
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentOperationProperties
|
206
|
+
end
|
207
|
+
def basic_dependency
|
208
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::BasicDependency
|
209
|
+
end
|
210
|
+
def deployment_operation
|
211
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentOperation
|
212
|
+
end
|
213
|
+
def deployment_validate_result
|
214
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentValidateResult
|
215
|
+
end
|
216
|
+
def deployment_operations_list_result
|
217
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentOperationsListResult
|
218
|
+
end
|
219
|
+
def plan
|
220
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::Plan
|
221
|
+
end
|
222
|
+
def resource_provider_operation_display_properties
|
223
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::ResourceProviderOperationDisplayProperties
|
224
|
+
end
|
225
|
+
def debug_setting
|
226
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::DebugSetting
|
227
|
+
end
|
228
|
+
def resource
|
229
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::Resource
|
230
|
+
end
|
231
|
+
def provider_resource_type
|
232
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::ProviderResourceType
|
233
|
+
end
|
234
|
+
def sub_resource
|
235
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::SubResource
|
236
|
+
end
|
237
|
+
def deployment_list_result
|
238
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentListResult
|
239
|
+
end
|
240
|
+
def resource_group_export_result
|
241
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::ResourceGroupExportResult
|
242
|
+
end
|
243
|
+
def deployment_export_result
|
244
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentExportResult
|
245
|
+
end
|
246
|
+
def operation_display
|
247
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::OperationDisplay
|
248
|
+
end
|
249
|
+
def deployment_extended_filter
|
250
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentExtendedFilter
|
251
|
+
end
|
252
|
+
def operation
|
253
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::Operation
|
254
|
+
end
|
255
|
+
def on_error_deployment_extended
|
256
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::OnErrorDeploymentExtended
|
257
|
+
end
|
258
|
+
def operation_list_result
|
259
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::OperationListResult
|
260
|
+
end
|
261
|
+
def generic_resource
|
262
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::GenericResource
|
263
|
+
end
|
264
|
+
def deployment_mode
|
265
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentMode
|
266
|
+
end
|
267
|
+
def on_error_deployment_type
|
268
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::OnErrorDeploymentType
|
269
|
+
end
|
270
|
+
def resource_identity_type
|
271
|
+
Azure::Resources::Mgmt::V2018_05_01::Models::ResourceIdentityType
|
272
|
+
end
|
273
|
+
end
|
274
|
+
end
|
275
|
+
end
|
276
|
+
end
|
277
|
+
end
|
@@ -0,0 +1,283 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
|
+
|
5
|
+
require 'azure_mgmt_storage'
|
6
|
+
|
7
|
+
module Azure::Profiles::V2019_03_01_Hybrid
|
8
|
+
module Storage
|
9
|
+
module Mgmt
|
10
|
+
Operations = Azure::Storage::Mgmt::V2017_10_01::Operations
|
11
|
+
Skus = Azure::Storage::Mgmt::V2017_10_01::Skus
|
12
|
+
StorageAccounts = Azure::Storage::Mgmt::V2017_10_01::StorageAccounts
|
13
|
+
UsageOperations = Azure::Storage::Mgmt::V2017_10_01::UsageOperations
|
14
|
+
|
15
|
+
module Models
|
16
|
+
IPRule = Azure::Storage::Mgmt::V2017_10_01::Models::IPRule
|
17
|
+
NetworkRuleSet = Azure::Storage::Mgmt::V2017_10_01::Models::NetworkRuleSet
|
18
|
+
Dimension = Azure::Storage::Mgmt::V2017_10_01::Models::Dimension
|
19
|
+
Identity = Azure::Storage::Mgmt::V2017_10_01::Models::Identity
|
20
|
+
ServiceSpecification = Azure::Storage::Mgmt::V2017_10_01::Models::ServiceSpecification
|
21
|
+
StorageAccountCreateParameters = Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccountCreateParameters
|
22
|
+
OperationListResult = Azure::Storage::Mgmt::V2017_10_01::Models::OperationListResult
|
23
|
+
Endpoints = Azure::Storage::Mgmt::V2017_10_01::Models::Endpoints
|
24
|
+
SKUCapability = Azure::Storage::Mgmt::V2017_10_01::Models::SKUCapability
|
25
|
+
Restriction = Azure::Storage::Mgmt::V2017_10_01::Models::Restriction
|
26
|
+
StorageSkuListResult = Azure::Storage::Mgmt::V2017_10_01::Models::StorageSkuListResult
|
27
|
+
StorageAccountKey = Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccountKey
|
28
|
+
CustomDomain = Azure::Storage::Mgmt::V2017_10_01::Models::CustomDomain
|
29
|
+
StorageAccountListResult = Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccountListResult
|
30
|
+
EncryptionServices = Azure::Storage::Mgmt::V2017_10_01::Models::EncryptionServices
|
31
|
+
StorageAccountListKeysResult = Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccountListKeysResult
|
32
|
+
Encryption = Azure::Storage::Mgmt::V2017_10_01::Models::Encryption
|
33
|
+
StorageAccountRegenerateKeyParameters = Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccountRegenerateKeyParameters
|
34
|
+
OperationDisplay = Azure::Storage::Mgmt::V2017_10_01::Models::OperationDisplay
|
35
|
+
StorageAccountUpdateParameters = Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccountUpdateParameters
|
36
|
+
Operation = Azure::Storage::Mgmt::V2017_10_01::Models::Operation
|
37
|
+
UsageName = Azure::Storage::Mgmt::V2017_10_01::Models::UsageName
|
38
|
+
Sku = Azure::Storage::Mgmt::V2017_10_01::Models::Sku
|
39
|
+
Usage = Azure::Storage::Mgmt::V2017_10_01::Models::Usage
|
40
|
+
EncryptionService = Azure::Storage::Mgmt::V2017_10_01::Models::EncryptionService
|
41
|
+
UsageListResult = Azure::Storage::Mgmt::V2017_10_01::Models::UsageListResult
|
42
|
+
VirtualNetworkRule = Azure::Storage::Mgmt::V2017_10_01::Models::VirtualNetworkRule
|
43
|
+
Resource = Azure::Storage::Mgmt::V2017_10_01::Models::Resource
|
44
|
+
StorageAccountCheckNameAvailabilityParameters = Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccountCheckNameAvailabilityParameters
|
45
|
+
AccountSasParameters = Azure::Storage::Mgmt::V2017_10_01::Models::AccountSasParameters
|
46
|
+
KeyVaultProperties = Azure::Storage::Mgmt::V2017_10_01::Models::KeyVaultProperties
|
47
|
+
ListAccountSasResponse = Azure::Storage::Mgmt::V2017_10_01::Models::ListAccountSasResponse
|
48
|
+
CheckNameAvailabilityResult = Azure::Storage::Mgmt::V2017_10_01::Models::CheckNameAvailabilityResult
|
49
|
+
ServiceSasParameters = Azure::Storage::Mgmt::V2017_10_01::Models::ServiceSasParameters
|
50
|
+
MetricSpecification = Azure::Storage::Mgmt::V2017_10_01::Models::MetricSpecification
|
51
|
+
ListServiceSasResponse = Azure::Storage::Mgmt::V2017_10_01::Models::ListServiceSasResponse
|
52
|
+
StorageAccount = Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccount
|
53
|
+
ReasonCode = Azure::Storage::Mgmt::V2017_10_01::Models::ReasonCode
|
54
|
+
SkuName = Azure::Storage::Mgmt::V2017_10_01::Models::SkuName
|
55
|
+
SkuTier = Azure::Storage::Mgmt::V2017_10_01::Models::SkuTier
|
56
|
+
Kind = Azure::Storage::Mgmt::V2017_10_01::Models::Kind
|
57
|
+
Reason = Azure::Storage::Mgmt::V2017_10_01::Models::Reason
|
58
|
+
KeySource = Azure::Storage::Mgmt::V2017_10_01::Models::KeySource
|
59
|
+
Action = Azure::Storage::Mgmt::V2017_10_01::Models::Action
|
60
|
+
State = Azure::Storage::Mgmt::V2017_10_01::Models::State
|
61
|
+
Bypass = Azure::Storage::Mgmt::V2017_10_01::Models::Bypass
|
62
|
+
DefaultAction = Azure::Storage::Mgmt::V2017_10_01::Models::DefaultAction
|
63
|
+
AccessTier = Azure::Storage::Mgmt::V2017_10_01::Models::AccessTier
|
64
|
+
ProvisioningState = Azure::Storage::Mgmt::V2017_10_01::Models::ProvisioningState
|
65
|
+
AccountStatus = Azure::Storage::Mgmt::V2017_10_01::Models::AccountStatus
|
66
|
+
KeyPermission = Azure::Storage::Mgmt::V2017_10_01::Models::KeyPermission
|
67
|
+
UsageUnit = Azure::Storage::Mgmt::V2017_10_01::Models::UsageUnit
|
68
|
+
Services = Azure::Storage::Mgmt::V2017_10_01::Models::Services
|
69
|
+
SignedResourceTypes = Azure::Storage::Mgmt::V2017_10_01::Models::SignedResourceTypes
|
70
|
+
Permissions = Azure::Storage::Mgmt::V2017_10_01::Models::Permissions
|
71
|
+
HttpProtocol = Azure::Storage::Mgmt::V2017_10_01::Models::HttpProtocol
|
72
|
+
SignedResource = Azure::Storage::Mgmt::V2017_10_01::Models::SignedResource
|
73
|
+
end
|
74
|
+
|
75
|
+
class StorageManagementClass
|
76
|
+
attr_reader :operations, :skus, :storage_accounts, :usage_operations, :configurable, :base_url, :options, :model_classes
|
77
|
+
|
78
|
+
def initialize(configurable, base_url=nil, options=nil)
|
79
|
+
@configurable, @base_url, @options = configurable, base_url, options
|
80
|
+
|
81
|
+
@client_0 = Azure::Storage::Mgmt::V2017_10_01::StorageManagementClient.new(configurable.credentials, base_url, options)
|
82
|
+
if(@client_0.respond_to?(:subscription_id))
|
83
|
+
@client_0.subscription_id = configurable.subscription_id
|
84
|
+
end
|
85
|
+
add_telemetry(@client_0)
|
86
|
+
@operations = @client_0.operations
|
87
|
+
@skus = @client_0.skus
|
88
|
+
@storage_accounts = @client_0.storage_accounts
|
89
|
+
@usage_operations = @client_0.usage_operations
|
90
|
+
|
91
|
+
@model_classes = ModelClasses.new
|
92
|
+
end
|
93
|
+
|
94
|
+
def add_telemetry(client)
|
95
|
+
profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/V2019_03_01_Hybrid/Storage/Mgmt"
|
96
|
+
client.add_user_agent_information(profile_information)
|
97
|
+
end
|
98
|
+
|
99
|
+
def method_missing(method, *args)
|
100
|
+
if @client_0.respond_to?method
|
101
|
+
@client_0.send(method, *args)
|
102
|
+
else
|
103
|
+
super
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
class ModelClasses
|
108
|
+
def iprule
|
109
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::IPRule
|
110
|
+
end
|
111
|
+
def network_rule_set
|
112
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::NetworkRuleSet
|
113
|
+
end
|
114
|
+
def dimension
|
115
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::Dimension
|
116
|
+
end
|
117
|
+
def identity
|
118
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::Identity
|
119
|
+
end
|
120
|
+
def service_specification
|
121
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::ServiceSpecification
|
122
|
+
end
|
123
|
+
def storage_account_create_parameters
|
124
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccountCreateParameters
|
125
|
+
end
|
126
|
+
def operation_list_result
|
127
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::OperationListResult
|
128
|
+
end
|
129
|
+
def endpoints
|
130
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::Endpoints
|
131
|
+
end
|
132
|
+
def skucapability
|
133
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::SKUCapability
|
134
|
+
end
|
135
|
+
def restriction
|
136
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::Restriction
|
137
|
+
end
|
138
|
+
def storage_sku_list_result
|
139
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::StorageSkuListResult
|
140
|
+
end
|
141
|
+
def storage_account_key
|
142
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccountKey
|
143
|
+
end
|
144
|
+
def custom_domain
|
145
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::CustomDomain
|
146
|
+
end
|
147
|
+
def storage_account_list_result
|
148
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccountListResult
|
149
|
+
end
|
150
|
+
def encryption_services
|
151
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::EncryptionServices
|
152
|
+
end
|
153
|
+
def storage_account_list_keys_result
|
154
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccountListKeysResult
|
155
|
+
end
|
156
|
+
def encryption
|
157
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::Encryption
|
158
|
+
end
|
159
|
+
def storage_account_regenerate_key_parameters
|
160
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccountRegenerateKeyParameters
|
161
|
+
end
|
162
|
+
def operation_display
|
163
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::OperationDisplay
|
164
|
+
end
|
165
|
+
def storage_account_update_parameters
|
166
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccountUpdateParameters
|
167
|
+
end
|
168
|
+
def operation
|
169
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::Operation
|
170
|
+
end
|
171
|
+
def usage_name
|
172
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::UsageName
|
173
|
+
end
|
174
|
+
def sku
|
175
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::Sku
|
176
|
+
end
|
177
|
+
def usage
|
178
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::Usage
|
179
|
+
end
|
180
|
+
def encryption_service
|
181
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::EncryptionService
|
182
|
+
end
|
183
|
+
def usage_list_result
|
184
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::UsageListResult
|
185
|
+
end
|
186
|
+
def virtual_network_rule
|
187
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::VirtualNetworkRule
|
188
|
+
end
|
189
|
+
def resource
|
190
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::Resource
|
191
|
+
end
|
192
|
+
def storage_account_check_name_availability_parameters
|
193
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccountCheckNameAvailabilityParameters
|
194
|
+
end
|
195
|
+
def account_sas_parameters
|
196
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::AccountSasParameters
|
197
|
+
end
|
198
|
+
def key_vault_properties
|
199
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::KeyVaultProperties
|
200
|
+
end
|
201
|
+
def list_account_sas_response
|
202
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::ListAccountSasResponse
|
203
|
+
end
|
204
|
+
def check_name_availability_result
|
205
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::CheckNameAvailabilityResult
|
206
|
+
end
|
207
|
+
def service_sas_parameters
|
208
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::ServiceSasParameters
|
209
|
+
end
|
210
|
+
def metric_specification
|
211
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::MetricSpecification
|
212
|
+
end
|
213
|
+
def list_service_sas_response
|
214
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::ListServiceSasResponse
|
215
|
+
end
|
216
|
+
def storage_account
|
217
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccount
|
218
|
+
end
|
219
|
+
def reason_code
|
220
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::ReasonCode
|
221
|
+
end
|
222
|
+
def sku_name
|
223
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::SkuName
|
224
|
+
end
|
225
|
+
def sku_tier
|
226
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::SkuTier
|
227
|
+
end
|
228
|
+
def kind
|
229
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::Kind
|
230
|
+
end
|
231
|
+
def reason
|
232
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::Reason
|
233
|
+
end
|
234
|
+
def key_source
|
235
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::KeySource
|
236
|
+
end
|
237
|
+
def action
|
238
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::Action
|
239
|
+
end
|
240
|
+
def state
|
241
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::State
|
242
|
+
end
|
243
|
+
def bypass
|
244
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::Bypass
|
245
|
+
end
|
246
|
+
def default_action
|
247
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::DefaultAction
|
248
|
+
end
|
249
|
+
def access_tier
|
250
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::AccessTier
|
251
|
+
end
|
252
|
+
def provisioning_state
|
253
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::ProvisioningState
|
254
|
+
end
|
255
|
+
def account_status
|
256
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::AccountStatus
|
257
|
+
end
|
258
|
+
def key_permission
|
259
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::KeyPermission
|
260
|
+
end
|
261
|
+
def usage_unit
|
262
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::UsageUnit
|
263
|
+
end
|
264
|
+
def services
|
265
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::Services
|
266
|
+
end
|
267
|
+
def signed_resource_types
|
268
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::SignedResourceTypes
|
269
|
+
end
|
270
|
+
def permissions
|
271
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::Permissions
|
272
|
+
end
|
273
|
+
def http_protocol
|
274
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::HttpProtocol
|
275
|
+
end
|
276
|
+
def signed_resource
|
277
|
+
Azure::Storage::Mgmt::V2017_10_01::Models::SignedResource
|
278
|
+
end
|
279
|
+
end
|
280
|
+
end
|
281
|
+
end
|
282
|
+
end
|
283
|
+
end
|