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,24 @@
|
|
|
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 BackupItemStatus
|
|
10
|
+
#
|
|
11
|
+
module BackupItemStatus
|
|
12
|
+
InProgress = "InProgress"
|
|
13
|
+
Failed = "Failed"
|
|
14
|
+
Succeeded = "Succeeded"
|
|
15
|
+
TimedOut = "TimedOut"
|
|
16
|
+
Created = "Created"
|
|
17
|
+
Skipped = "Skipped"
|
|
18
|
+
PartiallySucceeded = "PartiallySucceeded"
|
|
19
|
+
DeleteInProgress = "DeleteInProgress"
|
|
20
|
+
DeleteFailed = "DeleteFailed"
|
|
21
|
+
Deleted = "Deleted"
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,92 @@
|
|
|
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
|
+
# Description of a backup which will be performed
|
|
10
|
+
#
|
|
11
|
+
class BackupRequest < MsRestAzure::Resource
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [BackupRequestProperties]
|
|
16
|
+
attr_accessor :properties
|
|
17
|
+
|
|
18
|
+
#
|
|
19
|
+
# Validate the object. Throws ValidationError if validation fails.
|
|
20
|
+
#
|
|
21
|
+
def validate
|
|
22
|
+
@properties.validate unless @properties.nil?
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
#
|
|
26
|
+
# Serializes given Model object into Ruby Hash.
|
|
27
|
+
# @param object Model object to serialize.
|
|
28
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
|
29
|
+
#
|
|
30
|
+
def self.serialize_object(object)
|
|
31
|
+
object.validate
|
|
32
|
+
output_object = {}
|
|
33
|
+
|
|
34
|
+
serialized_property = object.location
|
|
35
|
+
output_object['location'] = serialized_property unless serialized_property.nil?
|
|
36
|
+
|
|
37
|
+
serialized_property = object.id
|
|
38
|
+
output_object['id'] = serialized_property unless serialized_property.nil?
|
|
39
|
+
|
|
40
|
+
serialized_property = object.name
|
|
41
|
+
output_object['name'] = serialized_property unless serialized_property.nil?
|
|
42
|
+
|
|
43
|
+
serialized_property = object.type
|
|
44
|
+
output_object['type'] = serialized_property unless serialized_property.nil?
|
|
45
|
+
|
|
46
|
+
serialized_property = object.tags
|
|
47
|
+
output_object['tags'] = serialized_property unless serialized_property.nil?
|
|
48
|
+
|
|
49
|
+
serialized_property = object.properties
|
|
50
|
+
unless serialized_property.nil?
|
|
51
|
+
serialized_property = BackupRequestProperties.serialize_object(serialized_property)
|
|
52
|
+
end
|
|
53
|
+
output_object['properties'] = serialized_property unless serialized_property.nil?
|
|
54
|
+
|
|
55
|
+
output_object
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
#
|
|
59
|
+
# Deserializes given Ruby Hash into Model object.
|
|
60
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
|
61
|
+
# @return [BackupRequest] Deserialized object.
|
|
62
|
+
#
|
|
63
|
+
def self.deserialize_object(object)
|
|
64
|
+
return if object.nil?
|
|
65
|
+
output_object = BackupRequest.new
|
|
66
|
+
|
|
67
|
+
deserialized_property = object['location']
|
|
68
|
+
output_object.location = deserialized_property
|
|
69
|
+
|
|
70
|
+
deserialized_property = object['id']
|
|
71
|
+
output_object.id = deserialized_property
|
|
72
|
+
|
|
73
|
+
deserialized_property = object['name']
|
|
74
|
+
output_object.name = deserialized_property
|
|
75
|
+
|
|
76
|
+
deserialized_property = object['type']
|
|
77
|
+
output_object.type = deserialized_property
|
|
78
|
+
|
|
79
|
+
deserialized_property = object['tags']
|
|
80
|
+
output_object.tags = deserialized_property
|
|
81
|
+
|
|
82
|
+
deserialized_property = object['properties']
|
|
83
|
+
unless deserialized_property.nil?
|
|
84
|
+
deserialized_property = BackupRequestProperties.deserialize_object(deserialized_property)
|
|
85
|
+
end
|
|
86
|
+
output_object.properties = deserialized_property
|
|
87
|
+
|
|
88
|
+
output_object
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
end
|
|
@@ -0,0 +1,136 @@
|
|
|
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
|
+
# Model object.
|
|
10
|
+
#
|
|
11
|
+
class BackupRequestProperties
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [String] Name of the backup
|
|
16
|
+
attr_accessor :name
|
|
17
|
+
|
|
18
|
+
# @return [Boolean] True if the backup schedule is enabled (must be
|
|
19
|
+
# included in that case), false if the backup schedule should be
|
|
20
|
+
# disabled
|
|
21
|
+
attr_accessor :enabled
|
|
22
|
+
|
|
23
|
+
# @return [String] SAS URL to the container
|
|
24
|
+
attr_accessor :storage_account_url
|
|
25
|
+
|
|
26
|
+
# @return [BackupSchedule] Schedule for the backup if it is executed
|
|
27
|
+
# periodically
|
|
28
|
+
attr_accessor :backup_schedule
|
|
29
|
+
|
|
30
|
+
# @return [Array<DatabaseBackupSetting>] Databases included in the backup
|
|
31
|
+
attr_accessor :databases
|
|
32
|
+
|
|
33
|
+
# @return [BackupRestoreOperationType] Type of the backup. Possible
|
|
34
|
+
# values include: 'Default', 'Clone', 'Relocation'
|
|
35
|
+
attr_accessor :type
|
|
36
|
+
|
|
37
|
+
#
|
|
38
|
+
# Validate the object. Throws ValidationError if validation fails.
|
|
39
|
+
#
|
|
40
|
+
def validate
|
|
41
|
+
@backup_schedule.validate unless @backup_schedule.nil?
|
|
42
|
+
@databases.each{ |e| e.validate if e.respond_to?(:validate) } unless @databases.nil?
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
#
|
|
46
|
+
# Serializes given Model object into Ruby Hash.
|
|
47
|
+
# @param object Model object to serialize.
|
|
48
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
|
49
|
+
#
|
|
50
|
+
def self.serialize_object(object)
|
|
51
|
+
object.validate
|
|
52
|
+
output_object = {}
|
|
53
|
+
|
|
54
|
+
serialized_property = object.name
|
|
55
|
+
output_object['name'] = serialized_property unless serialized_property.nil?
|
|
56
|
+
|
|
57
|
+
serialized_property = object.enabled
|
|
58
|
+
output_object['enabled'] = serialized_property unless serialized_property.nil?
|
|
59
|
+
|
|
60
|
+
serialized_property = object.storage_account_url
|
|
61
|
+
output_object['storageAccountUrl'] = serialized_property unless serialized_property.nil?
|
|
62
|
+
|
|
63
|
+
serialized_property = object.backup_schedule
|
|
64
|
+
unless serialized_property.nil?
|
|
65
|
+
serialized_property = BackupSchedule.serialize_object(serialized_property)
|
|
66
|
+
end
|
|
67
|
+
output_object['backupSchedule'] = serialized_property unless serialized_property.nil?
|
|
68
|
+
|
|
69
|
+
serialized_property = object.databases
|
|
70
|
+
unless serialized_property.nil?
|
|
71
|
+
serializedArray = []
|
|
72
|
+
serialized_property.each do |element|
|
|
73
|
+
unless element.nil?
|
|
74
|
+
element = DatabaseBackupSetting.serialize_object(element)
|
|
75
|
+
end
|
|
76
|
+
serializedArray.push(element)
|
|
77
|
+
end
|
|
78
|
+
serialized_property = serializedArray
|
|
79
|
+
end
|
|
80
|
+
output_object['databases'] = serialized_property unless serialized_property.nil?
|
|
81
|
+
|
|
82
|
+
serialized_property = object.type
|
|
83
|
+
output_object['type'] = serialized_property unless serialized_property.nil?
|
|
84
|
+
|
|
85
|
+
output_object
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
#
|
|
89
|
+
# Deserializes given Ruby Hash into Model object.
|
|
90
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
|
91
|
+
# @return [BackupRequestProperties] Deserialized object.
|
|
92
|
+
#
|
|
93
|
+
def self.deserialize_object(object)
|
|
94
|
+
return if object.nil?
|
|
95
|
+
output_object = BackupRequestProperties.new
|
|
96
|
+
|
|
97
|
+
deserialized_property = object['name']
|
|
98
|
+
output_object.name = deserialized_property
|
|
99
|
+
|
|
100
|
+
deserialized_property = object['enabled']
|
|
101
|
+
output_object.enabled = deserialized_property
|
|
102
|
+
|
|
103
|
+
deserialized_property = object['storageAccountUrl']
|
|
104
|
+
output_object.storage_account_url = deserialized_property
|
|
105
|
+
|
|
106
|
+
deserialized_property = object['backupSchedule']
|
|
107
|
+
unless deserialized_property.nil?
|
|
108
|
+
deserialized_property = BackupSchedule.deserialize_object(deserialized_property)
|
|
109
|
+
end
|
|
110
|
+
output_object.backup_schedule = deserialized_property
|
|
111
|
+
|
|
112
|
+
deserialized_property = object['databases']
|
|
113
|
+
unless deserialized_property.nil?
|
|
114
|
+
deserialized_array = []
|
|
115
|
+
deserialized_property.each do |element1|
|
|
116
|
+
unless element1.nil?
|
|
117
|
+
element1 = DatabaseBackupSetting.deserialize_object(element1)
|
|
118
|
+
end
|
|
119
|
+
deserialized_array.push(element1)
|
|
120
|
+
end
|
|
121
|
+
deserialized_property = deserialized_array
|
|
122
|
+
end
|
|
123
|
+
output_object.databases = deserialized_property
|
|
124
|
+
|
|
125
|
+
deserialized_property = object['type']
|
|
126
|
+
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
|
127
|
+
enum_is_valid = BackupRestoreOperationType.constants.any? { |e| BackupRestoreOperationType.const_get(e).to_s.downcase == deserialized_property.downcase }
|
|
128
|
+
warn 'Enum BackupRestoreOperationType does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
|
|
129
|
+
end
|
|
130
|
+
output_object.type = deserialized_property
|
|
131
|
+
|
|
132
|
+
output_object
|
|
133
|
+
end
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
end
|
|
@@ -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 BackupRestoreOperationType
|
|
10
|
+
#
|
|
11
|
+
module BackupRestoreOperationType
|
|
12
|
+
Default = "Default"
|
|
13
|
+
Clone = "Clone"
|
|
14
|
+
Relocation = "Relocation"
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,118 @@
|
|
|
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
|
+
# Description of a backup schedule. Describes how often should be the
|
|
10
|
+
# backup performed and what should be the retention policy.
|
|
11
|
+
#
|
|
12
|
+
class BackupSchedule
|
|
13
|
+
|
|
14
|
+
include MsRestAzure
|
|
15
|
+
|
|
16
|
+
# @return [Integer] How often should be the backup executed (e.g. for
|
|
17
|
+
# weekly backup, this should be set to 7 and FrequencyUnit should be
|
|
18
|
+
# set to Day)
|
|
19
|
+
attr_accessor :frequency_interval
|
|
20
|
+
|
|
21
|
+
# @return [FrequencyUnit] How often should be the backup executed (e.g.
|
|
22
|
+
# for weekly backup, this should be set to Day and FrequencyInterval
|
|
23
|
+
# should be set to 7). Possible values include: 'Day', 'Hour'
|
|
24
|
+
attr_accessor :frequency_unit
|
|
25
|
+
|
|
26
|
+
# @return [Boolean] True if the retention policy should always keep at
|
|
27
|
+
# least one backup in the storage account, regardless how old it is;
|
|
28
|
+
# false otherwise.
|
|
29
|
+
attr_accessor :keep_at_least_one_backup
|
|
30
|
+
|
|
31
|
+
# @return [Integer] After how many days backups should be deleted
|
|
32
|
+
attr_accessor :retention_period_in_days
|
|
33
|
+
|
|
34
|
+
# @return [DateTime] When the schedule should start working
|
|
35
|
+
attr_accessor :start_time
|
|
36
|
+
|
|
37
|
+
# @return [DateTime] The last time when this schedule was triggered
|
|
38
|
+
attr_accessor :last_execution_time
|
|
39
|
+
|
|
40
|
+
#
|
|
41
|
+
# Validate the object. Throws ValidationError if validation fails.
|
|
42
|
+
#
|
|
43
|
+
def validate
|
|
44
|
+
fail MsRest::ValidationError, 'property frequency_unit is nil' if @frequency_unit.nil?
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
#
|
|
48
|
+
# Serializes given Model object into Ruby Hash.
|
|
49
|
+
# @param object Model object to serialize.
|
|
50
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
|
51
|
+
#
|
|
52
|
+
def self.serialize_object(object)
|
|
53
|
+
object.validate
|
|
54
|
+
output_object = {}
|
|
55
|
+
|
|
56
|
+
serialized_property = object.frequency_unit
|
|
57
|
+
output_object['frequencyUnit'] = serialized_property unless serialized_property.nil?
|
|
58
|
+
|
|
59
|
+
serialized_property = object.frequency_interval
|
|
60
|
+
output_object['frequencyInterval'] = serialized_property unless serialized_property.nil?
|
|
61
|
+
|
|
62
|
+
serialized_property = object.keep_at_least_one_backup
|
|
63
|
+
output_object['keepAtLeastOneBackup'] = serialized_property unless serialized_property.nil?
|
|
64
|
+
|
|
65
|
+
serialized_property = object.retention_period_in_days
|
|
66
|
+
output_object['retentionPeriodInDays'] = serialized_property unless serialized_property.nil?
|
|
67
|
+
|
|
68
|
+
serialized_property = object.start_time
|
|
69
|
+
serialized_property = serialized_property.new_offset(0).strftime('%FT%TZ')
|
|
70
|
+
output_object['startTime'] = serialized_property unless serialized_property.nil?
|
|
71
|
+
|
|
72
|
+
serialized_property = object.last_execution_time
|
|
73
|
+
serialized_property = serialized_property.new_offset(0).strftime('%FT%TZ')
|
|
74
|
+
output_object['lastExecutionTime'] = serialized_property unless serialized_property.nil?
|
|
75
|
+
|
|
76
|
+
output_object
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
#
|
|
80
|
+
# Deserializes given Ruby Hash into Model object.
|
|
81
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
|
82
|
+
# @return [BackupSchedule] Deserialized object.
|
|
83
|
+
#
|
|
84
|
+
def self.deserialize_object(object)
|
|
85
|
+
return if object.nil?
|
|
86
|
+
output_object = BackupSchedule.new
|
|
87
|
+
|
|
88
|
+
deserialized_property = object['frequencyUnit']
|
|
89
|
+
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
|
90
|
+
enum_is_valid = FrequencyUnit.constants.any? { |e| FrequencyUnit.const_get(e).to_s.downcase == deserialized_property.downcase }
|
|
91
|
+
warn 'Enum FrequencyUnit does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
|
|
92
|
+
end
|
|
93
|
+
output_object.frequency_unit = deserialized_property
|
|
94
|
+
|
|
95
|
+
deserialized_property = object['frequencyInterval']
|
|
96
|
+
deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
|
|
97
|
+
output_object.frequency_interval = deserialized_property
|
|
98
|
+
|
|
99
|
+
deserialized_property = object['keepAtLeastOneBackup']
|
|
100
|
+
output_object.keep_at_least_one_backup = deserialized_property
|
|
101
|
+
|
|
102
|
+
deserialized_property = object['retentionPeriodInDays']
|
|
103
|
+
deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
|
|
104
|
+
output_object.retention_period_in_days = deserialized_property
|
|
105
|
+
|
|
106
|
+
deserialized_property = object['startTime']
|
|
107
|
+
deserialized_property = DateTime.parse(deserialized_property) unless deserialized_property.to_s.empty?
|
|
108
|
+
output_object.start_time = deserialized_property
|
|
109
|
+
|
|
110
|
+
deserialized_property = object['lastExecutionTime']
|
|
111
|
+
deserialized_property = DateTime.parse(deserialized_property) unless deserialized_property.to_s.empty?
|
|
112
|
+
output_object.last_execution_time = deserialized_property
|
|
113
|
+
|
|
114
|
+
output_object
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
end
|
|
118
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
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 BuiltInAuthenticationProvider
|
|
10
|
+
#
|
|
11
|
+
module BuiltInAuthenticationProvider
|
|
12
|
+
AzureActiveDirectory = "AzureActiveDirectory"
|
|
13
|
+
Facebook = "Facebook"
|
|
14
|
+
Google = "Google"
|
|
15
|
+
MicrosoftAccount = "MicrosoftAccount"
|
|
16
|
+
Twitter = "Twitter"
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,92 @@
|
|
|
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
|
+
# App certificate
|
|
10
|
+
#
|
|
11
|
+
class Certificate < MsRestAzure::Resource
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [CertificateProperties]
|
|
16
|
+
attr_accessor :properties
|
|
17
|
+
|
|
18
|
+
#
|
|
19
|
+
# Validate the object. Throws ValidationError if validation fails.
|
|
20
|
+
#
|
|
21
|
+
def validate
|
|
22
|
+
@properties.validate unless @properties.nil?
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
#
|
|
26
|
+
# Serializes given Model object into Ruby Hash.
|
|
27
|
+
# @param object Model object to serialize.
|
|
28
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
|
29
|
+
#
|
|
30
|
+
def self.serialize_object(object)
|
|
31
|
+
object.validate
|
|
32
|
+
output_object = {}
|
|
33
|
+
|
|
34
|
+
serialized_property = object.location
|
|
35
|
+
output_object['location'] = serialized_property unless serialized_property.nil?
|
|
36
|
+
|
|
37
|
+
serialized_property = object.id
|
|
38
|
+
output_object['id'] = serialized_property unless serialized_property.nil?
|
|
39
|
+
|
|
40
|
+
serialized_property = object.name
|
|
41
|
+
output_object['name'] = serialized_property unless serialized_property.nil?
|
|
42
|
+
|
|
43
|
+
serialized_property = object.type
|
|
44
|
+
output_object['type'] = serialized_property unless serialized_property.nil?
|
|
45
|
+
|
|
46
|
+
serialized_property = object.tags
|
|
47
|
+
output_object['tags'] = serialized_property unless serialized_property.nil?
|
|
48
|
+
|
|
49
|
+
serialized_property = object.properties
|
|
50
|
+
unless serialized_property.nil?
|
|
51
|
+
serialized_property = CertificateProperties.serialize_object(serialized_property)
|
|
52
|
+
end
|
|
53
|
+
output_object['properties'] = serialized_property unless serialized_property.nil?
|
|
54
|
+
|
|
55
|
+
output_object
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
#
|
|
59
|
+
# Deserializes given Ruby Hash into Model object.
|
|
60
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
|
61
|
+
# @return [Certificate] Deserialized object.
|
|
62
|
+
#
|
|
63
|
+
def self.deserialize_object(object)
|
|
64
|
+
return if object.nil?
|
|
65
|
+
output_object = Certificate.new
|
|
66
|
+
|
|
67
|
+
deserialized_property = object['location']
|
|
68
|
+
output_object.location = deserialized_property
|
|
69
|
+
|
|
70
|
+
deserialized_property = object['id']
|
|
71
|
+
output_object.id = deserialized_property
|
|
72
|
+
|
|
73
|
+
deserialized_property = object['name']
|
|
74
|
+
output_object.name = deserialized_property
|
|
75
|
+
|
|
76
|
+
deserialized_property = object['type']
|
|
77
|
+
output_object.type = deserialized_property
|
|
78
|
+
|
|
79
|
+
deserialized_property = object['tags']
|
|
80
|
+
output_object.tags = deserialized_property
|
|
81
|
+
|
|
82
|
+
deserialized_property = object['properties']
|
|
83
|
+
unless deserialized_property.nil?
|
|
84
|
+
deserialized_property = CertificateProperties.deserialize_object(deserialized_property)
|
|
85
|
+
end
|
|
86
|
+
output_object.properties = deserialized_property
|
|
87
|
+
|
|
88
|
+
output_object
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
end
|