azure_sdk 0.51.1 → 0.52.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +20 -20
- data/lib/azure_sdk.rb +9 -9
- data/lib/azure_sdk/version.rb +1 -1
- data/lib/latest/latest_profile_client.rb +0 -0
- data/lib/latest/module_definition.rb +6 -6
- data/lib/latest/modules/adhybridhealthservice_profile_module.rb +481 -481
- data/lib/latest/modules/advisor_profile_module.rb +119 -119
- data/lib/latest/modules/alertsmanagement_profile_module.rb +259 -259
- data/lib/latest/modules/analysisservices_profile_module.rb +159 -159
- data/lib/latest/modules/anomalydetector_profile_module.rb +69 -69
- data/lib/latest/modules/apimanagement_profile_module.rb +1069 -1069
- data/lib/latest/modules/appconfiguration_profile_module.rb +175 -107
- data/lib/latest/modules/attestation_profile_module.rb +95 -95
- data/lib/latest/modules/authorization_profile_module.rb +167 -167
- data/lib/latest/modules/automation_profile_module.rb +663 -663
- data/lib/latest/modules/autosuggest_profile_module.rb +121 -121
- data/lib/latest/modules/azurestack_profile_module.rb +0 -0
- data/lib/latest/modules/batch_profile_module.rb +417 -417
- data/lib/latest/modules/batchai_profile_module.rb +425 -425
- data/lib/latest/modules/billing_profile_module.rb +107 -107
- data/lib/latest/modules/botservice_profile_module.rb +293 -293
- data/lib/latest/modules/cdn_profile_module.rb +325 -325
- data/lib/latest/modules/cognitiveservices_profile_module.rb +201 -207
- data/lib/latest/modules/commerce_profile_module.rb +99 -99
- data/lib/latest/modules/compute_profile_module.rb +1235 -1235
- data/lib/latest/modules/computervision_profile_module.rb +233 -233
- data/lib/latest/modules/consumption_profile_module.rb +345 -345
- data/lib/latest/modules/containerinstance_profile_module.rb +253 -253
- data/lib/latest/modules/containerregistry_profile_module.rb +575 -575
- data/lib/latest/modules/containerservice_profile_module.rb +385 -385
- data/lib/latest/modules/contentmoderator_profile_module.rb +287 -287
- data/lib/latest/modules/cosmosdb_profile_module.rb +679 -679
- data/lib/latest/modules/costmanagement_profile_module.rb +207 -207
- data/lib/latest/modules/customerinsights_profile_module.rb +497 -497
- data/lib/latest/modules/customimagesearch_profile_module.rb +143 -143
- data/lib/latest/modules/customsearch_profile_module.rb +123 -123
- data/lib/latest/modules/customvisionprediction_profile_module.rb +69 -69
- data/lib/latest/modules/customvisiontraining_profile_module.rb +241 -241
- data/lib/latest/modules/databox_profile_module.rb +309 -309
- data/lib/latest/modules/datafactory_profile_module.rb +2701 -2159
- data/lib/latest/modules/datalakeanalytics_profile_module.rb +253 -253
- data/lib/latest/modules/datalakestore_profile_module.rb +247 -247
- data/lib/latest/modules/datamigration_profile_module.rb +1307 -1307
- data/lib/latest/modules/datashare_profile_module.rb +383 -383
- data/lib/latest/modules/deploymentmanager_profile_module.rb +261 -261
- data/lib/latest/modules/devspaces_profile_module.rb +119 -119
- data/lib/latest/modules/devtestlabs_profile_module.rb +849 -849
- data/lib/latest/modules/dns_profile_module.rb +143 -143
- data/lib/latest/modules/edgegateway_profile_module.rb +463 -463
- data/lib/latest/modules/entitysearch_profile_module.rb +231 -231
- data/lib/latest/modules/eventgrid_profile_module.rb +679 -679
- data/lib/latest/modules/eventhub_profile_module.rb +195 -195
- data/lib/latest/modules/face_profile_module.rb +297 -297
- data/lib/latest/modules/features_profile_module.rb +73 -73
- data/lib/latest/modules/formrecognizer_profile_module.rb +169 -169
- data/lib/latest/modules/graphrbac_profile_module.rb +225 -225
- data/lib/latest/modules/hanaonazure_profile_module.rb +137 -137
- data/lib/latest/modules/hdinsight_profile_module.rb +415 -415
- data/lib/latest/modules/imagesearch_profile_module.rb +279 -279
- data/lib/latest/modules/importexport_profile_module.rb +135 -135
- data/lib/latest/modules/iotcentral_profile_module.rb +111 -111
- data/lib/latest/modules/iothub_profile_module.rb +377 -377
- data/lib/latest/modules/keyvault_profile_module.rb +623 -623
- data/lib/latest/modules/kusto_profile_module.rb +349 -297
- data/lib/latest/modules/labservices_profile_module.rb +357 -357
- data/lib/latest/modules/links_profile_module.rb +83 -83
- data/lib/latest/modules/localsearch_profile_module.rb +151 -151
- data/lib/latest/modules/locks_profile_module.rb +79 -79
- data/lib/latest/modules/logic_profile_module.rb +787 -787
- data/lib/latest/modules/luisauthoring_profile_module.rb +497 -497
- data/lib/latest/modules/luisruntime_profile_module.rb +91 -91
- data/lib/latest/modules/machinelearning_profile_module.rb +211 -211
- data/lib/latest/modules/machinelearningservices_profile_module.rb +293 -293
- data/lib/latest/modules/maintenance_profile_module.rb +121 -121
- data/lib/latest/modules/managedapplications_profile_module.rb +123 -123
- data/lib/latest/modules/managedserviceidentity_profile_module.rb +75 -75
- data/lib/latest/modules/mariadb_profile_module.rb +233 -233
- data/lib/latest/modules/marketplaceordering_profile_module.rb +79 -79
- data/lib/latest/modules/mediaservices_profile_module.rb +871 -871
- data/lib/latest/modules/migrate_profile_module.rb +243 -243
- data/lib/latest/modules/mixedreality_profile_module.rb +125 -125
- data/lib/latest/modules/monitor_profile_module.rb +723 -723
- data/lib/latest/modules/mysql_profile_module.rb +233 -233
- data/lib/latest/modules/netapp_profile_module.rb +209 -209
- data/lib/latest/modules/network_profile_module.rb +2489 -2489
- data/lib/latest/modules/newssearch_profile_module.rb +143 -143
- data/lib/latest/modules/notificationhubs_profile_module.rb +189 -189
- data/lib/latest/modules/operationalinsights_profile_module.rb +259 -259
- data/lib/latest/modules/operationsmanagement_profile_module.rb +123 -123
- data/lib/latest/modules/peering_profile_module.rb +259 -259
- data/lib/latest/modules/personalizer_profile_module.rb +83 -83
- data/lib/latest/modules/policy_profile_module.rb +105 -105
- data/lib/latest/modules/policyinsights_profile_module.rb +223 -223
- data/lib/latest/modules/portal_profile_module.rb +95 -95
- data/lib/latest/modules/postgresql_profile_module.rb +233 -233
- data/lib/latest/modules/powerbidedicated_profile_module.rb +123 -123
- data/lib/latest/modules/powerbiembedded_profile_module.rb +127 -127
- data/lib/latest/modules/privatedns_profile_module.rb +137 -137
- data/lib/latest/modules/qnamaker_profile_module.rb +215 -219
- data/lib/latest/modules/qnamakerruntime_profile_module.rb +123 -123
- data/lib/latest/modules/recoveryservices_profile_module.rb +211 -211
- data/lib/latest/modules/recoveryservicesbackup_profile_module.rb +1301 -1301
- data/lib/latest/modules/recoveryservicessiterecovery_profile_module.rb +1465 -1465
- data/lib/latest/modules/redis_profile_module.rb +209 -209
- data/lib/latest/modules/relay_profile_module.rb +163 -163
- data/lib/latest/modules/reservations_profile_module.rb +359 -237
- data/lib/latest/modules/resourcegraph_profile_module.rb +129 -129
- data/lib/latest/modules/resourcehealth_profile_module.rb +111 -111
- data/lib/latest/modules/resources_profile_module.rb +321 -321
- data/lib/latest/modules/resourcesmanagement_profile_module.rb +163 -163
- data/lib/latest/modules/scheduler_profile_module.rb +227 -227
- data/lib/latest/modules/search_profile_module.rb +127 -127
- data/lib/latest/modules/security_profile_module.rb +733 -733
- data/lib/latest/modules/serialconsole_profile_module.rb +73 -73
- data/lib/latest/modules/servicebus_profile_module.rb +309 -309
- data/lib/latest/modules/servicefabric_profile_module.rb +2711 -2711
- data/lib/latest/modules/signalr_profile_module.rb +161 -161
- data/lib/latest/modules/spellcheck_profile_module.rb +101 -101
- data/lib/latest/modules/sql_profile_module.rb +1765 -1765
- data/lib/latest/modules/sqlvirtualmachine_profile_module.rb +235 -235
- data/lib/latest/modules/storage_profile_module.rb +569 -549
- data/lib/latest/modules/storagecache_profile_module.rb +173 -173
- data/lib/latest/modules/storagesync_profile_module.rb +275 -275
- data/lib/latest/modules/storsimple8000series_profile_module.rb +715 -715
- data/lib/latest/modules/streamanalytics_profile_module.rb +349 -349
- data/lib/latest/modules/subscriptions_profile_module.rb +207 -207
- data/lib/latest/modules/textanalytics_profile_module.rb +125 -125
- data/lib/latest/modules/timeseriesinsights_profile_module.rb +0 -0
- data/lib/latest/modules/trafficmanager_profile_module.rb +173 -173
- data/lib/latest/modules/videosearch_profile_module.rb +175 -175
- data/lib/latest/modules/visualsearch_profile_module.rb +235 -235
- data/lib/latest/modules/vmwarecloudsimple_profile_module.rb +247 -247
- data/lib/latest/modules/web_profile_module.rb +1419 -1419
- data/lib/latest/modules/websearch_profile_module.rb +211 -211
- data/lib/v2017_03_09/module_definition.rb +6 -6
- data/lib/v2017_03_09/modules/authorization_profile_module.rb +141 -141
- data/lib/v2017_03_09/modules/compute_profile_module.rb +469 -469
- data/lib/v2017_03_09/modules/dns_profile_module.rb +139 -139
- data/lib/v2017_03_09/modules/features_profile_module.rb +73 -73
- data/lib/v2017_03_09/modules/keyvault_profile_module.rb +559 -559
- data/lib/v2017_03_09/modules/links_profile_module.rb +83 -83
- data/lib/v2017_03_09/modules/locks_profile_module.rb +61 -61
- data/lib/v2017_03_09/modules/network_profile_module.rb +555 -555
- data/lib/v2017_03_09/modules/policy_profile_module.rb +71 -71
- data/lib/v2017_03_09/modules/resources_profile_module.rb +255 -255
- data/lib/v2017_03_09/modules/storage_profile_module.rb +163 -163
- data/lib/v2017_03_09/modules/subscriptions_profile_module.rb +101 -101
- data/lib/v2017_03_09/v2017_03_09_profile_client.rb +170 -170
- data/lib/v2018_03_01/module_definition.rb +6 -6
- data/lib/v2018_03_01/modules/authorization_profile_module.rb +133 -133
- data/lib/v2018_03_01/modules/compute_profile_module.rb +755 -755
- data/lib/v2018_03_01/modules/dns_profile_module.rb +139 -139
- data/lib/v2018_03_01/modules/keyvault_profile_module.rb +559 -559
- data/lib/v2018_03_01/modules/locks_profile_module.rb +79 -79
- data/lib/v2018_03_01/modules/network_profile_module.rb +1321 -1321
- data/lib/v2018_03_01/modules/policy_profile_module.rb +75 -75
- data/lib/v2018_03_01/modules/resources_profile_module.rb +271 -271
- data/lib/v2018_03_01/modules/storage_profile_module.rb +163 -163
- data/lib/v2018_03_01/modules/subscriptions_profile_module.rb +101 -101
- data/lib/v2018_03_01/modules/web_profile_module.rb +1223 -1223
- data/lib/v2018_03_01/v2018_03_01_profile_client.rb +160 -160
- data/lib/v2019_03_01_hybrid/module_definition.rb +6 -6
- data/lib/v2019_03_01_hybrid/modules/authorization_profile_module.rb +133 -133
- data/lib/v2019_03_01_hybrid/modules/compute_profile_module.rb +855 -855
- data/lib/v2019_03_01_hybrid/modules/dns_profile_module.rb +139 -139
- data/lib/v2019_03_01_hybrid/modules/keyvault_profile_module.rb +559 -559
- data/lib/v2019_03_01_hybrid/modules/locks_profile_module.rb +79 -79
- data/lib/v2019_03_01_hybrid/modules/monitor_profile_module.rb +285 -285
- data/lib/v2019_03_01_hybrid/modules/network_profile_module.rb +1261 -1261
- data/lib/v2019_03_01_hybrid/modules/policy_profile_module.rb +75 -75
- data/lib/v2019_03_01_hybrid/modules/resources_profile_module.rb +289 -289
- data/lib/v2019_03_01_hybrid/modules/storage_profile_module.rb +283 -283
- data/lib/v2019_03_01_hybrid/modules/subscriptions_profile_module.rb +101 -101
- data/lib/v2019_03_01_hybrid/modules/web_profile_module.rb +1457 -1457
- data/lib/v2019_03_01_hybrid/v2019_03_01_hybrid_profile_client.rb +170 -170
- metadata +27 -26
@@ -1,79 +1,79 @@
|
|
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_locks'
|
6
|
-
|
7
|
-
module Azure::Profiles::V2019_03_01_Hybrid
|
8
|
-
module Locks
|
9
|
-
module Mgmt
|
10
|
-
AuthorizationOperations = Azure::Locks::Mgmt::V2016_09_01::AuthorizationOperations
|
11
|
-
ManagementLocks = Azure::Locks::Mgmt::V2016_09_01::ManagementLocks
|
12
|
-
|
13
|
-
module Models
|
14
|
-
OperationDisplay = Azure::Locks::Mgmt::V2016_09_01::Models::OperationDisplay
|
15
|
-
ManagementLockOwner = Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockOwner
|
16
|
-
Operation = Azure::Locks::Mgmt::V2016_09_01::Models::Operation
|
17
|
-
ManagementLockListResult = Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockListResult
|
18
|
-
OperationListResult = Azure::Locks::Mgmt::V2016_09_01::Models::OperationListResult
|
19
|
-
ManagementLockObject = Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockObject
|
20
|
-
LockLevel = Azure::Locks::Mgmt::V2016_09_01::Models::LockLevel
|
21
|
-
end
|
22
|
-
|
23
|
-
class LocksManagementClass
|
24
|
-
attr_reader :authorization_operations, :management_locks, :configurable, :base_url, :options, :model_classes
|
25
|
-
|
26
|
-
def initialize(configurable, base_url=nil, options=nil)
|
27
|
-
@configurable, @base_url, @options = configurable, base_url, options
|
28
|
-
|
29
|
-
@client_0 = Azure::Locks::Mgmt::V2016_09_01::ManagementLockClient.new(configurable.credentials, base_url, options)
|
30
|
-
if(@client_0.respond_to?(:subscription_id))
|
31
|
-
@client_0.subscription_id = configurable.subscription_id
|
32
|
-
end
|
33
|
-
add_telemetry(@client_0)
|
34
|
-
@authorization_operations = @client_0.authorization_operations
|
35
|
-
@management_locks = @client_0.management_locks
|
36
|
-
|
37
|
-
@model_classes = ModelClasses.new
|
38
|
-
end
|
39
|
-
|
40
|
-
def add_telemetry(client)
|
41
|
-
profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/V2019_03_01_Hybrid/Locks/Mgmt"
|
42
|
-
client.add_user_agent_information(profile_information)
|
43
|
-
end
|
44
|
-
|
45
|
-
def method_missing(method, *args)
|
46
|
-
if @client_0.respond_to?method
|
47
|
-
@client_0.send(method, *args)
|
48
|
-
else
|
49
|
-
super
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
|
-
class ModelClasses
|
54
|
-
def operation_display
|
55
|
-
Azure::Locks::Mgmt::V2016_09_01::Models::OperationDisplay
|
56
|
-
end
|
57
|
-
def management_lock_owner
|
58
|
-
Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockOwner
|
59
|
-
end
|
60
|
-
def operation
|
61
|
-
Azure::Locks::Mgmt::V2016_09_01::Models::Operation
|
62
|
-
end
|
63
|
-
def management_lock_list_result
|
64
|
-
Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockListResult
|
65
|
-
end
|
66
|
-
def operation_list_result
|
67
|
-
Azure::Locks::Mgmt::V2016_09_01::Models::OperationListResult
|
68
|
-
end
|
69
|
-
def management_lock_object
|
70
|
-
Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockObject
|
71
|
-
end
|
72
|
-
def lock_level
|
73
|
-
Azure::Locks::Mgmt::V2016_09_01::Models::LockLevel
|
74
|
-
end
|
75
|
-
end
|
76
|
-
end
|
77
|
-
end
|
78
|
-
end
|
79
|
-
end
|
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_locks'
|
6
|
+
|
7
|
+
module Azure::Profiles::V2019_03_01_Hybrid
|
8
|
+
module Locks
|
9
|
+
module Mgmt
|
10
|
+
AuthorizationOperations = Azure::Locks::Mgmt::V2016_09_01::AuthorizationOperations
|
11
|
+
ManagementLocks = Azure::Locks::Mgmt::V2016_09_01::ManagementLocks
|
12
|
+
|
13
|
+
module Models
|
14
|
+
OperationDisplay = Azure::Locks::Mgmt::V2016_09_01::Models::OperationDisplay
|
15
|
+
ManagementLockOwner = Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockOwner
|
16
|
+
Operation = Azure::Locks::Mgmt::V2016_09_01::Models::Operation
|
17
|
+
ManagementLockListResult = Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockListResult
|
18
|
+
OperationListResult = Azure::Locks::Mgmt::V2016_09_01::Models::OperationListResult
|
19
|
+
ManagementLockObject = Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockObject
|
20
|
+
LockLevel = Azure::Locks::Mgmt::V2016_09_01::Models::LockLevel
|
21
|
+
end
|
22
|
+
|
23
|
+
class LocksManagementClass
|
24
|
+
attr_reader :authorization_operations, :management_locks, :configurable, :base_url, :options, :model_classes
|
25
|
+
|
26
|
+
def initialize(configurable, base_url=nil, options=nil)
|
27
|
+
@configurable, @base_url, @options = configurable, base_url, options
|
28
|
+
|
29
|
+
@client_0 = Azure::Locks::Mgmt::V2016_09_01::ManagementLockClient.new(configurable.credentials, base_url, options)
|
30
|
+
if(@client_0.respond_to?(:subscription_id))
|
31
|
+
@client_0.subscription_id = configurable.subscription_id
|
32
|
+
end
|
33
|
+
add_telemetry(@client_0)
|
34
|
+
@authorization_operations = @client_0.authorization_operations
|
35
|
+
@management_locks = @client_0.management_locks
|
36
|
+
|
37
|
+
@model_classes = ModelClasses.new
|
38
|
+
end
|
39
|
+
|
40
|
+
def add_telemetry(client)
|
41
|
+
profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/V2019_03_01_Hybrid/Locks/Mgmt"
|
42
|
+
client.add_user_agent_information(profile_information)
|
43
|
+
end
|
44
|
+
|
45
|
+
def method_missing(method, *args)
|
46
|
+
if @client_0.respond_to?method
|
47
|
+
@client_0.send(method, *args)
|
48
|
+
else
|
49
|
+
super
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
class ModelClasses
|
54
|
+
def operation_display
|
55
|
+
Azure::Locks::Mgmt::V2016_09_01::Models::OperationDisplay
|
56
|
+
end
|
57
|
+
def management_lock_owner
|
58
|
+
Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockOwner
|
59
|
+
end
|
60
|
+
def operation
|
61
|
+
Azure::Locks::Mgmt::V2016_09_01::Models::Operation
|
62
|
+
end
|
63
|
+
def management_lock_list_result
|
64
|
+
Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockListResult
|
65
|
+
end
|
66
|
+
def operation_list_result
|
67
|
+
Azure::Locks::Mgmt::V2016_09_01::Models::OperationListResult
|
68
|
+
end
|
69
|
+
def management_lock_object
|
70
|
+
Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockObject
|
71
|
+
end
|
72
|
+
def lock_level
|
73
|
+
Azure::Locks::Mgmt::V2016_09_01::Models::LockLevel
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
@@ -1,285 +1,285 @@
|
|
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_monitor'
|
6
|
-
|
7
|
-
module Azure::Profiles::V2019_03_01_Hybrid
|
8
|
-
module Monitor
|
9
|
-
module Mgmt
|
10
|
-
ActivityLogs = Azure::Monitor::Mgmt::V2015_04_01::ActivityLogs
|
11
|
-
AutoscaleSettings = Azure::Monitor::Mgmt::V2015_04_01::AutoscaleSettings
|
12
|
-
EventCategories = Azure::Monitor::Mgmt::V2015_04_01::EventCategories
|
13
|
-
Operations = Azure::Monitor::Mgmt::V2015_04_01::Operations
|
14
|
-
TenantActivityLogs = Azure::Monitor::Mgmt::V2015_04_01::TenantActivityLogs
|
15
|
-
DiagnosticSettingsOperations = Azure::Monitor::Mgmt::V2017_05_01_preview::DiagnosticSettingsOperations
|
16
|
-
DiagnosticSettingsCategoryOperations = Azure::Monitor::Mgmt::V2017_05_01_preview::DiagnosticSettingsCategoryOperations
|
17
|
-
MetricDefinitions = Azure::Monitor::Mgmt::V2018_01_01::MetricDefinitions
|
18
|
-
Metrics = Azure::Monitor::Mgmt::V2018_01_01::Metrics
|
19
|
-
|
20
|
-
module Models
|
21
|
-
RecurrentSchedule = Azure::Monitor::Mgmt::V2015_04_01::Models::RecurrentSchedule
|
22
|
-
Recurrence = Azure::Monitor::Mgmt::V2015_04_01::Models::Recurrence
|
23
|
-
SenderAuthorization = Azure::Monitor::Mgmt::V2015_04_01::Models::SenderAuthorization
|
24
|
-
AutoscaleProfile = Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleProfile
|
25
|
-
EventData = Azure::Monitor::Mgmt::V2015_04_01::Models::EventData
|
26
|
-
EmailNotification = Azure::Monitor::Mgmt::V2015_04_01::Models::EmailNotification
|
27
|
-
WebhookNotification = Azure::Monitor::Mgmt::V2015_04_01::Models::WebhookNotification
|
28
|
-
ScaleCapacity = Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleCapacity
|
29
|
-
AutoscaleNotification = Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleNotification
|
30
|
-
ScaleAction = Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleAction
|
31
|
-
ScaleRule = Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleRule
|
32
|
-
AutoscaleSettingResourcePatch = Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleSettingResourcePatch
|
33
|
-
EventDataCollection = Azure::Monitor::Mgmt::V2015_04_01::Models::EventDataCollection
|
34
|
-
AutoscaleSettingResourceCollection = Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleSettingResourceCollection
|
35
|
-
MetricTrigger = Azure::Monitor::Mgmt::V2015_04_01::Models::MetricTrigger
|
36
|
-
EventCategoryCollection = Azure::Monitor::Mgmt::V2015_04_01::Models::EventCategoryCollection
|
37
|
-
HttpRequestInfo = Azure::Monitor::Mgmt::V2015_04_01::Models::HttpRequestInfo
|
38
|
-
OperationDisplay = Azure::Monitor::Mgmt::V2015_04_01::Models::OperationDisplay
|
39
|
-
TimeWindow = Azure::Monitor::Mgmt::V2015_04_01::Models::TimeWindow
|
40
|
-
Operation = Azure::Monitor::Mgmt::V2015_04_01::Models::Operation
|
41
|
-
Resource = Azure::Monitor::Mgmt::V2015_04_01::Models::Resource
|
42
|
-
OperationListResult = Azure::Monitor::Mgmt::V2015_04_01::Models::OperationListResult
|
43
|
-
AutoscaleSettingResource = Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleSettingResource
|
44
|
-
EventLevel = Azure::Monitor::Mgmt::V2015_04_01::Models::EventLevel
|
45
|
-
MetricStatisticType = Azure::Monitor::Mgmt::V2015_04_01::Models::MetricStatisticType
|
46
|
-
TimeAggregationType = Azure::Monitor::Mgmt::V2015_04_01::Models::TimeAggregationType
|
47
|
-
ComparisonOperationType = Azure::Monitor::Mgmt::V2015_04_01::Models::ComparisonOperationType
|
48
|
-
ScaleDirection = Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleDirection
|
49
|
-
ScaleType = Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleType
|
50
|
-
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
|
-
DiagnosticSettingsCategoryResourceCollection = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsCategoryResourceCollection
|
54
|
-
DiagnosticSettingsResourceCollection = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsResourceCollection
|
55
|
-
RetentionPolicy = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::RetentionPolicy
|
56
|
-
DiagnosticSettingsResource = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsResource
|
57
|
-
DiagnosticSettingsCategoryResource = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsCategoryResource
|
58
|
-
CategoryType = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::CategoryType
|
59
|
-
MetricValue = Azure::Monitor::Mgmt::V2018_01_01::Models::MetricValue
|
60
|
-
LocalizableString = Azure::Monitor::Mgmt::V2018_01_01::Models::LocalizableString
|
61
|
-
MetadataValue = Azure::Monitor::Mgmt::V2018_01_01::Models::MetadataValue
|
62
|
-
MetricDefinition = Azure::Monitor::Mgmt::V2018_01_01::Models::MetricDefinition
|
63
|
-
TimeSeriesElement = Azure::Monitor::Mgmt::V2018_01_01::Models::TimeSeriesElement
|
64
|
-
ErrorResponse = Azure::Monitor::Mgmt::V2018_01_01::Models::ErrorResponse
|
65
|
-
Metric = Azure::Monitor::Mgmt::V2018_01_01::Models::Metric
|
66
|
-
MetricDefinitionCollection = Azure::Monitor::Mgmt::V2018_01_01::Models::MetricDefinitionCollection
|
67
|
-
Response = Azure::Monitor::Mgmt::V2018_01_01::Models::Response
|
68
|
-
MetricAvailability = Azure::Monitor::Mgmt::V2018_01_01::Models::MetricAvailability
|
69
|
-
Unit = Azure::Monitor::Mgmt::V2018_01_01::Models::Unit
|
70
|
-
AggregationType = Azure::Monitor::Mgmt::V2018_01_01::Models::AggregationType
|
71
|
-
ResultType = Azure::Monitor::Mgmt::V2018_01_01::Models::ResultType
|
72
|
-
end
|
73
|
-
|
74
|
-
class MonitorManagementClass
|
75
|
-
attr_reader :activity_logs, :autoscale_settings, :event_categories, :operations, :tenant_activity_logs, :diagnostic_settings_operations, :diagnostic_settings_category_operations, :metric_definitions, :metrics, :configurable, :base_url, :options, :model_classes
|
76
|
-
|
77
|
-
def initialize(configurable, base_url=nil, options=nil)
|
78
|
-
@configurable, @base_url, @options = configurable, base_url, options
|
79
|
-
|
80
|
-
@client_0 = Azure::Monitor::Mgmt::V2015_04_01::MonitorManagementClient.new(configurable.credentials, base_url, options)
|
81
|
-
if(@client_0.respond_to?(:subscription_id))
|
82
|
-
@client_0.subscription_id = configurable.subscription_id
|
83
|
-
end
|
84
|
-
add_telemetry(@client_0)
|
85
|
-
@activity_logs = @client_0.activity_logs
|
86
|
-
@autoscale_settings = @client_0.autoscale_settings
|
87
|
-
@event_categories = @client_0.event_categories
|
88
|
-
@operations = @client_0.operations
|
89
|
-
@tenant_activity_logs = @client_0.tenant_activity_logs
|
90
|
-
|
91
|
-
@client_1 = Azure::Monitor::Mgmt::V2017_05_01_preview::MonitorManagementClient.new(configurable.credentials, base_url, options)
|
92
|
-
if(@client_1.respond_to?(:subscription_id))
|
93
|
-
@client_1.subscription_id = configurable.subscription_id
|
94
|
-
end
|
95
|
-
add_telemetry(@client_1)
|
96
|
-
@diagnostic_settings_operations = @client_1.diagnostic_settings_operations
|
97
|
-
@diagnostic_settings_category_operations = @client_1.diagnostic_settings_category_operations
|
98
|
-
|
99
|
-
@client_2 = Azure::Monitor::Mgmt::V2018_01_01::MonitorManagementClient.new(configurable.credentials, base_url, options)
|
100
|
-
if(@client_2.respond_to?(:subscription_id))
|
101
|
-
@client_2.subscription_id = configurable.subscription_id
|
102
|
-
end
|
103
|
-
add_telemetry(@client_2)
|
104
|
-
@metric_definitions = @client_2.metric_definitions
|
105
|
-
@metrics = @client_2.metrics
|
106
|
-
|
107
|
-
@model_classes = ModelClasses.new
|
108
|
-
end
|
109
|
-
|
110
|
-
def add_telemetry(client)
|
111
|
-
profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/V2019_03_01_Hybrid/Monitor/Mgmt"
|
112
|
-
client.add_user_agent_information(profile_information)
|
113
|
-
end
|
114
|
-
|
115
|
-
def method_missing(method, *args)
|
116
|
-
if @client_2.respond_to?method
|
117
|
-
@client_2.send(method, *args)
|
118
|
-
elsif @client_1.respond_to?method
|
119
|
-
@client_1.send(method, *args)
|
120
|
-
elsif @client_0.respond_to?method
|
121
|
-
@client_0.send(method, *args)
|
122
|
-
else
|
123
|
-
super
|
124
|
-
end
|
125
|
-
end
|
126
|
-
|
127
|
-
class ModelClasses
|
128
|
-
def recurrent_schedule
|
129
|
-
Azure::Monitor::Mgmt::V2015_04_01::Models::RecurrentSchedule
|
130
|
-
end
|
131
|
-
def recurrence
|
132
|
-
Azure::Monitor::Mgmt::V2015_04_01::Models::Recurrence
|
133
|
-
end
|
134
|
-
def sender_authorization
|
135
|
-
Azure::Monitor::Mgmt::V2015_04_01::Models::SenderAuthorization
|
136
|
-
end
|
137
|
-
def autoscale_profile
|
138
|
-
Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleProfile
|
139
|
-
end
|
140
|
-
def event_data
|
141
|
-
Azure::Monitor::Mgmt::V2015_04_01::Models::EventData
|
142
|
-
end
|
143
|
-
def email_notification
|
144
|
-
Azure::Monitor::Mgmt::V2015_04_01::Models::EmailNotification
|
145
|
-
end
|
146
|
-
def webhook_notification
|
147
|
-
Azure::Monitor::Mgmt::V2015_04_01::Models::WebhookNotification
|
148
|
-
end
|
149
|
-
def scale_capacity
|
150
|
-
Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleCapacity
|
151
|
-
end
|
152
|
-
def autoscale_notification
|
153
|
-
Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleNotification
|
154
|
-
end
|
155
|
-
def scale_action
|
156
|
-
Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleAction
|
157
|
-
end
|
158
|
-
def scale_rule
|
159
|
-
Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleRule
|
160
|
-
end
|
161
|
-
def autoscale_setting_resource_patch
|
162
|
-
Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleSettingResourcePatch
|
163
|
-
end
|
164
|
-
def event_data_collection
|
165
|
-
Azure::Monitor::Mgmt::V2015_04_01::Models::EventDataCollection
|
166
|
-
end
|
167
|
-
def autoscale_setting_resource_collection
|
168
|
-
Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleSettingResourceCollection
|
169
|
-
end
|
170
|
-
def metric_trigger
|
171
|
-
Azure::Monitor::Mgmt::V2015_04_01::Models::MetricTrigger
|
172
|
-
end
|
173
|
-
def event_category_collection
|
174
|
-
Azure::Monitor::Mgmt::V2015_04_01::Models::EventCategoryCollection
|
175
|
-
end
|
176
|
-
def http_request_info
|
177
|
-
Azure::Monitor::Mgmt::V2015_04_01::Models::HttpRequestInfo
|
178
|
-
end
|
179
|
-
def operation_display
|
180
|
-
Azure::Monitor::Mgmt::V2015_04_01::Models::OperationDisplay
|
181
|
-
end
|
182
|
-
def time_window
|
183
|
-
Azure::Monitor::Mgmt::V2015_04_01::Models::TimeWindow
|
184
|
-
end
|
185
|
-
def operation
|
186
|
-
Azure::Monitor::Mgmt::V2015_04_01::Models::Operation
|
187
|
-
end
|
188
|
-
def resource
|
189
|
-
Azure::Monitor::Mgmt::V2015_04_01::Models::Resource
|
190
|
-
end
|
191
|
-
def operation_list_result
|
192
|
-
Azure::Monitor::Mgmt::V2015_04_01::Models::OperationListResult
|
193
|
-
end
|
194
|
-
def autoscale_setting_resource
|
195
|
-
Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleSettingResource
|
196
|
-
end
|
197
|
-
def event_level
|
198
|
-
Azure::Monitor::Mgmt::V2015_04_01::Models::EventLevel
|
199
|
-
end
|
200
|
-
def metric_statistic_type
|
201
|
-
Azure::Monitor::Mgmt::V2015_04_01::Models::MetricStatisticType
|
202
|
-
end
|
203
|
-
def time_aggregation_type
|
204
|
-
Azure::Monitor::Mgmt::V2015_04_01::Models::TimeAggregationType
|
205
|
-
end
|
206
|
-
def comparison_operation_type
|
207
|
-
Azure::Monitor::Mgmt::V2015_04_01::Models::ComparisonOperationType
|
208
|
-
end
|
209
|
-
def scale_direction
|
210
|
-
Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleDirection
|
211
|
-
end
|
212
|
-
def scale_type
|
213
|
-
Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleType
|
214
|
-
end
|
215
|
-
def proxy_only_resource
|
216
|
-
Azure::Monitor::Mgmt::V2017_05_01_preview::Models::ProxyOnlyResource
|
217
|
-
end
|
218
|
-
def metric_settings
|
219
|
-
Azure::Monitor::Mgmt::V2017_05_01_preview::Models::MetricSettings
|
220
|
-
end
|
221
|
-
def log_settings
|
222
|
-
Azure::Monitor::Mgmt::V2017_05_01_preview::Models::LogSettings
|
223
|
-
end
|
224
|
-
def diagnostic_settings_category_resource_collection
|
225
|
-
Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsCategoryResourceCollection
|
226
|
-
end
|
227
|
-
def diagnostic_settings_resource_collection
|
228
|
-
Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsResourceCollection
|
229
|
-
end
|
230
|
-
def retention_policy
|
231
|
-
Azure::Monitor::Mgmt::V2017_05_01_preview::Models::RetentionPolicy
|
232
|
-
end
|
233
|
-
def diagnostic_settings_resource
|
234
|
-
Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsResource
|
235
|
-
end
|
236
|
-
def diagnostic_settings_category_resource
|
237
|
-
Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsCategoryResource
|
238
|
-
end
|
239
|
-
def category_type
|
240
|
-
Azure::Monitor::Mgmt::V2017_05_01_preview::Models::CategoryType
|
241
|
-
end
|
242
|
-
def metric_value
|
243
|
-
Azure::Monitor::Mgmt::V2018_01_01::Models::MetricValue
|
244
|
-
end
|
245
|
-
def localizable_string
|
246
|
-
Azure::Monitor::Mgmt::V2018_01_01::Models::LocalizableString
|
247
|
-
end
|
248
|
-
def metadata_value
|
249
|
-
Azure::Monitor::Mgmt::V2018_01_01::Models::MetadataValue
|
250
|
-
end
|
251
|
-
def metric_definition
|
252
|
-
Azure::Monitor::Mgmt::V2018_01_01::Models::MetricDefinition
|
253
|
-
end
|
254
|
-
def time_series_element
|
255
|
-
Azure::Monitor::Mgmt::V2018_01_01::Models::TimeSeriesElement
|
256
|
-
end
|
257
|
-
def error_response
|
258
|
-
Azure::Monitor::Mgmt::V2018_01_01::Models::ErrorResponse
|
259
|
-
end
|
260
|
-
def metric
|
261
|
-
Azure::Monitor::Mgmt::V2018_01_01::Models::Metric
|
262
|
-
end
|
263
|
-
def metric_definition_collection
|
264
|
-
Azure::Monitor::Mgmt::V2018_01_01::Models::MetricDefinitionCollection
|
265
|
-
end
|
266
|
-
def response
|
267
|
-
Azure::Monitor::Mgmt::V2018_01_01::Models::Response
|
268
|
-
end
|
269
|
-
def metric_availability
|
270
|
-
Azure::Monitor::Mgmt::V2018_01_01::Models::MetricAvailability
|
271
|
-
end
|
272
|
-
def unit
|
273
|
-
Azure::Monitor::Mgmt::V2018_01_01::Models::Unit
|
274
|
-
end
|
275
|
-
def aggregation_type
|
276
|
-
Azure::Monitor::Mgmt::V2018_01_01::Models::AggregationType
|
277
|
-
end
|
278
|
-
def result_type
|
279
|
-
Azure::Monitor::Mgmt::V2018_01_01::Models::ResultType
|
280
|
-
end
|
281
|
-
end
|
282
|
-
end
|
283
|
-
end
|
284
|
-
end
|
285
|
-
end
|
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_monitor'
|
6
|
+
|
7
|
+
module Azure::Profiles::V2019_03_01_Hybrid
|
8
|
+
module Monitor
|
9
|
+
module Mgmt
|
10
|
+
ActivityLogs = Azure::Monitor::Mgmt::V2015_04_01::ActivityLogs
|
11
|
+
AutoscaleSettings = Azure::Monitor::Mgmt::V2015_04_01::AutoscaleSettings
|
12
|
+
EventCategories = Azure::Monitor::Mgmt::V2015_04_01::EventCategories
|
13
|
+
Operations = Azure::Monitor::Mgmt::V2015_04_01::Operations
|
14
|
+
TenantActivityLogs = Azure::Monitor::Mgmt::V2015_04_01::TenantActivityLogs
|
15
|
+
DiagnosticSettingsOperations = Azure::Monitor::Mgmt::V2017_05_01_preview::DiagnosticSettingsOperations
|
16
|
+
DiagnosticSettingsCategoryOperations = Azure::Monitor::Mgmt::V2017_05_01_preview::DiagnosticSettingsCategoryOperations
|
17
|
+
MetricDefinitions = Azure::Monitor::Mgmt::V2018_01_01::MetricDefinitions
|
18
|
+
Metrics = Azure::Monitor::Mgmt::V2018_01_01::Metrics
|
19
|
+
|
20
|
+
module Models
|
21
|
+
RecurrentSchedule = Azure::Monitor::Mgmt::V2015_04_01::Models::RecurrentSchedule
|
22
|
+
Recurrence = Azure::Monitor::Mgmt::V2015_04_01::Models::Recurrence
|
23
|
+
SenderAuthorization = Azure::Monitor::Mgmt::V2015_04_01::Models::SenderAuthorization
|
24
|
+
AutoscaleProfile = Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleProfile
|
25
|
+
EventData = Azure::Monitor::Mgmt::V2015_04_01::Models::EventData
|
26
|
+
EmailNotification = Azure::Monitor::Mgmt::V2015_04_01::Models::EmailNotification
|
27
|
+
WebhookNotification = Azure::Monitor::Mgmt::V2015_04_01::Models::WebhookNotification
|
28
|
+
ScaleCapacity = Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleCapacity
|
29
|
+
AutoscaleNotification = Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleNotification
|
30
|
+
ScaleAction = Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleAction
|
31
|
+
ScaleRule = Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleRule
|
32
|
+
AutoscaleSettingResourcePatch = Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleSettingResourcePatch
|
33
|
+
EventDataCollection = Azure::Monitor::Mgmt::V2015_04_01::Models::EventDataCollection
|
34
|
+
AutoscaleSettingResourceCollection = Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleSettingResourceCollection
|
35
|
+
MetricTrigger = Azure::Monitor::Mgmt::V2015_04_01::Models::MetricTrigger
|
36
|
+
EventCategoryCollection = Azure::Monitor::Mgmt::V2015_04_01::Models::EventCategoryCollection
|
37
|
+
HttpRequestInfo = Azure::Monitor::Mgmt::V2015_04_01::Models::HttpRequestInfo
|
38
|
+
OperationDisplay = Azure::Monitor::Mgmt::V2015_04_01::Models::OperationDisplay
|
39
|
+
TimeWindow = Azure::Monitor::Mgmt::V2015_04_01::Models::TimeWindow
|
40
|
+
Operation = Azure::Monitor::Mgmt::V2015_04_01::Models::Operation
|
41
|
+
Resource = Azure::Monitor::Mgmt::V2015_04_01::Models::Resource
|
42
|
+
OperationListResult = Azure::Monitor::Mgmt::V2015_04_01::Models::OperationListResult
|
43
|
+
AutoscaleSettingResource = Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleSettingResource
|
44
|
+
EventLevel = Azure::Monitor::Mgmt::V2015_04_01::Models::EventLevel
|
45
|
+
MetricStatisticType = Azure::Monitor::Mgmt::V2015_04_01::Models::MetricStatisticType
|
46
|
+
TimeAggregationType = Azure::Monitor::Mgmt::V2015_04_01::Models::TimeAggregationType
|
47
|
+
ComparisonOperationType = Azure::Monitor::Mgmt::V2015_04_01::Models::ComparisonOperationType
|
48
|
+
ScaleDirection = Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleDirection
|
49
|
+
ScaleType = Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleType
|
50
|
+
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
|
+
DiagnosticSettingsCategoryResourceCollection = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsCategoryResourceCollection
|
54
|
+
DiagnosticSettingsResourceCollection = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsResourceCollection
|
55
|
+
RetentionPolicy = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::RetentionPolicy
|
56
|
+
DiagnosticSettingsResource = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsResource
|
57
|
+
DiagnosticSettingsCategoryResource = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsCategoryResource
|
58
|
+
CategoryType = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::CategoryType
|
59
|
+
MetricValue = Azure::Monitor::Mgmt::V2018_01_01::Models::MetricValue
|
60
|
+
LocalizableString = Azure::Monitor::Mgmt::V2018_01_01::Models::LocalizableString
|
61
|
+
MetadataValue = Azure::Monitor::Mgmt::V2018_01_01::Models::MetadataValue
|
62
|
+
MetricDefinition = Azure::Monitor::Mgmt::V2018_01_01::Models::MetricDefinition
|
63
|
+
TimeSeriesElement = Azure::Monitor::Mgmt::V2018_01_01::Models::TimeSeriesElement
|
64
|
+
ErrorResponse = Azure::Monitor::Mgmt::V2018_01_01::Models::ErrorResponse
|
65
|
+
Metric = Azure::Monitor::Mgmt::V2018_01_01::Models::Metric
|
66
|
+
MetricDefinitionCollection = Azure::Monitor::Mgmt::V2018_01_01::Models::MetricDefinitionCollection
|
67
|
+
Response = Azure::Monitor::Mgmt::V2018_01_01::Models::Response
|
68
|
+
MetricAvailability = Azure::Monitor::Mgmt::V2018_01_01::Models::MetricAvailability
|
69
|
+
Unit = Azure::Monitor::Mgmt::V2018_01_01::Models::Unit
|
70
|
+
AggregationType = Azure::Monitor::Mgmt::V2018_01_01::Models::AggregationType
|
71
|
+
ResultType = Azure::Monitor::Mgmt::V2018_01_01::Models::ResultType
|
72
|
+
end
|
73
|
+
|
74
|
+
class MonitorManagementClass
|
75
|
+
attr_reader :activity_logs, :autoscale_settings, :event_categories, :operations, :tenant_activity_logs, :diagnostic_settings_operations, :diagnostic_settings_category_operations, :metric_definitions, :metrics, :configurable, :base_url, :options, :model_classes
|
76
|
+
|
77
|
+
def initialize(configurable, base_url=nil, options=nil)
|
78
|
+
@configurable, @base_url, @options = configurable, base_url, options
|
79
|
+
|
80
|
+
@client_0 = Azure::Monitor::Mgmt::V2015_04_01::MonitorManagementClient.new(configurable.credentials, base_url, options)
|
81
|
+
if(@client_0.respond_to?(:subscription_id))
|
82
|
+
@client_0.subscription_id = configurable.subscription_id
|
83
|
+
end
|
84
|
+
add_telemetry(@client_0)
|
85
|
+
@activity_logs = @client_0.activity_logs
|
86
|
+
@autoscale_settings = @client_0.autoscale_settings
|
87
|
+
@event_categories = @client_0.event_categories
|
88
|
+
@operations = @client_0.operations
|
89
|
+
@tenant_activity_logs = @client_0.tenant_activity_logs
|
90
|
+
|
91
|
+
@client_1 = Azure::Monitor::Mgmt::V2017_05_01_preview::MonitorManagementClient.new(configurable.credentials, base_url, options)
|
92
|
+
if(@client_1.respond_to?(:subscription_id))
|
93
|
+
@client_1.subscription_id = configurable.subscription_id
|
94
|
+
end
|
95
|
+
add_telemetry(@client_1)
|
96
|
+
@diagnostic_settings_operations = @client_1.diagnostic_settings_operations
|
97
|
+
@diagnostic_settings_category_operations = @client_1.diagnostic_settings_category_operations
|
98
|
+
|
99
|
+
@client_2 = Azure::Monitor::Mgmt::V2018_01_01::MonitorManagementClient.new(configurable.credentials, base_url, options)
|
100
|
+
if(@client_2.respond_to?(:subscription_id))
|
101
|
+
@client_2.subscription_id = configurable.subscription_id
|
102
|
+
end
|
103
|
+
add_telemetry(@client_2)
|
104
|
+
@metric_definitions = @client_2.metric_definitions
|
105
|
+
@metrics = @client_2.metrics
|
106
|
+
|
107
|
+
@model_classes = ModelClasses.new
|
108
|
+
end
|
109
|
+
|
110
|
+
def add_telemetry(client)
|
111
|
+
profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/V2019_03_01_Hybrid/Monitor/Mgmt"
|
112
|
+
client.add_user_agent_information(profile_information)
|
113
|
+
end
|
114
|
+
|
115
|
+
def method_missing(method, *args)
|
116
|
+
if @client_2.respond_to?method
|
117
|
+
@client_2.send(method, *args)
|
118
|
+
elsif @client_1.respond_to?method
|
119
|
+
@client_1.send(method, *args)
|
120
|
+
elsif @client_0.respond_to?method
|
121
|
+
@client_0.send(method, *args)
|
122
|
+
else
|
123
|
+
super
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
127
|
+
class ModelClasses
|
128
|
+
def recurrent_schedule
|
129
|
+
Azure::Monitor::Mgmt::V2015_04_01::Models::RecurrentSchedule
|
130
|
+
end
|
131
|
+
def recurrence
|
132
|
+
Azure::Monitor::Mgmt::V2015_04_01::Models::Recurrence
|
133
|
+
end
|
134
|
+
def sender_authorization
|
135
|
+
Azure::Monitor::Mgmt::V2015_04_01::Models::SenderAuthorization
|
136
|
+
end
|
137
|
+
def autoscale_profile
|
138
|
+
Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleProfile
|
139
|
+
end
|
140
|
+
def event_data
|
141
|
+
Azure::Monitor::Mgmt::V2015_04_01::Models::EventData
|
142
|
+
end
|
143
|
+
def email_notification
|
144
|
+
Azure::Monitor::Mgmt::V2015_04_01::Models::EmailNotification
|
145
|
+
end
|
146
|
+
def webhook_notification
|
147
|
+
Azure::Monitor::Mgmt::V2015_04_01::Models::WebhookNotification
|
148
|
+
end
|
149
|
+
def scale_capacity
|
150
|
+
Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleCapacity
|
151
|
+
end
|
152
|
+
def autoscale_notification
|
153
|
+
Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleNotification
|
154
|
+
end
|
155
|
+
def scale_action
|
156
|
+
Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleAction
|
157
|
+
end
|
158
|
+
def scale_rule
|
159
|
+
Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleRule
|
160
|
+
end
|
161
|
+
def autoscale_setting_resource_patch
|
162
|
+
Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleSettingResourcePatch
|
163
|
+
end
|
164
|
+
def event_data_collection
|
165
|
+
Azure::Monitor::Mgmt::V2015_04_01::Models::EventDataCollection
|
166
|
+
end
|
167
|
+
def autoscale_setting_resource_collection
|
168
|
+
Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleSettingResourceCollection
|
169
|
+
end
|
170
|
+
def metric_trigger
|
171
|
+
Azure::Monitor::Mgmt::V2015_04_01::Models::MetricTrigger
|
172
|
+
end
|
173
|
+
def event_category_collection
|
174
|
+
Azure::Monitor::Mgmt::V2015_04_01::Models::EventCategoryCollection
|
175
|
+
end
|
176
|
+
def http_request_info
|
177
|
+
Azure::Monitor::Mgmt::V2015_04_01::Models::HttpRequestInfo
|
178
|
+
end
|
179
|
+
def operation_display
|
180
|
+
Azure::Monitor::Mgmt::V2015_04_01::Models::OperationDisplay
|
181
|
+
end
|
182
|
+
def time_window
|
183
|
+
Azure::Monitor::Mgmt::V2015_04_01::Models::TimeWindow
|
184
|
+
end
|
185
|
+
def operation
|
186
|
+
Azure::Monitor::Mgmt::V2015_04_01::Models::Operation
|
187
|
+
end
|
188
|
+
def resource
|
189
|
+
Azure::Monitor::Mgmt::V2015_04_01::Models::Resource
|
190
|
+
end
|
191
|
+
def operation_list_result
|
192
|
+
Azure::Monitor::Mgmt::V2015_04_01::Models::OperationListResult
|
193
|
+
end
|
194
|
+
def autoscale_setting_resource
|
195
|
+
Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleSettingResource
|
196
|
+
end
|
197
|
+
def event_level
|
198
|
+
Azure::Monitor::Mgmt::V2015_04_01::Models::EventLevel
|
199
|
+
end
|
200
|
+
def metric_statistic_type
|
201
|
+
Azure::Monitor::Mgmt::V2015_04_01::Models::MetricStatisticType
|
202
|
+
end
|
203
|
+
def time_aggregation_type
|
204
|
+
Azure::Monitor::Mgmt::V2015_04_01::Models::TimeAggregationType
|
205
|
+
end
|
206
|
+
def comparison_operation_type
|
207
|
+
Azure::Monitor::Mgmt::V2015_04_01::Models::ComparisonOperationType
|
208
|
+
end
|
209
|
+
def scale_direction
|
210
|
+
Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleDirection
|
211
|
+
end
|
212
|
+
def scale_type
|
213
|
+
Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleType
|
214
|
+
end
|
215
|
+
def proxy_only_resource
|
216
|
+
Azure::Monitor::Mgmt::V2017_05_01_preview::Models::ProxyOnlyResource
|
217
|
+
end
|
218
|
+
def metric_settings
|
219
|
+
Azure::Monitor::Mgmt::V2017_05_01_preview::Models::MetricSettings
|
220
|
+
end
|
221
|
+
def log_settings
|
222
|
+
Azure::Monitor::Mgmt::V2017_05_01_preview::Models::LogSettings
|
223
|
+
end
|
224
|
+
def diagnostic_settings_category_resource_collection
|
225
|
+
Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsCategoryResourceCollection
|
226
|
+
end
|
227
|
+
def diagnostic_settings_resource_collection
|
228
|
+
Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsResourceCollection
|
229
|
+
end
|
230
|
+
def retention_policy
|
231
|
+
Azure::Monitor::Mgmt::V2017_05_01_preview::Models::RetentionPolicy
|
232
|
+
end
|
233
|
+
def diagnostic_settings_resource
|
234
|
+
Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsResource
|
235
|
+
end
|
236
|
+
def diagnostic_settings_category_resource
|
237
|
+
Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsCategoryResource
|
238
|
+
end
|
239
|
+
def category_type
|
240
|
+
Azure::Monitor::Mgmt::V2017_05_01_preview::Models::CategoryType
|
241
|
+
end
|
242
|
+
def metric_value
|
243
|
+
Azure::Monitor::Mgmt::V2018_01_01::Models::MetricValue
|
244
|
+
end
|
245
|
+
def localizable_string
|
246
|
+
Azure::Monitor::Mgmt::V2018_01_01::Models::LocalizableString
|
247
|
+
end
|
248
|
+
def metadata_value
|
249
|
+
Azure::Monitor::Mgmt::V2018_01_01::Models::MetadataValue
|
250
|
+
end
|
251
|
+
def metric_definition
|
252
|
+
Azure::Monitor::Mgmt::V2018_01_01::Models::MetricDefinition
|
253
|
+
end
|
254
|
+
def time_series_element
|
255
|
+
Azure::Monitor::Mgmt::V2018_01_01::Models::TimeSeriesElement
|
256
|
+
end
|
257
|
+
def error_response
|
258
|
+
Azure::Monitor::Mgmt::V2018_01_01::Models::ErrorResponse
|
259
|
+
end
|
260
|
+
def metric
|
261
|
+
Azure::Monitor::Mgmt::V2018_01_01::Models::Metric
|
262
|
+
end
|
263
|
+
def metric_definition_collection
|
264
|
+
Azure::Monitor::Mgmt::V2018_01_01::Models::MetricDefinitionCollection
|
265
|
+
end
|
266
|
+
def response
|
267
|
+
Azure::Monitor::Mgmt::V2018_01_01::Models::Response
|
268
|
+
end
|
269
|
+
def metric_availability
|
270
|
+
Azure::Monitor::Mgmt::V2018_01_01::Models::MetricAvailability
|
271
|
+
end
|
272
|
+
def unit
|
273
|
+
Azure::Monitor::Mgmt::V2018_01_01::Models::Unit
|
274
|
+
end
|
275
|
+
def aggregation_type
|
276
|
+
Azure::Monitor::Mgmt::V2018_01_01::Models::AggregationType
|
277
|
+
end
|
278
|
+
def result_type
|
279
|
+
Azure::Monitor::Mgmt::V2018_01_01::Models::ResultType
|
280
|
+
end
|
281
|
+
end
|
282
|
+
end
|
283
|
+
end
|
284
|
+
end
|
285
|
+
end
|