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,108 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
|
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
|
+
# regenerated.
|
|
5
|
+
|
|
6
|
+
module Azure::ARM::Web
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# App Service Plan Model
|
|
10
|
+
#
|
|
11
|
+
class ServerFarmWithRichSku < MsRestAzure::Resource
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [ServerFarmWithRichSkuProperties]
|
|
16
|
+
attr_accessor :properties
|
|
17
|
+
|
|
18
|
+
# @return [SkuDescription]
|
|
19
|
+
attr_accessor :sku
|
|
20
|
+
|
|
21
|
+
#
|
|
22
|
+
# Validate the object. Throws ValidationError if validation fails.
|
|
23
|
+
#
|
|
24
|
+
def validate
|
|
25
|
+
@properties.validate unless @properties.nil?
|
|
26
|
+
@sku.validate unless @sku.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.location
|
|
39
|
+
output_object['location'] = serialized_property unless serialized_property.nil?
|
|
40
|
+
|
|
41
|
+
serialized_property = object.id
|
|
42
|
+
output_object['id'] = 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.type
|
|
48
|
+
output_object['type'] = serialized_property unless serialized_property.nil?
|
|
49
|
+
|
|
50
|
+
serialized_property = object.tags
|
|
51
|
+
output_object['tags'] = serialized_property unless serialized_property.nil?
|
|
52
|
+
|
|
53
|
+
serialized_property = object.properties
|
|
54
|
+
unless serialized_property.nil?
|
|
55
|
+
serialized_property = ServerFarmWithRichSkuProperties.serialize_object(serialized_property)
|
|
56
|
+
end
|
|
57
|
+
output_object['properties'] = serialized_property unless serialized_property.nil?
|
|
58
|
+
|
|
59
|
+
serialized_property = object.sku
|
|
60
|
+
unless serialized_property.nil?
|
|
61
|
+
serialized_property = SkuDescription.serialize_object(serialized_property)
|
|
62
|
+
end
|
|
63
|
+
output_object['sku'] = serialized_property unless serialized_property.nil?
|
|
64
|
+
|
|
65
|
+
output_object
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
#
|
|
69
|
+
# Deserializes given Ruby Hash into Model object.
|
|
70
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
|
71
|
+
# @return [ServerFarmWithRichSku] Deserialized object.
|
|
72
|
+
#
|
|
73
|
+
def self.deserialize_object(object)
|
|
74
|
+
return if object.nil?
|
|
75
|
+
output_object = ServerFarmWithRichSku.new
|
|
76
|
+
|
|
77
|
+
deserialized_property = object['location']
|
|
78
|
+
output_object.location = deserialized_property
|
|
79
|
+
|
|
80
|
+
deserialized_property = object['id']
|
|
81
|
+
output_object.id = deserialized_property
|
|
82
|
+
|
|
83
|
+
deserialized_property = object['name']
|
|
84
|
+
output_object.name = deserialized_property
|
|
85
|
+
|
|
86
|
+
deserialized_property = object['type']
|
|
87
|
+
output_object.type = deserialized_property
|
|
88
|
+
|
|
89
|
+
deserialized_property = object['tags']
|
|
90
|
+
output_object.tags = deserialized_property
|
|
91
|
+
|
|
92
|
+
deserialized_property = object['properties']
|
|
93
|
+
unless deserialized_property.nil?
|
|
94
|
+
deserialized_property = ServerFarmWithRichSkuProperties.deserialize_object(deserialized_property)
|
|
95
|
+
end
|
|
96
|
+
output_object.properties = deserialized_property
|
|
97
|
+
|
|
98
|
+
deserialized_property = object['sku']
|
|
99
|
+
unless deserialized_property.nil?
|
|
100
|
+
deserialized_property = SkuDescription.deserialize_object(deserialized_property)
|
|
101
|
+
end
|
|
102
|
+
output_object.sku = deserialized_property
|
|
103
|
+
|
|
104
|
+
output_object
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
end
|
|
@@ -0,0 +1,164 @@
|
|
|
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 ServerFarmWithRichSkuProperties
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [String] Name for the App Service Plan
|
|
16
|
+
attr_accessor :name
|
|
17
|
+
|
|
18
|
+
# @return [String] Target worker tier assigned to the App Service Plan
|
|
19
|
+
attr_accessor :worker_tier_name
|
|
20
|
+
|
|
21
|
+
# @return [StatusOptions] App Service Plan Status. Possible values
|
|
22
|
+
# include: 'Ready', 'Pending'
|
|
23
|
+
attr_accessor :status
|
|
24
|
+
|
|
25
|
+
# @return [String] App Service Plan Subscription
|
|
26
|
+
attr_accessor :subscription
|
|
27
|
+
|
|
28
|
+
# @return [String] App Service Plan administration site
|
|
29
|
+
attr_accessor :admin_site_name
|
|
30
|
+
|
|
31
|
+
# @return [HostingEnvironmentProfile] Specification for the hosting
|
|
32
|
+
# environment (App Service Environment) to use for the App Service Plan
|
|
33
|
+
attr_accessor :hosting_environment_profile
|
|
34
|
+
|
|
35
|
+
# @return [Integer] Maximum number of instances that can be assigned to
|
|
36
|
+
# this App Service Plan
|
|
37
|
+
attr_accessor :maximum_number_of_workers
|
|
38
|
+
|
|
39
|
+
# @return [String] Geographical location for the App Service Plan
|
|
40
|
+
attr_accessor :geo_region
|
|
41
|
+
|
|
42
|
+
# @return [Boolean] If True apps assigned to this App Service Plan can
|
|
43
|
+
# be scaled independently
|
|
44
|
+
# If False apps assigned to this App Service Plan will scale
|
|
45
|
+
# to all instances of the plan
|
|
46
|
+
attr_accessor :per_site_scaling
|
|
47
|
+
|
|
48
|
+
# @return [Integer] Number of web apps assigned to this App Service Plan
|
|
49
|
+
attr_accessor :number_of_sites
|
|
50
|
+
|
|
51
|
+
# @return [String] Resource group of the serverfarm
|
|
52
|
+
attr_accessor :resource_group
|
|
53
|
+
|
|
54
|
+
#
|
|
55
|
+
# Validate the object. Throws ValidationError if validation fails.
|
|
56
|
+
#
|
|
57
|
+
def validate
|
|
58
|
+
@hosting_environment_profile.validate unless @hosting_environment_profile.nil?
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
#
|
|
62
|
+
# Serializes given Model object into Ruby Hash.
|
|
63
|
+
# @param object Model object to serialize.
|
|
64
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
|
65
|
+
#
|
|
66
|
+
def self.serialize_object(object)
|
|
67
|
+
object.validate
|
|
68
|
+
output_object = {}
|
|
69
|
+
|
|
70
|
+
serialized_property = object.name
|
|
71
|
+
output_object['name'] = serialized_property unless serialized_property.nil?
|
|
72
|
+
|
|
73
|
+
serialized_property = object.worker_tier_name
|
|
74
|
+
output_object['workerTierName'] = serialized_property unless serialized_property.nil?
|
|
75
|
+
|
|
76
|
+
serialized_property = object.status
|
|
77
|
+
output_object['status'] = serialized_property unless serialized_property.nil?
|
|
78
|
+
|
|
79
|
+
serialized_property = object.subscription
|
|
80
|
+
output_object['subscription'] = serialized_property unless serialized_property.nil?
|
|
81
|
+
|
|
82
|
+
serialized_property = object.admin_site_name
|
|
83
|
+
output_object['adminSiteName'] = serialized_property unless serialized_property.nil?
|
|
84
|
+
|
|
85
|
+
serialized_property = object.hosting_environment_profile
|
|
86
|
+
unless serialized_property.nil?
|
|
87
|
+
serialized_property = HostingEnvironmentProfile.serialize_object(serialized_property)
|
|
88
|
+
end
|
|
89
|
+
output_object['hostingEnvironmentProfile'] = serialized_property unless serialized_property.nil?
|
|
90
|
+
|
|
91
|
+
serialized_property = object.maximum_number_of_workers
|
|
92
|
+
output_object['maximumNumberOfWorkers'] = serialized_property unless serialized_property.nil?
|
|
93
|
+
|
|
94
|
+
serialized_property = object.geo_region
|
|
95
|
+
output_object['geoRegion'] = serialized_property unless serialized_property.nil?
|
|
96
|
+
|
|
97
|
+
serialized_property = object.per_site_scaling
|
|
98
|
+
output_object['perSiteScaling'] = serialized_property unless serialized_property.nil?
|
|
99
|
+
|
|
100
|
+
serialized_property = object.number_of_sites
|
|
101
|
+
output_object['numberOfSites'] = serialized_property unless serialized_property.nil?
|
|
102
|
+
|
|
103
|
+
serialized_property = object.resource_group
|
|
104
|
+
output_object['resourceGroup'] = 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 [ServerFarmWithRichSkuProperties] Deserialized object.
|
|
113
|
+
#
|
|
114
|
+
def self.deserialize_object(object)
|
|
115
|
+
return if object.nil?
|
|
116
|
+
output_object = ServerFarmWithRichSkuProperties.new
|
|
117
|
+
|
|
118
|
+
deserialized_property = object['name']
|
|
119
|
+
output_object.name = deserialized_property
|
|
120
|
+
|
|
121
|
+
deserialized_property = object['workerTierName']
|
|
122
|
+
output_object.worker_tier_name = deserialized_property
|
|
123
|
+
|
|
124
|
+
deserialized_property = object['status']
|
|
125
|
+
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
|
126
|
+
enum_is_valid = StatusOptions.constants.any? { |e| StatusOptions.const_get(e).to_s.downcase == deserialized_property.downcase }
|
|
127
|
+
warn 'Enum StatusOptions does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
|
|
128
|
+
end
|
|
129
|
+
output_object.status = deserialized_property
|
|
130
|
+
|
|
131
|
+
deserialized_property = object['subscription']
|
|
132
|
+
output_object.subscription = deserialized_property
|
|
133
|
+
|
|
134
|
+
deserialized_property = object['adminSiteName']
|
|
135
|
+
output_object.admin_site_name = deserialized_property
|
|
136
|
+
|
|
137
|
+
deserialized_property = object['hostingEnvironmentProfile']
|
|
138
|
+
unless deserialized_property.nil?
|
|
139
|
+
deserialized_property = HostingEnvironmentProfile.deserialize_object(deserialized_property)
|
|
140
|
+
end
|
|
141
|
+
output_object.hosting_environment_profile = deserialized_property
|
|
142
|
+
|
|
143
|
+
deserialized_property = object['maximumNumberOfWorkers']
|
|
144
|
+
deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
|
|
145
|
+
output_object.maximum_number_of_workers = deserialized_property
|
|
146
|
+
|
|
147
|
+
deserialized_property = object['geoRegion']
|
|
148
|
+
output_object.geo_region = deserialized_property
|
|
149
|
+
|
|
150
|
+
deserialized_property = object['perSiteScaling']
|
|
151
|
+
output_object.per_site_scaling = deserialized_property
|
|
152
|
+
|
|
153
|
+
deserialized_property = object['numberOfSites']
|
|
154
|
+
deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
|
|
155
|
+
output_object.number_of_sites = deserialized_property
|
|
156
|
+
|
|
157
|
+
deserialized_property = object['resourceGroup']
|
|
158
|
+
output_object.resource_group = deserialized_property
|
|
159
|
+
|
|
160
|
+
output_object
|
|
161
|
+
end
|
|
162
|
+
end
|
|
163
|
+
end
|
|
164
|
+
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
|
+
# Represents a web app
|
|
10
|
+
#
|
|
11
|
+
class Site < MsRestAzure::Resource
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [SiteProperties]
|
|
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 = SiteProperties.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 [Site] Deserialized object.
|
|
62
|
+
#
|
|
63
|
+
def self.deserialize_object(object)
|
|
64
|
+
return if object.nil?
|
|
65
|
+
output_object = Site.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 = SiteProperties.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,379 @@
|
|
|
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
|
+
# Configuration settings for the Azure App Service Authentication /
|
|
10
|
+
# Authorization feature.
|
|
11
|
+
#
|
|
12
|
+
class SiteAuthSettings
|
|
13
|
+
|
|
14
|
+
include MsRestAzure
|
|
15
|
+
|
|
16
|
+
# @return [Boolean] Gets or sets a value indicating whether the
|
|
17
|
+
# Authentication / Authorization feature is enabled for the current app.
|
|
18
|
+
attr_accessor :enabled
|
|
19
|
+
|
|
20
|
+
# @return [String] Gets or sets the relative path prefix used by
|
|
21
|
+
# platform HTTP APIs.
|
|
22
|
+
# Changing this value is not recommended except for
|
|
23
|
+
# compatibility reasons.
|
|
24
|
+
attr_accessor :http_api_prefix_path
|
|
25
|
+
|
|
26
|
+
# @return [UnauthenticatedClientAction] Gets or sets the action to take
|
|
27
|
+
# when an unauthenticated client attempts to access the app. Possible
|
|
28
|
+
# values include: 'RedirectToLoginPage', 'AllowAnonymous'
|
|
29
|
+
attr_accessor :unauthenticated_client_action
|
|
30
|
+
|
|
31
|
+
# @return [Boolean] Gets or sets a value indicating whether to durably
|
|
32
|
+
# store platform-specific security tokens
|
|
33
|
+
# obtained during login flows. This capability is disabled
|
|
34
|
+
# by default.
|
|
35
|
+
attr_accessor :token_store_enabled
|
|
36
|
+
|
|
37
|
+
# @return [Array<String>] Gets or sets a collection of external URLs
|
|
38
|
+
# that can be redirected to as part of logging in
|
|
39
|
+
# or logging out of the web app. Note that the query string
|
|
40
|
+
# part of the URL is ignored.
|
|
41
|
+
# This is an advanced setting typically only needed by
|
|
42
|
+
# Windows Store application backends.
|
|
43
|
+
# Note that URLs within the current domain are always
|
|
44
|
+
# implicitly allowed.
|
|
45
|
+
attr_accessor :allowed_external_redirect_urls
|
|
46
|
+
|
|
47
|
+
# @return [BuiltInAuthenticationProvider] Gets or sets the default
|
|
48
|
+
# authentication provider to use when multiple providers are
|
|
49
|
+
# configured.
|
|
50
|
+
# This setting is only needed if multiple providers are
|
|
51
|
+
# configured and the unauthenticated client
|
|
52
|
+
# action is set to "RedirectToLoginPage". Possible values
|
|
53
|
+
# include: 'AzureActiveDirectory', 'Facebook', 'Google',
|
|
54
|
+
# 'MicrosoftAccount', 'Twitter'
|
|
55
|
+
attr_accessor :default_provider
|
|
56
|
+
|
|
57
|
+
# @return [String] Gets or sets the Client ID of this relying party
|
|
58
|
+
# application, known as the client_id.
|
|
59
|
+
# This setting is required for enabling OpenID Connection
|
|
60
|
+
# authentication with Azure Active Directory or
|
|
61
|
+
# other 3rd party OpenID Connect providers.
|
|
62
|
+
# More information on OpenID Connect:
|
|
63
|
+
# http://openid.net/specs/openid-connect-core-1_0.html
|
|
64
|
+
attr_accessor :client_id
|
|
65
|
+
|
|
66
|
+
# @return [String] Gets or sets the Client Secret of this relying party
|
|
67
|
+
# application (in Azure Active Directory, this is also referred to as
|
|
68
|
+
# the Key).
|
|
69
|
+
# This setting is optional. If no client secret is
|
|
70
|
+
# configured, the OpenID Connect implicit auth flow is used to
|
|
71
|
+
# authenticate end users.
|
|
72
|
+
# Otherwise, the OpenID Connect Authorization Code Flow is
|
|
73
|
+
# used to authenticate end users.
|
|
74
|
+
# More information on OpenID Connect:
|
|
75
|
+
# http://openid.net/specs/openid-connect-core-1_0.html
|
|
76
|
+
attr_accessor :client_secret
|
|
77
|
+
|
|
78
|
+
# @return [String] Gets or sets the OpenID Connect Issuer URI that
|
|
79
|
+
# represents the entity which issues access tokens for this
|
|
80
|
+
# application.
|
|
81
|
+
# When using Azure Active Directory, this value is the URI
|
|
82
|
+
# of the directory tenant, e.g. https://sts.windows.net/{tenant-guid}/.
|
|
83
|
+
# This URI is a case-sensitive identifier for the token
|
|
84
|
+
# issuer.
|
|
85
|
+
# More information on OpenID Connect Discovery:
|
|
86
|
+
# http://openid.net/specs/openid-connect-discovery-1_0.html
|
|
87
|
+
attr_accessor :issuer
|
|
88
|
+
|
|
89
|
+
# @return [Array<String>] Gets or sets a list of allowed audience values
|
|
90
|
+
# to consider when validating JWTs issued by
|
|
91
|
+
# Azure Active Directory. Note that the
|
|
92
|
+
# {Microsoft.Web.Hosting.Administration.SiteAuthSettings.ClientId}
|
|
93
|
+
# value is always considered an
|
|
94
|
+
# allowed audience, regardless of this setting.
|
|
95
|
+
attr_accessor :allowed_audiences
|
|
96
|
+
|
|
97
|
+
# @return [Array<String>] Gets or sets a list of login parameters to
|
|
98
|
+
# send to the OpenID Connect authorization endpoint when
|
|
99
|
+
# a user logs in. Each parameter must be in the form
|
|
100
|
+
# "key=value".
|
|
101
|
+
attr_accessor :additional_login_params
|
|
102
|
+
|
|
103
|
+
# @return [String]
|
|
104
|
+
attr_accessor :aad_client_id
|
|
105
|
+
|
|
106
|
+
# @return [String]
|
|
107
|
+
attr_accessor :open_id_issuer
|
|
108
|
+
|
|
109
|
+
# @return [String] Gets or sets the OpenID Connect Client ID for the
|
|
110
|
+
# Google web application.
|
|
111
|
+
# This setting is required for enabling Google Sign-In.
|
|
112
|
+
# Google Sign-In documentation:
|
|
113
|
+
# https://developers.google.com/identity/sign-in/web/
|
|
114
|
+
attr_accessor :google_client_id
|
|
115
|
+
|
|
116
|
+
# @return [String] Gets or sets the client secret associated with the
|
|
117
|
+
# Google web application.
|
|
118
|
+
# This setting is required for enabling Google Sign-In.
|
|
119
|
+
# Google Sign-In documentation:
|
|
120
|
+
# https://developers.google.com/identity/sign-in/web/
|
|
121
|
+
attr_accessor :google_client_secret
|
|
122
|
+
|
|
123
|
+
# @return [Array<String>] Gets or sets the OAuth 2.0 scopes that will be
|
|
124
|
+
# requested as part of Google Sign-In authentication.
|
|
125
|
+
# This setting is optional. If not specified, "openid",
|
|
126
|
+
# "profile", and "email" are used as default scopes.
|
|
127
|
+
# Google Sign-In documentation:
|
|
128
|
+
# https://developers.google.com/identity/sign-in/web/
|
|
129
|
+
attr_accessor :google_oauth_scopes
|
|
130
|
+
|
|
131
|
+
# @return [String] Gets or sets the App ID of the Facebook app used for
|
|
132
|
+
# login.
|
|
133
|
+
# This setting is required for enabling Facebook Login.
|
|
134
|
+
# Facebook Login documentation:
|
|
135
|
+
# https://developers.facebook.com/docs/facebook-login
|
|
136
|
+
attr_accessor :facebook_app_id
|
|
137
|
+
|
|
138
|
+
# @return [String] Gets or sets the App Secret of the Facebook app used
|
|
139
|
+
# for Facebook Login.
|
|
140
|
+
# This setting is required for enabling Facebook Login.
|
|
141
|
+
# Facebook Login documentation:
|
|
142
|
+
# https://developers.facebook.com/docs/facebook-login
|
|
143
|
+
attr_accessor :facebook_app_secret
|
|
144
|
+
|
|
145
|
+
# @return [Array<String>] Gets or sets the OAuth 2.0 scopes that will be
|
|
146
|
+
# requested as part of Facebook Login authentication.
|
|
147
|
+
# This setting is optional.
|
|
148
|
+
# Facebook Login documentation:
|
|
149
|
+
# https://developers.facebook.com/docs/facebook-login
|
|
150
|
+
attr_accessor :facebook_oauth_scopes
|
|
151
|
+
|
|
152
|
+
# @return [String] Gets or sets the OAuth 1.0a consumer key of the
|
|
153
|
+
# Twitter application used for sign-in.
|
|
154
|
+
# This setting is required for enabling Twitter Sign-In.
|
|
155
|
+
# Twitter Sign-In documentation:
|
|
156
|
+
# https://dev.twitter.com/web/sign-in
|
|
157
|
+
attr_accessor :twitter_consumer_key
|
|
158
|
+
|
|
159
|
+
# @return [String] Gets or sets the OAuth 1.0a consumer secret of the
|
|
160
|
+
# Twitter application used for sign-in.
|
|
161
|
+
# This setting is required for enabling Twitter Sign-In.
|
|
162
|
+
# Twitter Sign-In documentation:
|
|
163
|
+
# https://dev.twitter.com/web/sign-in
|
|
164
|
+
attr_accessor :twitter_consumer_secret
|
|
165
|
+
|
|
166
|
+
# @return [String] Gets or sets the OAuth 2.0 client ID that was created
|
|
167
|
+
# for the app used for authentication.
|
|
168
|
+
# This setting is required for enabling Microsoft Account
|
|
169
|
+
# authentication.
|
|
170
|
+
# Microsoft Account OAuth documentation:
|
|
171
|
+
# https://dev.onedrive.com/auth/msa_oauth.htm
|
|
172
|
+
attr_accessor :microsoft_account_client_id
|
|
173
|
+
|
|
174
|
+
# @return [String] Gets or sets the OAuth 2.0 client secret that was
|
|
175
|
+
# created for the app used for authentication.
|
|
176
|
+
# This setting is required for enabling Microsoft Account
|
|
177
|
+
# authentication.
|
|
178
|
+
# Microsoft Account OAuth documentation:
|
|
179
|
+
# https://dev.onedrive.com/auth/msa_oauth.htm
|
|
180
|
+
attr_accessor :microsoft_account_client_secret
|
|
181
|
+
|
|
182
|
+
# @return [Array<String>] Gets or sets the OAuth 2.0 scopes that will be
|
|
183
|
+
# requested as part of Microsoft Account authentication.
|
|
184
|
+
# This setting is optional. If not specified, "wl.basic" is
|
|
185
|
+
# used as the default scope.
|
|
186
|
+
# Microsoft Account Scopes and permissions documentation:
|
|
187
|
+
# https://msdn.microsoft.com/en-us/library/dn631845.aspx
|
|
188
|
+
attr_accessor :microsoft_account_oauth_scopes
|
|
189
|
+
|
|
190
|
+
#
|
|
191
|
+
# Validate the object. Throws ValidationError if validation fails.
|
|
192
|
+
#
|
|
193
|
+
def validate
|
|
194
|
+
@allowed_external_redirect_urls.each{ |e| e.validate if e.respond_to?(:validate) } unless @allowed_external_redirect_urls.nil?
|
|
195
|
+
@allowed_audiences.each{ |e| e.validate if e.respond_to?(:validate) } unless @allowed_audiences.nil?
|
|
196
|
+
@additional_login_params.each{ |e| e.validate if e.respond_to?(:validate) } unless @additional_login_params.nil?
|
|
197
|
+
@google_oauth_scopes.each{ |e| e.validate if e.respond_to?(:validate) } unless @google_oauth_scopes.nil?
|
|
198
|
+
@facebook_oauth_scopes.each{ |e| e.validate if e.respond_to?(:validate) } unless @facebook_oauth_scopes.nil?
|
|
199
|
+
@microsoft_account_oauth_scopes.each{ |e| e.validate if e.respond_to?(:validate) } unless @microsoft_account_oauth_scopes.nil?
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
#
|
|
203
|
+
# Serializes given Model object into Ruby Hash.
|
|
204
|
+
# @param object Model object to serialize.
|
|
205
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
|
206
|
+
#
|
|
207
|
+
def self.serialize_object(object)
|
|
208
|
+
object.validate
|
|
209
|
+
output_object = {}
|
|
210
|
+
|
|
211
|
+
serialized_property = object.enabled
|
|
212
|
+
output_object['enabled'] = serialized_property unless serialized_property.nil?
|
|
213
|
+
|
|
214
|
+
serialized_property = object.http_api_prefix_path
|
|
215
|
+
output_object['httpApiPrefixPath'] = serialized_property unless serialized_property.nil?
|
|
216
|
+
|
|
217
|
+
serialized_property = object.unauthenticated_client_action
|
|
218
|
+
output_object['unauthenticatedClientAction'] = serialized_property unless serialized_property.nil?
|
|
219
|
+
|
|
220
|
+
serialized_property = object.token_store_enabled
|
|
221
|
+
output_object['tokenStoreEnabled'] = serialized_property unless serialized_property.nil?
|
|
222
|
+
|
|
223
|
+
serialized_property = object.allowed_external_redirect_urls
|
|
224
|
+
output_object['allowedExternalRedirectUrls'] = serialized_property unless serialized_property.nil?
|
|
225
|
+
|
|
226
|
+
serialized_property = object.default_provider
|
|
227
|
+
output_object['defaultProvider'] = serialized_property unless serialized_property.nil?
|
|
228
|
+
|
|
229
|
+
serialized_property = object.client_id
|
|
230
|
+
output_object['clientId'] = serialized_property unless serialized_property.nil?
|
|
231
|
+
|
|
232
|
+
serialized_property = object.client_secret
|
|
233
|
+
output_object['clientSecret'] = serialized_property unless serialized_property.nil?
|
|
234
|
+
|
|
235
|
+
serialized_property = object.issuer
|
|
236
|
+
output_object['issuer'] = serialized_property unless serialized_property.nil?
|
|
237
|
+
|
|
238
|
+
serialized_property = object.allowed_audiences
|
|
239
|
+
output_object['allowedAudiences'] = serialized_property unless serialized_property.nil?
|
|
240
|
+
|
|
241
|
+
serialized_property = object.additional_login_params
|
|
242
|
+
output_object['additionalLoginParams'] = serialized_property unless serialized_property.nil?
|
|
243
|
+
|
|
244
|
+
serialized_property = object.aad_client_id
|
|
245
|
+
output_object['aadClientId'] = serialized_property unless serialized_property.nil?
|
|
246
|
+
|
|
247
|
+
serialized_property = object.open_id_issuer
|
|
248
|
+
output_object['openIdIssuer'] = serialized_property unless serialized_property.nil?
|
|
249
|
+
|
|
250
|
+
serialized_property = object.google_client_id
|
|
251
|
+
output_object['googleClientId'] = serialized_property unless serialized_property.nil?
|
|
252
|
+
|
|
253
|
+
serialized_property = object.google_client_secret
|
|
254
|
+
output_object['googleClientSecret'] = serialized_property unless serialized_property.nil?
|
|
255
|
+
|
|
256
|
+
serialized_property = object.google_oauth_scopes
|
|
257
|
+
output_object['googleOAuthScopes'] = serialized_property unless serialized_property.nil?
|
|
258
|
+
|
|
259
|
+
serialized_property = object.facebook_app_id
|
|
260
|
+
output_object['facebookAppId'] = serialized_property unless serialized_property.nil?
|
|
261
|
+
|
|
262
|
+
serialized_property = object.facebook_app_secret
|
|
263
|
+
output_object['facebookAppSecret'] = serialized_property unless serialized_property.nil?
|
|
264
|
+
|
|
265
|
+
serialized_property = object.facebook_oauth_scopes
|
|
266
|
+
output_object['facebookOAuthScopes'] = serialized_property unless serialized_property.nil?
|
|
267
|
+
|
|
268
|
+
serialized_property = object.twitter_consumer_key
|
|
269
|
+
output_object['twitterConsumerKey'] = serialized_property unless serialized_property.nil?
|
|
270
|
+
|
|
271
|
+
serialized_property = object.twitter_consumer_secret
|
|
272
|
+
output_object['twitterConsumerSecret'] = serialized_property unless serialized_property.nil?
|
|
273
|
+
|
|
274
|
+
serialized_property = object.microsoft_account_client_id
|
|
275
|
+
output_object['microsoftAccountClientId'] = serialized_property unless serialized_property.nil?
|
|
276
|
+
|
|
277
|
+
serialized_property = object.microsoft_account_client_secret
|
|
278
|
+
output_object['microsoftAccountClientSecret'] = serialized_property unless serialized_property.nil?
|
|
279
|
+
|
|
280
|
+
serialized_property = object.microsoft_account_oauth_scopes
|
|
281
|
+
output_object['microsoftAccountOAuthScopes'] = serialized_property unless serialized_property.nil?
|
|
282
|
+
|
|
283
|
+
output_object
|
|
284
|
+
end
|
|
285
|
+
|
|
286
|
+
#
|
|
287
|
+
# Deserializes given Ruby Hash into Model object.
|
|
288
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
|
289
|
+
# @return [SiteAuthSettings] Deserialized object.
|
|
290
|
+
#
|
|
291
|
+
def self.deserialize_object(object)
|
|
292
|
+
return if object.nil?
|
|
293
|
+
output_object = SiteAuthSettings.new
|
|
294
|
+
|
|
295
|
+
deserialized_property = object['enabled']
|
|
296
|
+
output_object.enabled = deserialized_property
|
|
297
|
+
|
|
298
|
+
deserialized_property = object['httpApiPrefixPath']
|
|
299
|
+
output_object.http_api_prefix_path = deserialized_property
|
|
300
|
+
|
|
301
|
+
deserialized_property = object['unauthenticatedClientAction']
|
|
302
|
+
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
|
303
|
+
enum_is_valid = UnauthenticatedClientAction.constants.any? { |e| UnauthenticatedClientAction.const_get(e).to_s.downcase == deserialized_property.downcase }
|
|
304
|
+
warn 'Enum UnauthenticatedClientAction does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
|
|
305
|
+
end
|
|
306
|
+
output_object.unauthenticated_client_action = deserialized_property
|
|
307
|
+
|
|
308
|
+
deserialized_property = object['tokenStoreEnabled']
|
|
309
|
+
output_object.token_store_enabled = deserialized_property
|
|
310
|
+
|
|
311
|
+
deserialized_property = object['allowedExternalRedirectUrls']
|
|
312
|
+
output_object.allowed_external_redirect_urls = deserialized_property
|
|
313
|
+
|
|
314
|
+
deserialized_property = object['defaultProvider']
|
|
315
|
+
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
|
316
|
+
enum_is_valid = BuiltInAuthenticationProvider.constants.any? { |e| BuiltInAuthenticationProvider.const_get(e).to_s.downcase == deserialized_property.downcase }
|
|
317
|
+
warn 'Enum BuiltInAuthenticationProvider does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
|
|
318
|
+
end
|
|
319
|
+
output_object.default_provider = deserialized_property
|
|
320
|
+
|
|
321
|
+
deserialized_property = object['clientId']
|
|
322
|
+
output_object.client_id = deserialized_property
|
|
323
|
+
|
|
324
|
+
deserialized_property = object['clientSecret']
|
|
325
|
+
output_object.client_secret = deserialized_property
|
|
326
|
+
|
|
327
|
+
deserialized_property = object['issuer']
|
|
328
|
+
output_object.issuer = deserialized_property
|
|
329
|
+
|
|
330
|
+
deserialized_property = object['allowedAudiences']
|
|
331
|
+
output_object.allowed_audiences = deserialized_property
|
|
332
|
+
|
|
333
|
+
deserialized_property = object['additionalLoginParams']
|
|
334
|
+
output_object.additional_login_params = deserialized_property
|
|
335
|
+
|
|
336
|
+
deserialized_property = object['aadClientId']
|
|
337
|
+
output_object.aad_client_id = deserialized_property
|
|
338
|
+
|
|
339
|
+
deserialized_property = object['openIdIssuer']
|
|
340
|
+
output_object.open_id_issuer = deserialized_property
|
|
341
|
+
|
|
342
|
+
deserialized_property = object['googleClientId']
|
|
343
|
+
output_object.google_client_id = deserialized_property
|
|
344
|
+
|
|
345
|
+
deserialized_property = object['googleClientSecret']
|
|
346
|
+
output_object.google_client_secret = deserialized_property
|
|
347
|
+
|
|
348
|
+
deserialized_property = object['googleOAuthScopes']
|
|
349
|
+
output_object.google_oauth_scopes = deserialized_property
|
|
350
|
+
|
|
351
|
+
deserialized_property = object['facebookAppId']
|
|
352
|
+
output_object.facebook_app_id = deserialized_property
|
|
353
|
+
|
|
354
|
+
deserialized_property = object['facebookAppSecret']
|
|
355
|
+
output_object.facebook_app_secret = deserialized_property
|
|
356
|
+
|
|
357
|
+
deserialized_property = object['facebookOAuthScopes']
|
|
358
|
+
output_object.facebook_oauth_scopes = deserialized_property
|
|
359
|
+
|
|
360
|
+
deserialized_property = object['twitterConsumerKey']
|
|
361
|
+
output_object.twitter_consumer_key = deserialized_property
|
|
362
|
+
|
|
363
|
+
deserialized_property = object['twitterConsumerSecret']
|
|
364
|
+
output_object.twitter_consumer_secret = deserialized_property
|
|
365
|
+
|
|
366
|
+
deserialized_property = object['microsoftAccountClientId']
|
|
367
|
+
output_object.microsoft_account_client_id = deserialized_property
|
|
368
|
+
|
|
369
|
+
deserialized_property = object['microsoftAccountClientSecret']
|
|
370
|
+
output_object.microsoft_account_client_secret = deserialized_property
|
|
371
|
+
|
|
372
|
+
deserialized_property = object['microsoftAccountOAuthScopes']
|
|
373
|
+
output_object.microsoft_account_oauth_scopes = deserialized_property
|
|
374
|
+
|
|
375
|
+
output_object
|
|
376
|
+
end
|
|
377
|
+
end
|
|
378
|
+
end
|
|
379
|
+
end
|