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,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
|
+
# Contact information for domain registration. If 'Domain Privacy' option
|
|
10
|
+
# is not selected then the contact information will be be made publicly
|
|
11
|
+
# available through the Whois directories as per ICANN requirements.
|
|
12
|
+
#
|
|
13
|
+
class Contact
|
|
14
|
+
|
|
15
|
+
include MsRestAzure
|
|
16
|
+
|
|
17
|
+
# @return [Address] Mailing address
|
|
18
|
+
attr_accessor :address_mailing
|
|
19
|
+
|
|
20
|
+
# @return [String] Email address
|
|
21
|
+
attr_accessor :email
|
|
22
|
+
|
|
23
|
+
# @return [String] Fax number
|
|
24
|
+
attr_accessor :fax
|
|
25
|
+
|
|
26
|
+
# @return [String] Job title
|
|
27
|
+
attr_accessor :job_title
|
|
28
|
+
|
|
29
|
+
# @return [String] First name
|
|
30
|
+
attr_accessor :name_first
|
|
31
|
+
|
|
32
|
+
# @return [String] Last name
|
|
33
|
+
attr_accessor :name_last
|
|
34
|
+
|
|
35
|
+
# @return [String] Middle name
|
|
36
|
+
attr_accessor :name_middle
|
|
37
|
+
|
|
38
|
+
# @return [String] Organization
|
|
39
|
+
attr_accessor :organization
|
|
40
|
+
|
|
41
|
+
# @return [String] Phone number
|
|
42
|
+
attr_accessor :phone
|
|
43
|
+
|
|
44
|
+
#
|
|
45
|
+
# Validate the object. Throws ValidationError if validation fails.
|
|
46
|
+
#
|
|
47
|
+
def validate
|
|
48
|
+
@address_mailing.validate unless @address_mailing.nil?
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
#
|
|
52
|
+
# Serializes given Model object into Ruby Hash.
|
|
53
|
+
# @param object Model object to serialize.
|
|
54
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
|
55
|
+
#
|
|
56
|
+
def self.serialize_object(object)
|
|
57
|
+
object.validate
|
|
58
|
+
output_object = {}
|
|
59
|
+
|
|
60
|
+
serialized_property = object.address_mailing
|
|
61
|
+
unless serialized_property.nil?
|
|
62
|
+
serialized_property = Address.serialize_object(serialized_property)
|
|
63
|
+
end
|
|
64
|
+
output_object['addressMailing'] = serialized_property unless serialized_property.nil?
|
|
65
|
+
|
|
66
|
+
serialized_property = object.email
|
|
67
|
+
output_object['email'] = serialized_property unless serialized_property.nil?
|
|
68
|
+
|
|
69
|
+
serialized_property = object.fax
|
|
70
|
+
output_object['fax'] = serialized_property unless serialized_property.nil?
|
|
71
|
+
|
|
72
|
+
serialized_property = object.job_title
|
|
73
|
+
output_object['jobTitle'] = serialized_property unless serialized_property.nil?
|
|
74
|
+
|
|
75
|
+
serialized_property = object.name_first
|
|
76
|
+
output_object['nameFirst'] = serialized_property unless serialized_property.nil?
|
|
77
|
+
|
|
78
|
+
serialized_property = object.name_last
|
|
79
|
+
output_object['nameLast'] = serialized_property unless serialized_property.nil?
|
|
80
|
+
|
|
81
|
+
serialized_property = object.name_middle
|
|
82
|
+
output_object['nameMiddle'] = serialized_property unless serialized_property.nil?
|
|
83
|
+
|
|
84
|
+
serialized_property = object.organization
|
|
85
|
+
output_object['organization'] = serialized_property unless serialized_property.nil?
|
|
86
|
+
|
|
87
|
+
serialized_property = object.phone
|
|
88
|
+
output_object['phone'] = serialized_property unless serialized_property.nil?
|
|
89
|
+
|
|
90
|
+
output_object
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
#
|
|
94
|
+
# Deserializes given Ruby Hash into Model object.
|
|
95
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
|
96
|
+
# @return [Contact] Deserialized object.
|
|
97
|
+
#
|
|
98
|
+
def self.deserialize_object(object)
|
|
99
|
+
return if object.nil?
|
|
100
|
+
output_object = Contact.new
|
|
101
|
+
|
|
102
|
+
deserialized_property = object['addressMailing']
|
|
103
|
+
unless deserialized_property.nil?
|
|
104
|
+
deserialized_property = Address.deserialize_object(deserialized_property)
|
|
105
|
+
end
|
|
106
|
+
output_object.address_mailing = deserialized_property
|
|
107
|
+
|
|
108
|
+
deserialized_property = object['email']
|
|
109
|
+
output_object.email = deserialized_property
|
|
110
|
+
|
|
111
|
+
deserialized_property = object['fax']
|
|
112
|
+
output_object.fax = deserialized_property
|
|
113
|
+
|
|
114
|
+
deserialized_property = object['jobTitle']
|
|
115
|
+
output_object.job_title = deserialized_property
|
|
116
|
+
|
|
117
|
+
deserialized_property = object['nameFirst']
|
|
118
|
+
output_object.name_first = deserialized_property
|
|
119
|
+
|
|
120
|
+
deserialized_property = object['nameLast']
|
|
121
|
+
output_object.name_last = deserialized_property
|
|
122
|
+
|
|
123
|
+
deserialized_property = object['nameMiddle']
|
|
124
|
+
output_object.name_middle = deserialized_property
|
|
125
|
+
|
|
126
|
+
deserialized_property = object['organization']
|
|
127
|
+
output_object.organization = deserialized_property
|
|
128
|
+
|
|
129
|
+
deserialized_property = object['phone']
|
|
130
|
+
output_object.phone = deserialized_property
|
|
131
|
+
|
|
132
|
+
output_object
|
|
133
|
+
end
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
end
|
|
@@ -0,0 +1,59 @@
|
|
|
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
|
+
# Cross-Origin Resource Sharing (CORS) settings for the web app.
|
|
10
|
+
#
|
|
11
|
+
class CorsSettings
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [Array<String>] Gets or sets the list of origins that should
|
|
16
|
+
# be allowed to make cross-origin
|
|
17
|
+
# calls (for example: http://example.com:12345). Use "*" to
|
|
18
|
+
# allow all.
|
|
19
|
+
attr_accessor :allowed_origins
|
|
20
|
+
|
|
21
|
+
#
|
|
22
|
+
# Validate the object. Throws ValidationError if validation fails.
|
|
23
|
+
#
|
|
24
|
+
def validate
|
|
25
|
+
@allowed_origins.each{ |e| e.validate if e.respond_to?(:validate) } unless @allowed_origins.nil?
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
#
|
|
29
|
+
# Serializes given Model object into Ruby Hash.
|
|
30
|
+
# @param object Model object to serialize.
|
|
31
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
|
32
|
+
#
|
|
33
|
+
def self.serialize_object(object)
|
|
34
|
+
object.validate
|
|
35
|
+
output_object = {}
|
|
36
|
+
|
|
37
|
+
serialized_property = object.allowed_origins
|
|
38
|
+
output_object['allowedOrigins'] = serialized_property unless serialized_property.nil?
|
|
39
|
+
|
|
40
|
+
output_object
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
#
|
|
44
|
+
# Deserializes given Ruby Hash into Model object.
|
|
45
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
|
46
|
+
# @return [CorsSettings] Deserialized object.
|
|
47
|
+
#
|
|
48
|
+
def self.deserialize_object(object)
|
|
49
|
+
return if object.nil?
|
|
50
|
+
output_object = CorsSettings.new
|
|
51
|
+
|
|
52
|
+
deserialized_property = object['allowedOrigins']
|
|
53
|
+
output_object.allowed_origins = deserialized_property
|
|
54
|
+
|
|
55
|
+
output_object
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
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
|
+
# Class containing a list of the resources that need to be moved and the
|
|
10
|
+
# resource group they should be moved to
|
|
11
|
+
#
|
|
12
|
+
class CsmMoveResourceEnvelope
|
|
13
|
+
|
|
14
|
+
include MsRestAzure
|
|
15
|
+
|
|
16
|
+
# @return [String]
|
|
17
|
+
attr_accessor :target_resource_group
|
|
18
|
+
|
|
19
|
+
# @return [Array<String>]
|
|
20
|
+
attr_accessor :resources
|
|
21
|
+
|
|
22
|
+
#
|
|
23
|
+
# Validate the object. Throws ValidationError if validation fails.
|
|
24
|
+
#
|
|
25
|
+
def validate
|
|
26
|
+
@resources.each{ |e| e.validate if e.respond_to?(:validate) } unless @resources.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.target_resource_group
|
|
39
|
+
output_object['targetResourceGroup'] = serialized_property unless serialized_property.nil?
|
|
40
|
+
|
|
41
|
+
serialized_property = object.resources
|
|
42
|
+
output_object['resources'] = 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 [CsmMoveResourceEnvelope] Deserialized object.
|
|
51
|
+
#
|
|
52
|
+
def self.deserialize_object(object)
|
|
53
|
+
return if object.nil?
|
|
54
|
+
output_object = CsmMoveResourceEnvelope.new
|
|
55
|
+
|
|
56
|
+
deserialized_property = object['targetResourceGroup']
|
|
57
|
+
output_object.target_resource_group = deserialized_property
|
|
58
|
+
|
|
59
|
+
deserialized_property = object['resources']
|
|
60
|
+
output_object.resources = deserialized_property
|
|
61
|
+
|
|
62
|
+
output_object
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
@@ -0,0 +1,59 @@
|
|
|
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
|
+
# Publishing options for requested profile
|
|
10
|
+
#
|
|
11
|
+
class CsmPublishingProfileOptions
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [String] Name of the format. Valid values are:
|
|
16
|
+
# FileZilla3
|
|
17
|
+
# WebDeploy -- default
|
|
18
|
+
# Ftp
|
|
19
|
+
attr_accessor :format
|
|
20
|
+
|
|
21
|
+
#
|
|
22
|
+
# Validate the object. Throws ValidationError if validation fails.
|
|
23
|
+
#
|
|
24
|
+
def validate
|
|
25
|
+
# Nothing to validate
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
#
|
|
29
|
+
# Serializes given Model object into Ruby Hash.
|
|
30
|
+
# @param object Model object to serialize.
|
|
31
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
|
32
|
+
#
|
|
33
|
+
def self.serialize_object(object)
|
|
34
|
+
object.validate
|
|
35
|
+
output_object = {}
|
|
36
|
+
|
|
37
|
+
serialized_property = object.format
|
|
38
|
+
output_object['format'] = serialized_property unless serialized_property.nil?
|
|
39
|
+
|
|
40
|
+
output_object
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
#
|
|
44
|
+
# Deserializes given Ruby Hash into Model object.
|
|
45
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
|
46
|
+
# @return [CsmPublishingProfileOptions] Deserialized object.
|
|
47
|
+
#
|
|
48
|
+
def self.deserialize_object(object)
|
|
49
|
+
return if object.nil?
|
|
50
|
+
output_object = CsmPublishingProfileOptions.new
|
|
51
|
+
|
|
52
|
+
deserialized_property = object['format']
|
|
53
|
+
output_object.format = deserialized_property
|
|
54
|
+
|
|
55
|
+
output_object
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
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
|
+
# Class containting details about site recovery operation.
|
|
10
|
+
#
|
|
11
|
+
class CsmSiteRecoveryEntity
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [DateTime] Point in time in which the site recover should be
|
|
16
|
+
# attempted.
|
|
17
|
+
attr_accessor :snapshot_time
|
|
18
|
+
|
|
19
|
+
# @return [String] [Optional] Destination web app name into which web
|
|
20
|
+
# app should be recovered. This is case when new web app should be
|
|
21
|
+
# created instead.
|
|
22
|
+
attr_accessor :site_name
|
|
23
|
+
|
|
24
|
+
# @return [String] [Optional] Destination web app slot name into which
|
|
25
|
+
# web app should be recovered
|
|
26
|
+
attr_accessor :slot_name
|
|
27
|
+
|
|
28
|
+
#
|
|
29
|
+
# Validate the object. Throws ValidationError if validation fails.
|
|
30
|
+
#
|
|
31
|
+
def validate
|
|
32
|
+
# Nothing to validate
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
#
|
|
36
|
+
# Serializes given Model object into Ruby Hash.
|
|
37
|
+
# @param object Model object to serialize.
|
|
38
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
|
39
|
+
#
|
|
40
|
+
def self.serialize_object(object)
|
|
41
|
+
object.validate
|
|
42
|
+
output_object = {}
|
|
43
|
+
|
|
44
|
+
serialized_property = object.snapshot_time
|
|
45
|
+
serialized_property = serialized_property.new_offset(0).strftime('%FT%TZ')
|
|
46
|
+
output_object['snapshotTime'] = serialized_property unless serialized_property.nil?
|
|
47
|
+
|
|
48
|
+
serialized_property = object.site_name
|
|
49
|
+
output_object['siteName'] = serialized_property unless serialized_property.nil?
|
|
50
|
+
|
|
51
|
+
serialized_property = object.slot_name
|
|
52
|
+
output_object['slotName'] = serialized_property unless serialized_property.nil?
|
|
53
|
+
|
|
54
|
+
output_object
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
#
|
|
58
|
+
# Deserializes given Ruby Hash into Model object.
|
|
59
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
|
60
|
+
# @return [CsmSiteRecoveryEntity] Deserialized object.
|
|
61
|
+
#
|
|
62
|
+
def self.deserialize_object(object)
|
|
63
|
+
return if object.nil?
|
|
64
|
+
output_object = CsmSiteRecoveryEntity.new
|
|
65
|
+
|
|
66
|
+
deserialized_property = object['snapshotTime']
|
|
67
|
+
deserialized_property = DateTime.parse(deserialized_property) unless deserialized_property.to_s.empty?
|
|
68
|
+
output_object.snapshot_time = deserialized_property
|
|
69
|
+
|
|
70
|
+
deserialized_property = object['siteName']
|
|
71
|
+
output_object.site_name = deserialized_property
|
|
72
|
+
|
|
73
|
+
deserialized_property = object['slotName']
|
|
74
|
+
output_object.slot_name = deserialized_property
|
|
75
|
+
|
|
76
|
+
output_object
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
end
|
|
@@ -0,0 +1,67 @@
|
|
|
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
|
+
# Class containing deployment slot parameters
|
|
10
|
+
#
|
|
11
|
+
class CsmSlotEntity
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [String] Set the destination deployment slot during swap
|
|
16
|
+
# operation
|
|
17
|
+
attr_accessor :target_slot
|
|
18
|
+
|
|
19
|
+
# @return [Boolean] Get or set the flag indicating it should preserve
|
|
20
|
+
# VNet to the slot during swap
|
|
21
|
+
attr_accessor :preserve_vnet
|
|
22
|
+
|
|
23
|
+
#
|
|
24
|
+
# Validate the object. Throws ValidationError if validation fails.
|
|
25
|
+
#
|
|
26
|
+
def validate
|
|
27
|
+
# Nothing to validate
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
#
|
|
31
|
+
# Serializes given Model object into Ruby Hash.
|
|
32
|
+
# @param object Model object to serialize.
|
|
33
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
|
34
|
+
#
|
|
35
|
+
def self.serialize_object(object)
|
|
36
|
+
object.validate
|
|
37
|
+
output_object = {}
|
|
38
|
+
|
|
39
|
+
serialized_property = object.target_slot
|
|
40
|
+
output_object['targetSlot'] = serialized_property unless serialized_property.nil?
|
|
41
|
+
|
|
42
|
+
serialized_property = object.preserve_vnet
|
|
43
|
+
output_object['preserveVnet'] = serialized_property unless serialized_property.nil?
|
|
44
|
+
|
|
45
|
+
output_object
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
#
|
|
49
|
+
# Deserializes given Ruby Hash into Model object.
|
|
50
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
|
51
|
+
# @return [CsmSlotEntity] Deserialized object.
|
|
52
|
+
#
|
|
53
|
+
def self.deserialize_object(object)
|
|
54
|
+
return if object.nil?
|
|
55
|
+
output_object = CsmSlotEntity.new
|
|
56
|
+
|
|
57
|
+
deserialized_property = object['targetSlot']
|
|
58
|
+
output_object.target_slot = deserialized_property
|
|
59
|
+
|
|
60
|
+
deserialized_property = object['preserveVnet']
|
|
61
|
+
output_object.preserve_vnet = deserialized_property
|
|
62
|
+
|
|
63
|
+
output_object
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|