diff --git a/eng/mgmt/mgmtmetadata/postgresql_resource-manager.txt b/eng/mgmt/mgmtmetadata/postgresql_resource-manager.txt
index a51d959b948f..bba31215fef0 100644
--- a/eng/mgmt/mgmtmetadata/postgresql_resource-manager.txt
+++ b/eng/mgmt/mgmtmetadata/postgresql_resource-manager.txt
@@ -3,12 +3,13 @@ AutoRest installed successfully.
Commencing code generation
Generating CSharp code
Executing AutoRest command
-cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/postgresql/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp.namespace=Microsoft.Azure.Management.PostgreSQL.FlexibleServers --tag=package-2020-02-14-privatepreview --csharp.output-folder=C:\z\azure-sdk-for-net\sdk\postgresql\Microsoft.Azure.Management.PostgreSQL\src\postgresqlflexibleservers\Generated
-2020-09-11 22:12:52 UTC
+cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/postgresql/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp.namespace=Microsoft.Azure.Management.PostgreSQL.FlexibleServers --tag=package-flexibleserver-2021-06 --csharp.output-folder=C:\Users\daeunyim\work\SDK\azure-sdk-for-net\sdk\postgresql\Microsoft.Azure.Management.PostgreSQL\src\postgresqlflexibleservers\Generated
+Autorest CSharp Version: 2.3.82
+2021-07-19 14:46:49 UTC
Azure-rest-api-specs repository information
GitHub fork: Azure
Branch: master
-Commit: faf8e1c19e3b36e6d16622bf168369a838b04a7f
+Commit: e7682aa897902920f3a95b2f358b6f7729d18666
AutoRest information
Requested version: v2
Bootstrapper version: autorest@2.0.4413
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/AzSdk.RP.props b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/AzSdk.RP.props
index 65a711a10430..2f02f38b1d68 100644
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/AzSdk.RP.props
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/AzSdk.RP.props
@@ -1,7 +1,7 @@
- DBforPostgreSQL_2017-12-01;DBforPostgreSQL_2018-06-01;DBforPostgreSQL_2020-01-01;DBforPostgreSQL_2020-02-14-privatepreview;
+ DBforPostgreSQL_2017-12-01;DBforPostgreSQL_2018-06-01;DBforPostgreSQL_2020-01-01;DBforPostgreSQL_2021-06-01;
$(PackageTags);$(CommonTags);$(AzureApiTag);
\ No newline at end of file
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/Microsoft.Azure.Management.PostgreSQL.csproj b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/Microsoft.Azure.Management.PostgreSQL.csproj
index 7027224f3f20..cded00d510b8 100644
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/Microsoft.Azure.Management.PostgreSQL.csproj
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/Microsoft.Azure.Management.PostgreSQL.csproj
@@ -6,7 +6,7 @@
Microsoft.Azure.Management.PostgreSQL
Provides developers with libraries for the Azure Database for PostgreSQL under Azure Resource manager to deploy an instance of PostgreSQL. Create, Update, Delete, Restore, and more.
- 0.9.5-preview
+ 1.0.0
Microsoft.Azure.Management.PostgreSQL
PostgreSQL;Azure Database for PostgreSQL;
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/Properties/AssemblyInfo.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/Properties/AssemblyInfo.cs
index 5eb22e554d33..01dab27b08fe 100644
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/Properties/AssemblyInfo.cs
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/Properties/AssemblyInfo.cs
@@ -7,8 +7,8 @@
[assembly: AssemblyTitle("Microsoft Azure Database for PostgreSQL Management Library")]
[assembly: AssemblyDescription("Provides management functionality for Microsoft Azure Database for PostgreSQL Resources.")]
-[assembly: AssemblyVersion("0.9.5")]
-[assembly: AssemblyFileVersion("0.9.5")]
+[assembly: AssemblyVersion("1.0.0")]
+[assembly: AssemblyFileVersion("1.0.0")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
[assembly: AssemblyProduct("Microsoft Azure .NET SDK")]
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/generate.ps1 b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/generate.ps1
index 1133b214c10d..c80c4a2cbd54 100644
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/generate.ps1
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/generate.ps1
@@ -1,2 +1,2 @@
Start-AutoRestCodeGeneration -ResourceProvider "postgresql/resource-manager" -AutoRestVersion "v2" -SdkGenerationDirectory "$PSScriptRoot\postgresql\Generated"
-Start-AutoRestCodeGeneration -ResourceProvider "postgresql/resource-manager" -AutoRestVersion "v2" -SdkGenerationDirectory "$PSScriptRoot\postgresqlflexibleservers\Generated" -ConfigFileTag "package-2020-02-14-privatepreview" -Namespace "Microsoft.Azure.Management.PostgreSQL.FlexibleServers"
+Start-AutoRestCodeGeneration -ResourceProvider "postgresql/resource-manager" -AutoRestVersion "v2" -SdkGenerationDirectory "$PSScriptRoot\postgresqlflexibleservers\Generated" -ConfigFileTag "package-flexibleserver-2021-06" -Namespace "Microsoft.Azure.Management.PostgreSQL.FlexibleServers"
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/CheckNameAvailabilityOperations.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/CheckNameAvailabilityOperations.cs
index 335ed3a01279..784d68f43cef 100644
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/CheckNameAvailabilityOperations.cs
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/CheckNameAvailabilityOperations.cs
@@ -122,7 +122,7 @@ internal CheckNameAvailabilityOperations(PostgreSQLManagementClient client)
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.DBForPostgreSql/checkNameAvailability").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/checkNameAvailability").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
if (Client.ApiVersion != null)
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/ConfigurationsOperations.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/ConfigurationsOperations.cs
index 62c589a978c7..264c47c3c3e7 100644
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/ConfigurationsOperations.cs
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/ConfigurationsOperations.cs
@@ -118,10 +118,6 @@ internal ConfigurationsOperations(PostgreSQLManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
- }
}
if (serverName == null)
{
@@ -141,7 +137,7 @@ internal ConfigurationsOperations(PostgreSQLManagementClient client)
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/configurations").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName));
@@ -346,10 +342,6 @@ internal ConfigurationsOperations(PostgreSQLManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
- }
}
if (serverName == null)
{
@@ -374,7 +366,7 @@ internal ConfigurationsOperations(PostgreSQLManagementClient client)
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/configurations/{configurationName}").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations/{configurationName}").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName));
@@ -537,6 +529,34 @@ internal ConfigurationsOperations(PostgreSQLManagementClient client)
return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
}
+ ///
+ /// Updates a configuration of a server.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the server.
+ ///
+ ///
+ /// The name of the server configuration.
+ ///
+ ///
+ /// The required parameters for updating a server configuration.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public async Task> PutWithHttpMessagesAsync(string resourceGroupName, string serverName, string configurationName, Configuration parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ // Send Request
+ AzureOperationResponse _response = await BeginPutWithHttpMessagesAsync(resourceGroupName, serverName, configurationName, parameters, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ }
+
///
/// Updates a configuration of a server.
///
@@ -611,10 +631,6 @@ internal ConfigurationsOperations(PostgreSQLManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
- }
}
if (serverName == null)
{
@@ -644,7 +660,7 @@ internal ConfigurationsOperations(PostgreSQLManagementClient client)
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/configurations/{configurationName}").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations/{configurationName}").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName));
@@ -785,6 +801,250 @@ internal ConfigurationsOperations(PostgreSQLManagementClient client)
return _result;
}
+ ///
+ /// Updates a configuration of a server.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the server.
+ ///
+ ///
+ /// The name of the server configuration.
+ ///
+ ///
+ /// The required parameters for updating a server configuration.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task> BeginPutWithHttpMessagesAsync(string resourceGroupName, string serverName, string configurationName, Configuration parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ if (Client.ApiVersion != null)
+ {
+ if (Client.ApiVersion.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1);
+ }
+ }
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (Client.SubscriptionId != null)
+ {
+ if (Client.SubscriptionId.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
+ }
+ }
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (resourceGroupName != null)
+ {
+ if (resourceGroupName.Length > 90)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
+ }
+ if (resourceGroupName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ }
+ }
+ if (serverName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "serverName");
+ }
+ if (configurationName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "configurationName");
+ }
+ if (parameters == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "parameters");
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("serverName", serverName);
+ tracingParameters.Add("configurationName", configurationName);
+ tracingParameters.Add("parameters", parameters);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "BeginPut", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations/{configurationName}").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName));
+ _url = _url.Replace("{configurationName}", System.Uri.EscapeDataString(configurationName));
+ List _queryParameters = new List();
+ if (Client.ApiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("PUT");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ if(parameters != null)
+ {
+ _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings);
+ _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8);
+ _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
+ }
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200 && (int)_statusCode != 202)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
///
/// List all the configurations in a given server.
///
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/ConfigurationsOperationsExtensions.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/ConfigurationsOperationsExtensions.cs
index 7f5d520e8a4f..41ebdad8534f 100644
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/ConfigurationsOperationsExtensions.cs
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/ConfigurationsOperationsExtensions.cs
@@ -159,6 +159,58 @@ public static Configuration Update(this IConfigurationsOperations operations, st
}
}
+ ///
+ /// Updates a configuration of a server.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the server.
+ ///
+ ///
+ /// The name of the server configuration.
+ ///
+ ///
+ /// The required parameters for updating a server configuration.
+ ///
+ public static Configuration Put(this IConfigurationsOperations operations, string resourceGroupName, string serverName, string configurationName, Configuration parameters)
+ {
+ return operations.PutAsync(resourceGroupName, serverName, configurationName, parameters).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Updates a configuration of a server.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the server.
+ ///
+ ///
+ /// The name of the server configuration.
+ ///
+ ///
+ /// The required parameters for updating a server configuration.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task PutAsync(this IConfigurationsOperations operations, string resourceGroupName, string serverName, string configurationName, Configuration parameters, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.PutWithHttpMessagesAsync(resourceGroupName, serverName, configurationName, parameters, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
///
/// Updates a configuration of a server.
///
@@ -211,6 +263,58 @@ public static Configuration BeginUpdate(this IConfigurationsOperations operation
}
}
+ ///
+ /// Updates a configuration of a server.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the server.
+ ///
+ ///
+ /// The name of the server configuration.
+ ///
+ ///
+ /// The required parameters for updating a server configuration.
+ ///
+ public static Configuration BeginPut(this IConfigurationsOperations operations, string resourceGroupName, string serverName, string configurationName, Configuration parameters)
+ {
+ return operations.BeginPutAsync(resourceGroupName, serverName, configurationName, parameters).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Updates a configuration of a server.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the server.
+ ///
+ ///
+ /// The name of the server configuration.
+ ///
+ ///
+ /// The required parameters for updating a server configuration.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task BeginPutAsync(this IConfigurationsOperations operations, string resourceGroupName, string serverName, string configurationName, Configuration parameters, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.BeginPutWithHttpMessagesAsync(resourceGroupName, serverName, configurationName, parameters, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
///
/// List all the configurations in a given server.
///
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/ServerKeysOperations.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/DatabasesOperations.cs
similarity index 88%
rename from sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/ServerKeysOperations.cs
rename to sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/DatabasesOperations.cs
index 4ebe373d8c7a..39a86673995a 100644
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/ServerKeysOperations.cs
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/DatabasesOperations.cs
@@ -23,12 +23,12 @@ namespace Microsoft.Azure.Management.PostgreSQL.FlexibleServers
using System.Threading.Tasks;
///
- /// ServerKeysOperations operations.
+ /// DatabasesOperations operations.
///
- internal partial class ServerKeysOperations : IServiceOperations, IServerKeysOperations
+ internal partial class DatabasesOperations : IServiceOperations, IDatabasesOperations
{
///
- /// Initializes a new instance of the ServerKeysOperations class.
+ /// Initializes a new instance of the DatabasesOperations class.
///
///
/// Reference to the service client.
@@ -36,7 +36,7 @@ internal partial class ServerKeysOperations : IServiceOperations
/// Thrown when a required parameter is null
///
- internal ServerKeysOperations(PostgreSQLManagementClient client)
+ internal DatabasesOperations(PostgreSQLManagementClient client)
{
if (client == null)
{
@@ -51,7 +51,7 @@ internal ServerKeysOperations(PostgreSQLManagementClient client)
public PostgreSQLManagementClient Client { get; private set; }
///
- /// Gets a list of Server keys.
+ /// Creates a new database or updates an existing database.
///
///
/// The name of the resource group. The name is case insensitive.
@@ -59,6 +59,62 @@ internal ServerKeysOperations(PostgreSQLManagementClient client)
///
/// The name of the server.
///
+ ///
+ /// The name of the database.
+ ///
+ ///
+ /// The required parameters for creating or updating a database.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public async Task> CreateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Database parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ // Send Request
+ AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Deletes a database.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the server.
+ ///
+ ///
+ /// The name of the database.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ // Send request
+ AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Gets information about a database.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the server.
+ ///
+ ///
+ /// The name of the database.
+ ///
///
/// Headers that will be added to request.
///
@@ -80,7 +136,7 @@ internal ServerKeysOperations(PostgreSQLManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListWithHttpMessagesAsync(string resourceGroupName, string serverName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (Client.ApiVersion == null)
{
@@ -118,15 +174,15 @@ internal ServerKeysOperations(PostgreSQLManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
- }
}
if (serverName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "serverName");
}
+ if (databaseName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "databaseName");
+ }
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -136,15 +192,17 @@ internal ServerKeysOperations(PostgreSQLManagementClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("serverName", serverName);
+ tracingParameters.Add("databaseName", databaseName);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/keys").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/databases/{databaseName}").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName));
+ _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName));
List _queryParameters = new List();
if (Client.ApiVersion != null)
{
@@ -243,7 +301,7 @@ internal ServerKeysOperations(PostgreSQLManagementClient client)
throw ex;
}
// Create Result
- var _result = new AzureOperationResponse>();
+ var _result = new AzureOperationResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
if (_httpResponse.Headers.Contains("x-ms-request-id"))
@@ -256,7 +314,7 @@ internal ServerKeysOperations(PostgreSQLManagementClient client)
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
}
catch (JsonException ex)
{
@@ -276,7 +334,7 @@ internal ServerKeysOperations(PostgreSQLManagementClient client)
}
///
- /// Gets a PostgreSQL Server key.
+ /// List all the databases in a given server.
///
///
/// The name of the resource group. The name is case insensitive.
@@ -284,9 +342,6 @@ internal ServerKeysOperations(PostgreSQLManagementClient client)
///
/// The name of the server.
///
- ///
- /// The name of the PostgreSQL Server key to be retrieved.
- ///
///
/// Headers that will be added to request.
///
@@ -308,35 +363,8 @@ internal ServerKeysOperations(PostgreSQLManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, string keyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListByServerWithHttpMessagesAsync(string resourceGroupName, string serverName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
- }
- if (resourceGroupName != null)
- {
- if (resourceGroupName.Length > 90)
- {
- throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
- }
- if (resourceGroupName.Length < 1)
- {
- throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
- }
- }
- if (serverName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "serverName");
- }
- if (keyName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "keyName");
- }
if (Client.ApiVersion == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
@@ -359,6 +387,25 @@ internal ServerKeysOperations(PostgreSQLManagementClient client)
throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
}
}
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (resourceGroupName != null)
+ {
+ if (resourceGroupName.Length > 90)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
+ }
+ if (resourceGroupName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ }
+ }
+ if (serverName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "serverName");
+ }
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -368,17 +415,15 @@ internal ServerKeysOperations(PostgreSQLManagementClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("serverName", serverName);
- tracingParameters.Add("keyName", keyName);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "ListByServer", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/keys/{keyName}").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/databases").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName));
- _url = _url.Replace("{keyName}", System.Uri.EscapeDataString(keyName));
- _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
if (Client.ApiVersion != null)
{
@@ -477,7 +522,7 @@ internal ServerKeysOperations(PostgreSQLManagementClient client)
throw ex;
}
// Create Result
- var _result = new AzureOperationResponse();
+ var _result = new AzureOperationResponse>();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
if (_httpResponse.Headers.Contains("x-ms-request-id"))
@@ -490,7 +535,7 @@ internal ServerKeysOperations(PostgreSQLManagementClient client)
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
}
catch (JsonException ex)
{
@@ -510,74 +555,19 @@ internal ServerKeysOperations(PostgreSQLManagementClient client)
}
///
- /// Creates or updates a PostgreSQL Server key.
+ /// Creates a new database or updates an existing database.
///
- ///
- /// The name of the server.
- ///
- ///
- /// The name of the PostgreSQL Server key to be operated on (updated or
- /// created).
- ///
- ///
- /// The requested PostgreSQL Server key resource state.
- ///
///
/// The name of the resource group. The name is case insensitive.
///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task> CreateOrUpdateWithHttpMessagesAsync(string serverName, string keyName, ServerKey parameters, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- // Send Request
- AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(serverName, keyName, parameters, resourceGroupName, customHeaders, cancellationToken).ConfigureAwait(false);
- return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
- }
-
- ///
- /// Deletes the PostgreSQL Server key with the given name.
- ///
///
/// The name of the server.
///
- ///
- /// The name of the PostgreSQL Server key to be deleted.
- ///
- ///
- /// The name of the resource group. The name is case insensitive.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task DeleteWithHttpMessagesAsync(string serverName, string keyName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- // Send request
- AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(serverName, keyName, resourceGroupName, customHeaders, cancellationToken).ConfigureAwait(false);
- return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
- }
-
- ///
- /// Creates or updates a PostgreSQL Server key.
- ///
- ///
- /// The name of the server.
- ///
- ///
- /// The name of the PostgreSQL Server key to be operated on (updated or
- /// created).
+ ///
+ /// The name of the database.
///
///
- /// The requested PostgreSQL Server key resource state.
- ///
- ///
- /// The name of the resource group. The name is case insensitive.
+ /// The required parameters for creating or updating a database.
///
///
/// Headers that will be added to request.
@@ -600,20 +590,8 @@ internal ServerKeysOperations(PostgreSQLManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(string serverName, string keyName, ServerKey parameters, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Database parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (serverName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "serverName");
- }
- if (keyName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "keyName");
- }
- if (parameters == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "parameters");
- }
if (Client.ApiVersion == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
@@ -650,10 +628,18 @@ internal ServerKeysOperations(PostgreSQLManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
- }
+ }
+ if (serverName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "serverName");
+ }
+ if (databaseName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "databaseName");
+ }
+ if (parameters == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "parameters");
}
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
@@ -662,20 +648,20 @@ internal ServerKeysOperations(PostgreSQLManagementClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("serverName", serverName);
- tracingParameters.Add("keyName", keyName);
+ tracingParameters.Add("databaseName", databaseName);
tracingParameters.Add("parameters", parameters);
- tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "BeginCreate", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/keys/{keyName}").ToString();
- _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName));
- _url = _url.Replace("{keyName}", System.Uri.EscapeDataString(keyName));
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/databases/{databaseName}").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName));
+ _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName));
List _queryParameters = new List();
if (Client.ApiVersion != null)
{
@@ -745,7 +731,7 @@ internal ServerKeysOperations(PostgreSQLManagementClient client)
HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
- if ((int)_statusCode != 200 && (int)_statusCode != 202)
+ if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202)
{
var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
@@ -780,7 +766,7 @@ internal ServerKeysOperations(PostgreSQLManagementClient client)
throw ex;
}
// Create Result
- var _result = new AzureOperationResponse();
+ var _result = new AzureOperationResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
if (_httpResponse.Headers.Contains("x-ms-request-id"))
@@ -793,7 +779,7 @@ internal ServerKeysOperations(PostgreSQLManagementClient client)
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
}
catch (JsonException ex)
{
@@ -806,12 +792,12 @@ internal ServerKeysOperations(PostgreSQLManagementClient client)
}
}
// Deserialize Response
- if ((int)_statusCode == 202)
+ if ((int)_statusCode == 201)
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
}
catch (JsonException ex)
{
@@ -831,16 +817,16 @@ internal ServerKeysOperations(PostgreSQLManagementClient client)
}
///
- /// Deletes the PostgreSQL Server key with the given name.
+ /// Deletes a database.
///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
///
/// The name of the server.
///
- ///
- /// The name of the PostgreSQL Server key to be deleted.
- ///
- ///
- /// The name of the resource group. The name is case insensitive.
+ ///
+ /// The name of the database.
///
///
/// Headers that will be added to request.
@@ -860,16 +846,8 @@ internal ServerKeysOperations(PostgreSQLManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task BeginDeleteWithHttpMessagesAsync(string serverName, string keyName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (serverName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "serverName");
- }
- if (keyName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "keyName");
- }
if (Client.ApiVersion == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
@@ -906,10 +884,14 @@ internal ServerKeysOperations(PostgreSQLManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
- }
+ }
+ if (serverName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "serverName");
+ }
+ if (databaseName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "databaseName");
}
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
@@ -918,19 +900,19 @@ internal ServerKeysOperations(PostgreSQLManagementClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("serverName", serverName);
- tracingParameters.Add("keyName", keyName);
tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("serverName", serverName);
+ tracingParameters.Add("databaseName", databaseName);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/keys/{keyName}").ToString();
- _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName));
- _url = _url.Replace("{keyName}", System.Uri.EscapeDataString(keyName));
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/databases/{databaseName}").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName));
+ _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName));
List _queryParameters = new List();
if (Client.ApiVersion != null)
{
@@ -1044,7 +1026,7 @@ internal ServerKeysOperations(PostgreSQLManagementClient client)
}
///
- /// Gets a list of Server keys.
+ /// List all the databases in a given server.
///
///
/// The NextLink from the previous successful call to List operation.
@@ -1070,7 +1052,7 @@ internal ServerKeysOperations(PostgreSQLManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListByServerNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (nextPageLink == null)
{
@@ -1085,7 +1067,7 @@ internal ServerKeysOperations(PostgreSQLManagementClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("nextPageLink", nextPageLink);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "ListByServerNext", tracingParameters);
}
// Construct URL
string _url = "{nextLink}";
@@ -1184,7 +1166,7 @@ internal ServerKeysOperations(PostgreSQLManagementClient client)
throw ex;
}
// Create Result
- var _result = new AzureOperationResponse>();
+ var _result = new AzureOperationResponse>();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
if (_httpResponse.Headers.Contains("x-ms-request-id"))
@@ -1197,7 +1179,7 @@ internal ServerKeysOperations(PostgreSQLManagementClient client)
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
}
catch (JsonException ex)
{
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/ServerKeysOperationsExtensions.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/DatabasesOperationsExtensions.cs
similarity index 57%
rename from sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/ServerKeysOperationsExtensions.cs
rename to sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/DatabasesOperationsExtensions.cs
index 17002802b954..0d49cf3651a3 100644
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/ServerKeysOperationsExtensions.cs
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/DatabasesOperationsExtensions.cs
@@ -17,12 +17,12 @@ namespace Microsoft.Azure.Management.PostgreSQL.FlexibleServers
using System.Threading.Tasks;
///
- /// Extension methods for ServerKeysOperations.
+ /// Extension methods for DatabasesOperations.
///
- public static partial class ServerKeysOperationsExtensions
+ public static partial class DatabasesOperationsExtensions
{
///
- /// Gets a list of Server keys.
+ /// Creates a new database or updates an existing database.
///
///
/// The operations group for this extension method.
@@ -33,13 +33,19 @@ public static partial class ServerKeysOperationsExtensions
///
/// The name of the server.
///
- public static IPage List(this IServerKeysOperations operations, string resourceGroupName, string serverName)
+ ///
+ /// The name of the database.
+ ///
+ ///
+ /// The required parameters for creating or updating a database.
+ ///
+ public static Database Create(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, Database parameters)
{
- return operations.ListAsync(resourceGroupName, serverName).GetAwaiter().GetResult();
+ return operations.CreateAsync(resourceGroupName, serverName, databaseName, parameters).GetAwaiter().GetResult();
}
///
- /// Gets a list of Server keys.
+ /// Creates a new database or updates an existing database.
///
///
/// The operations group for this extension method.
@@ -50,19 +56,25 @@ public static IPage List(this IServerKeysOperations operations, strin
///
/// The name of the server.
///
+ ///
+ /// The name of the database.
+ ///
+ ///
+ /// The required parameters for creating or updating a database.
+ ///
///
/// The cancellation token.
///
- public static async Task> ListAsync(this IServerKeysOperations operations, string resourceGroupName, string serverName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task CreateAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, Database parameters, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, serverName, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
///
- /// Gets a PostgreSQL Server key.
+ /// Deletes a database.
///
///
/// The operations group for this extension method.
@@ -73,16 +85,16 @@ public static IPage List(this IServerKeysOperations operations, strin
///
/// The name of the server.
///
- ///
- /// The name of the PostgreSQL Server key to be retrieved.
+ ///
+ /// The name of the database.
///
- public static ServerKey Get(this IServerKeysOperations operations, string resourceGroupName, string serverName, string keyName)
+ public static void Delete(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName)
{
- return operations.GetAsync(resourceGroupName, serverName, keyName).GetAwaiter().GetResult();
+ operations.DeleteAsync(resourceGroupName, serverName, databaseName).GetAwaiter().GetResult();
}
///
- /// Gets a PostgreSQL Server key.
+ /// Deletes a database.
///
///
/// The operations group for this extension method.
@@ -93,216 +105,200 @@ public static ServerKey Get(this IServerKeysOperations operations, string resour
///
/// The name of the server.
///
- ///
- /// The name of the PostgreSQL Server key to be retrieved.
+ ///
+ /// The name of the database.
///
///
/// The cancellation token.
///
- public static async Task GetAsync(this IServerKeysOperations operations, string resourceGroupName, string serverName, string keyName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task DeleteAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, keyName, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
+ (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false)).Dispose();
}
///
- /// Creates or updates a PostgreSQL Server key.
+ /// Gets information about a database.
///
///
/// The operations group for this extension method.
///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
///
/// The name of the server.
///
- ///
- /// The name of the PostgreSQL Server key to be operated on (updated or
- /// created).
- ///
- ///
- /// The requested PostgreSQL Server key resource state.
- ///
- ///
- /// The name of the resource group. The name is case insensitive.
+ ///
+ /// The name of the database.
///
- public static ServerKey CreateOrUpdate(this IServerKeysOperations operations, string serverName, string keyName, ServerKey parameters, string resourceGroupName)
+ public static Database Get(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName)
{
- return operations.CreateOrUpdateAsync(serverName, keyName, parameters, resourceGroupName).GetAwaiter().GetResult();
+ return operations.GetAsync(resourceGroupName, serverName, databaseName).GetAwaiter().GetResult();
}
///
- /// Creates or updates a PostgreSQL Server key.
+ /// Gets information about a database.
///
///
/// The operations group for this extension method.
///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
///
/// The name of the server.
///
- ///
- /// The name of the PostgreSQL Server key to be operated on (updated or
- /// created).
- ///
- ///
- /// The requested PostgreSQL Server key resource state.
- ///
- ///
- /// The name of the resource group. The name is case insensitive.
+ ///
+ /// The name of the database.
///
///
/// The cancellation token.
///
- public static async Task CreateOrUpdateAsync(this IServerKeysOperations operations, string serverName, string keyName, ServerKey parameters, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task GetAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(serverName, keyName, parameters, resourceGroupName, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
///
- /// Deletes the PostgreSQL Server key with the given name.
+ /// List all the databases in a given server.
///
///
/// The operations group for this extension method.
///
- ///
- /// The name of the server.
- ///
- ///
- /// The name of the PostgreSQL Server key to be deleted.
- ///
///
/// The name of the resource group. The name is case insensitive.
///
- public static void Delete(this IServerKeysOperations operations, string serverName, string keyName, string resourceGroupName)
+ ///
+ /// The name of the server.
+ ///
+ public static IPage ListByServer(this IDatabasesOperations operations, string resourceGroupName, string serverName)
{
- operations.DeleteAsync(serverName, keyName, resourceGroupName).GetAwaiter().GetResult();
+ return operations.ListByServerAsync(resourceGroupName, serverName).GetAwaiter().GetResult();
}
///
- /// Deletes the PostgreSQL Server key with the given name.
+ /// List all the databases in a given server.
///
///
/// The operations group for this extension method.
///
- ///
- /// The name of the server.
- ///
- ///
- /// The name of the PostgreSQL Server key to be deleted.
- ///
///
/// The name of the resource group. The name is case insensitive.
///
+ ///
+ /// The name of the server.
+ ///
///
/// The cancellation token.
///
- public static async Task DeleteAsync(this IServerKeysOperations operations, string serverName, string keyName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> ListByServerAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, CancellationToken cancellationToken = default(CancellationToken))
{
- (await operations.DeleteWithHttpMessagesAsync(serverName, keyName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ using (var _result = await operations.ListByServerWithHttpMessagesAsync(resourceGroupName, serverName, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
}
///
- /// Creates or updates a PostgreSQL Server key.
+ /// Creates a new database or updates an existing database.
///
///
/// The operations group for this extension method.
///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
///
/// The name of the server.
///
- ///
- /// The name of the PostgreSQL Server key to be operated on (updated or
- /// created).
+ ///
+ /// The name of the database.
///
///
- /// The requested PostgreSQL Server key resource state.
- ///
- ///
- /// The name of the resource group. The name is case insensitive.
+ /// The required parameters for creating or updating a database.
///
- public static ServerKey BeginCreateOrUpdate(this IServerKeysOperations operations, string serverName, string keyName, ServerKey parameters, string resourceGroupName)
+ public static Database BeginCreate(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, Database parameters)
{
- return operations.BeginCreateOrUpdateAsync(serverName, keyName, parameters, resourceGroupName).GetAwaiter().GetResult();
+ return operations.BeginCreateAsync(resourceGroupName, serverName, databaseName, parameters).GetAwaiter().GetResult();
}
///
- /// Creates or updates a PostgreSQL Server key.
+ /// Creates a new database or updates an existing database.
///
///
/// The operations group for this extension method.
///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
///
/// The name of the server.
///
- ///
- /// The name of the PostgreSQL Server key to be operated on (updated or
- /// created).
+ ///
+ /// The name of the database.
///
///
- /// The requested PostgreSQL Server key resource state.
- ///
- ///
- /// The name of the resource group. The name is case insensitive.
+ /// The required parameters for creating or updating a database.
///
///
/// The cancellation token.
///
- public static async Task BeginCreateOrUpdateAsync(this IServerKeysOperations operations, string serverName, string keyName, ServerKey parameters, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task BeginCreateAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, Database parameters, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(serverName, keyName, parameters, resourceGroupName, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.BeginCreateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
///
- /// Deletes the PostgreSQL Server key with the given name.
+ /// Deletes a database.
///
///
/// The operations group for this extension method.
///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
///
/// The name of the server.
///
- ///
- /// The name of the PostgreSQL Server key to be deleted.
- ///
- ///
- /// The name of the resource group. The name is case insensitive.
+ ///
+ /// The name of the database.
///
- public static void BeginDelete(this IServerKeysOperations operations, string serverName, string keyName, string resourceGroupName)
+ public static void BeginDelete(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName)
{
- operations.BeginDeleteAsync(serverName, keyName, resourceGroupName).GetAwaiter().GetResult();
+ operations.BeginDeleteAsync(resourceGroupName, serverName, databaseName).GetAwaiter().GetResult();
}
///
- /// Deletes the PostgreSQL Server key with the given name.
+ /// Deletes a database.
///
///
/// The operations group for this extension method.
///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
///
/// The name of the server.
///
- ///
- /// The name of the PostgreSQL Server key to be deleted.
- ///
- ///
- /// The name of the resource group. The name is case insensitive.
+ ///
+ /// The name of the database.
///
///
/// The cancellation token.
///
- public static async Task BeginDeleteAsync(this IServerKeysOperations operations, string serverName, string keyName, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task BeginDeleteAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, CancellationToken cancellationToken = default(CancellationToken))
{
- (await operations.BeginDeleteWithHttpMessagesAsync(serverName, keyName, resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false)).Dispose();
}
///
- /// Gets a list of Server keys.
+ /// List all the databases in a given server.
///
///
/// The operations group for this extension method.
@@ -310,13 +306,13 @@ public static void BeginDelete(this IServerKeysOperations operations, string ser
///
/// The NextLink from the previous successful call to List operation.
///
- public static IPage ListNext(this IServerKeysOperations operations, string nextPageLink)
+ public static IPage ListByServerNext(this IDatabasesOperations operations, string nextPageLink)
{
- return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult();
+ return operations.ListByServerNextAsync(nextPageLink).GetAwaiter().GetResult();
}
///
- /// Gets a list of Server keys.
+ /// List all the databases in a given server.
///
///
/// The operations group for this extension method.
@@ -327,9 +323,9 @@ public static IPage ListNext(this IServerKeysOperations operations, s
///
/// The cancellation token.
///
- public static async Task> ListNextAsync(this IServerKeysOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> ListByServerNextAsync(this IDatabasesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.ListByServerNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/FirewallRulesOperations.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/FirewallRulesOperations.cs
index fd57265438a3..0f1834657be8 100644
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/FirewallRulesOperations.cs
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/FirewallRulesOperations.cs
@@ -174,10 +174,6 @@ internal FirewallRulesOperations(PostgreSQLManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
- }
}
if (serverName == null)
{
@@ -202,7 +198,7 @@ internal FirewallRulesOperations(PostgreSQLManagementClient client)
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/firewallRules/{firewallRuleName}").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName));
@@ -405,10 +401,6 @@ internal FirewallRulesOperations(PostgreSQLManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
- }
}
if (serverName == null)
{
@@ -428,7 +420,7 @@ internal FirewallRulesOperations(PostgreSQLManagementClient client)
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/firewallRules").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName));
@@ -636,10 +628,6 @@ internal FirewallRulesOperations(PostgreSQLManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
- }
}
if (serverName == null)
{
@@ -673,7 +661,7 @@ internal FirewallRulesOperations(PostgreSQLManagementClient client)
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/firewallRules/{firewallRuleName}").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName));
@@ -900,10 +888,6 @@ internal FirewallRulesOperations(PostgreSQLManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
- }
}
if (serverName == null)
{
@@ -928,7 +912,7 @@ internal FirewallRulesOperations(PostgreSQLManagementClient client)
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/firewallRules/{firewallRuleName}").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName));
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/GetPrivateDnsZoneSuffixOperations.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/GetPrivateDnsZoneSuffixOperations.cs
new file mode 100644
index 000000000000..5fddeb670108
--- /dev/null
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/GetPrivateDnsZoneSuffixOperations.cs
@@ -0,0 +1,234 @@
+//
+// 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.PostgreSQL.FlexibleServers
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+ using System.Net;
+ using System.Net.Http;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// GetPrivateDnsZoneSuffixOperations operations.
+ ///
+ internal partial class GetPrivateDnsZoneSuffixOperations : IServiceOperations, IGetPrivateDnsZoneSuffixOperations
+ {
+ ///
+ /// Initializes a new instance of the GetPrivateDnsZoneSuffixOperations class.
+ ///
+ ///
+ /// Reference to the service client.
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ internal GetPrivateDnsZoneSuffixOperations(PostgreSQLManagementClient client)
+ {
+ if (client == null)
+ {
+ throw new System.ArgumentNullException("client");
+ }
+ Client = client;
+ }
+
+ ///
+ /// Gets a reference to the PostgreSQLManagementClient
+ ///
+ public PostgreSQLManagementClient Client { get; private set; }
+
+ ///
+ /// Get private DNS zone suffix in the cloud
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task> ExecuteWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ if (Client.ApiVersion != null)
+ {
+ if (Client.ApiVersion.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1);
+ }
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "Execute", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.DBforPostgreSQL/getPrivateDnsZoneSuffix").ToString();
+ List _queryParameters = new List();
+ if (Client.ApiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("POST");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ }
+}
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/GetPrivateDnsZoneSuffixOperationsExtensions.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/GetPrivateDnsZoneSuffixOperationsExtensions.cs
new file mode 100644
index 000000000000..768585998197
--- /dev/null
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/GetPrivateDnsZoneSuffixOperationsExtensions.cs
@@ -0,0 +1,53 @@
+//
+// 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.PostgreSQL.FlexibleServers
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// Extension methods for GetPrivateDnsZoneSuffixOperations.
+ ///
+ public static partial class GetPrivateDnsZoneSuffixOperationsExtensions
+ {
+ ///
+ /// Get private DNS zone suffix in the cloud
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ public static string Execute(this IGetPrivateDnsZoneSuffixOperations operations)
+ {
+ return operations.ExecuteAsync().GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Get private DNS zone suffix in the cloud
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task ExecuteAsync(this IGetPrivateDnsZoneSuffixOperations operations, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ExecuteWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ }
+}
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/IConfigurationsOperations.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/IConfigurationsOperations.cs
index d20f0c95619f..ce213253b159 100644
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/IConfigurationsOperations.cs
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/IConfigurationsOperations.cs
@@ -137,8 +137,70 @@ public partial interface IConfigurationsOperations
///
/// Thrown when a required parameter is null
///
+ Task> PutWithHttpMessagesAsync(string resourceGroupName, string serverName, string configurationName, Configuration parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Updates a configuration of a server.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the server.
+ ///
+ ///
+ /// The name of the server configuration.
+ ///
+ ///
+ /// The required parameters for updating a server configuration.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string configurationName, Configuration parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
+ /// Updates a configuration of a server.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the server.
+ ///
+ ///
+ /// The name of the server configuration.
+ ///
+ ///
+ /// The required parameters for updating a server configuration.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> BeginPutWithHttpMessagesAsync(string resourceGroupName, string serverName, string configurationName, Configuration parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
/// List all the configurations in a given server.
///
///
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/IServerKeysOperations.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/IDatabasesOperations.cs
similarity index 74%
rename from sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/IServerKeysOperations.cs
rename to sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/IDatabasesOperations.cs
index 6eced938ac8d..b456442080b9 100644
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/IServerKeysOperations.cs
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/IDatabasesOperations.cs
@@ -19,12 +19,12 @@ namespace Microsoft.Azure.Management.PostgreSQL.FlexibleServers
using System.Threading.Tasks;
///
- /// ServerKeysOperations operations.
+ /// DatabasesOperations operations.
///
- public partial interface IServerKeysOperations
+ public partial interface IDatabasesOperations
{
///
- /// Gets a list of Server keys.
+ /// Creates a new database or updates an existing database.
///
///
/// The name of the resource group. The name is case insensitive.
@@ -32,6 +32,12 @@ public partial interface IServerKeysOperations
///
/// The name of the server.
///
+ ///
+ /// The name of the database.
+ ///
+ ///
+ /// The required parameters for creating or updating a database.
+ ///
///
/// The headers that will be added to request.
///
@@ -47,9 +53,9 @@ public partial interface IServerKeysOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListWithHttpMessagesAsync(string resourceGroupName, string serverName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> CreateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Database parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Gets a PostgreSQL Server key.
+ /// Deletes a database.
///
///
/// The name of the resource group. The name is case insensitive.
@@ -57,8 +63,8 @@ public partial interface IServerKeysOperations
///
/// The name of the server.
///
- ///
- /// The name of the PostgreSQL Server key to be retrieved.
+ ///
+ /// The name of the database.
///
///
/// The headers that will be added to request.
@@ -69,28 +75,21 @@ public partial interface IServerKeysOperations
///
/// Thrown when the operation returned an invalid status code
///
- ///
- /// Thrown when unable to deserialize the response
- ///
///
/// Thrown when a required parameter is null
///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, string keyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task DeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Creates or updates a PostgreSQL Server key.
+ /// Gets information about a database.
///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
///
/// The name of the server.
///
- ///
- /// The name of the PostgreSQL Server key to be operated on (updated or
- /// created).
- ///
- ///
- /// The requested PostgreSQL Server key resource state.
- ///
- ///
- /// The name of the resource group. The name is case insensitive.
+ ///
+ /// The name of the database.
///
///
/// The headers that will be added to request.
@@ -107,19 +106,16 @@ public partial interface IServerKeysOperations
///
/// Thrown when a required parameter is null
///
- Task> CreateOrUpdateWithHttpMessagesAsync(string serverName, string keyName, ServerKey parameters, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Deletes the PostgreSQL Server key with the given name.
+ /// List all the databases in a given server.
///
- ///
- /// The name of the server.
- ///
- ///
- /// The name of the PostgreSQL Server key to be deleted.
- ///
///
/// The name of the resource group. The name is case insensitive.
///
+ ///
+ /// The name of the server.
+ ///
///
/// The headers that will be added to request.
///
@@ -129,25 +125,27 @@ public partial interface IServerKeysOperations
///
/// Thrown when the operation returned an invalid status code
///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
///
/// Thrown when a required parameter is null
///
- Task DeleteWithHttpMessagesAsync(string serverName, string keyName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListByServerWithHttpMessagesAsync(string resourceGroupName, string serverName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Creates or updates a PostgreSQL Server key.
+ /// Creates a new database or updates an existing database.
///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
///
/// The name of the server.
///
- ///
- /// The name of the PostgreSQL Server key to be operated on (updated or
- /// created).
+ ///
+ /// The name of the database.
///
///
- /// The requested PostgreSQL Server key resource state.
- ///
- ///
- /// The name of the resource group. The name is case insensitive.
+ /// The required parameters for creating or updating a database.
///
///
/// The headers that will be added to request.
@@ -164,18 +162,18 @@ public partial interface IServerKeysOperations
///
/// Thrown when a required parameter is null
///
- Task> BeginCreateOrUpdateWithHttpMessagesAsync(string serverName, string keyName, ServerKey parameters, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Database parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Deletes the PostgreSQL Server key with the given name.
+ /// Deletes a database.
///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
///
/// The name of the server.
///
- ///
- /// The name of the PostgreSQL Server key to be deleted.
- ///
- ///
- /// The name of the resource group. The name is case insensitive.
+ ///
+ /// The name of the database.
///
///
/// The headers that will be added to request.
@@ -189,9 +187,9 @@ public partial interface IServerKeysOperations
///
/// Thrown when a required parameter is null
///
- Task BeginDeleteWithHttpMessagesAsync(string serverName, string keyName, string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Gets a list of Server keys.
+ /// List all the databases in a given server.
///
///
/// The NextLink from the previous successful call to List operation.
@@ -211,6 +209,6 @@ public partial interface IServerKeysOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListByServerNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/IGetPrivateDnsZoneSuffixOperations.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/IGetPrivateDnsZoneSuffixOperations.cs
new file mode 100644
index 000000000000..a28da22e6b3d
--- /dev/null
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/IGetPrivateDnsZoneSuffixOperations.cs
@@ -0,0 +1,46 @@
+//
+// 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.PostgreSQL.FlexibleServers
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// GetPrivateDnsZoneSuffixOperations operations.
+ ///
+ public partial interface IGetPrivateDnsZoneSuffixOperations
+ {
+ ///
+ /// Get private DNS zone suffix in the cloud
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> ExecuteWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ }
+}
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/IPostgreSQLManagementClient.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/IPostgreSQLManagementClient.cs
index 990b1af8dca5..3564866ad248 100644
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/IPostgreSQLManagementClient.cs
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/IPostgreSQLManagementClient.cs
@@ -87,11 +87,6 @@ public partial interface IPostgreSQLManagementClient : System.IDisposable
///
IConfigurationsOperations Configurations { get; }
- ///
- /// Gets the IServerKeysOperations.
- ///
- IServerKeysOperations ServerKeys { get; }
-
///
/// Gets the ICheckNameAvailabilityOperations.
///
@@ -112,5 +107,15 @@ public partial interface IPostgreSQLManagementClient : System.IDisposable
///
IOperations Operations { get; }
+ ///
+ /// Gets the IDatabasesOperations.
+ ///
+ IDatabasesOperations Databases { get; }
+
+ ///
+ /// Gets the IGetPrivateDnsZoneSuffixOperations.
+ ///
+ IGetPrivateDnsZoneSuffixOperations GetPrivateDnsZoneSuffix { get; }
+
}
}
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/IServersOperations.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/IServersOperations.cs
index 5b4f90a77a98..340eb5990323 100644
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/IServersOperations.cs
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/IServersOperations.cs
@@ -177,6 +177,9 @@ public partial interface IServersOperations
///
/// The name of the server.
///
+ ///
+ /// The parameters for restarting a server.
+ ///
///
/// The headers that will be added to request.
///
@@ -189,7 +192,7 @@ public partial interface IServersOperations
///
/// Thrown when a required parameter is null
///
- Task RestartWithHttpMessagesAsync(string resourceGroupName, string serverName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task RestartWithHttpMessagesAsync(string resourceGroupName, string serverName, RestartParameter parameters = default(RestartParameter), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Starts a server.
///
@@ -322,6 +325,9 @@ public partial interface IServersOperations
///
/// The name of the server.
///
+ ///
+ /// The parameters for restarting a server.
+ ///
///
/// The headers that will be added to request.
///
@@ -334,7 +340,7 @@ public partial interface IServersOperations
///
/// Thrown when a required parameter is null
///
- Task BeginRestartWithHttpMessagesAsync(string resourceGroupName, string serverName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task BeginRestartWithHttpMessagesAsync(string resourceGroupName, string serverName, RestartParameter parameters = default(RestartParameter), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Starts a server.
///
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/LocationBasedCapabilitiesOperations.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/LocationBasedCapabilitiesOperations.cs
index ebb792e8583a..26943711cd0f 100644
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/LocationBasedCapabilitiesOperations.cs
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/LocationBasedCapabilitiesOperations.cs
@@ -118,7 +118,7 @@ internal LocationBasedCapabilitiesOperations(PostgreSQLManagementClient client)
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.DBForPostgreSql/locations/{locationName}/capabilities").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/capabilities").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
_url = _url.Replace("{locationName}", System.Uri.EscapeDataString(locationName));
List _queryParameters = new List();
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/AzureEntityResource.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/AzureEntityResource.cs
index 832ace5659b8..51fd1382338d 100644
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/AzureEntityResource.cs
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/AzureEntityResource.cs
@@ -14,9 +14,12 @@ namespace Microsoft.Azure.Management.PostgreSQL.FlexibleServers.Models
using System.Linq;
///
- /// The resource model definition for a Azure Resource Manager resource
- /// with an etag.
+ /// Entity Resource
///
+ ///
+ /// The resource model definition for an Azure Resource Manager resource
+ /// with an etag.
+ ///
public partial class AzureEntityResource : Resource
{
///
@@ -30,12 +33,12 @@ public AzureEntityResource()
///
/// Initializes a new instance of the AzureEntityResource class.
///
- /// Fully qualified resource Id for the resource. Ex -
+ /// Fully qualified resource ID for the resource. Ex -
/// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
/// The name of the resource
- /// The type of the resource. Ex-
- /// Microsoft.Compute/virtualMachines or
- /// Microsoft.Storage/storageAccounts.
+ /// The type of the resource. E.g.
+ /// "Microsoft.Compute/virtualMachines" or
+ /// "Microsoft.Storage/storageAccounts"
/// Resource Etag.
public AzureEntityResource(string id = default(string), string name = default(string), string type = default(string), string etag = default(string))
: base(id, name, type)
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/Backup.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/Backup.cs
new file mode 100644
index 000000000000..391fb671b0cc
--- /dev/null
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/Backup.cs
@@ -0,0 +1,73 @@
+//
+// 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.PostgreSQL.FlexibleServers.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Backup properties of a server
+ ///
+ public partial class Backup
+ {
+ ///
+ /// Initializes a new instance of the Backup class.
+ ///
+ public Backup()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the Backup class.
+ ///
+ /// Backup retention days for the
+ /// server.
+ /// A value indicating whether
+ /// Geo-Redundant backup is enabled on the server. Possible values
+ /// include: 'Enabled', 'Disabled'
+ /// The earliest restore point time
+ /// (ISO8601 format) for server.
+ public Backup(int? backupRetentionDays = default(int?), string geoRedundantBackup = default(string), System.DateTime? earliestRestoreDate = default(System.DateTime?))
+ {
+ BackupRetentionDays = backupRetentionDays;
+ GeoRedundantBackup = geoRedundantBackup;
+ EarliestRestoreDate = earliestRestoreDate;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets backup retention days for the server.
+ ///
+ [JsonProperty(PropertyName = "backupRetentionDays")]
+ public int? BackupRetentionDays { get; set; }
+
+ ///
+ /// Gets or sets a value indicating whether Geo-Redundant backup is
+ /// enabled on the server. Possible values include: 'Enabled',
+ /// 'Disabled'
+ ///
+ [JsonProperty(PropertyName = "geoRedundantBackup")]
+ public string GeoRedundantBackup { get; set; }
+
+ ///
+ /// Gets the earliest restore point time (ISO8601 format) for server.
+ ///
+ [JsonProperty(PropertyName = "earliestRestoreDate")]
+ public System.DateTime? EarliestRestoreDate { get; private set; }
+
+ }
+}
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/CapabilityProperties.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/CapabilityProperties.cs
index 101078d1ddd5..8f74e2d489a7 100644
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/CapabilityProperties.cs
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/CapabilityProperties.cs
@@ -32,10 +32,24 @@ public CapabilityProperties()
/// Initializes a new instance of the CapabilityProperties class.
///
/// zone name
- public CapabilityProperties(string zone = default(string), IList supportedFlexibleServerEditions = default(IList))
+ /// A value indicating whether a new
+ /// server in this region can have geo-backups to paired
+ /// region.
+ /// A value indicating whether a
+ /// new server in this region can support multi zone HA.
+ /// A value
+ /// indicating whether a new server in this region can have geo-backups
+ /// to paired region.
+ /// The status
+ public CapabilityProperties(string zone = default(string), bool? geoBackupSupported = default(bool?), bool? zoneRedundantHaSupported = default(bool?), bool? zoneRedundantHaAndGeoBackupSupported = default(bool?), IList supportedFlexibleServerEditions = default(IList), IList supportedHyperscaleNodeEditions = default(IList), string status = default(string))
{
Zone = zone;
+ GeoBackupSupported = geoBackupSupported;
+ ZoneRedundantHaSupported = zoneRedundantHaSupported;
+ ZoneRedundantHaAndGeoBackupSupported = zoneRedundantHaAndGeoBackupSupported;
SupportedFlexibleServerEditions = supportedFlexibleServerEditions;
+ SupportedHyperscaleNodeEditions = supportedHyperscaleNodeEditions;
+ Status = status;
CustomInit();
}
@@ -50,10 +64,42 @@ public CapabilityProperties()
[JsonProperty(PropertyName = "zone")]
public string Zone { get; private set; }
+ ///
+ /// Gets a value indicating whether a new server in this region can
+ /// have geo-backups to paired region.
+ ///
+ [JsonProperty(PropertyName = "geoBackupSupported")]
+ public bool? GeoBackupSupported { get; private set; }
+
+ ///
+ /// Gets a value indicating whether a new server in this region can
+ /// support multi zone HA.
+ ///
+ [JsonProperty(PropertyName = "zoneRedundantHaSupported")]
+ public bool? ZoneRedundantHaSupported { get; private set; }
+
+ ///
+ /// Gets a value indicating whether a new server in this region can
+ /// have geo-backups to paired region.
+ ///
+ [JsonProperty(PropertyName = "zoneRedundantHaAndGeoBackupSupported")]
+ public bool? ZoneRedundantHaAndGeoBackupSupported { get; private set; }
+
///
///
[JsonProperty(PropertyName = "supportedFlexibleServerEditions")]
- public IList SupportedFlexibleServerEditions { get; private set; }
+ public IList SupportedFlexibleServerEditions { get; private set; }
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "supportedHyperscaleNodeEditions")]
+ public IList SupportedHyperscaleNodeEditions { get; private set; }
+
+ ///
+ /// Gets the status
+ ///
+ [JsonProperty(PropertyName = "status")]
+ public string Status { get; private set; }
}
}
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/Configuration.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/Configuration.cs
index af252b7ca38c..f3e10d6a7eb3 100644
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/Configuration.cs
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/Configuration.cs
@@ -32,12 +32,12 @@ public Configuration()
///
/// Initializes a new instance of the Configuration class.
///
- /// Fully qualified resource Id for the resource. Ex -
+ /// Fully qualified resource ID for the resource. Ex -
/// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
/// The name of the resource
- /// The type of the resource. Ex-
- /// Microsoft.Compute/virtualMachines or
- /// Microsoft.Storage/storageAccounts.
+ /// The type of the resource. E.g.
+ /// "Microsoft.Compute/virtualMachines" or
+ /// "Microsoft.Storage/storageAccounts"
/// Value of the configuration.
/// Description of the configuration.
/// Default value of the
@@ -48,7 +48,9 @@ public Configuration()
/// Allowed values of the
/// configuration.
/// Source of the configuration.
- public Configuration(string id = default(string), string name = default(string), string type = default(string), string value = default(string), string description = default(string), string defaultValue = default(string), string dataType = default(string), string allowedValues = default(string), string source = default(string))
+ /// The system metadata relating to this
+ /// resource.
+ public Configuration(string id = default(string), string name = default(string), string type = default(string), string value = default(string), string description = default(string), string defaultValue = default(string), string dataType = default(string), string allowedValues = default(string), string source = default(string), SystemData systemData = default(SystemData))
: base(id, name, type)
{
Value = value;
@@ -57,6 +59,7 @@ public Configuration()
DataType = dataType;
AllowedValues = allowedValues;
Source = source;
+ SystemData = systemData;
CustomInit();
}
@@ -102,5 +105,11 @@ public Configuration()
[JsonProperty(PropertyName = "properties.source")]
public string Source { get; set; }
+ ///
+ /// Gets the system metadata relating to this resource.
+ ///
+ [JsonProperty(PropertyName = "systemData")]
+ public SystemData SystemData { get; private set; }
+
}
}
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/CreateMode.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/CreateMode.cs
index 79b9c7c166f8..2de59fdd8e14 100644
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/CreateMode.cs
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/CreateMode.cs
@@ -17,6 +17,8 @@ namespace Microsoft.Azure.Management.PostgreSQL.FlexibleServers.Models
public static class CreateMode
{
public const string Default = "Default";
+ public const string Create = "Create";
+ public const string Update = "Update";
public const string PointInTimeRestore = "PointInTimeRestore";
}
}
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/CreateModeForUpdate.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/CreateModeForUpdate.cs
new file mode 100644
index 000000000000..15d2b1b3bcd3
--- /dev/null
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/CreateModeForUpdate.cs
@@ -0,0 +1,22 @@
+//
+// 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.PostgreSQL.FlexibleServers.Models
+{
+
+ ///
+ /// Defines values for CreateModeForUpdate.
+ ///
+ public static class CreateModeForUpdate
+ {
+ public const string Default = "Default";
+ public const string Update = "Update";
+ }
+}
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/CreatedByType.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/CreatedByType.cs
new file mode 100644
index 000000000000..3dee26fbb024
--- /dev/null
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/CreatedByType.cs
@@ -0,0 +1,24 @@
+//
+// 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.PostgreSQL.FlexibleServers.Models
+{
+
+ ///
+ /// Defines values for CreatedByType.
+ ///
+ public static class CreatedByType
+ {
+ public const string User = "User";
+ public const string Application = "Application";
+ public const string ManagedIdentity = "ManagedIdentity";
+ public const string Key = "Key";
+ }
+}
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/Database.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/Database.cs
new file mode 100644
index 000000000000..ae19a8dc2d6b
--- /dev/null
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/Database.cs
@@ -0,0 +1,78 @@
+//
+// 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.PostgreSQL.FlexibleServers.Models
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Serialization;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Represents a Database.
+ ///
+ [Rest.Serialization.JsonTransformation]
+ public partial class Database : ProxyResource
+ {
+ ///
+ /// Initializes a new instance of the Database class.
+ ///
+ public Database()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the Database class.
+ ///
+ /// Fully qualified resource ID for the resource. Ex -
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
+ /// The name of the resource
+ /// The type of the resource. E.g.
+ /// "Microsoft.Compute/virtualMachines" or
+ /// "Microsoft.Storage/storageAccounts"
+ /// The charset of the database.
+ /// The collation of the database.
+ /// The system metadata relating to this
+ /// resource.
+ public Database(string id = default(string), string name = default(string), string type = default(string), string charset = default(string), string collation = default(string), SystemData systemData = default(SystemData))
+ : base(id, name, type)
+ {
+ Charset = charset;
+ Collation = collation;
+ SystemData = systemData;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the charset of the database.
+ ///
+ [JsonProperty(PropertyName = "properties.charset")]
+ public string Charset { get; set; }
+
+ ///
+ /// Gets or sets the collation of the database.
+ ///
+ [JsonProperty(PropertyName = "properties.collation")]
+ public string Collation { get; set; }
+
+ ///
+ /// Gets the system metadata relating to this resource.
+ ///
+ [JsonProperty(PropertyName = "systemData")]
+ public SystemData SystemData { get; private set; }
+
+ }
+}
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/ErrorResponse.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/ErrorResponse.cs
index d69c84cb273d..20acd77fcf14 100644
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/ErrorResponse.cs
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/ErrorResponse.cs
@@ -16,8 +16,13 @@ namespace Microsoft.Azure.Management.PostgreSQL.FlexibleServers.Models
using System.Linq;
///
- /// The resource management error response.
+ /// Error Response
///
+ ///
+ /// Common error response for all Azure Resource Manager APIs to return
+ /// error details for failed operations. (This also follows the OData error
+ /// response format.)
+ ///
public partial class ErrorResponse
{
///
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/FirewallRule.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/FirewallRule.cs
index ea28565e7904..cf982d148296 100644
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/FirewallRule.cs
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/FirewallRule.cs
@@ -36,17 +36,20 @@ public FirewallRule()
/// firewall rule. Must be IPv4 format.
/// The end IP address of the server
/// firewall rule. Must be IPv4 format.
- /// Fully qualified resource Id for the resource. Ex -
+ /// Fully qualified resource ID for the resource. Ex -
/// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
/// The name of the resource
- /// The type of the resource. Ex-
- /// Microsoft.Compute/virtualMachines or
- /// Microsoft.Storage/storageAccounts.
- public FirewallRule(string startIpAddress, string endIpAddress, string id = default(string), string name = default(string), string type = default(string))
+ /// The type of the resource. E.g.
+ /// "Microsoft.Compute/virtualMachines" or
+ /// "Microsoft.Storage/storageAccounts"
+ /// The system metadata relating to this
+ /// resource.
+ public FirewallRule(string startIpAddress, string endIpAddress, string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData))
: base(id, name, type)
{
StartIpAddress = startIpAddress;
EndIpAddress = endIpAddress;
+ SystemData = systemData;
CustomInit();
}
@@ -69,6 +72,12 @@ public FirewallRule()
[JsonProperty(PropertyName = "properties.endIpAddress")]
public string EndIpAddress { get; set; }
+ ///
+ /// Gets the system metadata relating to this resource.
+ ///
+ [JsonProperty(PropertyName = "systemData")]
+ public SystemData SystemData { get; private set; }
+
///
/// Validate the object.
///
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/ServerEditionCapability.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/FlexibleServerEditionCapability.cs
similarity index 57%
rename from sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/ServerEditionCapability.cs
rename to sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/FlexibleServerEditionCapability.cs
index ce1b1aca1c46..9894fea1e291 100644
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/ServerEditionCapability.cs
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/FlexibleServerEditionCapability.cs
@@ -16,27 +16,35 @@ namespace Microsoft.Azure.Management.PostgreSQL.FlexibleServers.Models
using System.Linq;
///
- /// Server edition capabilities.
+ /// Flexible server edition capabilities.
///
- public partial class ServerEditionCapability
+ public partial class FlexibleServerEditionCapability
{
///
- /// Initializes a new instance of the ServerEditionCapability class.
+ /// Initializes a new instance of the FlexibleServerEditionCapability
+ /// class.
///
- public ServerEditionCapability()
+ public FlexibleServerEditionCapability()
{
CustomInit();
}
///
- /// Initializes a new instance of the ServerEditionCapability class.
+ /// Initializes a new instance of the FlexibleServerEditionCapability
+ /// class.
///
/// Server edition name
- public ServerEditionCapability(string name = default(string), IList supportedStorageEditions = default(IList), IList supportedServerVersions = default(IList))
+ /// The list of editions
+ /// supported by this server edition.
+ /// The list of server versions
+ /// supported by this server edition.
+ /// The status
+ public FlexibleServerEditionCapability(string name = default(string), IList supportedStorageEditions = default(IList), IList supportedServerVersions = default(IList), string status = default(string))
{
Name = name;
SupportedStorageEditions = supportedStorageEditions;
SupportedServerVersions = supportedServerVersions;
+ Status = status;
CustomInit();
}
@@ -52,14 +60,22 @@ public ServerEditionCapability()
public string Name { get; private set; }
///
+ /// Gets the list of editions supported by this server edition.
///
[JsonProperty(PropertyName = "supportedStorageEditions")]
public IList SupportedStorageEditions { get; private set; }
///
+ /// Gets the list of server versions supported by this server edition.
///
[JsonProperty(PropertyName = "supportedServerVersions")]
public IList SupportedServerVersions { get; private set; }
+ ///
+ /// Gets the status
+ ///
+ [JsonProperty(PropertyName = "status")]
+ public string Status { get; private set; }
+
}
}
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/GeoRedundantBackupEnum.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/GeoRedundantBackupEnum.cs
new file mode 100644
index 000000000000..911340c35371
--- /dev/null
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/GeoRedundantBackupEnum.cs
@@ -0,0 +1,22 @@
+//
+// 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.PostgreSQL.FlexibleServers.Models
+{
+
+ ///
+ /// Defines values for GeoRedundantBackupEnum.
+ ///
+ public static class GeoRedundantBackupEnum
+ {
+ public const string Enabled = "Enabled";
+ public const string Disabled = "Disabled";
+ }
+}
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/HAEnabledEnum.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/HAEnabledEnum.cs
deleted file mode 100644
index edb5090af812..000000000000
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/HAEnabledEnum.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-//
-// 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.PostgreSQL.FlexibleServers.Models
-{
- using Newtonsoft.Json;
- using Newtonsoft.Json.Converters;
- using System.Runtime;
- using System.Runtime.Serialization;
-
- ///
- /// Defines values for HAEnabledEnum.
- ///
- [JsonConverter(typeof(StringEnumConverter))]
- public enum HAEnabledEnum
- {
- [EnumMember(Value = "Enabled")]
- Enabled,
- [EnumMember(Value = "Disabled")]
- Disabled
- }
- internal static class HAEnabledEnumEnumExtension
- {
- internal static string ToSerializedValue(this HAEnabledEnum? value)
- {
- return value == null ? null : ((HAEnabledEnum)value).ToSerializedValue();
- }
-
- internal static string ToSerializedValue(this HAEnabledEnum value)
- {
- switch( value )
- {
- case HAEnabledEnum.Enabled:
- return "Enabled";
- case HAEnabledEnum.Disabled:
- return "Disabled";
- }
- return null;
- }
-
- internal static HAEnabledEnum? ParseHAEnabledEnum(this string value)
- {
- switch( value )
- {
- case "Enabled":
- return HAEnabledEnum.Enabled;
- case "Disabled":
- return HAEnabledEnum.Disabled;
- }
- return null;
- }
- }
-}
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/HighAvailability.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/HighAvailability.cs
new file mode 100644
index 000000000000..62a1578c1d39
--- /dev/null
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/HighAvailability.cs
@@ -0,0 +1,75 @@
+//
+// 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.PostgreSQL.FlexibleServers.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// High availability properties of a server
+ ///
+ public partial class HighAvailability
+ {
+ ///
+ /// Initializes a new instance of the HighAvailability class.
+ ///
+ public HighAvailability()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the HighAvailability class.
+ ///
+ /// The HA mode for the server. Possible values
+ /// include: 'Disabled', 'ZoneRedundant'
+ /// A state of a HA server that is visible to user.
+ /// Possible values include: 'NotEnabled', 'CreatingStandby',
+ /// 'ReplicatingData', 'FailingOver', 'Healthy',
+ /// 'RemovingStandby'
+ /// availability zone information
+ /// of the standby.
+ public HighAvailability(string mode = default(string), string state = default(string), string standbyAvailabilityZone = default(string))
+ {
+ Mode = mode;
+ State = state;
+ StandbyAvailabilityZone = standbyAvailabilityZone;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the HA mode for the server. Possible values include:
+ /// 'Disabled', 'ZoneRedundant'
+ ///
+ [JsonProperty(PropertyName = "mode")]
+ public string Mode { get; set; }
+
+ ///
+ /// Gets a state of a HA server that is visible to user. Possible
+ /// values include: 'NotEnabled', 'CreatingStandby', 'ReplicatingData',
+ /// 'FailingOver', 'Healthy', 'RemovingStandby'
+ ///
+ [JsonProperty(PropertyName = "state")]
+ public string State { get; private set; }
+
+ ///
+ /// Gets or sets availability zone information of the standby.
+ ///
+ [JsonProperty(PropertyName = "standbyAvailabilityZone")]
+ public string StandbyAvailabilityZone { get; set; }
+
+ }
+}
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/HighAvailabilityMode.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/HighAvailabilityMode.cs
new file mode 100644
index 000000000000..870e6b01f840
--- /dev/null
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/HighAvailabilityMode.cs
@@ -0,0 +1,22 @@
+//
+// 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.PostgreSQL.FlexibleServers.Models
+{
+
+ ///
+ /// Defines values for HighAvailabilityMode.
+ ///
+ public static class HighAvailabilityMode
+ {
+ public const string Disabled = "Disabled";
+ public const string ZoneRedundant = "ZoneRedundant";
+ }
+}
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/HyperscaleNodeEditionCapability.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/HyperscaleNodeEditionCapability.cs
new file mode 100644
index 000000000000..3cd1b7da46e8
--- /dev/null
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/HyperscaleNodeEditionCapability.cs
@@ -0,0 +1,90 @@
+//
+// 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.PostgreSQL.FlexibleServers.Models
+{
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Hyperscale node edition capabilities.
+ ///
+ public partial class HyperscaleNodeEditionCapability
+ {
+ ///
+ /// Initializes a new instance of the HyperscaleNodeEditionCapability
+ /// class.
+ ///
+ public HyperscaleNodeEditionCapability()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the HyperscaleNodeEditionCapability
+ /// class.
+ ///
+ /// Server edition name
+ /// The list of editions
+ /// supported by this server edition.
+ /// The list of server versions
+ /// supported by this server edition.
+ /// The list of Node Types supported
+ /// by this server edition.
+ /// The status
+ public HyperscaleNodeEditionCapability(string name = default(string), IList supportedStorageEditions = default(IList), IList supportedServerVersions = default(IList), IList supportedNodeTypes = default(IList), string status = default(string))
+ {
+ Name = name;
+ SupportedStorageEditions = supportedStorageEditions;
+ SupportedServerVersions = supportedServerVersions;
+ SupportedNodeTypes = supportedNodeTypes;
+ Status = status;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets server edition name
+ ///
+ [JsonProperty(PropertyName = "name")]
+ public string Name { get; private set; }
+
+ ///
+ /// Gets the list of editions supported by this server edition.
+ ///
+ [JsonProperty(PropertyName = "supportedStorageEditions")]
+ public IList SupportedStorageEditions { get; private set; }
+
+ ///
+ /// Gets the list of server versions supported by this server edition.
+ ///
+ [JsonProperty(PropertyName = "supportedServerVersions")]
+ public IList SupportedServerVersions { get; private set; }
+
+ ///
+ /// Gets the list of Node Types supported by this server edition.
+ ///
+ [JsonProperty(PropertyName = "supportedNodeTypes")]
+ public IList SupportedNodeTypes { get; private set; }
+
+ ///
+ /// Gets the status
+ ///
+ [JsonProperty(PropertyName = "status")]
+ public string Status { get; private set; }
+
+ }
+}
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/MaintenanceWindow.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/MaintenanceWindow.cs
index 31ec1af7c2d2..33675bfa2651 100644
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/MaintenanceWindow.cs
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/MaintenanceWindow.cs
@@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.PostgreSQL.FlexibleServers.Models
using System.Linq;
///
- /// Maintenance window of a server.
+ /// Maintenance window properties of a server.
///
public partial class MaintenanceWindow
{
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/Network.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/Network.cs
new file mode 100644
index 000000000000..9d10e5f1ef57
--- /dev/null
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/Network.cs
@@ -0,0 +1,71 @@
+//
+// 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.PostgreSQL.FlexibleServers.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Network properties of a server
+ ///
+ public partial class Network
+ {
+ ///
+ /// Initializes a new instance of the Network class.
+ ///
+ public Network()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the Network class.
+ ///
+ /// public network access is enabled
+ /// or not. Possible values include: 'Enabled', 'Disabled'
+ /// delegated subnet arm
+ /// resource id.
+ /// private dns zone arm
+ /// resource id.
+ public Network(string publicNetworkAccess = default(string), string delegatedSubnetResourceId = default(string), string privateDnsZoneArmResourceId = default(string))
+ {
+ PublicNetworkAccess = publicNetworkAccess;
+ DelegatedSubnetResourceId = delegatedSubnetResourceId;
+ PrivateDnsZoneArmResourceId = privateDnsZoneArmResourceId;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets public network access is enabled or not. Possible values
+ /// include: 'Enabled', 'Disabled'
+ ///
+ [JsonProperty(PropertyName = "publicNetworkAccess")]
+ public string PublicNetworkAccess { get; private set; }
+
+ ///
+ /// Gets or sets delegated subnet arm resource id.
+ ///
+ [JsonProperty(PropertyName = "delegatedSubnetResourceId")]
+ public string DelegatedSubnetResourceId { get; set; }
+
+ ///
+ /// Gets or sets private dns zone arm resource id.
+ ///
+ [JsonProperty(PropertyName = "privateDnsZoneArmResourceId")]
+ public string PrivateDnsZoneArmResourceId { get; set; }
+
+ }
+}
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/NodeTypeCapability.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/NodeTypeCapability.cs
new file mode 100644
index 000000000000..a8940875aee4
--- /dev/null
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/NodeTypeCapability.cs
@@ -0,0 +1,67 @@
+//
+// 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.PostgreSQL.FlexibleServers.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// node type capability
+ ///
+ public partial class NodeTypeCapability
+ {
+ ///
+ /// Initializes a new instance of the NodeTypeCapability class.
+ ///
+ public NodeTypeCapability()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the NodeTypeCapability class.
+ ///
+ /// note type name
+ /// note type
+ /// The status
+ public NodeTypeCapability(string name = default(string), string nodeType = default(string), string status = default(string))
+ {
+ Name = name;
+ NodeType = nodeType;
+ Status = status;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets note type name
+ ///
+ [JsonProperty(PropertyName = "name")]
+ public string Name { get; private set; }
+
+ ///
+ /// Gets note type
+ ///
+ [JsonProperty(PropertyName = "nodeType")]
+ public string NodeType { get; private set; }
+
+ ///
+ /// Gets the status
+ ///
+ [JsonProperty(PropertyName = "status")]
+ public string Status { get; private set; }
+
+ }
+}
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/Operation.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/Operation.cs
index d8ef4bdc1e40..1f42acafe35c 100644
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/Operation.cs
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/Operation.cs
@@ -35,14 +35,17 @@ public Operation()
/// this particular object.
/// The localized display information for this
/// particular operation or action.
+ /// Indicates whether the operation is a
+ /// data action
/// The intended executor of the operation.
/// Possible values include: 'NotSpecified', 'user', 'system'
/// Additional descriptions for the
/// operation.
- public Operation(string name = default(string), OperationDisplay display = default(OperationDisplay), string origin = default(string), IDictionary properties = default(IDictionary))
+ public Operation(string name = default(string), OperationDisplay display = default(OperationDisplay), bool? isDataAction = default(bool?), string origin = default(string), IDictionary properties = default(IDictionary))
{
Name = name;
Display = display;
+ IsDataAction = isDataAction;
Origin = origin;
Properties = properties;
CustomInit();
@@ -67,6 +70,12 @@ public Operation()
[JsonProperty(PropertyName = "display")]
public OperationDisplay Display { get; private set; }
+ ///
+ /// Gets or sets indicates whether the operation is a data action
+ ///
+ [JsonProperty(PropertyName = "isDataAction")]
+ public bool? IsDataAction { get; set; }
+
///
/// Gets the intended executor of the operation. Possible values
/// include: 'NotSpecified', 'user', 'system'
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/OperationListResult.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/OperationListResult.cs
index 4846839af3eb..74e3bbdf771a 100644
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/OperationListResult.cs
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/OperationListResult.cs
@@ -31,11 +31,15 @@ public OperationListResult()
///
/// Initializes a new instance of the OperationListResult class.
///
- /// The list of resource provider
- /// operations.
- public OperationListResult(IList value = default(IList))
+ /// Collection of available operation
+ /// details
+ /// URL client should use to fetch the next page
+ /// (per server side paging).
+ /// It's null for now, added for future use.
+ public OperationListResult(IList value = default(IList), string nextLink = default(string))
{
Value = value;
+ NextLink = nextLink;
CustomInit();
}
@@ -45,10 +49,18 @@ public OperationListResult()
partial void CustomInit();
///
- /// Gets or sets the list of resource provider operations.
+ /// Gets or sets collection of available operation details
///
[JsonProperty(PropertyName = "value")]
public IList Value { get; set; }
+ ///
+ /// Gets or sets URL client should use to fetch the next page (per
+ /// server side paging).
+ /// It's null for now, added for future use.
+ ///
+ [JsonProperty(PropertyName = "nextLink")]
+ public string NextLink { get; set; }
+
}
}
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/ProxyResource.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/ProxyResource.cs
index 98c625b90851..e9fc5be9ab8e 100644
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/ProxyResource.cs
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/ProxyResource.cs
@@ -13,9 +13,12 @@ namespace Microsoft.Azure.Management.PostgreSQL.FlexibleServers.Models
using System.Linq;
///
- /// The resource model definition for a ARM proxy resource. It will have
- /// everything other than required location and tags
+ /// Proxy Resource
///
+ ///
+ /// The resource model definition for a Azure Resource Manager proxy
+ /// resource. It will not have tags and a location
+ ///
public partial class ProxyResource : Resource
{
///
@@ -29,12 +32,12 @@ public ProxyResource()
///
/// Initializes a new instance of the ProxyResource class.
///
- /// Fully qualified resource Id for the resource. Ex -
+ /// Fully qualified resource ID for the resource. Ex -
/// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
/// The name of the resource
- /// The type of the resource. Ex-
- /// Microsoft.Compute/virtualMachines or
- /// Microsoft.Storage/storageAccounts.
+ /// The type of the resource. E.g.
+ /// "Microsoft.Compute/virtualMachines" or
+ /// "Microsoft.Storage/storageAccounts"
public ProxyResource(string id = default(string), string name = default(string), string type = default(string))
: base(id, name, type)
{
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/Resource.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/Resource.cs
index 114b1bd5d0bb..dd14158d8528 100644
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/Resource.cs
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/Resource.cs
@@ -15,6 +15,13 @@ namespace Microsoft.Azure.Management.PostgreSQL.FlexibleServers.Models
using Newtonsoft.Json;
using System.Linq;
+ ///
+ /// Resource
+ ///
+ ///
+ /// Common fields that are returned in the response for all Azure Resource
+ /// Manager resources
+ ///
public partial class Resource : IResource
{
///
@@ -28,12 +35,12 @@ public Resource()
///
/// Initializes a new instance of the Resource class.
///
- /// Fully qualified resource Id for the resource. Ex -
+ /// Fully qualified resource ID for the resource. Ex -
/// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
/// The name of the resource
- /// The type of the resource. Ex-
- /// Microsoft.Compute/virtualMachines or
- /// Microsoft.Storage/storageAccounts.
+ /// The type of the resource. E.g.
+ /// "Microsoft.Compute/virtualMachines" or
+ /// "Microsoft.Storage/storageAccounts"
public Resource(string id = default(string), string name = default(string), string type = default(string))
{
Id = id;
@@ -48,7 +55,7 @@ public Resource()
partial void CustomInit();
///
- /// Gets fully qualified resource Id for the resource. Ex -
+ /// Gets fully qualified resource ID for the resource. Ex -
/// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
///
[JsonProperty(PropertyName = "id")]
@@ -61,9 +68,9 @@ public Resource()
public string Name { get; private set; }
///
- /// Gets the type of the resource. Ex-
- /// Microsoft.Compute/virtualMachines or
- /// Microsoft.Storage/storageAccounts.
+ /// Gets the type of the resource. E.g.
+ /// "Microsoft.Compute/virtualMachines" or
+ /// "Microsoft.Storage/storageAccounts"
///
[JsonProperty(PropertyName = "type")]
public string Type { get; private set; }
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/ResourceModelWithAllowedPropertySet.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/ResourceModelWithAllowedPropertySet.cs
index 7e92392030c6..ec7e2ea26863 100644
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/ResourceModelWithAllowedPropertySet.cs
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/ResourceModelWithAllowedPropertySet.cs
@@ -37,17 +37,17 @@ public ResourceModelWithAllowedPropertySet()
/// Initializes a new instance of the
/// ResourceModelWithAllowedPropertySet class.
///
- /// Fully qualified resource Id for the resource. Ex -
+ /// Fully qualified resource ID for the resource. Ex -
/// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
/// The name of the resource
- /// The type of the resource. Ex-
- /// Microsoft.Compute/virtualMachines or
- /// Microsoft.Storage/storageAccounts..
+ /// The type of the resource. E.g.
+ /// "Microsoft.Compute/virtualMachines" or
+ /// "Microsoft.Storage/storageAccounts"
/// The geo-location where the resource
/// lives
- /// The fully qualified resource ID of the
+ /// The fully qualified resource ID of the
/// resource that manages this resource. Indicates if this resource is
- /// managed by another azure resource. If this is present, complete
+ /// managed by another Azure resource. If this is present, complete
/// mode deployment will not delete the resource if it is removed from
/// the template since it is managed by another resource.
/// Metadata used by portal/tooling/etc to render
@@ -84,7 +84,7 @@ public ResourceModelWithAllowedPropertySet()
partial void CustomInit();
///
- /// Gets fully qualified resource Id for the resource. Ex -
+ /// Gets fully qualified resource ID for the resource. Ex -
/// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
///
[JsonProperty(PropertyName = "id")]
@@ -97,9 +97,9 @@ public ResourceModelWithAllowedPropertySet()
public string Name { get; private set; }
///
- /// Gets the type of the resource. Ex-
- /// Microsoft.Compute/virtualMachines or
- /// Microsoft.Storage/storageAccounts..
+ /// Gets the type of the resource. E.g.
+ /// "Microsoft.Compute/virtualMachines" or
+ /// "Microsoft.Storage/storageAccounts"
///
[JsonProperty(PropertyName = "type")]
public string Type { get; private set; }
@@ -111,9 +111,9 @@ public ResourceModelWithAllowedPropertySet()
public string Location { get; set; }
///
- /// Gets or sets the fully qualified resource ID of the resource that
+ /// Gets or sets the fully qualified resource ID of the resource that
/// manages this resource. Indicates if this resource is managed by
- /// another azure resource. If this is present, complete mode
+ /// another Azure resource. If this is present, complete mode
/// deployment will not delete the resource if it is removed from the
/// template since it is managed by another resource.
///
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/RestartParameter.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/RestartParameter.cs
new file mode 100644
index 000000000000..809b848d7daa
--- /dev/null
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/RestartParameter.cs
@@ -0,0 +1,60 @@
+//
+// 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.PostgreSQL.FlexibleServers.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Represents server restart parameters.
+ ///
+ public partial class RestartParameter
+ {
+ ///
+ /// Initializes a new instance of the RestartParameter class.
+ ///
+ public RestartParameter()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the RestartParameter class.
+ ///
+ /// Indicates whether to restart the
+ /// server with failover.
+ /// Failover mode.
+ public RestartParameter(bool? restartWithFailover = default(bool?), string failoverMode = default(string))
+ {
+ RestartWithFailover = restartWithFailover;
+ FailoverMode = failoverMode;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets indicates whether to restart the server with failover.
+ ///
+ [JsonProperty(PropertyName = "restartWithFailover")]
+ public bool? RestartWithFailover { get; set; }
+
+ ///
+ /// Gets or sets failover mode.
+ ///
+ [JsonProperty(PropertyName = "failoverMode")]
+ public string FailoverMode { get; set; }
+
+ }
+}
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/Server.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/Server.cs
index c65845cab62c..3cb57bbd83e7 100644
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/Server.cs
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/Server.cs
@@ -36,12 +36,12 @@ public Server()
///
/// The geo-location where the resource
/// lives
- /// Fully qualified resource Id for the resource. Ex -
+ /// Fully qualified resource ID for the resource. Ex -
/// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
/// The name of the resource
- /// The type of the resource. Ex-
- /// Microsoft.Compute/virtualMachines or
- /// Microsoft.Storage/storageAccounts.
+ /// The type of the resource. E.g.
+ /// "Microsoft.Compute/virtualMachines" or
+ /// "Microsoft.Storage/storageAccounts"
/// Resource tags.
/// The Azure Active Directory identity of the
/// server.
@@ -52,40 +52,36 @@ public Server()
/// The administrator login
/// password (required for server creation).
/// PostgreSQL Server version. Possible values
- /// include: '12', '11'
+ /// include: '13', '12', '11'
+ /// The minor version of the server.
/// A state of a server that is visible to user.
/// Possible values include: 'Ready', 'Dropping', 'Disabled',
/// 'Starting', 'Stopping', 'Stopped', 'Updating'
- /// A state of a HA server that is visible to
- /// user. Possible values include: 'NotEnabled', 'CreatingStandby',
- /// 'ReplicatingData', 'FailingOver', 'Healthy',
- /// 'RemovingStandby'
/// The fully qualified domain
/// name of a server.
- /// The display name of a server.
- /// Storage profile of a server.
- /// public network access is enabled
- /// or not. Possible values include: 'Enabled', 'Disabled'
- /// Maintenance window of a
+ /// Storage properties of a server.
+ /// Backup properties of a server.
+ /// Network properties of a server.
+ /// High availability properties of a
/// server.
- /// stand by count value can be either enabled
- /// or disabled. Possible values include: 'Enabled', 'Disabled'
- /// The source PostgreSQL server name to
- /// restore from.
+ /// Maintenance window properties of a
+ /// server.
+ /// The source server resource ID
+ /// to restore from. It's required when 'createMode' is
+ /// 'PointInTimeRestore'.
/// Restore point creation time (ISO8601
- /// format), specifying the time to restore from.
- /// availability Zone information of the
+ /// format), specifying the time to restore from. It's required when
+ /// 'createMode' is 'PointInTimeRestore'.
+ /// availability zone information of the
/// server.
- /// availability Zone information
- /// of the server.
- /// Status showing whether the data
- /// encryption is enabled with customer-managed keys.
/// The mode to create a new PostgreSQL
- /// server. Possible values include: 'Default',
+ /// server. Possible values include: 'Default', 'Create', 'Update',
/// 'PointInTimeRestore'
/// Application-specific metadata in the form
/// of key-value pairs.
- public Server(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Identity identity = default(Identity), Sku sku = default(Sku), string administratorLogin = default(string), string administratorLoginPassword = default(string), string version = default(string), string state = default(string), string haState = default(string), string fullyQualifiedDomainName = default(string), string displayName = default(string), StorageProfile storageProfile = default(StorageProfile), string publicNetworkAccess = default(string), MaintenanceWindow maintenanceWindow = default(MaintenanceWindow), HAEnabledEnum? haEnabled = default(HAEnabledEnum?), string sourceServerName = default(string), System.DateTime? pointInTimeUTC = default(System.DateTime?), string availabilityZone = default(string), string standbyAvailabilityZone = default(string), string byokEnforcement = default(string), ServerPropertiesDelegatedSubnetArguments delegatedSubnetArguments = default(ServerPropertiesDelegatedSubnetArguments), string createMode = default(string), IDictionary serverTags = default(IDictionary))
+ /// The system metadata relating to this
+ /// resource.
+ public Server(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Identity identity = default(Identity), Sku sku = default(Sku), string administratorLogin = default(string), string administratorLoginPassword = default(string), string version = default(string), string minorVersion = default(string), string state = default(string), string fullyQualifiedDomainName = default(string), Storage storage = default(Storage), Backup backup = default(Backup), Network network = default(Network), HighAvailability highAvailability = default(HighAvailability), MaintenanceWindow maintenanceWindow = default(MaintenanceWindow), string sourceServerResourceId = default(string), System.DateTime? pointInTimeUTC = default(System.DateTime?), string availabilityZone = default(string), string createMode = default(string), IDictionary serverTags = default(IDictionary), SystemData systemData = default(SystemData))
: base(location, id, name, type, tags)
{
Identity = identity;
@@ -93,22 +89,20 @@ public Server()
AdministratorLogin = administratorLogin;
AdministratorLoginPassword = administratorLoginPassword;
Version = version;
+ MinorVersion = minorVersion;
State = state;
- HaState = haState;
FullyQualifiedDomainName = fullyQualifiedDomainName;
- DisplayName = displayName;
- StorageProfile = storageProfile;
- PublicNetworkAccess = publicNetworkAccess;
+ Storage = storage;
+ Backup = backup;
+ Network = network;
+ HighAvailability = highAvailability;
MaintenanceWindow = maintenanceWindow;
- HaEnabled = haEnabled;
- SourceServerName = sourceServerName;
+ SourceServerResourceId = sourceServerResourceId;
PointInTimeUTC = pointInTimeUTC;
AvailabilityZone = availabilityZone;
- StandbyAvailabilityZone = standbyAvailabilityZone;
- ByokEnforcement = byokEnforcement;
- DelegatedSubnetArguments = delegatedSubnetArguments;
CreateMode = createMode;
ServerTags = serverTags;
+ SystemData = systemData;
CustomInit();
}
@@ -146,11 +140,17 @@ public Server()
///
/// Gets or sets postgreSQL Server version. Possible values include:
- /// '12', '11'
+ /// '13', '12', '11'
///
[JsonProperty(PropertyName = "properties.version")]
public string Version { get; set; }
+ ///
+ /// Gets the minor version of the server.
+ ///
+ [JsonProperty(PropertyName = "properties.minorVersion")]
+ public string MinorVersion { get; private set; }
+
///
/// Gets a state of a server that is visible to user. Possible values
/// include: 'Ready', 'Dropping', 'Disabled', 'Starting', 'Stopping',
@@ -159,14 +159,6 @@ public Server()
[JsonProperty(PropertyName = "properties.state")]
public string State { get; private set; }
- ///
- /// Gets a state of a HA server that is visible to user. Possible
- /// values include: 'NotEnabled', 'CreatingStandby', 'ReplicatingData',
- /// 'FailingOver', 'Healthy', 'RemovingStandby'
- ///
- [JsonProperty(PropertyName = "properties.haState")]
- public string HaState { get; private set; }
-
///
/// Gets the fully qualified domain name of a server.
///
@@ -174,77 +166,59 @@ public Server()
public string FullyQualifiedDomainName { get; private set; }
///
- /// Gets or sets the display name of a server.
+ /// Gets or sets storage properties of a server.
///
- [JsonProperty(PropertyName = "properties.displayName")]
- public string DisplayName { get; set; }
+ [JsonProperty(PropertyName = "properties.storage")]
+ public Storage Storage { get; set; }
///
- /// Gets or sets storage profile of a server.
+ /// Gets or sets backup properties of a server.
///
- [JsonProperty(PropertyName = "properties.storageProfile")]
- public StorageProfile StorageProfile { get; set; }
+ [JsonProperty(PropertyName = "properties.backup")]
+ public Backup Backup { get; set; }
///
- /// Gets public network access is enabled or not. Possible values
- /// include: 'Enabled', 'Disabled'
+ /// Gets or sets network properties of a server.
///
- [JsonProperty(PropertyName = "properties.publicNetworkAccess")]
- public string PublicNetworkAccess { get; private set; }
+ [JsonProperty(PropertyName = "properties.network")]
+ public Network Network { get; set; }
///
- /// Gets or sets maintenance window of a server.
+ /// Gets or sets high availability properties of a server.
///
- [JsonProperty(PropertyName = "properties.maintenanceWindow")]
- public MaintenanceWindow MaintenanceWindow { get; set; }
+ [JsonProperty(PropertyName = "properties.highAvailability")]
+ public HighAvailability HighAvailability { get; set; }
///
- /// Gets or sets stand by count value can be either enabled or
- /// disabled. Possible values include: 'Enabled', 'Disabled'
+ /// Gets or sets maintenance window properties of a server.
///
- [JsonProperty(PropertyName = "properties.haEnabled")]
- public HAEnabledEnum? HaEnabled { get; set; }
+ [JsonProperty(PropertyName = "properties.maintenanceWindow")]
+ public MaintenanceWindow MaintenanceWindow { get; set; }
///
- /// Gets or sets the source PostgreSQL server name to restore from.
+ /// Gets or sets the source server resource ID to restore from. It's
+ /// required when 'createMode' is 'PointInTimeRestore'.
///
- [JsonProperty(PropertyName = "properties.sourceServerName")]
- public string SourceServerName { get; set; }
+ [JsonProperty(PropertyName = "properties.sourceServerResourceId")]
+ public string SourceServerResourceId { get; set; }
///
/// Gets or sets restore point creation time (ISO8601 format),
- /// specifying the time to restore from.
+ /// specifying the time to restore from. It's required when
+ /// 'createMode' is 'PointInTimeRestore'.
///
[JsonProperty(PropertyName = "properties.pointInTimeUTC")]
public System.DateTime? PointInTimeUTC { get; set; }
///
- /// Gets or sets availability Zone information of the server.
+ /// Gets or sets availability zone information of the server.
///
[JsonProperty(PropertyName = "properties.availabilityZone")]
public string AvailabilityZone { get; set; }
- ///
- /// Gets availability Zone information of the server.
- ///
- [JsonProperty(PropertyName = "properties.standbyAvailabilityZone")]
- public string StandbyAvailabilityZone { get; private set; }
-
- ///
- /// Gets status showing whether the data encryption is enabled with
- /// customer-managed keys.
- ///
- [JsonProperty(PropertyName = "properties.byokEnforcement")]
- public string ByokEnforcement { get; private set; }
-
- ///
- ///
- [JsonProperty(PropertyName = "properties.delegatedSubnetArguments")]
- public ServerPropertiesDelegatedSubnetArguments DelegatedSubnetArguments { get; set; }
-
///
/// Gets or sets the mode to create a new PostgreSQL server. Possible
- /// values include: 'Default', 'PointInTimeRestore'
+ /// values include: 'Default', 'Create', 'Update', 'PointInTimeRestore'
///
[JsonProperty(PropertyName = "properties.createMode")]
public string CreateMode { get; set; }
@@ -256,6 +230,12 @@ public Server()
[JsonProperty(PropertyName = "properties.tags")]
public IDictionary ServerTags { get; set; }
+ ///
+ /// Gets the system metadata relating to this resource.
+ ///
+ [JsonProperty(PropertyName = "systemData")]
+ public SystemData SystemData { get; private set; }
+
///
/// Validate the object.
///
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/ServerForUpdate.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/ServerForUpdate.cs
index b2b9a53c8d3e..fe093547d123 100644
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/ServerForUpdate.cs
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/ServerForUpdate.cs
@@ -39,21 +39,26 @@ public ServerForUpdate()
/// The SKU (pricing tier) of the server.
/// The password of the
/// administrator login.
- /// Storage profile of a server.
- /// stand by count value can be either enabled
- /// or disabled. Possible values include: 'Enabled', 'Disabled'
- /// Maintenance window of a
+ /// Storage properties of a server.
+ /// Backup properties of a server.
+ /// High availability properties of a
/// server.
+ /// Maintenance window properties of a
+ /// server.
+ /// The mode to update a new PostgreSQL
+ /// server. Possible values include: 'Default', 'Update'
/// Application-specific metadata in the form of
/// key-value pairs.
- public ServerForUpdate(string location = default(string), Sku sku = default(Sku), string administratorLoginPassword = default(string), StorageProfile storageProfile = default(StorageProfile), HAEnabledEnum? haEnabled = default(HAEnabledEnum?), MaintenanceWindow maintenanceWindow = default(MaintenanceWindow), IDictionary tags = default(IDictionary))
+ public ServerForUpdate(string location = default(string), Sku sku = default(Sku), string administratorLoginPassword = default(string), Storage storage = default(Storage), Backup backup = default(Backup), HighAvailability highAvailability = default(HighAvailability), MaintenanceWindow maintenanceWindow = default(MaintenanceWindow), string createMode = default(string), IDictionary tags = default(IDictionary))
{
Location = location;
Sku = sku;
AdministratorLoginPassword = administratorLoginPassword;
- StorageProfile = storageProfile;
- HaEnabled = haEnabled;
+ Storage = storage;
+ Backup = backup;
+ HighAvailability = highAvailability;
MaintenanceWindow = maintenanceWindow;
+ CreateMode = createMode;
Tags = tags;
CustomInit();
}
@@ -82,24 +87,36 @@ public ServerForUpdate()
public string AdministratorLoginPassword { get; set; }
///
- /// Gets or sets storage profile of a server.
+ /// Gets or sets storage properties of a server.
+ ///
+ [JsonProperty(PropertyName = "properties.storage")]
+ public Storage Storage { get; set; }
+
+ ///
+ /// Gets or sets backup properties of a server.
///
- [JsonProperty(PropertyName = "properties.storageProfile")]
- public StorageProfile StorageProfile { get; set; }
+ [JsonProperty(PropertyName = "properties.backup")]
+ public Backup Backup { get; set; }
///
- /// Gets or sets stand by count value can be either enabled or
- /// disabled. Possible values include: 'Enabled', 'Disabled'
+ /// Gets or sets high availability properties of a server.
///
- [JsonProperty(PropertyName = "properties.haEnabled")]
- public HAEnabledEnum? HaEnabled { get; set; }
+ [JsonProperty(PropertyName = "properties.highAvailability")]
+ public HighAvailability HighAvailability { get; set; }
///
- /// Gets or sets maintenance window of a server.
+ /// Gets or sets maintenance window properties of a server.
///
[JsonProperty(PropertyName = "properties.maintenanceWindow")]
public MaintenanceWindow MaintenanceWindow { get; set; }
+ ///
+ /// Gets or sets the mode to update a new PostgreSQL server. Possible
+ /// values include: 'Default', 'Update'
+ ///
+ [JsonProperty(PropertyName = "properties.createMode")]
+ public string CreateMode { get; set; }
+
///
/// Gets or sets application-specific metadata in the form of key-value
/// pairs.
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/ServerKey.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/ServerKey.cs
deleted file mode 100644
index c0400e3e6267..000000000000
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/ServerKey.cs
+++ /dev/null
@@ -1,91 +0,0 @@
-//
-// 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.PostgreSQL.FlexibleServers.Models
-{
- using Microsoft.Rest;
- using Microsoft.Rest.Serialization;
- using Newtonsoft.Json;
- using System.Linq;
-
- ///
- /// A PostgreSQL Server key.
- ///
- [Rest.Serialization.JsonTransformation]
- public partial class ServerKey : ProxyResource
- {
- ///
- /// Initializes a new instance of the ServerKey class.
- ///
- public ServerKey()
- {
- CustomInit();
- }
-
- ///
- /// Initializes a new instance of the ServerKey class.
- ///
- /// Fully qualified resource Id for the resource. Ex -
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- /// The name of the resource
- /// The type of the resource. Ex-
- /// Microsoft.Compute/virtualMachines or
- /// Microsoft.Storage/storageAccounts.
- /// Kind of encryption protector used to protect the
- /// key.
- /// The URI of the key.
- /// The key creation date.
- public ServerKey(string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string uri = default(string), System.DateTime? creationDate = default(System.DateTime?))
- : base(id, name, type)
- {
- Kind = kind;
- Uri = uri;
- CreationDate = creationDate;
- CustomInit();
- }
- ///
- /// Static constructor for ServerKey class.
- ///
- static ServerKey()
- {
- ServerKeyType = "AzureKeyVault";
- }
-
- ///
- /// An initialization method that performs custom operations like setting defaults
- ///
- partial void CustomInit();
-
- ///
- /// Gets kind of encryption protector used to protect the key.
- ///
- [JsonProperty(PropertyName = "kind")]
- public string Kind { get; private set; }
-
- ///
- /// Gets or sets the URI of the key.
- ///
- [JsonProperty(PropertyName = "properties.uri")]
- public string Uri { get; set; }
-
- ///
- /// Gets the key creation date.
- ///
- [JsonProperty(PropertyName = "properties.creationDate")]
- public System.DateTime? CreationDate { get; private set; }
-
- ///
- /// The key type like 'AzureKeyVault'.
- ///
- [JsonProperty(PropertyName = "properties.serverKeyType")]
- public static string ServerKeyType { get; private set; }
-
- }
-}
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/ServerVersion.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/ServerVersion.cs
index a57af0a5de53..e6acec128f12 100644
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/ServerVersion.cs
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/ServerVersion.cs
@@ -16,6 +16,7 @@ namespace Microsoft.Azure.Management.PostgreSQL.FlexibleServers.Models
///
public static class ServerVersion
{
+ public const string OneThree = "13";
public const string OneTwo = "12";
public const string OneOne = "11";
}
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/ServerVersionCapability.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/ServerVersionCapability.cs
index db1e5947258b..24d7f6544746 100644
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/ServerVersionCapability.cs
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/ServerVersionCapability.cs
@@ -32,10 +32,12 @@ public ServerVersionCapability()
/// Initializes a new instance of the ServerVersionCapability class.
///
/// server version
- public ServerVersionCapability(string name = default(string), IList supportedVcores = default(IList))
+ /// The status
+ public ServerVersionCapability(string name = default(string), IList supportedVcores = default(IList), string status = default(string))
{
Name = name;
SupportedVcores = supportedVcores;
+ Status = status;
CustomInit();
}
@@ -55,5 +57,11 @@ public ServerVersionCapability()
[JsonProperty(PropertyName = "supportedVcores")]
public IList SupportedVcores { get; private set; }
+ ///
+ /// Gets the status
+ ///
+ [JsonProperty(PropertyName = "status")]
+ public string Status { get; private set; }
+
}
}
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/ServerPropertiesDelegatedSubnetArguments.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/Storage.cs
similarity index 53%
rename from sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/ServerPropertiesDelegatedSubnetArguments.cs
rename to sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/Storage.cs
index ca4fc4dda3de..860bc1edc94d 100644
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/ServerPropertiesDelegatedSubnetArguments.cs
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/Storage.cs
@@ -13,26 +13,27 @@ namespace Microsoft.Azure.Management.PostgreSQL.FlexibleServers.Models
using Newtonsoft.Json;
using System.Linq;
- public partial class ServerPropertiesDelegatedSubnetArguments
+ ///
+ /// Storage properties of a server
+ ///
+ public partial class Storage
{
///
- /// Initializes a new instance of the
- /// ServerPropertiesDelegatedSubnetArguments class.
+ /// Initializes a new instance of the Storage class.
///
- public ServerPropertiesDelegatedSubnetArguments()
+ public Storage()
{
CustomInit();
}
///
- /// Initializes a new instance of the
- /// ServerPropertiesDelegatedSubnetArguments class.
+ /// Initializes a new instance of the Storage class.
///
- /// delegated subnet arm resource
- /// id.
- public ServerPropertiesDelegatedSubnetArguments(string subnetArmResourceId = default(string))
+ /// Max storage allowed for a
+ /// server.
+ public Storage(int? storageSizeGB = default(int?))
{
- SubnetArmResourceId = subnetArmResourceId;
+ StorageSizeGB = storageSizeGB;
CustomInit();
}
@@ -42,10 +43,10 @@ public ServerPropertiesDelegatedSubnetArguments()
partial void CustomInit();
///
- /// Gets or sets delegated subnet arm resource id.
+ /// Gets or sets max storage allowed for a server.
///
- [JsonProperty(PropertyName = "subnetArmResourceId")]
- public string SubnetArmResourceId { get; set; }
+ [JsonProperty(PropertyName = "storageSizeGB")]
+ public int? StorageSizeGB { get; set; }
}
}
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/StorageEditionCapability.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/StorageEditionCapability.cs
index 8af0b09d41dd..4e710b6bedeb 100644
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/StorageEditionCapability.cs
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/StorageEditionCapability.cs
@@ -32,10 +32,12 @@ public StorageEditionCapability()
/// Initializes a new instance of the StorageEditionCapability class.
///
/// storage edition name
- public StorageEditionCapability(string name = default(string), IList supportedStorageMB = default(IList))
+ /// The status
+ public StorageEditionCapability(string name = default(string), IList supportedStorageMB = default(IList), string status = default(string))
{
Name = name;
SupportedStorageMB = supportedStorageMB;
+ Status = status;
CustomInit();
}
@@ -55,5 +57,11 @@ public StorageEditionCapability()
[JsonProperty(PropertyName = "supportedStorageMB")]
public IList SupportedStorageMB { get; private set; }
+ ///
+ /// Gets the status
+ ///
+ [JsonProperty(PropertyName = "status")]
+ public string Status { get; private set; }
+
}
}
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/StorageMBCapability.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/StorageMBCapability.cs
index ae94f4b9b7b2..33aa6f8717b5 100644
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/StorageMBCapability.cs
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/StorageMBCapability.cs
@@ -32,11 +32,13 @@ public StorageMBCapability()
/// storage MB name
/// supported IOPS
/// storage size in MB
- public StorageMBCapability(string name = default(string), long? supportedIops = default(long?), long? storageSizeMB = default(long?))
+ /// The status
+ public StorageMBCapability(string name = default(string), long? supportedIops = default(long?), long? storageSizeMB = default(long?), string status = default(string))
{
Name = name;
SupportedIops = supportedIops;
StorageSizeMB = storageSizeMB;
+ Status = status;
CustomInit();
}
@@ -63,5 +65,11 @@ public StorageMBCapability()
[JsonProperty(PropertyName = "storageSizeMB")]
public long? StorageSizeMB { get; private set; }
+ ///
+ /// Gets the status
+ ///
+ [JsonProperty(PropertyName = "status")]
+ public string Status { get; private set; }
+
}
}
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/StorageProfile.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/StorageProfile.cs
deleted file mode 100644
index 570430829e0a..000000000000
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/StorageProfile.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-//
-// 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.PostgreSQL.FlexibleServers.Models
-{
- using Newtonsoft.Json;
- using System.Linq;
-
- ///
- /// Storage Profile properties of a server
- ///
- public partial class StorageProfile
- {
- ///
- /// Initializes a new instance of the StorageProfile class.
- ///
- public StorageProfile()
- {
- CustomInit();
- }
-
- ///
- /// Initializes a new instance of the StorageProfile class.
- ///
- /// Backup retention days for the
- /// server.
- /// Max storage allowed for a server.
- public StorageProfile(int? backupRetentionDays = default(int?), int? storageMB = default(int?))
- {
- BackupRetentionDays = backupRetentionDays;
- StorageMB = storageMB;
- CustomInit();
- }
-
- ///
- /// An initialization method that performs custom operations like setting defaults
- ///
- partial void CustomInit();
-
- ///
- /// Gets or sets backup retention days for the server.
- ///
- [JsonProperty(PropertyName = "backupRetentionDays")]
- public int? BackupRetentionDays { get; set; }
-
- ///
- /// Gets or sets max storage allowed for a server.
- ///
- [JsonProperty(PropertyName = "storageMB")]
- public int? StorageMB { get; set; }
-
- }
-}
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/SystemData.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/SystemData.cs
new file mode 100644
index 000000000000..57922ded8130
--- /dev/null
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/SystemData.cs
@@ -0,0 +1,103 @@
+//
+// 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.PostgreSQL.FlexibleServers.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Metadata pertaining to creation and last modification of the resource.
+ ///
+ public partial class SystemData
+ {
+ ///
+ /// Initializes a new instance of the SystemData class.
+ ///
+ public SystemData()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the SystemData class.
+ ///
+ /// The identity that created the
+ /// resource.
+ /// The type of identity that created the
+ /// resource. Possible values include: 'User', 'Application',
+ /// 'ManagedIdentity', 'Key'
+ /// The timestamp of resource creation
+ /// (UTC).
+ /// The identity that last modified the
+ /// resource.
+ /// The type of identity that last
+ /// modified the resource. Possible values include: 'User',
+ /// 'Application', 'ManagedIdentity', 'Key'
+ /// The timestamp of resource last
+ /// modification (UTC)
+ public SystemData(string createdBy = default(string), string createdByType = default(string), System.DateTime? createdAt = default(System.DateTime?), string lastModifiedBy = default(string), string lastModifiedByType = default(string), System.DateTime? lastModifiedAt = default(System.DateTime?))
+ {
+ CreatedBy = createdBy;
+ CreatedByType = createdByType;
+ CreatedAt = createdAt;
+ LastModifiedBy = lastModifiedBy;
+ LastModifiedByType = lastModifiedByType;
+ LastModifiedAt = lastModifiedAt;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the identity that created the resource.
+ ///
+ [JsonProperty(PropertyName = "createdBy")]
+ public string CreatedBy { get; set; }
+
+ ///
+ /// Gets or sets the type of identity that created the resource.
+ /// Possible values include: 'User', 'Application', 'ManagedIdentity',
+ /// 'Key'
+ ///
+ [JsonProperty(PropertyName = "createdByType")]
+ public string CreatedByType { get; set; }
+
+ ///
+ /// Gets or sets the timestamp of resource creation (UTC).
+ ///
+ [JsonProperty(PropertyName = "createdAt")]
+ public System.DateTime? CreatedAt { get; set; }
+
+ ///
+ /// Gets or sets the identity that last modified the resource.
+ ///
+ [JsonProperty(PropertyName = "lastModifiedBy")]
+ public string LastModifiedBy { get; set; }
+
+ ///
+ /// Gets or sets the type of identity that last modified the resource.
+ /// Possible values include: 'User', 'Application', 'ManagedIdentity',
+ /// 'Key'
+ ///
+ [JsonProperty(PropertyName = "lastModifiedByType")]
+ public string LastModifiedByType { get; set; }
+
+ ///
+ /// Gets or sets the timestamp of resource last modification (UTC)
+ ///
+ [JsonProperty(PropertyName = "lastModifiedAt")]
+ public System.DateTime? LastModifiedAt { get; set; }
+
+ }
+}
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/TrackedResource.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/TrackedResource.cs
index 9bb338a69a8c..c68890d24463 100644
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/TrackedResource.cs
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/TrackedResource.cs
@@ -17,8 +17,12 @@ namespace Microsoft.Azure.Management.PostgreSQL.FlexibleServers.Models
using System.Linq;
///
- /// The resource model definition for a ARM tracked top level resource
+ /// Tracked Resource
///
+ ///
+ /// The resource model definition for an Azure Resource Manager tracked top
+ /// level resource which has 'tags' and a 'location'
+ ///
public partial class TrackedResource : Resource
{
///
@@ -34,12 +38,12 @@ public TrackedResource()
///
/// The geo-location where the resource
/// lives
- /// Fully qualified resource Id for the resource. Ex -
+ /// Fully qualified resource ID for the resource. Ex -
/// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
/// The name of the resource
- /// The type of the resource. Ex-
- /// Microsoft.Compute/virtualMachines or
- /// Microsoft.Storage/storageAccounts.
+ /// The type of the resource. E.g.
+ /// "Microsoft.Compute/virtualMachines" or
+ /// "Microsoft.Storage/storageAccounts"
/// Resource tags.
public TrackedResource(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary))
: base(id, name, type)
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/VcoreCapability.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/VcoreCapability.cs
index 3f24898a8b93..c0f7369dd255 100644
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/VcoreCapability.cs
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Models/VcoreCapability.cs
@@ -34,12 +34,14 @@ public VcoreCapability()
/// supported IOPS
/// supported memory per vCore
/// in MB
- public VcoreCapability(string name = default(string), long? vCores = default(long?), long? supportedIops = default(long?), long? supportedMemoryPerVcoreMB = default(long?))
+ /// The status
+ public VcoreCapability(string name = default(string), long? vCores = default(long?), long? supportedIops = default(long?), long? supportedMemoryPerVcoreMB = default(long?), string status = default(string))
{
Name = name;
VCores = vCores;
SupportedIops = supportedIops;
SupportedMemoryPerVcoreMB = supportedMemoryPerVcoreMB;
+ Status = status;
CustomInit();
}
@@ -72,5 +74,11 @@ public VcoreCapability()
[JsonProperty(PropertyName = "supportedMemoryPerVcoreMB")]
public long? SupportedMemoryPerVcoreMB { get; private set; }
+ ///
+ /// Gets the status
+ ///
+ [JsonProperty(PropertyName = "status")]
+ public string Status { get; private set; }
+
}
}
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Operations.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Operations.cs
index c0b4488f65b7..ecc0136f1201 100644
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Operations.cs
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/Operations.cs
@@ -99,7 +99,7 @@ internal Operations(PostgreSQLManagementClient client)
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.DBForPostgreSql/operations").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.DBforPostgreSQL/operations").ToString();
List _queryParameters = new List();
if (Client.ApiVersion != null)
{
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/PostgreSQLManagementClient.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/PostgreSQLManagementClient.cs
index 07cb9a6f8b05..289b7089596d 100644
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/PostgreSQLManagementClient.cs
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/PostgreSQLManagementClient.cs
@@ -92,11 +92,6 @@ public partial class PostgreSQLManagementClient : ServiceClient
public virtual IConfigurationsOperations Configurations { get; private set; }
- ///
- /// Gets the IServerKeysOperations.
- ///
- public virtual IServerKeysOperations ServerKeys { get; private set; }
-
///
/// Gets the ICheckNameAvailabilityOperations.
///
@@ -117,6 +112,16 @@ public partial class PostgreSQLManagementClient : ServiceClient
public virtual IOperations Operations { get; private set; }
+ ///
+ /// Gets the IDatabasesOperations.
+ ///
+ public virtual IDatabasesOperations Databases { get; private set; }
+
+ ///
+ /// Gets the IGetPrivateDnsZoneSuffixOperations.
+ ///
+ public virtual IGetPrivateDnsZoneSuffixOperations GetPrivateDnsZoneSuffix { get; private set; }
+
///
/// Initializes a new instance of the PostgreSQLManagementClient class.
///
@@ -361,13 +366,14 @@ private void Initialize()
Servers = new ServersOperations(this);
FirewallRules = new FirewallRulesOperations(this);
Configurations = new ConfigurationsOperations(this);
- ServerKeys = new ServerKeysOperations(this);
CheckNameAvailability = new CheckNameAvailabilityOperations(this);
LocationBasedCapabilities = new LocationBasedCapabilitiesOperations(this);
VirtualNetworkSubnetUsage = new VirtualNetworkSubnetUsageOperations(this);
Operations = new Operations(this);
+ Databases = new DatabasesOperations(this);
+ GetPrivateDnsZoneSuffix = new GetPrivateDnsZoneSuffixOperations(this);
BaseUri = new System.Uri("https://management.azure.com");
- ApiVersion = "2020-02-14-privatepreview";
+ ApiVersion = "2021-06-01";
AcceptLanguage = "en-US";
LongRunningOperationRetryTimeout = 30;
GenerateClientRequestId = true;
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/SdkInfo_PostgreSQLManagementClient.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/SdkInfo_PostgreSQLManagementClient.cs
index 140bb656c129..6192e5710137 100644
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/SdkInfo_PostgreSQLManagementClient.cs
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/SdkInfo_PostgreSQLManagementClient.cs
@@ -19,14 +19,15 @@ public static IEnumerable> ApiInfo_PostgreSQLManag
{
return new Tuple[]
{
- new Tuple("DBForPostgreSql", "CheckNameAvailability", "2020-02-14-privatepreview"),
- new Tuple("DBForPostgreSql", "Configurations", "2020-02-14-privatepreview"),
- new Tuple("DBForPostgreSql", "FirewallRules", "2020-02-14-privatepreview"),
- new Tuple("DBForPostgreSql", "LocationBasedCapabilities", "2020-02-14-privatepreview"),
- new Tuple("DBForPostgreSql", "Operations", "2020-02-14-privatepreview"),
- new Tuple("DBForPostgreSql", "ServerKeys", "2020-02-14-privatepreview"),
- new Tuple("DBForPostgreSql", "Servers", "2020-02-14-privatepreview"),
- new Tuple("DBForPostgreSql", "VirtualNetworkSubnetUsage", "2020-02-14-privatepreview"),
+ new Tuple("DBforPostgreSQL", "CheckNameAvailability", "2021-06-01"),
+ new Tuple("DBforPostgreSQL", "Configurations", "2021-06-01"),
+ new Tuple("DBforPostgreSQL", "Databases", "2021-06-01"),
+ new Tuple("DBforPostgreSQL", "FirewallRules", "2021-06-01"),
+ new Tuple("DBforPostgreSQL", "GetPrivateDnsZoneSuffix", "2021-06-01"),
+ new Tuple("DBforPostgreSQL", "LocationBasedCapabilities", "2021-06-01"),
+ new Tuple("DBforPostgreSQL", "Operations", "2021-06-01"),
+ new Tuple("DBforPostgreSQL", "Servers", "2021-06-01"),
+ new Tuple("DBforPostgreSQL", "VirtualNetworkSubnetUsage", "2021-06-01"),
}.AsEnumerable();
}
}
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/ServersOperations.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/ServersOperations.cs
index 15b0787a7348..3698e152f1fe 100644
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/ServersOperations.cs
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/ServersOperations.cs
@@ -191,10 +191,6 @@ internal ServersOperations(PostgreSQLManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
- }
}
if (serverName == null)
{
@@ -214,7 +210,7 @@ internal ServersOperations(PostgreSQLManagementClient client)
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName));
@@ -413,10 +409,6 @@ internal ServersOperations(PostgreSQLManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
- }
}
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
@@ -431,7 +423,7 @@ internal ServersOperations(PostgreSQLManagementClient client)
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
List _queryParameters = new List();
@@ -624,7 +616,7 @@ internal ServersOperations(PostgreSQLManagementClient client)
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.DBForPostgreSql/flexibleServers").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/flexibleServers").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
if (Client.ApiVersion != null)
@@ -765,16 +757,19 @@ internal ServersOperations(PostgreSQLManagementClient client)
///
/// The name of the server.
///
+ ///
+ /// The parameters for restarting a server.
+ ///
///
/// The headers that will be added to request.
///
///
/// The cancellation token.
///
- public async Task RestartWithHttpMessagesAsync(string resourceGroupName, string serverName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task RestartWithHttpMessagesAsync(string resourceGroupName, string serverName, RestartParameter parameters = default(RestartParameter), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
// Send request
- AzureOperationResponse _response = await BeginRestartWithHttpMessagesAsync(resourceGroupName, serverName, customHeaders, cancellationToken).ConfigureAwait(false);
+ AzureOperationResponse _response = await BeginRestartWithHttpMessagesAsync(resourceGroupName, serverName, parameters, customHeaders, cancellationToken).ConfigureAwait(false);
return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
}
@@ -893,10 +888,6 @@ internal ServersOperations(PostgreSQLManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
- }
}
if (serverName == null)
{
@@ -925,7 +916,7 @@ internal ServersOperations(PostgreSQLManagementClient client)
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName));
@@ -1155,10 +1146,6 @@ internal ServersOperations(PostgreSQLManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
- }
}
if (serverName == null)
{
@@ -1183,7 +1170,7 @@ internal ServersOperations(PostgreSQLManagementClient client)
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName));
@@ -1388,10 +1375,6 @@ internal ServersOperations(PostgreSQLManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
- }
}
if (serverName == null)
{
@@ -1411,7 +1394,7 @@ internal ServersOperations(PostgreSQLManagementClient client)
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName));
@@ -1536,6 +1519,9 @@ internal ServersOperations(PostgreSQLManagementClient client)
///
/// The name of the server.
///
+ ///
+ /// The parameters for restarting a server.
+ ///
///
/// Headers that will be added to request.
///
@@ -1554,7 +1540,7 @@ internal ServersOperations(PostgreSQLManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task BeginRestartWithHttpMessagesAsync(string resourceGroupName, string serverName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task BeginRestartWithHttpMessagesAsync(string resourceGroupName, string serverName, RestartParameter parameters = default(RestartParameter), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (Client.ApiVersion == null)
{
@@ -1592,10 +1578,6 @@ internal ServersOperations(PostgreSQLManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
- }
}
if (serverName == null)
{
@@ -1610,12 +1592,13 @@ internal ServersOperations(PostgreSQLManagementClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("serverName", serverName);
+ tracingParameters.Add("parameters", parameters);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "BeginRestart", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/restart").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/restart").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName));
@@ -1662,6 +1645,12 @@ internal ServersOperations(PostgreSQLManagementClient client)
// Serialize Request
string _requestContent = null;
+ if(parameters != null)
+ {
+ _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings);
+ _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8);
+ _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
+ }
// Set Credentials
if (Client.Credentials != null)
{
@@ -1796,10 +1785,6 @@ internal ServersOperations(PostgreSQLManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
- }
}
if (serverName == null)
{
@@ -1819,7 +1804,7 @@ internal ServersOperations(PostgreSQLManagementClient client)
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/start").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/start").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName));
@@ -2000,10 +1985,6 @@ internal ServersOperations(PostgreSQLManagementClient client)
{
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
- }
}
if (serverName == null)
{
@@ -2023,7 +2004,7 @@ internal ServersOperations(PostgreSQLManagementClient client)
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/stop").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/stop").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName));
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/ServersOperationsExtensions.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/ServersOperationsExtensions.cs
index fa5127c44a55..fbc1439491e6 100644
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/ServersOperationsExtensions.cs
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/ServersOperationsExtensions.cs
@@ -266,9 +266,12 @@ public static IPage List(this IServersOperations operations)
///
/// The name of the server.
///
- public static void Restart(this IServersOperations operations, string resourceGroupName, string serverName)
+ ///
+ /// The parameters for restarting a server.
+ ///
+ public static void Restart(this IServersOperations operations, string resourceGroupName, string serverName, RestartParameter parameters = default(RestartParameter))
{
- operations.RestartAsync(resourceGroupName, serverName).GetAwaiter().GetResult();
+ operations.RestartAsync(resourceGroupName, serverName, parameters).GetAwaiter().GetResult();
}
///
@@ -283,12 +286,15 @@ public static void Restart(this IServersOperations operations, string resourceGr
///
/// The name of the server.
///
+ ///
+ /// The parameters for restarting a server.
+ ///
///
/// The cancellation token.
///
- public static async Task RestartAsync(this IServersOperations operations, string resourceGroupName, string serverName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task RestartAsync(this IServersOperations operations, string resourceGroupName, string serverName, RestartParameter parameters = default(RestartParameter), CancellationToken cancellationToken = default(CancellationToken))
{
- (await operations.RestartWithHttpMessagesAsync(resourceGroupName, serverName, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ (await operations.RestartWithHttpMessagesAsync(resourceGroupName, serverName, parameters, null, cancellationToken).ConfigureAwait(false)).Dispose();
}
///
@@ -508,9 +514,12 @@ public static void BeginDelete(this IServersOperations operations, string resour
///
/// The name of the server.
///
- public static void BeginRestart(this IServersOperations operations, string resourceGroupName, string serverName)
+ ///
+ /// The parameters for restarting a server.
+ ///
+ public static void BeginRestart(this IServersOperations operations, string resourceGroupName, string serverName, RestartParameter parameters = default(RestartParameter))
{
- operations.BeginRestartAsync(resourceGroupName, serverName).GetAwaiter().GetResult();
+ operations.BeginRestartAsync(resourceGroupName, serverName, parameters).GetAwaiter().GetResult();
}
///
@@ -525,12 +534,15 @@ public static void BeginRestart(this IServersOperations operations, string resou
///
/// The name of the server.
///
+ ///
+ /// The parameters for restarting a server.
+ ///
///
/// The cancellation token.
///
- public static async Task BeginRestartAsync(this IServersOperations operations, string resourceGroupName, string serverName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task BeginRestartAsync(this IServersOperations operations, string resourceGroupName, string serverName, RestartParameter parameters = default(RestartParameter), CancellationToken cancellationToken = default(CancellationToken))
{
- (await operations.BeginRestartWithHttpMessagesAsync(resourceGroupName, serverName, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ (await operations.BeginRestartWithHttpMessagesAsync(resourceGroupName, serverName, parameters, null, cancellationToken).ConfigureAwait(false)).Dispose();
}
///
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/VirtualNetworkSubnetUsageOperations.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/VirtualNetworkSubnetUsageOperations.cs
index 6c23ed230978..406282656a7c 100644
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/VirtualNetworkSubnetUsageOperations.cs
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/src/postgresqlflexibleservers/Generated/VirtualNetworkSubnetUsageOperations.cs
@@ -126,7 +126,7 @@ internal VirtualNetworkSubnetUsageOperations(PostgreSQLManagementClient client)
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.DBForPostgreSql/locations/{locationName}/checkVirtualNetworkSubnetUsage").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/checkVirtualNetworkSubnetUsage").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
_url = _url.Replace("{locationName}", System.Uri.EscapeDataString(locationName));
List _queryParameters = new List();
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/tests/ScenarioTests/CRUDDBForPostgreSQLFlexibleServerTestBase.cs b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/tests/ScenarioTests/CRUDDBForPostgreSQLFlexibleServerTestBase.cs
index 1a30a651dd0b..0c6e2de1c64a 100644
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/tests/ScenarioTests/CRUDDBForPostgreSQLFlexibleServerTestBase.cs
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/tests/ScenarioTests/CRUDDBForPostgreSQLFlexibleServerTestBase.cs
@@ -33,7 +33,9 @@ protected FlexibleServersModels.Server CreatePostgreSQLFlexibleServersInstance(M
administratorLogin: "testUser",
administratorLoginPassword: "testPassword1!",
version: "12",
- storageProfile: new FlexibleServersModels.StorageProfile(storageMB: 524288)));
+ storage: new FlexibleServersModels.Storage(storageSizeGB: 128),
+ network: new FlexibleServersModels.Network(publicNetworkAccess: "Disabled")));
+
}
protected ResourceGroup CreateResourceGroup(MockContext context,
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/tests/SessionRecords/CRUDFlexibleServersServiceTests/CreateResourceSucceeds.json b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/tests/SessionRecords/CRUDFlexibleServersServiceTests/CreateResourceSucceeds.json
index 5966c2e3293d..1befaa195d19 100644
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/tests/SessionRecords/CRUDFlexibleServersServiceTests/CreateResourceSucceeds.json
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/tests/SessionRecords/CRUDFlexibleServersServiceTests/CreateResourceSucceeds.json
@@ -1,28 +1,28 @@
{
"Entries": [
{
- "RequestUri": "/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourcegroups/pgsdkrg?api-version=2017-05-10",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvN2ZlYzMxMDktNWI3OC00YTI0LWI4MzQtNWQ0N2Q2M2UyNTk2L3Jlc291cmNlZ3JvdXBzL3Bnc2Rrcmc/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==",
+ "RequestUri": "/subscriptions/ac0271d6-426b-4b0d-b88d-0d0e4bd693ae/resourcegroups/pgsdkrg?api-version=2017-05-10",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWMwMjcxZDYtNDI2Yi00YjBkLWI4OGQtMGQwZTRiZDY5M2FlL3Jlc291cmNlZ3JvdXBzL3Bnc2Rrcmc/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==",
"RequestMethod": "PUT",
- "RequestBody": "{\r\n \"location\": \"eastus2euap\"\r\n}",
+ "RequestBody": "{\r\n \"location\": \"eastus2\"\r\n}",
"RequestHeaders": {
"x-ms-client-request-id": [
- "11938ccd-08de-4186-81ec-20e1120a7c59"
+ "6084c6b9-99a1-454e-a4de-9b8e8291bb4f"
],
"Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.6.29130.01",
+ "FxVersion/4.6.30015.01",
"OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.20211.",
+ "OSVersion/Microsoft.Windows.10.0.19043.",
"Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0"
],
"Content-Type": [
"application/json; charset=utf-8"
],
"Content-Length": [
- "33"
+ "29"
]
},
"ResponseHeaders": {
@@ -36,13 +36,13 @@
"1199"
],
"x-ms-request-id": [
- "513a6915-e442-49a3-be04-b52371d512ac"
+ "6804b14b-f15a-463c-bbf3-eac74b1e62a7"
],
"x-ms-correlation-request-id": [
- "513a6915-e442-49a3-be04-b52371d512ac"
+ "6804b14b-f15a-463c-bbf3-eac74b1e62a7"
],
"x-ms-routing-request-id": [
- "UAECENTRAL:20200911T181308Z:513a6915-e442-49a3-be04-b52371d512ac"
+ "WESTUS2:20210719T212820Z:6804b14b-f15a-463c-bbf3-eac74b1e62a7"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -51,10 +51,10 @@
"nosniff"
],
"Date": [
- "Fri, 11 Sep 2020 18:13:07 GMT"
+ "Mon, 19 Jul 2021 21:28:20 GMT"
],
"Content-Length": [
- "172"
+ "168"
],
"Content-Type": [
"application/json; charset=utf-8"
@@ -63,32 +63,32 @@
"-1"
]
},
- "ResponseBody": "{\r\n \"id\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/pgsdkrg\",\r\n \"name\": \"pgsdkrg\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}",
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/ac0271d6-426b-4b0d-b88d-0d0e4bd693ae/resourceGroups/pgsdkrg\",\r\n \"name\": \"pgsdkrg\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}",
"StatusCode": 201
},
{
- "RequestUri": "/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/pgsdkrg/providers/Microsoft.DBForPostgreSql/flexibleServers/pgsdkflexserver?api-version=2020-02-14-privatepreview",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvN2ZlYzMxMDktNWI3OC00YTI0LWI4MzQtNWQ0N2Q2M2UyNTk2L3Jlc291cmNlR3JvdXBzL3Bnc2RrcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5EQkZvclBvc3RncmVTcWwvZmxleGlibGVTZXJ2ZXJzL3Bnc2RrZmxleHNlcnZlcj9hcGktdmVyc2lvbj0yMDIwLTAyLTE0LXByaXZhdGVwcmV2aWV3",
+ "RequestUri": "/subscriptions/ac0271d6-426b-4b0d-b88d-0d0e4bd693ae/resourceGroups/pgsdkrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgsdkflexserver?api-version=2021-06-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWMwMjcxZDYtNDI2Yi00YjBkLWI4OGQtMGQwZTRiZDY5M2FlL3Jlc291cmNlR3JvdXBzL3Bnc2RrcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5EQmZvclBvc3RncmVTUUwvZmxleGlibGVTZXJ2ZXJzL3Bnc2RrZmxleHNlcnZlcj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx",
"RequestMethod": "PUT",
- "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_D4s_v3\",\r\n \"tier\": \"GeneralPurpose\"\r\n },\r\n \"properties\": {\r\n \"administratorLogin\": \"testUser\",\r\n \"administratorLoginPassword\": \"testPassword1!\",\r\n \"version\": \"12\",\r\n \"storageProfile\": {\r\n \"storageMB\": 524288\r\n }\r\n },\r\n \"location\": \"eastus2euap\"\r\n}",
+ "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_D4s_v3\",\r\n \"tier\": \"GeneralPurpose\"\r\n },\r\n \"properties\": {\r\n \"administratorLogin\": \"testUser\",\r\n \"administratorLoginPassword\": \"testPassword1!\",\r\n \"version\": \"12\",\r\n \"storage\": {\r\n \"storageSizeGB\": 128\r\n },\r\n \"network\": {}\r\n },\r\n \"location\": \"eastus2\"\r\n}",
"RequestHeaders": {
"x-ms-client-request-id": [
- "304a2a94-c47c-42ee-b086-a980d66a7754"
+ "2711b6ea-f8f9-406a-aba7-74ff1edc6a5d"
],
"Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.6.29130.01",
+ "FxVersion/4.6.30015.01",
"OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.20211.",
+ "OSVersion/Microsoft.Windows.10.0.19043.",
"Microsoft.Azure.Management.PostgreSQL.FlexibleServers.PostgreSQLManagementClient/0.9.5"
],
"Content-Type": [
"application/json; charset=utf-8"
],
"Content-Length": [
- "311"
+ "321"
]
},
"ResponseHeaders": {
@@ -99,19 +99,19 @@
"no-cache"
],
"Location": [
- "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/eea1b92b-4d3d-4664-8689-122b303c7ec3?api-version=2020-02-14-privatepreview"
+ "https://management.azure.com/subscriptions/ac0271d6-426b-4b0d-b88d-0d0e4bd693ae/providers/Microsoft.DBforPostgreSQL/locations/eastus2/operationResults/74a7ad39-f689-4faa-b3af-9c7544acc68d?api-version=2021-06-01"
],
"Retry-After": [
"60"
],
"Azure-AsyncOperation": [
- "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/eea1b92b-4d3d-4664-8689-122b303c7ec3?api-version=2020-02-14-privatepreview"
+ "https://management.azure.com/subscriptions/ac0271d6-426b-4b0d-b88d-0d0e4bd693ae/providers/Microsoft.DBforPostgreSQL/locations/eastus2/azureAsyncOperation/74a7ad39-f689-4faa-b3af-9c7544acc68d?api-version=2021-06-01"
],
"X-Content-Type-Options": [
"nosniff"
],
"x-ms-request-id": [
- "eea1b92b-4d3d-4664-8689-122b303c7ec3"
+ "8727318d-002d-4b5d-9d46-77b495af80c3"
],
"Server": [
"Microsoft-HTTPAPI/2.0"
@@ -120,19 +120,19 @@
"1199"
],
"x-ms-correlation-request-id": [
- "194e8ca2-4938-470f-9157-bdb60499149b"
+ "1570d2da-1058-4599-b0aa-1136ee05a2b2"
],
"x-ms-routing-request-id": [
- "UAECENTRAL:20200911T181322Z:194e8ca2-4938-470f-9157-bdb60499149b"
+ "WESTUS2:20210719T212823Z:1570d2da-1058-4599-b0aa-1136ee05a2b2"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"Date": [
- "Fri, 11 Sep 2020 18:13:21 GMT"
+ "Mon, 19 Jul 2021 21:28:23 GMT"
],
"Content-Length": [
- "88"
+ "86"
],
"Content-Type": [
"application/json; charset=utf-8"
@@ -141,19 +141,19 @@
"-1"
]
},
- "ResponseBody": "{\r\n \"operation\": \"UpsertServerManagementOperationV2\",\r\n \"startTime\": \"2020-09-11T18:13:22.197Z\"\r\n}",
+ "ResponseBody": "{\r\n \"operation\": \"UpsertServerManagementOperationV2\",\r\n \"startTime\": \"2021-07-19T21:28:23.1Z\"\r\n}",
"StatusCode": 202
},
{
- "RequestUri": "/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/eea1b92b-4d3d-4664-8689-122b303c7ec3?api-version=2020-02-14-privatepreview",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvN2ZlYzMxMDktNWI3OC00YTI0LWI4MzQtNWQ0N2Q2M2UyNTk2L3Byb3ZpZGVycy9NaWNyb3NvZnQuREJmb3JQb3N0Z3JlU1FML2xvY2F0aW9ucy9lYXN0dXMyZXVhcC9henVyZUFzeW5jT3BlcmF0aW9uL2VlYTFiOTJiLTRkM2QtNDY2NC04Njg5LTEyMmIzMDNjN2VjMz9hcGktdmVyc2lvbj0yMDIwLTAyLTE0LXByaXZhdGVwcmV2aWV3",
+ "RequestUri": "/subscriptions/ac0271d6-426b-4b0d-b88d-0d0e4bd693ae/providers/Microsoft.DBforPostgreSQL/locations/eastus2/azureAsyncOperation/74a7ad39-f689-4faa-b3af-9c7544acc68d?api-version=2021-06-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWMwMjcxZDYtNDI2Yi00YjBkLWI4OGQtMGQwZTRiZDY5M2FlL3Byb3ZpZGVycy9NaWNyb3NvZnQuREJmb3JQb3N0Z3JlU1FML2xvY2F0aW9ucy9lYXN0dXMyL2F6dXJlQXN5bmNPcGVyYXRpb24vNzRhN2FkMzktZjY4OS00ZmFhLWIzYWYtOWM3NTQ0YWNjNjhkP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
"User-Agent": [
- "FxVersion/4.6.29130.01",
+ "FxVersion/4.6.30015.01",
"OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.20211.",
+ "OSVersion/Microsoft.Windows.10.0.19043.",
"Microsoft.Azure.Management.PostgreSQL.FlexibleServers.PostgreSQLManagementClient/0.9.5"
]
},
@@ -171,7 +171,7 @@
"nosniff"
],
"x-ms-request-id": [
- "a46b02d3-98b6-44b2-99c1-70a3d934d894"
+ "28ed8355-5e28-405e-a834-5d9331f255bf"
],
"Server": [
"Microsoft-HTTPAPI/2.0"
@@ -180,19 +180,19 @@
"11999"
],
"x-ms-correlation-request-id": [
- "ad47f3b8-bb4e-4e7a-8636-6d1825d8ac0c"
+ "17865fa7-da26-430e-8ef1-62555f8c9b11"
],
"x-ms-routing-request-id": [
- "UAECENTRAL:20200911T181423Z:ad47f3b8-bb4e-4e7a-8636-6d1825d8ac0c"
+ "WESTUS2:20210719T212923Z:17865fa7-da26-430e-8ef1-62555f8c9b11"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"Date": [
- "Fri, 11 Sep 2020 18:14:22 GMT"
+ "Mon, 19 Jul 2021 21:29:23 GMT"
],
"Content-Length": [
- "108"
+ "106"
],
"Content-Type": [
"application/json; charset=utf-8"
@@ -201,19 +201,19 @@
"-1"
]
},
- "ResponseBody": "{\r\n \"name\": \"eea1b92b-4d3d-4664-8689-122b303c7ec3\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-11T18:13:22.197Z\"\r\n}",
+ "ResponseBody": "{\r\n \"name\": \"74a7ad39-f689-4faa-b3af-9c7544acc68d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-07-19T21:28:23.1Z\"\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/eea1b92b-4d3d-4664-8689-122b303c7ec3?api-version=2020-02-14-privatepreview",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvN2ZlYzMxMDktNWI3OC00YTI0LWI4MzQtNWQ0N2Q2M2UyNTk2L3Byb3ZpZGVycy9NaWNyb3NvZnQuREJmb3JQb3N0Z3JlU1FML2xvY2F0aW9ucy9lYXN0dXMyZXVhcC9henVyZUFzeW5jT3BlcmF0aW9uL2VlYTFiOTJiLTRkM2QtNDY2NC04Njg5LTEyMmIzMDNjN2VjMz9hcGktdmVyc2lvbj0yMDIwLTAyLTE0LXByaXZhdGVwcmV2aWV3",
+ "RequestUri": "/subscriptions/ac0271d6-426b-4b0d-b88d-0d0e4bd693ae/providers/Microsoft.DBforPostgreSQL/locations/eastus2/azureAsyncOperation/74a7ad39-f689-4faa-b3af-9c7544acc68d?api-version=2021-06-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWMwMjcxZDYtNDI2Yi00YjBkLWI4OGQtMGQwZTRiZDY5M2FlL3Byb3ZpZGVycy9NaWNyb3NvZnQuREJmb3JQb3N0Z3JlU1FML2xvY2F0aW9ucy9lYXN0dXMyL2F6dXJlQXN5bmNPcGVyYXRpb24vNzRhN2FkMzktZjY4OS00ZmFhLWIzYWYtOWM3NTQ0YWNjNjhkP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
"User-Agent": [
- "FxVersion/4.6.29130.01",
+ "FxVersion/4.6.30015.01",
"OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.20211.",
+ "OSVersion/Microsoft.Windows.10.0.19043.",
"Microsoft.Azure.Management.PostgreSQL.FlexibleServers.PostgreSQLManagementClient/0.9.5"
]
},
@@ -231,7 +231,7 @@
"nosniff"
],
"x-ms-request-id": [
- "73843b4a-d22f-493f-941c-544433c1237b"
+ "960c1240-6c39-4b68-97f3-832ed83fcff5"
],
"Server": [
"Microsoft-HTTPAPI/2.0"
@@ -240,19 +240,19 @@
"11998"
],
"x-ms-correlation-request-id": [
- "0f62d650-3580-4359-afd6-0af9061434d6"
+ "5579368f-708a-4d1d-81f7-80fc18618b6b"
],
"x-ms-routing-request-id": [
- "UAECENTRAL:20200911T181524Z:0f62d650-3580-4359-afd6-0af9061434d6"
+ "WESTUS2:20210719T213024Z:5579368f-708a-4d1d-81f7-80fc18618b6b"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"Date": [
- "Fri, 11 Sep 2020 18:15:24 GMT"
+ "Mon, 19 Jul 2021 21:30:23 GMT"
],
"Content-Length": [
- "108"
+ "106"
],
"Content-Type": [
"application/json; charset=utf-8"
@@ -261,19 +261,19 @@
"-1"
]
},
- "ResponseBody": "{\r\n \"name\": \"eea1b92b-4d3d-4664-8689-122b303c7ec3\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-11T18:13:22.197Z\"\r\n}",
+ "ResponseBody": "{\r\n \"name\": \"74a7ad39-f689-4faa-b3af-9c7544acc68d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-07-19T21:28:23.1Z\"\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/eea1b92b-4d3d-4664-8689-122b303c7ec3?api-version=2020-02-14-privatepreview",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvN2ZlYzMxMDktNWI3OC00YTI0LWI4MzQtNWQ0N2Q2M2UyNTk2L3Byb3ZpZGVycy9NaWNyb3NvZnQuREJmb3JQb3N0Z3JlU1FML2xvY2F0aW9ucy9lYXN0dXMyZXVhcC9henVyZUFzeW5jT3BlcmF0aW9uL2VlYTFiOTJiLTRkM2QtNDY2NC04Njg5LTEyMmIzMDNjN2VjMz9hcGktdmVyc2lvbj0yMDIwLTAyLTE0LXByaXZhdGVwcmV2aWV3",
+ "RequestUri": "/subscriptions/ac0271d6-426b-4b0d-b88d-0d0e4bd693ae/providers/Microsoft.DBforPostgreSQL/locations/eastus2/azureAsyncOperation/74a7ad39-f689-4faa-b3af-9c7544acc68d?api-version=2021-06-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWMwMjcxZDYtNDI2Yi00YjBkLWI4OGQtMGQwZTRiZDY5M2FlL3Byb3ZpZGVycy9NaWNyb3NvZnQuREJmb3JQb3N0Z3JlU1FML2xvY2F0aW9ucy9lYXN0dXMyL2F6dXJlQXN5bmNPcGVyYXRpb24vNzRhN2FkMzktZjY4OS00ZmFhLWIzYWYtOWM3NTQ0YWNjNjhkP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
"User-Agent": [
- "FxVersion/4.6.29130.01",
+ "FxVersion/4.6.30015.01",
"OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.20211.",
+ "OSVersion/Microsoft.Windows.10.0.19043.",
"Microsoft.Azure.Management.PostgreSQL.FlexibleServers.PostgreSQLManagementClient/0.9.5"
]
},
@@ -291,7 +291,7 @@
"nosniff"
],
"x-ms-request-id": [
- "a7318e55-48b5-4928-a538-428a9008211a"
+ "ee6e7c0d-4cca-4b12-85af-feb03941f03b"
],
"Server": [
"Microsoft-HTTPAPI/2.0"
@@ -300,19 +300,19 @@
"11997"
],
"x-ms-correlation-request-id": [
- "8ef09d92-50d9-4a9c-a825-83d541e65240"
+ "0bdd0263-cde3-4045-98d5-4af0ddc95f05"
],
"x-ms-routing-request-id": [
- "UAECENTRAL:20200911T181625Z:8ef09d92-50d9-4a9c-a825-83d541e65240"
+ "WESTUS2:20210719T213124Z:0bdd0263-cde3-4045-98d5-4af0ddc95f05"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"Date": [
- "Fri, 11 Sep 2020 18:16:25 GMT"
+ "Mon, 19 Jul 2021 21:31:24 GMT"
],
"Content-Length": [
- "108"
+ "106"
],
"Content-Type": [
"application/json; charset=utf-8"
@@ -321,19 +321,19 @@
"-1"
]
},
- "ResponseBody": "{\r\n \"name\": \"eea1b92b-4d3d-4664-8689-122b303c7ec3\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-11T18:13:22.197Z\"\r\n}",
+ "ResponseBody": "{\r\n \"name\": \"74a7ad39-f689-4faa-b3af-9c7544acc68d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-07-19T21:28:23.1Z\"\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/eea1b92b-4d3d-4664-8689-122b303c7ec3?api-version=2020-02-14-privatepreview",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvN2ZlYzMxMDktNWI3OC00YTI0LWI4MzQtNWQ0N2Q2M2UyNTk2L3Byb3ZpZGVycy9NaWNyb3NvZnQuREJmb3JQb3N0Z3JlU1FML2xvY2F0aW9ucy9lYXN0dXMyZXVhcC9henVyZUFzeW5jT3BlcmF0aW9uL2VlYTFiOTJiLTRkM2QtNDY2NC04Njg5LTEyMmIzMDNjN2VjMz9hcGktdmVyc2lvbj0yMDIwLTAyLTE0LXByaXZhdGVwcmV2aWV3",
+ "RequestUri": "/subscriptions/ac0271d6-426b-4b0d-b88d-0d0e4bd693ae/providers/Microsoft.DBforPostgreSQL/locations/eastus2/azureAsyncOperation/74a7ad39-f689-4faa-b3af-9c7544acc68d?api-version=2021-06-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWMwMjcxZDYtNDI2Yi00YjBkLWI4OGQtMGQwZTRiZDY5M2FlL3Byb3ZpZGVycy9NaWNyb3NvZnQuREJmb3JQb3N0Z3JlU1FML2xvY2F0aW9ucy9lYXN0dXMyL2F6dXJlQXN5bmNPcGVyYXRpb24vNzRhN2FkMzktZjY4OS00ZmFhLWIzYWYtOWM3NTQ0YWNjNjhkP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
"User-Agent": [
- "FxVersion/4.6.29130.01",
+ "FxVersion/4.6.30015.01",
"OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.20211.",
+ "OSVersion/Microsoft.Windows.10.0.19043.",
"Microsoft.Azure.Management.PostgreSQL.FlexibleServers.PostgreSQLManagementClient/0.9.5"
]
},
@@ -351,7 +351,7 @@
"nosniff"
],
"x-ms-request-id": [
- "3c730013-6687-443d-bbb3-ab7e11c66a69"
+ "3bef9a89-89fd-4ee9-b480-c5a3f10c96aa"
],
"Server": [
"Microsoft-HTTPAPI/2.0"
@@ -360,19 +360,19 @@
"11996"
],
"x-ms-correlation-request-id": [
- "67af0ef2-715a-4878-a6c9-add7d91a8a7d"
+ "293dcbc4-734f-41a6-abd2-922b512943a1"
],
"x-ms-routing-request-id": [
- "UAECENTRAL:20200911T181726Z:67af0ef2-715a-4878-a6c9-add7d91a8a7d"
+ "WESTUS2:20210719T213225Z:293dcbc4-734f-41a6-abd2-922b512943a1"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"Date": [
- "Fri, 11 Sep 2020 18:17:25 GMT"
+ "Mon, 19 Jul 2021 21:32:24 GMT"
],
"Content-Length": [
- "107"
+ "105"
],
"Content-Type": [
"application/json; charset=utf-8"
@@ -381,19 +381,19 @@
"-1"
]
},
- "ResponseBody": "{\r\n \"name\": \"eea1b92b-4d3d-4664-8689-122b303c7ec3\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-11T18:13:22.197Z\"\r\n}",
+ "ResponseBody": "{\r\n \"name\": \"74a7ad39-f689-4faa-b3af-9c7544acc68d\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2021-07-19T21:28:23.1Z\"\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/pgsdkrg/providers/Microsoft.DBForPostgreSql/flexibleServers/pgsdkflexserver?api-version=2020-02-14-privatepreview",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvN2ZlYzMxMDktNWI3OC00YTI0LWI4MzQtNWQ0N2Q2M2UyNTk2L3Jlc291cmNlR3JvdXBzL3Bnc2RrcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5EQkZvclBvc3RncmVTcWwvZmxleGlibGVTZXJ2ZXJzL3Bnc2RrZmxleHNlcnZlcj9hcGktdmVyc2lvbj0yMDIwLTAyLTE0LXByaXZhdGVwcmV2aWV3",
+ "RequestUri": "/subscriptions/ac0271d6-426b-4b0d-b88d-0d0e4bd693ae/resourceGroups/pgsdkrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgsdkflexserver?api-version=2021-06-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWMwMjcxZDYtNDI2Yi00YjBkLWI4OGQtMGQwZTRiZDY5M2FlL3Jlc291cmNlR3JvdXBzL3Bnc2RrcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5EQmZvclBvc3RncmVTUUwvZmxleGlibGVTZXJ2ZXJzL3Bnc2RrZmxleHNlcnZlcj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
"User-Agent": [
- "FxVersion/4.6.29130.01",
+ "FxVersion/4.6.30015.01",
"OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.20211.",
+ "OSVersion/Microsoft.Windows.10.0.19043.",
"Microsoft.Azure.Management.PostgreSQL.FlexibleServers.PostgreSQLManagementClient/0.9.5"
]
},
@@ -408,7 +408,7 @@
"nosniff"
],
"x-ms-request-id": [
- "f614228a-1a89-4267-98b1-083185d139cb"
+ "1baa187a-d6c8-4513-ad93-9f626b4c0373"
],
"Server": [
"Microsoft-HTTPAPI/2.0"
@@ -417,19 +417,19 @@
"11995"
],
"x-ms-correlation-request-id": [
- "0ad6e091-ff66-46f5-a669-fe99dae11478"
+ "896ec20d-54da-405f-a8a9-52fbaf4921f8"
],
"x-ms-routing-request-id": [
- "UAECENTRAL:20200911T181726Z:0ad6e091-ff66-46f5-a669-fe99dae11478"
+ "WESTUS2:20210719T213225Z:896ec20d-54da-405f-a8a9-52fbaf4921f8"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"Date": [
- "Fri, 11 Sep 2020 18:17:26 GMT"
+ "Mon, 19 Jul 2021 21:32:24 GMT"
],
"Content-Length": [
- "873"
+ "853"
],
"Content-Type": [
"application/json; charset=utf-8"
@@ -438,12 +438,12 @@
"-1"
]
},
- "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_D4s_v3\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"capacity\": 4\r\n },\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"pgsdkflexserver.postgres.database.azure.com\",\r\n \"version\": \"12\",\r\n \"standbyCount\": 0,\r\n \"haEnabled\": \"Disabled\",\r\n \"administratorLogin\": \"testUser\",\r\n \"publicNetworkAccess\": \"Disabled\",\r\n \"logBackupStorageSku\": \"Standard_ZRS\",\r\n \"haState\": \"NotEnabled\",\r\n \"state\": \"Ready\",\r\n \"availabilityZone\": \"1\",\r\n \"storageProfile\": {\r\n \"storageMB\": 524288,\r\n \"backupRetentionDays\": 7\r\n },\r\n \"earliestRestoreDate\": \"2020-09-11T21:17:26.8359535+03:00\",\r\n \"byokEnforcement\": \"Disabled\",\r\n \"maintenanceWindow\": {\r\n \"customWindow\": \"Disabled\",\r\n \"dayOfWeek\": 0,\r\n \"startHour\": 0,\r\n \"startMinute\": 0\r\n }\r\n },\r\n \"location\": \"East US 2 EUAP\",\r\n \"id\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/pgsdkrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgsdkflexserver\",\r\n \"name\": \"pgsdkflexserver\",\r\n \"type\": \"Microsoft.DBforPostgreSQL/flexibleServers\"\r\n}",
+ "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_D4s_v3\",\r\n \"tier\": \"GeneralPurpose\"\r\n },\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"pgsdkflexserver.postgres.database.azure.com\",\r\n \"version\": \"12\",\r\n \"minorVersion\": \"7\",\r\n \"administratorLogin\": \"testUser\",\r\n \"state\": \"Ready\",\r\n \"availabilityZone\": \"2\",\r\n \"storage\": {\r\n \"storageSizeGB\": 128\r\n },\r\n \"backup\": {\r\n \"backupRetentionDays\": 7,\r\n \"geoRedundantBackup\": \"Disabled\",\r\n \"earliestRestoreDate\": \"2021-07-19T14:32:25.4859243-07:00\"\r\n },\r\n \"network\": {\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"highAvailability\": {\r\n \"mode\": \"Disabled\",\r\n \"state\": \"NotEnabled\"\r\n },\r\n \"maintenanceWindow\": {\r\n \"customWindow\": \"Disabled\",\r\n \"dayOfWeek\": 0,\r\n \"startHour\": 0,\r\n \"startMinute\": 0\r\n }\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/ac0271d6-426b-4b0d-b88d-0d0e4bd693ae/resourceGroups/pgsdkrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgsdkflexserver\",\r\n \"name\": \"pgsdkflexserver\",\r\n \"type\": \"Microsoft.DBforPostgreSQL/flexibleServers\"\r\n}",
"StatusCode": 200
}
],
"Names": {},
"Variables": {
- "SubscriptionId": "7fec3109-5b78-4a24-b834-5d47d63e2596"
+ "SubscriptionId": "ac0271d6-426b-4b0d-b88d-0d0e4bd693ae"
}
}
\ No newline at end of file
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/tests/SessionRecords/CRUDFlexibleServersServiceTests/DeleteResourceSucceeds.json b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/tests/SessionRecords/CRUDFlexibleServersServiceTests/DeleteResourceSucceeds.json
index d3dcd9541342..2d3b1cacbc20 100644
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/tests/SessionRecords/CRUDFlexibleServersServiceTests/DeleteResourceSucceeds.json
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/tests/SessionRecords/CRUDFlexibleServersServiceTests/DeleteResourceSucceeds.json
@@ -1,28 +1,28 @@
{
"Entries": [
{
- "RequestUri": "/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourcegroups/pgsdkrg?api-version=2017-05-10",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvN2ZlYzMxMDktNWI3OC00YTI0LWI4MzQtNWQ0N2Q2M2UyNTk2L3Jlc291cmNlZ3JvdXBzL3Bnc2Rrcmc/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==",
+ "RequestUri": "/subscriptions/ac0271d6-426b-4b0d-b88d-0d0e4bd693ae/resourcegroups/pgsdkrg?api-version=2017-05-10",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWMwMjcxZDYtNDI2Yi00YjBkLWI4OGQtMGQwZTRiZDY5M2FlL3Jlc291cmNlZ3JvdXBzL3Bnc2Rrcmc/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==",
"RequestMethod": "PUT",
- "RequestBody": "{\r\n \"location\": \"eastus2euap\"\r\n}",
+ "RequestBody": "{\r\n \"location\": \"eastus2\"\r\n}",
"RequestHeaders": {
"x-ms-client-request-id": [
- "1c99e7a7-d45c-46f6-9b0a-572e8601439f"
+ "b069c13e-7223-45cf-a972-3b4398f24691"
],
"Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.6.29130.01",
+ "FxVersion/4.6.30015.01",
"OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.20211.",
+ "OSVersion/Microsoft.Windows.10.0.19043.",
"Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0"
],
"Content-Type": [
"application/json; charset=utf-8"
],
"Content-Length": [
- "33"
+ "29"
]
},
"ResponseHeaders": {
@@ -33,16 +33,16 @@
"no-cache"
],
"x-ms-ratelimit-remaining-subscription-writes": [
- "1199"
+ "1198"
],
"x-ms-request-id": [
- "37888941-8fe0-4624-b01a-97431c5c8c9c"
+ "f594b7cc-8b47-4337-8c93-ee4caa33f5c5"
],
"x-ms-correlation-request-id": [
- "37888941-8fe0-4624-b01a-97431c5c8c9c"
+ "f594b7cc-8b47-4337-8c93-ee4caa33f5c5"
],
"x-ms-routing-request-id": [
- "UAECENTRAL:20200911T180241Z:37888941-8fe0-4624-b01a-97431c5c8c9c"
+ "WESTUS2:20210719T214114Z:f594b7cc-8b47-4337-8c93-ee4caa33f5c5"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -51,10 +51,10 @@
"nosniff"
],
"Date": [
- "Fri, 11 Sep 2020 18:02:40 GMT"
+ "Mon, 19 Jul 2021 21:41:13 GMT"
],
"Content-Length": [
- "172"
+ "168"
],
"Content-Type": [
"application/json; charset=utf-8"
@@ -63,32 +63,32 @@
"-1"
]
},
- "ResponseBody": "{\r\n \"id\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/pgsdkrg\",\r\n \"name\": \"pgsdkrg\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}",
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/ac0271d6-426b-4b0d-b88d-0d0e4bd693ae/resourceGroups/pgsdkrg\",\r\n \"name\": \"pgsdkrg\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}",
"StatusCode": 201
},
{
- "RequestUri": "/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/pgsdkrg/providers/Microsoft.DBForPostgreSql/flexibleServers/pgsdkflexserver?api-version=2020-02-14-privatepreview",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvN2ZlYzMxMDktNWI3OC00YTI0LWI4MzQtNWQ0N2Q2M2UyNTk2L3Jlc291cmNlR3JvdXBzL3Bnc2RrcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5EQkZvclBvc3RncmVTcWwvZmxleGlibGVTZXJ2ZXJzL3Bnc2RrZmxleHNlcnZlcj9hcGktdmVyc2lvbj0yMDIwLTAyLTE0LXByaXZhdGVwcmV2aWV3",
+ "RequestUri": "/subscriptions/ac0271d6-426b-4b0d-b88d-0d0e4bd693ae/resourceGroups/pgsdkrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgsdkflexserver?api-version=2021-06-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWMwMjcxZDYtNDI2Yi00YjBkLWI4OGQtMGQwZTRiZDY5M2FlL3Jlc291cmNlR3JvdXBzL3Bnc2RrcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5EQmZvclBvc3RncmVTUUwvZmxleGlibGVTZXJ2ZXJzL3Bnc2RrZmxleHNlcnZlcj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx",
"RequestMethod": "PUT",
- "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_D4s_v3\",\r\n \"tier\": \"GeneralPurpose\"\r\n },\r\n \"properties\": {\r\n \"administratorLogin\": \"testUser\",\r\n \"administratorLoginPassword\": \"testPassword1!\",\r\n \"version\": \"12\",\r\n \"storageProfile\": {\r\n \"storageMB\": 524288\r\n }\r\n },\r\n \"location\": \"eastus2euap\"\r\n}",
+ "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_D4s_v3\",\r\n \"tier\": \"GeneralPurpose\"\r\n },\r\n \"properties\": {\r\n \"administratorLogin\": \"testUser\",\r\n \"administratorLoginPassword\": \"testPassword1!\",\r\n \"version\": \"12\",\r\n \"storage\": {\r\n \"storageSizeGB\": 128\r\n },\r\n \"network\": {}\r\n },\r\n \"location\": \"eastus2\"\r\n}",
"RequestHeaders": {
"x-ms-client-request-id": [
- "27b9bb6f-505d-470d-b45f-22b6e0eedffb"
+ "f7432338-3365-4cc1-9517-1f9172571e41"
],
"Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.6.29130.01",
+ "FxVersion/4.6.30015.01",
"OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.20211.",
+ "OSVersion/Microsoft.Windows.10.0.19043.",
"Microsoft.Azure.Management.PostgreSQL.FlexibleServers.PostgreSQLManagementClient/0.9.5"
],
"Content-Type": [
"application/json; charset=utf-8"
],
"Content-Length": [
- "311"
+ "321"
]
},
"ResponseHeaders": {
@@ -99,19 +99,19 @@
"no-cache"
],
"Location": [
- "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/ff403490-8582-463c-b94d-8e2b50c81d0a?api-version=2020-02-14-privatepreview"
+ "https://management.azure.com/subscriptions/ac0271d6-426b-4b0d-b88d-0d0e4bd693ae/providers/Microsoft.DBforPostgreSQL/locations/eastus2/operationResults/a3457b39-5670-497d-baef-31acb52ddad4?api-version=2021-06-01"
],
"Retry-After": [
"60"
],
"Azure-AsyncOperation": [
- "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/ff403490-8582-463c-b94d-8e2b50c81d0a?api-version=2020-02-14-privatepreview"
+ "https://management.azure.com/subscriptions/ac0271d6-426b-4b0d-b88d-0d0e4bd693ae/providers/Microsoft.DBforPostgreSQL/locations/eastus2/azureAsyncOperation/a3457b39-5670-497d-baef-31acb52ddad4?api-version=2021-06-01"
],
"X-Content-Type-Options": [
"nosniff"
],
"x-ms-request-id": [
- "ff403490-8582-463c-b94d-8e2b50c81d0a"
+ "cdb025dc-223c-4743-b4e3-f07d082c266f"
],
"Server": [
"Microsoft-HTTPAPI/2.0"
@@ -120,16 +120,16 @@
"1199"
],
"x-ms-correlation-request-id": [
- "9437b6f8-65a6-4b63-b688-b00ca2311be8"
+ "0f3c4749-c968-47c5-affc-705d98cb9a15"
],
"x-ms-routing-request-id": [
- "UAECENTRAL:20200911T180255Z:9437b6f8-65a6-4b63-b688-b00ca2311be8"
+ "WESTUS2:20210719T214116Z:0f3c4749-c968-47c5-affc-705d98cb9a15"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"Date": [
- "Fri, 11 Sep 2020 18:02:54 GMT"
+ "Mon, 19 Jul 2021 21:41:16 GMT"
],
"Content-Length": [
"88"
@@ -141,19 +141,19 @@
"-1"
]
},
- "ResponseBody": "{\r\n \"operation\": \"UpsertServerManagementOperationV2\",\r\n \"startTime\": \"2020-09-11T18:02:54.873Z\"\r\n}",
+ "ResponseBody": "{\r\n \"operation\": \"UpsertServerManagementOperationV2\",\r\n \"startTime\": \"2021-07-19T21:41:16.877Z\"\r\n}",
"StatusCode": 202
},
{
- "RequestUri": "/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/ff403490-8582-463c-b94d-8e2b50c81d0a?api-version=2020-02-14-privatepreview",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvN2ZlYzMxMDktNWI3OC00YTI0LWI4MzQtNWQ0N2Q2M2UyNTk2L3Byb3ZpZGVycy9NaWNyb3NvZnQuREJmb3JQb3N0Z3JlU1FML2xvY2F0aW9ucy9lYXN0dXMyZXVhcC9henVyZUFzeW5jT3BlcmF0aW9uL2ZmNDAzNDkwLTg1ODItNDYzYy1iOTRkLThlMmI1MGM4MWQwYT9hcGktdmVyc2lvbj0yMDIwLTAyLTE0LXByaXZhdGVwcmV2aWV3",
+ "RequestUri": "/subscriptions/ac0271d6-426b-4b0d-b88d-0d0e4bd693ae/providers/Microsoft.DBforPostgreSQL/locations/eastus2/azureAsyncOperation/a3457b39-5670-497d-baef-31acb52ddad4?api-version=2021-06-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWMwMjcxZDYtNDI2Yi00YjBkLWI4OGQtMGQwZTRiZDY5M2FlL3Byb3ZpZGVycy9NaWNyb3NvZnQuREJmb3JQb3N0Z3JlU1FML2xvY2F0aW9ucy9lYXN0dXMyL2F6dXJlQXN5bmNPcGVyYXRpb24vYTM0NTdiMzktNTY3MC00OTdkLWJhZWYtMzFhY2I1MmRkYWQ0P2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
"User-Agent": [
- "FxVersion/4.6.29130.01",
+ "FxVersion/4.6.30015.01",
"OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.20211.",
+ "OSVersion/Microsoft.Windows.10.0.19043.",
"Microsoft.Azure.Management.PostgreSQL.FlexibleServers.PostgreSQLManagementClient/0.9.5"
]
},
@@ -171,7 +171,7 @@
"nosniff"
],
"x-ms-request-id": [
- "67bee6b0-95e6-4689-b727-2c821abef381"
+ "3d4d5ba5-9d1f-4956-b60d-96805bf59654"
],
"Server": [
"Microsoft-HTTPAPI/2.0"
@@ -180,16 +180,16 @@
"11999"
],
"x-ms-correlation-request-id": [
- "eb5a4260-09d3-4db9-9ff6-42386fba9d9e"
+ "c3d2abcc-92a2-4d6b-80a5-5a12c2b494c3"
],
"x-ms-routing-request-id": [
- "UAECENTRAL:20200911T180356Z:eb5a4260-09d3-4db9-9ff6-42386fba9d9e"
+ "WESTUS2:20210719T214217Z:c3d2abcc-92a2-4d6b-80a5-5a12c2b494c3"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"Date": [
- "Fri, 11 Sep 2020 18:03:55 GMT"
+ "Mon, 19 Jul 2021 21:42:16 GMT"
],
"Content-Length": [
"108"
@@ -201,19 +201,19 @@
"-1"
]
},
- "ResponseBody": "{\r\n \"name\": \"ff403490-8582-463c-b94d-8e2b50c81d0a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-11T18:02:54.873Z\"\r\n}",
+ "ResponseBody": "{\r\n \"name\": \"a3457b39-5670-497d-baef-31acb52ddad4\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-07-19T21:41:16.877Z\"\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/ff403490-8582-463c-b94d-8e2b50c81d0a?api-version=2020-02-14-privatepreview",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvN2ZlYzMxMDktNWI3OC00YTI0LWI4MzQtNWQ0N2Q2M2UyNTk2L3Byb3ZpZGVycy9NaWNyb3NvZnQuREJmb3JQb3N0Z3JlU1FML2xvY2F0aW9ucy9lYXN0dXMyZXVhcC9henVyZUFzeW5jT3BlcmF0aW9uL2ZmNDAzNDkwLTg1ODItNDYzYy1iOTRkLThlMmI1MGM4MWQwYT9hcGktdmVyc2lvbj0yMDIwLTAyLTE0LXByaXZhdGVwcmV2aWV3",
+ "RequestUri": "/subscriptions/ac0271d6-426b-4b0d-b88d-0d0e4bd693ae/providers/Microsoft.DBforPostgreSQL/locations/eastus2/azureAsyncOperation/a3457b39-5670-497d-baef-31acb52ddad4?api-version=2021-06-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWMwMjcxZDYtNDI2Yi00YjBkLWI4OGQtMGQwZTRiZDY5M2FlL3Byb3ZpZGVycy9NaWNyb3NvZnQuREJmb3JQb3N0Z3JlU1FML2xvY2F0aW9ucy9lYXN0dXMyL2F6dXJlQXN5bmNPcGVyYXRpb24vYTM0NTdiMzktNTY3MC00OTdkLWJhZWYtMzFhY2I1MmRkYWQ0P2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
"User-Agent": [
- "FxVersion/4.6.29130.01",
+ "FxVersion/4.6.30015.01",
"OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.20211.",
+ "OSVersion/Microsoft.Windows.10.0.19043.",
"Microsoft.Azure.Management.PostgreSQL.FlexibleServers.PostgreSQLManagementClient/0.9.5"
]
},
@@ -231,7 +231,7 @@
"nosniff"
],
"x-ms-request-id": [
- "3ae14057-4307-430c-a282-de6ee9bc69bd"
+ "a948e678-03b9-4514-acc6-381f8a05676f"
],
"Server": [
"Microsoft-HTTPAPI/2.0"
@@ -240,16 +240,16 @@
"11998"
],
"x-ms-correlation-request-id": [
- "dfc48e18-829d-414f-b6cf-9affafb58bdd"
+ "fb61a5b4-9daa-4ce3-8cee-c7cd7c9cbfc5"
],
"x-ms-routing-request-id": [
- "UAECENTRAL:20200911T180457Z:dfc48e18-829d-414f-b6cf-9affafb58bdd"
+ "WESTUS2:20210719T214318Z:fb61a5b4-9daa-4ce3-8cee-c7cd7c9cbfc5"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"Date": [
- "Fri, 11 Sep 2020 18:04:56 GMT"
+ "Mon, 19 Jul 2021 21:43:17 GMT"
],
"Content-Length": [
"108"
@@ -261,19 +261,19 @@
"-1"
]
},
- "ResponseBody": "{\r\n \"name\": \"ff403490-8582-463c-b94d-8e2b50c81d0a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-11T18:02:54.873Z\"\r\n}",
+ "ResponseBody": "{\r\n \"name\": \"a3457b39-5670-497d-baef-31acb52ddad4\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-07-19T21:41:16.877Z\"\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/ff403490-8582-463c-b94d-8e2b50c81d0a?api-version=2020-02-14-privatepreview",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvN2ZlYzMxMDktNWI3OC00YTI0LWI4MzQtNWQ0N2Q2M2UyNTk2L3Byb3ZpZGVycy9NaWNyb3NvZnQuREJmb3JQb3N0Z3JlU1FML2xvY2F0aW9ucy9lYXN0dXMyZXVhcC9henVyZUFzeW5jT3BlcmF0aW9uL2ZmNDAzNDkwLTg1ODItNDYzYy1iOTRkLThlMmI1MGM4MWQwYT9hcGktdmVyc2lvbj0yMDIwLTAyLTE0LXByaXZhdGVwcmV2aWV3",
+ "RequestUri": "/subscriptions/ac0271d6-426b-4b0d-b88d-0d0e4bd693ae/providers/Microsoft.DBforPostgreSQL/locations/eastus2/azureAsyncOperation/a3457b39-5670-497d-baef-31acb52ddad4?api-version=2021-06-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWMwMjcxZDYtNDI2Yi00YjBkLWI4OGQtMGQwZTRiZDY5M2FlL3Byb3ZpZGVycy9NaWNyb3NvZnQuREJmb3JQb3N0Z3JlU1FML2xvY2F0aW9ucy9lYXN0dXMyL2F6dXJlQXN5bmNPcGVyYXRpb24vYTM0NTdiMzktNTY3MC00OTdkLWJhZWYtMzFhY2I1MmRkYWQ0P2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
"User-Agent": [
- "FxVersion/4.6.29130.01",
+ "FxVersion/4.6.30015.01",
"OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.20211.",
+ "OSVersion/Microsoft.Windows.10.0.19043.",
"Microsoft.Azure.Management.PostgreSQL.FlexibleServers.PostgreSQLManagementClient/0.9.5"
]
},
@@ -291,7 +291,7 @@
"nosniff"
],
"x-ms-request-id": [
- "1f7de40b-999c-4bfe-8bd9-50a685140d7d"
+ "1f78b4ae-5765-4cd7-81e7-b5691bf69f7e"
],
"Server": [
"Microsoft-HTTPAPI/2.0"
@@ -300,16 +300,16 @@
"11997"
],
"x-ms-correlation-request-id": [
- "776d6042-8434-489a-bdbd-beb4697d51e8"
+ "64e0436c-5699-4308-8b49-ed4ff588309f"
],
"x-ms-routing-request-id": [
- "UAECENTRAL:20200911T180558Z:776d6042-8434-489a-bdbd-beb4697d51e8"
+ "WESTUS2:20210719T214418Z:64e0436c-5699-4308-8b49-ed4ff588309f"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"Date": [
- "Fri, 11 Sep 2020 18:05:57 GMT"
+ "Mon, 19 Jul 2021 21:44:17 GMT"
],
"Content-Length": [
"108"
@@ -321,19 +321,19 @@
"-1"
]
},
- "ResponseBody": "{\r\n \"name\": \"ff403490-8582-463c-b94d-8e2b50c81d0a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-11T18:02:54.873Z\"\r\n}",
+ "ResponseBody": "{\r\n \"name\": \"a3457b39-5670-497d-baef-31acb52ddad4\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-07-19T21:41:16.877Z\"\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/ff403490-8582-463c-b94d-8e2b50c81d0a?api-version=2020-02-14-privatepreview",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvN2ZlYzMxMDktNWI3OC00YTI0LWI4MzQtNWQ0N2Q2M2UyNTk2L3Byb3ZpZGVycy9NaWNyb3NvZnQuREJmb3JQb3N0Z3JlU1FML2xvY2F0aW9ucy9lYXN0dXMyZXVhcC9henVyZUFzeW5jT3BlcmF0aW9uL2ZmNDAzNDkwLTg1ODItNDYzYy1iOTRkLThlMmI1MGM4MWQwYT9hcGktdmVyc2lvbj0yMDIwLTAyLTE0LXByaXZhdGVwcmV2aWV3",
+ "RequestUri": "/subscriptions/ac0271d6-426b-4b0d-b88d-0d0e4bd693ae/providers/Microsoft.DBforPostgreSQL/locations/eastus2/azureAsyncOperation/a3457b39-5670-497d-baef-31acb52ddad4?api-version=2021-06-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWMwMjcxZDYtNDI2Yi00YjBkLWI4OGQtMGQwZTRiZDY5M2FlL3Byb3ZpZGVycy9NaWNyb3NvZnQuREJmb3JQb3N0Z3JlU1FML2xvY2F0aW9ucy9lYXN0dXMyL2F6dXJlQXN5bmNPcGVyYXRpb24vYTM0NTdiMzktNTY3MC00OTdkLWJhZWYtMzFhY2I1MmRkYWQ0P2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
"User-Agent": [
- "FxVersion/4.6.29130.01",
+ "FxVersion/4.6.30015.01",
"OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.20211.",
+ "OSVersion/Microsoft.Windows.10.0.19043.",
"Microsoft.Azure.Management.PostgreSQL.FlexibleServers.PostgreSQLManagementClient/0.9.5"
]
},
@@ -351,7 +351,7 @@
"nosniff"
],
"x-ms-request-id": [
- "447789ed-a2b6-42c5-b933-88619ebb5899"
+ "23d15b94-3593-4d45-8885-7fe3b3d22365"
],
"Server": [
"Microsoft-HTTPAPI/2.0"
@@ -360,16 +360,16 @@
"11996"
],
"x-ms-correlation-request-id": [
- "4db6c457-9c35-44bf-87c6-1333ad2c1d93"
+ "52f4ae67-6e1e-4618-af99-9b3de92bcafa"
],
"x-ms-routing-request-id": [
- "UAECENTRAL:20200911T180659Z:4db6c457-9c35-44bf-87c6-1333ad2c1d93"
+ "WESTUS2:20210719T214518Z:52f4ae67-6e1e-4618-af99-9b3de92bcafa"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"Date": [
- "Fri, 11 Sep 2020 18:06:59 GMT"
+ "Mon, 19 Jul 2021 21:45:18 GMT"
],
"Content-Length": [
"107"
@@ -381,19 +381,19 @@
"-1"
]
},
- "ResponseBody": "{\r\n \"name\": \"ff403490-8582-463c-b94d-8e2b50c81d0a\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-11T18:02:54.873Z\"\r\n}",
+ "ResponseBody": "{\r\n \"name\": \"a3457b39-5670-497d-baef-31acb52ddad4\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2021-07-19T21:41:16.877Z\"\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/pgsdkrg/providers/Microsoft.DBForPostgreSql/flexibleServers/pgsdkflexserver?api-version=2020-02-14-privatepreview",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvN2ZlYzMxMDktNWI3OC00YTI0LWI4MzQtNWQ0N2Q2M2UyNTk2L3Jlc291cmNlR3JvdXBzL3Bnc2RrcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5EQkZvclBvc3RncmVTcWwvZmxleGlibGVTZXJ2ZXJzL3Bnc2RrZmxleHNlcnZlcj9hcGktdmVyc2lvbj0yMDIwLTAyLTE0LXByaXZhdGVwcmV2aWV3",
+ "RequestUri": "/subscriptions/ac0271d6-426b-4b0d-b88d-0d0e4bd693ae/resourceGroups/pgsdkrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgsdkflexserver?api-version=2021-06-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWMwMjcxZDYtNDI2Yi00YjBkLWI4OGQtMGQwZTRiZDY5M2FlL3Jlc291cmNlR3JvdXBzL3Bnc2RrcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5EQmZvclBvc3RncmVTUUwvZmxleGlibGVTZXJ2ZXJzL3Bnc2RrZmxleHNlcnZlcj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
"User-Agent": [
- "FxVersion/4.6.29130.01",
+ "FxVersion/4.6.30015.01",
"OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.20211.",
+ "OSVersion/Microsoft.Windows.10.0.19043.",
"Microsoft.Azure.Management.PostgreSQL.FlexibleServers.PostgreSQLManagementClient/0.9.5"
]
},
@@ -408,7 +408,7 @@
"nosniff"
],
"x-ms-request-id": [
- "9b73dbe1-33ad-486c-87f3-7609d2c46bea"
+ "fbf26876-5d2a-4679-94e0-f8ee64b18636"
],
"Server": [
"Microsoft-HTTPAPI/2.0"
@@ -417,19 +417,19 @@
"11995"
],
"x-ms-correlation-request-id": [
- "ee13bc48-f1b3-42dc-abc2-5b9ba8558bb8"
+ "ac27abdb-40e8-4f9c-b38e-e0f1ab6602d2"
],
"x-ms-routing-request-id": [
- "UAECENTRAL:20200911T180659Z:ee13bc48-f1b3-42dc-abc2-5b9ba8558bb8"
+ "WESTUS2:20210719T214519Z:ac27abdb-40e8-4f9c-b38e-e0f1ab6602d2"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"Date": [
- "Fri, 11 Sep 2020 18:06:59 GMT"
+ "Mon, 19 Jul 2021 21:45:18 GMT"
],
"Content-Length": [
- "873"
+ "853"
],
"Content-Type": [
"application/json; charset=utf-8"
@@ -438,25 +438,25 @@
"-1"
]
},
- "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_D4s_v3\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"capacity\": 4\r\n },\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"pgsdkflexserver.postgres.database.azure.com\",\r\n \"version\": \"12\",\r\n \"standbyCount\": 0,\r\n \"haEnabled\": \"Disabled\",\r\n \"administratorLogin\": \"testUser\",\r\n \"publicNetworkAccess\": \"Disabled\",\r\n \"logBackupStorageSku\": \"Standard_ZRS\",\r\n \"haState\": \"NotEnabled\",\r\n \"state\": \"Ready\",\r\n \"availabilityZone\": \"1\",\r\n \"storageProfile\": {\r\n \"storageMB\": 524288,\r\n \"backupRetentionDays\": 7\r\n },\r\n \"earliestRestoreDate\": \"2020-09-11T21:06:59.6972107+03:00\",\r\n \"byokEnforcement\": \"Disabled\",\r\n \"maintenanceWindow\": {\r\n \"customWindow\": \"Disabled\",\r\n \"dayOfWeek\": 0,\r\n \"startHour\": 0,\r\n \"startMinute\": 0\r\n }\r\n },\r\n \"location\": \"East US 2 EUAP\",\r\n \"id\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/pgsdkrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgsdkflexserver\",\r\n \"name\": \"pgsdkflexserver\",\r\n \"type\": \"Microsoft.DBforPostgreSQL/flexibleServers\"\r\n}",
+ "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_D4s_v3\",\r\n \"tier\": \"GeneralPurpose\"\r\n },\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"pgsdkflexserver.postgres.database.azure.com\",\r\n \"version\": \"12\",\r\n \"minorVersion\": \"7\",\r\n \"administratorLogin\": \"testUser\",\r\n \"state\": \"Ready\",\r\n \"availabilityZone\": \"1\",\r\n \"storage\": {\r\n \"storageSizeGB\": 128\r\n },\r\n \"backup\": {\r\n \"backupRetentionDays\": 7,\r\n \"geoRedundantBackup\": \"Disabled\",\r\n \"earliestRestoreDate\": \"2021-07-19T14:45:19.0418194-07:00\"\r\n },\r\n \"network\": {\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"highAvailability\": {\r\n \"mode\": \"Disabled\",\r\n \"state\": \"NotEnabled\"\r\n },\r\n \"maintenanceWindow\": {\r\n \"customWindow\": \"Disabled\",\r\n \"dayOfWeek\": 0,\r\n \"startHour\": 0,\r\n \"startMinute\": 0\r\n }\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/ac0271d6-426b-4b0d-b88d-0d0e4bd693ae/resourceGroups/pgsdkrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgsdkflexserver\",\r\n \"name\": \"pgsdkflexserver\",\r\n \"type\": \"Microsoft.DBforPostgreSQL/flexibleServers\"\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/pgsdkrg/providers/Microsoft.DBForPostgreSql/flexibleServers/pgsdkflexserver?api-version=2020-02-14-privatepreview",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvN2ZlYzMxMDktNWI3OC00YTI0LWI4MzQtNWQ0N2Q2M2UyNTk2L3Jlc291cmNlR3JvdXBzL3Bnc2RrcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5EQkZvclBvc3RncmVTcWwvZmxleGlibGVTZXJ2ZXJzL3Bnc2RrZmxleHNlcnZlcj9hcGktdmVyc2lvbj0yMDIwLTAyLTE0LXByaXZhdGVwcmV2aWV3",
+ "RequestUri": "/subscriptions/ac0271d6-426b-4b0d-b88d-0d0e4bd693ae/resourceGroups/pgsdkrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgsdkflexserver?api-version=2021-06-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWMwMjcxZDYtNDI2Yi00YjBkLWI4OGQtMGQwZTRiZDY5M2FlL3Jlc291cmNlR3JvdXBzL3Bnc2RrcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5EQmZvclBvc3RncmVTUUwvZmxleGlibGVTZXJ2ZXJzL3Bnc2RrZmxleHNlcnZlcj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
"x-ms-client-request-id": [
- "6ad39a87-5dd7-43f1-ae8f-bc96b57c0582"
+ "9b8fee7a-62b7-4d5c-80ad-2cc0e5eec44a"
],
"Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.6.29130.01",
+ "FxVersion/4.6.30015.01",
"OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.20211.",
+ "OSVersion/Microsoft.Windows.10.0.19043.",
"Microsoft.Azure.Management.PostgreSQL.FlexibleServers.PostgreSQLManagementClient/0.9.5"
]
},
@@ -471,7 +471,7 @@
"nosniff"
],
"x-ms-request-id": [
- "60fd93c6-8e60-450e-afef-3d5ce5f96934"
+ "725a8df5-a9d4-4223-a15e-3198d5468779"
],
"Server": [
"Microsoft-HTTPAPI/2.0"
@@ -480,19 +480,19 @@
"11994"
],
"x-ms-correlation-request-id": [
- "94123697-5bd2-49d3-92f5-80a3f1729b28"
+ "97de54a3-dce8-4707-a244-74d7ea2e7d5e"
],
"x-ms-routing-request-id": [
- "UAECENTRAL:20200911T180700Z:94123697-5bd2-49d3-92f5-80a3f1729b28"
+ "WESTUS2:20210719T214519Z:97de54a3-dce8-4707-a244-74d7ea2e7d5e"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"Date": [
- "Fri, 11 Sep 2020 18:07:00 GMT"
+ "Mon, 19 Jul 2021 21:45:18 GMT"
],
"Content-Length": [
- "873"
+ "853"
],
"Content-Type": [
"application/json; charset=utf-8"
@@ -501,25 +501,25 @@
"-1"
]
},
- "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_D4s_v3\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"capacity\": 4\r\n },\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"pgsdkflexserver.postgres.database.azure.com\",\r\n \"version\": \"12\",\r\n \"standbyCount\": 0,\r\n \"haEnabled\": \"Disabled\",\r\n \"administratorLogin\": \"testUser\",\r\n \"publicNetworkAccess\": \"Disabled\",\r\n \"logBackupStorageSku\": \"Standard_ZRS\",\r\n \"haState\": \"NotEnabled\",\r\n \"state\": \"Ready\",\r\n \"availabilityZone\": \"1\",\r\n \"storageProfile\": {\r\n \"storageMB\": 524288,\r\n \"backupRetentionDays\": 7\r\n },\r\n \"earliestRestoreDate\": \"2020-09-11T21:07:00.2121973+03:00\",\r\n \"byokEnforcement\": \"Disabled\",\r\n \"maintenanceWindow\": {\r\n \"customWindow\": \"Disabled\",\r\n \"dayOfWeek\": 0,\r\n \"startHour\": 0,\r\n \"startMinute\": 0\r\n }\r\n },\r\n \"location\": \"East US 2 EUAP\",\r\n \"id\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/pgsdkrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgsdkflexserver\",\r\n \"name\": \"pgsdkflexserver\",\r\n \"type\": \"Microsoft.DBforPostgreSQL/flexibleServers\"\r\n}",
+ "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_D4s_v3\",\r\n \"tier\": \"GeneralPurpose\"\r\n },\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"pgsdkflexserver.postgres.database.azure.com\",\r\n \"version\": \"12\",\r\n \"minorVersion\": \"7\",\r\n \"administratorLogin\": \"testUser\",\r\n \"state\": \"Ready\",\r\n \"availabilityZone\": \"1\",\r\n \"storage\": {\r\n \"storageSizeGB\": 128\r\n },\r\n \"backup\": {\r\n \"backupRetentionDays\": 7,\r\n \"geoRedundantBackup\": \"Disabled\",\r\n \"earliestRestoreDate\": \"2021-07-19T14:45:19.4168688-07:00\"\r\n },\r\n \"network\": {\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"highAvailability\": {\r\n \"mode\": \"Disabled\",\r\n \"state\": \"NotEnabled\"\r\n },\r\n \"maintenanceWindow\": {\r\n \"customWindow\": \"Disabled\",\r\n \"dayOfWeek\": 0,\r\n \"startHour\": 0,\r\n \"startMinute\": 0\r\n }\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/ac0271d6-426b-4b0d-b88d-0d0e4bd693ae/resourceGroups/pgsdkrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgsdkflexserver\",\r\n \"name\": \"pgsdkflexserver\",\r\n \"type\": \"Microsoft.DBforPostgreSQL/flexibleServers\"\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/pgsdkrg/providers/Microsoft.DBForPostgreSql/flexibleServers/pgsdkflexserver?api-version=2020-02-14-privatepreview",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvN2ZlYzMxMDktNWI3OC00YTI0LWI4MzQtNWQ0N2Q2M2UyNTk2L3Jlc291cmNlR3JvdXBzL3Bnc2RrcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5EQkZvclBvc3RncmVTcWwvZmxleGlibGVTZXJ2ZXJzL3Bnc2RrZmxleHNlcnZlcj9hcGktdmVyc2lvbj0yMDIwLTAyLTE0LXByaXZhdGVwcmV2aWV3",
+ "RequestUri": "/subscriptions/ac0271d6-426b-4b0d-b88d-0d0e4bd693ae/resourceGroups/pgsdkrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgsdkflexserver?api-version=2021-06-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWMwMjcxZDYtNDI2Yi00YjBkLWI4OGQtMGQwZTRiZDY5M2FlL3Jlc291cmNlR3JvdXBzL3Bnc2RrcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5EQmZvclBvc3RncmVTUUwvZmxleGlibGVTZXJ2ZXJzL3Bnc2RrZmxleHNlcnZlcj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx",
"RequestMethod": "DELETE",
"RequestBody": "",
"RequestHeaders": {
"x-ms-client-request-id": [
- "78cb3461-6060-4805-83bf-28f4083d2620"
+ "57ae8919-c157-4dea-a43c-4f9db3630da7"
],
"Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.6.29130.01",
+ "FxVersion/4.6.30015.01",
"OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.20211.",
+ "OSVersion/Microsoft.Windows.10.0.19043.",
"Microsoft.Azure.Management.PostgreSQL.FlexibleServers.PostgreSQLManagementClient/0.9.5"
]
},
@@ -531,19 +531,19 @@
"no-cache"
],
"Location": [
- "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US%202%20EUAP/operationResults/cd3116c3-f640-48be-bc56-5d19eb554d95?api-version=2020-02-14-privatepreview"
+ "https://management.azure.com/subscriptions/ac0271d6-426b-4b0d-b88d-0d0e4bd693ae/providers/Microsoft.DBforPostgreSQL/locations/East%20US%202/operationResults/7d1b8258-3bb5-43a5-acda-9905e9ae0dba?api-version=2021-06-01"
],
"Retry-After": [
"15"
],
"Azure-AsyncOperation": [
- "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US%202%20EUAP/azureAsyncOperation/cd3116c3-f640-48be-bc56-5d19eb554d95?api-version=2020-02-14-privatepreview"
+ "https://management.azure.com/subscriptions/ac0271d6-426b-4b0d-b88d-0d0e4bd693ae/providers/Microsoft.DBforPostgreSQL/locations/East%20US%202/azureAsyncOperation/7d1b8258-3bb5-43a5-acda-9905e9ae0dba?api-version=2021-06-01"
],
"X-Content-Type-Options": [
"nosniff"
],
"x-ms-request-id": [
- "cd3116c3-f640-48be-bc56-5d19eb554d95"
+ "7d1b8258-3bb5-43a5-acda-9905e9ae0dba"
],
"Server": [
"Microsoft-HTTPAPI/2.0"
@@ -552,16 +552,16 @@
"14999"
],
"x-ms-correlation-request-id": [
- "7b82b1b7-01d2-41d7-9a58-9c69ea557c91"
+ "da49a0ae-61d2-4ee0-8326-607a24f5c439"
],
"x-ms-routing-request-id": [
- "UAECENTRAL:20200911T180701Z:7b82b1b7-01d2-41d7-9a58-9c69ea557c91"
+ "WESTUS2:20210719T214520Z:da49a0ae-61d2-4ee0-8326-607a24f5c439"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"Date": [
- "Fri, 11 Sep 2020 18:07:01 GMT"
+ "Mon, 19 Jul 2021 21:45:19 GMT"
],
"Content-Length": [
"84"
@@ -573,19 +573,19 @@
"-1"
]
},
- "ResponseBody": "{\r\n \"operation\": \"DropServerManagementOperation\",\r\n \"startTime\": \"2020-09-11T18:07:01.783Z\"\r\n}",
+ "ResponseBody": "{\r\n \"operation\": \"DropServerManagementOperation\",\r\n \"startTime\": \"2021-07-19T21:45:19.887Z\"\r\n}",
"StatusCode": 202
},
{
- "RequestUri": "/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US%202%20EUAP/azureAsyncOperation/cd3116c3-f640-48be-bc56-5d19eb554d95?api-version=2020-02-14-privatepreview",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvN2ZlYzMxMDktNWI3OC00YTI0LWI4MzQtNWQ0N2Q2M2UyNTk2L3Byb3ZpZGVycy9NaWNyb3NvZnQuREJmb3JQb3N0Z3JlU1FML2xvY2F0aW9ucy9FYXN0JTIwVVMlMjAyJTIwRVVBUC9henVyZUFzeW5jT3BlcmF0aW9uL2NkMzExNmMzLWY2NDAtNDhiZS1iYzU2LTVkMTllYjU1NGQ5NT9hcGktdmVyc2lvbj0yMDIwLTAyLTE0LXByaXZhdGVwcmV2aWV3",
+ "RequestUri": "/subscriptions/ac0271d6-426b-4b0d-b88d-0d0e4bd693ae/providers/Microsoft.DBforPostgreSQL/locations/East%20US%202/azureAsyncOperation/7d1b8258-3bb5-43a5-acda-9905e9ae0dba?api-version=2021-06-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWMwMjcxZDYtNDI2Yi00YjBkLWI4OGQtMGQwZTRiZDY5M2FlL3Byb3ZpZGVycy9NaWNyb3NvZnQuREJmb3JQb3N0Z3JlU1FML2xvY2F0aW9ucy9FYXN0JTIwVVMlMjAyL2F6dXJlQXN5bmNPcGVyYXRpb24vN2QxYjgyNTgtM2JiNS00M2E1LWFjZGEtOTkwNWU5YWUwZGJhP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
"User-Agent": [
- "FxVersion/4.6.29130.01",
+ "FxVersion/4.6.30015.01",
"OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.20211.",
+ "OSVersion/Microsoft.Windows.10.0.19043.",
"Microsoft.Azure.Management.PostgreSQL.FlexibleServers.PostgreSQLManagementClient/0.9.5"
]
},
@@ -603,7 +603,7 @@
"nosniff"
],
"x-ms-request-id": [
- "e1a8f095-f9f6-4973-b7cc-1a110a5e9c67"
+ "89fb8d22-61b5-4c39-b3d4-747782c27b1e"
],
"Server": [
"Microsoft-HTTPAPI/2.0"
@@ -612,16 +612,16 @@
"11993"
],
"x-ms-correlation-request-id": [
- "ef84e4fc-8535-41c1-8ccb-fe88487c98cf"
+ "64fadc42-c11f-4dc2-878b-bf4928c78152"
],
"x-ms-routing-request-id": [
- "UAECENTRAL:20200911T180717Z:ef84e4fc-8535-41c1-8ccb-fe88487c98cf"
+ "WESTUS2:20210719T214535Z:64fadc42-c11f-4dc2-878b-bf4928c78152"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"Date": [
- "Fri, 11 Sep 2020 18:07:17 GMT"
+ "Mon, 19 Jul 2021 21:45:34 GMT"
],
"Content-Length": [
"108"
@@ -633,19 +633,19 @@
"-1"
]
},
- "ResponseBody": "{\r\n \"name\": \"cd3116c3-f640-48be-bc56-5d19eb554d95\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-11T18:07:01.783Z\"\r\n}",
+ "ResponseBody": "{\r\n \"name\": \"7d1b8258-3bb5-43a5-acda-9905e9ae0dba\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-07-19T21:45:19.887Z\"\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US%202%20EUAP/azureAsyncOperation/cd3116c3-f640-48be-bc56-5d19eb554d95?api-version=2020-02-14-privatepreview",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvN2ZlYzMxMDktNWI3OC00YTI0LWI4MzQtNWQ0N2Q2M2UyNTk2L3Byb3ZpZGVycy9NaWNyb3NvZnQuREJmb3JQb3N0Z3JlU1FML2xvY2F0aW9ucy9FYXN0JTIwVVMlMjAyJTIwRVVBUC9henVyZUFzeW5jT3BlcmF0aW9uL2NkMzExNmMzLWY2NDAtNDhiZS1iYzU2LTVkMTllYjU1NGQ5NT9hcGktdmVyc2lvbj0yMDIwLTAyLTE0LXByaXZhdGVwcmV2aWV3",
+ "RequestUri": "/subscriptions/ac0271d6-426b-4b0d-b88d-0d0e4bd693ae/providers/Microsoft.DBforPostgreSQL/locations/East%20US%202/azureAsyncOperation/7d1b8258-3bb5-43a5-acda-9905e9ae0dba?api-version=2021-06-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWMwMjcxZDYtNDI2Yi00YjBkLWI4OGQtMGQwZTRiZDY5M2FlL3Byb3ZpZGVycy9NaWNyb3NvZnQuREJmb3JQb3N0Z3JlU1FML2xvY2F0aW9ucy9FYXN0JTIwVVMlMjAyL2F6dXJlQXN5bmNPcGVyYXRpb24vN2QxYjgyNTgtM2JiNS00M2E1LWFjZGEtOTkwNWU5YWUwZGJhP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
"User-Agent": [
- "FxVersion/4.6.29130.01",
+ "FxVersion/4.6.30015.01",
"OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.20211.",
+ "OSVersion/Microsoft.Windows.10.0.19043.",
"Microsoft.Azure.Management.PostgreSQL.FlexibleServers.PostgreSQLManagementClient/0.9.5"
]
},
@@ -663,7 +663,7 @@
"nosniff"
],
"x-ms-request-id": [
- "f2486bb5-a52e-48d5-b934-83bcf98b6785"
+ "5eb154ba-186c-45bc-814b-607f56c1c420"
],
"Server": [
"Microsoft-HTTPAPI/2.0"
@@ -672,16 +672,16 @@
"11992"
],
"x-ms-correlation-request-id": [
- "e2da93dd-8067-401c-a3e4-533310c5a564"
+ "5366cad9-0b66-41ac-ba44-31d5a272bb2f"
],
"x-ms-routing-request-id": [
- "UAECENTRAL:20200911T180732Z:e2da93dd-8067-401c-a3e4-533310c5a564"
+ "WESTUS2:20210719T214550Z:5366cad9-0b66-41ac-ba44-31d5a272bb2f"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"Date": [
- "Fri, 11 Sep 2020 18:07:32 GMT"
+ "Mon, 19 Jul 2021 21:45:49 GMT"
],
"Content-Length": [
"108"
@@ -693,19 +693,19 @@
"-1"
]
},
- "ResponseBody": "{\r\n \"name\": \"cd3116c3-f640-48be-bc56-5d19eb554d95\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-11T18:07:01.783Z\"\r\n}",
+ "ResponseBody": "{\r\n \"name\": \"7d1b8258-3bb5-43a5-acda-9905e9ae0dba\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-07-19T21:45:19.887Z\"\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US%202%20EUAP/azureAsyncOperation/cd3116c3-f640-48be-bc56-5d19eb554d95?api-version=2020-02-14-privatepreview",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvN2ZlYzMxMDktNWI3OC00YTI0LWI4MzQtNWQ0N2Q2M2UyNTk2L3Byb3ZpZGVycy9NaWNyb3NvZnQuREJmb3JQb3N0Z3JlU1FML2xvY2F0aW9ucy9FYXN0JTIwVVMlMjAyJTIwRVVBUC9henVyZUFzeW5jT3BlcmF0aW9uL2NkMzExNmMzLWY2NDAtNDhiZS1iYzU2LTVkMTllYjU1NGQ5NT9hcGktdmVyc2lvbj0yMDIwLTAyLTE0LXByaXZhdGVwcmV2aWV3",
+ "RequestUri": "/subscriptions/ac0271d6-426b-4b0d-b88d-0d0e4bd693ae/providers/Microsoft.DBforPostgreSQL/locations/East%20US%202/azureAsyncOperation/7d1b8258-3bb5-43a5-acda-9905e9ae0dba?api-version=2021-06-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWMwMjcxZDYtNDI2Yi00YjBkLWI4OGQtMGQwZTRiZDY5M2FlL3Byb3ZpZGVycy9NaWNyb3NvZnQuREJmb3JQb3N0Z3JlU1FML2xvY2F0aW9ucy9FYXN0JTIwVVMlMjAyL2F6dXJlQXN5bmNPcGVyYXRpb24vN2QxYjgyNTgtM2JiNS00M2E1LWFjZGEtOTkwNWU5YWUwZGJhP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
"User-Agent": [
- "FxVersion/4.6.29130.01",
+ "FxVersion/4.6.30015.01",
"OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.20211.",
+ "OSVersion/Microsoft.Windows.10.0.19043.",
"Microsoft.Azure.Management.PostgreSQL.FlexibleServers.PostgreSQLManagementClient/0.9.5"
]
},
@@ -723,7 +723,7 @@
"nosniff"
],
"x-ms-request-id": [
- "b88d7b4a-6705-46dc-aa46-e3bf61f675e5"
+ "ead02fd8-e4be-4ea9-95f1-725d23016be7"
],
"Server": [
"Microsoft-HTTPAPI/2.0"
@@ -732,16 +732,16 @@
"11991"
],
"x-ms-correlation-request-id": [
- "7270099d-0785-4c70-b205-76d9515b8b4e"
+ "f61ff5d7-eade-4df9-a644-8feaeb7beaaa"
],
"x-ms-routing-request-id": [
- "UAECENTRAL:20200911T180748Z:7270099d-0785-4c70-b205-76d9515b8b4e"
+ "WESTUS2:20210719T214605Z:f61ff5d7-eade-4df9-a644-8feaeb7beaaa"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"Date": [
- "Fri, 11 Sep 2020 18:07:47 GMT"
+ "Mon, 19 Jul 2021 21:46:05 GMT"
],
"Content-Length": [
"107"
@@ -753,19 +753,19 @@
"-1"
]
},
- "ResponseBody": "{\r\n \"name\": \"cd3116c3-f640-48be-bc56-5d19eb554d95\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-11T18:07:01.783Z\"\r\n}",
+ "ResponseBody": "{\r\n \"name\": \"7d1b8258-3bb5-43a5-acda-9905e9ae0dba\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2021-07-19T21:45:19.887Z\"\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/East%20US%202%20EUAP/operationResults/cd3116c3-f640-48be-bc56-5d19eb554d95?api-version=2020-02-14-privatepreview",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvN2ZlYzMxMDktNWI3OC00YTI0LWI4MzQtNWQ0N2Q2M2UyNTk2L3Byb3ZpZGVycy9NaWNyb3NvZnQuREJmb3JQb3N0Z3JlU1FML2xvY2F0aW9ucy9FYXN0JTIwVVMlMjAyJTIwRVVBUC9vcGVyYXRpb25SZXN1bHRzL2NkMzExNmMzLWY2NDAtNDhiZS1iYzU2LTVkMTllYjU1NGQ5NT9hcGktdmVyc2lvbj0yMDIwLTAyLTE0LXByaXZhdGVwcmV2aWV3",
+ "RequestUri": "/subscriptions/ac0271d6-426b-4b0d-b88d-0d0e4bd693ae/providers/Microsoft.DBforPostgreSQL/locations/East%20US%202/operationResults/7d1b8258-3bb5-43a5-acda-9905e9ae0dba?api-version=2021-06-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWMwMjcxZDYtNDI2Yi00YjBkLWI4OGQtMGQwZTRiZDY5M2FlL3Byb3ZpZGVycy9NaWNyb3NvZnQuREJmb3JQb3N0Z3JlU1FML2xvY2F0aW9ucy9FYXN0JTIwVVMlMjAyL29wZXJhdGlvblJlc3VsdHMvN2QxYjgyNTgtM2JiNS00M2E1LWFjZGEtOTkwNWU5YWUwZGJhP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
"User-Agent": [
- "FxVersion/4.6.29130.01",
+ "FxVersion/4.6.30015.01",
"OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.20211.",
+ "OSVersion/Microsoft.Windows.10.0.19043.",
"Microsoft.Azure.Management.PostgreSQL.FlexibleServers.PostgreSQLManagementClient/0.9.5"
]
},
@@ -780,7 +780,7 @@
"nosniff"
],
"x-ms-request-id": [
- "78f874d9-cbd0-45b3-b712-0b51a36727f2"
+ "1accc9b5-fe88-4f6a-a445-b449a0908f40"
],
"Server": [
"Microsoft-HTTPAPI/2.0"
@@ -789,16 +789,16 @@
"11990"
],
"x-ms-correlation-request-id": [
- "01359365-a489-445a-8643-776532f2ee8f"
+ "e7fb7f54-7bc2-4666-b7a6-c4d4da07abe0"
],
"x-ms-routing-request-id": [
- "UAECENTRAL:20200911T180748Z:01359365-a489-445a-8643-776532f2ee8f"
+ "WESTUS2:20210719T214605Z:e7fb7f54-7bc2-4666-b7a6-c4d4da07abe0"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"Date": [
- "Fri, 11 Sep 2020 18:07:47 GMT"
+ "Mon, 19 Jul 2021 21:46:05 GMT"
],
"Expires": [
"-1"
@@ -813,6 +813,6 @@
],
"Names": {},
"Variables": {
- "SubscriptionId": "7fec3109-5b78-4a24-b834-5d47d63e2596"
+ "SubscriptionId": "ac0271d6-426b-4b0d-b88d-0d0e4bd693ae"
}
}
\ No newline at end of file
diff --git a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/tests/SessionRecords/CRUDFlexibleServersServiceTests/GetResourceSucceeds.json b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/tests/SessionRecords/CRUDFlexibleServersServiceTests/GetResourceSucceeds.json
index c8bb685edb05..8e900a9cdcf7 100644
--- a/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/tests/SessionRecords/CRUDFlexibleServersServiceTests/GetResourceSucceeds.json
+++ b/sdk/postgresql/Microsoft.Azure.Management.PostgreSQL/tests/SessionRecords/CRUDFlexibleServersServiceTests/GetResourceSucceeds.json
@@ -1,28 +1,28 @@
{
"Entries": [
{
- "RequestUri": "/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourcegroups/pgsdkrg?api-version=2017-05-10",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvN2ZlYzMxMDktNWI3OC00YTI0LWI4MzQtNWQ0N2Q2M2UyNTk2L3Jlc291cmNlZ3JvdXBzL3Bnc2Rrcmc/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==",
+ "RequestUri": "/subscriptions/ac0271d6-426b-4b0d-b88d-0d0e4bd693ae/resourcegroups/pgsdkrg?api-version=2017-05-10",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWMwMjcxZDYtNDI2Yi00YjBkLWI4OGQtMGQwZTRiZDY5M2FlL3Jlc291cmNlZ3JvdXBzL3Bnc2Rrcmc/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==",
"RequestMethod": "PUT",
- "RequestBody": "{\r\n \"location\": \"eastus2euap\"\r\n}",
+ "RequestBody": "{\r\n \"location\": \"eastus2\"\r\n}",
"RequestHeaders": {
"x-ms-client-request-id": [
- "eb8f3dd7-7068-4e54-8b00-91d28f3bdbfa"
+ "0a581604-8346-4149-b35a-e079fd3d88b1"
],
"Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.6.29130.01",
+ "FxVersion/4.6.30015.01",
"OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.20211.",
+ "OSVersion/Microsoft.Windows.10.0.19043.",
"Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0"
],
"Content-Type": [
"application/json; charset=utf-8"
],
"Content-Length": [
- "33"
+ "29"
]
},
"ResponseHeaders": {
@@ -36,13 +36,13 @@
"1199"
],
"x-ms-request-id": [
- "f40d4398-61d8-4ee5-9e6a-d954f9ca89a3"
+ "fa0149e3-6d4e-419d-8b9a-37a8a5da40a6"
],
"x-ms-correlation-request-id": [
- "f40d4398-61d8-4ee5-9e6a-d954f9ca89a3"
+ "fa0149e3-6d4e-419d-8b9a-37a8a5da40a6"
],
"x-ms-routing-request-id": [
- "UAECENTRAL:20200911T175311Z:f40d4398-61d8-4ee5-9e6a-d954f9ca89a3"
+ "WESTUS2:20210719T215253Z:fa0149e3-6d4e-419d-8b9a-37a8a5da40a6"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -51,10 +51,10 @@
"nosniff"
],
"Date": [
- "Fri, 11 Sep 2020 17:53:11 GMT"
+ "Mon, 19 Jul 2021 21:52:52 GMT"
],
"Content-Length": [
- "172"
+ "168"
],
"Content-Type": [
"application/json; charset=utf-8"
@@ -63,32 +63,32 @@
"-1"
]
},
- "ResponseBody": "{\r\n \"id\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/pgsdkrg\",\r\n \"name\": \"pgsdkrg\",\r\n \"location\": \"eastus2euap\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}",
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/ac0271d6-426b-4b0d-b88d-0d0e4bd693ae/resourceGroups/pgsdkrg\",\r\n \"name\": \"pgsdkrg\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}",
"StatusCode": 201
},
{
- "RequestUri": "/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/pgsdkrg/providers/Microsoft.DBForPostgreSql/flexibleServers/pgsdkflexserver?api-version=2020-02-14-privatepreview",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvN2ZlYzMxMDktNWI3OC00YTI0LWI4MzQtNWQ0N2Q2M2UyNTk2L3Jlc291cmNlR3JvdXBzL3Bnc2RrcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5EQkZvclBvc3RncmVTcWwvZmxleGlibGVTZXJ2ZXJzL3Bnc2RrZmxleHNlcnZlcj9hcGktdmVyc2lvbj0yMDIwLTAyLTE0LXByaXZhdGVwcmV2aWV3",
+ "RequestUri": "/subscriptions/ac0271d6-426b-4b0d-b88d-0d0e4bd693ae/resourceGroups/pgsdkrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgsdkflexserver?api-version=2021-06-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWMwMjcxZDYtNDI2Yi00YjBkLWI4OGQtMGQwZTRiZDY5M2FlL3Jlc291cmNlR3JvdXBzL3Bnc2RrcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5EQmZvclBvc3RncmVTUUwvZmxleGlibGVTZXJ2ZXJzL3Bnc2RrZmxleHNlcnZlcj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx",
"RequestMethod": "PUT",
- "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_D4s_v3\",\r\n \"tier\": \"GeneralPurpose\"\r\n },\r\n \"properties\": {\r\n \"administratorLogin\": \"testUser\",\r\n \"administratorLoginPassword\": \"testPassword1!\",\r\n \"version\": \"12\",\r\n \"storageProfile\": {\r\n \"storageMB\": 524288\r\n }\r\n },\r\n \"location\": \"eastus2euap\"\r\n}",
+ "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_D4s_v3\",\r\n \"tier\": \"GeneralPurpose\"\r\n },\r\n \"properties\": {\r\n \"administratorLogin\": \"testUser\",\r\n \"administratorLoginPassword\": \"testPassword1!\",\r\n \"version\": \"12\",\r\n \"storage\": {\r\n \"storageSizeGB\": 128\r\n },\r\n \"network\": {}\r\n },\r\n \"location\": \"eastus2\"\r\n}",
"RequestHeaders": {
"x-ms-client-request-id": [
- "7df19bf3-61bc-4986-8961-a0bb8f8f9e40"
+ "49e5df3b-28a1-464c-a809-e27d17e26a55"
],
"Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.6.29130.01",
+ "FxVersion/4.6.30015.01",
"OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.20211.",
+ "OSVersion/Microsoft.Windows.10.0.19043.",
"Microsoft.Azure.Management.PostgreSQL.FlexibleServers.PostgreSQLManagementClient/0.9.5"
],
"Content-Type": [
"application/json; charset=utf-8"
],
"Content-Length": [
- "311"
+ "321"
]
},
"ResponseHeaders": {
@@ -99,19 +99,19 @@
"no-cache"
],
"Location": [
- "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/operationResults/aecc4130-810a-42d5-91bb-46e1f3899b24?api-version=2020-02-14-privatepreview"
+ "https://management.azure.com/subscriptions/ac0271d6-426b-4b0d-b88d-0d0e4bd693ae/providers/Microsoft.DBforPostgreSQL/locations/eastus2/operationResults/f7358dec-3be8-4bf3-bb16-c6de285fa06b?api-version=2021-06-01"
],
"Retry-After": [
"60"
],
"Azure-AsyncOperation": [
- "https://management.azure.com/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/aecc4130-810a-42d5-91bb-46e1f3899b24?api-version=2020-02-14-privatepreview"
+ "https://management.azure.com/subscriptions/ac0271d6-426b-4b0d-b88d-0d0e4bd693ae/providers/Microsoft.DBforPostgreSQL/locations/eastus2/azureAsyncOperation/f7358dec-3be8-4bf3-bb16-c6de285fa06b?api-version=2021-06-01"
],
"X-Content-Type-Options": [
"nosniff"
],
"x-ms-request-id": [
- "aecc4130-810a-42d5-91bb-46e1f3899b24"
+ "f080bcbc-3ef3-4b3e-901c-587c2ff4f49c"
],
"Server": [
"Microsoft-HTTPAPI/2.0"
@@ -120,19 +120,19 @@
"1199"
],
"x-ms-correlation-request-id": [
- "3a16e4ad-2059-46b7-924a-3794b5e6cb32"
+ "c6917d71-e50c-4dba-bc03-70e22d3ae1e1"
],
"x-ms-routing-request-id": [
- "UAECENTRAL:20200911T175323Z:3a16e4ad-2059-46b7-924a-3794b5e6cb32"
+ "WESTUS2:20210719T215256Z:c6917d71-e50c-4dba-bc03-70e22d3ae1e1"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"Date": [
- "Fri, 11 Sep 2020 17:53:23 GMT"
+ "Mon, 19 Jul 2021 21:52:55 GMT"
],
"Content-Length": [
- "88"
+ "87"
],
"Content-Type": [
"application/json; charset=utf-8"
@@ -141,19 +141,19 @@
"-1"
]
},
- "ResponseBody": "{\r\n \"operation\": \"UpsertServerManagementOperationV2\",\r\n \"startTime\": \"2020-09-11T17:53:23.697Z\"\r\n}",
+ "ResponseBody": "{\r\n \"operation\": \"UpsertServerManagementOperationV2\",\r\n \"startTime\": \"2021-07-19T21:52:55.96Z\"\r\n}",
"StatusCode": 202
},
{
- "RequestUri": "/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/aecc4130-810a-42d5-91bb-46e1f3899b24?api-version=2020-02-14-privatepreview",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvN2ZlYzMxMDktNWI3OC00YTI0LWI4MzQtNWQ0N2Q2M2UyNTk2L3Byb3ZpZGVycy9NaWNyb3NvZnQuREJmb3JQb3N0Z3JlU1FML2xvY2F0aW9ucy9lYXN0dXMyZXVhcC9henVyZUFzeW5jT3BlcmF0aW9uL2FlY2M0MTMwLTgxMGEtNDJkNS05MWJiLTQ2ZTFmMzg5OWIyND9hcGktdmVyc2lvbj0yMDIwLTAyLTE0LXByaXZhdGVwcmV2aWV3",
+ "RequestUri": "/subscriptions/ac0271d6-426b-4b0d-b88d-0d0e4bd693ae/providers/Microsoft.DBforPostgreSQL/locations/eastus2/azureAsyncOperation/f7358dec-3be8-4bf3-bb16-c6de285fa06b?api-version=2021-06-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWMwMjcxZDYtNDI2Yi00YjBkLWI4OGQtMGQwZTRiZDY5M2FlL3Byb3ZpZGVycy9NaWNyb3NvZnQuREJmb3JQb3N0Z3JlU1FML2xvY2F0aW9ucy9lYXN0dXMyL2F6dXJlQXN5bmNPcGVyYXRpb24vZjczNThkZWMtM2JlOC00YmYzLWJiMTYtYzZkZTI4NWZhMDZiP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
"User-Agent": [
- "FxVersion/4.6.29130.01",
+ "FxVersion/4.6.30015.01",
"OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.20211.",
+ "OSVersion/Microsoft.Windows.10.0.19043.",
"Microsoft.Azure.Management.PostgreSQL.FlexibleServers.PostgreSQLManagementClient/0.9.5"
]
},
@@ -171,7 +171,7 @@
"nosniff"
],
"x-ms-request-id": [
- "e25e7b3c-009b-48a0-9ff9-b833a274b962"
+ "287da9f6-7c7f-4580-8f9a-81e7ea740e6d"
],
"Server": [
"Microsoft-HTTPAPI/2.0"
@@ -180,19 +180,19 @@
"11999"
],
"x-ms-correlation-request-id": [
- "17b5d9f3-afd2-4b85-a95f-b59ab5188ca0"
+ "df2d4a2e-9fda-4a1f-9443-9a7435f05cee"
],
"x-ms-routing-request-id": [
- "UAECENTRAL:20200911T175424Z:17b5d9f3-afd2-4b85-a95f-b59ab5188ca0"
+ "WESTUS2:20210719T215356Z:df2d4a2e-9fda-4a1f-9443-9a7435f05cee"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"Date": [
- "Fri, 11 Sep 2020 17:54:24 GMT"
+ "Mon, 19 Jul 2021 21:53:56 GMT"
],
"Content-Length": [
- "108"
+ "107"
],
"Content-Type": [
"application/json; charset=utf-8"
@@ -201,19 +201,19 @@
"-1"
]
},
- "ResponseBody": "{\r\n \"name\": \"aecc4130-810a-42d5-91bb-46e1f3899b24\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-11T17:53:23.697Z\"\r\n}",
+ "ResponseBody": "{\r\n \"name\": \"f7358dec-3be8-4bf3-bb16-c6de285fa06b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-07-19T21:52:55.96Z\"\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/aecc4130-810a-42d5-91bb-46e1f3899b24?api-version=2020-02-14-privatepreview",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvN2ZlYzMxMDktNWI3OC00YTI0LWI4MzQtNWQ0N2Q2M2UyNTk2L3Byb3ZpZGVycy9NaWNyb3NvZnQuREJmb3JQb3N0Z3JlU1FML2xvY2F0aW9ucy9lYXN0dXMyZXVhcC9henVyZUFzeW5jT3BlcmF0aW9uL2FlY2M0MTMwLTgxMGEtNDJkNS05MWJiLTQ2ZTFmMzg5OWIyND9hcGktdmVyc2lvbj0yMDIwLTAyLTE0LXByaXZhdGVwcmV2aWV3",
+ "RequestUri": "/subscriptions/ac0271d6-426b-4b0d-b88d-0d0e4bd693ae/providers/Microsoft.DBforPostgreSQL/locations/eastus2/azureAsyncOperation/f7358dec-3be8-4bf3-bb16-c6de285fa06b?api-version=2021-06-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWMwMjcxZDYtNDI2Yi00YjBkLWI4OGQtMGQwZTRiZDY5M2FlL3Byb3ZpZGVycy9NaWNyb3NvZnQuREJmb3JQb3N0Z3JlU1FML2xvY2F0aW9ucy9lYXN0dXMyL2F6dXJlQXN5bmNPcGVyYXRpb24vZjczNThkZWMtM2JlOC00YmYzLWJiMTYtYzZkZTI4NWZhMDZiP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
"User-Agent": [
- "FxVersion/4.6.29130.01",
+ "FxVersion/4.6.30015.01",
"OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.20211.",
+ "OSVersion/Microsoft.Windows.10.0.19043.",
"Microsoft.Azure.Management.PostgreSQL.FlexibleServers.PostgreSQLManagementClient/0.9.5"
]
},
@@ -231,7 +231,7 @@
"nosniff"
],
"x-ms-request-id": [
- "94faa352-79ec-4795-b91f-ea49d3529c34"
+ "96fd70be-4f93-4050-8dda-1c5cbfecf01c"
],
"Server": [
"Microsoft-HTTPAPI/2.0"
@@ -240,19 +240,19 @@
"11998"
],
"x-ms-correlation-request-id": [
- "222cf07f-f004-4835-ad3b-6cc1f46a50b5"
+ "622b5ebe-ff53-4c93-898c-63249603cbb5"
],
"x-ms-routing-request-id": [
- "UAECENTRAL:20200911T175526Z:222cf07f-f004-4835-ad3b-6cc1f46a50b5"
+ "WESTUS2:20210719T215457Z:622b5ebe-ff53-4c93-898c-63249603cbb5"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"Date": [
- "Fri, 11 Sep 2020 17:55:25 GMT"
+ "Mon, 19 Jul 2021 21:54:56 GMT"
],
"Content-Length": [
- "108"
+ "107"
],
"Content-Type": [
"application/json; charset=utf-8"
@@ -261,19 +261,19 @@
"-1"
]
},
- "ResponseBody": "{\r\n \"name\": \"aecc4130-810a-42d5-91bb-46e1f3899b24\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-11T17:53:23.697Z\"\r\n}",
+ "ResponseBody": "{\r\n \"name\": \"f7358dec-3be8-4bf3-bb16-c6de285fa06b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-07-19T21:52:55.96Z\"\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/aecc4130-810a-42d5-91bb-46e1f3899b24?api-version=2020-02-14-privatepreview",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvN2ZlYzMxMDktNWI3OC00YTI0LWI4MzQtNWQ0N2Q2M2UyNTk2L3Byb3ZpZGVycy9NaWNyb3NvZnQuREJmb3JQb3N0Z3JlU1FML2xvY2F0aW9ucy9lYXN0dXMyZXVhcC9henVyZUFzeW5jT3BlcmF0aW9uL2FlY2M0MTMwLTgxMGEtNDJkNS05MWJiLTQ2ZTFmMzg5OWIyND9hcGktdmVyc2lvbj0yMDIwLTAyLTE0LXByaXZhdGVwcmV2aWV3",
+ "RequestUri": "/subscriptions/ac0271d6-426b-4b0d-b88d-0d0e4bd693ae/providers/Microsoft.DBforPostgreSQL/locations/eastus2/azureAsyncOperation/f7358dec-3be8-4bf3-bb16-c6de285fa06b?api-version=2021-06-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWMwMjcxZDYtNDI2Yi00YjBkLWI4OGQtMGQwZTRiZDY5M2FlL3Byb3ZpZGVycy9NaWNyb3NvZnQuREJmb3JQb3N0Z3JlU1FML2xvY2F0aW9ucy9lYXN0dXMyL2F6dXJlQXN5bmNPcGVyYXRpb24vZjczNThkZWMtM2JlOC00YmYzLWJiMTYtYzZkZTI4NWZhMDZiP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
"User-Agent": [
- "FxVersion/4.6.29130.01",
+ "FxVersion/4.6.30015.01",
"OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.20211.",
+ "OSVersion/Microsoft.Windows.10.0.19043.",
"Microsoft.Azure.Management.PostgreSQL.FlexibleServers.PostgreSQLManagementClient/0.9.5"
]
},
@@ -291,7 +291,7 @@
"nosniff"
],
"x-ms-request-id": [
- "5e6644bb-bb7d-451f-9c74-6a0d3193a14c"
+ "480a191d-480a-45d4-9cfa-b9f0280a495a"
],
"Server": [
"Microsoft-HTTPAPI/2.0"
@@ -300,19 +300,19 @@
"11997"
],
"x-ms-correlation-request-id": [
- "5b17db16-b527-4b6a-a2dc-cae1280e19d3"
+ "3aa36c16-c109-4bd6-8771-6019d2914687"
],
"x-ms-routing-request-id": [
- "UAECENTRAL:20200911T175627Z:5b17db16-b527-4b6a-a2dc-cae1280e19d3"
+ "WESTUS2:20210719T215557Z:3aa36c16-c109-4bd6-8771-6019d2914687"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"Date": [
- "Fri, 11 Sep 2020 17:56:26 GMT"
+ "Mon, 19 Jul 2021 21:55:57 GMT"
],
"Content-Length": [
- "108"
+ "107"
],
"Content-Type": [
"application/json; charset=utf-8"
@@ -321,19 +321,19 @@
"-1"
]
},
- "ResponseBody": "{\r\n \"name\": \"aecc4130-810a-42d5-91bb-46e1f3899b24\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-09-11T17:53:23.697Z\"\r\n}",
+ "ResponseBody": "{\r\n \"name\": \"f7358dec-3be8-4bf3-bb16-c6de285fa06b\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-07-19T21:52:55.96Z\"\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/providers/Microsoft.DBforPostgreSQL/locations/eastus2euap/azureAsyncOperation/aecc4130-810a-42d5-91bb-46e1f3899b24?api-version=2020-02-14-privatepreview",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvN2ZlYzMxMDktNWI3OC00YTI0LWI4MzQtNWQ0N2Q2M2UyNTk2L3Byb3ZpZGVycy9NaWNyb3NvZnQuREJmb3JQb3N0Z3JlU1FML2xvY2F0aW9ucy9lYXN0dXMyZXVhcC9henVyZUFzeW5jT3BlcmF0aW9uL2FlY2M0MTMwLTgxMGEtNDJkNS05MWJiLTQ2ZTFmMzg5OWIyND9hcGktdmVyc2lvbj0yMDIwLTAyLTE0LXByaXZhdGVwcmV2aWV3",
+ "RequestUri": "/subscriptions/ac0271d6-426b-4b0d-b88d-0d0e4bd693ae/providers/Microsoft.DBforPostgreSQL/locations/eastus2/azureAsyncOperation/f7358dec-3be8-4bf3-bb16-c6de285fa06b?api-version=2021-06-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWMwMjcxZDYtNDI2Yi00YjBkLWI4OGQtMGQwZTRiZDY5M2FlL3Byb3ZpZGVycy9NaWNyb3NvZnQuREJmb3JQb3N0Z3JlU1FML2xvY2F0aW9ucy9lYXN0dXMyL2F6dXJlQXN5bmNPcGVyYXRpb24vZjczNThkZWMtM2JlOC00YmYzLWJiMTYtYzZkZTI4NWZhMDZiP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
"User-Agent": [
- "FxVersion/4.6.29130.01",
+ "FxVersion/4.6.30015.01",
"OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.20211.",
+ "OSVersion/Microsoft.Windows.10.0.19043.",
"Microsoft.Azure.Management.PostgreSQL.FlexibleServers.PostgreSQLManagementClient/0.9.5"
]
},
@@ -351,7 +351,7 @@
"nosniff"
],
"x-ms-request-id": [
- "f1ef0941-b974-4c32-9fed-1d8845032209"
+ "d5982a02-9a22-40d1-be2b-42ec25d63e5f"
],
"Server": [
"Microsoft-HTTPAPI/2.0"
@@ -360,19 +360,19 @@
"11996"
],
"x-ms-correlation-request-id": [
- "f3b11bb9-832b-447c-9caf-cc58d8efb0e5"
+ "bb1c1c56-c669-463d-97fb-f387405ac408"
],
"x-ms-routing-request-id": [
- "UAECENTRAL:20200911T175728Z:f3b11bb9-832b-447c-9caf-cc58d8efb0e5"
+ "WESTUS2:20210719T215657Z:bb1c1c56-c669-463d-97fb-f387405ac408"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"Date": [
- "Fri, 11 Sep 2020 17:57:27 GMT"
+ "Mon, 19 Jul 2021 21:56:56 GMT"
],
"Content-Length": [
- "107"
+ "106"
],
"Content-Type": [
"application/json; charset=utf-8"
@@ -381,19 +381,19 @@
"-1"
]
},
- "ResponseBody": "{\r\n \"name\": \"aecc4130-810a-42d5-91bb-46e1f3899b24\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-09-11T17:53:23.697Z\"\r\n}",
+ "ResponseBody": "{\r\n \"name\": \"f7358dec-3be8-4bf3-bb16-c6de285fa06b\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2021-07-19T21:52:55.96Z\"\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/pgsdkrg/providers/Microsoft.DBForPostgreSql/flexibleServers/pgsdkflexserver?api-version=2020-02-14-privatepreview",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvN2ZlYzMxMDktNWI3OC00YTI0LWI4MzQtNWQ0N2Q2M2UyNTk2L3Jlc291cmNlR3JvdXBzL3Bnc2RrcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5EQkZvclBvc3RncmVTcWwvZmxleGlibGVTZXJ2ZXJzL3Bnc2RrZmxleHNlcnZlcj9hcGktdmVyc2lvbj0yMDIwLTAyLTE0LXByaXZhdGVwcmV2aWV3",
+ "RequestUri": "/subscriptions/ac0271d6-426b-4b0d-b88d-0d0e4bd693ae/resourceGroups/pgsdkrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgsdkflexserver?api-version=2021-06-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWMwMjcxZDYtNDI2Yi00YjBkLWI4OGQtMGQwZTRiZDY5M2FlL3Jlc291cmNlR3JvdXBzL3Bnc2RrcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5EQmZvclBvc3RncmVTUUwvZmxleGlibGVTZXJ2ZXJzL3Bnc2RrZmxleHNlcnZlcj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
"User-Agent": [
- "FxVersion/4.6.29130.01",
+ "FxVersion/4.6.30015.01",
"OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.20211.",
+ "OSVersion/Microsoft.Windows.10.0.19043.",
"Microsoft.Azure.Management.PostgreSQL.FlexibleServers.PostgreSQLManagementClient/0.9.5"
]
},
@@ -408,7 +408,7 @@
"nosniff"
],
"x-ms-request-id": [
- "f6781ea0-57f9-4682-bbbd-42d010d699ff"
+ "39808800-1c96-4ed2-a0fe-ff55cf06d4f7"
],
"Server": [
"Microsoft-HTTPAPI/2.0"
@@ -417,19 +417,19 @@
"11995"
],
"x-ms-correlation-request-id": [
- "f83cd61e-7203-4d46-8bba-d901244a6238"
+ "6c7da4bb-c028-4a7f-bc23-1c17e39afb20"
],
"x-ms-routing-request-id": [
- "UAECENTRAL:20200911T175728Z:f83cd61e-7203-4d46-8bba-d901244a6238"
+ "WESTUS2:20210719T215658Z:6c7da4bb-c028-4a7f-bc23-1c17e39afb20"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"Date": [
- "Fri, 11 Sep 2020 17:57:28 GMT"
+ "Mon, 19 Jul 2021 21:56:58 GMT"
],
"Content-Length": [
- "873"
+ "853"
],
"Content-Type": [
"application/json; charset=utf-8"
@@ -438,25 +438,25 @@
"-1"
]
},
- "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_D4s_v3\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"capacity\": 4\r\n },\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"pgsdkflexserver.postgres.database.azure.com\",\r\n \"version\": \"12\",\r\n \"standbyCount\": 0,\r\n \"haEnabled\": \"Disabled\",\r\n \"administratorLogin\": \"testUser\",\r\n \"publicNetworkAccess\": \"Disabled\",\r\n \"logBackupStorageSku\": \"Standard_ZRS\",\r\n \"haState\": \"NotEnabled\",\r\n \"state\": \"Ready\",\r\n \"availabilityZone\": \"1\",\r\n \"storageProfile\": {\r\n \"storageMB\": 524288,\r\n \"backupRetentionDays\": 7\r\n },\r\n \"earliestRestoreDate\": \"2020-09-11T20:57:28.7724491+03:00\",\r\n \"byokEnforcement\": \"Disabled\",\r\n \"maintenanceWindow\": {\r\n \"customWindow\": \"Disabled\",\r\n \"dayOfWeek\": 0,\r\n \"startHour\": 0,\r\n \"startMinute\": 0\r\n }\r\n },\r\n \"location\": \"East US 2 EUAP\",\r\n \"id\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/pgsdkrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgsdkflexserver\",\r\n \"name\": \"pgsdkflexserver\",\r\n \"type\": \"Microsoft.DBforPostgreSQL/flexibleServers\"\r\n}",
+ "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_D4s_v3\",\r\n \"tier\": \"GeneralPurpose\"\r\n },\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"pgsdkflexserver.postgres.database.azure.com\",\r\n \"version\": \"12\",\r\n \"minorVersion\": \"7\",\r\n \"administratorLogin\": \"testUser\",\r\n \"state\": \"Ready\",\r\n \"availabilityZone\": \"1\",\r\n \"storage\": {\r\n \"storageSizeGB\": 128\r\n },\r\n \"backup\": {\r\n \"backupRetentionDays\": 7,\r\n \"geoRedundantBackup\": \"Disabled\",\r\n \"earliestRestoreDate\": \"2021-07-19T14:56:58.0965337-07:00\"\r\n },\r\n \"network\": {\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"highAvailability\": {\r\n \"mode\": \"Disabled\",\r\n \"state\": \"NotEnabled\"\r\n },\r\n \"maintenanceWindow\": {\r\n \"customWindow\": \"Disabled\",\r\n \"dayOfWeek\": 0,\r\n \"startHour\": 0,\r\n \"startMinute\": 0\r\n }\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/ac0271d6-426b-4b0d-b88d-0d0e4bd693ae/resourceGroups/pgsdkrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgsdkflexserver\",\r\n \"name\": \"pgsdkflexserver\",\r\n \"type\": \"Microsoft.DBforPostgreSQL/flexibleServers\"\r\n}",
"StatusCode": 200
},
{
- "RequestUri": "/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/pgsdkrg/providers/Microsoft.DBForPostgreSql/flexibleServers/pgsdkflexserver?api-version=2020-02-14-privatepreview",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvN2ZlYzMxMDktNWI3OC00YTI0LWI4MzQtNWQ0N2Q2M2UyNTk2L3Jlc291cmNlR3JvdXBzL3Bnc2RrcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5EQkZvclBvc3RncmVTcWwvZmxleGlibGVTZXJ2ZXJzL3Bnc2RrZmxleHNlcnZlcj9hcGktdmVyc2lvbj0yMDIwLTAyLTE0LXByaXZhdGVwcmV2aWV3",
+ "RequestUri": "/subscriptions/ac0271d6-426b-4b0d-b88d-0d0e4bd693ae/resourceGroups/pgsdkrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgsdkflexserver?api-version=2021-06-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWMwMjcxZDYtNDI2Yi00YjBkLWI4OGQtMGQwZTRiZDY5M2FlL3Jlc291cmNlR3JvdXBzL3Bnc2RrcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5EQmZvclBvc3RncmVTUUwvZmxleGlibGVTZXJ2ZXJzL3Bnc2RrZmxleHNlcnZlcj9hcGktdmVyc2lvbj0yMDIxLTA2LTAx",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
"x-ms-client-request-id": [
- "b2e61b98-293b-486e-96f9-60dc438ef64d"
+ "a00dee41-68db-4eda-a3d8-247955c5cdec"
],
"Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.6.29130.01",
+ "FxVersion/4.6.30015.01",
"OSName/Windows",
- "OSVersion/Microsoft.Windows.10.0.20211.",
+ "OSVersion/Microsoft.Windows.10.0.19043.",
"Microsoft.Azure.Management.PostgreSQL.FlexibleServers.PostgreSQLManagementClient/0.9.5"
]
},
@@ -471,7 +471,7 @@
"nosniff"
],
"x-ms-request-id": [
- "a218ba71-80bc-4402-91e4-a6869eaf1c63"
+ "a0847ca8-2164-48b8-89c0-444acd3d29ea"
],
"Server": [
"Microsoft-HTTPAPI/2.0"
@@ -480,19 +480,19 @@
"11994"
],
"x-ms-correlation-request-id": [
- "e242091e-21b8-44cf-b280-3b1ada937ea6"
+ "6c9ad0ee-3004-4487-9189-d542547e9e5e"
],
"x-ms-routing-request-id": [
- "UAECENTRAL:20200911T175729Z:e242091e-21b8-44cf-b280-3b1ada937ea6"
+ "WESTUS2:20210719T215658Z:6c9ad0ee-3004-4487-9189-d542547e9e5e"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"Date": [
- "Fri, 11 Sep 2020 17:57:29 GMT"
+ "Mon, 19 Jul 2021 21:56:58 GMT"
],
"Content-Length": [
- "873"
+ "853"
],
"Content-Type": [
"application/json; charset=utf-8"
@@ -501,12 +501,12 @@
"-1"
]
},
- "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_D4s_v3\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"capacity\": 4\r\n },\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"pgsdkflexserver.postgres.database.azure.com\",\r\n \"version\": \"12\",\r\n \"standbyCount\": 0,\r\n \"haEnabled\": \"Disabled\",\r\n \"administratorLogin\": \"testUser\",\r\n \"publicNetworkAccess\": \"Disabled\",\r\n \"logBackupStorageSku\": \"Standard_ZRS\",\r\n \"haState\": \"NotEnabled\",\r\n \"state\": \"Ready\",\r\n \"availabilityZone\": \"1\",\r\n \"storageProfile\": {\r\n \"storageMB\": 524288,\r\n \"backupRetentionDays\": 7\r\n },\r\n \"earliestRestoreDate\": \"2020-09-11T20:57:29.3974828+03:00\",\r\n \"byokEnforcement\": \"Disabled\",\r\n \"maintenanceWindow\": {\r\n \"customWindow\": \"Disabled\",\r\n \"dayOfWeek\": 0,\r\n \"startHour\": 0,\r\n \"startMinute\": 0\r\n }\r\n },\r\n \"location\": \"East US 2 EUAP\",\r\n \"id\": \"/subscriptions/7fec3109-5b78-4a24-b834-5d47d63e2596/resourceGroups/pgsdkrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgsdkflexserver\",\r\n \"name\": \"pgsdkflexserver\",\r\n \"type\": \"Microsoft.DBforPostgreSQL/flexibleServers\"\r\n}",
+ "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_D4s_v3\",\r\n \"tier\": \"GeneralPurpose\"\r\n },\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"pgsdkflexserver.postgres.database.azure.com\",\r\n \"version\": \"12\",\r\n \"minorVersion\": \"7\",\r\n \"administratorLogin\": \"testUser\",\r\n \"state\": \"Ready\",\r\n \"availabilityZone\": \"1\",\r\n \"storage\": {\r\n \"storageSizeGB\": 128\r\n },\r\n \"backup\": {\r\n \"backupRetentionDays\": 7,\r\n \"geoRedundantBackup\": \"Disabled\",\r\n \"earliestRestoreDate\": \"2021-07-19T14:56:58.3308645-07:00\"\r\n },\r\n \"network\": {\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"highAvailability\": {\r\n \"mode\": \"Disabled\",\r\n \"state\": \"NotEnabled\"\r\n },\r\n \"maintenanceWindow\": {\r\n \"customWindow\": \"Disabled\",\r\n \"dayOfWeek\": 0,\r\n \"startHour\": 0,\r\n \"startMinute\": 0\r\n }\r\n },\r\n \"location\": \"East US 2\",\r\n \"id\": \"/subscriptions/ac0271d6-426b-4b0d-b88d-0d0e4bd693ae/resourceGroups/pgsdkrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/pgsdkflexserver\",\r\n \"name\": \"pgsdkflexserver\",\r\n \"type\": \"Microsoft.DBforPostgreSQL/flexibleServers\"\r\n}",
"StatusCode": 200
}
],
"Names": {},
"Variables": {
- "SubscriptionId": "7fec3109-5b78-4a24-b834-5d47d63e2596"
+ "SubscriptionId": "ac0271d6-426b-4b0d-b88d-0d0e4bd693ae"
}
}
\ No newline at end of file