azure_mgmt_adhybridhealth_service 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (128) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service.rb +143 -0
  4. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/ad_domain_service_members.rb +259 -0
  5. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/adds_service.rb +131 -0
  6. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/adds_service_members_operations.rb +535 -0
  7. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/adds_services.rb +2287 -0
  8. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/adds_services_replication_status.rb +117 -0
  9. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/adds_services_service_members.rb +356 -0
  10. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/adds_services_user_preference.rb +293 -0
  11. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/adhybrid_health_service.rb +185 -0
  12. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/alerts_operations.rb +240 -0
  13. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/configuration.rb +500 -0
  14. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/dimensions_operations.rb +229 -0
  15. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/additional_information.rb +80 -0
  16. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/adds_configuration.rb +120 -0
  17. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/adds_service_member.rb +499 -0
  18. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/adds_service_members.rb +120 -0
  19. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/agent.rb +113 -0
  20. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/alert.rb +290 -0
  21. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/alert_feedback.rb +127 -0
  22. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/alert_feedbacks.rb +55 -0
  23. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/alerts.rb +120 -0
  24. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/algorithm_step_type.rb +27 -0
  25. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/associated_object.rb +167 -0
  26. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/attribute_delta.rb +103 -0
  27. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/attribute_delta_operation_type.rb +19 -0
  28. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/attribute_mapping.rb +81 -0
  29. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/attribute_mapping_type.rb +18 -0
  30. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/attribute_mpping_source.rb +87 -0
  31. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/change_not_reimported.rb +61 -0
  32. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/change_not_reimported_delta.rb +100 -0
  33. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/change_not_reimported_entry.rb +139 -0
  34. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/connector.rb +236 -0
  35. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/connector_connection_error.rb +123 -0
  36. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/connector_connection_errors.rb +56 -0
  37. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/connector_metadata.rb +74 -0
  38. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/connector_metadata_details.rb +57 -0
  39. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/connector_object_error.rb +197 -0
  40. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/connector_object_errors.rb +56 -0
  41. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/connectors.rb +55 -0
  42. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/credential.rb +76 -0
  43. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/credentials.rb +55 -0
  44. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/data_freshness_details.rb +55 -0
  45. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/delta_operation_type.rb +22 -0
  46. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/dimension.rb +142 -0
  47. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/dimensions.rb +120 -0
  48. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/display.rb +69 -0
  49. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/error_count.rb +68 -0
  50. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/error_counts.rb +55 -0
  51. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/error_detail.rb +93 -0
  52. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/error_report_users_entries.rb +56 -0
  53. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/error_report_users_entry.rb +91 -0
  54. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/export_error.rb +444 -0
  55. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/export_errors.rb +55 -0
  56. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/export_status.rb +80 -0
  57. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/export_statuses.rb +120 -0
  58. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/extension_error_info.rb +68 -0
  59. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/forest_summary.rb +129 -0
  60. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/global_configuration.rb +99 -0
  61. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/global_configurations.rb +56 -0
  62. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/health_status.rb +19 -0
  63. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/help_link.rb +57 -0
  64. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/hotfix.rb +69 -0
  65. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/hotfixes.rb +55 -0
  66. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/import_error.rb +186 -0
  67. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/import_errors.rb +55 -0
  68. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/inbound_replication_neighbor.rb +179 -0
  69. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/inbound_replication_neighbors.rb +57 -0
  70. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/item.rb +57 -0
  71. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/items.rb +55 -0
  72. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/level.rb +17 -0
  73. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/merged_export_error.rb +280 -0
  74. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/merged_export_errors.rb +55 -0
  75. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/metric_group.rb +69 -0
  76. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/metric_metadata.rb +169 -0
  77. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/metric_metadata_list.rb +120 -0
  78. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/metric_set.rb +66 -0
  79. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/metric_sets.rb +75 -0
  80. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/metrics.rb +120 -0
  81. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/module_configuration.rb +78 -0
  82. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/module_configurations.rb +56 -0
  83. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/monitoring_level.rb +17 -0
  84. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/object_with_sync_error.rb +211 -0
  85. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/operation.rb +57 -0
  86. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/operation_list_response.rb +125 -0
  87. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/partition.rb +136 -0
  88. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/partition_scope.rb +103 -0
  89. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/password_hash_sync_configuration.rb +58 -0
  90. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/password_management_settings.rb +148 -0
  91. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/password_operation_types.rb +17 -0
  92. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/replication_details_list.rb +89 -0
  93. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/replication_status.rb +70 -0
  94. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/replication_summary.rb +124 -0
  95. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/replication_summary_list.rb +56 -0
  96. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/result.rb +46 -0
  97. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/risky_ipblob_uri.rb +102 -0
  98. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/risky_ipblob_uris.rb +55 -0
  99. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/rule_error_info.rb +91 -0
  100. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/run_profile.rb +77 -0
  101. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/run_profiles.rb +55 -0
  102. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/run_step.rb +113 -0
  103. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/service_configuration.rb +134 -0
  104. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/service_member.rb +336 -0
  105. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/service_members.rb +120 -0
  106. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/service_properties.rb +331 -0
  107. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/services.rb +120 -0
  108. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/state.rb +19 -0
  109. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/tabular_export_error.rb +79 -0
  110. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/tenant.rb +292 -0
  111. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/tenant_onboarding_details.rb +60 -0
  112. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/user_preference.rb +54 -0
  113. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/value_delta.rb +58 -0
  114. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/value_delta_operation_type.rb +18 -0
  115. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/value_type.rb +20 -0
  116. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/module_definition.rb +9 -0
  117. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/operations.rb +219 -0
  118. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/reports.rb +109 -0
  119. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/service.rb +131 -0
  120. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/service_members_operations.rb +1736 -0
  121. data/lib/2014-01-01/generated/azure_mgmt_adhybridhealth_service/services_operations.rb +3162 -0
  122. data/lib/azure_mgmt_adhybridhealth_service.rb +6 -0
  123. data/lib/module_definition.rb +7 -0
  124. data/lib/profiles/latest/adhybridhealthservice_latest_profile_client.rb +40 -0
  125. data/lib/profiles/latest/adhybridhealthservice_module_definition.rb +8 -0
  126. data/lib/profiles/latest/modules/adhybridhealthservice_profile_module.rb +493 -0
  127. data/lib/version.rb +7 -0
  128. metadata +243 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: ed264c0178161e2903fa75512ef984193489bc1dc0d2334a80a39938967b910a
4
+ data.tar.gz: 9a9028873f400085d5e9eaa53ef9c3f7e68f355dac7884912ad47f468f4642d0
5
+ SHA512:
6
+ metadata.gz: e527ce556d8d13c268d55df6eaa14871455d480ec576b219d8084c7b7791241d49faec9d1ef88288b79b530d13d329126215c9d1c8a48ba91c54513ef1d35145
7
+ data.tar.gz: a391b49d62a4198a79e81fa756c7ee4a83827a2039bf2c1af3c63f5c0a56b9de4333ecfb04b64db78c66a12c21aa81368a7fdb43339a9cf77f897d32ebbc5817
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Microsoft Corporation
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,143 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ require 'uri'
7
+ require 'cgi'
8
+ require 'date'
9
+ require 'json'
10
+ require 'base64'
11
+ require 'erb'
12
+ require 'securerandom'
13
+ require 'time'
14
+ require 'timeliness'
15
+ require 'faraday'
16
+ require 'faraday-cookie_jar'
17
+ require 'concurrent'
18
+ require 'ms_rest'
19
+ require '2014-01-01/generated/azure_mgmt_adhybridhealth_service/module_definition'
20
+ require 'ms_rest_azure'
21
+
22
+ module Azure::ADHybridHealthService::Mgmt::V2014_01_01
23
+ autoload :AddsServices, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/adds_services.rb'
24
+ autoload :AlertsOperations, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/alerts_operations.rb'
25
+ autoload :Configuration, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/configuration.rb'
26
+ autoload :DimensionsOperations, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/dimensions_operations.rb'
27
+ autoload :AddsServiceMembersOperations, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/adds_service_members_operations.rb'
28
+ autoload :AdDomainServiceMembers, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/ad_domain_service_members.rb'
29
+ autoload :AddsServicesUserPreference, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/adds_services_user_preference.rb'
30
+ autoload :AddsService, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/adds_service.rb'
31
+ autoload :AddsServicesReplicationStatus, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/adds_services_replication_status.rb'
32
+ autoload :AddsServicesServiceMembers, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/adds_services_service_members.rb'
33
+ autoload :Operations, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/operations.rb'
34
+ autoload :Reports, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/reports.rb'
35
+ autoload :ServicesOperations, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/services_operations.rb'
36
+ autoload :Service, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/service.rb'
37
+ autoload :ServiceMembersOperations, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/service_members_operations.rb'
38
+ autoload :ADHybridHealthService, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/adhybrid_health_service.rb'
39
+
40
+ module Models
41
+ autoload :ErrorReportUsersEntry, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/error_report_users_entry.rb'
42
+ autoload :Item, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/item.rb'
43
+ autoload :ErrorReportUsersEntries, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/error_report_users_entries.rb'
44
+ autoload :AdditionalInformation, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/additional_information.rb'
45
+ autoload :ExportStatus, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/export_status.rb'
46
+ autoload :AddsServiceMember, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/adds_service_member.rb'
47
+ autoload :ExportStatuses, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/export_statuses.rb'
48
+ autoload :Agent, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/agent.rb'
49
+ autoload :ExtensionErrorInfo, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/extension_error_info.rb'
50
+ autoload :Alert, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/alert.rb'
51
+ autoload :ForestSummary, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/forest_summary.rb'
52
+ autoload :AlertFeedbacks, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/alert_feedbacks.rb'
53
+ autoload :GlobalConfiguration, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/global_configuration.rb'
54
+ autoload :AssociatedObject, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/associated_object.rb'
55
+ autoload :GlobalConfigurations, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/global_configurations.rb'
56
+ autoload :AttributeDelta, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/attribute_delta.rb'
57
+ autoload :Hotfixes, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/hotfixes.rb'
58
+ autoload :AttributeMapping, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/attribute_mapping.rb'
59
+ autoload :RuleErrorInfo, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/rule_error_info.rb'
60
+ autoload :ChangeNotReimportedEntry, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/change_not_reimported_entry.rb'
61
+ autoload :ImportError, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/import_error.rb'
62
+ autoload :PartitionScope, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/partition_scope.rb'
63
+ autoload :ImportErrors, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/import_errors.rb'
64
+ autoload :RunStep, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/run_step.rb'
65
+ autoload :InboundReplicationNeighbor, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/inbound_replication_neighbor.rb'
66
+ autoload :Connector, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/connector.rb'
67
+ autoload :InboundReplicationNeighbors, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/inbound_replication_neighbors.rb'
68
+ autoload :ConnectorConnectionError, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/connector_connection_error.rb'
69
+ autoload :Items, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/items.rb'
70
+ autoload :ConnectorMetadataDetails, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/connector_metadata_details.rb'
71
+ autoload :MergedExportErrors, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/merged_export_errors.rb'
72
+ autoload :ConnectorObjectError, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/connector_object_error.rb'
73
+ autoload :MetricGroup, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/metric_group.rb'
74
+ autoload :Credential, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/credential.rb'
75
+ autoload :Metrics, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/metrics.rb'
76
+ autoload :DataFreshnessDetails, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/data_freshness_details.rb'
77
+ autoload :MetricMetadata, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/metric_metadata.rb'
78
+ autoload :Dimensions, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/dimensions.rb'
79
+ autoload :MetricMetadataList, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/metric_metadata_list.rb'
80
+ autoload :ErrorCount, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/error_count.rb'
81
+ autoload :MetricSet, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/metric_set.rb'
82
+ autoload :ObjectWithSyncError, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/object_with_sync_error.rb'
83
+ autoload :MetricSets, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/metric_sets.rb'
84
+ autoload :ErrorDetail, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/error_detail.rb'
85
+ autoload :ModuleConfiguration, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/module_configuration.rb'
86
+ autoload :ExportErrors, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/export_errors.rb'
87
+ autoload :ModuleConfigurations, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/module_configurations.rb'
88
+ autoload :Hotfix, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/hotfix.rb'
89
+ autoload :Operation, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/operation.rb'
90
+ autoload :HelpLink, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/help_link.rb'
91
+ autoload :OperationListResponse, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/operation_list_response.rb'
92
+ autoload :Alerts, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/alerts.rb'
93
+ autoload :PasswordManagementSettings, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/password_management_settings.rb'
94
+ autoload :AttributeMppingSource, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/attribute_mpping_source.rb'
95
+ autoload :PasswordHashSyncConfiguration, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/password_hash_sync_configuration.rb'
96
+ autoload :ChangeNotReimported, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/change_not_reimported.rb'
97
+ autoload :ReplicationSummary, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/replication_summary.rb'
98
+ autoload :RunProfile, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/run_profile.rb'
99
+ autoload :ReplicationDetailsList, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/replication_details_list.rb'
100
+ autoload :ConnectorConnectionErrors, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/connector_connection_errors.rb'
101
+ autoload :ReplicationStatus, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/replication_status.rb'
102
+ autoload :ConnectorObjectErrors, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/connector_object_errors.rb'
103
+ autoload :ReplicationSummaryList, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/replication_summary_list.rb'
104
+ autoload :Dimension, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/dimension.rb'
105
+ autoload :Result, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/result.rb'
106
+ autoload :ErrorCounts, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/error_counts.rb'
107
+ autoload :RiskyIPBlobUri, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/risky_ipblob_uri.rb'
108
+ autoload :ExportError, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/export_error.rb'
109
+ autoload :RiskyIPBlobUris, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/risky_ipblob_uris.rb'
110
+ autoload :AddsServiceMembers, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/adds_service_members.rb'
111
+ autoload :RunProfiles, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/run_profiles.rb'
112
+ autoload :ValueDelta, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/value_delta.rb'
113
+ autoload :ServiceConfiguration, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/service_configuration.rb'
114
+ autoload :Partition, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/partition.rb'
115
+ autoload :ServiceProperties, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/service_properties.rb'
116
+ autoload :ConnectorMetadata, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/connector_metadata.rb'
117
+ autoload :Services, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/services.rb'
118
+ autoload :Display, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/display.rb'
119
+ autoload :ServiceMember, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/service_member.rb'
120
+ autoload :AddsConfiguration, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/adds_configuration.rb'
121
+ autoload :ServiceMembers, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/service_members.rb'
122
+ autoload :ChangeNotReimportedDelta, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/change_not_reimported_delta.rb'
123
+ autoload :TabularExportError, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/tabular_export_error.rb'
124
+ autoload :Credentials, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/credentials.rb'
125
+ autoload :Tenant, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/tenant.rb'
126
+ autoload :AlertFeedback, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/alert_feedback.rb'
127
+ autoload :TenantOnboardingDetails, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/tenant_onboarding_details.rb'
128
+ autoload :MergedExportError, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/merged_export_error.rb'
129
+ autoload :UserPreference, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/user_preference.rb'
130
+ autoload :Connectors, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/connectors.rb'
131
+ autoload :MonitoringLevel, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/monitoring_level.rb'
132
+ autoload :Level, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/level.rb'
133
+ autoload :State, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/state.rb'
134
+ autoload :ValueDeltaOperationType, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/value_delta_operation_type.rb'
135
+ autoload :AttributeDeltaOperationType, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/attribute_delta_operation_type.rb'
136
+ autoload :ValueType, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/value_type.rb'
137
+ autoload :AttributeMappingType, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/attribute_mapping_type.rb'
138
+ autoload :DeltaOperationType, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/delta_operation_type.rb'
139
+ autoload :HealthStatus, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/health_status.rb'
140
+ autoload :AlgorithmStepType, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/algorithm_step_type.rb'
141
+ autoload :PasswordOperationTypes, '2014-01-01/generated/azure_mgmt_adhybridhealth_service/models/password_operation_types.rb'
142
+ end
143
+ end
@@ -0,0 +1,259 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ADHybridHealthService::Mgmt::V2014_01_01
7
+ #
8
+ # REST APIs for Azure Active Directory Connect Health
9
+ #
10
+ class AdDomainServiceMembers
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the AdDomainServiceMembers class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [ADHybridHealthService] reference to the ADHybridHealthService
22
+ attr_reader :client
23
+
24
+ #
25
+ # Gets the details of the servers, for a given Active Directory Domain Service,
26
+ # that are onboarded to Azure Active Directory Connect Health.
27
+ #
28
+ # @param service_name [String] The name of the service.
29
+ # @param is_groupby_site [Boolean] Indicates if the result should be grouped by
30
+ # site or not.
31
+ # @param filter [String] The server property filter to apply.
32
+ # @param query [String] The custom query.
33
+ # @param take_count [Integer] The take count , which specifies the number of
34
+ # elements that can be returned from a sequence.
35
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
36
+ # will be added to the HTTP request.
37
+ #
38
+ # @return [Array<AddsServiceMember>] operation results.
39
+ #
40
+ def list(service_name, is_groupby_site, filter:nil, query:nil, take_count:nil, custom_headers:nil)
41
+ first_page = list_as_lazy(service_name, is_groupby_site, filter:filter, query:query, take_count:take_count, custom_headers:custom_headers)
42
+ first_page.get_all_items
43
+ end
44
+
45
+ #
46
+ # Gets the details of the servers, for a given Active Directory Domain Service,
47
+ # that are onboarded to Azure Active Directory Connect Health.
48
+ #
49
+ # @param service_name [String] The name of the service.
50
+ # @param is_groupby_site [Boolean] Indicates if the result should be grouped by
51
+ # site or not.
52
+ # @param filter [String] The server property filter to apply.
53
+ # @param query [String] The custom query.
54
+ # @param take_count [Integer] The take count , which specifies the number of
55
+ # elements that can be returned from a sequence.
56
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
57
+ # will be added to the HTTP request.
58
+ #
59
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
60
+ #
61
+ def list_with_http_info(service_name, is_groupby_site, filter:nil, query:nil, take_count:nil, custom_headers:nil)
62
+ list_async(service_name, is_groupby_site, filter:filter, query:query, take_count:take_count, custom_headers:custom_headers).value!
63
+ end
64
+
65
+ #
66
+ # Gets the details of the servers, for a given Active Directory Domain Service,
67
+ # that are onboarded to Azure Active Directory Connect Health.
68
+ #
69
+ # @param service_name [String] The name of the service.
70
+ # @param is_groupby_site [Boolean] Indicates if the result should be grouped by
71
+ # site or not.
72
+ # @param filter [String] The server property filter to apply.
73
+ # @param query [String] The custom query.
74
+ # @param take_count [Integer] The take count , which specifies the number of
75
+ # elements that can be returned from a sequence.
76
+ # @param [Hash{String => String}] A hash of custom headers that will be added
77
+ # to the HTTP request.
78
+ #
79
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
80
+ #
81
+ def list_async(service_name, is_groupby_site, filter:nil, query:nil, take_count:nil, custom_headers:nil)
82
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
83
+ fail ArgumentError, 'is_groupby_site is nil' if is_groupby_site.nil?
84
+ next_partition_key = ''
85
+ next_row_key = ''
86
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
87
+
88
+
89
+ request_headers = {}
90
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
91
+
92
+ # Set Headers
93
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
94
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
95
+ path_template = 'providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/addomainservicemembers'
96
+
97
+ request_url = @base_url || @client.base_url
98
+
99
+ options = {
100
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
101
+ path_params: {'serviceName' => service_name},
102
+ query_params: {'$filter' => filter,'isGroupbySite' => is_groupby_site,'query' => query,'nextPartitionKey' => next_partition_key,'nextRowKey' => next_row_key,'takeCount' => take_count,'api-version' => @client.api_version},
103
+ headers: request_headers.merge(custom_headers || {}),
104
+ base_url: request_url
105
+ }
106
+ promise = @client.make_request_async(:get, path_template, options)
107
+
108
+ promise = promise.then do |result|
109
+ http_response = result.response
110
+ status_code = http_response.status
111
+ response_content = http_response.body
112
+ unless status_code == 200
113
+ error_model = JSON.load(response_content)
114
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
115
+ end
116
+
117
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
118
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
119
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
120
+ # Deserialize Response
121
+ if status_code == 200
122
+ begin
123
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
124
+ result_mapper = Azure::ADHybridHealthService::Mgmt::V2014_01_01::Models::AddsServiceMembers.mapper()
125
+ result.body = @client.deserialize(result_mapper, parsed_response)
126
+ rescue Exception => e
127
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
128
+ end
129
+ end
130
+
131
+ result
132
+ end
133
+
134
+ promise.execute
135
+ end
136
+
137
+ #
138
+ # Gets the details of the servers, for a given Active Directory Domain Service,
139
+ # that are onboarded to Azure Active Directory Connect Health.
140
+ #
141
+ # @param next_page_link [String] The NextLink from the previous successful call
142
+ # to List operation.
143
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
144
+ # will be added to the HTTP request.
145
+ #
146
+ # @return [AddsServiceMembers] operation results.
147
+ #
148
+ def list_next(next_page_link, custom_headers:nil)
149
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
150
+ response.body unless response.nil?
151
+ end
152
+
153
+ #
154
+ # Gets the details of the servers, for a given Active Directory Domain Service,
155
+ # that are onboarded to Azure Active Directory Connect Health.
156
+ #
157
+ # @param next_page_link [String] The NextLink from the previous successful call
158
+ # to List operation.
159
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
160
+ # will be added to the HTTP request.
161
+ #
162
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
163
+ #
164
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
165
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
166
+ end
167
+
168
+ #
169
+ # Gets the details of the servers, for a given Active Directory Domain Service,
170
+ # that are onboarded to Azure Active Directory Connect Health.
171
+ #
172
+ # @param next_page_link [String] The NextLink from the previous successful call
173
+ # to List operation.
174
+ # @param [Hash{String => String}] A hash of custom headers that will be added
175
+ # to the HTTP request.
176
+ #
177
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
178
+ #
179
+ def list_next_async(next_page_link, custom_headers:nil)
180
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
181
+
182
+
183
+ request_headers = {}
184
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
185
+
186
+ # Set Headers
187
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
188
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
189
+ path_template = '{nextLink}'
190
+
191
+ request_url = @base_url || @client.base_url
192
+
193
+ options = {
194
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
195
+ skip_encoding_path_params: {'nextLink' => next_page_link},
196
+ headers: request_headers.merge(custom_headers || {}),
197
+ base_url: request_url
198
+ }
199
+ promise = @client.make_request_async(:get, path_template, options)
200
+
201
+ promise = promise.then do |result|
202
+ http_response = result.response
203
+ status_code = http_response.status
204
+ response_content = http_response.body
205
+ unless status_code == 200
206
+ error_model = JSON.load(response_content)
207
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
208
+ end
209
+
210
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
211
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
212
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
213
+ # Deserialize Response
214
+ if status_code == 200
215
+ begin
216
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
217
+ result_mapper = Azure::ADHybridHealthService::Mgmt::V2014_01_01::Models::AddsServiceMembers.mapper()
218
+ result.body = @client.deserialize(result_mapper, parsed_response)
219
+ rescue Exception => e
220
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
221
+ end
222
+ end
223
+
224
+ result
225
+ end
226
+
227
+ promise.execute
228
+ end
229
+
230
+ #
231
+ # Gets the details of the servers, for a given Active Directory Domain Service,
232
+ # that are onboarded to Azure Active Directory Connect Health.
233
+ #
234
+ # @param service_name [String] The name of the service.
235
+ # @param is_groupby_site [Boolean] Indicates if the result should be grouped by
236
+ # site or not.
237
+ # @param filter [String] The server property filter to apply.
238
+ # @param query [String] The custom query.
239
+ # @param take_count [Integer] The take count , which specifies the number of
240
+ # elements that can be returned from a sequence.
241
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
242
+ # will be added to the HTTP request.
243
+ #
244
+ # @return [AddsServiceMembers] which provide lazy access to pages of the
245
+ # response.
246
+ #
247
+ def list_as_lazy(service_name, is_groupby_site, filter:nil, query:nil, take_count:nil, custom_headers:nil)
248
+ response = list_async(service_name, is_groupby_site, filter:filter, query:query, take_count:take_count, custom_headers:custom_headers).value!
249
+ unless response.nil?
250
+ page = response.body
251
+ page.next_method = Proc.new do |next_page_link|
252
+ list_next_async(next_page_link, custom_headers:custom_headers)
253
+ end
254
+ page
255
+ end
256
+ end
257
+
258
+ end
259
+ end
@@ -0,0 +1,131 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ADHybridHealthService::Mgmt::V2014_01_01
7
+ #
8
+ # REST APIs for Azure Active Directory Connect Health
9
+ #
10
+ class AddsService
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the AddsService class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [ADHybridHealthService] reference to the ADHybridHealthService
22
+ attr_reader :client
23
+
24
+ #
25
+ # Gets the server related metrics for a given metric and group combination.
26
+ #
27
+ # @param service_name [String] The name of the service.
28
+ # @param metric_name [String] The metric name
29
+ # @param group_name [String] The group name
30
+ # @param group_key [String] The group key
31
+ # @param from_date [DateTime] The start date.
32
+ # @param to_date [DateTime] The end date.
33
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
34
+ # will be added to the HTTP request.
35
+ #
36
+ # @return [MetricSets] operation results.
37
+ #
38
+ def get_metrics(service_name, metric_name, group_name, group_key:nil, from_date:nil, to_date:nil, custom_headers:nil)
39
+ response = get_metrics_async(service_name, metric_name, group_name, group_key:group_key, from_date:from_date, to_date:to_date, custom_headers:custom_headers).value!
40
+ response.body unless response.nil?
41
+ end
42
+
43
+ #
44
+ # Gets the server related metrics for a given metric and group combination.
45
+ #
46
+ # @param service_name [String] The name of the service.
47
+ # @param metric_name [String] The metric name
48
+ # @param group_name [String] The group name
49
+ # @param group_key [String] The group key
50
+ # @param from_date [DateTime] The start date.
51
+ # @param to_date [DateTime] The end date.
52
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
53
+ # will be added to the HTTP request.
54
+ #
55
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
56
+ #
57
+ def get_metrics_with_http_info(service_name, metric_name, group_name, group_key:nil, from_date:nil, to_date:nil, custom_headers:nil)
58
+ get_metrics_async(service_name, metric_name, group_name, group_key:group_key, from_date:from_date, to_date:to_date, custom_headers:custom_headers).value!
59
+ end
60
+
61
+ #
62
+ # Gets the server related metrics for a given metric and group combination.
63
+ #
64
+ # @param service_name [String] The name of the service.
65
+ # @param metric_name [String] The metric name
66
+ # @param group_name [String] The group name
67
+ # @param group_key [String] The group key
68
+ # @param from_date [DateTime] The start date.
69
+ # @param to_date [DateTime] The end date.
70
+ # @param [Hash{String => String}] A hash of custom headers that will be added
71
+ # to the HTTP request.
72
+ #
73
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
74
+ #
75
+ def get_metrics_async(service_name, metric_name, group_name, group_key:nil, from_date:nil, to_date:nil, custom_headers:nil)
76
+ fail ArgumentError, 'service_name is nil' if service_name.nil?
77
+ fail ArgumentError, 'metric_name is nil' if metric_name.nil?
78
+ fail ArgumentError, 'group_name is nil' if group_name.nil?
79
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
80
+
81
+
82
+ request_headers = {}
83
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
84
+
85
+ # Set Headers
86
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
87
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
88
+ path_template = 'providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/metrics/{metricName}/groups/{groupName}'
89
+
90
+ request_url = @base_url || @client.base_url
91
+
92
+ options = {
93
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
94
+ path_params: {'serviceName' => service_name,'metricName' => metric_name,'groupName' => group_name},
95
+ query_params: {'groupKey' => group_key,'fromDate' => from_date,'toDate' => to_date,'api-version' => @client.api_version},
96
+ headers: request_headers.merge(custom_headers || {}),
97
+ base_url: request_url
98
+ }
99
+ promise = @client.make_request_async(:get, path_template, options)
100
+
101
+ promise = promise.then do |result|
102
+ http_response = result.response
103
+ status_code = http_response.status
104
+ response_content = http_response.body
105
+ unless status_code == 200
106
+ error_model = JSON.load(response_content)
107
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
108
+ end
109
+
110
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
111
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
112
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
113
+ # Deserialize Response
114
+ if status_code == 200
115
+ begin
116
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
117
+ result_mapper = Azure::ADHybridHealthService::Mgmt::V2014_01_01::Models::MetricSets.mapper()
118
+ result.body = @client.deserialize(result_mapper, parsed_response)
119
+ rescue Exception => e
120
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
121
+ end
122
+ end
123
+
124
+ result
125
+ end
126
+
127
+ promise.execute
128
+ end
129
+
130
+ end
131
+ end