-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Add failover group operations #3155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
f37d25c
Add failover group operations
btasdoven 363abcc
addressed comments and made deletion of resource groups async
btasdoven 6ff6661
Merge branch 'vs17Dev' of https://github.com/Azure/azure-sdk-for-net …
btasdoven 11fc912
updating sdk version
btasdoven 33347ad
changing compositeSql.json URI to the latest committed one
btasdoven a1f56b9
Merge branch 'vs17Dev' into vs17Dev
shahabhijeet 38e1f0c
refresh session record files
btasdoven 67f4480
Merge branch 'vs17Dev' of https://github.com/btasdoven/azure-sdk-for-…
btasdoven File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,809 changes: 1,809 additions & 0 deletions
1,809
src/SDKs/SqlManagement/Management.Sql/Generated/FailoverGroupsOperations.cs
Large diffs are not rendered by default.
Oops, something went wrong.
651 changes: 651 additions & 0 deletions
651
src/SDKs/SqlManagement/Management.Sql/Generated/FailoverGroupsOperationsExtensions.cs
Large diffs are not rendered by default.
Oops, something went wrong.
414 changes: 414 additions & 0 deletions
414
src/SDKs/SqlManagement/Management.Sql/Generated/IFailoverGroupsOperations.cs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
126 changes: 126 additions & 0 deletions
126
src/SDKs/SqlManagement/Management.Sql/Generated/Models/FailoverGroup.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,126 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. See License.txt in the project root for | ||
| // license information. | ||
| // | ||
| // Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 | ||
| // Changes may cause incorrect behavior and will be lost if the code is | ||
| // regenerated. | ||
|
|
||
| namespace Microsoft.Azure.Management.Sql.Models | ||
| { | ||
| using Microsoft.Azure; | ||
| using Microsoft.Azure.Management; | ||
| using Microsoft.Azure.Management.Sql; | ||
| using Microsoft.Rest; | ||
| using Microsoft.Rest.Serialization; | ||
| using Newtonsoft.Json; | ||
| using System.Collections; | ||
| using System.Collections.Generic; | ||
| using System.Linq; | ||
|
|
||
| /// <summary> | ||
| /// A failover group. | ||
| /// </summary> | ||
| [Rest.Serialization.JsonTransformation] | ||
| public partial class FailoverGroup : ProxyResource | ||
| { | ||
| /// <summary> | ||
| /// Initializes a new instance of the FailoverGroup class. | ||
| /// </summary> | ||
| public FailoverGroup() | ||
| { | ||
| CustomInit(); | ||
| } | ||
|
|
||
| /// <summary> | ||
| /// Initializes a new instance of the FailoverGroup class. | ||
| /// </summary> | ||
| /// <param name="id">Resource ID.</param> | ||
| /// <param name="name">Resource name.</param> | ||
| /// <param name="type">Resource type.</param> | ||
| /// <param name="location">Resource location.</param> | ||
| /// <param name="tags">Resource tags.</param> | ||
| /// <param name="readWriteEndpoint">Read-write endpoint of the failover | ||
| /// group instance.</param> | ||
| /// <param name="readOnlyEndpoint">Read-only endpoint of the failover | ||
| /// group instance.</param> | ||
| /// <param name="replicationRole">Local replication role of the | ||
| /// failover group instance. Possible values include: 'Primary', | ||
| /// 'Secondary'</param> | ||
| /// <param name="replicationState">Replication state of the failover | ||
| /// group instance.</param> | ||
| /// <param name="partnerServers">List of partner server information for | ||
| /// the failover group.</param> | ||
| /// <param name="databases">List of databases in the failover | ||
| /// group.</param> | ||
| public FailoverGroup(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary<string, string> tags = default(IDictionary<string, string>), FailoverGroupReadWriteEndpoint readWriteEndpoint = default(FailoverGroupReadWriteEndpoint), FailoverGroupReadOnlyEndpoint readOnlyEndpoint = default(FailoverGroupReadOnlyEndpoint), string replicationRole = default(string), string replicationState = default(string), IList<PartnerInfo> partnerServers = default(IList<PartnerInfo>), IList<string> databases = default(IList<string>)) | ||
| : base(id, name, type) | ||
| { | ||
| Location = location; | ||
| Tags = tags; | ||
| ReadWriteEndpoint = readWriteEndpoint; | ||
| ReadOnlyEndpoint = readOnlyEndpoint; | ||
| ReplicationRole = replicationRole; | ||
| ReplicationState = replicationState; | ||
| PartnerServers = partnerServers; | ||
| Databases = databases; | ||
| CustomInit(); | ||
| } | ||
|
|
||
| /// <summary> | ||
| /// An initialization method that performs custom operations like setting defaults | ||
| /// </summary> | ||
| partial void CustomInit(); | ||
|
|
||
| /// <summary> | ||
| /// Gets resource location. | ||
| /// </summary> | ||
| [JsonProperty(PropertyName = "location")] | ||
| public string Location { get; private set; } | ||
|
|
||
| /// <summary> | ||
| /// Gets or sets resource tags. | ||
| /// </summary> | ||
| [JsonProperty(PropertyName = "tags")] | ||
| public IDictionary<string, string> Tags { get; set; } | ||
|
|
||
| /// <summary> | ||
| /// Gets or sets read-write endpoint of the failover group instance. | ||
| /// </summary> | ||
| [JsonProperty(PropertyName = "properties.readWriteEndpoint")] | ||
| public FailoverGroupReadWriteEndpoint ReadWriteEndpoint { get; set; } | ||
|
|
||
| /// <summary> | ||
| /// Gets or sets read-only endpoint of the failover group instance. | ||
| /// </summary> | ||
| [JsonProperty(PropertyName = "properties.readOnlyEndpoint")] | ||
| public FailoverGroupReadOnlyEndpoint ReadOnlyEndpoint { get; set; } | ||
|
|
||
| /// <summary> | ||
| /// Gets local replication role of the failover group instance. | ||
| /// Possible values include: 'Primary', 'Secondary' | ||
| /// </summary> | ||
| [JsonProperty(PropertyName = "properties.replicationRole")] | ||
| public string ReplicationRole { get; private set; } | ||
|
|
||
| /// <summary> | ||
| /// Gets replication state of the failover group instance. | ||
| /// </summary> | ||
| [JsonProperty(PropertyName = "properties.replicationState")] | ||
| public string ReplicationState { get; private set; } | ||
|
|
||
| /// <summary> | ||
| /// Gets or sets list of partner server information for the failover | ||
| /// group. | ||
| /// </summary> | ||
| [JsonProperty(PropertyName = "properties.partnerServers")] | ||
| public IList<PartnerInfo> PartnerServers { get; set; } | ||
|
|
||
| /// <summary> | ||
| /// Gets or sets list of databases in the failover group. | ||
| /// </summary> | ||
| [JsonProperty(PropertyName = "properties.databases")] | ||
| public IList<string> Databases { get; set; } | ||
|
|
||
| } | ||
| } |
57 changes: 57 additions & 0 deletions
57
src/SDKs/SqlManagement/Management.Sql/Generated/Models/FailoverGroupReadOnlyEndpoint.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. See License.txt in the project root for | ||
| // license information. | ||
| // | ||
| // Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 | ||
| // Changes may cause incorrect behavior and will be lost if the code is | ||
| // regenerated. | ||
|
|
||
| namespace Microsoft.Azure.Management.Sql.Models | ||
| { | ||
| using Microsoft.Azure; | ||
| using Microsoft.Azure.Management; | ||
| using Microsoft.Azure.Management.Sql; | ||
| using Newtonsoft.Json; | ||
| using System.Linq; | ||
|
|
||
| /// <summary> | ||
| /// Read-only endpoint of the failover group instance. | ||
| /// </summary> | ||
| public partial class FailoverGroupReadOnlyEndpoint | ||
| { | ||
| /// <summary> | ||
| /// Initializes a new instance of the FailoverGroupReadOnlyEndpoint | ||
| /// class. | ||
| /// </summary> | ||
| public FailoverGroupReadOnlyEndpoint() | ||
| { | ||
| CustomInit(); | ||
| } | ||
|
|
||
| /// <summary> | ||
| /// Initializes a new instance of the FailoverGroupReadOnlyEndpoint | ||
| /// class. | ||
| /// </summary> | ||
| /// <param name="failoverPolicy">Failover policy of the read-only | ||
| /// endpoint for the failover group. Possible values include: | ||
| /// 'Disabled', 'Enabled'</param> | ||
| public FailoverGroupReadOnlyEndpoint(string failoverPolicy = default(string)) | ||
| { | ||
| FailoverPolicy = failoverPolicy; | ||
| CustomInit(); | ||
| } | ||
|
|
||
| /// <summary> | ||
| /// An initialization method that performs custom operations like setting defaults | ||
| /// </summary> | ||
| partial void CustomInit(); | ||
|
|
||
| /// <summary> | ||
| /// Gets or sets failover policy of the read-only endpoint for the | ||
| /// failover group. Possible values include: 'Disabled', 'Enabled' | ||
| /// </summary> | ||
| [JsonProperty(PropertyName = "failoverPolicy")] | ||
| public string FailoverPolicy { get; set; } | ||
|
|
||
| } | ||
| } |
68 changes: 68 additions & 0 deletions
68
src/SDKs/SqlManagement/Management.Sql/Generated/Models/FailoverGroupReadWriteEndpoint.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,68 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. See License.txt in the project root for | ||
| // license information. | ||
| // | ||
| // Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 | ||
| // Changes may cause incorrect behavior and will be lost if the code is | ||
| // regenerated. | ||
|
|
||
| namespace Microsoft.Azure.Management.Sql.Models | ||
| { | ||
| using Microsoft.Azure; | ||
| using Microsoft.Azure.Management; | ||
| using Microsoft.Azure.Management.Sql; | ||
| using Newtonsoft.Json; | ||
| using System.Linq; | ||
|
|
||
| /// <summary> | ||
| /// Read-write endpoint of the failover group instance. | ||
| /// </summary> | ||
| public partial class FailoverGroupReadWriteEndpoint | ||
| { | ||
| /// <summary> | ||
| /// Initializes a new instance of the FailoverGroupReadWriteEndpoint | ||
| /// class. | ||
| /// </summary> | ||
| public FailoverGroupReadWriteEndpoint() | ||
| { | ||
| CustomInit(); | ||
| } | ||
|
|
||
| /// <summary> | ||
| /// Initializes a new instance of the FailoverGroupReadWriteEndpoint | ||
| /// class. | ||
| /// </summary> | ||
| /// <param name="failoverPolicy">Failover policy of the read-write | ||
| /// endpoint for the failover group. Possible values include: 'Manual', | ||
| /// 'Automatic'</param> | ||
| /// <param name="failoverWithDataLossGracePeriodMinutes">Grace period | ||
| /// before failover with data loss is attempted for the read-write | ||
| /// endpoint.</param> | ||
| public FailoverGroupReadWriteEndpoint(string failoverPolicy = default(string), int? failoverWithDataLossGracePeriodMinutes = default(int?)) | ||
| { | ||
| FailoverPolicy = failoverPolicy; | ||
| FailoverWithDataLossGracePeriodMinutes = failoverWithDataLossGracePeriodMinutes; | ||
| CustomInit(); | ||
| } | ||
|
|
||
| /// <summary> | ||
| /// An initialization method that performs custom operations like setting defaults | ||
| /// </summary> | ||
| partial void CustomInit(); | ||
|
|
||
| /// <summary> | ||
| /// Gets or sets failover policy of the read-write endpoint for the | ||
| /// failover group. Possible values include: 'Manual', 'Automatic' | ||
| /// </summary> | ||
| [JsonProperty(PropertyName = "failoverPolicy")] | ||
| public string FailoverPolicy { get; set; } | ||
|
|
||
| /// <summary> | ||
| /// Gets or sets grace period before failover with data loss is | ||
| /// attempted for the read-write endpoint. | ||
| /// </summary> | ||
| [JsonProperty(PropertyName = "failoverWithDataLossGracePeriodMinutes")] | ||
| public int? FailoverWithDataLossGracePeriodMinutes { get; set; } | ||
|
|
||
| } | ||
| } |
23 changes: 23 additions & 0 deletions
23
src/SDKs/SqlManagement/Management.Sql/Generated/Models/FailoverGroupReplicationRole.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. See License.txt in the project root for | ||
| // license information. | ||
| // | ||
| // Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 | ||
| // Changes may cause incorrect behavior and will be lost if the code is | ||
| // regenerated. | ||
|
|
||
| namespace Microsoft.Azure.Management.Sql.Models | ||
| { | ||
| using Microsoft.Azure; | ||
| using Microsoft.Azure.Management; | ||
| using Microsoft.Azure.Management.Sql; | ||
|
|
||
| /// <summary> | ||
| /// Defines values for FailoverGroupReplicationRole. | ||
| /// </summary> | ||
| public static class FailoverGroupReplicationRole | ||
| { | ||
| public const string Primary = "Primary"; | ||
| public const string Secondary = "Secondary"; | ||
| } | ||
| } |
54 changes: 54 additions & 0 deletions
54
src/SDKs/SqlManagement/Management.Sql/Generated/Models/Page1.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. See License.txt in the project root for | ||
| // license information. | ||
| // | ||
| // Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 | ||
| // Changes may cause incorrect behavior and will be lost if the code is | ||
| // regenerated. | ||
|
|
||
| namespace Microsoft.Azure.Management.Sql.Models | ||
| { | ||
| using Microsoft.Azure; | ||
| using Microsoft.Azure.Management; | ||
| using Microsoft.Azure.Management.Sql; | ||
| using Microsoft.Rest; | ||
| using Microsoft.Rest.Azure; | ||
| using Newtonsoft.Json; | ||
| using System.Collections; | ||
| using System.Collections.Generic; | ||
|
|
||
| /// <summary> | ||
| /// Defines a page in Azure responses. | ||
| /// </summary> | ||
| /// <typeparam name="T">Type of the page content items</typeparam> | ||
| [JsonObject] | ||
| public class Page1<T> : IPage<T> | ||
| { | ||
| /// <summary> | ||
| /// Gets the link to the next page. | ||
| /// </summary> | ||
| [JsonProperty("nextLink")] | ||
| public string NextPageLink { get; private set; } | ||
|
|
||
| [JsonProperty("value")] | ||
| private IList<T> Items{ get; set; } | ||
|
|
||
| /// <summary> | ||
| /// Returns an enumerator that iterates through the collection. | ||
| /// </summary> | ||
| /// <returns>A an enumerator that can be used to iterate through the collection.</returns> | ||
| public IEnumerator<T> GetEnumerator() | ||
| { | ||
| return Items == null ? System.Linq.Enumerable.Empty<T>().GetEnumerator() : Items.GetEnumerator(); | ||
| } | ||
|
|
||
| /// <summary> | ||
| /// Returns an enumerator that iterates through the collection. | ||
| /// </summary> | ||
| /// <returns>A an enumerator that can be used to iterate through the collection.</returns> | ||
| IEnumerator IEnumerable.GetEnumerator() | ||
| { | ||
| return GetEnumerator(); | ||
| } | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note to reviewers: Swagger change was Azure/azure-rest-api-specs#1166