Class: Azure::ARM::Web::Models::CloningInfo
- Inherits:
-
Object
- Object
- Azure::ARM::Web::Models::CloningInfo
- Includes:
- MsRestAzure
- Defined in:
- lib/azure_mgmt_web/models/cloning_info.rb
Overview
Represents information needed for cloning operation
Instance Attribute Summary collapse
-
#app_settings_overrides ⇒ Hash{String => String}
cloned web app.
-
#clone_custom_host_names ⇒ Boolean
If true, clone custom hostnames from source web app.
-
#clone_source_control ⇒ Boolean
Clone source control from source web app.
-
#configure_load_balancing ⇒ Boolean
clone site.
-
#correlation_id ⇒ String
multiple cloning operations together to use the same snapshot.
-
#hosting_environment ⇒ String
Hosting environment.
-
#overwrite ⇒ Boolean
Overwrite destination web app.
-
#source_web_app_id ⇒ String
resource id is of the form /subscriptions/subId/resourceGroups/resourceGroupName/providers/Microsoft.Web/sites/siteName for production slots and /subscriptions/subId/resourceGroups/resourceGroupName/providers/Microsoft.Web/sites/siteName/slots/slotName for other slots.
-
#traffic_manager_profile_id ⇒ String
if it exists.
-
#traffic_manager_profile_name ⇒ String
only needed if traffic manager profile does not already exist.
Class Method Summary collapse
-
.deserialize_object(object) ⇒ CloningInfo
Deserializes given Ruby Hash into Model object.
-
.serialize_object(object) ⇒ Hash
Serializes given Model object into Ruby Hash.
Instance Method Summary collapse
-
#validate ⇒ Object
Validate the object.
Instance Attribute Details
#app_settings_overrides ⇒ Hash{String => String}
cloned web app. If specified these settings will override the settings cloned from source web app. If not specified, application settings from source web app are retained.
45 46 47 |
# File 'lib/azure_mgmt_web/models/cloning_info.rb', line 45 def app_settings_overrides @app_settings_overrides end |
#clone_custom_host_names ⇒ Boolean
Returns If true, clone custom hostnames from source web app.
24 25 26 |
# File 'lib/azure_mgmt_web/models/cloning_info.rb', line 24 def clone_custom_host_names @clone_custom_host_names end |
#clone_source_control ⇒ Boolean
Returns Clone source control from source web app.
27 28 29 |
# File 'lib/azure_mgmt_web/models/cloning_info.rb', line 27 def clone_source_control @clone_source_control end |
#configure_load_balancing ⇒ Boolean
clone site
49 50 51 |
# File 'lib/azure_mgmt_web/models/cloning_info.rb', line 49 def configure_load_balancing @configure_load_balancing end |
#correlation_id ⇒ String
multiple cloning operations together to use the same snapshot
18 19 20 |
# File 'lib/azure_mgmt_web/models/cloning_info.rb', line 18 def correlation_id @correlation_id end |
#hosting_environment ⇒ String
Returns Hosting environment.
38 39 40 |
# File 'lib/azure_mgmt_web/models/cloning_info.rb', line 38 def hosting_environment @hosting_environment end |
#overwrite ⇒ Boolean
Returns Overwrite destination web app.
21 22 23 |
# File 'lib/azure_mgmt_web/models/cloning_info.rb', line 21 def overwrite @overwrite end |
#source_web_app_id ⇒ String
resource id is of the form /subscriptions/subId/resourceGroups/resourceGroupName/providers/Microsoft.Web/sites/siteName for production slots and /subscriptions/subId/resourceGroups/resourceGroupName/providers/Microsoft.Web/sites/siteName/slots/slotName for other slots
35 36 37 |
# File 'lib/azure_mgmt_web/models/cloning_info.rb', line 35 def source_web_app_id @source_web_app_id end |
#traffic_manager_profile_id ⇒ String
if it exists. Traffic manager resource id is of the form /subscriptions/subId/resourceGroups/resourceGroupName/providers/Microsoft.Network/trafficManagerProfiles/profileName
54 55 56 |
# File 'lib/azure_mgmt_web/models/cloning_info.rb', line 54 def traffic_manager_profile_id @traffic_manager_profile_id end |
#traffic_manager_profile_name ⇒ String
only needed if traffic manager profile does not already exist
58 59 60 |
# File 'lib/azure_mgmt_web/models/cloning_info.rb', line 58 def traffic_manager_profile_name @traffic_manager_profile_name end |
Class Method Details
.deserialize_object(object) ⇒ CloningInfo
Deserializes given Ruby Hash into Model object.
114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 |
# File 'lib/azure_mgmt_web/models/cloning_info.rb', line 114 def self.deserialize_object(object) return if object.nil? output_object = CloningInfo.new deserialized_property = object['correlationId'] output_object.correlation_id = deserialized_property deserialized_property = object['overwrite'] output_object.overwrite = deserialized_property deserialized_property = object['cloneCustomHostNames'] output_object.clone_custom_host_names = deserialized_property deserialized_property = object['cloneSourceControl'] output_object.clone_source_control = deserialized_property deserialized_property = object['sourceWebAppId'] output_object.source_web_app_id = deserialized_property deserialized_property = object['hostingEnvironment'] output_object.hosting_environment = deserialized_property deserialized_property = object['appSettingsOverrides'] output_object.app_settings_overrides = deserialized_property deserialized_property = object['configureLoadBalancing'] output_object.configure_load_balancing = deserialized_property deserialized_property = object['trafficManagerProfileId'] output_object.traffic_manager_profile_id = deserialized_property deserialized_property = object['trafficManagerProfileName'] output_object.traffic_manager_profile_name = deserialized_property output_object end |
.serialize_object(object) ⇒ Hash
Serializes given Model object into Ruby Hash.
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 |
# File 'lib/azure_mgmt_web/models/cloning_info.rb', line 72 def self.serialize_object(object) object.validate output_object = {} serialized_property = object.correlation_id output_object['correlationId'] = serialized_property unless serialized_property.nil? serialized_property = object.overwrite output_object['overwrite'] = serialized_property unless serialized_property.nil? serialized_property = object.clone_custom_host_names output_object['cloneCustomHostNames'] = serialized_property unless serialized_property.nil? serialized_property = object.clone_source_control output_object['cloneSourceControl'] = serialized_property unless serialized_property.nil? serialized_property = object.source_web_app_id output_object['sourceWebAppId'] = serialized_property unless serialized_property.nil? serialized_property = object.hosting_environment output_object['hostingEnvironment'] = serialized_property unless serialized_property.nil? serialized_property = object.app_settings_overrides output_object['appSettingsOverrides'] = serialized_property unless serialized_property.nil? serialized_property = object.configure_load_balancing output_object['configureLoadBalancing'] = serialized_property unless serialized_property.nil? serialized_property = object.traffic_manager_profile_id output_object['trafficManagerProfileId'] = serialized_property unless serialized_property.nil? serialized_property = object.traffic_manager_profile_name output_object['trafficManagerProfileName'] = serialized_property unless serialized_property.nil? output_object end |
Instance Method Details
#validate ⇒ Object
Validate the object. Throws ValidationError if validation fails.
63 64 65 |
# File 'lib/azure_mgmt_web/models/cloning_info.rb', line 63 def validate @app_settings_overrides.each{ |e| e.validate if e.respond_to?(:validate) } unless @app_settings_overrides.nil? end |