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,56 @@
|
|
|
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 ClassicMobileServiceProperties
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [String] Name of the mobile service
|
|
16
|
+
attr_accessor :name
|
|
17
|
+
|
|
18
|
+
#
|
|
19
|
+
# Validate the object. Throws ValidationError if validation fails.
|
|
20
|
+
#
|
|
21
|
+
def validate
|
|
22
|
+
# Nothing to validate
|
|
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.name
|
|
35
|
+
output_object['name'] = serialized_property unless serialized_property.nil?
|
|
36
|
+
|
|
37
|
+
output_object
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
#
|
|
41
|
+
# Deserializes given Ruby Hash into Model object.
|
|
42
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
|
43
|
+
# @return [ClassicMobileServiceProperties] Deserialized object.
|
|
44
|
+
#
|
|
45
|
+
def self.deserialize_object(object)
|
|
46
|
+
return if object.nil?
|
|
47
|
+
output_object = ClassicMobileServiceProperties.new
|
|
48
|
+
|
|
49
|
+
deserialized_property = object['name']
|
|
50
|
+
output_object.name = deserialized_property
|
|
51
|
+
|
|
52
|
+
output_object
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
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 CloneAbilityResult
|
|
10
|
+
#
|
|
11
|
+
module CloneAbilityResult
|
|
12
|
+
Cloneable = "Cloneable"
|
|
13
|
+
PartiallyCloneable = "PartiallyCloneable"
|
|
14
|
+
NotCloneable = "NotCloneable"
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,152 @@
|
|
|
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
|
+
# Represents information needed for cloning operation
|
|
10
|
+
#
|
|
11
|
+
class CloningInfo
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [String] Correlation Id of cloning operation. This id ties
|
|
16
|
+
# multiple cloning operations
|
|
17
|
+
# together to use the same snapshot
|
|
18
|
+
attr_accessor :correlation_id
|
|
19
|
+
|
|
20
|
+
# @return [Boolean] Overwrite destination web app
|
|
21
|
+
attr_accessor :overwrite
|
|
22
|
+
|
|
23
|
+
# @return [Boolean] If true, clone custom hostnames from source web app
|
|
24
|
+
attr_accessor :clone_custom_host_names
|
|
25
|
+
|
|
26
|
+
# @return [Boolean] Clone source control from source web app
|
|
27
|
+
attr_accessor :clone_source_control
|
|
28
|
+
|
|
29
|
+
# @return [String] ARM resource id of the source web app. Web app
|
|
30
|
+
# resource id is of the form
|
|
31
|
+
# /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}
|
|
32
|
+
# for production slots and
|
|
33
|
+
# /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slotName}
|
|
34
|
+
# for other slots
|
|
35
|
+
attr_accessor :source_web_app_id
|
|
36
|
+
|
|
37
|
+
# @return [String] Hosting environment
|
|
38
|
+
attr_accessor :hosting_environment
|
|
39
|
+
|
|
40
|
+
# @return [Hash{String => String}] Application settings overrides for
|
|
41
|
+
# cloned web app. If specified these settings will override the
|
|
42
|
+
# settings cloned
|
|
43
|
+
# from source web app. If not specified, application
|
|
44
|
+
# settings from source web app are retained.
|
|
45
|
+
attr_accessor :app_settings_overrides
|
|
46
|
+
|
|
47
|
+
# @return [Boolean] If specified configure load balancing for source and
|
|
48
|
+
# clone site
|
|
49
|
+
attr_accessor :configure_load_balancing
|
|
50
|
+
|
|
51
|
+
# @return [String] ARM resource id of the traffic manager profile to use
|
|
52
|
+
# if it exists. Traffic manager resource id is of the form
|
|
53
|
+
# /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{profileName}
|
|
54
|
+
attr_accessor :traffic_manager_profile_id
|
|
55
|
+
|
|
56
|
+
# @return [String] Name of traffic manager profile to create. This is
|
|
57
|
+
# only needed if traffic manager profile does not already exist
|
|
58
|
+
attr_accessor :traffic_manager_profile_name
|
|
59
|
+
|
|
60
|
+
#
|
|
61
|
+
# Validate the object. Throws ValidationError if validation fails.
|
|
62
|
+
#
|
|
63
|
+
def validate
|
|
64
|
+
@app_settings_overrides.each{ |e| e.validate if e.respond_to?(:validate) } unless @app_settings_overrides.nil?
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
#
|
|
68
|
+
# Serializes given Model object into Ruby Hash.
|
|
69
|
+
# @param object Model object to serialize.
|
|
70
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
|
71
|
+
#
|
|
72
|
+
def self.serialize_object(object)
|
|
73
|
+
object.validate
|
|
74
|
+
output_object = {}
|
|
75
|
+
|
|
76
|
+
serialized_property = object.correlation_id
|
|
77
|
+
output_object['correlationId'] = serialized_property unless serialized_property.nil?
|
|
78
|
+
|
|
79
|
+
serialized_property = object.overwrite
|
|
80
|
+
output_object['overwrite'] = serialized_property unless serialized_property.nil?
|
|
81
|
+
|
|
82
|
+
serialized_property = object.clone_custom_host_names
|
|
83
|
+
output_object['cloneCustomHostNames'] = serialized_property unless serialized_property.nil?
|
|
84
|
+
|
|
85
|
+
serialized_property = object.clone_source_control
|
|
86
|
+
output_object['cloneSourceControl'] = serialized_property unless serialized_property.nil?
|
|
87
|
+
|
|
88
|
+
serialized_property = object.source_web_app_id
|
|
89
|
+
output_object['sourceWebAppId'] = serialized_property unless serialized_property.nil?
|
|
90
|
+
|
|
91
|
+
serialized_property = object.hosting_environment
|
|
92
|
+
output_object['hostingEnvironment'] = serialized_property unless serialized_property.nil?
|
|
93
|
+
|
|
94
|
+
serialized_property = object.app_settings_overrides
|
|
95
|
+
output_object['appSettingsOverrides'] = serialized_property unless serialized_property.nil?
|
|
96
|
+
|
|
97
|
+
serialized_property = object.configure_load_balancing
|
|
98
|
+
output_object['configureLoadBalancing'] = serialized_property unless serialized_property.nil?
|
|
99
|
+
|
|
100
|
+
serialized_property = object.traffic_manager_profile_id
|
|
101
|
+
output_object['trafficManagerProfileId'] = serialized_property unless serialized_property.nil?
|
|
102
|
+
|
|
103
|
+
serialized_property = object.traffic_manager_profile_name
|
|
104
|
+
output_object['trafficManagerProfileName'] = serialized_property unless serialized_property.nil?
|
|
105
|
+
|
|
106
|
+
output_object
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
#
|
|
110
|
+
# Deserializes given Ruby Hash into Model object.
|
|
111
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
|
112
|
+
# @return [CloningInfo] Deserialized object.
|
|
113
|
+
#
|
|
114
|
+
def self.deserialize_object(object)
|
|
115
|
+
return if object.nil?
|
|
116
|
+
output_object = CloningInfo.new
|
|
117
|
+
|
|
118
|
+
deserialized_property = object['correlationId']
|
|
119
|
+
output_object.correlation_id = deserialized_property
|
|
120
|
+
|
|
121
|
+
deserialized_property = object['overwrite']
|
|
122
|
+
output_object.overwrite = deserialized_property
|
|
123
|
+
|
|
124
|
+
deserialized_property = object['cloneCustomHostNames']
|
|
125
|
+
output_object.clone_custom_host_names = deserialized_property
|
|
126
|
+
|
|
127
|
+
deserialized_property = object['cloneSourceControl']
|
|
128
|
+
output_object.clone_source_control = deserialized_property
|
|
129
|
+
|
|
130
|
+
deserialized_property = object['sourceWebAppId']
|
|
131
|
+
output_object.source_web_app_id = deserialized_property
|
|
132
|
+
|
|
133
|
+
deserialized_property = object['hostingEnvironment']
|
|
134
|
+
output_object.hosting_environment = deserialized_property
|
|
135
|
+
|
|
136
|
+
deserialized_property = object['appSettingsOverrides']
|
|
137
|
+
output_object.app_settings_overrides = deserialized_property
|
|
138
|
+
|
|
139
|
+
deserialized_property = object['configureLoadBalancing']
|
|
140
|
+
output_object.configure_load_balancing = deserialized_property
|
|
141
|
+
|
|
142
|
+
deserialized_property = object['trafficManagerProfileId']
|
|
143
|
+
output_object.traffic_manager_profile_id = deserialized_property
|
|
144
|
+
|
|
145
|
+
deserialized_property = object['trafficManagerProfileName']
|
|
146
|
+
output_object.traffic_manager_profile_name = deserialized_property
|
|
147
|
+
|
|
148
|
+
output_object
|
|
149
|
+
end
|
|
150
|
+
end
|
|
151
|
+
end
|
|
152
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
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 ComputeModeOptions
|
|
10
|
+
#
|
|
11
|
+
module ComputeModeOptions
|
|
12
|
+
Shared = "Shared"
|
|
13
|
+
Dedicated = "Dedicated"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,79 @@
|
|
|
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
|
+
# Represents database connection string information
|
|
10
|
+
#
|
|
11
|
+
class ConnStringInfo
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [String] Name of connection string
|
|
16
|
+
attr_accessor :name
|
|
17
|
+
|
|
18
|
+
# @return [String] Connection string value
|
|
19
|
+
attr_accessor :connection_string
|
|
20
|
+
|
|
21
|
+
# @return [DatabaseServerType] Type of database. Possible values
|
|
22
|
+
# include: 'MySql', 'SQLServer', 'SQLAzure', 'Custom'
|
|
23
|
+
attr_accessor :type
|
|
24
|
+
|
|
25
|
+
#
|
|
26
|
+
# Validate the object. Throws ValidationError if validation fails.
|
|
27
|
+
#
|
|
28
|
+
def validate
|
|
29
|
+
fail MsRest::ValidationError, 'property type is nil' if @type.nil?
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
#
|
|
33
|
+
# Serializes given Model object into Ruby Hash.
|
|
34
|
+
# @param object Model object to serialize.
|
|
35
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
|
36
|
+
#
|
|
37
|
+
def self.serialize_object(object)
|
|
38
|
+
object.validate
|
|
39
|
+
output_object = {}
|
|
40
|
+
|
|
41
|
+
serialized_property = object.type
|
|
42
|
+
output_object['type'] = serialized_property unless serialized_property.nil?
|
|
43
|
+
|
|
44
|
+
serialized_property = object.name
|
|
45
|
+
output_object['name'] = serialized_property unless serialized_property.nil?
|
|
46
|
+
|
|
47
|
+
serialized_property = object.connection_string
|
|
48
|
+
output_object['connectionString'] = serialized_property unless serialized_property.nil?
|
|
49
|
+
|
|
50
|
+
output_object
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
#
|
|
54
|
+
# Deserializes given Ruby Hash into Model object.
|
|
55
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
|
56
|
+
# @return [ConnStringInfo] Deserialized object.
|
|
57
|
+
#
|
|
58
|
+
def self.deserialize_object(object)
|
|
59
|
+
return if object.nil?
|
|
60
|
+
output_object = ConnStringInfo.new
|
|
61
|
+
|
|
62
|
+
deserialized_property = object['type']
|
|
63
|
+
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
|
64
|
+
enum_is_valid = DatabaseServerType.constants.any? { |e| DatabaseServerType.const_get(e).to_s.downcase == deserialized_property.downcase }
|
|
65
|
+
warn 'Enum DatabaseServerType does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
|
|
66
|
+
end
|
|
67
|
+
output_object.type = deserialized_property
|
|
68
|
+
|
|
69
|
+
deserialized_property = object['name']
|
|
70
|
+
output_object.name = deserialized_property
|
|
71
|
+
|
|
72
|
+
deserialized_property = object['connectionString']
|
|
73
|
+
output_object.connection_string = deserialized_property
|
|
74
|
+
|
|
75
|
+
output_object
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
@@ -0,0 +1,70 @@
|
|
|
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
|
+
# Database connection string value to type pair
|
|
10
|
+
#
|
|
11
|
+
class ConnStringValueTypePair
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [String] Value of pair
|
|
16
|
+
attr_accessor :value
|
|
17
|
+
|
|
18
|
+
# @return [DatabaseServerType] Type of database. Possible values
|
|
19
|
+
# include: 'MySql', 'SQLServer', 'SQLAzure', 'Custom'
|
|
20
|
+
attr_accessor :type
|
|
21
|
+
|
|
22
|
+
#
|
|
23
|
+
# Validate the object. Throws ValidationError if validation fails.
|
|
24
|
+
#
|
|
25
|
+
def validate
|
|
26
|
+
fail MsRest::ValidationError, 'property type is nil' if @type.nil?
|
|
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.type
|
|
39
|
+
output_object['type'] = serialized_property unless serialized_property.nil?
|
|
40
|
+
|
|
41
|
+
serialized_property = object.value
|
|
42
|
+
output_object['value'] = 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 [ConnStringValueTypePair] Deserialized object.
|
|
51
|
+
#
|
|
52
|
+
def self.deserialize_object(object)
|
|
53
|
+
return if object.nil?
|
|
54
|
+
output_object = ConnStringValueTypePair.new
|
|
55
|
+
|
|
56
|
+
deserialized_property = object['type']
|
|
57
|
+
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
|
58
|
+
enum_is_valid = DatabaseServerType.constants.any? { |e| DatabaseServerType.const_get(e).to_s.downcase == deserialized_property.downcase }
|
|
59
|
+
warn 'Enum DatabaseServerType does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
|
|
60
|
+
end
|
|
61
|
+
output_object.type = deserialized_property
|
|
62
|
+
|
|
63
|
+
deserialized_property = object['value']
|
|
64
|
+
output_object.value = deserialized_property
|
|
65
|
+
|
|
66
|
+
output_object
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
@@ -0,0 +1,102 @@
|
|
|
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
|
+
# String dictionary resource
|
|
10
|
+
#
|
|
11
|
+
class ConnectionStringDictionary < MsRestAzure::Resource
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [Hash{String => ConnStringValueTypePair}] Connection strings
|
|
16
|
+
attr_accessor :properties
|
|
17
|
+
|
|
18
|
+
#
|
|
19
|
+
# Validate the object. Throws ValidationError if validation fails.
|
|
20
|
+
#
|
|
21
|
+
def validate
|
|
22
|
+
@properties.each{ |e| e.validate if e.respond_to?(: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.each { |key, valueElement1|
|
|
52
|
+
unless valueElement1.nil?
|
|
53
|
+
valueElement1 = ConnStringValueTypePair.serialize_object(valueElement1)
|
|
54
|
+
end
|
|
55
|
+
serialized_property[key] = valueElement1
|
|
56
|
+
}
|
|
57
|
+
end
|
|
58
|
+
output_object['properties'] = serialized_property unless serialized_property.nil?
|
|
59
|
+
|
|
60
|
+
output_object
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
#
|
|
64
|
+
# Deserializes given Ruby Hash into Model object.
|
|
65
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
|
66
|
+
# @return [ConnectionStringDictionary] Deserialized object.
|
|
67
|
+
#
|
|
68
|
+
def self.deserialize_object(object)
|
|
69
|
+
return if object.nil?
|
|
70
|
+
output_object = ConnectionStringDictionary.new
|
|
71
|
+
|
|
72
|
+
deserialized_property = object['location']
|
|
73
|
+
output_object.location = deserialized_property
|
|
74
|
+
|
|
75
|
+
deserialized_property = object['id']
|
|
76
|
+
output_object.id = deserialized_property
|
|
77
|
+
|
|
78
|
+
deserialized_property = object['name']
|
|
79
|
+
output_object.name = deserialized_property
|
|
80
|
+
|
|
81
|
+
deserialized_property = object['type']
|
|
82
|
+
output_object.type = deserialized_property
|
|
83
|
+
|
|
84
|
+
deserialized_property = object['tags']
|
|
85
|
+
output_object.tags = deserialized_property
|
|
86
|
+
|
|
87
|
+
deserialized_property = object['properties']
|
|
88
|
+
unless deserialized_property.nil?
|
|
89
|
+
deserialized_property.each do |key, valueElement3|
|
|
90
|
+
unless valueElement3.nil?
|
|
91
|
+
valueElement3 = ConnStringValueTypePair.deserialize_object(valueElement3)
|
|
92
|
+
end
|
|
93
|
+
deserialized_property[key] = valueElement3
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
output_object.properties = deserialized_property
|
|
97
|
+
|
|
98
|
+
output_object
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
end
|