azure_sdk 0.42.0 → 0.43.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (172) hide show
  1. checksums.yaml +5 -5
  2. data/LICENSE.txt +20 -20
  3. data/lib/azure_sdk.rb +9 -9
  4. data/lib/azure_sdk/version.rb +1 -1
  5. data/lib/latest/latest_profile_client.rb +1267 -1257
  6. data/lib/latest/module_definition.rb +6 -6
  7. data/lib/latest/modules/adhybridhealthservice_profile_module.rb +481 -481
  8. data/lib/latest/modules/advisor_profile_module.rb +119 -119
  9. data/lib/latest/modules/alertsmanagement_profile_module.rb +259 -259
  10. data/lib/latest/modules/analysisservices_profile_module.rb +159 -159
  11. data/lib/latest/modules/anomalydetector_profile_module.rb +69 -69
  12. data/lib/latest/modules/apimanagement_profile_module.rb +1069 -1069
  13. data/lib/latest/modules/appconfiguration_profile_module.rb +107 -107
  14. data/lib/latest/modules/attestation_profile_module.rb +95 -95
  15. data/lib/latest/modules/authorization_profile_module.rb +167 -167
  16. data/lib/latest/modules/automation_profile_module.rb +663 -663
  17. data/lib/latest/modules/autosuggest_profile_module.rb +121 -121
  18. data/lib/latest/modules/azurestack_profile_module.rb +163 -163
  19. data/lib/latest/modules/batch_profile_module.rb +377 -377
  20. data/lib/latest/modules/batchai_profile_module.rb +425 -425
  21. data/lib/latest/modules/billing_profile_module.rb +107 -107
  22. data/lib/latest/modules/botservice_profile_module.rb +293 -293
  23. data/lib/latest/modules/cdn_profile_module.rb +325 -325
  24. data/lib/latest/modules/cognitiveservices_profile_module.rb +207 -207
  25. data/lib/latest/modules/commerce_profile_module.rb +99 -99
  26. data/lib/latest/modules/compute_profile_module.rb +0 -0
  27. data/lib/latest/modules/computervision_profile_module.rb +233 -233
  28. data/lib/latest/modules/consumption_profile_module.rb +255 -255
  29. data/lib/latest/modules/containerinstance_profile_module.rb +253 -253
  30. data/lib/latest/modules/containerregistry_profile_module.rb +575 -575
  31. data/lib/latest/modules/containerservice_profile_module.rb +385 -385
  32. data/lib/latest/modules/contentmoderator_profile_module.rb +287 -287
  33. data/lib/latest/modules/cosmosdb_profile_module.rb +559 -559
  34. data/lib/latest/modules/costmanagement_profile_module.rb +207 -207
  35. data/lib/latest/modules/customerinsights_profile_module.rb +497 -497
  36. data/lib/latest/modules/customimagesearch_profile_module.rb +143 -143
  37. data/lib/latest/modules/customsearch_profile_module.rb +123 -123
  38. data/lib/latest/modules/customvisionprediction_profile_module.rb +69 -69
  39. data/lib/latest/modules/customvisiontraining_profile_module.rb +241 -241
  40. data/lib/latest/modules/databox_profile_module.rb +309 -309
  41. data/lib/latest/modules/datafactory_profile_module.rb +2159 -2159
  42. data/lib/latest/modules/datalakeanalytics_profile_module.rb +253 -253
  43. data/lib/latest/modules/datalakestore_profile_module.rb +247 -247
  44. data/lib/latest/modules/datamigration_profile_module.rb +1307 -1307
  45. data/lib/latest/modules/datashare_profile_module.rb +383 -383
  46. data/lib/latest/modules/devspaces_profile_module.rb +119 -119
  47. data/lib/latest/modules/devtestlabs_profile_module.rb +849 -849
  48. data/lib/latest/modules/dns_profile_module.rb +143 -143
  49. data/lib/latest/modules/edgegateway_profile_module.rb +463 -463
  50. data/lib/latest/modules/entitysearch_profile_module.rb +231 -231
  51. data/lib/latest/modules/eventgrid_profile_module.rb +671 -671
  52. data/lib/latest/modules/eventhub_profile_module.rb +171 -171
  53. data/lib/latest/modules/face_profile_module.rb +297 -297
  54. data/lib/latest/modules/features_profile_module.rb +73 -73
  55. data/lib/latest/modules/formrecognizer_profile_module.rb +169 -169
  56. data/lib/latest/modules/graphrbac_profile_module.rb +225 -225
  57. data/lib/latest/modules/hanaonazure_profile_module.rb +137 -137
  58. data/lib/latest/modules/hdinsight_profile_module.rb +407 -407
  59. data/lib/latest/modules/imagesearch_profile_module.rb +279 -279
  60. data/lib/latest/modules/iotcentral_profile_module.rb +103 -103
  61. data/lib/latest/modules/iothub_profile_module.rb +377 -377
  62. data/lib/latest/modules/keyvault_profile_module.rb +623 -623
  63. data/lib/latest/modules/kusto_profile_module.rb +297 -297
  64. data/lib/latest/modules/labservices_profile_module.rb +357 -357
  65. data/lib/latest/modules/links_profile_module.rb +83 -83
  66. data/lib/latest/modules/localsearch_profile_module.rb +151 -151
  67. data/lib/latest/modules/locks_profile_module.rb +79 -79
  68. data/lib/latest/modules/logic_profile_module.rb +787 -787
  69. data/lib/latest/modules/luisauthoring_profile_module.rb +497 -497
  70. data/lib/latest/modules/luisruntime_profile_module.rb +91 -91
  71. data/lib/latest/modules/machinelearning_profile_module.rb +211 -211
  72. data/lib/latest/modules/machinelearningservices_profile_module.rb +293 -293
  73. data/lib/latest/modules/maintenance_profile_module.rb +121 -0
  74. data/lib/latest/modules/managedapplications_profile_module.rb +123 -123
  75. data/lib/latest/modules/managedserviceidentity_profile_module.rb +75 -75
  76. data/lib/latest/modules/mariadb_profile_module.rb +233 -233
  77. data/lib/latest/modules/marketplaceordering_profile_module.rb +79 -79
  78. data/lib/latest/modules/mediaservices_profile_module.rb +859 -859
  79. data/lib/latest/modules/migrate_profile_module.rb +243 -243
  80. data/lib/latest/modules/mixedreality_profile_module.rb +125 -125
  81. data/lib/latest/modules/monitor_profile_module.rb +723 -723
  82. data/lib/latest/modules/mysql_profile_module.rb +233 -233
  83. data/lib/latest/modules/netapp_profile_module.rb +185 -175
  84. data/lib/latest/modules/network_profile_module.rb +2489 -2489
  85. data/lib/latest/modules/newssearch_profile_module.rb +143 -143
  86. data/lib/latest/modules/notificationhubs_profile_module.rb +189 -189
  87. data/lib/latest/modules/operationalinsights_profile_module.rb +259 -259
  88. data/lib/latest/modules/operationsmanagement_profile_module.rb +123 -123
  89. data/lib/latest/modules/peering_profile_module.rb +259 -259
  90. data/lib/latest/modules/personalizer_profile_module.rb +83 -83
  91. data/lib/latest/modules/policy_profile_module.rb +105 -105
  92. data/lib/latest/modules/policyinsights_profile_module.rb +193 -193
  93. data/lib/latest/modules/postgresql_profile_module.rb +233 -233
  94. data/lib/latest/modules/powerbidedicated_profile_module.rb +123 -123
  95. data/lib/latest/modules/powerbiembedded_profile_module.rb +127 -127
  96. data/lib/latest/modules/privatedns_profile_module.rb +137 -137
  97. data/lib/latest/modules/qnamaker_profile_module.rb +219 -219
  98. data/lib/latest/modules/qnamakerruntime_profile_module.rb +123 -123
  99. data/lib/latest/modules/recoveryservices_profile_module.rb +211 -211
  100. data/lib/latest/modules/recoveryservicesbackup_profile_module.rb +1241 -1241
  101. data/lib/latest/modules/recoveryservicessiterecovery_profile_module.rb +1465 -1465
  102. data/lib/latest/modules/redis_profile_module.rb +209 -209
  103. data/lib/latest/modules/relay_profile_module.rb +163 -163
  104. data/lib/latest/modules/reservations_profile_module.rb +237 -237
  105. data/lib/latest/modules/resourcegraph_profile_module.rb +129 -129
  106. data/lib/latest/modules/resources_profile_module.rb +321 -321
  107. data/lib/latest/modules/resourcesmanagement_profile_module.rb +163 -163
  108. data/lib/latest/modules/scheduler_profile_module.rb +227 -227
  109. data/lib/latest/modules/search_profile_module.rb +127 -127
  110. data/lib/latest/modules/security_profile_module.rb +733 -733
  111. data/lib/latest/modules/serialconsole_profile_module.rb +73 -73
  112. data/lib/latest/modules/servicebus_profile_module.rb +309 -309
  113. data/lib/latest/modules/servicefabric_profile_module.rb +2711 -2711
  114. data/lib/latest/modules/signalr_profile_module.rb +161 -161
  115. data/lib/latest/modules/spellcheck_profile_module.rb +101 -101
  116. data/lib/latest/modules/sql_profile_module.rb +1765 -1757
  117. data/lib/latest/modules/sqlvirtualmachine_profile_module.rb +223 -223
  118. data/lib/latest/modules/storage_profile_module.rb +525 -525
  119. data/lib/latest/modules/storagecache_profile_module.rb +173 -173
  120. data/lib/latest/modules/storagesync_profile_module.rb +249 -249
  121. data/lib/latest/modules/storsimple8000series_profile_module.rb +715 -715
  122. data/lib/latest/modules/streamanalytics_profile_module.rb +349 -349
  123. data/lib/latest/modules/subscriptions_profile_module.rb +207 -207
  124. data/lib/latest/modules/textanalytics_profile_module.rb +125 -125
  125. data/lib/latest/modules/trafficmanager_profile_module.rb +173 -173
  126. data/lib/latest/modules/videosearch_profile_module.rb +175 -175
  127. data/lib/latest/modules/visualsearch_profile_module.rb +235 -235
  128. data/lib/latest/modules/vmwarecloudsimple_profile_module.rb +247 -247
  129. data/lib/latest/modules/web_profile_module.rb +1419 -1419
  130. data/lib/latest/modules/websearch_profile_module.rb +211 -211
  131. data/lib/v2017_03_09/module_definition.rb +6 -6
  132. data/lib/v2017_03_09/modules/authorization_profile_module.rb +141 -141
  133. data/lib/v2017_03_09/modules/compute_profile_module.rb +469 -469
  134. data/lib/v2017_03_09/modules/dns_profile_module.rb +139 -139
  135. data/lib/v2017_03_09/modules/features_profile_module.rb +73 -73
  136. data/lib/v2017_03_09/modules/keyvault_profile_module.rb +559 -559
  137. data/lib/v2017_03_09/modules/links_profile_module.rb +83 -83
  138. data/lib/v2017_03_09/modules/locks_profile_module.rb +61 -61
  139. data/lib/v2017_03_09/modules/network_profile_module.rb +555 -555
  140. data/lib/v2017_03_09/modules/policy_profile_module.rb +71 -71
  141. data/lib/v2017_03_09/modules/resources_profile_module.rb +255 -255
  142. data/lib/v2017_03_09/modules/storage_profile_module.rb +163 -163
  143. data/lib/v2017_03_09/modules/subscriptions_profile_module.rb +101 -101
  144. data/lib/v2017_03_09/v2017_03_09_profile_client.rb +170 -170
  145. data/lib/v2018_03_01/module_definition.rb +6 -6
  146. data/lib/v2018_03_01/modules/authorization_profile_module.rb +133 -133
  147. data/lib/v2018_03_01/modules/compute_profile_module.rb +755 -755
  148. data/lib/v2018_03_01/modules/dns_profile_module.rb +139 -139
  149. data/lib/v2018_03_01/modules/keyvault_profile_module.rb +559 -559
  150. data/lib/v2018_03_01/modules/locks_profile_module.rb +79 -79
  151. data/lib/v2018_03_01/modules/network_profile_module.rb +1321 -1321
  152. data/lib/v2018_03_01/modules/policy_profile_module.rb +75 -75
  153. data/lib/v2018_03_01/modules/resources_profile_module.rb +271 -271
  154. data/lib/v2018_03_01/modules/storage_profile_module.rb +163 -163
  155. data/lib/v2018_03_01/modules/subscriptions_profile_module.rb +101 -101
  156. data/lib/v2018_03_01/modules/web_profile_module.rb +1223 -1223
  157. data/lib/v2018_03_01/v2018_03_01_profile_client.rb +160 -160
  158. data/lib/v2019_03_01_hybrid/module_definition.rb +6 -6
  159. data/lib/v2019_03_01_hybrid/modules/authorization_profile_module.rb +133 -133
  160. data/lib/v2019_03_01_hybrid/modules/compute_profile_module.rb +855 -855
  161. data/lib/v2019_03_01_hybrid/modules/dns_profile_module.rb +139 -139
  162. data/lib/v2019_03_01_hybrid/modules/keyvault_profile_module.rb +559 -559
  163. data/lib/v2019_03_01_hybrid/modules/locks_profile_module.rb +79 -79
  164. data/lib/v2019_03_01_hybrid/modules/monitor_profile_module.rb +285 -285
  165. data/lib/v2019_03_01_hybrid/modules/network_profile_module.rb +1261 -1261
  166. data/lib/v2019_03_01_hybrid/modules/policy_profile_module.rb +75 -75
  167. data/lib/v2019_03_01_hybrid/modules/resources_profile_module.rb +289 -289
  168. data/lib/v2019_03_01_hybrid/modules/storage_profile_module.rb +283 -283
  169. data/lib/v2019_03_01_hybrid/modules/subscriptions_profile_module.rb +101 -101
  170. data/lib/v2019_03_01_hybrid/modules/web_profile_module.rb +1457 -1457
  171. data/lib/v2019_03_01_hybrid/v2019_03_01_hybrid_profile_client.rb +170 -170
  172. metadata +23 -8
@@ -1,83 +1,83 @@
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_personalizer'
6
-
7
- module Azure::Profiles::Latest
8
- module Personalizer
9
- Events = Azure::CognitiveServices::Personalizer::V1_0::Events
10
-
11
- module Models
12
- RankableAction = Azure::CognitiveServices::Personalizer::V1_0::Models::RankableAction
13
- InternalError = Azure::CognitiveServices::Personalizer::V1_0::Models::InternalError
14
- RankRequest = Azure::CognitiveServices::Personalizer::V1_0::Models::RankRequest
15
- ErrorResponse = Azure::CognitiveServices::Personalizer::V1_0::Models::ErrorResponse
16
- RankedAction = Azure::CognitiveServices::Personalizer::V1_0::Models::RankedAction
17
- PersonalizerError = Azure::CognitiveServices::Personalizer::V1_0::Models::PersonalizerError
18
- RankResponse = Azure::CognitiveServices::Personalizer::V1_0::Models::RankResponse
19
- RewardRequest = Azure::CognitiveServices::Personalizer::V1_0::Models::RewardRequest
20
- ErrorCode = Azure::CognitiveServices::Personalizer::V1_0::Models::ErrorCode
21
- end
22
-
23
- class PersonalizerDataClass
24
- attr_reader :events, :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::CognitiveServices::Personalizer::V1_0::PersonalizerClient.new(configurable.credentials, 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
- @events = @client_0.events
35
-
36
- @model_classes = ModelClasses.new
37
- end
38
-
39
- def add_telemetry(client)
40
- profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/Latest/Personalizer"
41
- client.add_user_agent_information(profile_information)
42
- end
43
-
44
- def method_missing(method, *args)
45
- if @client_0.respond_to?method
46
- @client_0.send(method, *args)
47
- else
48
- super
49
- end
50
- end
51
-
52
- class ModelClasses
53
- def rankable_action
54
- Azure::CognitiveServices::Personalizer::V1_0::Models::RankableAction
55
- end
56
- def internal_error
57
- Azure::CognitiveServices::Personalizer::V1_0::Models::InternalError
58
- end
59
- def rank_request
60
- Azure::CognitiveServices::Personalizer::V1_0::Models::RankRequest
61
- end
62
- def error_response
63
- Azure::CognitiveServices::Personalizer::V1_0::Models::ErrorResponse
64
- end
65
- def ranked_action
66
- Azure::CognitiveServices::Personalizer::V1_0::Models::RankedAction
67
- end
68
- def personalizer_error
69
- Azure::CognitiveServices::Personalizer::V1_0::Models::PersonalizerError
70
- end
71
- def rank_response
72
- Azure::CognitiveServices::Personalizer::V1_0::Models::RankResponse
73
- end
74
- def reward_request
75
- Azure::CognitiveServices::Personalizer::V1_0::Models::RewardRequest
76
- end
77
- def error_code
78
- Azure::CognitiveServices::Personalizer::V1_0::Models::ErrorCode
79
- end
80
- end
81
- end
82
- end
83
- 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_cognitiveservices_personalizer'
6
+
7
+ module Azure::Profiles::Latest
8
+ module Personalizer
9
+ Events = Azure::CognitiveServices::Personalizer::V1_0::Events
10
+
11
+ module Models
12
+ RankableAction = Azure::CognitiveServices::Personalizer::V1_0::Models::RankableAction
13
+ InternalError = Azure::CognitiveServices::Personalizer::V1_0::Models::InternalError
14
+ RankRequest = Azure::CognitiveServices::Personalizer::V1_0::Models::RankRequest
15
+ ErrorResponse = Azure::CognitiveServices::Personalizer::V1_0::Models::ErrorResponse
16
+ RankedAction = Azure::CognitiveServices::Personalizer::V1_0::Models::RankedAction
17
+ PersonalizerError = Azure::CognitiveServices::Personalizer::V1_0::Models::PersonalizerError
18
+ RankResponse = Azure::CognitiveServices::Personalizer::V1_0::Models::RankResponse
19
+ RewardRequest = Azure::CognitiveServices::Personalizer::V1_0::Models::RewardRequest
20
+ ErrorCode = Azure::CognitiveServices::Personalizer::V1_0::Models::ErrorCode
21
+ end
22
+
23
+ class PersonalizerDataClass
24
+ attr_reader :events, :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::CognitiveServices::Personalizer::V1_0::PersonalizerClient.new(configurable.credentials, 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
+ @events = @client_0.events
35
+
36
+ @model_classes = ModelClasses.new
37
+ end
38
+
39
+ def add_telemetry(client)
40
+ profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/Latest/Personalizer"
41
+ client.add_user_agent_information(profile_information)
42
+ end
43
+
44
+ def method_missing(method, *args)
45
+ if @client_0.respond_to?method
46
+ @client_0.send(method, *args)
47
+ else
48
+ super
49
+ end
50
+ end
51
+
52
+ class ModelClasses
53
+ def rankable_action
54
+ Azure::CognitiveServices::Personalizer::V1_0::Models::RankableAction
55
+ end
56
+ def internal_error
57
+ Azure::CognitiveServices::Personalizer::V1_0::Models::InternalError
58
+ end
59
+ def rank_request
60
+ Azure::CognitiveServices::Personalizer::V1_0::Models::RankRequest
61
+ end
62
+ def error_response
63
+ Azure::CognitiveServices::Personalizer::V1_0::Models::ErrorResponse
64
+ end
65
+ def ranked_action
66
+ Azure::CognitiveServices::Personalizer::V1_0::Models::RankedAction
67
+ end
68
+ def personalizer_error
69
+ Azure::CognitiveServices::Personalizer::V1_0::Models::PersonalizerError
70
+ end
71
+ def rank_response
72
+ Azure::CognitiveServices::Personalizer::V1_0::Models::RankResponse
73
+ end
74
+ def reward_request
75
+ Azure::CognitiveServices::Personalizer::V1_0::Models::RewardRequest
76
+ end
77
+ def error_code
78
+ Azure::CognitiveServices::Personalizer::V1_0::Models::ErrorCode
79
+ end
80
+ end
81
+ end
82
+ end
83
+ end
@@ -1,105 +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_mgmt_policy'
6
-
7
- module Azure::Profiles::Latest
8
- module Policy
9
- module Mgmt
10
- PolicyAssignments = Azure::Policy::Mgmt::V2019_06_01::PolicyAssignments
11
- PolicyDefinitions = Azure::Policy::Mgmt::V2019_06_01::PolicyDefinitions
12
- PolicySetDefinitions = Azure::Policy::Mgmt::V2019_06_01::PolicySetDefinitions
13
-
14
- module Models
15
- PolicyDefinition = Azure::Policy::Mgmt::V2019_06_01::Models::PolicyDefinition
16
- PolicySku = Azure::Policy::Mgmt::V2019_06_01::Models::PolicySku
17
- PolicyDefinitionListResult = Azure::Policy::Mgmt::V2019_06_01::Models::PolicyDefinitionListResult
18
- PolicyAssignment = Azure::Policy::Mgmt::V2019_06_01::Models::PolicyAssignment
19
- PolicyDefinitionReference = Azure::Policy::Mgmt::V2019_06_01::Models::PolicyDefinitionReference
20
- ErrorResponse = Azure::Policy::Mgmt::V2019_06_01::Models::ErrorResponse
21
- PolicySetDefinition = Azure::Policy::Mgmt::V2019_06_01::Models::PolicySetDefinition
22
- PolicyAssignmentListResult = Azure::Policy::Mgmt::V2019_06_01::Models::PolicyAssignmentListResult
23
- PolicySetDefinitionListResult = Azure::Policy::Mgmt::V2019_06_01::Models::PolicySetDefinitionListResult
24
- Identity = Azure::Policy::Mgmt::V2019_06_01::Models::Identity
25
- EnforcementMode = Azure::Policy::Mgmt::V2019_06_01::Models::EnforcementMode
26
- ResourceIdentityType = Azure::Policy::Mgmt::V2019_06_01::Models::ResourceIdentityType
27
- PolicyType = Azure::Policy::Mgmt::V2019_06_01::Models::PolicyType
28
- end
29
-
30
- class PolicyManagementClass
31
- attr_reader :policy_assignments, :policy_definitions, :policy_set_definitions, :configurable, :base_url, :options, :model_classes
32
-
33
- def initialize(configurable, base_url=nil, options=nil)
34
- @configurable, @base_url, @options = configurable, base_url, options
35
-
36
- @client_0 = Azure::Policy::Mgmt::V2019_06_01::PolicyClient.new(configurable.credentials, base_url, options)
37
- if(@client_0.respond_to?(:subscription_id))
38
- @client_0.subscription_id = configurable.subscription_id
39
- end
40
- add_telemetry(@client_0)
41
- @policy_assignments = @client_0.policy_assignments
42
- @policy_definitions = @client_0.policy_definitions
43
- @policy_set_definitions = @client_0.policy_set_definitions
44
-
45
- @model_classes = ModelClasses.new
46
- end
47
-
48
- def add_telemetry(client)
49
- profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/Latest/Policy/Mgmt"
50
- client.add_user_agent_information(profile_information)
51
- end
52
-
53
- def method_missing(method, *args)
54
- if @client_0.respond_to?method
55
- @client_0.send(method, *args)
56
- else
57
- super
58
- end
59
- end
60
-
61
- class ModelClasses
62
- def policy_definition
63
- Azure::Policy::Mgmt::V2019_06_01::Models::PolicyDefinition
64
- end
65
- def policy_sku
66
- Azure::Policy::Mgmt::V2019_06_01::Models::PolicySku
67
- end
68
- def policy_definition_list_result
69
- Azure::Policy::Mgmt::V2019_06_01::Models::PolicyDefinitionListResult
70
- end
71
- def policy_assignment
72
- Azure::Policy::Mgmt::V2019_06_01::Models::PolicyAssignment
73
- end
74
- def policy_definition_reference
75
- Azure::Policy::Mgmt::V2019_06_01::Models::PolicyDefinitionReference
76
- end
77
- def error_response
78
- Azure::Policy::Mgmt::V2019_06_01::Models::ErrorResponse
79
- end
80
- def policy_set_definition
81
- Azure::Policy::Mgmt::V2019_06_01::Models::PolicySetDefinition
82
- end
83
- def policy_assignment_list_result
84
- Azure::Policy::Mgmt::V2019_06_01::Models::PolicyAssignmentListResult
85
- end
86
- def policy_set_definition_list_result
87
- Azure::Policy::Mgmt::V2019_06_01::Models::PolicySetDefinitionListResult
88
- end
89
- def identity
90
- Azure::Policy::Mgmt::V2019_06_01::Models::Identity
91
- end
92
- def enforcement_mode
93
- Azure::Policy::Mgmt::V2019_06_01::Models::EnforcementMode
94
- end
95
- def resource_identity_type
96
- Azure::Policy::Mgmt::V2019_06_01::Models::ResourceIdentityType
97
- end
98
- def policy_type
99
- Azure::Policy::Mgmt::V2019_06_01::Models::PolicyType
100
- end
101
- end
102
- end
103
- end
104
- end
105
- 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_policy'
6
+
7
+ module Azure::Profiles::Latest
8
+ module Policy
9
+ module Mgmt
10
+ PolicyAssignments = Azure::Policy::Mgmt::V2019_06_01::PolicyAssignments
11
+ PolicyDefinitions = Azure::Policy::Mgmt::V2019_06_01::PolicyDefinitions
12
+ PolicySetDefinitions = Azure::Policy::Mgmt::V2019_06_01::PolicySetDefinitions
13
+
14
+ module Models
15
+ PolicyDefinition = Azure::Policy::Mgmt::V2019_06_01::Models::PolicyDefinition
16
+ PolicySku = Azure::Policy::Mgmt::V2019_06_01::Models::PolicySku
17
+ PolicyDefinitionListResult = Azure::Policy::Mgmt::V2019_06_01::Models::PolicyDefinitionListResult
18
+ PolicyAssignment = Azure::Policy::Mgmt::V2019_06_01::Models::PolicyAssignment
19
+ PolicyDefinitionReference = Azure::Policy::Mgmt::V2019_06_01::Models::PolicyDefinitionReference
20
+ ErrorResponse = Azure::Policy::Mgmt::V2019_06_01::Models::ErrorResponse
21
+ PolicySetDefinition = Azure::Policy::Mgmt::V2019_06_01::Models::PolicySetDefinition
22
+ PolicyAssignmentListResult = Azure::Policy::Mgmt::V2019_06_01::Models::PolicyAssignmentListResult
23
+ PolicySetDefinitionListResult = Azure::Policy::Mgmt::V2019_06_01::Models::PolicySetDefinitionListResult
24
+ Identity = Azure::Policy::Mgmt::V2019_06_01::Models::Identity
25
+ EnforcementMode = Azure::Policy::Mgmt::V2019_06_01::Models::EnforcementMode
26
+ ResourceIdentityType = Azure::Policy::Mgmt::V2019_06_01::Models::ResourceIdentityType
27
+ PolicyType = Azure::Policy::Mgmt::V2019_06_01::Models::PolicyType
28
+ end
29
+
30
+ class PolicyManagementClass
31
+ attr_reader :policy_assignments, :policy_definitions, :policy_set_definitions, :configurable, :base_url, :options, :model_classes
32
+
33
+ def initialize(configurable, base_url=nil, options=nil)
34
+ @configurable, @base_url, @options = configurable, base_url, options
35
+
36
+ @client_0 = Azure::Policy::Mgmt::V2019_06_01::PolicyClient.new(configurable.credentials, base_url, options)
37
+ if(@client_0.respond_to?(:subscription_id))
38
+ @client_0.subscription_id = configurable.subscription_id
39
+ end
40
+ add_telemetry(@client_0)
41
+ @policy_assignments = @client_0.policy_assignments
42
+ @policy_definitions = @client_0.policy_definitions
43
+ @policy_set_definitions = @client_0.policy_set_definitions
44
+
45
+ @model_classes = ModelClasses.new
46
+ end
47
+
48
+ def add_telemetry(client)
49
+ profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/Latest/Policy/Mgmt"
50
+ client.add_user_agent_information(profile_information)
51
+ end
52
+
53
+ def method_missing(method, *args)
54
+ if @client_0.respond_to?method
55
+ @client_0.send(method, *args)
56
+ else
57
+ super
58
+ end
59
+ end
60
+
61
+ class ModelClasses
62
+ def policy_definition
63
+ Azure::Policy::Mgmt::V2019_06_01::Models::PolicyDefinition
64
+ end
65
+ def policy_sku
66
+ Azure::Policy::Mgmt::V2019_06_01::Models::PolicySku
67
+ end
68
+ def policy_definition_list_result
69
+ Azure::Policy::Mgmt::V2019_06_01::Models::PolicyDefinitionListResult
70
+ end
71
+ def policy_assignment
72
+ Azure::Policy::Mgmt::V2019_06_01::Models::PolicyAssignment
73
+ end
74
+ def policy_definition_reference
75
+ Azure::Policy::Mgmt::V2019_06_01::Models::PolicyDefinitionReference
76
+ end
77
+ def error_response
78
+ Azure::Policy::Mgmt::V2019_06_01::Models::ErrorResponse
79
+ end
80
+ def policy_set_definition
81
+ Azure::Policy::Mgmt::V2019_06_01::Models::PolicySetDefinition
82
+ end
83
+ def policy_assignment_list_result
84
+ Azure::Policy::Mgmt::V2019_06_01::Models::PolicyAssignmentListResult
85
+ end
86
+ def policy_set_definition_list_result
87
+ Azure::Policy::Mgmt::V2019_06_01::Models::PolicySetDefinitionListResult
88
+ end
89
+ def identity
90
+ Azure::Policy::Mgmt::V2019_06_01::Models::Identity
91
+ end
92
+ def enforcement_mode
93
+ Azure::Policy::Mgmt::V2019_06_01::Models::EnforcementMode
94
+ end
95
+ def resource_identity_type
96
+ Azure::Policy::Mgmt::V2019_06_01::Models::ResourceIdentityType
97
+ end
98
+ def policy_type
99
+ Azure::Policy::Mgmt::V2019_06_01::Models::PolicyType
100
+ end
101
+ end
102
+ end
103
+ end
104
+ end
105
+ end
@@ -1,193 +1,193 @@
1
- # encoding: utf-8
2
- # Copyright (c) Microsoft Corporation. All rights reserved.
3
- # Licensed under the MIT License. See License.txt in the project root for license information.
4
-
5
- require 'azure_mgmt_policy_insights'
6
-
7
- module Azure::Profiles::Latest
8
- module PolicyInsights
9
- module Mgmt
10
- PolicyEvents = Azure::PolicyInsights::Mgmt::V2018_04_04::PolicyEvents
11
- PolicyTrackedResources = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::PolicyTrackedResources
12
- Remediations = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Remediations
13
- PolicyStates = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::PolicyStates
14
- Operations = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Operations
15
-
16
- module Models
17
- PolicyEventsQueryResults = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::PolicyEventsQueryResults
18
- PolicyEvent = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::PolicyEvent
19
- ErrorResponse = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::ErrorResponse
20
- ExpressionEvaluationDetails = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::ExpressionEvaluationDetails
21
- TrackedResourceModificationDetails = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::TrackedResourceModificationDetails
22
- IfNotExistsEvaluationDetails = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::IfNotExistsEvaluationDetails
23
- PolicyTrackedResourcesQueryResults = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyTrackedResourcesQueryResults
24
- PolicyEvaluationDetails = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyEvaluationDetails
25
- QueryFailure = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::QueryFailure
26
- PolicyState = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyState
27
- RemediationDeploymentSummary = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::RemediationDeploymentSummary
28
- PolicyStatesQueryResults = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyStatesQueryResults
29
- RemediationListResult = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::RemediationListResult
30
- SummaryResults = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::SummaryResults
31
- ErrorDefinition = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::ErrorDefinition
32
- PolicyDefinitionSummary = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyDefinitionSummary
33
- RemediationDeploymentsListResult = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::RemediationDeploymentsListResult
34
- PolicyAssignmentSummary = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyAssignmentSummary
35
- PolicyTrackedResource = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyTrackedResource
36
- Summary = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::Summary
37
- RemediationFilters = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::RemediationFilters
38
- SummarizeResults = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::SummarizeResults
39
- TypedErrorInfo = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::TypedErrorInfo
40
- OperationDisplay = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::OperationDisplay
41
- PolicyDetails = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyDetails
42
- Operation = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::Operation
43
- Remediation = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::Remediation
44
- OperationsListResults = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::OperationsListResults
45
- QueryFailureError = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::QueryFailureError
46
- QueryOptions = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::QueryOptions
47
- RemediationDeployment = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::RemediationDeployment
48
- PolicyStatesResource = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyStatesResource
49
- end
50
-
51
- class PolicyInsightsManagementClass
52
- attr_reader :policy_events, :policy_tracked_resources, :remediations, :policy_states, :operations, :configurable, :base_url, :options, :model_classes
53
-
54
- def initialize(configurable, base_url=nil, options=nil)
55
- @configurable, @base_url, @options = configurable, base_url, options
56
-
57
- @client_0 = Azure::PolicyInsights::Mgmt::V2018_04_04::PolicyInsightsClient.new(configurable.credentials, base_url, options)
58
- if(@client_0.respond_to?(:subscription_id))
59
- @client_0.subscription_id = configurable.subscription_id
60
- end
61
- add_telemetry(@client_0)
62
- @policy_events = @client_0.policy_events
63
-
64
- @client_1 = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::PolicyInsightsClient.new(configurable.credentials, base_url, options)
65
- if(@client_1.respond_to?(:subscription_id))
66
- @client_1.subscription_id = configurable.subscription_id
67
- end
68
- add_telemetry(@client_1)
69
- @policy_tracked_resources = @client_1.policy_tracked_resources
70
- @remediations = @client_1.remediations
71
- @policy_states = @client_1.policy_states
72
- @operations = @client_1.operations
73
-
74
- @model_classes = ModelClasses.new
75
- end
76
-
77
- def add_telemetry(client)
78
- profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/Latest/PolicyInsights/Mgmt"
79
- client.add_user_agent_information(profile_information)
80
- end
81
-
82
- def method_missing(method, *args)
83
- if @client_1.respond_to?method
84
- @client_1.send(method, *args)
85
- elsif @client_0.respond_to?method
86
- @client_0.send(method, *args)
87
- else
88
- super
89
- end
90
- end
91
-
92
- class ModelClasses
93
- def policy_events_query_results
94
- Azure::PolicyInsights::Mgmt::V2018_04_04::Models::PolicyEventsQueryResults
95
- end
96
- def policy_event
97
- Azure::PolicyInsights::Mgmt::V2018_04_04::Models::PolicyEvent
98
- end
99
- def error_response
100
- Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::ErrorResponse
101
- end
102
- def expression_evaluation_details
103
- Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::ExpressionEvaluationDetails
104
- end
105
- def tracked_resource_modification_details
106
- Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::TrackedResourceModificationDetails
107
- end
108
- def if_not_exists_evaluation_details
109
- Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::IfNotExistsEvaluationDetails
110
- end
111
- def policy_tracked_resources_query_results
112
- Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyTrackedResourcesQueryResults
113
- end
114
- def policy_evaluation_details
115
- Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyEvaluationDetails
116
- end
117
- def query_failure
118
- Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::QueryFailure
119
- end
120
- def policy_state
121
- Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyState
122
- end
123
- def remediation_deployment_summary
124
- Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::RemediationDeploymentSummary
125
- end
126
- def policy_states_query_results
127
- Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyStatesQueryResults
128
- end
129
- def remediation_list_result
130
- Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::RemediationListResult
131
- end
132
- def summary_results
133
- Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::SummaryResults
134
- end
135
- def error_definition
136
- Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::ErrorDefinition
137
- end
138
- def policy_definition_summary
139
- Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyDefinitionSummary
140
- end
141
- def remediation_deployments_list_result
142
- Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::RemediationDeploymentsListResult
143
- end
144
- def policy_assignment_summary
145
- Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyAssignmentSummary
146
- end
147
- def policy_tracked_resource
148
- Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyTrackedResource
149
- end
150
- def summary
151
- Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::Summary
152
- end
153
- def remediation_filters
154
- Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::RemediationFilters
155
- end
156
- def summarize_results
157
- Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::SummarizeResults
158
- end
159
- def typed_error_info
160
- Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::TypedErrorInfo
161
- end
162
- def operation_display
163
- Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::OperationDisplay
164
- end
165
- def policy_details
166
- Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyDetails
167
- end
168
- def operation
169
- Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::Operation
170
- end
171
- def remediation
172
- Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::Remediation
173
- end
174
- def operations_list_results
175
- Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::OperationsListResults
176
- end
177
- def query_failure_error
178
- Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::QueryFailureError
179
- end
180
- def query_options
181
- Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::QueryOptions
182
- end
183
- def remediation_deployment
184
- Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::RemediationDeployment
185
- end
186
- def policy_states_resource
187
- Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyStatesResource
188
- end
189
- end
190
- end
191
- end
192
- end
193
- 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_policy_insights'
6
+
7
+ module Azure::Profiles::Latest
8
+ module PolicyInsights
9
+ module Mgmt
10
+ PolicyEvents = Azure::PolicyInsights::Mgmt::V2018_04_04::PolicyEvents
11
+ PolicyTrackedResources = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::PolicyTrackedResources
12
+ Remediations = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Remediations
13
+ PolicyStates = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::PolicyStates
14
+ Operations = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Operations
15
+
16
+ module Models
17
+ PolicyEventsQueryResults = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::PolicyEventsQueryResults
18
+ PolicyEvent = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::PolicyEvent
19
+ ErrorResponse = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::ErrorResponse
20
+ ExpressionEvaluationDetails = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::ExpressionEvaluationDetails
21
+ TrackedResourceModificationDetails = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::TrackedResourceModificationDetails
22
+ IfNotExistsEvaluationDetails = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::IfNotExistsEvaluationDetails
23
+ PolicyTrackedResourcesQueryResults = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyTrackedResourcesQueryResults
24
+ PolicyEvaluationDetails = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyEvaluationDetails
25
+ QueryFailure = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::QueryFailure
26
+ PolicyState = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyState
27
+ RemediationDeploymentSummary = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::RemediationDeploymentSummary
28
+ PolicyStatesQueryResults = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyStatesQueryResults
29
+ RemediationListResult = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::RemediationListResult
30
+ SummaryResults = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::SummaryResults
31
+ ErrorDefinition = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::ErrorDefinition
32
+ PolicyDefinitionSummary = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyDefinitionSummary
33
+ RemediationDeploymentsListResult = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::RemediationDeploymentsListResult
34
+ PolicyAssignmentSummary = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyAssignmentSummary
35
+ PolicyTrackedResource = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyTrackedResource
36
+ Summary = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::Summary
37
+ RemediationFilters = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::RemediationFilters
38
+ SummarizeResults = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::SummarizeResults
39
+ TypedErrorInfo = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::TypedErrorInfo
40
+ OperationDisplay = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::OperationDisplay
41
+ PolicyDetails = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyDetails
42
+ Operation = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::Operation
43
+ Remediation = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::Remediation
44
+ OperationsListResults = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::OperationsListResults
45
+ QueryFailureError = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::QueryFailureError
46
+ QueryOptions = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::QueryOptions
47
+ RemediationDeployment = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::RemediationDeployment
48
+ PolicyStatesResource = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyStatesResource
49
+ end
50
+
51
+ class PolicyInsightsManagementClass
52
+ attr_reader :policy_events, :policy_tracked_resources, :remediations, :policy_states, :operations, :configurable, :base_url, :options, :model_classes
53
+
54
+ def initialize(configurable, base_url=nil, options=nil)
55
+ @configurable, @base_url, @options = configurable, base_url, options
56
+
57
+ @client_0 = Azure::PolicyInsights::Mgmt::V2018_04_04::PolicyInsightsClient.new(configurable.credentials, base_url, options)
58
+ if(@client_0.respond_to?(:subscription_id))
59
+ @client_0.subscription_id = configurable.subscription_id
60
+ end
61
+ add_telemetry(@client_0)
62
+ @policy_events = @client_0.policy_events
63
+
64
+ @client_1 = Azure::PolicyInsights::Mgmt::V2018_07_01_preview::PolicyInsightsClient.new(configurable.credentials, base_url, options)
65
+ if(@client_1.respond_to?(:subscription_id))
66
+ @client_1.subscription_id = configurable.subscription_id
67
+ end
68
+ add_telemetry(@client_1)
69
+ @policy_tracked_resources = @client_1.policy_tracked_resources
70
+ @remediations = @client_1.remediations
71
+ @policy_states = @client_1.policy_states
72
+ @operations = @client_1.operations
73
+
74
+ @model_classes = ModelClasses.new
75
+ end
76
+
77
+ def add_telemetry(client)
78
+ profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/Latest/PolicyInsights/Mgmt"
79
+ client.add_user_agent_information(profile_information)
80
+ end
81
+
82
+ def method_missing(method, *args)
83
+ if @client_1.respond_to?method
84
+ @client_1.send(method, *args)
85
+ elsif @client_0.respond_to?method
86
+ @client_0.send(method, *args)
87
+ else
88
+ super
89
+ end
90
+ end
91
+
92
+ class ModelClasses
93
+ def policy_events_query_results
94
+ Azure::PolicyInsights::Mgmt::V2018_04_04::Models::PolicyEventsQueryResults
95
+ end
96
+ def policy_event
97
+ Azure::PolicyInsights::Mgmt::V2018_04_04::Models::PolicyEvent
98
+ end
99
+ def error_response
100
+ Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::ErrorResponse
101
+ end
102
+ def expression_evaluation_details
103
+ Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::ExpressionEvaluationDetails
104
+ end
105
+ def tracked_resource_modification_details
106
+ Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::TrackedResourceModificationDetails
107
+ end
108
+ def if_not_exists_evaluation_details
109
+ Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::IfNotExistsEvaluationDetails
110
+ end
111
+ def policy_tracked_resources_query_results
112
+ Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyTrackedResourcesQueryResults
113
+ end
114
+ def policy_evaluation_details
115
+ Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyEvaluationDetails
116
+ end
117
+ def query_failure
118
+ Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::QueryFailure
119
+ end
120
+ def policy_state
121
+ Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyState
122
+ end
123
+ def remediation_deployment_summary
124
+ Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::RemediationDeploymentSummary
125
+ end
126
+ def policy_states_query_results
127
+ Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyStatesQueryResults
128
+ end
129
+ def remediation_list_result
130
+ Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::RemediationListResult
131
+ end
132
+ def summary_results
133
+ Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::SummaryResults
134
+ end
135
+ def error_definition
136
+ Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::ErrorDefinition
137
+ end
138
+ def policy_definition_summary
139
+ Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyDefinitionSummary
140
+ end
141
+ def remediation_deployments_list_result
142
+ Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::RemediationDeploymentsListResult
143
+ end
144
+ def policy_assignment_summary
145
+ Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyAssignmentSummary
146
+ end
147
+ def policy_tracked_resource
148
+ Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyTrackedResource
149
+ end
150
+ def summary
151
+ Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::Summary
152
+ end
153
+ def remediation_filters
154
+ Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::RemediationFilters
155
+ end
156
+ def summarize_results
157
+ Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::SummarizeResults
158
+ end
159
+ def typed_error_info
160
+ Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::TypedErrorInfo
161
+ end
162
+ def operation_display
163
+ Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::OperationDisplay
164
+ end
165
+ def policy_details
166
+ Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyDetails
167
+ end
168
+ def operation
169
+ Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::Operation
170
+ end
171
+ def remediation
172
+ Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::Remediation
173
+ end
174
+ def operations_list_results
175
+ Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::OperationsListResults
176
+ end
177
+ def query_failure_error
178
+ Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::QueryFailureError
179
+ end
180
+ def query_options
181
+ Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::QueryOptions
182
+ end
183
+ def remediation_deployment
184
+ Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::RemediationDeployment
185
+ end
186
+ def policy_states_resource
187
+ Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyStatesResource
188
+ end
189
+ end
190
+ end
191
+ end
192
+ end
193
+ end