azure_sdk 0.65.0 → 0.69.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/cognitiveservices_profile_module.rb +68 -64
- data/lib/latest/modules/compute_profile_module.rb +380 -338
- data/lib/latest/modules/containerregistry_profile_module.rb +130 -74
- data/lib/latest/modules/datafactory_profile_module.rb +516 -428
- data/lib/latest/modules/eventhub_profile_module.rb +79 -57
- data/lib/latest/modules/hdinsight_profile_module.rb +163 -135
- data/lib/latest/modules/kusto_profile_module.rb +164 -160
- data/lib/latest/modules/monitor_profile_module.rb +226 -122
- data/lib/latest/modules/policyinsights_profile_module.rb +8 -0
- data/lib/latest/modules/security_profile_module.rb +492 -224
- data/lib/latest/modules/synapse_profile_module.rb +404 -208
- data/lib/v2019_03_01_hybrid/modules/monitor_profile_module.rb +65 -35
- data/lib/v2020_09_01_hybrid/module_definition.rb +7 -0
- data/lib/v2020_09_01_hybrid/modules/authorization_profile_module.rb +133 -0
- data/lib/v2020_09_01_hybrid/modules/commerce_profile_module.rb +99 -0
- data/lib/v2020_09_01_hybrid/modules/compute_profile_module.rb +1325 -0
- data/lib/v2020_09_01_hybrid/modules/databoxedge_profile_module.rb +539 -0
- data/lib/v2020_09_01_hybrid/modules/dns_profile_module.rb +139 -0
- data/lib/v2020_09_01_hybrid/modules/eventhub_profile_module.rb +411 -0
- data/lib/v2020_09_01_hybrid/modules/iothub_profile_module.rb +385 -0
- data/lib/v2020_09_01_hybrid/modules/keyvault_profile_module.rb +657 -0
- data/lib/v2020_09_01_hybrid/modules/locks_profile_module.rb +79 -0
- data/lib/v2020_09_01_hybrid/modules/monitor_profile_module.rb +315 -0
- data/lib/v2020_09_01_hybrid/modules/network_profile_module.rb +1925 -0
- data/lib/v2020_09_01_hybrid/modules/policy_profile_module.rb +75 -0
- data/lib/v2020_09_01_hybrid/modules/resources_profile_module.rb +387 -0
- data/lib/v2020_09_01_hybrid/modules/storage_profile_module.rb +693 -0
- data/lib/v2020_09_01_hybrid/modules/web_profile_module.rb +1445 -0
- data/lib/v2020_09_01_hybrid/v2020_09_01_hybrid_profile_client.rb +200 -0
- metadata +70 -53
@@ -12,49 +12,57 @@ module Azure::Profiles::V2019_03_01_Hybrid
|
|
12
12
|
EventCategories = Azure::Monitor::Mgmt::V2015_04_01::EventCategories
|
13
13
|
Operations = Azure::Monitor::Mgmt::V2015_04_01::Operations
|
14
14
|
TenantActivityLogs = Azure::Monitor::Mgmt::V2015_04_01::TenantActivityLogs
|
15
|
-
DiagnosticSettingsOperations = Azure::Monitor::Mgmt::V2017_05_01_preview::DiagnosticSettingsOperations
|
16
15
|
DiagnosticSettingsCategoryOperations = Azure::Monitor::Mgmt::V2017_05_01_preview::DiagnosticSettingsCategoryOperations
|
16
|
+
DiagnosticSettingsOperations = Azure::Monitor::Mgmt::V2017_05_01_preview::DiagnosticSettingsOperations
|
17
|
+
SubscriptionDiagnosticSettingsOperations = Azure::Monitor::Mgmt::V2017_05_01_preview::SubscriptionDiagnosticSettingsOperations
|
17
18
|
MetricDefinitions = Azure::Monitor::Mgmt::V2018_01_01::MetricDefinitions
|
18
19
|
Metrics = Azure::Monitor::Mgmt::V2018_01_01::Metrics
|
19
20
|
|
20
21
|
module Models
|
21
22
|
RecurrentSchedule = Azure::Monitor::Mgmt::V2015_04_01::Models::RecurrentSchedule
|
22
23
|
Recurrence = Azure::Monitor::Mgmt::V2015_04_01::Models::Recurrence
|
23
|
-
|
24
|
+
HttpRequestInfo = Azure::Monitor::Mgmt::V2015_04_01::Models::HttpRequestInfo
|
24
25
|
AutoscaleProfile = Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleProfile
|
25
|
-
|
26
|
+
EventDataCollection = Azure::Monitor::Mgmt::V2015_04_01::Models::EventDataCollection
|
26
27
|
EmailNotification = Azure::Monitor::Mgmt::V2015_04_01::Models::EmailNotification
|
28
|
+
Resource = Azure::Monitor::Mgmt::V2015_04_01::Models::Resource
|
27
29
|
WebhookNotification = Azure::Monitor::Mgmt::V2015_04_01::Models::WebhookNotification
|
28
|
-
|
30
|
+
ScaleRuleMetricDimension = Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleRuleMetricDimension
|
29
31
|
AutoscaleNotification = Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleNotification
|
30
32
|
ScaleAction = Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleAction
|
31
33
|
ScaleRule = Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleRule
|
34
|
+
SenderAuthorization = Azure::Monitor::Mgmt::V2015_04_01::Models::SenderAuthorization
|
32
35
|
AutoscaleSettingResourcePatch = Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleSettingResourcePatch
|
33
|
-
EventDataCollection = Azure::Monitor::Mgmt::V2015_04_01::Models::EventDataCollection
|
34
36
|
AutoscaleSettingResourceCollection = Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleSettingResourceCollection
|
35
37
|
MetricTrigger = Azure::Monitor::Mgmt::V2015_04_01::Models::MetricTrigger
|
36
38
|
EventCategoryCollection = Azure::Monitor::Mgmt::V2015_04_01::Models::EventCategoryCollection
|
37
|
-
|
39
|
+
EventData = Azure::Monitor::Mgmt::V2015_04_01::Models::EventData
|
38
40
|
OperationDisplay = Azure::Monitor::Mgmt::V2015_04_01::Models::OperationDisplay
|
39
41
|
TimeWindow = Azure::Monitor::Mgmt::V2015_04_01::Models::TimeWindow
|
40
42
|
Operation = Azure::Monitor::Mgmt::V2015_04_01::Models::Operation
|
41
|
-
|
43
|
+
ScaleCapacity = Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleCapacity
|
42
44
|
OperationListResult = Azure::Monitor::Mgmt::V2015_04_01::Models::OperationListResult
|
43
45
|
AutoscaleSettingResource = Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleSettingResource
|
44
46
|
EventLevel = Azure::Monitor::Mgmt::V2015_04_01::Models::EventLevel
|
45
47
|
MetricStatisticType = Azure::Monitor::Mgmt::V2015_04_01::Models::MetricStatisticType
|
46
48
|
TimeAggregationType = Azure::Monitor::Mgmt::V2015_04_01::Models::TimeAggregationType
|
47
49
|
ComparisonOperationType = Azure::Monitor::Mgmt::V2015_04_01::Models::ComparisonOperationType
|
50
|
+
ScaleRuleMetricDimensionOperationType = Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleRuleMetricDimensionOperationType
|
48
51
|
ScaleDirection = Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleDirection
|
49
52
|
ScaleType = Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleType
|
53
|
+
RecurrenceFrequency = Azure::Monitor::Mgmt::V2015_04_01::Models::RecurrenceFrequency
|
50
54
|
ProxyOnlyResource = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::ProxyOnlyResource
|
51
|
-
MetricSettings = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::MetricSettings
|
52
|
-
LogSettings = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::LogSettings
|
53
55
|
DiagnosticSettingsCategoryResourceCollection = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsCategoryResourceCollection
|
54
|
-
DiagnosticSettingsResourceCollection = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsResourceCollection
|
55
56
|
RetentionPolicy = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::RetentionPolicy
|
56
|
-
|
57
|
+
LogSettings = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::LogSettings
|
58
|
+
DiagnosticSettingsResourceCollection = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsResourceCollection
|
59
|
+
SubscriptionProxyOnlyResource = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::SubscriptionProxyOnlyResource
|
60
|
+
MetricSettings = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::MetricSettings
|
61
|
+
SubscriptionDiagnosticSettingsResourceCollection = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::SubscriptionDiagnosticSettingsResourceCollection
|
62
|
+
SubscriptionLogSettings = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::SubscriptionLogSettings
|
57
63
|
DiagnosticSettingsCategoryResource = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsCategoryResource
|
64
|
+
DiagnosticSettingsResource = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsResource
|
65
|
+
SubscriptionDiagnosticSettingsResource = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::SubscriptionDiagnosticSettingsResource
|
58
66
|
CategoryType = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::CategoryType
|
59
67
|
MetricValue = Azure::Monitor::Mgmt::V2018_01_01::Models::MetricValue
|
60
68
|
LocalizableString = Azure::Monitor::Mgmt::V2018_01_01::Models::LocalizableString
|
@@ -72,7 +80,7 @@ module Azure::Profiles::V2019_03_01_Hybrid
|
|
72
80
|
end
|
73
81
|
|
74
82
|
class MonitorManagementClass
|
75
|
-
attr_reader :activity_logs, :autoscale_settings, :event_categories, :operations, :tenant_activity_logs, :diagnostic_settings_operations, :
|
83
|
+
attr_reader :activity_logs, :autoscale_settings, :event_categories, :operations, :tenant_activity_logs, :diagnostic_settings_category_operations, :diagnostic_settings_operations, :subscription_diagnostic_settings_operations, :metric_definitions, :metrics, :configurable, :base_url, :options, :model_classes
|
76
84
|
|
77
85
|
def initialize(configurable, base_url=nil, options=nil)
|
78
86
|
@configurable, @base_url, @options = configurable, base_url, options
|
@@ -93,8 +101,9 @@ module Azure::Profiles::V2019_03_01_Hybrid
|
|
93
101
|
@client_1.subscription_id = configurable.subscription_id
|
94
102
|
end
|
95
103
|
add_telemetry(@client_1)
|
96
|
-
@diagnostic_settings_operations = @client_1.diagnostic_settings_operations
|
97
104
|
@diagnostic_settings_category_operations = @client_1.diagnostic_settings_category_operations
|
105
|
+
@diagnostic_settings_operations = @client_1.diagnostic_settings_operations
|
106
|
+
@subscription_diagnostic_settings_operations = @client_1.subscription_diagnostic_settings_operations
|
98
107
|
|
99
108
|
@client_2 = Azure::Monitor::Mgmt::V2018_01_01::MonitorManagementClient.new(configurable.credentials, base_url, options)
|
100
109
|
if(@client_2.respond_to?(:subscription_id))
|
@@ -131,23 +140,26 @@ module Azure::Profiles::V2019_03_01_Hybrid
|
|
131
140
|
def recurrence
|
132
141
|
Azure::Monitor::Mgmt::V2015_04_01::Models::Recurrence
|
133
142
|
end
|
134
|
-
def
|
135
|
-
Azure::Monitor::Mgmt::V2015_04_01::Models::
|
143
|
+
def http_request_info
|
144
|
+
Azure::Monitor::Mgmt::V2015_04_01::Models::HttpRequestInfo
|
136
145
|
end
|
137
146
|
def autoscale_profile
|
138
147
|
Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleProfile
|
139
148
|
end
|
140
|
-
def
|
141
|
-
Azure::Monitor::Mgmt::V2015_04_01::Models::
|
149
|
+
def event_data_collection
|
150
|
+
Azure::Monitor::Mgmt::V2015_04_01::Models::EventDataCollection
|
142
151
|
end
|
143
152
|
def email_notification
|
144
153
|
Azure::Monitor::Mgmt::V2015_04_01::Models::EmailNotification
|
145
154
|
end
|
155
|
+
def resource
|
156
|
+
Azure::Monitor::Mgmt::V2015_04_01::Models::Resource
|
157
|
+
end
|
146
158
|
def webhook_notification
|
147
159
|
Azure::Monitor::Mgmt::V2015_04_01::Models::WebhookNotification
|
148
160
|
end
|
149
|
-
def
|
150
|
-
Azure::Monitor::Mgmt::V2015_04_01::Models::
|
161
|
+
def scale_rule_metric_dimension
|
162
|
+
Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleRuleMetricDimension
|
151
163
|
end
|
152
164
|
def autoscale_notification
|
153
165
|
Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleNotification
|
@@ -158,12 +170,12 @@ module Azure::Profiles::V2019_03_01_Hybrid
|
|
158
170
|
def scale_rule
|
159
171
|
Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleRule
|
160
172
|
end
|
173
|
+
def sender_authorization
|
174
|
+
Azure::Monitor::Mgmt::V2015_04_01::Models::SenderAuthorization
|
175
|
+
end
|
161
176
|
def autoscale_setting_resource_patch
|
162
177
|
Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleSettingResourcePatch
|
163
178
|
end
|
164
|
-
def event_data_collection
|
165
|
-
Azure::Monitor::Mgmt::V2015_04_01::Models::EventDataCollection
|
166
|
-
end
|
167
179
|
def autoscale_setting_resource_collection
|
168
180
|
Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleSettingResourceCollection
|
169
181
|
end
|
@@ -173,8 +185,8 @@ module Azure::Profiles::V2019_03_01_Hybrid
|
|
173
185
|
def event_category_collection
|
174
186
|
Azure::Monitor::Mgmt::V2015_04_01::Models::EventCategoryCollection
|
175
187
|
end
|
176
|
-
def
|
177
|
-
Azure::Monitor::Mgmt::V2015_04_01::Models::
|
188
|
+
def event_data
|
189
|
+
Azure::Monitor::Mgmt::V2015_04_01::Models::EventData
|
178
190
|
end
|
179
191
|
def operation_display
|
180
192
|
Azure::Monitor::Mgmt::V2015_04_01::Models::OperationDisplay
|
@@ -185,8 +197,8 @@ module Azure::Profiles::V2019_03_01_Hybrid
|
|
185
197
|
def operation
|
186
198
|
Azure::Monitor::Mgmt::V2015_04_01::Models::Operation
|
187
199
|
end
|
188
|
-
def
|
189
|
-
Azure::Monitor::Mgmt::V2015_04_01::Models::
|
200
|
+
def scale_capacity
|
201
|
+
Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleCapacity
|
190
202
|
end
|
191
203
|
def operation_list_result
|
192
204
|
Azure::Monitor::Mgmt::V2015_04_01::Models::OperationListResult
|
@@ -206,36 +218,54 @@ module Azure::Profiles::V2019_03_01_Hybrid
|
|
206
218
|
def comparison_operation_type
|
207
219
|
Azure::Monitor::Mgmt::V2015_04_01::Models::ComparisonOperationType
|
208
220
|
end
|
221
|
+
def scale_rule_metric_dimension_operation_type
|
222
|
+
Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleRuleMetricDimensionOperationType
|
223
|
+
end
|
209
224
|
def scale_direction
|
210
225
|
Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleDirection
|
211
226
|
end
|
212
227
|
def scale_type
|
213
228
|
Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleType
|
214
229
|
end
|
230
|
+
def recurrence_frequency
|
231
|
+
Azure::Monitor::Mgmt::V2015_04_01::Models::RecurrenceFrequency
|
232
|
+
end
|
215
233
|
def proxy_only_resource
|
216
234
|
Azure::Monitor::Mgmt::V2017_05_01_preview::Models::ProxyOnlyResource
|
217
235
|
end
|
218
|
-
def
|
219
|
-
Azure::Monitor::Mgmt::V2017_05_01_preview::Models::
|
236
|
+
def diagnostic_settings_category_resource_collection
|
237
|
+
Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsCategoryResourceCollection
|
238
|
+
end
|
239
|
+
def retention_policy
|
240
|
+
Azure::Monitor::Mgmt::V2017_05_01_preview::Models::RetentionPolicy
|
220
241
|
end
|
221
242
|
def log_settings
|
222
243
|
Azure::Monitor::Mgmt::V2017_05_01_preview::Models::LogSettings
|
223
244
|
end
|
224
|
-
def diagnostic_settings_category_resource_collection
|
225
|
-
Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsCategoryResourceCollection
|
226
|
-
end
|
227
245
|
def diagnostic_settings_resource_collection
|
228
246
|
Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsResourceCollection
|
229
247
|
end
|
230
|
-
def
|
231
|
-
Azure::Monitor::Mgmt::V2017_05_01_preview::Models::
|
248
|
+
def subscription_proxy_only_resource
|
249
|
+
Azure::Monitor::Mgmt::V2017_05_01_preview::Models::SubscriptionProxyOnlyResource
|
232
250
|
end
|
233
|
-
def
|
234
|
-
Azure::Monitor::Mgmt::V2017_05_01_preview::Models::
|
251
|
+
def metric_settings
|
252
|
+
Azure::Monitor::Mgmt::V2017_05_01_preview::Models::MetricSettings
|
253
|
+
end
|
254
|
+
def subscription_diagnostic_settings_resource_collection
|
255
|
+
Azure::Monitor::Mgmt::V2017_05_01_preview::Models::SubscriptionDiagnosticSettingsResourceCollection
|
256
|
+
end
|
257
|
+
def subscription_log_settings
|
258
|
+
Azure::Monitor::Mgmt::V2017_05_01_preview::Models::SubscriptionLogSettings
|
235
259
|
end
|
236
260
|
def diagnostic_settings_category_resource
|
237
261
|
Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsCategoryResource
|
238
262
|
end
|
263
|
+
def diagnostic_settings_resource
|
264
|
+
Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsResource
|
265
|
+
end
|
266
|
+
def subscription_diagnostic_settings_resource
|
267
|
+
Azure::Monitor::Mgmt::V2017_05_01_preview::Models::SubscriptionDiagnosticSettingsResource
|
268
|
+
end
|
239
269
|
def category_type
|
240
270
|
Azure::Monitor::Mgmt::V2017_05_01_preview::Models::CategoryType
|
241
271
|
end
|
@@ -0,0 +1,7 @@
|
|
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
|
+
module Azure end
|
6
|
+
module Azure::Profiles end
|
7
|
+
module Azure::Profiles::V2020_09_01_Hybrid end
|
@@ -0,0 +1,133 @@
|
|
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_authorization'
|
6
|
+
|
7
|
+
module Azure::Profiles::V2020_09_01_Hybrid
|
8
|
+
module Authorization
|
9
|
+
module Mgmt
|
10
|
+
Permissions = Azure::Authorization::Mgmt::V2015_07_01::Permissions
|
11
|
+
ProviderOperationsMetadataOperations = Azure::Authorization::Mgmt::V2015_07_01::ProviderOperationsMetadataOperations
|
12
|
+
RoleAssignments = Azure::Authorization::Mgmt::V2015_07_01::RoleAssignments
|
13
|
+
RoleDefinitions = Azure::Authorization::Mgmt::V2015_07_01::RoleDefinitions
|
14
|
+
ClassicAdministrators = Azure::Authorization::Mgmt::V2015_07_01::ClassicAdministrators
|
15
|
+
|
16
|
+
module Models
|
17
|
+
RoleAssignment = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignment
|
18
|
+
RoleAssignmentListResult = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentListResult
|
19
|
+
RoleDefinitionFilter = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinitionFilter
|
20
|
+
RoleAssignmentProperties = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentProperties
|
21
|
+
PermissionGetResult = Azure::Authorization::Mgmt::V2015_07_01::Models::PermissionGetResult
|
22
|
+
RoleAssignmentCreateParameters = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentCreateParameters
|
23
|
+
ResourceType = Azure::Authorization::Mgmt::V2015_07_01::Models::ResourceType
|
24
|
+
RoleDefinitionProperties = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinitionProperties
|
25
|
+
ProviderOperationsMetadataListResult = Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperationsMetadataListResult
|
26
|
+
RoleDefinition = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinition
|
27
|
+
RoleAssignmentFilter = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentFilter
|
28
|
+
RoleDefinitionListResult = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinitionListResult
|
29
|
+
ProviderOperation = Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperation
|
30
|
+
ClassicAdministratorProperties = Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministratorProperties
|
31
|
+
RoleAssignmentPropertiesWithScope = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentPropertiesWithScope
|
32
|
+
ClassicAdministrator = Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministrator
|
33
|
+
ProviderOperationsMetadata = Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperationsMetadata
|
34
|
+
ClassicAdministratorListResult = Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministratorListResult
|
35
|
+
Permission = Azure::Authorization::Mgmt::V2015_07_01::Models::Permission
|
36
|
+
end
|
37
|
+
|
38
|
+
class AuthorizationManagementClass
|
39
|
+
attr_reader :permissions, :provider_operations_metadata_operations, :role_assignments, :role_definitions, :classic_administrators, :configurable, :base_url, :options, :model_classes
|
40
|
+
|
41
|
+
def initialize(configurable, base_url=nil, options=nil)
|
42
|
+
@configurable, @base_url, @options = configurable, base_url, options
|
43
|
+
|
44
|
+
@client_0 = Azure::Authorization::Mgmt::V2015_07_01::AuthorizationManagementClient.new(configurable.credentials, base_url, options)
|
45
|
+
if(@client_0.respond_to?(:subscription_id))
|
46
|
+
@client_0.subscription_id = configurable.subscription_id
|
47
|
+
end
|
48
|
+
add_telemetry(@client_0)
|
49
|
+
@permissions = @client_0.permissions
|
50
|
+
@provider_operations_metadata_operations = @client_0.provider_operations_metadata_operations
|
51
|
+
@role_assignments = @client_0.role_assignments
|
52
|
+
@role_definitions = @client_0.role_definitions
|
53
|
+
@classic_administrators = @client_0.classic_administrators
|
54
|
+
|
55
|
+
@model_classes = ModelClasses.new
|
56
|
+
end
|
57
|
+
|
58
|
+
def add_telemetry(client)
|
59
|
+
profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/V2020_09_01_Hybrid/Authorization/Mgmt"
|
60
|
+
client.add_user_agent_information(profile_information)
|
61
|
+
end
|
62
|
+
|
63
|
+
def method_missing(method, *args)
|
64
|
+
if @client_0.respond_to?method
|
65
|
+
@client_0.send(method, *args)
|
66
|
+
else
|
67
|
+
super
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
class ModelClasses
|
72
|
+
def role_assignment
|
73
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignment
|
74
|
+
end
|
75
|
+
def role_assignment_list_result
|
76
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentListResult
|
77
|
+
end
|
78
|
+
def role_definition_filter
|
79
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinitionFilter
|
80
|
+
end
|
81
|
+
def role_assignment_properties
|
82
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentProperties
|
83
|
+
end
|
84
|
+
def permission_get_result
|
85
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::PermissionGetResult
|
86
|
+
end
|
87
|
+
def role_assignment_create_parameters
|
88
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentCreateParameters
|
89
|
+
end
|
90
|
+
def resource_type
|
91
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::ResourceType
|
92
|
+
end
|
93
|
+
def role_definition_properties
|
94
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinitionProperties
|
95
|
+
end
|
96
|
+
def provider_operations_metadata_list_result
|
97
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperationsMetadataListResult
|
98
|
+
end
|
99
|
+
def role_definition
|
100
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinition
|
101
|
+
end
|
102
|
+
def role_assignment_filter
|
103
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentFilter
|
104
|
+
end
|
105
|
+
def role_definition_list_result
|
106
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinitionListResult
|
107
|
+
end
|
108
|
+
def provider_operation
|
109
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperation
|
110
|
+
end
|
111
|
+
def classic_administrator_properties
|
112
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministratorProperties
|
113
|
+
end
|
114
|
+
def role_assignment_properties_with_scope
|
115
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentPropertiesWithScope
|
116
|
+
end
|
117
|
+
def classic_administrator
|
118
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministrator
|
119
|
+
end
|
120
|
+
def provider_operations_metadata
|
121
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperationsMetadata
|
122
|
+
end
|
123
|
+
def classic_administrator_list_result
|
124
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministratorListResult
|
125
|
+
end
|
126
|
+
def permission
|
127
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::Permission
|
128
|
+
end
|
129
|
+
end
|
130
|
+
end
|
131
|
+
end
|
132
|
+
end
|
133
|
+
end
|
@@ -0,0 +1,99 @@
|
|
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_commerce'
|
6
|
+
|
7
|
+
module Azure::Profiles::V2020_09_01_Hybrid
|
8
|
+
module Commerce
|
9
|
+
module Mgmt
|
10
|
+
UsageAggregates = Azure::Commerce::Mgmt::V2015_06_01_preview::UsageAggregates
|
11
|
+
RateCard = Azure::Commerce::Mgmt::V2015_06_01_preview::RateCard
|
12
|
+
|
13
|
+
module Models
|
14
|
+
MeterInfo = Azure::Commerce::Mgmt::V2015_06_01_preview::Models::MeterInfo
|
15
|
+
ResourceRateCardInfo = Azure::Commerce::Mgmt::V2015_06_01_preview::Models::ResourceRateCardInfo
|
16
|
+
UsageAggregation = Azure::Commerce::Mgmt::V2015_06_01_preview::Models::UsageAggregation
|
17
|
+
InfoField = Azure::Commerce::Mgmt::V2015_06_01_preview::Models::InfoField
|
18
|
+
UsageAggregationListResult = Azure::Commerce::Mgmt::V2015_06_01_preview::Models::UsageAggregationListResult
|
19
|
+
OfferTermInfo = Azure::Commerce::Mgmt::V2015_06_01_preview::Models::OfferTermInfo
|
20
|
+
RateCardQueryParameters = Azure::Commerce::Mgmt::V2015_06_01_preview::Models::RateCardQueryParameters
|
21
|
+
ErrorResponse = Azure::Commerce::Mgmt::V2015_06_01_preview::Models::ErrorResponse
|
22
|
+
MonetaryCredit = Azure::Commerce::Mgmt::V2015_06_01_preview::Models::MonetaryCredit
|
23
|
+
MonetaryCommitment = Azure::Commerce::Mgmt::V2015_06_01_preview::Models::MonetaryCommitment
|
24
|
+
RecurringCharge = Azure::Commerce::Mgmt::V2015_06_01_preview::Models::RecurringCharge
|
25
|
+
AggregationGranularity = Azure::Commerce::Mgmt::V2015_06_01_preview::Models::AggregationGranularity
|
26
|
+
end
|
27
|
+
|
28
|
+
class CommerceManagementClass
|
29
|
+
attr_reader :usage_aggregates, :rate_card, :configurable, :base_url, :options, :model_classes
|
30
|
+
|
31
|
+
def initialize(configurable, base_url=nil, options=nil)
|
32
|
+
@configurable, @base_url, @options = configurable, base_url, options
|
33
|
+
|
34
|
+
@client_0 = Azure::Commerce::Mgmt::V2015_06_01_preview::UsageManagementClient.new(configurable.credentials, base_url, options)
|
35
|
+
if(@client_0.respond_to?(:subscription_id))
|
36
|
+
@client_0.subscription_id = configurable.subscription_id
|
37
|
+
end
|
38
|
+
add_telemetry(@client_0)
|
39
|
+
@usage_aggregates = @client_0.usage_aggregates
|
40
|
+
@rate_card = @client_0.rate_card
|
41
|
+
|
42
|
+
@model_classes = ModelClasses.new
|
43
|
+
end
|
44
|
+
|
45
|
+
def add_telemetry(client)
|
46
|
+
profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/V2020_09_01_Hybrid/Commerce/Mgmt"
|
47
|
+
client.add_user_agent_information(profile_information)
|
48
|
+
end
|
49
|
+
|
50
|
+
def method_missing(method, *args)
|
51
|
+
if @client_0.respond_to?method
|
52
|
+
@client_0.send(method, *args)
|
53
|
+
else
|
54
|
+
super
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
class ModelClasses
|
59
|
+
def meter_info
|
60
|
+
Azure::Commerce::Mgmt::V2015_06_01_preview::Models::MeterInfo
|
61
|
+
end
|
62
|
+
def resource_rate_card_info
|
63
|
+
Azure::Commerce::Mgmt::V2015_06_01_preview::Models::ResourceRateCardInfo
|
64
|
+
end
|
65
|
+
def usage_aggregation
|
66
|
+
Azure::Commerce::Mgmt::V2015_06_01_preview::Models::UsageAggregation
|
67
|
+
end
|
68
|
+
def info_field
|
69
|
+
Azure::Commerce::Mgmt::V2015_06_01_preview::Models::InfoField
|
70
|
+
end
|
71
|
+
def usage_aggregation_list_result
|
72
|
+
Azure::Commerce::Mgmt::V2015_06_01_preview::Models::UsageAggregationListResult
|
73
|
+
end
|
74
|
+
def offer_term_info
|
75
|
+
Azure::Commerce::Mgmt::V2015_06_01_preview::Models::OfferTermInfo
|
76
|
+
end
|
77
|
+
def rate_card_query_parameters
|
78
|
+
Azure::Commerce::Mgmt::V2015_06_01_preview::Models::RateCardQueryParameters
|
79
|
+
end
|
80
|
+
def error_response
|
81
|
+
Azure::Commerce::Mgmt::V2015_06_01_preview::Models::ErrorResponse
|
82
|
+
end
|
83
|
+
def monetary_credit
|
84
|
+
Azure::Commerce::Mgmt::V2015_06_01_preview::Models::MonetaryCredit
|
85
|
+
end
|
86
|
+
def monetary_commitment
|
87
|
+
Azure::Commerce::Mgmt::V2015_06_01_preview::Models::MonetaryCommitment
|
88
|
+
end
|
89
|
+
def recurring_charge
|
90
|
+
Azure::Commerce::Mgmt::V2015_06_01_preview::Models::RecurringCharge
|
91
|
+
end
|
92
|
+
def aggregation_granularity
|
93
|
+
Azure::Commerce::Mgmt::V2015_06_01_preview::Models::AggregationGranularity
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|