class Azure::Web::Mgmt::V2020_09_01::Models::RestoreRequest

Description of a restore request.

Attributes

adjust_connection_strings[RW]

@return [Boolean] true if SiteConfig.ConnectionStrings should be set in new app; otherwise, false.

app_service_plan[RW]

@return [String] Specify app service plan that will own restored site.

blob_name[RW]

@return [String] Name of a blob which contains the backup.

databases[RW]

@return [Array<DatabaseBackupSetting>] Collection of databases which should be restored. This list has to match the list of databases included in the backup.

hosting_environment[RW]

@return [String] App Service Environment name, if needed (only when restoring an app to an App Service Environment).

ignore_conflicting_host_names[RW]

@return [Boolean] Changes a logic when restoring an app with custom domains. true to remove custom domains automatically. If false, custom domains are added to the app's object when it is being restored, but that might fail due to conflicts during the operation. Default value: false .

ignore_databases[RW]

@return [Boolean] Ignore the databases and only restore the site content. Default value: false .

operation_type[RW]

@return [BackupRestoreOperationType] Operation type. Possible values include: 'Default', 'Clone', 'Relocation', 'Snapshot', 'CloudFS'. Default value: 'Default' .

overwrite[RW]

@return [Boolean] true if the restore operation can overwrite target app; otherwise, false. true is needed if trying to restore over an existing app.

site_name[RW]

@return [String] Name of an app.

storage_account_url[RW]

@return [String] SAS URL to the container.

Private Class Methods

mapper() click to toggle source

Mapper for RestoreRequest class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2020-09-01/generated/azure_mgmt_web/models/restore_request.rb, line 66
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'RestoreRequest',
    type: {
      name: 'Composite',
      class_name: 'RestoreRequest',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        kind: {
          client_side_validation: true,
          required: false,
          serialized_name: 'kind',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        system_data: {
          client_side_validation: true,
          required: false,
          serialized_name: 'systemData',
          type: {
            name: 'Composite',
            class_name: 'SystemData'
          }
        },
        storage_account_url: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.storageAccountUrl',
          type: {
            name: 'String'
          }
        },
        blob_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.blobName',
          type: {
            name: 'String'
          }
        },
        overwrite: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.overwrite',
          type: {
            name: 'Boolean'
          }
        },
        site_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.siteName',
          type: {
            name: 'String'
          }
        },
        databases: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.databases',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'DatabaseBackupSettingElementType',
                type: {
                  name: 'Composite',
                  class_name: 'DatabaseBackupSetting'
                }
            }
          }
        },
        ignore_conflicting_host_names: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.ignoreConflictingHostNames',
          default_value: false,
          type: {
            name: 'Boolean'
          }
        },
        ignore_databases: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.ignoreDatabases',
          default_value: false,
          type: {
            name: 'Boolean'
          }
        },
        app_service_plan: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.appServicePlan',
          type: {
            name: 'String'
          }
        },
        operation_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.operationType',
          default_value: 'Default',
          type: {
            name: 'Enum',
            module: 'BackupRestoreOperationType'
          }
        },
        adjust_connection_strings: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.adjustConnectionStrings',
          type: {
            name: 'Boolean'
          }
        },
        hosting_environment: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.hostingEnvironment',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end