Skip to content

Add MemorySizeInGB parameter for SQL Managed Instance CRUD #28341

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

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions build.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "build", "build.proj", "{E237D7B1-1577-475E-A4EF-0E2FB0E54CA4}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{E237D7B1-1577-475E-A4EF-0E2FB0E54CA4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E237D7B1-1577-475E-A4EF-0E2FB0E54CA4}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {31B4AD0E-F8E9-4733-A37E-2B103DCF0454}
EndGlobalSection
EndGlobal
28 changes: 14 additions & 14 deletions src/Sql/Sql.Management.Sdk/Generated/IManagedInstancesOperations.cs

Large diffs are not rendered by default.

330 changes: 168 additions & 162 deletions src/Sql/Sql.Management.Sdk/Generated/ManagedInstancesOperations.cs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,9 @@ public static ManagedInstance CreateOrUpdate(this IManagedInstancesOperations op
/// <param name='managedInstanceName'>
/// The name of the managed instance.
/// </param>
public static void Delete(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName)
public static ManagedInstancesDeleteHeaders Delete(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName)
{
((IManagedInstancesOperations)operations).DeleteAsync(resourceGroupName, managedInstanceName).GetAwaiter().GetResult();
return ((IManagedInstancesOperations)operations).DeleteAsync(resourceGroupName, managedInstanceName).GetAwaiter().GetResult();
}

/// <summary>
Expand All @@ -255,9 +255,12 @@ public static void Delete(this IManagedInstancesOperations operations, string re
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async System.Threading.Tasks.Task DeleteAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
public static async System.Threading.Tasks.Task<ManagedInstancesDeleteHeaders> DeleteAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
(await operations.DeleteWithHttpMessagesAsync(resourceGroupName, managedInstanceName, null, cancellationToken).ConfigureAwait(false)).Dispose();
using (var _result = await operations.DeleteWithHttpMessagesAsync(resourceGroupName, managedInstanceName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Headers;
}
}
/// <summary>
/// Updates a managed instance.
Expand Down Expand Up @@ -316,9 +319,9 @@ public static ManagedInstance Update(this IManagedInstancesOperations operations
/// <param name='replicaType'>
/// The type of replica to be failed over.
/// </param>
public static void Failover(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string replicaType = default(string))
public static ManagedInstancesFailoverHeaders Failover(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string replicaType = default(string))
{
((IManagedInstancesOperations)operations).FailoverAsync(resourceGroupName, managedInstanceName, replicaType).GetAwaiter().GetResult();
return ((IManagedInstancesOperations)operations).FailoverAsync(resourceGroupName, managedInstanceName, replicaType).GetAwaiter().GetResult();
}

/// <summary>
Expand All @@ -340,9 +343,12 @@ public static ManagedInstance Update(this IManagedInstancesOperations operations
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async System.Threading.Tasks.Task FailoverAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string replicaType = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
public static async System.Threading.Tasks.Task<ManagedInstancesFailoverHeaders> FailoverAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string replicaType = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
(await operations.FailoverWithHttpMessagesAsync(resourceGroupName, managedInstanceName, replicaType, null, cancellationToken).ConfigureAwait(false)).Dispose();
using (var _result = await operations.FailoverWithHttpMessagesAsync(resourceGroupName, managedInstanceName, replicaType, null, cancellationToken).ConfigureAwait(false))
{
return _result.Headers;
}
}
/// <summary>
/// Gets the collection of outbound network dependencies for the given managed
Expand Down Expand Up @@ -651,9 +657,9 @@ public static ManagedInstance BeginCreateOrUpdate(this IManagedInstancesOperatio
/// <param name='managedInstanceName'>
/// The name of the managed instance.
/// </param>
public static void BeginDelete(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName)
public static ManagedInstancesDeleteHeaders BeginDelete(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName)
{
((IManagedInstancesOperations)operations).BeginDeleteAsync(resourceGroupName, managedInstanceName).GetAwaiter().GetResult();
return ((IManagedInstancesOperations)operations).BeginDeleteAsync(resourceGroupName, managedInstanceName).GetAwaiter().GetResult();
}

/// <summary>
Expand All @@ -672,9 +678,12 @@ public static void BeginDelete(this IManagedInstancesOperations operations, stri
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async System.Threading.Tasks.Task BeginDeleteAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
public static async System.Threading.Tasks.Task<ManagedInstancesDeleteHeaders> BeginDeleteAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
(await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, managedInstanceName, null, cancellationToken).ConfigureAwait(false)).Dispose();
using (var _result = await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, managedInstanceName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Headers;
}
}
/// <summary>
/// Updates a managed instance.
Expand Down Expand Up @@ -733,9 +742,9 @@ public static ManagedInstance BeginUpdate(this IManagedInstancesOperations opera
/// <param name='replicaType'>
/// The type of replica to be failed over.
/// </param>
public static void BeginFailover(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string replicaType = default(string))
public static ManagedInstancesFailoverHeaders BeginFailover(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string replicaType = default(string))
{
((IManagedInstancesOperations)operations).BeginFailoverAsync(resourceGroupName, managedInstanceName, replicaType).GetAwaiter().GetResult();
return ((IManagedInstancesOperations)operations).BeginFailoverAsync(resourceGroupName, managedInstanceName, replicaType).GetAwaiter().GetResult();
}

/// <summary>
Expand All @@ -757,9 +766,12 @@ public static ManagedInstance BeginUpdate(this IManagedInstancesOperations opera
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async System.Threading.Tasks.Task BeginFailoverAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string replicaType = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
public static async System.Threading.Tasks.Task<ManagedInstancesFailoverHeaders> BeginFailoverAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string replicaType = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
(await operations.BeginFailoverWithHttpMessagesAsync(resourceGroupName, managedInstanceName, replicaType, null, cancellationToken).ConfigureAwait(false)).Dispose();
using (var _result = await operations.BeginFailoverWithHttpMessagesAsync(resourceGroupName, managedInstanceName, replicaType, null, cancellationToken).ConfigureAwait(false))
{
return _result.Headers;
}
}
/// <summary>
/// Refresh external governance enablement status.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
// 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.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

namespace Microsoft.Azure.Management.Sql.Models
{
using System.Linq;

/// <summary>
/// The error detail.
/// </summary>
public partial class ErrorDetailAutoGenerated
{
/// <summary>
/// Initializes a new instance of the ErrorDetailAutoGenerated class.
/// </summary>
public ErrorDetailAutoGenerated()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the ErrorDetailAutoGenerated class.
/// </summary>

/// <param name="code">The error code.
/// </param>

/// <param name="message">The error message.
/// </param>

/// <param name="target">The error target.
/// </param>

/// <param name="details">The error details.
/// </param>

/// <param name="additionalInfo">The error additional info.
/// </param>
public ErrorDetailAutoGenerated(string code = default(string), string message = default(string), string target = default(string), System.Collections.Generic.IList<ErrorDetailAutoGenerated> details = default(System.Collections.Generic.IList<ErrorDetailAutoGenerated>), System.Collections.Generic.IList<ErrorAdditionalInfo> additionalInfo = default(System.Collections.Generic.IList<ErrorAdditionalInfo>))

{
this.Code = code;
this.Message = message;
this.Target = target;
this.Details = details;
this.AdditionalInfo = additionalInfo;
CustomInit();
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();


/// <summary>
/// Gets the error code.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "code")]
public string Code {get; private set; }

/// <summary>
/// Gets the error message.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "message")]
public string Message {get; private set; }

/// <summary>
/// Gets the error target.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "target")]
public string Target {get; private set; }

/// <summary>
/// Gets the error details.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "details")]
public System.Collections.Generic.IList<ErrorDetailAutoGenerated> Details {get; private set; }

/// <summary>
/// Gets the error additional info.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "additionalInfo")]
public System.Collections.Generic.IList<ErrorAdditionalInfo> AdditionalInfo {get; private set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
// 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.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

namespace Microsoft.Azure.Management.Sql.Models
{
using System.Linq;

/// <summary>
/// Common error response for all Azure Resource Manager APIs to return error
/// details for failed operations. (This also follows the OData error response
/// format.).
/// </summary>
/// <remarks>
/// Common error response for all Azure Resource Manager APIs to return error
/// details for failed operations. (This also follows the OData error response
/// format.).
/// </remarks>
public partial class ErrorResponseAutoGenerated
{
/// <summary>
/// Initializes a new instance of the ErrorResponseAutoGenerated class.
/// </summary>
public ErrorResponseAutoGenerated()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the ErrorResponseAutoGenerated class.
/// </summary>

/// <param name="error">The error object.
/// </param>
public ErrorResponseAutoGenerated(ErrorDetailAutoGenerated error = default(ErrorDetailAutoGenerated))

{
this.Error = error;
CustomInit();
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();


/// <summary>
/// Gets or sets the error object.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "error")]
public ErrorDetailAutoGenerated Error {get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
// 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.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

namespace Microsoft.Azure.Management.Sql.Models
{

/// <summary>
/// Exception thrown for an invalid response with ErrorResponseAutoGenerated information.
/// </summary>
public partial class ErrorResponseAutoGeneratedException : Microsoft.Rest.RestException
{
/// <summary>
/// Gets information about the associated HTTP request.
/// </summary>
public Microsoft.Rest.HttpRequestMessageWrapper Request { get; set; }

/// <summary>
/// Gets information about the associated HTTP response.
/// </summary>
public Microsoft.Rest.HttpResponseMessageWrapper Response { get; set; }

/// <summary>
/// Gets or sets the body object.
/// </summary>
public ErrorResponseAutoGenerated Body { get; set; }

/// <summary>
/// Initializes a new instance of the ErrorResponseAutoGeneratedException class.
/// </summary>
public ErrorResponseAutoGeneratedException()
{
}

/// <summary>
/// Initializes a new instance of the ErrorResponseAutoGenerated class.
/// </summary>
/// <param name="message">The exception message.</param>
public ErrorResponseAutoGeneratedException(string message)
: this(message, null)
{
}

/// <summary>
/// Initializes a new instance of the ErrorResponseAutoGenerated class.
/// </summary>
/// <param name="message">The exception message.</param>
/// <param name="innerException">Inner exception.</param>
public ErrorResponseAutoGeneratedException(string message, System.Exception innerException)
: base(message, innerException)
{
}
}
}
Loading