azure_sdk 0.15.2 → 0.16.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +5 -5
  2. data/lib/azure_sdk/version.rb +1 -1
  3. data/lib/latest/latest_profile_client.rb +645 -61
  4. data/lib/latest/module_definition.rb +1 -118
  5. data/lib/latest/modules/analysisservices_profile_module.rb +139 -84
  6. data/lib/latest/modules/authorization_profile_module.rb +113 -100
  7. data/lib/latest/modules/automation_profile_module.rb +597 -580
  8. data/lib/latest/modules/batch_profile_module.rb +357 -132
  9. data/lib/latest/modules/billing_profile_module.rb +77 -64
  10. data/lib/latest/modules/cdn_profile_module.rb +277 -216
  11. data/lib/latest/modules/cognitiveservices_profile_module.rb +121 -108
  12. data/lib/latest/modules/commerce_profile_module.rb +79 -66
  13. data/lib/latest/modules/compute_profile_module.rb +783 -730
  14. data/lib/latest/modules/computervision_profile_module.rb +189 -0
  15. data/lib/latest/modules/consumption_profile_module.rb +153 -54
  16. data/lib/latest/modules/containerinstance_profile_module.rb +163 -106
  17. data/lib/latest/modules/containerregistry_profile_module.rb +203 -190
  18. data/lib/latest/modules/containerservice_profile_module.rb +93 -80
  19. data/lib/latest/modules/contentmoderator_profile_module.rb +295 -0
  20. data/lib/latest/modules/customerinsights_profile_module.rb +477 -464
  21. data/lib/latest/modules/customsearch_profile_module.rb +123 -0
  22. data/lib/latest/modules/datalakeanalytics_profile_module.rb +233 -152
  23. data/lib/latest/modules/datalakestore_profile_module.rb +201 -128
  24. data/lib/latest/modules/devtestlabs_profile_module.rb +697 -656
  25. data/lib/latest/modules/dns_profile_module.rb +99 -94
  26. data/lib/latest/modules/entitysearch_profile_module.rb +231 -0
  27. data/lib/latest/modules/eventgrid_profile_module.rb +220 -99
  28. data/lib/latest/modules/eventhub_profile_module.rb +165 -152
  29. data/lib/latest/modules/face_profile_module.rb +241 -0
  30. data/lib/latest/modules/features_profile_module.rb +41 -28
  31. data/lib/latest/modules/graphrbac_profile_module.rb +225 -0
  32. data/lib/latest/modules/imagesearch_profile_module.rb +279 -0
  33. data/lib/latest/modules/iothub_profile_module.rb +265 -252
  34. data/lib/latest/modules/keyvault_profile_module.rb +155 -88
  35. data/lib/latest/modules/links_profile_module.rb +49 -36
  36. data/lib/latest/modules/locks_profile_module.rb +45 -32
  37. data/lib/latest/modules/logic_profile_module.rb +593 -580
  38. data/lib/latest/modules/machinelearning_profile_module.rb +177 -164
  39. data/lib/latest/modules/managedapplications_profile_module.rb +103 -90
  40. data/lib/latest/modules/managedserviceidentity_profile_module.rb +55 -42
  41. data/lib/latest/modules/marketplaceordering_profile_module.rb +59 -46
  42. data/lib/latest/modules/mediaservices_profile_module.rb +103 -90
  43. data/lib/latest/modules/mobileengagement_profile_module.rb +397 -384
  44. data/lib/latest/modules/monitor_profile_module.rb +403 -323
  45. data/lib/latest/modules/network_profile_module.rb +1245 -1148
  46. data/lib/latest/modules/newssearch_profile_module.rb +143 -0
  47. data/lib/latest/modules/notificationhubs_profile_module.rb +155 -142
  48. data/lib/latest/modules/operationalinsights_profile_module.rb +218 -188
  49. data/lib/latest/modules/policy_profile_module.rb +84 -68
  50. data/lib/latest/modules/powerbiembedded_profile_module.rb +107 -94
  51. data/lib/latest/modules/recoveryservices_profile_module.rb +176 -188
  52. data/lib/latest/modules/recoveryservicesbackup_profile_module.rb +1133 -728
  53. data/lib/latest/modules/recoveryservicessiterecovery_profile_module.rb +1367 -1354
  54. data/lib/latest/modules/redis_profile_module.rb +165 -152
  55. data/lib/latest/modules/relay_profile_module.rb +143 -130
  56. data/lib/latest/modules/resources_profile_module.rb +227 -214
  57. data/lib/latest/modules/resourcesmanagement_profile_module.rb +81 -74
  58. data/lib/latest/modules/scheduler_profile_module.rb +207 -198
  59. data/lib/latest/modules/search_profile_module.rb +103 -76
  60. data/lib/latest/modules/servermanagement_profile_module.rb +155 -142
  61. data/lib/latest/modules/servicebus_profile_module.rb +247 -234
  62. data/lib/latest/modules/servicefabric_profile_module.rb +269 -120
  63. data/lib/latest/modules/spellcheck_profile_module.rb +101 -0
  64. data/lib/latest/modules/sql_profile_module.rb +1075 -918
  65. data/lib/latest/modules/storage_profile_module.rb +263 -250
  66. data/lib/latest/modules/storsimple8000series_profile_module.rb +695 -682
  67. data/lib/latest/modules/streamanalytics_profile_module.rb +329 -316
  68. data/lib/latest/modules/subscriptions_profile_module.rb +67 -54
  69. data/lib/latest/modules/textanalytics_profile_module.rb +105 -0
  70. data/lib/latest/modules/trafficmanager_profile_module.rb +140 -124
  71. data/lib/latest/modules/videosearch_profile_module.rb +175 -0
  72. data/lib/latest/modules/web_profile_module.rb +1289 -1138
  73. data/lib/latest/modules/websearch_profile_module.rb +211 -0
  74. data/lib/v2017_03_09/module_definition.rb +1 -20
  75. data/lib/v2017_03_09/modules/compute_profile_module.rb +437 -424
  76. data/lib/v2017_03_09/modules/features_profile_module.rb +41 -28
  77. data/lib/v2017_03_09/modules/links_profile_module.rb +49 -36
  78. data/lib/v2017_03_09/modules/locks_profile_module.rb +41 -28
  79. data/lib/v2017_03_09/modules/network_profile_module.rb +535 -522
  80. data/lib/v2017_03_09/modules/policy_profile_module.rb +51 -38
  81. data/lib/v2017_03_09/modules/resources_profile_module.rb +223 -210
  82. data/lib/v2017_03_09/modules/storage_profile_module.rb +143 -130
  83. data/lib/v2017_03_09/modules/subscriptions_profile_module.rb +67 -54
  84. data/lib/v2017_03_09/v2017_03_09_profile_client.rb +103 -10
  85. metadata +312 -133
  86. data/lib/latest/modules/graph_profile_module.rb +0 -202
@@ -5,68 +5,81 @@
5
5
  require 'azure_mgmt_subscriptions'
6
6
 
7
7
  module Azure::Profiles::Latest
8
- module Subscriptions::Mgmt
9
- Subscriptions = Azure::Subscriptions::Mgmt::V2016_06_01::Subscriptions
10
- Tenants = Azure::Subscriptions::Mgmt::V2016_06_01::Tenants
8
+ module Subscriptions
9
+ module Mgmt
10
+ Subscriptions = Azure::Subscriptions::Mgmt::V2016_06_01::Subscriptions
11
+ Tenants = Azure::Subscriptions::Mgmt::V2016_06_01::Tenants
11
12
 
12
- module Models
13
- Subscription = Azure::Subscriptions::Mgmt::V2016_06_01::Models::Subscription
14
- SubscriptionListResult = Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionListResult
15
- LocationListResult = Azure::Subscriptions::Mgmt::V2016_06_01::Models::LocationListResult
16
- TenantIdDescription = Azure::Subscriptions::Mgmt::V2016_06_01::Models::TenantIdDescription
17
- Location = Azure::Subscriptions::Mgmt::V2016_06_01::Models::Location
18
- TenantListResult = Azure::Subscriptions::Mgmt::V2016_06_01::Models::TenantListResult
19
- SubscriptionPolicies = Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionPolicies
20
- SubscriptionState = Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionState
21
- SpendingLimit = Azure::Subscriptions::Mgmt::V2016_06_01::Models::SpendingLimit
22
- end
13
+ module Models
14
+ Subscription = Azure::Subscriptions::Mgmt::V2016_06_01::Models::Subscription
15
+ SubscriptionListResult = Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionListResult
16
+ LocationListResult = Azure::Subscriptions::Mgmt::V2016_06_01::Models::LocationListResult
17
+ TenantIdDescription = Azure::Subscriptions::Mgmt::V2016_06_01::Models::TenantIdDescription
18
+ Location = Azure::Subscriptions::Mgmt::V2016_06_01::Models::Location
19
+ TenantListResult = Azure::Subscriptions::Mgmt::V2016_06_01::Models::TenantListResult
20
+ SubscriptionPolicies = Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionPolicies
21
+ SubscriptionState = Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionState
22
+ SpendingLimit = Azure::Subscriptions::Mgmt::V2016_06_01::Models::SpendingLimit
23
+ end
23
24
 
24
- #
25
- # Subscriptions
26
- #
27
- class SubscriptionsClass
28
- attr_reader :subscriptions, :tenants, :configurable, :base_url, :options, :model_classes
25
+ class SubscriptionsManagementClass
26
+ attr_reader :subscriptions, :tenants, :configurable, :base_url, :options, :model_classes
29
27
 
30
- def initialize(configurable, base_url=nil, options=nil)
31
- @configurable, @base_url, @options = configurable, base_url, options
28
+ def initialize(configurable, base_url=nil, options=nil)
29
+ @configurable, @base_url, @options = configurable, base_url, options
32
30
 
33
- client_0 = Azure::Subscriptions::Mgmt::V2016_06_01::SubscriptionClient.new(configurable.credentials, base_url, options)
34
- if(client_0.respond_to?(:subscription_id))
35
- client_0.subscription_id = configurable.subscription_id
36
- end
37
- @subscriptions = client_0.subscriptions
38
- @tenants = client_0.tenants
31
+ @client_0 = Azure::Subscriptions::Mgmt::V2016_06_01::SubscriptionClient.new(configurable.credentials, base_url, options)
32
+ if(@client_0.respond_to?(:subscription_id))
33
+ @client_0.subscription_id = configurable.subscription_id
34
+ end
35
+ add_telemetry(@client_0)
36
+ @subscriptions = @client_0.subscriptions
37
+ @tenants = @client_0.tenants
39
38
 
40
- @model_classes = ModelClasses.new
41
- end
42
-
43
- class ModelClasses
44
- def subscription
45
- Azure::Subscriptions::Mgmt::V2016_06_01::Models::Subscription
46
- end
47
- def subscription_list_result
48
- Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionListResult
49
- end
50
- def location_list_result
51
- Azure::Subscriptions::Mgmt::V2016_06_01::Models::LocationListResult
39
+ @model_classes = ModelClasses.new
52
40
  end
53
- def tenant_id_description
54
- Azure::Subscriptions::Mgmt::V2016_06_01::Models::TenantIdDescription
55
- end
56
- def location
57
- Azure::Subscriptions::Mgmt::V2016_06_01::Models::Location
58
- end
59
- def tenant_list_result
60
- Azure::Subscriptions::Mgmt::V2016_06_01::Models::TenantListResult
61
- end
62
- def subscription_policies
63
- Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionPolicies
41
+
42
+ def add_telemetry(client)
43
+ profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/Latest/Subscriptions/Mgmt"
44
+ client.add_user_agent_information(profile_information)
64
45
  end
65
- def subscription_state
66
- Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionState
46
+
47
+ def method_missing(method, *args)
48
+ if @client_0.respond_to?method
49
+ @client_0.send(method, *args)
50
+ else
51
+ super
52
+ end
67
53
  end
68
- def spending_limit
69
- Azure::Subscriptions::Mgmt::V2016_06_01::Models::SpendingLimit
54
+
55
+ class ModelClasses
56
+ def subscription
57
+ Azure::Subscriptions::Mgmt::V2016_06_01::Models::Subscription
58
+ end
59
+ def subscription_list_result
60
+ Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionListResult
61
+ end
62
+ def location_list_result
63
+ Azure::Subscriptions::Mgmt::V2016_06_01::Models::LocationListResult
64
+ end
65
+ def tenant_id_description
66
+ Azure::Subscriptions::Mgmt::V2016_06_01::Models::TenantIdDescription
67
+ end
68
+ def location
69
+ Azure::Subscriptions::Mgmt::V2016_06_01::Models::Location
70
+ end
71
+ def tenant_list_result
72
+ Azure::Subscriptions::Mgmt::V2016_06_01::Models::TenantListResult
73
+ end
74
+ def subscription_policies
75
+ Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionPolicies
76
+ end
77
+ def subscription_state
78
+ Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionState
79
+ end
80
+ def spending_limit
81
+ Azure::Subscriptions::Mgmt::V2016_06_01::Models::SpendingLimit
82
+ end
70
83
  end
71
84
  end
72
85
  end
@@ -0,0 +1,105 @@
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_cognitiveservices_textanalytics'
6
+
7
+ module Azure::Profiles::Latest
8
+ module TextAnalytics
9
+
10
+ module Models
11
+ Input = Azure::CognitiveServices::TextAnalytics::V2_0::Models::Input
12
+ MultiLanguageInput = Azure::CognitiveServices::TextAnalytics::V2_0::Models::MultiLanguageInput
13
+ BatchInput = Azure::CognitiveServices::TextAnalytics::V2_0::Models::BatchInput
14
+ KeyPhraseBatchResultItem = Azure::CognitiveServices::TextAnalytics::V2_0::Models::KeyPhraseBatchResultItem
15
+ DetectedLanguage = Azure::CognitiveServices::TextAnalytics::V2_0::Models::DetectedLanguage
16
+ KeyPhraseBatchResult = Azure::CognitiveServices::TextAnalytics::V2_0::Models::KeyPhraseBatchResult
17
+ LanguageBatchResultItem = Azure::CognitiveServices::TextAnalytics::V2_0::Models::LanguageBatchResultItem
18
+ ErrorResponse = Azure::CognitiveServices::TextAnalytics::V2_0::Models::ErrorResponse
19
+ LanguageBatchResult = Azure::CognitiveServices::TextAnalytics::V2_0::Models::LanguageBatchResult
20
+ ErrorRecord = Azure::CognitiveServices::TextAnalytics::V2_0::Models::ErrorRecord
21
+ SentimentBatchResultItem = Azure::CognitiveServices::TextAnalytics::V2_0::Models::SentimentBatchResultItem
22
+ MultiLanguageBatchInput = Azure::CognitiveServices::TextAnalytics::V2_0::Models::MultiLanguageBatchInput
23
+ SentimentBatchResult = Azure::CognitiveServices::TextAnalytics::V2_0::Models::SentimentBatchResult
24
+ InternalError = Azure::CognitiveServices::TextAnalytics::V2_0::Models::InternalError
25
+ AzureRegions = Azure::CognitiveServices::TextAnalytics::V2_0::Models::AzureRegions
26
+ end
27
+
28
+ class TextAnalyticsDataClass
29
+ attr_reader :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::CognitiveServices::TextAnalytics::V2_0::TextAnalyticsClient.new(configurable.credentials, 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
+
40
+ @model_classes = ModelClasses.new
41
+ end
42
+
43
+ def add_telemetry(client)
44
+ profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/Latest/TextAnalytics"
45
+ client.add_user_agent_information(profile_information)
46
+ end
47
+
48
+ def method_missing(method, *args)
49
+ if @client_0.respond_to?method
50
+ @client_0.send(method, *args)
51
+ else
52
+ super
53
+ end
54
+ end
55
+
56
+ class ModelClasses
57
+ def input
58
+ Azure::CognitiveServices::TextAnalytics::V2_0::Models::Input
59
+ end
60
+ def multi_language_input
61
+ Azure::CognitiveServices::TextAnalytics::V2_0::Models::MultiLanguageInput
62
+ end
63
+ def batch_input
64
+ Azure::CognitiveServices::TextAnalytics::V2_0::Models::BatchInput
65
+ end
66
+ def key_phrase_batch_result_item
67
+ Azure::CognitiveServices::TextAnalytics::V2_0::Models::KeyPhraseBatchResultItem
68
+ end
69
+ def detected_language
70
+ Azure::CognitiveServices::TextAnalytics::V2_0::Models::DetectedLanguage
71
+ end
72
+ def key_phrase_batch_result
73
+ Azure::CognitiveServices::TextAnalytics::V2_0::Models::KeyPhraseBatchResult
74
+ end
75
+ def language_batch_result_item
76
+ Azure::CognitiveServices::TextAnalytics::V2_0::Models::LanguageBatchResultItem
77
+ end
78
+ def error_response
79
+ Azure::CognitiveServices::TextAnalytics::V2_0::Models::ErrorResponse
80
+ end
81
+ def language_batch_result
82
+ Azure::CognitiveServices::TextAnalytics::V2_0::Models::LanguageBatchResult
83
+ end
84
+ def error_record
85
+ Azure::CognitiveServices::TextAnalytics::V2_0::Models::ErrorRecord
86
+ end
87
+ def sentiment_batch_result_item
88
+ Azure::CognitiveServices::TextAnalytics::V2_0::Models::SentimentBatchResultItem
89
+ end
90
+ def multi_language_batch_input
91
+ Azure::CognitiveServices::TextAnalytics::V2_0::Models::MultiLanguageBatchInput
92
+ end
93
+ def sentiment_batch_result
94
+ Azure::CognitiveServices::TextAnalytics::V2_0::Models::SentimentBatchResult
95
+ end
96
+ def internal_error
97
+ Azure::CognitiveServices::TextAnalytics::V2_0::Models::InternalError
98
+ end
99
+ def azure_regions
100
+ Azure::CognitiveServices::TextAnalytics::V2_0::Models::AzureRegions
101
+ end
102
+ end
103
+ end
104
+ end
105
+ end
@@ -5,139 +5,155 @@
5
5
  require 'azure_mgmt_traffic_manager'
6
6
 
7
7
  module Azure::Profiles::Latest
8
- module TrafficManager::Mgmt
9
- Endpoints = Azure::TrafficManager::Mgmt::V2017_05_01::Endpoints
10
- Profiles = Azure::TrafficManager::Mgmt::V2017_05_01::Profiles
11
- GeographicHierarchies = Azure::TrafficManager::Mgmt::V2017_05_01::GeographicHierarchies
12
- HeatMap = Azure::TrafficManager::Mgmt::V2017_09_01_preview::HeatMap
13
- TrafficManagerUserMetricsKeys = Azure::TrafficManager::Mgmt::V2017_09_01_preview::TrafficManagerUserMetricsKeys
8
+ module TrafficManager
9
+ module Mgmt
10
+ Endpoints = Azure::TrafficManager::Mgmt::V2017_05_01::Endpoints
11
+ Profiles = Azure::TrafficManager::Mgmt::V2017_05_01::Profiles
12
+ GeographicHierarchies = Azure::TrafficManager::Mgmt::V2017_05_01::GeographicHierarchies
13
+ HeatMap = Azure::TrafficManager::Mgmt::V2017_09_01_preview::HeatMap
14
+ TrafficManagerUserMetricsKeys = Azure::TrafficManager::Mgmt::V2017_09_01_preview::TrafficManagerUserMetricsKeys
14
15
 
15
- module Models
16
- TrafficManagerNameAvailability = Azure::TrafficManager::Mgmt::V2017_05_01::Models::TrafficManagerNameAvailability
17
- Region = Azure::TrafficManager::Mgmt::V2017_05_01::Models::Region
18
- ProfileListResult = Azure::TrafficManager::Mgmt::V2017_05_01::Models::ProfileListResult
19
- CheckTrafficManagerRelativeDnsNameAvailabilityParameters = Azure::TrafficManager::Mgmt::V2017_05_01::Models::CheckTrafficManagerRelativeDnsNameAvailabilityParameters
20
- MonitorConfig = Azure::TrafficManager::Mgmt::V2017_05_01::Models::MonitorConfig
21
- DnsConfig = Azure::TrafficManager::Mgmt::V2017_05_01::Models::DnsConfig
22
- Endpoint = Azure::TrafficManager::Mgmt::V2017_05_01::Models::Endpoint
23
- TrafficManagerGeographicHierarchy = Azure::TrafficManager::Mgmt::V2017_05_01::Models::TrafficManagerGeographicHierarchy
24
- Profile = Azure::TrafficManager::Mgmt::V2017_05_01::Models::Profile
25
- EndpointStatus = Azure::TrafficManager::Mgmt::V2017_05_01::Models::EndpointStatus
26
- EndpointMonitorStatus = Azure::TrafficManager::Mgmt::V2017_05_01::Models::EndpointMonitorStatus
27
- ProfileMonitorStatus = Azure::TrafficManager::Mgmt::V2017_05_01::Models::ProfileMonitorStatus
28
- MonitorProtocol = Azure::TrafficManager::Mgmt::V2017_05_01::Models::MonitorProtocol
29
- ProfileStatus = Azure::TrafficManager::Mgmt::V2017_05_01::Models::ProfileStatus
30
- TrafficRoutingMethod = Azure::TrafficManager::Mgmt::V2017_05_01::Models::TrafficRoutingMethod
31
- DeleteOperationResult = Azure::TrafficManager::Mgmt::V2017_09_01_preview::Models::DeleteOperationResult
32
- HeatMapEndpoint = Azure::TrafficManager::Mgmt::V2017_09_01_preview::Models::HeatMapEndpoint
33
- Resource = Azure::TrafficManager::Mgmt::V2017_09_01_preview::Models::Resource
34
- TrafficFlow = Azure::TrafficManager::Mgmt::V2017_09_01_preview::Models::TrafficFlow
35
- QueryExperience = Azure::TrafficManager::Mgmt::V2017_09_01_preview::Models::QueryExperience
36
- TrackedResource = Azure::TrafficManager::Mgmt::V2017_09_01_preview::Models::TrackedResource
37
- ProxyResource = Azure::TrafficManager::Mgmt::V2017_09_01_preview::Models::ProxyResource
38
- HeatMapModel = Azure::TrafficManager::Mgmt::V2017_09_01_preview::Models::HeatMapModel
39
- TrafficManagerUserMetricsKeyModel = Azure::TrafficManager::Mgmt::V2017_09_01_preview::Models::TrafficManagerUserMetricsKeyModel
40
- end
41
-
42
- #
43
- # TrafficManager
44
- #
45
- class TrafficManagerClass
46
- attr_reader :endpoints, :profiles, :geographic_hierarchies, :heat_map, :traffic_manager_user_metrics_keys, :configurable, :base_url, :options, :model_classes
16
+ module Models
17
+ TrafficManagerNameAvailability = Azure::TrafficManager::Mgmt::V2017_05_01::Models::TrafficManagerNameAvailability
18
+ Region = Azure::TrafficManager::Mgmt::V2017_05_01::Models::Region
19
+ CheckTrafficManagerRelativeDnsNameAvailabilityParameters = Azure::TrafficManager::Mgmt::V2017_05_01::Models::CheckTrafficManagerRelativeDnsNameAvailabilityParameters
20
+ DnsConfig = Azure::TrafficManager::Mgmt::V2017_05_01::Models::DnsConfig
21
+ MonitorConfig = Azure::TrafficManager::Mgmt::V2017_05_01::Models::MonitorConfig
22
+ ProfileListResult = Azure::TrafficManager::Mgmt::V2017_05_01::Models::ProfileListResult
23
+ Endpoint = Azure::TrafficManager::Mgmt::V2017_05_01::Models::Endpoint
24
+ Profile = Azure::TrafficManager::Mgmt::V2017_05_01::Models::Profile
25
+ TrafficManagerGeographicHierarchy = Azure::TrafficManager::Mgmt::V2017_05_01::Models::TrafficManagerGeographicHierarchy
26
+ EndpointStatus = Azure::TrafficManager::Mgmt::V2017_05_01::Models::EndpointStatus
27
+ EndpointMonitorStatus = Azure::TrafficManager::Mgmt::V2017_05_01::Models::EndpointMonitorStatus
28
+ ProfileMonitorStatus = Azure::TrafficManager::Mgmt::V2017_05_01::Models::ProfileMonitorStatus
29
+ MonitorProtocol = Azure::TrafficManager::Mgmt::V2017_05_01::Models::MonitorProtocol
30
+ ProfileStatus = Azure::TrafficManager::Mgmt::V2017_05_01::Models::ProfileStatus
31
+ TrafficRoutingMethod = Azure::TrafficManager::Mgmt::V2017_05_01::Models::TrafficRoutingMethod
32
+ DeleteOperationResult = Azure::TrafficManager::Mgmt::V2017_09_01_preview::Models::DeleteOperationResult
33
+ HeatMapEndpoint = Azure::TrafficManager::Mgmt::V2017_09_01_preview::Models::HeatMapEndpoint
34
+ Resource = Azure::TrafficManager::Mgmt::V2017_09_01_preview::Models::Resource
35
+ TrafficFlow = Azure::TrafficManager::Mgmt::V2017_09_01_preview::Models::TrafficFlow
36
+ QueryExperience = Azure::TrafficManager::Mgmt::V2017_09_01_preview::Models::QueryExperience
37
+ TrackedResource = Azure::TrafficManager::Mgmt::V2017_09_01_preview::Models::TrackedResource
38
+ ProxyResource = Azure::TrafficManager::Mgmt::V2017_09_01_preview::Models::ProxyResource
39
+ HeatMapModel = Azure::TrafficManager::Mgmt::V2017_09_01_preview::Models::HeatMapModel
40
+ TrafficManagerUserMetricsKeyModel = Azure::TrafficManager::Mgmt::V2017_09_01_preview::Models::TrafficManagerUserMetricsKeyModel
41
+ end
47
42
 
48
- def initialize(configurable, base_url=nil, options=nil)
49
- @configurable, @base_url, @options = configurable, base_url, options
43
+ class TrafficManagerManagementClass
44
+ attr_reader :endpoints, :profiles, :geographic_hierarchies, :heat_map, :traffic_manager_user_metrics_keys, :configurable, :base_url, :options, :model_classes
50
45
 
51
- client_0 = Azure::TrafficManager::Mgmt::V2017_05_01::TrafficManagerManagementClient.new(configurable.credentials, base_url, options)
52
- if(client_0.respond_to?(:subscription_id))
53
- client_0.subscription_id = configurable.subscription_id
54
- end
55
- @endpoints = client_0.endpoints
56
- @profiles = client_0.profiles
57
- @geographic_hierarchies = client_0.geographic_hierarchies
46
+ def initialize(configurable, base_url=nil, options=nil)
47
+ @configurable, @base_url, @options = configurable, base_url, options
58
48
 
59
- client_1 = Azure::TrafficManager::Mgmt::V2017_09_01_preview::TrafficManagerManagementClient.new(configurable.credentials, base_url, options)
60
- if(client_1.respond_to?(:subscription_id))
61
- client_1.subscription_id = configurable.subscription_id
62
- end
63
- @heat_map = client_1.heat_map
64
- @traffic_manager_user_metrics_keys = client_1.traffic_manager_user_metrics_keys
49
+ @client_0 = Azure::TrafficManager::Mgmt::V2017_05_01::TrafficManagerManagementClient.new(configurable.credentials, base_url, options)
50
+ if(@client_0.respond_to?(:subscription_id))
51
+ @client_0.subscription_id = configurable.subscription_id
52
+ end
53
+ add_telemetry(@client_0)
54
+ @endpoints = @client_0.endpoints
55
+ @profiles = @client_0.profiles
56
+ @geographic_hierarchies = @client_0.geographic_hierarchies
65
57
 
66
- @model_classes = ModelClasses.new
67
- end
58
+ @client_1 = Azure::TrafficManager::Mgmt::V2017_09_01_preview::TrafficManagerManagementClient.new(configurable.credentials, base_url, options)
59
+ if(@client_1.respond_to?(:subscription_id))
60
+ @client_1.subscription_id = configurable.subscription_id
61
+ end
62
+ add_telemetry(@client_1)
63
+ @heat_map = @client_1.heat_map
64
+ @traffic_manager_user_metrics_keys = @client_1.traffic_manager_user_metrics_keys
68
65
 
69
- class ModelClasses
70
- def traffic_manager_name_availability
71
- Azure::TrafficManager::Mgmt::V2017_05_01::Models::TrafficManagerNameAvailability
72
- end
73
- def region
74
- Azure::TrafficManager::Mgmt::V2017_05_01::Models::Region
75
- end
76
- def profile_list_result
77
- Azure::TrafficManager::Mgmt::V2017_05_01::Models::ProfileListResult
78
- end
79
- def check_traffic_manager_relative_dns_name_availability_parameters
80
- Azure::TrafficManager::Mgmt::V2017_05_01::Models::CheckTrafficManagerRelativeDnsNameAvailabilityParameters
81
- end
82
- def monitor_config
83
- Azure::TrafficManager::Mgmt::V2017_05_01::Models::MonitorConfig
84
- end
85
- def dns_config
86
- Azure::TrafficManager::Mgmt::V2017_05_01::Models::DnsConfig
87
- end
88
- def endpoint
89
- Azure::TrafficManager::Mgmt::V2017_05_01::Models::Endpoint
90
- end
91
- def traffic_manager_geographic_hierarchy
92
- Azure::TrafficManager::Mgmt::V2017_05_01::Models::TrafficManagerGeographicHierarchy
93
- end
94
- def profile
95
- Azure::TrafficManager::Mgmt::V2017_05_01::Models::Profile
96
- end
97
- def endpoint_status
98
- Azure::TrafficManager::Mgmt::V2017_05_01::Models::EndpointStatus
66
+ @model_classes = ModelClasses.new
99
67
  end
100
- def endpoint_monitor_status
101
- Azure::TrafficManager::Mgmt::V2017_05_01::Models::EndpointMonitorStatus
102
- end
103
- def profile_monitor_status
104
- Azure::TrafficManager::Mgmt::V2017_05_01::Models::ProfileMonitorStatus
105
- end
106
- def monitor_protocol
107
- Azure::TrafficManager::Mgmt::V2017_05_01::Models::MonitorProtocol
108
- end
109
- def profile_status
110
- Azure::TrafficManager::Mgmt::V2017_05_01::Models::ProfileStatus
111
- end
112
- def traffic_routing_method
113
- Azure::TrafficManager::Mgmt::V2017_05_01::Models::TrafficRoutingMethod
114
- end
115
- def delete_operation_result
116
- Azure::TrafficManager::Mgmt::V2017_09_01_preview::Models::DeleteOperationResult
117
- end
118
- def heat_map_endpoint
119
- Azure::TrafficManager::Mgmt::V2017_09_01_preview::Models::HeatMapEndpoint
120
- end
121
- def resource
122
- Azure::TrafficManager::Mgmt::V2017_09_01_preview::Models::Resource
123
- end
124
- def traffic_flow
125
- Azure::TrafficManager::Mgmt::V2017_09_01_preview::Models::TrafficFlow
126
- end
127
- def query_experience
128
- Azure::TrafficManager::Mgmt::V2017_09_01_preview::Models::QueryExperience
129
- end
130
- def tracked_resource
131
- Azure::TrafficManager::Mgmt::V2017_09_01_preview::Models::TrackedResource
132
- end
133
- def proxy_resource
134
- Azure::TrafficManager::Mgmt::V2017_09_01_preview::Models::ProxyResource
68
+
69
+ def add_telemetry(client)
70
+ profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/Latest/TrafficManager/Mgmt"
71
+ client.add_user_agent_information(profile_information)
135
72
  end
136
- def heat_map_model
137
- Azure::TrafficManager::Mgmt::V2017_09_01_preview::Models::HeatMapModel
73
+
74
+ def method_missing(method, *args)
75
+ if @client_1.respond_to?method
76
+ @client_1.send(method, *args)
77
+ elsif @client_0.respond_to?method
78
+ @client_0.send(method, *args)
79
+ else
80
+ super
81
+ end
138
82
  end
139
- def traffic_manager_user_metrics_key_model
140
- Azure::TrafficManager::Mgmt::V2017_09_01_preview::Models::TrafficManagerUserMetricsKeyModel
83
+
84
+ class ModelClasses
85
+ def traffic_manager_name_availability
86
+ Azure::TrafficManager::Mgmt::V2017_05_01::Models::TrafficManagerNameAvailability
87
+ end
88
+ def region
89
+ Azure::TrafficManager::Mgmt::V2017_05_01::Models::Region
90
+ end
91
+ def check_traffic_manager_relative_dns_name_availability_parameters
92
+ Azure::TrafficManager::Mgmt::V2017_05_01::Models::CheckTrafficManagerRelativeDnsNameAvailabilityParameters
93
+ end
94
+ def dns_config
95
+ Azure::TrafficManager::Mgmt::V2017_05_01::Models::DnsConfig
96
+ end
97
+ def monitor_config
98
+ Azure::TrafficManager::Mgmt::V2017_05_01::Models::MonitorConfig
99
+ end
100
+ def profile_list_result
101
+ Azure::TrafficManager::Mgmt::V2017_05_01::Models::ProfileListResult
102
+ end
103
+ def endpoint
104
+ Azure::TrafficManager::Mgmt::V2017_05_01::Models::Endpoint
105
+ end
106
+ def profile
107
+ Azure::TrafficManager::Mgmt::V2017_05_01::Models::Profile
108
+ end
109
+ def traffic_manager_geographic_hierarchy
110
+ Azure::TrafficManager::Mgmt::V2017_05_01::Models::TrafficManagerGeographicHierarchy
111
+ end
112
+ def endpoint_status
113
+ Azure::TrafficManager::Mgmt::V2017_05_01::Models::EndpointStatus
114
+ end
115
+ def endpoint_monitor_status
116
+ Azure::TrafficManager::Mgmt::V2017_05_01::Models::EndpointMonitorStatus
117
+ end
118
+ def profile_monitor_status
119
+ Azure::TrafficManager::Mgmt::V2017_05_01::Models::ProfileMonitorStatus
120
+ end
121
+ def monitor_protocol
122
+ Azure::TrafficManager::Mgmt::V2017_05_01::Models::MonitorProtocol
123
+ end
124
+ def profile_status
125
+ Azure::TrafficManager::Mgmt::V2017_05_01::Models::ProfileStatus
126
+ end
127
+ def traffic_routing_method
128
+ Azure::TrafficManager::Mgmt::V2017_05_01::Models::TrafficRoutingMethod
129
+ end
130
+ def delete_operation_result
131
+ Azure::TrafficManager::Mgmt::V2017_09_01_preview::Models::DeleteOperationResult
132
+ end
133
+ def heat_map_endpoint
134
+ Azure::TrafficManager::Mgmt::V2017_09_01_preview::Models::HeatMapEndpoint
135
+ end
136
+ def resource
137
+ Azure::TrafficManager::Mgmt::V2017_09_01_preview::Models::Resource
138
+ end
139
+ def traffic_flow
140
+ Azure::TrafficManager::Mgmt::V2017_09_01_preview::Models::TrafficFlow
141
+ end
142
+ def query_experience
143
+ Azure::TrafficManager::Mgmt::V2017_09_01_preview::Models::QueryExperience
144
+ end
145
+ def tracked_resource
146
+ Azure::TrafficManager::Mgmt::V2017_09_01_preview::Models::TrackedResource
147
+ end
148
+ def proxy_resource
149
+ Azure::TrafficManager::Mgmt::V2017_09_01_preview::Models::ProxyResource
150
+ end
151
+ def heat_map_model
152
+ Azure::TrafficManager::Mgmt::V2017_09_01_preview::Models::HeatMapModel
153
+ end
154
+ def traffic_manager_user_metrics_key_model
155
+ Azure::TrafficManager::Mgmt::V2017_09_01_preview::Models::TrafficManagerUserMetricsKeyModel
156
+ end
141
157
  end
142
158
  end
143
159
  end