azure_mgmt_edgegateway 0.17.0

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