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,354 @@
|
|
|
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 SiteProperties
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [String] Name of web app
|
|
16
|
+
attr_accessor :name
|
|
17
|
+
|
|
18
|
+
# @return [String] State of the web app
|
|
19
|
+
attr_accessor :state
|
|
20
|
+
|
|
21
|
+
# @return [Array<String>] Hostnames associated with web app
|
|
22
|
+
attr_accessor :host_names
|
|
23
|
+
|
|
24
|
+
# @return [String] Name of repository site
|
|
25
|
+
attr_accessor :repository_site_name
|
|
26
|
+
|
|
27
|
+
# @return [UsageState] State indicating whether web app has exceeded its
|
|
28
|
+
# quota usage. Possible values include: 'Normal', 'Exceeded'
|
|
29
|
+
attr_accessor :usage_state
|
|
30
|
+
|
|
31
|
+
# @return [Boolean] True if the site is enabled; otherwise, false.
|
|
32
|
+
# Setting this value to false disables the site (takes the site off
|
|
33
|
+
# line).
|
|
34
|
+
attr_accessor :enabled
|
|
35
|
+
|
|
36
|
+
# @return [Array<String>] Hostnames for the web app that are enabled.
|
|
37
|
+
# Hostnames need to be assigned and enabled. If some hostnames are
|
|
38
|
+
# assigned but not enabled
|
|
39
|
+
# the app is not served on those hostnames
|
|
40
|
+
attr_accessor :enabled_host_names
|
|
41
|
+
|
|
42
|
+
# @return [SiteAvailabilityState] Management information availability
|
|
43
|
+
# state for the web app. Possible values are Normal or Limited.
|
|
44
|
+
# Normal means that the site is running correctly and that
|
|
45
|
+
# management information for the site is available.
|
|
46
|
+
# Limited means that only partial management information for
|
|
47
|
+
# the site is available and that detailed site information is
|
|
48
|
+
# unavailable. Possible values include: 'Normal', 'Limited',
|
|
49
|
+
# 'DisasterRecoveryMode'
|
|
50
|
+
attr_accessor :availability_state
|
|
51
|
+
|
|
52
|
+
# @return [Array<HostNameSslState>] Hostname SSL states are used to
|
|
53
|
+
# manage the SSL bindings for site's hostnames.
|
|
54
|
+
attr_accessor :host_name_ssl_states
|
|
55
|
+
|
|
56
|
+
# @return [String]
|
|
57
|
+
attr_accessor :server_farm_id
|
|
58
|
+
|
|
59
|
+
# @return [DateTime] Last time web app was modified in UTC
|
|
60
|
+
attr_accessor :last_modified_time_utc
|
|
61
|
+
|
|
62
|
+
# @return [SiteConfig] Configuration of web app
|
|
63
|
+
attr_accessor :site_config
|
|
64
|
+
|
|
65
|
+
# @return [Array<String>] Read-only list of Azure Traffic manager
|
|
66
|
+
# hostnames associated with web app
|
|
67
|
+
attr_accessor :traffic_manager_host_names
|
|
68
|
+
|
|
69
|
+
# @return [Boolean] If set indicates whether web app is deployed as a
|
|
70
|
+
# premium app
|
|
71
|
+
attr_accessor :premium_app_deployed
|
|
72
|
+
|
|
73
|
+
# @return [Boolean] If set indicates whether to stop SCM (KUDU) site
|
|
74
|
+
# when the web app is stopped. Default is false.
|
|
75
|
+
attr_accessor :scm_site_also_stopped
|
|
76
|
+
|
|
77
|
+
# @return [String] Read-only property that specifies which slot this app
|
|
78
|
+
# will swap into
|
|
79
|
+
attr_accessor :target_swap_slot
|
|
80
|
+
|
|
81
|
+
# @return [HostingEnvironmentProfile] Specification for the hosting
|
|
82
|
+
# environment (App Service Environment) to use for the web app
|
|
83
|
+
attr_accessor :hosting_environment_profile
|
|
84
|
+
|
|
85
|
+
# @return [String]
|
|
86
|
+
attr_accessor :micro_service
|
|
87
|
+
|
|
88
|
+
# @return [String] Name of gateway app associated with web app
|
|
89
|
+
attr_accessor :gateway_site_name
|
|
90
|
+
|
|
91
|
+
# @return [Boolean] Specifies if the client affinity is enabled when
|
|
92
|
+
# load balancing http request for multiple instances of the web app
|
|
93
|
+
attr_accessor :client_affinity_enabled
|
|
94
|
+
|
|
95
|
+
# @return [Boolean] Specifies if the client certificate is enabled for
|
|
96
|
+
# the web app
|
|
97
|
+
attr_accessor :client_cert_enabled
|
|
98
|
+
|
|
99
|
+
# @return [Boolean] Specifies if the public hostnames are disabled the
|
|
100
|
+
# web app.
|
|
101
|
+
# If set to true the app is only accessible via API
|
|
102
|
+
# Management process
|
|
103
|
+
attr_accessor :host_names_disabled
|
|
104
|
+
|
|
105
|
+
# @return [String] List of comma separated IP addresses that this web
|
|
106
|
+
# app uses for outbound connections. Those can be used when configuring
|
|
107
|
+
# firewall rules for databases accessed by this web app.
|
|
108
|
+
attr_accessor :outbound_ip_addresses
|
|
109
|
+
|
|
110
|
+
# @return [CloningInfo] This is only valid for web app creation. If
|
|
111
|
+
# specified, web app is cloned from
|
|
112
|
+
# a source web app
|
|
113
|
+
attr_accessor :cloning_info
|
|
114
|
+
|
|
115
|
+
# @return [String] Resource group web app belongs to
|
|
116
|
+
attr_accessor :resource_group
|
|
117
|
+
|
|
118
|
+
#
|
|
119
|
+
# Validate the object. Throws ValidationError if validation fails.
|
|
120
|
+
#
|
|
121
|
+
def validate
|
|
122
|
+
@host_names.each{ |e| e.validate if e.respond_to?(:validate) } unless @host_names.nil?
|
|
123
|
+
@enabled_host_names.each{ |e| e.validate if e.respond_to?(:validate) } unless @enabled_host_names.nil?
|
|
124
|
+
@host_name_ssl_states.each{ |e| e.validate if e.respond_to?(:validate) } unless @host_name_ssl_states.nil?
|
|
125
|
+
@site_config.validate unless @site_config.nil?
|
|
126
|
+
@traffic_manager_host_names.each{ |e| e.validate if e.respond_to?(:validate) } unless @traffic_manager_host_names.nil?
|
|
127
|
+
@hosting_environment_profile.validate unless @hosting_environment_profile.nil?
|
|
128
|
+
@cloning_info.validate unless @cloning_info.nil?
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
#
|
|
132
|
+
# Serializes given Model object into Ruby Hash.
|
|
133
|
+
# @param object Model object to serialize.
|
|
134
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
|
135
|
+
#
|
|
136
|
+
def self.serialize_object(object)
|
|
137
|
+
object.validate
|
|
138
|
+
output_object = {}
|
|
139
|
+
|
|
140
|
+
serialized_property = object.name
|
|
141
|
+
output_object['name'] = serialized_property unless serialized_property.nil?
|
|
142
|
+
|
|
143
|
+
serialized_property = object.state
|
|
144
|
+
output_object['state'] = serialized_property unless serialized_property.nil?
|
|
145
|
+
|
|
146
|
+
serialized_property = object.host_names
|
|
147
|
+
output_object['hostNames'] = serialized_property unless serialized_property.nil?
|
|
148
|
+
|
|
149
|
+
serialized_property = object.repository_site_name
|
|
150
|
+
output_object['repositorySiteName'] = serialized_property unless serialized_property.nil?
|
|
151
|
+
|
|
152
|
+
serialized_property = object.usage_state
|
|
153
|
+
output_object['usageState'] = serialized_property unless serialized_property.nil?
|
|
154
|
+
|
|
155
|
+
serialized_property = object.enabled
|
|
156
|
+
output_object['enabled'] = serialized_property unless serialized_property.nil?
|
|
157
|
+
|
|
158
|
+
serialized_property = object.enabled_host_names
|
|
159
|
+
output_object['enabledHostNames'] = serialized_property unless serialized_property.nil?
|
|
160
|
+
|
|
161
|
+
serialized_property = object.availability_state
|
|
162
|
+
output_object['availabilityState'] = serialized_property unless serialized_property.nil?
|
|
163
|
+
|
|
164
|
+
serialized_property = object.host_name_ssl_states
|
|
165
|
+
unless serialized_property.nil?
|
|
166
|
+
serializedArray = []
|
|
167
|
+
serialized_property.each do |element2|
|
|
168
|
+
unless element2.nil?
|
|
169
|
+
element2 = HostNameSslState.serialize_object(element2)
|
|
170
|
+
end
|
|
171
|
+
serializedArray.push(element2)
|
|
172
|
+
end
|
|
173
|
+
serialized_property = serializedArray
|
|
174
|
+
end
|
|
175
|
+
output_object['hostNameSslStates'] = serialized_property unless serialized_property.nil?
|
|
176
|
+
|
|
177
|
+
serialized_property = object.server_farm_id
|
|
178
|
+
output_object['serverFarmId'] = serialized_property unless serialized_property.nil?
|
|
179
|
+
|
|
180
|
+
serialized_property = object.last_modified_time_utc
|
|
181
|
+
serialized_property = serialized_property.new_offset(0).strftime('%FT%TZ')
|
|
182
|
+
output_object['lastModifiedTimeUtc'] = serialized_property unless serialized_property.nil?
|
|
183
|
+
|
|
184
|
+
serialized_property = object.site_config
|
|
185
|
+
unless serialized_property.nil?
|
|
186
|
+
serialized_property = SiteConfig.serialize_object(serialized_property)
|
|
187
|
+
end
|
|
188
|
+
output_object['siteConfig'] = serialized_property unless serialized_property.nil?
|
|
189
|
+
|
|
190
|
+
serialized_property = object.traffic_manager_host_names
|
|
191
|
+
output_object['trafficManagerHostNames'] = serialized_property unless serialized_property.nil?
|
|
192
|
+
|
|
193
|
+
serialized_property = object.premium_app_deployed
|
|
194
|
+
output_object['premiumAppDeployed'] = serialized_property unless serialized_property.nil?
|
|
195
|
+
|
|
196
|
+
serialized_property = object.scm_site_also_stopped
|
|
197
|
+
output_object['scmSiteAlsoStopped'] = serialized_property unless serialized_property.nil?
|
|
198
|
+
|
|
199
|
+
serialized_property = object.target_swap_slot
|
|
200
|
+
output_object['targetSwapSlot'] = serialized_property unless serialized_property.nil?
|
|
201
|
+
|
|
202
|
+
serialized_property = object.hosting_environment_profile
|
|
203
|
+
unless serialized_property.nil?
|
|
204
|
+
serialized_property = HostingEnvironmentProfile.serialize_object(serialized_property)
|
|
205
|
+
end
|
|
206
|
+
output_object['hostingEnvironmentProfile'] = serialized_property unless serialized_property.nil?
|
|
207
|
+
|
|
208
|
+
serialized_property = object.micro_service
|
|
209
|
+
output_object['microService'] = serialized_property unless serialized_property.nil?
|
|
210
|
+
|
|
211
|
+
serialized_property = object.gateway_site_name
|
|
212
|
+
output_object['gatewaySiteName'] = serialized_property unless serialized_property.nil?
|
|
213
|
+
|
|
214
|
+
serialized_property = object.client_affinity_enabled
|
|
215
|
+
output_object['clientAffinityEnabled'] = serialized_property unless serialized_property.nil?
|
|
216
|
+
|
|
217
|
+
serialized_property = object.client_cert_enabled
|
|
218
|
+
output_object['clientCertEnabled'] = serialized_property unless serialized_property.nil?
|
|
219
|
+
|
|
220
|
+
serialized_property = object.host_names_disabled
|
|
221
|
+
output_object['hostNamesDisabled'] = serialized_property unless serialized_property.nil?
|
|
222
|
+
|
|
223
|
+
serialized_property = object.outbound_ip_addresses
|
|
224
|
+
output_object['outboundIpAddresses'] = serialized_property unless serialized_property.nil?
|
|
225
|
+
|
|
226
|
+
serialized_property = object.cloning_info
|
|
227
|
+
unless serialized_property.nil?
|
|
228
|
+
serialized_property = CloningInfo.serialize_object(serialized_property)
|
|
229
|
+
end
|
|
230
|
+
output_object['cloningInfo'] = serialized_property unless serialized_property.nil?
|
|
231
|
+
|
|
232
|
+
serialized_property = object.resource_group
|
|
233
|
+
output_object['resourceGroup'] = serialized_property unless serialized_property.nil?
|
|
234
|
+
|
|
235
|
+
output_object
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
#
|
|
239
|
+
# Deserializes given Ruby Hash into Model object.
|
|
240
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
|
241
|
+
# @return [SiteProperties] Deserialized object.
|
|
242
|
+
#
|
|
243
|
+
def self.deserialize_object(object)
|
|
244
|
+
return if object.nil?
|
|
245
|
+
output_object = SiteProperties.new
|
|
246
|
+
|
|
247
|
+
deserialized_property = object['name']
|
|
248
|
+
output_object.name = deserialized_property
|
|
249
|
+
|
|
250
|
+
deserialized_property = object['state']
|
|
251
|
+
output_object.state = deserialized_property
|
|
252
|
+
|
|
253
|
+
deserialized_property = object['hostNames']
|
|
254
|
+
output_object.host_names = deserialized_property
|
|
255
|
+
|
|
256
|
+
deserialized_property = object['repositorySiteName']
|
|
257
|
+
output_object.repository_site_name = deserialized_property
|
|
258
|
+
|
|
259
|
+
deserialized_property = object['usageState']
|
|
260
|
+
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
|
261
|
+
enum_is_valid = UsageState.constants.any? { |e| UsageState.const_get(e).to_s.downcase == deserialized_property.downcase }
|
|
262
|
+
warn 'Enum UsageState does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
|
|
263
|
+
end
|
|
264
|
+
output_object.usage_state = deserialized_property
|
|
265
|
+
|
|
266
|
+
deserialized_property = object['enabled']
|
|
267
|
+
output_object.enabled = deserialized_property
|
|
268
|
+
|
|
269
|
+
deserialized_property = object['enabledHostNames']
|
|
270
|
+
output_object.enabled_host_names = deserialized_property
|
|
271
|
+
|
|
272
|
+
deserialized_property = object['availabilityState']
|
|
273
|
+
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
|
274
|
+
enum_is_valid = SiteAvailabilityState.constants.any? { |e| SiteAvailabilityState.const_get(e).to_s.downcase == deserialized_property.downcase }
|
|
275
|
+
warn 'Enum SiteAvailabilityState does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
|
|
276
|
+
end
|
|
277
|
+
output_object.availability_state = deserialized_property
|
|
278
|
+
|
|
279
|
+
deserialized_property = object['hostNameSslStates']
|
|
280
|
+
unless deserialized_property.nil?
|
|
281
|
+
deserialized_array = []
|
|
282
|
+
deserialized_property.each do |element6|
|
|
283
|
+
unless element6.nil?
|
|
284
|
+
element6 = HostNameSslState.deserialize_object(element6)
|
|
285
|
+
end
|
|
286
|
+
deserialized_array.push(element6)
|
|
287
|
+
end
|
|
288
|
+
deserialized_property = deserialized_array
|
|
289
|
+
end
|
|
290
|
+
output_object.host_name_ssl_states = deserialized_property
|
|
291
|
+
|
|
292
|
+
deserialized_property = object['serverFarmId']
|
|
293
|
+
output_object.server_farm_id = deserialized_property
|
|
294
|
+
|
|
295
|
+
deserialized_property = object['lastModifiedTimeUtc']
|
|
296
|
+
deserialized_property = DateTime.parse(deserialized_property) unless deserialized_property.to_s.empty?
|
|
297
|
+
output_object.last_modified_time_utc = deserialized_property
|
|
298
|
+
|
|
299
|
+
deserialized_property = object['siteConfig']
|
|
300
|
+
unless deserialized_property.nil?
|
|
301
|
+
deserialized_property = SiteConfig.deserialize_object(deserialized_property)
|
|
302
|
+
end
|
|
303
|
+
output_object.site_config = deserialized_property
|
|
304
|
+
|
|
305
|
+
deserialized_property = object['trafficManagerHostNames']
|
|
306
|
+
output_object.traffic_manager_host_names = deserialized_property
|
|
307
|
+
|
|
308
|
+
deserialized_property = object['premiumAppDeployed']
|
|
309
|
+
output_object.premium_app_deployed = deserialized_property
|
|
310
|
+
|
|
311
|
+
deserialized_property = object['scmSiteAlsoStopped']
|
|
312
|
+
output_object.scm_site_also_stopped = deserialized_property
|
|
313
|
+
|
|
314
|
+
deserialized_property = object['targetSwapSlot']
|
|
315
|
+
output_object.target_swap_slot = deserialized_property
|
|
316
|
+
|
|
317
|
+
deserialized_property = object['hostingEnvironmentProfile']
|
|
318
|
+
unless deserialized_property.nil?
|
|
319
|
+
deserialized_property = HostingEnvironmentProfile.deserialize_object(deserialized_property)
|
|
320
|
+
end
|
|
321
|
+
output_object.hosting_environment_profile = deserialized_property
|
|
322
|
+
|
|
323
|
+
deserialized_property = object['microService']
|
|
324
|
+
output_object.micro_service = deserialized_property
|
|
325
|
+
|
|
326
|
+
deserialized_property = object['gatewaySiteName']
|
|
327
|
+
output_object.gateway_site_name = deserialized_property
|
|
328
|
+
|
|
329
|
+
deserialized_property = object['clientAffinityEnabled']
|
|
330
|
+
output_object.client_affinity_enabled = deserialized_property
|
|
331
|
+
|
|
332
|
+
deserialized_property = object['clientCertEnabled']
|
|
333
|
+
output_object.client_cert_enabled = deserialized_property
|
|
334
|
+
|
|
335
|
+
deserialized_property = object['hostNamesDisabled']
|
|
336
|
+
output_object.host_names_disabled = deserialized_property
|
|
337
|
+
|
|
338
|
+
deserialized_property = object['outboundIpAddresses']
|
|
339
|
+
output_object.outbound_ip_addresses = deserialized_property
|
|
340
|
+
|
|
341
|
+
deserialized_property = object['cloningInfo']
|
|
342
|
+
unless deserialized_property.nil?
|
|
343
|
+
deserialized_property = CloningInfo.deserialize_object(deserialized_property)
|
|
344
|
+
end
|
|
345
|
+
output_object.cloning_info = deserialized_property
|
|
346
|
+
|
|
347
|
+
deserialized_property = object['resourceGroup']
|
|
348
|
+
output_object.resource_group = deserialized_property
|
|
349
|
+
|
|
350
|
+
output_object
|
|
351
|
+
end
|
|
352
|
+
end
|
|
353
|
+
end
|
|
354
|
+
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
|
+
# Describes the source control configuration for web app
|
|
10
|
+
#
|
|
11
|
+
class SiteSourceControl < MsRestAzure::Resource
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [SiteSourceControlProperties]
|
|
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 = SiteSourceControlProperties.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 [SiteSourceControl] Deserialized object.
|
|
62
|
+
#
|
|
63
|
+
def self.deserialize_object(object)
|
|
64
|
+
return if object.nil?
|
|
65
|
+
output_object = SiteSourceControl.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 = SiteSourceControlProperties.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,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
|
+
# Model object.
|
|
10
|
+
#
|
|
11
|
+
class SiteSourceControlProperties
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [String] Repository or source control url
|
|
16
|
+
attr_accessor :repo_url
|
|
17
|
+
|
|
18
|
+
# @return [String] Name of branch to use for deployment
|
|
19
|
+
attr_accessor :branch
|
|
20
|
+
|
|
21
|
+
# @return [Boolean] Whether to manual or continuous integration
|
|
22
|
+
attr_accessor :is_manual_integration
|
|
23
|
+
|
|
24
|
+
# @return [Boolean] Whether to manual or continuous integration
|
|
25
|
+
attr_accessor :deployment_rollback_enabled
|
|
26
|
+
|
|
27
|
+
# @return [Boolean] Mercurial or Git repository type
|
|
28
|
+
attr_accessor :is_mercurial
|
|
29
|
+
|
|
30
|
+
#
|
|
31
|
+
# Validate the object. Throws ValidationError if validation fails.
|
|
32
|
+
#
|
|
33
|
+
def validate
|
|
34
|
+
# Nothing to validate
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
#
|
|
38
|
+
# Serializes given Model object into Ruby Hash.
|
|
39
|
+
# @param object Model object to serialize.
|
|
40
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
|
41
|
+
#
|
|
42
|
+
def self.serialize_object(object)
|
|
43
|
+
object.validate
|
|
44
|
+
output_object = {}
|
|
45
|
+
|
|
46
|
+
serialized_property = object.repo_url
|
|
47
|
+
output_object['repoUrl'] = serialized_property unless serialized_property.nil?
|
|
48
|
+
|
|
49
|
+
serialized_property = object.branch
|
|
50
|
+
output_object['branch'] = serialized_property unless serialized_property.nil?
|
|
51
|
+
|
|
52
|
+
serialized_property = object.is_manual_integration
|
|
53
|
+
output_object['isManualIntegration'] = serialized_property unless serialized_property.nil?
|
|
54
|
+
|
|
55
|
+
serialized_property = object.deployment_rollback_enabled
|
|
56
|
+
output_object['deploymentRollbackEnabled'] = serialized_property unless serialized_property.nil?
|
|
57
|
+
|
|
58
|
+
serialized_property = object.is_mercurial
|
|
59
|
+
output_object['isMercurial'] = serialized_property unless serialized_property.nil?
|
|
60
|
+
|
|
61
|
+
output_object
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
#
|
|
65
|
+
# Deserializes given Ruby Hash into Model object.
|
|
66
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
|
67
|
+
# @return [SiteSourceControlProperties] Deserialized object.
|
|
68
|
+
#
|
|
69
|
+
def self.deserialize_object(object)
|
|
70
|
+
return if object.nil?
|
|
71
|
+
output_object = SiteSourceControlProperties.new
|
|
72
|
+
|
|
73
|
+
deserialized_property = object['repoUrl']
|
|
74
|
+
output_object.repo_url = deserialized_property
|
|
75
|
+
|
|
76
|
+
deserialized_property = object['branch']
|
|
77
|
+
output_object.branch = deserialized_property
|
|
78
|
+
|
|
79
|
+
deserialized_property = object['isManualIntegration']
|
|
80
|
+
output_object.is_manual_integration = deserialized_property
|
|
81
|
+
|
|
82
|
+
deserialized_property = object['deploymentRollbackEnabled']
|
|
83
|
+
output_object.deployment_rollback_enabled = deserialized_property
|
|
84
|
+
|
|
85
|
+
deserialized_property = object['isMercurial']
|
|
86
|
+
output_object.is_mercurial = deserialized_property
|
|
87
|
+
|
|
88
|
+
output_object
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
end
|