azure_mgmt_web 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.rspec +3 -0
- data/LICENSE.txt +21 -0
- data/Rakefile +5 -0
- data/azure_mgmt_web.gemspec +35 -0
- data/lib/azure_mgmt_web.rb +236 -0
- data/lib/azure_mgmt_web/certificates.rb +693 -0
- data/lib/azure_mgmt_web/classic_mobile_services.rb +208 -0
- data/lib/azure_mgmt_web/domains.rb +459 -0
- data/lib/azure_mgmt_web/global.rb +793 -0
- data/lib/azure_mgmt_web/global_domain_registration.rb +351 -0
- data/lib/azure_mgmt_web/global_resource_groups.rb +91 -0
- data/lib/azure_mgmt_web/hosting_environments.rb +2629 -0
- data/lib/azure_mgmt_web/managed_hosting_environments.rb +652 -0
- data/lib/azure_mgmt_web/models/access_control_entry_action.rb +16 -0
- data/lib/azure_mgmt_web/models/address.rb +101 -0
- data/lib/azure_mgmt_web/models/address_response.rb +105 -0
- data/lib/azure_mgmt_web/models/api_definition_info.rb +56 -0
- data/lib/azure_mgmt_web/models/application_logs_config.rb +97 -0
- data/lib/azure_mgmt_web/models/arm_plan.rb +92 -0
- data/lib/azure_mgmt_web/models/auto_heal_action_type.rb +17 -0
- data/lib/azure_mgmt_web/models/auto_heal_actions.rb +89 -0
- data/lib/azure_mgmt_web/models/auto_heal_custom_action.rb +66 -0
- data/lib/azure_mgmt_web/models/auto_heal_rules.rb +80 -0
- data/lib/azure_mgmt_web/models/auto_heal_triggers.rb +122 -0
- data/lib/azure_mgmt_web/models/azure_blob_storage_application_logs_config.rb +82 -0
- data/lib/azure_mgmt_web/models/azure_blob_storage_http_logs_config.rb +78 -0
- data/lib/azure_mgmt_web/models/azure_resource_type.rb +16 -0
- data/lib/azure_mgmt_web/models/azure_table_storage_application_logs_config.rb +70 -0
- data/lib/azure_mgmt_web/models/backup_item.rb +92 -0
- data/lib/azure_mgmt_web/models/backup_item_collection.rb +85 -0
- data/lib/azure_mgmt_web/models/backup_item_properties.rb +215 -0
- data/lib/azure_mgmt_web/models/backup_item_status.rb +24 -0
- data/lib/azure_mgmt_web/models/backup_request.rb +92 -0
- data/lib/azure_mgmt_web/models/backup_request_properties.rb +136 -0
- data/lib/azure_mgmt_web/models/backup_restore_operation_type.rb +17 -0
- data/lib/azure_mgmt_web/models/backup_schedule.rb +118 -0
- data/lib/azure_mgmt_web/models/built_in_authentication_provider.rb +19 -0
- data/lib/azure_mgmt_web/models/certificate.rb +92 -0
- data/lib/azure_mgmt_web/models/certificate_collection.rb +85 -0
- data/lib/azure_mgmt_web/models/certificate_properties.rb +194 -0
- data/lib/azure_mgmt_web/models/channels.rb +18 -0
- data/lib/azure_mgmt_web/models/classic_mobile_service.rb +92 -0
- data/lib/azure_mgmt_web/models/classic_mobile_service_collection.rb +85 -0
- data/lib/azure_mgmt_web/models/classic_mobile_service_properties.rb +56 -0
- data/lib/azure_mgmt_web/models/clone_ability_result.rb +17 -0
- data/lib/azure_mgmt_web/models/cloning_info.rb +152 -0
- data/lib/azure_mgmt_web/models/compute_mode_options.rb +16 -0
- data/lib/azure_mgmt_web/models/conn_string_info.rb +79 -0
- data/lib/azure_mgmt_web/models/conn_string_value_type_pair.rb +70 -0
- data/lib/azure_mgmt_web/models/connection_string_dictionary.rb +102 -0
- data/lib/azure_mgmt_web/models/contact.rb +136 -0
- data/lib/azure_mgmt_web/models/cors_settings.rb +59 -0
- data/lib/azure_mgmt_web/models/csm_move_resource_envelope.rb +66 -0
- data/lib/azure_mgmt_web/models/csm_publishing_profile_options.rb +59 -0
- data/lib/azure_mgmt_web/models/csm_site_recovery_entity.rb +80 -0
- data/lib/azure_mgmt_web/models/csm_slot_entity.rb +67 -0
- data/lib/azure_mgmt_web/models/csm_usage_quota.rb +102 -0
- data/lib/azure_mgmt_web/models/csm_usage_quota_collection.rb +85 -0
- data/lib/azure_mgmt_web/models/csr.rb +92 -0
- data/lib/azure_mgmt_web/models/csr_properties.rb +110 -0
- data/lib/azure_mgmt_web/models/custom_host_name_dns_record_type.rb +16 -0
- data/lib/azure_mgmt_web/models/database_backup_setting.rb +91 -0
- data/lib/azure_mgmt_web/models/database_server_type.rb +18 -0
- data/lib/azure_mgmt_web/models/deleted_site.rb +92 -0
- data/lib/azure_mgmt_web/models/deleted_site_collection.rb +85 -0
- data/lib/azure_mgmt_web/models/deleted_site_properties.rb +365 -0
- data/lib/azure_mgmt_web/models/deployment.rb +92 -0
- data/lib/azure_mgmt_web/models/deployment_collection.rb +85 -0
- data/lib/azure_mgmt_web/models/deployment_properties.rb +142 -0
- data/lib/azure_mgmt_web/models/domain.rb +92 -0
- data/lib/azure_mgmt_web/models/domain_availablility_check_result.rb +79 -0
- data/lib/azure_mgmt_web/models/domain_collection.rb +85 -0
- data/lib/azure_mgmt_web/models/domain_control_center_sso_request.rb +75 -0
- data/lib/azure_mgmt_web/models/domain_properties.rb +262 -0
- data/lib/azure_mgmt_web/models/domain_purchase_consent.rb +79 -0
- data/lib/azure_mgmt_web/models/domain_recommendation_search_parameters.rb +67 -0
- data/lib/azure_mgmt_web/models/domain_registration_input.rb +92 -0
- data/lib/azure_mgmt_web/models/domain_registration_input_properties.rb +271 -0
- data/lib/azure_mgmt_web/models/domain_status.rb +35 -0
- data/lib/azure_mgmt_web/models/domain_type.rb +16 -0
- data/lib/azure_mgmt_web/models/enabled_config.rb +56 -0
- data/lib/azure_mgmt_web/models/experiments.rb +77 -0
- data/lib/azure_mgmt_web/models/file_system_application_logs_config.rb +60 -0
- data/lib/azure_mgmt_web/models/file_system_http_logs_config.rb +82 -0
- data/lib/azure_mgmt_web/models/frequency_unit.rb +16 -0
- data/lib/azure_mgmt_web/models/geo_region.rb +92 -0
- data/lib/azure_mgmt_web/models/geo_region_collection.rb +85 -0
- data/lib/azure_mgmt_web/models/geo_region_properties.rb +74 -0
- data/lib/azure_mgmt_web/models/handler_mapping.rb +79 -0
- data/lib/azure_mgmt_web/models/host_name.rb +120 -0
- data/lib/azure_mgmt_web/models/host_name_binding.rb +92 -0
- data/lib/azure_mgmt_web/models/host_name_binding_collection.rb +85 -0
- data/lib/azure_mgmt_web/models/host_name_binding_properties.rb +124 -0
- data/lib/azure_mgmt_web/models/host_name_ssl_state.rb +98 -0
- data/lib/azure_mgmt_web/models/host_name_type.rb +16 -0
- data/lib/azure_mgmt_web/models/hosting_environment.rb +92 -0
- data/lib/azure_mgmt_web/models/hosting_environment_collection.rb +85 -0
- data/lib/azure_mgmt_web/models/hosting_environment_diagnostics.rb +65 -0
- data/lib/azure_mgmt_web/models/hosting_environment_profile.rb +78 -0
- data/lib/azure_mgmt_web/models/hosting_environment_properties.rb +452 -0
- data/lib/azure_mgmt_web/models/hosting_environment_status.rb +18 -0
- data/lib/azure_mgmt_web/models/http_logs_config.rb +80 -0
- data/lib/azure_mgmt_web/models/internal_load_balancing_mode.rb +17 -0
- data/lib/azure_mgmt_web/models/key_value_pair_string_string.rb +65 -0
- data/lib/azure_mgmt_web/models/localizable_string.rb +65 -0
- data/lib/azure_mgmt_web/models/log_level.rb +19 -0
- data/lib/azure_mgmt_web/models/managed_hosting_environment.rb +92 -0
- data/lib/azure_mgmt_web/models/managed_hosting_environment_collection.rb +85 -0
- data/lib/azure_mgmt_web/models/managed_hosting_environment_properties.rb +179 -0
- data/lib/azure_mgmt_web/models/managed_hosting_environment_status.rb +17 -0
- data/lib/azure_mgmt_web/models/managed_pipeline_mode.rb +16 -0
- data/lib/azure_mgmt_web/models/metric_availabilily.rb +66 -0
- data/lib/azure_mgmt_web/models/metric_definition.rb +92 -0
- data/lib/azure_mgmt_web/models/metric_definition_collection.rb +85 -0
- data/lib/azure_mgmt_web/models/metric_definition_properties.rb +113 -0
- data/lib/azure_mgmt_web/models/name_identifier.rb +56 -0
- data/lib/azure_mgmt_web/models/name_identifier_collection.rb +85 -0
- data/lib/azure_mgmt_web/models/name_value_pair.rb +65 -0
- data/lib/azure_mgmt_web/models/network_access_control_entry.rb +88 -0
- data/lib/azure_mgmt_web/models/network_features.rb +94 -0
- data/lib/azure_mgmt_web/models/network_features_properties.rb +102 -0
- data/lib/azure_mgmt_web/models/notification_level.rb +18 -0
- data/lib/azure_mgmt_web/models/premier_add_on_request.rb +107 -0
- data/lib/azure_mgmt_web/models/provisioning_state.rb +19 -0
- data/lib/azure_mgmt_web/models/ramp_up_rule.rb +147 -0
- data/lib/azure_mgmt_web/models/recommendation.rb +210 -0
- data/lib/azure_mgmt_web/models/recommendation_rule.rb +146 -0
- data/lib/azure_mgmt_web/models/relay_service_connection_entity.rb +92 -0
- data/lib/azure_mgmt_web/models/relay_service_connection_entity_properties.rb +111 -0
- data/lib/azure_mgmt_web/models/requests_based_trigger.rb +66 -0
- data/lib/azure_mgmt_web/models/resource_metric.rb +171 -0
- data/lib/azure_mgmt_web/models/resource_metric_collection.rb +85 -0
- data/lib/azure_mgmt_web/models/resource_metric_name.rb +65 -0
- data/lib/azure_mgmt_web/models/resource_metric_value.rb +106 -0
- data/lib/azure_mgmt_web/models/resource_name_availability.rb +78 -0
- data/lib/azure_mgmt_web/models/resource_name_availability_request.rb +74 -0
- data/lib/azure_mgmt_web/models/restore_request.rb +92 -0
- data/lib/azure_mgmt_web/models/restore_request_properties.rb +162 -0
- data/lib/azure_mgmt_web/models/restore_response.rb +92 -0
- data/lib/azure_mgmt_web/models/restore_response_properties.rb +57 -0
- data/lib/azure_mgmt_web/models/routing_rule.rb +58 -0
- data/lib/azure_mgmt_web/models/server_farm_collection.rb +85 -0
- data/lib/azure_mgmt_web/models/server_farm_with_rich_sku.rb +108 -0
- data/lib/azure_mgmt_web/models/server_farm_with_rich_sku_properties.rb +164 -0
- data/lib/azure_mgmt_web/models/site.rb +92 -0
- data/lib/azure_mgmt_web/models/site_auth_settings.rb +379 -0
- data/lib/azure_mgmt_web/models/site_availability_state.rb +17 -0
- data/lib/azure_mgmt_web/models/site_cloneability.rb +157 -0
- data/lib/azure_mgmt_web/models/site_cloneability_criterion.rb +65 -0
- data/lib/azure_mgmt_web/models/site_collection.rb +85 -0
- data/lib/azure_mgmt_web/models/site_config.rb +92 -0
- data/lib/azure_mgmt_web/models/site_config_properties.rb +554 -0
- data/lib/azure_mgmt_web/models/site_instance.rb +92 -0
- data/lib/azure_mgmt_web/models/site_instance_collection.rb +85 -0
- data/lib/azure_mgmt_web/models/site_instance_properties.rb +56 -0
- data/lib/azure_mgmt_web/models/site_limits.rb +77 -0
- data/lib/azure_mgmt_web/models/site_load_balancing.rb +19 -0
- data/lib/azure_mgmt_web/models/site_logs_config.rb +92 -0
- data/lib/azure_mgmt_web/models/site_logs_config_properties.rb +110 -0
- data/lib/azure_mgmt_web/models/site_properties.rb +354 -0
- data/lib/azure_mgmt_web/models/site_source_control.rb +92 -0
- data/lib/azure_mgmt_web/models/site_source_control_properties.rb +92 -0
- data/lib/azure_mgmt_web/models/sku_capacity.rb +89 -0
- data/lib/azure_mgmt_web/models/sku_description.rb +93 -0
- data/lib/azure_mgmt_web/models/sku_info.rb +87 -0
- data/lib/azure_mgmt_web/models/sku_info_collection.rb +85 -0
- data/lib/azure_mgmt_web/models/slot_config_names.rb +69 -0
- data/lib/azure_mgmt_web/models/slot_config_names_resource.rb +92 -0
- data/lib/azure_mgmt_web/models/slot_config_names_resource_properties.rb +66 -0
- data/lib/azure_mgmt_web/models/slot_difference.rb +93 -0
- data/lib/azure_mgmt_web/models/slot_difference_collection.rb +85 -0
- data/lib/azure_mgmt_web/models/slot_difference_properties.rb +113 -0
- data/lib/azure_mgmt_web/models/slow_requests_based_trigger.rb +75 -0
- data/lib/azure_mgmt_web/models/source_control.rb +92 -0
- data/lib/azure_mgmt_web/models/source_control_collection.rb +85 -0
- data/lib/azure_mgmt_web/models/source_control_properties.rb +94 -0
- data/lib/azure_mgmt_web/models/ssl_state.rb +17 -0
- data/lib/azure_mgmt_web/models/stamp_capacity.rb +155 -0
- data/lib/azure_mgmt_web/models/stamp_capacity_collection.rb +85 -0
- data/lib/azure_mgmt_web/models/status_codes_based_trigger.rb +96 -0
- data/lib/azure_mgmt_web/models/status_options.rb +16 -0
- data/lib/azure_mgmt_web/models/string_dictionary.rb +86 -0
- data/lib/azure_mgmt_web/models/tld_legal_agreement.rb +83 -0
- data/lib/azure_mgmt_web/models/tld_legal_agreement_collection.rb +85 -0
- data/lib/azure_mgmt_web/models/top_level_domain.rb +92 -0
- data/lib/azure_mgmt_web/models/top_level_domain_agreement_option.rb +57 -0
- data/lib/azure_mgmt_web/models/top_level_domain_collection.rb +85 -0
- data/lib/azure_mgmt_web/models/top_level_domain_properties.rb +66 -0
- data/lib/azure_mgmt_web/models/unauthenticated_client_action.rb +16 -0
- data/lib/azure_mgmt_web/models/usage.rb +92 -0
- data/lib/azure_mgmt_web/models/usage_collection.rb +85 -0
- data/lib/azure_mgmt_web/models/usage_properties.rb +136 -0
- data/lib/azure_mgmt_web/models/usage_state.rb +16 -0
- data/lib/azure_mgmt_web/models/user.rb +92 -0
- data/lib/azure_mgmt_web/models/user_properties.rb +74 -0
- data/lib/azure_mgmt_web/models/virtual_application.rb +103 -0
- data/lib/azure_mgmt_web/models/virtual_directory.rb +65 -0
- data/lib/azure_mgmt_web/models/virtual_ipmapping.rb +85 -0
- data/lib/azure_mgmt_web/models/virtual_network_profile.rb +83 -0
- data/lib/azure_mgmt_web/models/vnet_gateway.rb +93 -0
- data/lib/azure_mgmt_web/models/vnet_gateway_properties.rb +65 -0
- data/lib/azure_mgmt_web/models/vnet_info.rb +93 -0
- data/lib/azure_mgmt_web/models/vnet_info_properties.rb +106 -0
- data/lib/azure_mgmt_web/models/vnet_route.rb +92 -0
- data/lib/azure_mgmt_web/models/vnet_route_properties.rb +97 -0
- data/lib/azure_mgmt_web/models/worker_pool.rb +108 -0
- data/lib/azure_mgmt_web/models/worker_pool_collection.rb +85 -0
- data/lib/azure_mgmt_web/models/worker_pool_properties.rb +100 -0
- data/lib/azure_mgmt_web/models/worker_size_options.rb +18 -0
- data/lib/azure_mgmt_web/module_definition.rb +8 -0
- data/lib/azure_mgmt_web/provider.rb +346 -0
- data/lib/azure_mgmt_web/recommendations.rb +320 -0
- data/lib/azure_mgmt_web/server_farms.rb +1409 -0
- data/lib/azure_mgmt_web/sites.rb +11072 -0
- data/lib/azure_mgmt_web/top_level_domains.rb +226 -0
- data/lib/azure_mgmt_web/usage_operations.rb +88 -0
- data/lib/azure_mgmt_web/version.rb +8 -0
- data/lib/azure_mgmt_web/web_site_management_client.rb +118 -0
- metadata +346 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
|
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
|
+
# regenerated.
|
|
5
|
+
|
|
6
|
+
module Azure::ARM::Web
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# Defines values for AutoHealActionType
|
|
10
|
+
#
|
|
11
|
+
module AutoHealActionType
|
|
12
|
+
Recycle = "Recycle"
|
|
13
|
+
LogEvent = "LogEvent"
|
|
14
|
+
CustomAction = "CustomAction"
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
|
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
|
+
# regenerated.
|
|
5
|
+
|
|
6
|
+
module Azure::ARM::Web
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# AutoHealActions - Describes the actions which can be
|
|
10
|
+
# taken by the auto-heal module when a rule is triggered.
|
|
11
|
+
#
|
|
12
|
+
class AutoHealActions
|
|
13
|
+
|
|
14
|
+
include MsRestAzure
|
|
15
|
+
|
|
16
|
+
# @return [AutoHealActionType] ActionType - predefined action to be
|
|
17
|
+
# taken. Possible values include: 'Recycle', 'LogEvent', 'CustomAction'
|
|
18
|
+
attr_accessor :action_type
|
|
19
|
+
|
|
20
|
+
# @return [AutoHealCustomAction] CustomAction - custom action to be taken
|
|
21
|
+
attr_accessor :custom_action
|
|
22
|
+
|
|
23
|
+
# @return [String] MinProcessExecutionTime - minimum time the process
|
|
24
|
+
# must execute
|
|
25
|
+
# before taking the action
|
|
26
|
+
attr_accessor :min_process_execution_time
|
|
27
|
+
|
|
28
|
+
#
|
|
29
|
+
# Validate the object. Throws ValidationError if validation fails.
|
|
30
|
+
#
|
|
31
|
+
def validate
|
|
32
|
+
fail MsRest::ValidationError, 'property action_type is nil' if @action_type.nil?
|
|
33
|
+
@custom_action.validate unless @custom_action.nil?
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
#
|
|
37
|
+
# Serializes given Model object into Ruby Hash.
|
|
38
|
+
# @param object Model object to serialize.
|
|
39
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
|
40
|
+
#
|
|
41
|
+
def self.serialize_object(object)
|
|
42
|
+
object.validate
|
|
43
|
+
output_object = {}
|
|
44
|
+
|
|
45
|
+
serialized_property = object.action_type
|
|
46
|
+
output_object['actionType'] = serialized_property unless serialized_property.nil?
|
|
47
|
+
|
|
48
|
+
serialized_property = object.custom_action
|
|
49
|
+
unless serialized_property.nil?
|
|
50
|
+
serialized_property = AutoHealCustomAction.serialize_object(serialized_property)
|
|
51
|
+
end
|
|
52
|
+
output_object['customAction'] = serialized_property unless serialized_property.nil?
|
|
53
|
+
|
|
54
|
+
serialized_property = object.min_process_execution_time
|
|
55
|
+
output_object['minProcessExecutionTime'] = serialized_property unless serialized_property.nil?
|
|
56
|
+
|
|
57
|
+
output_object
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
#
|
|
61
|
+
# Deserializes given Ruby Hash into Model object.
|
|
62
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
|
63
|
+
# @return [AutoHealActions] Deserialized object.
|
|
64
|
+
#
|
|
65
|
+
def self.deserialize_object(object)
|
|
66
|
+
return if object.nil?
|
|
67
|
+
output_object = AutoHealActions.new
|
|
68
|
+
|
|
69
|
+
deserialized_property = object['actionType']
|
|
70
|
+
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
|
71
|
+
enum_is_valid = AutoHealActionType.constants.any? { |e| AutoHealActionType.const_get(e).to_s.downcase == deserialized_property.downcase }
|
|
72
|
+
warn 'Enum AutoHealActionType does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
|
|
73
|
+
end
|
|
74
|
+
output_object.action_type = deserialized_property
|
|
75
|
+
|
|
76
|
+
deserialized_property = object['customAction']
|
|
77
|
+
unless deserialized_property.nil?
|
|
78
|
+
deserialized_property = AutoHealCustomAction.deserialize_object(deserialized_property)
|
|
79
|
+
end
|
|
80
|
+
output_object.custom_action = deserialized_property
|
|
81
|
+
|
|
82
|
+
deserialized_property = object['minProcessExecutionTime']
|
|
83
|
+
output_object.min_process_execution_time = deserialized_property
|
|
84
|
+
|
|
85
|
+
output_object
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
end
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
|
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
|
+
# regenerated.
|
|
5
|
+
|
|
6
|
+
module Azure::ARM::Web
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# AutoHealCustomAction - Describes the custom action to be executed
|
|
10
|
+
# when an auto heal rule is triggered.
|
|
11
|
+
#
|
|
12
|
+
class AutoHealCustomAction
|
|
13
|
+
|
|
14
|
+
include MsRestAzure
|
|
15
|
+
|
|
16
|
+
# @return [String] Executable to be run
|
|
17
|
+
attr_accessor :exe
|
|
18
|
+
|
|
19
|
+
# @return [String] Parameters for the executable
|
|
20
|
+
attr_accessor :parameters
|
|
21
|
+
|
|
22
|
+
#
|
|
23
|
+
# Validate the object. Throws ValidationError if validation fails.
|
|
24
|
+
#
|
|
25
|
+
def validate
|
|
26
|
+
# Nothing to validate
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
#
|
|
30
|
+
# Serializes given Model object into Ruby Hash.
|
|
31
|
+
# @param object Model object to serialize.
|
|
32
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
|
33
|
+
#
|
|
34
|
+
def self.serialize_object(object)
|
|
35
|
+
object.validate
|
|
36
|
+
output_object = {}
|
|
37
|
+
|
|
38
|
+
serialized_property = object.exe
|
|
39
|
+
output_object['exe'] = serialized_property unless serialized_property.nil?
|
|
40
|
+
|
|
41
|
+
serialized_property = object.parameters
|
|
42
|
+
output_object['parameters'] = serialized_property unless serialized_property.nil?
|
|
43
|
+
|
|
44
|
+
output_object
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
#
|
|
48
|
+
# Deserializes given Ruby Hash into Model object.
|
|
49
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
|
50
|
+
# @return [AutoHealCustomAction] Deserialized object.
|
|
51
|
+
#
|
|
52
|
+
def self.deserialize_object(object)
|
|
53
|
+
return if object.nil?
|
|
54
|
+
output_object = AutoHealCustomAction.new
|
|
55
|
+
|
|
56
|
+
deserialized_property = object['exe']
|
|
57
|
+
output_object.exe = deserialized_property
|
|
58
|
+
|
|
59
|
+
deserialized_property = object['parameters']
|
|
60
|
+
output_object.parameters = deserialized_property
|
|
61
|
+
|
|
62
|
+
output_object
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
|
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
|
+
# regenerated.
|
|
5
|
+
|
|
6
|
+
module Azure::ARM::Web
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# AutoHealRules - describes the rules which can be defined for auto-heal
|
|
10
|
+
#
|
|
11
|
+
class AutoHealRules
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [AutoHealTriggers] Triggers - Conditions that describe when to
|
|
16
|
+
# execute the auto-heal actions
|
|
17
|
+
attr_accessor :triggers
|
|
18
|
+
|
|
19
|
+
# @return [AutoHealActions] Actions - Actions to be executed when a rule
|
|
20
|
+
# is triggered
|
|
21
|
+
attr_accessor :actions
|
|
22
|
+
|
|
23
|
+
#
|
|
24
|
+
# Validate the object. Throws ValidationError if validation fails.
|
|
25
|
+
#
|
|
26
|
+
def validate
|
|
27
|
+
@triggers.validate unless @triggers.nil?
|
|
28
|
+
@actions.validate unless @actions.nil?
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
#
|
|
32
|
+
# Serializes given Model object into Ruby Hash.
|
|
33
|
+
# @param object Model object to serialize.
|
|
34
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
|
35
|
+
#
|
|
36
|
+
def self.serialize_object(object)
|
|
37
|
+
object.validate
|
|
38
|
+
output_object = {}
|
|
39
|
+
|
|
40
|
+
serialized_property = object.triggers
|
|
41
|
+
unless serialized_property.nil?
|
|
42
|
+
serialized_property = AutoHealTriggers.serialize_object(serialized_property)
|
|
43
|
+
end
|
|
44
|
+
output_object['triggers'] = serialized_property unless serialized_property.nil?
|
|
45
|
+
|
|
46
|
+
serialized_property = object.actions
|
|
47
|
+
unless serialized_property.nil?
|
|
48
|
+
serialized_property = AutoHealActions.serialize_object(serialized_property)
|
|
49
|
+
end
|
|
50
|
+
output_object['actions'] = serialized_property unless serialized_property.nil?
|
|
51
|
+
|
|
52
|
+
output_object
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
#
|
|
56
|
+
# Deserializes given Ruby Hash into Model object.
|
|
57
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
|
58
|
+
# @return [AutoHealRules] Deserialized object.
|
|
59
|
+
#
|
|
60
|
+
def self.deserialize_object(object)
|
|
61
|
+
return if object.nil?
|
|
62
|
+
output_object = AutoHealRules.new
|
|
63
|
+
|
|
64
|
+
deserialized_property = object['triggers']
|
|
65
|
+
unless deserialized_property.nil?
|
|
66
|
+
deserialized_property = AutoHealTriggers.deserialize_object(deserialized_property)
|
|
67
|
+
end
|
|
68
|
+
output_object.triggers = deserialized_property
|
|
69
|
+
|
|
70
|
+
deserialized_property = object['actions']
|
|
71
|
+
unless deserialized_property.nil?
|
|
72
|
+
deserialized_property = AutoHealActions.deserialize_object(deserialized_property)
|
|
73
|
+
end
|
|
74
|
+
output_object.actions = deserialized_property
|
|
75
|
+
|
|
76
|
+
output_object
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
end
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
|
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
|
+
# regenerated.
|
|
5
|
+
|
|
6
|
+
module Azure::ARM::Web
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# AutoHealTriggers - describes the triggers for auto-heal.
|
|
10
|
+
#
|
|
11
|
+
class AutoHealTriggers
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [RequestsBasedTrigger] Requests - Defines a rule based on
|
|
16
|
+
# total requests
|
|
17
|
+
attr_accessor :requests
|
|
18
|
+
|
|
19
|
+
# @return [Integer] PrivateBytesInKB - Defines a rule based on private
|
|
20
|
+
# bytes
|
|
21
|
+
attr_accessor :private_bytes_in_kb
|
|
22
|
+
|
|
23
|
+
# @return [Array<StatusCodesBasedTrigger>] StatusCodes - Defines a rule
|
|
24
|
+
# based on status codes
|
|
25
|
+
attr_accessor :status_codes
|
|
26
|
+
|
|
27
|
+
# @return [SlowRequestsBasedTrigger] SlowRequests - Defines a rule based
|
|
28
|
+
# on request execution time
|
|
29
|
+
attr_accessor :slow_requests
|
|
30
|
+
|
|
31
|
+
#
|
|
32
|
+
# Validate the object. Throws ValidationError if validation fails.
|
|
33
|
+
#
|
|
34
|
+
def validate
|
|
35
|
+
@requests.validate unless @requests.nil?
|
|
36
|
+
@status_codes.each{ |e| e.validate if e.respond_to?(:validate) } unless @status_codes.nil?
|
|
37
|
+
@slow_requests.validate unless @slow_requests.nil?
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
#
|
|
41
|
+
# Serializes given Model object into Ruby Hash.
|
|
42
|
+
# @param object Model object to serialize.
|
|
43
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
|
44
|
+
#
|
|
45
|
+
def self.serialize_object(object)
|
|
46
|
+
object.validate
|
|
47
|
+
output_object = {}
|
|
48
|
+
|
|
49
|
+
serialized_property = object.requests
|
|
50
|
+
unless serialized_property.nil?
|
|
51
|
+
serialized_property = RequestsBasedTrigger.serialize_object(serialized_property)
|
|
52
|
+
end
|
|
53
|
+
output_object['requests'] = serialized_property unless serialized_property.nil?
|
|
54
|
+
|
|
55
|
+
serialized_property = object.private_bytes_in_kb
|
|
56
|
+
output_object['privateBytesInKB'] = serialized_property unless serialized_property.nil?
|
|
57
|
+
|
|
58
|
+
serialized_property = object.status_codes
|
|
59
|
+
unless serialized_property.nil?
|
|
60
|
+
serializedArray = []
|
|
61
|
+
serialized_property.each do |element|
|
|
62
|
+
unless element.nil?
|
|
63
|
+
element = StatusCodesBasedTrigger.serialize_object(element)
|
|
64
|
+
end
|
|
65
|
+
serializedArray.push(element)
|
|
66
|
+
end
|
|
67
|
+
serialized_property = serializedArray
|
|
68
|
+
end
|
|
69
|
+
output_object['statusCodes'] = serialized_property unless serialized_property.nil?
|
|
70
|
+
|
|
71
|
+
serialized_property = object.slow_requests
|
|
72
|
+
unless serialized_property.nil?
|
|
73
|
+
serialized_property = SlowRequestsBasedTrigger.serialize_object(serialized_property)
|
|
74
|
+
end
|
|
75
|
+
output_object['slowRequests'] = serialized_property unless serialized_property.nil?
|
|
76
|
+
|
|
77
|
+
output_object
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
#
|
|
81
|
+
# Deserializes given Ruby Hash into Model object.
|
|
82
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
|
83
|
+
# @return [AutoHealTriggers] Deserialized object.
|
|
84
|
+
#
|
|
85
|
+
def self.deserialize_object(object)
|
|
86
|
+
return if object.nil?
|
|
87
|
+
output_object = AutoHealTriggers.new
|
|
88
|
+
|
|
89
|
+
deserialized_property = object['requests']
|
|
90
|
+
unless deserialized_property.nil?
|
|
91
|
+
deserialized_property = RequestsBasedTrigger.deserialize_object(deserialized_property)
|
|
92
|
+
end
|
|
93
|
+
output_object.requests = deserialized_property
|
|
94
|
+
|
|
95
|
+
deserialized_property = object['privateBytesInKB']
|
|
96
|
+
deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
|
|
97
|
+
output_object.private_bytes_in_kb = deserialized_property
|
|
98
|
+
|
|
99
|
+
deserialized_property = object['statusCodes']
|
|
100
|
+
unless deserialized_property.nil?
|
|
101
|
+
deserialized_array = []
|
|
102
|
+
deserialized_property.each do |element1|
|
|
103
|
+
unless element1.nil?
|
|
104
|
+
element1 = StatusCodesBasedTrigger.deserialize_object(element1)
|
|
105
|
+
end
|
|
106
|
+
deserialized_array.push(element1)
|
|
107
|
+
end
|
|
108
|
+
deserialized_property = deserialized_array
|
|
109
|
+
end
|
|
110
|
+
output_object.status_codes = deserialized_property
|
|
111
|
+
|
|
112
|
+
deserialized_property = object['slowRequests']
|
|
113
|
+
unless deserialized_property.nil?
|
|
114
|
+
deserialized_property = SlowRequestsBasedTrigger.deserialize_object(deserialized_property)
|
|
115
|
+
end
|
|
116
|
+
output_object.slow_requests = deserialized_property
|
|
117
|
+
|
|
118
|
+
output_object
|
|
119
|
+
end
|
|
120
|
+
end
|
|
121
|
+
end
|
|
122
|
+
end
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
|
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
|
+
# regenerated.
|
|
5
|
+
|
|
6
|
+
module Azure::ARM::Web
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# Application logs azure blob storage configuration
|
|
10
|
+
#
|
|
11
|
+
class AzureBlobStorageApplicationLogsConfig
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [LogLevel] Log level. Possible values include: 'Off',
|
|
16
|
+
# 'Verbose', 'Information', 'Warning', 'Error'
|
|
17
|
+
attr_accessor :level
|
|
18
|
+
|
|
19
|
+
# @return [String] SAS url to a azure blob container with
|
|
20
|
+
# read/write/list/delete permissions
|
|
21
|
+
attr_accessor :sas_url
|
|
22
|
+
|
|
23
|
+
# @return [Integer] Retention in days.
|
|
24
|
+
# Remove blobs older than X days.
|
|
25
|
+
# 0 or lower means no retention.
|
|
26
|
+
attr_accessor :retention_in_days
|
|
27
|
+
|
|
28
|
+
#
|
|
29
|
+
# Validate the object. Throws ValidationError if validation fails.
|
|
30
|
+
#
|
|
31
|
+
def validate
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
#
|
|
35
|
+
# Serializes given Model object into Ruby Hash.
|
|
36
|
+
# @param object Model object to serialize.
|
|
37
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
|
38
|
+
#
|
|
39
|
+
def self.serialize_object(object)
|
|
40
|
+
object.validate
|
|
41
|
+
output_object = {}
|
|
42
|
+
|
|
43
|
+
serialized_property = object.level
|
|
44
|
+
output_object['level'] = serialized_property unless serialized_property.nil?
|
|
45
|
+
|
|
46
|
+
serialized_property = object.sas_url
|
|
47
|
+
output_object['sasUrl'] = serialized_property unless serialized_property.nil?
|
|
48
|
+
|
|
49
|
+
serialized_property = object.retention_in_days
|
|
50
|
+
output_object['retentionInDays'] = serialized_property unless serialized_property.nil?
|
|
51
|
+
|
|
52
|
+
output_object
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
#
|
|
56
|
+
# Deserializes given Ruby Hash into Model object.
|
|
57
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
|
58
|
+
# @return [AzureBlobStorageApplicationLogsConfig] Deserialized object.
|
|
59
|
+
#
|
|
60
|
+
def self.deserialize_object(object)
|
|
61
|
+
return if object.nil?
|
|
62
|
+
output_object = AzureBlobStorageApplicationLogsConfig.new
|
|
63
|
+
|
|
64
|
+
deserialized_property = object['level']
|
|
65
|
+
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
|
66
|
+
enum_is_valid = LogLevel.constants.any? { |e| LogLevel.const_get(e).to_s.downcase == deserialized_property.downcase }
|
|
67
|
+
warn 'Enum LogLevel does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
|
|
68
|
+
end
|
|
69
|
+
output_object.level = deserialized_property
|
|
70
|
+
|
|
71
|
+
deserialized_property = object['sasUrl']
|
|
72
|
+
output_object.sas_url = deserialized_property
|
|
73
|
+
|
|
74
|
+
deserialized_property = object['retentionInDays']
|
|
75
|
+
deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
|
|
76
|
+
output_object.retention_in_days = deserialized_property
|
|
77
|
+
|
|
78
|
+
output_object
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
end
|