-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
MySqlServerPropertiesForRestore.cs
34 lines (28 loc) · 1.5 KB
/
MySqlServerPropertiesForRestore.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using Azure.Core;
namespace Azure.ResourceManager.MySql.Models
{
/// <summary> The properties used to create a new server by restoring from a backup. </summary>
public partial class MySqlServerPropertiesForRestore : MySqlServerPropertiesForCreate
{
/// <summary> Initializes a new instance of MySqlServerPropertiesForRestore. </summary>
/// <param name="sourceServerId"> The source server id to restore from. </param>
/// <param name="restorePointInTime"> Restore point creation time (ISO8601 format), specifying the time to restore from. </param>
/// <exception cref="ArgumentNullException"> <paramref name="sourceServerId"/> is null. </exception>
public MySqlServerPropertiesForRestore(ResourceIdentifier sourceServerId, DateTimeOffset restorePointInTime)
{
Argument.AssertNotNull(sourceServerId, nameof(sourceServerId));
SourceServerId = sourceServerId;
RestorePointInTime = restorePointInTime;
CreateMode = MySqlCreateMode.PointInTimeRestore;
}
/// <summary> The source server id to restore from. </summary>
public ResourceIdentifier SourceServerId { get; }
/// <summary> Restore point creation time (ISO8601 format), specifying the time to restore from. </summary>
public DateTimeOffset RestorePointInTime { get; }
}
}