azure_mgmt_edgegateway 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway.rb +137 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/alerts.rb +322 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/bandwidth_schedules.rb +611 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/data_box_edge_management_client.rb +175 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/devices.rb +1879 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/jobs.rb +121 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/account_type.rb +16 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/address.rb +112 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/alert.rb +156 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/alert_error_details.rb +71 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/alert_list.rb +100 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/alert_severity.rb +17 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/armbase_model.rb +71 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/asymmetric_encrypted_secret.rb +70 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/authentication.rb +47 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/authentication_type.rb +16 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/azure_container_data_format.rb +17 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/azure_container_info.rb +72 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/bandwidth_schedule.rb +115 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/bandwidth_schedules_list.rb +100 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/client_access_right.rb +59 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/client_permission_type.rb +17 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/contact_details.rb +87 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/data_box_edge_device.rb +287 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/data_box_edge_device_extended_info.rb +108 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/data_box_edge_device_list.rb +101 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/data_box_edge_device_patch.rb +55 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/data_box_edge_device_status.rb +20 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/data_policy.rb +16 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/day_of_week.rb +21 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/device_type.rb +15 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/download_phase.rb +18 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/encryption_algorithm.rb +17 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/file_event_trigger.rb +115 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/file_source_info.rb +46 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/install_reboot_behavior.rb +17 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/io_tdevice_info.rb +69 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/io_trole.rb +147 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/ipv4config.rb +71 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/ipv6config.rb +71 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/job.rb +242 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/job_error_details.rb +80 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/job_error_item.rb +79 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/job_status.rb +21 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/job_type.rb +19 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/metric_aggregation_type.rb +21 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/metric_category.rb +16 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/metric_dimension_v1.rb +68 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/metric_specification_v1.rb +187 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/metric_unit.rb +22 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/monitoring_status.rb +16 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/mount_point_map.rb +83 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/network_adapter.rb +229 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/network_adapter_dhcpstatus.rb +16 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/network_adapter_position.rb +60 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/network_adapter_rdmastatus.rb +16 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/network_adapter_status.rb +16 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/network_group.rb +17 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/network_settings.rb +83 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/operation.rb +81 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/operation_display.rb +80 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/operations_list.rb +99 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/order.rb +177 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/order_list.rb +100 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/order_state.rb +28 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/order_status.rb +74 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/periodic_timer_event_trigger.rb +115 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/periodic_timer_source_info.rb +71 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/platform_type.rb +16 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/refresh_details.rb +87 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/role.rb +71 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/role_list.rb +102 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/role_sink_info.rb +46 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/role_status.rb +16 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/role_types.rb +18 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/security_settings.rb +78 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/service_specification.rb +56 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/share.rb +208 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/share_access_protocol.rb +16 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/share_access_right.rb +59 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/share_access_type.rb +17 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/share_list.rb +100 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/share_status.rb +16 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/sku.rb +58 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/sku_name.rb +16 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/sku_tier.rb +15 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/sslstatus.rb +16 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/storage_account_credential.rb +143 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/storage_account_credential_list.rb +100 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/symmetric_key.rb +48 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/time_grain.rb +22 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/tracking_info.rb +79 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/trigger.rb +71 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/trigger_list.rb +102 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/update_download_progress.rb +108 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/update_install_progress.rb +71 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/update_operation.rb +18 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/update_operation_stage.rb +31 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/update_summary.rb +281 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/upload_certificate_request.rb +58 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/upload_certificate_response.rb +113 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/user.rb +96 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/user_access_right.rb +59 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/models/user_list.rb +100 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/module_definition.rb +9 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/operations.rb +214 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/operations_status.rb +121 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/orders.rb +584 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/roles.rb +600 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/shares.rb +725 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/storage_account_credentials.rb +606 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/triggers.rb +600 -0
- data/lib/2019-03-01/generated/azure_mgmt_edgegateway/users.rb +604 -0
- data/lib/azure_mgmt_edgegateway.rb +6 -0
- data/lib/module_definition.rb +8 -0
- data/lib/profiles/latest/edgegateway_latest_profile_client.rb +40 -0
- data/lib/profiles/latest/edgegateway_module_definition.rb +8 -0
- data/lib/profiles/latest/modules/edgegateway_profile_module.rb +475 -0
- data/lib/version.rb +7 -0
- metadata +238 -0
@@ -0,0 +1,121 @@
|
|
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
|
+
# Jobs
|
9
|
+
#
|
10
|
+
class Jobs
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the Jobs 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 the details of a specified job on a data box edge/gateway device.
|
26
|
+
#
|
27
|
+
# @param device_name [String] The device name.
|
28
|
+
# @param name [String] The job name.
|
29
|
+
# @param resource_group_name [String] The resource group name.
|
30
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
31
|
+
# will be added to the HTTP request.
|
32
|
+
#
|
33
|
+
# @return [Job] operation results.
|
34
|
+
#
|
35
|
+
def get(device_name, name, resource_group_name, custom_headers:nil)
|
36
|
+
response = get_async(device_name, name, resource_group_name, custom_headers:custom_headers).value!
|
37
|
+
response.body unless response.nil?
|
38
|
+
end
|
39
|
+
|
40
|
+
#
|
41
|
+
# Gets the details of a specified job on a data box edge/gateway device.
|
42
|
+
#
|
43
|
+
# @param device_name [String] The device name.
|
44
|
+
# @param name [String] The job name.
|
45
|
+
# @param resource_group_name [String] The resource group name.
|
46
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
47
|
+
# will be added to the HTTP request.
|
48
|
+
#
|
49
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
50
|
+
#
|
51
|
+
def get_with_http_info(device_name, name, resource_group_name, custom_headers:nil)
|
52
|
+
get_async(device_name, name, resource_group_name, custom_headers:custom_headers).value!
|
53
|
+
end
|
54
|
+
|
55
|
+
#
|
56
|
+
# Gets the details of a specified job on a data box edge/gateway device.
|
57
|
+
#
|
58
|
+
# @param device_name [String] The device name.
|
59
|
+
# @param name [String] The job name.
|
60
|
+
# @param resource_group_name [String] The resource group name.
|
61
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
62
|
+
# to the HTTP request.
|
63
|
+
#
|
64
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
65
|
+
#
|
66
|
+
def get_async(device_name, name, resource_group_name, custom_headers:nil)
|
67
|
+
fail ArgumentError, 'device_name is nil' if device_name.nil?
|
68
|
+
fail ArgumentError, 'name is nil' if name.nil?
|
69
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
70
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
71
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
72
|
+
|
73
|
+
|
74
|
+
request_headers = {}
|
75
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
76
|
+
|
77
|
+
# Set Headers
|
78
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
79
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
80
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/jobs/{name}'
|
81
|
+
|
82
|
+
request_url = @base_url || @client.base_url
|
83
|
+
|
84
|
+
options = {
|
85
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
86
|
+
path_params: {'deviceName' => device_name,'name' => name,'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name},
|
87
|
+
query_params: {'api-version' => @client.api_version},
|
88
|
+
headers: request_headers.merge(custom_headers || {}),
|
89
|
+
base_url: request_url
|
90
|
+
}
|
91
|
+
promise = @client.make_request_async(:get, path_template, options)
|
92
|
+
|
93
|
+
promise = promise.then do |result|
|
94
|
+
http_response = result.response
|
95
|
+
status_code = http_response.status
|
96
|
+
response_content = http_response.body
|
97
|
+
unless status_code == 200
|
98
|
+
error_model = JSON.load(response_content)
|
99
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
100
|
+
end
|
101
|
+
|
102
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
103
|
+
# Deserialize Response
|
104
|
+
if status_code == 200
|
105
|
+
begin
|
106
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
107
|
+
result_mapper = Azure::EdgeGateway::Mgmt::V2019_03_01::Models::Job.mapper()
|
108
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
109
|
+
rescue Exception => e
|
110
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
111
|
+
end
|
112
|
+
end
|
113
|
+
|
114
|
+
result
|
115
|
+
end
|
116
|
+
|
117
|
+
promise.execute
|
118
|
+
end
|
119
|
+
|
120
|
+
end
|
121
|
+
end
|
@@ -0,0 +1,16 @@
|
|
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
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for AccountType
|
10
|
+
#
|
11
|
+
module AccountType
|
12
|
+
GeneralPurposeStorage = "GeneralPurposeStorage"
|
13
|
+
BlobStorage = "BlobStorage"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,112 @@
|
|
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
|
+
module Models
|
8
|
+
#
|
9
|
+
# The shipping address of the customer.
|
10
|
+
#
|
11
|
+
class Address
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The address line1.
|
16
|
+
attr_accessor :address_line1
|
17
|
+
|
18
|
+
# @return [String] The address line2.
|
19
|
+
attr_accessor :address_line2
|
20
|
+
|
21
|
+
# @return [String] The address line3.
|
22
|
+
attr_accessor :address_line3
|
23
|
+
|
24
|
+
# @return [String] The postal code.
|
25
|
+
attr_accessor :postal_code
|
26
|
+
|
27
|
+
# @return [String] The city name.
|
28
|
+
attr_accessor :city
|
29
|
+
|
30
|
+
# @return [String] The state name.
|
31
|
+
attr_accessor :state
|
32
|
+
|
33
|
+
# @return [String] The country name.
|
34
|
+
attr_accessor :country
|
35
|
+
|
36
|
+
|
37
|
+
#
|
38
|
+
# Mapper for Address class as Ruby Hash.
|
39
|
+
# This will be used for serialization/deserialization.
|
40
|
+
#
|
41
|
+
def self.mapper()
|
42
|
+
{
|
43
|
+
client_side_validation: true,
|
44
|
+
required: false,
|
45
|
+
serialized_name: 'Address',
|
46
|
+
type: {
|
47
|
+
name: 'Composite',
|
48
|
+
class_name: 'Address',
|
49
|
+
model_properties: {
|
50
|
+
address_line1: {
|
51
|
+
client_side_validation: true,
|
52
|
+
required: true,
|
53
|
+
serialized_name: 'addressLine1',
|
54
|
+
type: {
|
55
|
+
name: 'String'
|
56
|
+
}
|
57
|
+
},
|
58
|
+
address_line2: {
|
59
|
+
client_side_validation: true,
|
60
|
+
required: false,
|
61
|
+
serialized_name: 'addressLine2',
|
62
|
+
type: {
|
63
|
+
name: 'String'
|
64
|
+
}
|
65
|
+
},
|
66
|
+
address_line3: {
|
67
|
+
client_side_validation: true,
|
68
|
+
required: false,
|
69
|
+
serialized_name: 'addressLine3',
|
70
|
+
type: {
|
71
|
+
name: 'String'
|
72
|
+
}
|
73
|
+
},
|
74
|
+
postal_code: {
|
75
|
+
client_side_validation: true,
|
76
|
+
required: true,
|
77
|
+
serialized_name: 'postalCode',
|
78
|
+
type: {
|
79
|
+
name: 'String'
|
80
|
+
}
|
81
|
+
},
|
82
|
+
city: {
|
83
|
+
client_side_validation: true,
|
84
|
+
required: true,
|
85
|
+
serialized_name: 'city',
|
86
|
+
type: {
|
87
|
+
name: 'String'
|
88
|
+
}
|
89
|
+
},
|
90
|
+
state: {
|
91
|
+
client_side_validation: true,
|
92
|
+
required: true,
|
93
|
+
serialized_name: 'state',
|
94
|
+
type: {
|
95
|
+
name: 'String'
|
96
|
+
}
|
97
|
+
},
|
98
|
+
country: {
|
99
|
+
client_side_validation: true,
|
100
|
+
required: true,
|
101
|
+
serialized_name: 'country',
|
102
|
+
type: {
|
103
|
+
name: 'String'
|
104
|
+
}
|
105
|
+
}
|
106
|
+
}
|
107
|
+
}
|
108
|
+
}
|
109
|
+
end
|
110
|
+
end
|
111
|
+
end
|
112
|
+
end
|
@@ -0,0 +1,156 @@
|
|
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
|
+
module Models
|
8
|
+
#
|
9
|
+
# Alert on the data box edge/gateway device.
|
10
|
+
#
|
11
|
+
class Alert < ARMBaseModel
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Alert title.
|
16
|
+
attr_accessor :title
|
17
|
+
|
18
|
+
# @return [String] Alert type.
|
19
|
+
attr_accessor :alert_type
|
20
|
+
|
21
|
+
# @return [DateTime] UTC time when the alert appeared.
|
22
|
+
attr_accessor :appeared_at_date_time
|
23
|
+
|
24
|
+
# @return [String] Alert recommendation.
|
25
|
+
attr_accessor :recommendation
|
26
|
+
|
27
|
+
# @return [AlertSeverity] Severity of the alert. Possible values include:
|
28
|
+
# 'Informational', 'Warning', 'Critical'
|
29
|
+
attr_accessor :severity
|
30
|
+
|
31
|
+
# @return [AlertErrorDetails] Error details of the alert.
|
32
|
+
attr_accessor :error_details
|
33
|
+
|
34
|
+
# @return [Hash{String => String}] Alert details.
|
35
|
+
attr_accessor :detailed_information
|
36
|
+
|
37
|
+
|
38
|
+
#
|
39
|
+
# Mapper for Alert class as Ruby Hash.
|
40
|
+
# This will be used for serialization/deserialization.
|
41
|
+
#
|
42
|
+
def self.mapper()
|
43
|
+
{
|
44
|
+
client_side_validation: true,
|
45
|
+
required: false,
|
46
|
+
serialized_name: 'Alert',
|
47
|
+
type: {
|
48
|
+
name: 'Composite',
|
49
|
+
class_name: 'Alert',
|
50
|
+
model_properties: {
|
51
|
+
id: {
|
52
|
+
client_side_validation: true,
|
53
|
+
required: false,
|
54
|
+
read_only: true,
|
55
|
+
serialized_name: 'id',
|
56
|
+
type: {
|
57
|
+
name: 'String'
|
58
|
+
}
|
59
|
+
},
|
60
|
+
name: {
|
61
|
+
client_side_validation: true,
|
62
|
+
required: false,
|
63
|
+
read_only: true,
|
64
|
+
serialized_name: 'name',
|
65
|
+
type: {
|
66
|
+
name: 'String'
|
67
|
+
}
|
68
|
+
},
|
69
|
+
type: {
|
70
|
+
client_side_validation: true,
|
71
|
+
required: false,
|
72
|
+
read_only: true,
|
73
|
+
serialized_name: 'type',
|
74
|
+
type: {
|
75
|
+
name: 'String'
|
76
|
+
}
|
77
|
+
},
|
78
|
+
title: {
|
79
|
+
client_side_validation: true,
|
80
|
+
required: false,
|
81
|
+
read_only: true,
|
82
|
+
serialized_name: 'properties.title',
|
83
|
+
type: {
|
84
|
+
name: 'String'
|
85
|
+
}
|
86
|
+
},
|
87
|
+
alert_type: {
|
88
|
+
client_side_validation: true,
|
89
|
+
required: false,
|
90
|
+
read_only: true,
|
91
|
+
serialized_name: 'properties.alertType',
|
92
|
+
type: {
|
93
|
+
name: 'String'
|
94
|
+
}
|
95
|
+
},
|
96
|
+
appeared_at_date_time: {
|
97
|
+
client_side_validation: true,
|
98
|
+
required: false,
|
99
|
+
read_only: true,
|
100
|
+
serialized_name: 'properties.appearedAtDateTime',
|
101
|
+
type: {
|
102
|
+
name: 'DateTime'
|
103
|
+
}
|
104
|
+
},
|
105
|
+
recommendation: {
|
106
|
+
client_side_validation: true,
|
107
|
+
required: false,
|
108
|
+
read_only: true,
|
109
|
+
serialized_name: 'properties.recommendation',
|
110
|
+
type: {
|
111
|
+
name: 'String'
|
112
|
+
}
|
113
|
+
},
|
114
|
+
severity: {
|
115
|
+
client_side_validation: true,
|
116
|
+
required: false,
|
117
|
+
read_only: true,
|
118
|
+
serialized_name: 'properties.severity',
|
119
|
+
type: {
|
120
|
+
name: 'String'
|
121
|
+
}
|
122
|
+
},
|
123
|
+
error_details: {
|
124
|
+
client_side_validation: true,
|
125
|
+
required: false,
|
126
|
+
read_only: true,
|
127
|
+
serialized_name: 'properties.errorDetails',
|
128
|
+
type: {
|
129
|
+
name: 'Composite',
|
130
|
+
class_name: 'AlertErrorDetails'
|
131
|
+
}
|
132
|
+
},
|
133
|
+
detailed_information: {
|
134
|
+
client_side_validation: true,
|
135
|
+
required: false,
|
136
|
+
read_only: true,
|
137
|
+
serialized_name: 'properties.detailedInformation',
|
138
|
+
type: {
|
139
|
+
name: 'Dictionary',
|
140
|
+
value: {
|
141
|
+
client_side_validation: true,
|
142
|
+
required: false,
|
143
|
+
serialized_name: 'StringElementType',
|
144
|
+
type: {
|
145
|
+
name: 'String'
|
146
|
+
}
|
147
|
+
}
|
148
|
+
}
|
149
|
+
}
|
150
|
+
}
|
151
|
+
}
|
152
|
+
}
|
153
|
+
end
|
154
|
+
end
|
155
|
+
end
|
156
|
+
end
|
@@ -0,0 +1,71 @@
|
|
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
|
+
module Models
|
8
|
+
#
|
9
|
+
# Error details for the alert.
|
10
|
+
#
|
11
|
+
class AlertErrorDetails
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Error code.
|
16
|
+
attr_accessor :error_code
|
17
|
+
|
18
|
+
# @return [String] Error Message.
|
19
|
+
attr_accessor :error_message
|
20
|
+
|
21
|
+
# @return [Integer] Number of occurrences.
|
22
|
+
attr_accessor :occurrences
|
23
|
+
|
24
|
+
|
25
|
+
#
|
26
|
+
# Mapper for AlertErrorDetails 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: 'AlertErrorDetails',
|
34
|
+
type: {
|
35
|
+
name: 'Composite',
|
36
|
+
class_name: 'AlertErrorDetails',
|
37
|
+
model_properties: {
|
38
|
+
error_code: {
|
39
|
+
client_side_validation: true,
|
40
|
+
required: false,
|
41
|
+
read_only: true,
|
42
|
+
serialized_name: 'errorCode',
|
43
|
+
type: {
|
44
|
+
name: 'String'
|
45
|
+
}
|
46
|
+
},
|
47
|
+
error_message: {
|
48
|
+
client_side_validation: true,
|
49
|
+
required: false,
|
50
|
+
read_only: true,
|
51
|
+
serialized_name: 'errorMessage',
|
52
|
+
type: {
|
53
|
+
name: 'String'
|
54
|
+
}
|
55
|
+
},
|
56
|
+
occurrences: {
|
57
|
+
client_side_validation: true,
|
58
|
+
required: false,
|
59
|
+
read_only: true,
|
60
|
+
serialized_name: 'occurrences',
|
61
|
+
type: {
|
62
|
+
name: 'Number'
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|