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,60 @@
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
+ module Models
8
+ #
9
+ # The tenant onboarding details.
10
+ #
11
+ class TenantOnboardingDetails
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Boolean] Indicates if the tenant is onboarded to Azure Active
16
+ # Directory Connect Health or not.
17
+ attr_accessor :tenant_onboarded
18
+
19
+ # @return [String] The display url, to help tenant navigate or onboard to
20
+ # Azure Active Directory Connect Health blade, based on tenant onboarding
21
+ # status.
22
+ attr_accessor :onboarding_display_url
23
+
24
+
25
+ #
26
+ # Mapper for TenantOnboardingDetails class as Ruby Hash.
27
+ # This will be used for serialization/deserialization.
28
+ #
29
+ def self.mapper()
30
+ {
31
+ client_side_validation: true,
32
+ required: false,
33
+ serialized_name: 'TenantOnboardingDetails',
34
+ type: {
35
+ name: 'Composite',
36
+ class_name: 'TenantOnboardingDetails',
37
+ model_properties: {
38
+ tenant_onboarded: {
39
+ client_side_validation: true,
40
+ required: false,
41
+ serialized_name: 'tenantOnboarded',
42
+ type: {
43
+ name: 'Boolean'
44
+ }
45
+ },
46
+ onboarding_display_url: {
47
+ client_side_validation: true,
48
+ required: false,
49
+ serialized_name: 'onboardingDisplayUrl',
50
+ type: {
51
+ name: 'String'
52
+ }
53
+ }
54
+ }
55
+ }
56
+ }
57
+ end
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,54 @@
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
+ module Models
8
+ #
9
+ # The user preference for a given feature.
10
+ #
11
+ class UserPreference
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<String>] The name of the metric.
16
+ attr_accessor :metric_names
17
+
18
+
19
+ #
20
+ # Mapper for UserPreference class as Ruby Hash.
21
+ # This will be used for serialization/deserialization.
22
+ #
23
+ def self.mapper()
24
+ {
25
+ client_side_validation: true,
26
+ required: false,
27
+ serialized_name: 'UserPreference',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'UserPreference',
31
+ model_properties: {
32
+ metric_names: {
33
+ client_side_validation: true,
34
+ required: false,
35
+ serialized_name: 'metricNames',
36
+ type: {
37
+ name: 'Sequence',
38
+ element: {
39
+ client_side_validation: true,
40
+ required: false,
41
+ serialized_name: 'StringElementType',
42
+ type: {
43
+ name: 'String'
44
+ }
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ end
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,58 @@
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
+ module Models
8
+ #
9
+ # The value of the delta.
10
+ #
11
+ class ValueDelta
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [ValueDeltaOperationType] The operation type. Possible values
16
+ # include: 'Undefined', 'Add', 'Update', 'Delete'
17
+ attr_accessor :operation_type
18
+
19
+ # @return [String] The value of the delta.
20
+ attr_accessor :value
21
+
22
+
23
+ #
24
+ # Mapper for ValueDelta class as Ruby Hash.
25
+ # This will be used for serialization/deserialization.
26
+ #
27
+ def self.mapper()
28
+ {
29
+ client_side_validation: true,
30
+ required: false,
31
+ serialized_name: 'ValueDelta',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'ValueDelta',
35
+ model_properties: {
36
+ operation_type: {
37
+ client_side_validation: true,
38
+ required: false,
39
+ serialized_name: 'operationType',
40
+ type: {
41
+ name: 'String'
42
+ }
43
+ },
44
+ value: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ serialized_name: 'value',
48
+ type: {
49
+ name: 'String'
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
55
+ end
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,18 @@
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
+ module Models
8
+ #
9
+ # Defines values for ValueDeltaOperationType
10
+ #
11
+ module ValueDeltaOperationType
12
+ Undefined = "Undefined"
13
+ Add = "Add"
14
+ Update = "Update"
15
+ Delete = "Delete"
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,20 @@
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
+ module Models
8
+ #
9
+ # Defines values for ValueType
10
+ #
11
+ module ValueType
12
+ Undefined = "Undefined"
13
+ Dn = "Dn"
14
+ Binary = "Binary"
15
+ String = "String"
16
+ Integer = "Integer"
17
+ Boolean = "Boolean"
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,9 @@
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 end
7
+ module Azure::ADHybridHealthService end
8
+ module Azure::ADHybridHealthService::Mgmt end
9
+ module Azure::ADHybridHealthService::Mgmt::V2014_01_01 end
@@ -0,0 +1,219 @@
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 Operations
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the Operations 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
+ # Lists the available Azure Data Factory API operations.
26
+ #
27
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
28
+ # will be added to the HTTP request.
29
+ #
30
+ # @return [Array<Operation>] operation results.
31
+ #
32
+ def list(custom_headers:nil)
33
+ first_page = list_as_lazy(custom_headers:custom_headers)
34
+ first_page.get_all_items
35
+ end
36
+
37
+ #
38
+ # Lists the available Azure Data Factory API operations.
39
+ #
40
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
41
+ # will be added to the HTTP request.
42
+ #
43
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
44
+ #
45
+ def list_with_http_info(custom_headers:nil)
46
+ list_async(custom_headers:custom_headers).value!
47
+ end
48
+
49
+ #
50
+ # Lists the available Azure Data Factory API operations.
51
+ #
52
+ # @param [Hash{String => String}] A hash of custom headers that will be added
53
+ # to the HTTP request.
54
+ #
55
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
56
+ #
57
+ def list_async(custom_headers:nil)
58
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
59
+
60
+
61
+ request_headers = {}
62
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
63
+
64
+ # Set Headers
65
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
66
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
67
+ path_template = 'providers/Microsoft.ADHybridHealthService/operations'
68
+
69
+ request_url = @base_url || @client.base_url
70
+
71
+ options = {
72
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
73
+ query_params: {'api-version' => @client.api_version},
74
+ headers: request_headers.merge(custom_headers || {}),
75
+ base_url: request_url
76
+ }
77
+ promise = @client.make_request_async(:get, path_template, options)
78
+
79
+ promise = promise.then do |result|
80
+ http_response = result.response
81
+ status_code = http_response.status
82
+ response_content = http_response.body
83
+ unless status_code == 200
84
+ error_model = JSON.load(response_content)
85
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
86
+ end
87
+
88
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
89
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
90
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
91
+ # Deserialize Response
92
+ if status_code == 200
93
+ begin
94
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
95
+ result_mapper = Azure::ADHybridHealthService::Mgmt::V2014_01_01::Models::OperationListResponse.mapper()
96
+ result.body = @client.deserialize(result_mapper, parsed_response)
97
+ rescue Exception => e
98
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
99
+ end
100
+ end
101
+
102
+ result
103
+ end
104
+
105
+ promise.execute
106
+ end
107
+
108
+ #
109
+ # Lists the available Azure Data Factory API operations.
110
+ #
111
+ # @param next_page_link [String] The NextLink from the previous successful call
112
+ # to List operation.
113
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
114
+ # will be added to the HTTP request.
115
+ #
116
+ # @return [OperationListResponse] operation results.
117
+ #
118
+ def list_next(next_page_link, custom_headers:nil)
119
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
120
+ response.body unless response.nil?
121
+ end
122
+
123
+ #
124
+ # Lists the available Azure Data Factory API operations.
125
+ #
126
+ # @param next_page_link [String] The NextLink from the previous successful call
127
+ # to List operation.
128
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
129
+ # will be added to the HTTP request.
130
+ #
131
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
132
+ #
133
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
134
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
135
+ end
136
+
137
+ #
138
+ # Lists the available Azure Data Factory API operations.
139
+ #
140
+ # @param next_page_link [String] The NextLink from the previous successful call
141
+ # to List operation.
142
+ # @param [Hash{String => String}] A hash of custom headers that will be added
143
+ # to the HTTP request.
144
+ #
145
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
146
+ #
147
+ def list_next_async(next_page_link, custom_headers:nil)
148
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
149
+
150
+
151
+ request_headers = {}
152
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
153
+
154
+ # Set Headers
155
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
156
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
157
+ path_template = '{nextLink}'
158
+
159
+ request_url = @base_url || @client.base_url
160
+
161
+ options = {
162
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
163
+ skip_encoding_path_params: {'nextLink' => next_page_link},
164
+ headers: request_headers.merge(custom_headers || {}),
165
+ base_url: request_url
166
+ }
167
+ promise = @client.make_request_async(:get, path_template, options)
168
+
169
+ promise = promise.then do |result|
170
+ http_response = result.response
171
+ status_code = http_response.status
172
+ response_content = http_response.body
173
+ unless status_code == 200
174
+ error_model = JSON.load(response_content)
175
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
176
+ end
177
+
178
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
179
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
180
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
181
+ # Deserialize Response
182
+ if status_code == 200
183
+ begin
184
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
185
+ result_mapper = Azure::ADHybridHealthService::Mgmt::V2014_01_01::Models::OperationListResponse.mapper()
186
+ result.body = @client.deserialize(result_mapper, parsed_response)
187
+ rescue Exception => e
188
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
189
+ end
190
+ end
191
+
192
+ result
193
+ end
194
+
195
+ promise.execute
196
+ end
197
+
198
+ #
199
+ # Lists the available Azure Data Factory API operations.
200
+ #
201
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
202
+ # will be added to the HTTP request.
203
+ #
204
+ # @return [OperationListResponse] which provide lazy access to pages of the
205
+ # response.
206
+ #
207
+ def list_as_lazy(custom_headers:nil)
208
+ response = list_async(custom_headers:custom_headers).value!
209
+ unless response.nil?
210
+ page = response.body
211
+ page.next_method = Proc.new do |next_page_link|
212
+ list_next_async(next_page_link, custom_headers:custom_headers)
213
+ end
214
+ page
215
+ end
216
+ end
217
+
218
+ end
219
+ end
@@ -0,0 +1,109 @@
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 Reports
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the Reports 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
+ # Checks if the user is enabled for Dev Ops access.
26
+ #
27
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
28
+ # will be added to the HTTP request.
29
+ #
30
+ # @return [Result] operation results.
31
+ #
32
+ def get_dev_ops(custom_headers:nil)
33
+ response = get_dev_ops_async(custom_headers:custom_headers).value!
34
+ response.body unless response.nil?
35
+ end
36
+
37
+ #
38
+ # Checks if the user is enabled for Dev Ops access.
39
+ #
40
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
41
+ # will be added to the HTTP request.
42
+ #
43
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
44
+ #
45
+ def get_dev_ops_with_http_info(custom_headers:nil)
46
+ get_dev_ops_async(custom_headers:custom_headers).value!
47
+ end
48
+
49
+ #
50
+ # Checks if the user is enabled for Dev Ops access.
51
+ #
52
+ # @param [Hash{String => String}] A hash of custom headers that will be added
53
+ # to the HTTP request.
54
+ #
55
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
56
+ #
57
+ def get_dev_ops_async(custom_headers:nil)
58
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
59
+
60
+
61
+ request_headers = {}
62
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
63
+
64
+ # Set Headers
65
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
66
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
67
+ path_template = 'providers/Microsoft.ADHybridHealthService/reports/DevOps/IsDevOps'
68
+
69
+ request_url = @base_url || @client.base_url
70
+
71
+ options = {
72
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
73
+ query_params: {'api-version' => @client.api_version},
74
+ headers: request_headers.merge(custom_headers || {}),
75
+ base_url: request_url
76
+ }
77
+ promise = @client.make_request_async(:get, path_template, options)
78
+
79
+ promise = promise.then do |result|
80
+ http_response = result.response
81
+ status_code = http_response.status
82
+ response_content = http_response.body
83
+ unless status_code == 200
84
+ error_model = JSON.load(response_content)
85
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
86
+ end
87
+
88
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
89
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
90
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
91
+ # Deserialize Response
92
+ if status_code == 200
93
+ begin
94
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
95
+ result_mapper = Azure::ADHybridHealthService::Mgmt::V2014_01_01::Models::Result.mapper()
96
+ result.body = @client.deserialize(result_mapper, parsed_response)
97
+ rescue Exception => e
98
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
99
+ end
100
+ end
101
+
102
+ result
103
+ end
104
+
105
+ promise.execute
106
+ end
107
+
108
+ end
109
+ end