azure_mgmt_databoxedge 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (143) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/2019-08-01/generated/azure_mgmt_databoxedge.rb +158 -0
  4. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/alerts.rb +328 -0
  5. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/bandwidth_schedules.rb +621 -0
  6. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/containers.rb +771 -0
  7. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/data_box_edge_management_client.rb +191 -0
  8. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/devices.rb +1811 -0
  9. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/jobs.rb +126 -0
  10. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/account_type.rb +16 -0
  11. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/address.rb +112 -0
  12. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/alert.rb +156 -0
  13. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/alert_error_details.rb +71 -0
  14. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/alert_list.rb +100 -0
  15. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/alert_severity.rb +17 -0
  16. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/armbase_model.rb +71 -0
  17. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/asymmetric_encrypted_secret.rb +70 -0
  18. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/authentication.rb +47 -0
  19. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/authentication_type.rb +16 -0
  20. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/azure_container_data_format.rb +17 -0
  21. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/azure_container_info.rb +72 -0
  22. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/bandwidth_schedule.rb +115 -0
  23. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/bandwidth_schedules_list.rb +100 -0
  24. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/client_access_right.rb +59 -0
  25. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/client_permission_type.rb +17 -0
  26. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/contact_details.rb +87 -0
  27. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/container.rb +113 -0
  28. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/container_list.rb +100 -0
  29. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/container_status.rb +19 -0
  30. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/data_box_edge_device.rb +300 -0
  31. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/data_box_edge_device_extended_info.rb +97 -0
  32. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/data_box_edge_device_list.rb +101 -0
  33. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/data_box_edge_device_patch.rb +55 -0
  34. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/data_box_edge_device_status.rb +21 -0
  35. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/data_policy.rb +16 -0
  36. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/day_of_week.rb +21 -0
  37. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/device_type.rb +15 -0
  38. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/download_phase.rb +18 -0
  39. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/encryption_algorithm.rb +17 -0
  40. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/file_event_trigger.rb +115 -0
  41. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/file_source_info.rb +46 -0
  42. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/install_reboot_behavior.rb +17 -0
  43. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/io_tdevice_info.rb +80 -0
  44. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/io_trole.rb +147 -0
  45. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/ipv4config.rb +71 -0
  46. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/ipv6config.rb +71 -0
  47. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/job.rb +242 -0
  48. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/job_error_details.rb +80 -0
  49. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/job_error_item.rb +79 -0
  50. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/job_status.rb +21 -0
  51. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/job_type.rb +20 -0
  52. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/metric_aggregation_type.rb +21 -0
  53. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/metric_category.rb +16 -0
  54. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/metric_dimension_v1.rb +68 -0
  55. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/metric_specification_v1.rb +187 -0
  56. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/metric_unit.rb +22 -0
  57. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/monitoring_status.rb +16 -0
  58. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/mount_point_map.rb +83 -0
  59. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/network_adapter.rb +229 -0
  60. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/network_adapter_dhcpstatus.rb +16 -0
  61. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/network_adapter_position.rb +60 -0
  62. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/network_adapter_rdmastatus.rb +16 -0
  63. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/network_adapter_status.rb +16 -0
  64. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/network_group.rb +17 -0
  65. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/network_settings.rb +83 -0
  66. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/node.rb +152 -0
  67. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/node_list.rb +56 -0
  68. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/node_status.rb +19 -0
  69. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/operation.rb +81 -0
  70. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/operation_display.rb +80 -0
  71. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/operations_list.rb +99 -0
  72. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/order.rb +177 -0
  73. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/order_list.rb +100 -0
  74. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/order_state.rb +28 -0
  75. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/order_status.rb +96 -0
  76. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/periodic_timer_event_trigger.rb +115 -0
  77. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/periodic_timer_source_info.rb +73 -0
  78. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/platform_type.rb +16 -0
  79. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/refresh_details.rb +87 -0
  80. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/resource_type_sku.rb +202 -0
  81. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/role.rb +71 -0
  82. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/role_list.rb +102 -0
  83. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/role_sink_info.rb +46 -0
  84. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/role_status.rb +16 -0
  85. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/role_types.rb +18 -0
  86. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/security_settings.rb +78 -0
  87. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/service_specification.rb +56 -0
  88. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/share.rb +208 -0
  89. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/share_access_protocol.rb +16 -0
  90. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/share_access_right.rb +59 -0
  91. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/share_access_type.rb +17 -0
  92. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/share_list.rb +100 -0
  93. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/share_status.rb +19 -0
  94. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/sku.rb +61 -0
  95. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/sku_cost.rb +71 -0
  96. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/sku_information_list.rb +68 -0
  97. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/sku_location_info.rb +87 -0
  98. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/sku_name.rb +23 -0
  99. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/sku_restriction.rb +94 -0
  100. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/sku_restriction_info.rb +75 -0
  101. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/sku_restriction_reason_code.rb +16 -0
  102. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/sku_tier.rb +15 -0
  103. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/sslstatus.rb +16 -0
  104. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/storage_account.rb +134 -0
  105. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/storage_account_credential.rb +154 -0
  106. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/storage_account_credential_list.rb +100 -0
  107. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/storage_account_list.rb +101 -0
  108. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/storage_account_status.rb +19 -0
  109. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/symmetric_key.rb +48 -0
  110. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/time_grain.rb +22 -0
  111. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/tracking_info.rb +79 -0
  112. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/trigger.rb +71 -0
  113. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/trigger_list.rb +102 -0
  114. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/update_download_progress.rb +108 -0
  115. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/update_install_progress.rb +71 -0
  116. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/update_operation.rb +18 -0
  117. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/update_operation_stage.rb +31 -0
  118. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/update_summary.rb +281 -0
  119. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/upload_certificate_request.rb +58 -0
  120. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/upload_certificate_response.rb +132 -0
  121. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/user.rb +108 -0
  122. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/user_access_right.rb +59 -0
  123. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/user_list.rb +100 -0
  124. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/user_type.rb +17 -0
  125. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/module_definition.rb +9 -0
  126. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/nodes.rb +119 -0
  127. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/operations.rb +218 -0
  128. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/operations_status.rb +126 -0
  129. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/orders.rb +594 -0
  130. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/roles.rb +610 -0
  131. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/shares.rb +737 -0
  132. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/skus.rb +117 -0
  133. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/storage_account_credentials.rb +623 -0
  134. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/storage_accounts.rb +615 -0
  135. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/triggers.rb +618 -0
  136. data/lib/2019-08-01/generated/azure_mgmt_databoxedge/users.rb +622 -0
  137. data/lib/azure_mgmt_databoxedge.rb +6 -0
  138. data/lib/module_definition.rb +7 -0
  139. data/lib/profiles/latest/databoxedge_latest_profile_client.rb +40 -0
  140. data/lib/profiles/latest/databoxedge_module_definition.rb +8 -0
  141. data/lib/profiles/latest/modules/databoxedge_profile_module.rb +551 -0
  142. data/lib/version.rb +7 -0
  143. metadata +258 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 279cbf1ccecb1ffeeba437d6e2b443a0ab3b7956badd5430497eab4ee754660f
4
+ data.tar.gz: b11e434df24650a1c999c593a4271f9663b2bad2439db1084052c9456d53906f
5
+ SHA512:
6
+ metadata.gz: 680d228bd40b6bcacabe746b60df564599e57c8e323596fa26f8bf305ae7c690397812d89712ff25a4e71a280f7b9955ec79ba2a4ad740099fd25018978ed49b
7
+ data.tar.gz: 6a7654b6d224775e874b14d0e214dd01b3bbbfa4d5aa4771967edc0100099162b51efa9a4eea3e276997b93b79f5edf9b891dcdf9266f84b343954537a3b9dcf
@@ -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,158 @@
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 '2019-08-01/generated/azure_mgmt_databoxedge/module_definition'
20
+ require 'ms_rest_azure'
21
+
22
+ module Azure::DataBoxEdge::Mgmt::V2019_08_01
23
+ autoload :Operations, '2019-08-01/generated/azure_mgmt_databoxedge/operations.rb'
24
+ autoload :Devices, '2019-08-01/generated/azure_mgmt_databoxedge/devices.rb'
25
+ autoload :Alerts, '2019-08-01/generated/azure_mgmt_databoxedge/alerts.rb'
26
+ autoload :BandwidthSchedules, '2019-08-01/generated/azure_mgmt_databoxedge/bandwidth_schedules.rb'
27
+ autoload :Jobs, '2019-08-01/generated/azure_mgmt_databoxedge/jobs.rb'
28
+ autoload :Nodes, '2019-08-01/generated/azure_mgmt_databoxedge/nodes.rb'
29
+ autoload :OperationsStatus, '2019-08-01/generated/azure_mgmt_databoxedge/operations_status.rb'
30
+ autoload :Orders, '2019-08-01/generated/azure_mgmt_databoxedge/orders.rb'
31
+ autoload :Roles, '2019-08-01/generated/azure_mgmt_databoxedge/roles.rb'
32
+ autoload :Shares, '2019-08-01/generated/azure_mgmt_databoxedge/shares.rb'
33
+ autoload :StorageAccountCredentials, '2019-08-01/generated/azure_mgmt_databoxedge/storage_account_credentials.rb'
34
+ autoload :StorageAccounts, '2019-08-01/generated/azure_mgmt_databoxedge/storage_accounts.rb'
35
+ autoload :Containers, '2019-08-01/generated/azure_mgmt_databoxedge/containers.rb'
36
+ autoload :Triggers, '2019-08-01/generated/azure_mgmt_databoxedge/triggers.rb'
37
+ autoload :Users, '2019-08-01/generated/azure_mgmt_databoxedge/users.rb'
38
+ autoload :Skus, '2019-08-01/generated/azure_mgmt_databoxedge/skus.rb'
39
+ autoload :DataBoxEdgeManagementClient, '2019-08-01/generated/azure_mgmt_databoxedge/data_box_edge_management_client.rb'
40
+
41
+ module Models
42
+ autoload :NetworkAdapterPosition, '2019-08-01/generated/azure_mgmt_databoxedge/models/network_adapter_position.rb'
43
+ autoload :Address, '2019-08-01/generated/azure_mgmt_databoxedge/models/address.rb'
44
+ autoload :NetworkAdapter, '2019-08-01/generated/azure_mgmt_databoxedge/models/network_adapter.rb'
45
+ autoload :Ipv6Config, '2019-08-01/generated/azure_mgmt_databoxedge/models/ipv6config.rb'
46
+ autoload :AlertList, '2019-08-01/generated/azure_mgmt_databoxedge/models/alert_list.rb'
47
+ autoload :JobErrorItem, '2019-08-01/generated/azure_mgmt_databoxedge/models/job_error_item.rb'
48
+ autoload :AsymmetricEncryptedSecret, '2019-08-01/generated/azure_mgmt_databoxedge/models/asymmetric_encrypted_secret.rb'
49
+ autoload :JobErrorDetails, '2019-08-01/generated/azure_mgmt_databoxedge/models/job_error_details.rb'
50
+ autoload :Authentication, '2019-08-01/generated/azure_mgmt_databoxedge/models/authentication.rb'
51
+ autoload :UpdateDownloadProgress, '2019-08-01/generated/azure_mgmt_databoxedge/models/update_download_progress.rb'
52
+ autoload :UserList, '2019-08-01/generated/azure_mgmt_databoxedge/models/user_list.rb'
53
+ autoload :UpdateInstallProgress, '2019-08-01/generated/azure_mgmt_databoxedge/models/update_install_progress.rb'
54
+ autoload :ClientAccessRight, '2019-08-01/generated/azure_mgmt_databoxedge/models/client_access_right.rb'
55
+ autoload :Job, '2019-08-01/generated/azure_mgmt_databoxedge/models/job.rb'
56
+ autoload :MetricDimensionV1, '2019-08-01/generated/azure_mgmt_databoxedge/models/metric_dimension_v1.rb'
57
+ autoload :RefreshDetails, '2019-08-01/generated/azure_mgmt_databoxedge/models/refresh_details.rb'
58
+ autoload :MetricSpecificationV1, '2019-08-01/generated/azure_mgmt_databoxedge/models/metric_specification_v1.rb'
59
+ autoload :ContainerList, '2019-08-01/generated/azure_mgmt_databoxedge/models/container_list.rb'
60
+ autoload :AlertErrorDetails, '2019-08-01/generated/azure_mgmt_databoxedge/models/alert_error_details.rb'
61
+ autoload :UploadCertificateRequest, '2019-08-01/generated/azure_mgmt_databoxedge/models/upload_certificate_request.rb'
62
+ autoload :SkuInformationList, '2019-08-01/generated/azure_mgmt_databoxedge/models/sku_information_list.rb'
63
+ autoload :DataBoxEdgeDeviceList, '2019-08-01/generated/azure_mgmt_databoxedge/models/data_box_edge_device_list.rb'
64
+ autoload :ShareList, '2019-08-01/generated/azure_mgmt_databoxedge/models/share_list.rb'
65
+ autoload :FileSourceInfo, '2019-08-01/generated/azure_mgmt_databoxedge/models/file_source_info.rb'
66
+ autoload :ShareAccessRight, '2019-08-01/generated/azure_mgmt_databoxedge/models/share_access_right.rb'
67
+ autoload :StorageAccountList, '2019-08-01/generated/azure_mgmt_databoxedge/models/storage_account_list.rb'
68
+ autoload :NodeList, '2019-08-01/generated/azure_mgmt_databoxedge/models/node_list.rb'
69
+ autoload :MountPointMap, '2019-08-01/generated/azure_mgmt_databoxedge/models/mount_point_map.rb'
70
+ autoload :OperationDisplay, '2019-08-01/generated/azure_mgmt_databoxedge/models/operation_display.rb'
71
+ autoload :Ipv4Config, '2019-08-01/generated/azure_mgmt_databoxedge/models/ipv4config.rb'
72
+ autoload :ServiceSpecification, '2019-08-01/generated/azure_mgmt_databoxedge/models/service_specification.rb'
73
+ autoload :SymmetricKey, '2019-08-01/generated/azure_mgmt_databoxedge/models/symmetric_key.rb'
74
+ autoload :Operation, '2019-08-01/generated/azure_mgmt_databoxedge/models/operation.rb'
75
+ autoload :BandwidthSchedulesList, '2019-08-01/generated/azure_mgmt_databoxedge/models/bandwidth_schedules_list.rb'
76
+ autoload :OperationsList, '2019-08-01/generated/azure_mgmt_databoxedge/models/operations_list.rb'
77
+ autoload :ContactDetails, '2019-08-01/generated/azure_mgmt_databoxedge/models/contact_details.rb'
78
+ autoload :OrderStatus, '2019-08-01/generated/azure_mgmt_databoxedge/models/order_status.rb'
79
+ autoload :Sku, '2019-08-01/generated/azure_mgmt_databoxedge/models/sku.rb'
80
+ autoload :TrackingInfo, '2019-08-01/generated/azure_mgmt_databoxedge/models/tracking_info.rb'
81
+ autoload :DataBoxEdgeDevicePatch, '2019-08-01/generated/azure_mgmt_databoxedge/models/data_box_edge_device_patch.rb'
82
+ autoload :UserAccessRight, '2019-08-01/generated/azure_mgmt_databoxedge/models/user_access_right.rb'
83
+ autoload :IoTDeviceInfo, '2019-08-01/generated/azure_mgmt_databoxedge/models/io_tdevice_info.rb'
84
+ autoload :OrderList, '2019-08-01/generated/azure_mgmt_databoxedge/models/order_list.rb'
85
+ autoload :ARMBaseModel, '2019-08-01/generated/azure_mgmt_databoxedge/models/armbase_model.rb'
86
+ autoload :PeriodicTimerSourceInfo, '2019-08-01/generated/azure_mgmt_databoxedge/models/periodic_timer_source_info.rb'
87
+ autoload :RoleList, '2019-08-01/generated/azure_mgmt_databoxedge/models/role_list.rb'
88
+ autoload :TriggerList, '2019-08-01/generated/azure_mgmt_databoxedge/models/trigger_list.rb'
89
+ autoload :SkuLocationInfo, '2019-08-01/generated/azure_mgmt_databoxedge/models/sku_location_info.rb'
90
+ autoload :StorageAccountCredentialList, '2019-08-01/generated/azure_mgmt_databoxedge/models/storage_account_credential_list.rb'
91
+ autoload :SkuCost, '2019-08-01/generated/azure_mgmt_databoxedge/models/sku_cost.rb'
92
+ autoload :UploadCertificateResponse, '2019-08-01/generated/azure_mgmt_databoxedge/models/upload_certificate_response.rb'
93
+ autoload :SkuRestrictionInfo, '2019-08-01/generated/azure_mgmt_databoxedge/models/sku_restriction_info.rb'
94
+ autoload :AzureContainerInfo, '2019-08-01/generated/azure_mgmt_databoxedge/models/azure_container_info.rb'
95
+ autoload :SkuRestriction, '2019-08-01/generated/azure_mgmt_databoxedge/models/sku_restriction.rb'
96
+ autoload :RoleSinkInfo, '2019-08-01/generated/azure_mgmt_databoxedge/models/role_sink_info.rb'
97
+ autoload :ResourceTypeSku, '2019-08-01/generated/azure_mgmt_databoxedge/models/resource_type_sku.rb'
98
+ autoload :Alert, '2019-08-01/generated/azure_mgmt_databoxedge/models/alert.rb'
99
+ autoload :BandwidthSchedule, '2019-08-01/generated/azure_mgmt_databoxedge/models/bandwidth_schedule.rb'
100
+ autoload :Container, '2019-08-01/generated/azure_mgmt_databoxedge/models/container.rb'
101
+ autoload :DataBoxEdgeDevice, '2019-08-01/generated/azure_mgmt_databoxedge/models/data_box_edge_device.rb'
102
+ autoload :DataBoxEdgeDeviceExtendedInfo, '2019-08-01/generated/azure_mgmt_databoxedge/models/data_box_edge_device_extended_info.rb'
103
+ autoload :FileEventTrigger, '2019-08-01/generated/azure_mgmt_databoxedge/models/file_event_trigger.rb'
104
+ autoload :NetworkSettings, '2019-08-01/generated/azure_mgmt_databoxedge/models/network_settings.rb'
105
+ autoload :Node, '2019-08-01/generated/azure_mgmt_databoxedge/models/node.rb'
106
+ autoload :Order, '2019-08-01/generated/azure_mgmt_databoxedge/models/order.rb'
107
+ autoload :PeriodicTimerEventTrigger, '2019-08-01/generated/azure_mgmt_databoxedge/models/periodic_timer_event_trigger.rb'
108
+ autoload :Role, '2019-08-01/generated/azure_mgmt_databoxedge/models/role.rb'
109
+ autoload :IoTRole, '2019-08-01/generated/azure_mgmt_databoxedge/models/io_trole.rb'
110
+ autoload :SecuritySettings, '2019-08-01/generated/azure_mgmt_databoxedge/models/security_settings.rb'
111
+ autoload :Share, '2019-08-01/generated/azure_mgmt_databoxedge/models/share.rb'
112
+ autoload :StorageAccount, '2019-08-01/generated/azure_mgmt_databoxedge/models/storage_account.rb'
113
+ autoload :StorageAccountCredential, '2019-08-01/generated/azure_mgmt_databoxedge/models/storage_account_credential.rb'
114
+ autoload :Trigger, '2019-08-01/generated/azure_mgmt_databoxedge/models/trigger.rb'
115
+ autoload :UpdateSummary, '2019-08-01/generated/azure_mgmt_databoxedge/models/update_summary.rb'
116
+ autoload :User, '2019-08-01/generated/azure_mgmt_databoxedge/models/user.rb'
117
+ autoload :AlertSeverity, '2019-08-01/generated/azure_mgmt_databoxedge/models/alert_severity.rb'
118
+ autoload :EncryptionAlgorithm, '2019-08-01/generated/azure_mgmt_databoxedge/models/encryption_algorithm.rb'
119
+ autoload :AzureContainerDataFormat, '2019-08-01/generated/azure_mgmt_databoxedge/models/azure_container_data_format.rb'
120
+ autoload :DayOfWeek, '2019-08-01/generated/azure_mgmt_databoxedge/models/day_of_week.rb'
121
+ autoload :ClientPermissionType, '2019-08-01/generated/azure_mgmt_databoxedge/models/client_permission_type.rb'
122
+ autoload :ContainerStatus, '2019-08-01/generated/azure_mgmt_databoxedge/models/container_status.rb'
123
+ autoload :SkuName, '2019-08-01/generated/azure_mgmt_databoxedge/models/sku_name.rb'
124
+ autoload :SkuTier, '2019-08-01/generated/azure_mgmt_databoxedge/models/sku_tier.rb'
125
+ autoload :DataBoxEdgeDeviceStatus, '2019-08-01/generated/azure_mgmt_databoxedge/models/data_box_edge_device_status.rb'
126
+ autoload :DeviceType, '2019-08-01/generated/azure_mgmt_databoxedge/models/device_type.rb'
127
+ autoload :RoleTypes, '2019-08-01/generated/azure_mgmt_databoxedge/models/role_types.rb'
128
+ autoload :PlatformType, '2019-08-01/generated/azure_mgmt_databoxedge/models/platform_type.rb'
129
+ autoload :RoleStatus, '2019-08-01/generated/azure_mgmt_databoxedge/models/role_status.rb'
130
+ autoload :JobStatus, '2019-08-01/generated/azure_mgmt_databoxedge/models/job_status.rb'
131
+ autoload :JobType, '2019-08-01/generated/azure_mgmt_databoxedge/models/job_type.rb'
132
+ autoload :UpdateOperationStage, '2019-08-01/generated/azure_mgmt_databoxedge/models/update_operation_stage.rb'
133
+ autoload :DownloadPhase, '2019-08-01/generated/azure_mgmt_databoxedge/models/download_phase.rb'
134
+ autoload :MetricUnit, '2019-08-01/generated/azure_mgmt_databoxedge/models/metric_unit.rb'
135
+ autoload :MetricAggregationType, '2019-08-01/generated/azure_mgmt_databoxedge/models/metric_aggregation_type.rb'
136
+ autoload :MetricCategory, '2019-08-01/generated/azure_mgmt_databoxedge/models/metric_category.rb'
137
+ autoload :TimeGrain, '2019-08-01/generated/azure_mgmt_databoxedge/models/time_grain.rb'
138
+ autoload :NetworkGroup, '2019-08-01/generated/azure_mgmt_databoxedge/models/network_group.rb'
139
+ autoload :NetworkAdapterStatus, '2019-08-01/generated/azure_mgmt_databoxedge/models/network_adapter_status.rb'
140
+ autoload :NetworkAdapterRDMAStatus, '2019-08-01/generated/azure_mgmt_databoxedge/models/network_adapter_rdmastatus.rb'
141
+ autoload :NetworkAdapterDHCPStatus, '2019-08-01/generated/azure_mgmt_databoxedge/models/network_adapter_dhcpstatus.rb'
142
+ autoload :NodeStatus, '2019-08-01/generated/azure_mgmt_databoxedge/models/node_status.rb'
143
+ autoload :OrderState, '2019-08-01/generated/azure_mgmt_databoxedge/models/order_state.rb'
144
+ autoload :AuthenticationType, '2019-08-01/generated/azure_mgmt_databoxedge/models/authentication_type.rb'
145
+ autoload :SkuRestrictionReasonCode, '2019-08-01/generated/azure_mgmt_databoxedge/models/sku_restriction_reason_code.rb'
146
+ autoload :ShareStatus, '2019-08-01/generated/azure_mgmt_databoxedge/models/share_status.rb'
147
+ autoload :MonitoringStatus, '2019-08-01/generated/azure_mgmt_databoxedge/models/monitoring_status.rb'
148
+ autoload :ShareAccessProtocol, '2019-08-01/generated/azure_mgmt_databoxedge/models/share_access_protocol.rb'
149
+ autoload :ShareAccessType, '2019-08-01/generated/azure_mgmt_databoxedge/models/share_access_type.rb'
150
+ autoload :DataPolicy, '2019-08-01/generated/azure_mgmt_databoxedge/models/data_policy.rb'
151
+ autoload :StorageAccountStatus, '2019-08-01/generated/azure_mgmt_databoxedge/models/storage_account_status.rb'
152
+ autoload :SSLStatus, '2019-08-01/generated/azure_mgmt_databoxedge/models/sslstatus.rb'
153
+ autoload :AccountType, '2019-08-01/generated/azure_mgmt_databoxedge/models/account_type.rb'
154
+ autoload :InstallRebootBehavior, '2019-08-01/generated/azure_mgmt_databoxedge/models/install_reboot_behavior.rb'
155
+ autoload :UpdateOperation, '2019-08-01/generated/azure_mgmt_databoxedge/models/update_operation.rb'
156
+ autoload :UserType, '2019-08-01/generated/azure_mgmt_databoxedge/models/user_type.rb'
157
+ end
158
+ end
@@ -0,0 +1,328 @@
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::DataBoxEdge::Mgmt::V2019_08_01
7
+ #
8
+ # Alerts
9
+ #
10
+ class Alerts
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the Alerts class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [DataBoxEdgeManagementClient] reference to the DataBoxEdgeManagementClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Gets all the alerts for a Data Box Edge/Data Box Gateway device.
26
+ #
27
+ # @param device_name [String] The device name.
28
+ # @param resource_group_name [String] The resource group name.
29
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
30
+ # will be added to the HTTP request.
31
+ #
32
+ # @return [Array<Alert>] operation results.
33
+ #
34
+ def list_by_data_box_edge_device(device_name, resource_group_name, custom_headers:nil)
35
+ first_page = list_by_data_box_edge_device_as_lazy(device_name, resource_group_name, custom_headers:custom_headers)
36
+ first_page.get_all_items
37
+ end
38
+
39
+ #
40
+ # Gets all the alerts for a Data Box Edge/Data Box Gateway device.
41
+ #
42
+ # @param device_name [String] The device name.
43
+ # @param resource_group_name [String] The resource group name.
44
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
45
+ # will be added to the HTTP request.
46
+ #
47
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
48
+ #
49
+ def list_by_data_box_edge_device_with_http_info(device_name, resource_group_name, custom_headers:nil)
50
+ list_by_data_box_edge_device_async(device_name, resource_group_name, custom_headers:custom_headers).value!
51
+ end
52
+
53
+ #
54
+ # Gets all the alerts for a Data Box Edge/Data Box Gateway device.
55
+ #
56
+ # @param device_name [String] The device name.
57
+ # @param resource_group_name [String] The resource group name.
58
+ # @param [Hash{String => String}] A hash of custom headers that will be added
59
+ # to the HTTP request.
60
+ #
61
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
62
+ #
63
+ def list_by_data_box_edge_device_async(device_name, resource_group_name, custom_headers:nil)
64
+ fail ArgumentError, 'device_name is nil' if device_name.nil?
65
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
66
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
67
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
68
+
69
+
70
+ request_headers = {}
71
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
72
+
73
+ # Set Headers
74
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
75
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
76
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/alerts'
77
+
78
+ request_url = @base_url || @client.base_url
79
+
80
+ options = {
81
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
82
+ path_params: {'deviceName' => device_name,'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name},
83
+ query_params: {'api-version' => @client.api_version},
84
+ headers: request_headers.merge(custom_headers || {}),
85
+ base_url: request_url
86
+ }
87
+ promise = @client.make_request_async(:get, path_template, options)
88
+
89
+ promise = promise.then do |result|
90
+ http_response = result.response
91
+ status_code = http_response.status
92
+ response_content = http_response.body
93
+ unless status_code == 200
94
+ error_model = JSON.load(response_content)
95
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
96
+ end
97
+
98
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
99
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
100
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
101
+ # Deserialize Response
102
+ if status_code == 200
103
+ begin
104
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
105
+ result_mapper = Azure::DataBoxEdge::Mgmt::V2019_08_01::Models::AlertList.mapper()
106
+ result.body = @client.deserialize(result_mapper, parsed_response)
107
+ rescue Exception => e
108
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
109
+ end
110
+ end
111
+
112
+ result
113
+ end
114
+
115
+ promise.execute
116
+ end
117
+
118
+ #
119
+ # Gets an alert by name.
120
+ #
121
+ # @param device_name [String] The device name.
122
+ # @param name [String] The alert name.
123
+ # @param resource_group_name [String] The resource group name.
124
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
125
+ # will be added to the HTTP request.
126
+ #
127
+ # @return [Alert] operation results.
128
+ #
129
+ def get(device_name, name, resource_group_name, custom_headers:nil)
130
+ response = get_async(device_name, name, resource_group_name, custom_headers:custom_headers).value!
131
+ response.body unless response.nil?
132
+ end
133
+
134
+ #
135
+ # Gets an alert by name.
136
+ #
137
+ # @param device_name [String] The device name.
138
+ # @param name [String] The alert name.
139
+ # @param resource_group_name [String] The resource group name.
140
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
141
+ # will be added to the HTTP request.
142
+ #
143
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
144
+ #
145
+ def get_with_http_info(device_name, name, resource_group_name, custom_headers:nil)
146
+ get_async(device_name, name, resource_group_name, custom_headers:custom_headers).value!
147
+ end
148
+
149
+ #
150
+ # Gets an alert by name.
151
+ #
152
+ # @param device_name [String] The device name.
153
+ # @param name [String] The alert name.
154
+ # @param resource_group_name [String] The resource group name.
155
+ # @param [Hash{String => String}] A hash of custom headers that will be added
156
+ # to the HTTP request.
157
+ #
158
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
159
+ #
160
+ def get_async(device_name, name, resource_group_name, custom_headers:nil)
161
+ fail ArgumentError, 'device_name is nil' if device_name.nil?
162
+ fail ArgumentError, 'name is nil' if name.nil?
163
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
164
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
165
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
166
+
167
+
168
+ request_headers = {}
169
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
170
+
171
+ # Set Headers
172
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
173
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
174
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/alerts/{name}'
175
+
176
+ request_url = @base_url || @client.base_url
177
+
178
+ options = {
179
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
180
+ path_params: {'deviceName' => device_name,'name' => name,'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name},
181
+ query_params: {'api-version' => @client.api_version},
182
+ headers: request_headers.merge(custom_headers || {}),
183
+ base_url: request_url
184
+ }
185
+ promise = @client.make_request_async(:get, path_template, options)
186
+
187
+ promise = promise.then do |result|
188
+ http_response = result.response
189
+ status_code = http_response.status
190
+ response_content = http_response.body
191
+ unless status_code == 200
192
+ error_model = JSON.load(response_content)
193
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
194
+ end
195
+
196
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
197
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
198
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
199
+ # Deserialize Response
200
+ if status_code == 200
201
+ begin
202
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
203
+ result_mapper = Azure::DataBoxEdge::Mgmt::V2019_08_01::Models::Alert.mapper()
204
+ result.body = @client.deserialize(result_mapper, parsed_response)
205
+ rescue Exception => e
206
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
207
+ end
208
+ end
209
+
210
+ result
211
+ end
212
+
213
+ promise.execute
214
+ end
215
+
216
+ #
217
+ # Gets all the alerts for a Data Box Edge/Data Box Gateway device.
218
+ #
219
+ # @param next_page_link [String] The NextLink from the previous successful call
220
+ # to List operation.
221
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
222
+ # will be added to the HTTP request.
223
+ #
224
+ # @return [AlertList] operation results.
225
+ #
226
+ def list_by_data_box_edge_device_next(next_page_link, custom_headers:nil)
227
+ response = list_by_data_box_edge_device_next_async(next_page_link, custom_headers:custom_headers).value!
228
+ response.body unless response.nil?
229
+ end
230
+
231
+ #
232
+ # Gets all the alerts for a Data Box Edge/Data Box Gateway device.
233
+ #
234
+ # @param next_page_link [String] The NextLink from the previous successful call
235
+ # to List operation.
236
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
237
+ # will be added to the HTTP request.
238
+ #
239
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
240
+ #
241
+ def list_by_data_box_edge_device_next_with_http_info(next_page_link, custom_headers:nil)
242
+ list_by_data_box_edge_device_next_async(next_page_link, custom_headers:custom_headers).value!
243
+ end
244
+
245
+ #
246
+ # Gets all the alerts for a Data Box Edge/Data Box Gateway device.
247
+ #
248
+ # @param next_page_link [String] The NextLink from the previous successful call
249
+ # to List operation.
250
+ # @param [Hash{String => String}] A hash of custom headers that will be added
251
+ # to the HTTP request.
252
+ #
253
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
254
+ #
255
+ def list_by_data_box_edge_device_next_async(next_page_link, custom_headers:nil)
256
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
257
+
258
+
259
+ request_headers = {}
260
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
261
+
262
+ # Set Headers
263
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
264
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
265
+ path_template = '{nextLink}'
266
+
267
+ request_url = @base_url || @client.base_url
268
+
269
+ options = {
270
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
271
+ skip_encoding_path_params: {'nextLink' => next_page_link},
272
+ headers: request_headers.merge(custom_headers || {}),
273
+ base_url: request_url
274
+ }
275
+ promise = @client.make_request_async(:get, path_template, options)
276
+
277
+ promise = promise.then do |result|
278
+ http_response = result.response
279
+ status_code = http_response.status
280
+ response_content = http_response.body
281
+ unless status_code == 200
282
+ error_model = JSON.load(response_content)
283
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
284
+ end
285
+
286
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
287
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
288
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
289
+ # Deserialize Response
290
+ if status_code == 200
291
+ begin
292
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
293
+ result_mapper = Azure::DataBoxEdge::Mgmt::V2019_08_01::Models::AlertList.mapper()
294
+ result.body = @client.deserialize(result_mapper, parsed_response)
295
+ rescue Exception => e
296
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
297
+ end
298
+ end
299
+
300
+ result
301
+ end
302
+
303
+ promise.execute
304
+ end
305
+
306
+ #
307
+ # Gets all the alerts for a Data Box Edge/Data Box Gateway device.
308
+ #
309
+ # @param device_name [String] The device name.
310
+ # @param resource_group_name [String] The resource group name.
311
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
312
+ # will be added to the HTTP request.
313
+ #
314
+ # @return [AlertList] which provide lazy access to pages of the response.
315
+ #
316
+ def list_by_data_box_edge_device_as_lazy(device_name, resource_group_name, custom_headers:nil)
317
+ response = list_by_data_box_edge_device_async(device_name, resource_group_name, custom_headers:custom_headers).value!
318
+ unless response.nil?
319
+ page = response.body
320
+ page.next_method = Proc.new do |next_page_link|
321
+ list_by_data_box_edge_device_next_async(next_page_link, custom_headers:custom_headers)
322
+ end
323
+ page
324
+ end
325
+ end
326
+
327
+ end
328
+ end