Skip to content

Commit fb5e65d

Browse files
committed
Add Data Sync Legacy SDK
1 parent 4ca9cbf commit fb5e65d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+16573
-0
lines changed

src/ResourceManager/Sql/LegacySdk/Generated/DataSyncOperations.cs

Lines changed: 9809 additions & 0 deletions
Large diffs are not rendered by default.

src/ResourceManager/Sql/LegacySdk/Generated/DataSyncOperationsExtensions.cs

Lines changed: 2400 additions & 0 deletions
Large diffs are not rendered by default.

src/ResourceManager/Sql/LegacySdk/Generated/IDataSyncOperations.cs

Lines changed: 959 additions & 0 deletions
Large diffs are not rendered by default.

src/ResourceManager/Sql/LegacySdk/Generated/ISqlManagementClient.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,17 @@ IDataMaskingOperations DataMasking
169169
get;
170170
}
171171

172+
/// <summary>
173+
/// Represents all the operations for Azure SQL Data Sync. Contains
174+
/// operations to: Create, Retrieve, Update, and Delete sync groups,
175+
/// sync members and sync agents, and also includes the ability to get
176+
/// the synchronization logs.
177+
/// </summary>
178+
IDataSyncOperations DataSync
179+
{
180+
get;
181+
}
182+
172183
/// <summary>
173184
/// Represents all the operations for managing Advisors for Azure SQL
174185
/// Elastic Database Pool. Contains operations to retrieve Advisors
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
//
2+
// Copyright (c) Microsoft and contributors. All rights reserved.
3+
//
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
//
13+
// See the License for the specific language governing permissions and
14+
// limitations under the License.
15+
//
16+
17+
// Warning: This code was generated by a tool.
18+
//
19+
// Changes to this file may cause incorrect behavior and will be lost if the
20+
// code is regenerated.
21+
22+
using System;
23+
using System.Linq;
24+
25+
namespace Microsoft.Azure.Management.Sql.LegacySdk.Models
26+
{
27+
/// <summary>
28+
/// The policy of resolving conflication between hub and member database in
29+
/// the sync group
30+
/// </summary>
31+
public enum ConflictResolutionPolicyType
32+
{
33+
/// <summary>
34+
/// This value means hub database wins.
35+
/// </summary>
36+
HubWin = 0,
37+
38+
/// <summary>
39+
/// This value means member database wins.
40+
/// </summary>
41+
Memberwin = 1,
42+
}
43+
}
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
//
2+
// Copyright (c) Microsoft and contributors. All rights reserved.
3+
//
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
//
13+
// See the License for the specific language governing permissions and
14+
// limitations under the License.
15+
//
16+
17+
// Warning: This code was generated by a tool.
18+
//
19+
// Changes to this file may cause incorrect behavior and will be lost if the
20+
// code is regenerated.
21+
22+
using System;
23+
using System.Linq;
24+
using Microsoft.Azure;
25+
using Microsoft.Azure.Management.Sql.LegacySdk.Models;
26+
27+
namespace Microsoft.Azure.Management.Sql.LegacySdk.Models
28+
{
29+
/// <summary>
30+
/// Response for long running operations.
31+
/// </summary>
32+
public partial class DataSyncOperationResponse : AzureOperationResponse
33+
{
34+
private ErrorResponse _error;
35+
36+
/// <summary>
37+
/// Optional. Gets or sets the error details if available.
38+
/// </summary>
39+
public ErrorResponse Error
40+
{
41+
get { return this._error; }
42+
set { this._error = value; }
43+
}
44+
45+
private string _operationStatusLink;
46+
47+
/// <summary>
48+
/// Optional. Gets or sets the location header value.
49+
/// </summary>
50+
public string OperationStatusLink
51+
{
52+
get { return this._operationStatusLink; }
53+
set { this._operationStatusLink = value; }
54+
}
55+
56+
private int _retryAfter;
57+
58+
/// <summary>
59+
/// Optional. Gets or sets how long to wait before polling.
60+
/// </summary>
61+
public int RetryAfter
62+
{
63+
get { return this._retryAfter; }
64+
set { this._retryAfter = value; }
65+
}
66+
67+
private OperationStatus _status;
68+
69+
/// <summary>
70+
/// Optional. Gets or sets the status of the operation.
71+
/// </summary>
72+
public OperationStatus Status
73+
{
74+
get { return this._status; }
75+
set { this._status = value; }
76+
}
77+
78+
/// <summary>
79+
/// Initializes a new instance of the DataSyncOperationResponse class.
80+
/// </summary>
81+
public DataSyncOperationResponse()
82+
{
83+
}
84+
}
85+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
//
2+
// Copyright (c) Microsoft and contributors. All rights reserved.
3+
//
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
//
13+
// See the License for the specific language governing permissions and
14+
// limitations under the License.
15+
//
16+
17+
// Warning: This code was generated by a tool.
18+
//
19+
// Changes to this file may cause incorrect behavior and will be lost if the
20+
// code is regenerated.
21+
22+
using System;
23+
using System.Linq;
24+
25+
namespace Microsoft.Azure.Management.Sql.LegacySdk.Models
26+
{
27+
/// <summary>
28+
/// The type of member database.
29+
/// </summary>
30+
public enum DatabaseTypeEnum
31+
{
32+
/// <summary>
33+
/// Azure SQL Database.
34+
/// </summary>
35+
AzureSqlDatabase = 0,
36+
37+
/// <summary>
38+
/// SQL Server Database.
39+
/// </summary>
40+
SqlServerDatabase = 1,
41+
}
42+
}
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
//
2+
// Copyright (c) Microsoft and contributors. All rights reserved.
3+
//
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
//
13+
// See the License for the specific language governing permissions and
14+
// limitations under the License.
15+
//
16+
17+
// Warning: This code was generated by a tool.
18+
//
19+
// Changes to this file may cause incorrect behavior and will be lost if the
20+
// code is regenerated.
21+
22+
using System;
23+
using System.Linq;
24+
25+
namespace Microsoft.Azure.Management.Sql.LegacySdk.Models
26+
{
27+
/// <summary>
28+
/// Type of synchronization logs.
29+
/// </summary>
30+
public enum LogType
31+
{
32+
/// <summary>
33+
/// Error.
34+
/// </summary>
35+
Error = 0,
36+
37+
/// <summary>
38+
/// Warning.
39+
/// </summary>
40+
Warning = 1,
41+
42+
/// <summary>
43+
/// Success.
44+
/// </summary>
45+
Success = 2,
46+
47+
/// <summary>
48+
/// All.
49+
/// </summary>
50+
All = 3,
51+
}
52+
}
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
//
2+
// Copyright (c) Microsoft and contributors. All rights reserved.
3+
//
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
//
13+
// See the License for the specific language governing permissions and
14+
// limitations under the License.
15+
//
16+
17+
// Warning: This code was generated by a tool.
18+
//
19+
// Changes to this file may cause incorrect behavior and will be lost if the
20+
// code is regenerated.
21+
22+
using System;
23+
using System.Linq;
24+
using Microsoft.Azure;
25+
using Microsoft.Azure.Management.Sql.LegacySdk.Models;
26+
27+
namespace Microsoft.Azure.Management.Sql.LegacySdk.Models
28+
{
29+
/// <summary>
30+
/// Represent a sync agent object.
31+
/// </summary>
32+
public partial class SyncAgent : ResourceBaseExtended
33+
{
34+
private SyncAgentProperties _properties;
35+
36+
/// <summary>
37+
/// Optional. Represent the properties of a sync agent object.
38+
/// </summary>
39+
public SyncAgentProperties Properties
40+
{
41+
get { return this._properties; }
42+
set { this._properties = value; }
43+
}
44+
45+
/// <summary>
46+
/// Initializes a new instance of the SyncAgent class.
47+
/// </summary>
48+
public SyncAgent()
49+
{
50+
}
51+
}
52+
}
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
//
2+
// Copyright (c) Microsoft and contributors. All rights reserved.
3+
//
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
//
13+
// See the License for the specific language governing permissions and
14+
// limitations under the License.
15+
//
16+
17+
// Warning: This code was generated by a tool.
18+
//
19+
// Changes to this file may cause incorrect behavior and will be lost if the
20+
// code is regenerated.
21+
22+
using System;
23+
using System.Linq;
24+
using Microsoft.Azure.Management.Sql.LegacySdk.Models;
25+
26+
namespace Microsoft.Azure.Management.Sql.LegacySdk.Models
27+
{
28+
/// <summary>
29+
/// The parameters of creating or updating sync agent.
30+
/// </summary>
31+
public partial class SyncAgentCreateOrUpdateParameters
32+
{
33+
private SyncAgentCreateOrUpdateProperties _properties;
34+
35+
/// <summary>
36+
/// Optional. Specifies properties of a sync agent.
37+
/// </summary>
38+
public SyncAgentCreateOrUpdateProperties Properties
39+
{
40+
get { return this._properties; }
41+
set { this._properties = value; }
42+
}
43+
44+
/// <summary>
45+
/// Initializes a new instance of the SyncAgentCreateOrUpdateParameters
46+
/// class.
47+
/// </summary>
48+
public SyncAgentCreateOrUpdateParameters()
49+
{
50+
}
51+
}
52+
}

0 commit comments

Comments
 (0)