diff --git a/src/SDKs/DevSpaces/Management.DevSpaces/Generated/ContainerHostMappingsOperations.cs b/src/SDKs/DevSpaces/Management.DevSpaces/Generated/ContainerHostMappingsOperations.cs
index 8aecea722138..d433f77316da 100644
--- a/src/SDKs/DevSpaces/Management.DevSpaces/Generated/ContainerHostMappingsOperations.cs
+++ b/src/SDKs/DevSpaces/Management.DevSpaces/Generated/ContainerHostMappingsOperations.cs
@@ -69,7 +69,7 @@ internal ContainerHostMappingsOperations(DevSpacesManagementClient client)
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -208,11 +208,11 @@ internal ContainerHostMappingsOperations(DevSpacesManagementClient client)
string _responseContent = null;
if ((int)_statusCode != 200 && (int)_statusCode != 204)
{
- var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ var ex = new DevSpacesErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ DevSpacesErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
if (_errorBody != null)
{
ex.Body = _errorBody;
diff --git a/src/SDKs/DevSpaces/Management.DevSpaces/Generated/ControllersOperations.cs b/src/SDKs/DevSpaces/Management.DevSpaces/Generated/ControllersOperations.cs
index 200613697a12..b7108534928c 100644
--- a/src/SDKs/DevSpaces/Management.DevSpaces/Generated/ControllersOperations.cs
+++ b/src/SDKs/DevSpaces/Management.DevSpaces/Generated/ControllersOperations.cs
@@ -68,7 +68,7 @@ internal ControllersOperations(DevSpacesManagementClient client)
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -114,17 +114,17 @@ internal ControllersOperations(DevSpacesManagementClient client)
}
if (name != null)
{
- if (name.Length > 31)
+ if (name.Length > 63)
{
- throw new ValidationException(ValidationRules.MaxLength, "name", 31);
+ throw new ValidationException(ValidationRules.MaxLength, "name", 63);
}
- if (name.Length < 3)
+ if (name.Length < 1)
{
- throw new ValidationException(ValidationRules.MinLength, "name", 3);
+ throw new ValidationException(ValidationRules.MinLength, "name", 1);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(name, "^[a-zA-Z0-9](-?[a-zA-Z0-9])*$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(name, "^[a-zA-Z0-9]([_-]*[a-zA-Z0-9])*$"))
{
- throw new ValidationException(ValidationRules.Pattern, "name", "^[a-zA-Z0-9](-?[a-zA-Z0-9])*$");
+ throw new ValidationException(ValidationRules.Pattern, "name", "^[a-zA-Z0-9]([_-]*[a-zA-Z0-9])*$");
}
}
// Tracing
@@ -210,11 +210,11 @@ internal ControllersOperations(DevSpacesManagementClient client)
string _responseContent = null;
if ((int)_statusCode != 200)
{
- var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ var ex = new DevSpacesErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ DevSpacesErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
if (_errorBody != null)
{
ex.Body = _errorBody;
@@ -340,13 +340,16 @@ internal ControllersOperations(DevSpacesManagementClient client)
///
/// Tags for the Azure Dev Spaces Controller.
///
+ ///
+ /// Credentials of the target container host (base64).
+ ///
///
/// Headers that will be added to request.
///
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -361,7 +364,7 @@ internal ControllersOperations(DevSpacesManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string name, IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string name, IDictionary tags = default(IDictionary), string targetContainerHostCredentialsBase64 = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (Client.ApiVersion == null)
{
@@ -392,23 +395,24 @@ internal ControllersOperations(DevSpacesManagementClient client)
}
if (name != null)
{
- if (name.Length > 31)
+ if (name.Length > 63)
{
- throw new ValidationException(ValidationRules.MaxLength, "name", 31);
+ throw new ValidationException(ValidationRules.MaxLength, "name", 63);
}
- if (name.Length < 3)
+ if (name.Length < 1)
{
- throw new ValidationException(ValidationRules.MinLength, "name", 3);
+ throw new ValidationException(ValidationRules.MinLength, "name", 1);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(name, "^[a-zA-Z0-9](-?[a-zA-Z0-9])*$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(name, "^[a-zA-Z0-9]([_-]*[a-zA-Z0-9])*$"))
{
- throw new ValidationException(ValidationRules.Pattern, "name", "^[a-zA-Z0-9](-?[a-zA-Z0-9])*$");
+ throw new ValidationException(ValidationRules.Pattern, "name", "^[a-zA-Z0-9]([_-]*[a-zA-Z0-9])*$");
}
}
ControllerUpdateParameters controllerUpdateParameters = new ControllerUpdateParameters();
- if (tags != null)
+ if (tags != null || targetContainerHostCredentialsBase64 != null)
{
controllerUpdateParameters.Tags = tags;
+ controllerUpdateParameters.TargetContainerHostCredentialsBase64 = targetContainerHostCredentialsBase64;
}
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
@@ -498,13 +502,13 @@ internal ControllersOperations(DevSpacesManagementClient client)
HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
- if ((int)_statusCode != 200)
+ if ((int)_statusCode != 200 && (int)_statusCode != 201)
{
- var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ var ex = new DevSpacesErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ DevSpacesErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
if (_errorBody != null)
{
ex.Body = _errorBody;
@@ -553,6 +557,24 @@ internal ControllersOperations(DevSpacesManagementClient client)
throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
}
}
+ // Deserialize Response
+ if ((int)_statusCode == 201)
+ {
+ _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);
@@ -576,7 +598,7 @@ internal ControllersOperations(DevSpacesManagementClient client)
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -697,11 +719,11 @@ internal ControllersOperations(DevSpacesManagementClient client)
string _responseContent = null;
if ((int)_statusCode != 200)
{
- var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ var ex = new DevSpacesErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ DevSpacesErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
if (_errorBody != null)
{
ex.Body = _errorBody;
@@ -770,7 +792,7 @@ internal ControllersOperations(DevSpacesManagementClient client)
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -874,11 +896,11 @@ internal ControllersOperations(DevSpacesManagementClient client)
string _responseContent = null;
if ((int)_statusCode != 200)
{
- var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ var ex = new DevSpacesErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ DevSpacesErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
if (_errorBody != null)
{
ex.Body = _errorBody;
@@ -957,7 +979,7 @@ internal ControllersOperations(DevSpacesManagementClient client)
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -1003,17 +1025,17 @@ internal ControllersOperations(DevSpacesManagementClient client)
}
if (name != null)
{
- if (name.Length > 31)
+ if (name.Length > 63)
{
- throw new ValidationException(ValidationRules.MaxLength, "name", 31);
+ throw new ValidationException(ValidationRules.MaxLength, "name", 63);
}
- if (name.Length < 3)
+ if (name.Length < 1)
{
- throw new ValidationException(ValidationRules.MinLength, "name", 3);
+ throw new ValidationException(ValidationRules.MinLength, "name", 1);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(name, "^[a-zA-Z0-9](-?[a-zA-Z0-9])*$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(name, "^[a-zA-Z0-9]([_-]*[a-zA-Z0-9])*$"))
{
- throw new ValidationException(ValidationRules.Pattern, "name", "^[a-zA-Z0-9](-?[a-zA-Z0-9])*$");
+ throw new ValidationException(ValidationRules.Pattern, "name", "^[a-zA-Z0-9]([_-]*[a-zA-Z0-9])*$");
}
}
if (targetContainerHostResourceId == null)
@@ -1115,11 +1137,11 @@ internal ControllersOperations(DevSpacesManagementClient client)
string _responseContent = null;
if ((int)_statusCode != 200)
{
- var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ var ex = new DevSpacesErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ DevSpacesErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
if (_errorBody != null)
{
ex.Body = _errorBody;
@@ -1197,7 +1219,7 @@ internal ControllersOperations(DevSpacesManagementClient client)
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -1243,17 +1265,17 @@ internal ControllersOperations(DevSpacesManagementClient client)
}
if (name != null)
{
- if (name.Length > 31)
+ if (name.Length > 63)
{
- throw new ValidationException(ValidationRules.MaxLength, "name", 31);
+ throw new ValidationException(ValidationRules.MaxLength, "name", 63);
}
- if (name.Length < 3)
+ if (name.Length < 1)
{
- throw new ValidationException(ValidationRules.MinLength, "name", 3);
+ throw new ValidationException(ValidationRules.MinLength, "name", 1);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(name, "^[a-zA-Z0-9](-?[a-zA-Z0-9])*$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(name, "^[a-zA-Z0-9]([_-]*[a-zA-Z0-9])*$"))
{
- throw new ValidationException(ValidationRules.Pattern, "name", "^[a-zA-Z0-9](-?[a-zA-Z0-9])*$");
+ throw new ValidationException(ValidationRules.Pattern, "name", "^[a-zA-Z0-9]([_-]*[a-zA-Z0-9])*$");
}
}
if (controller == null)
@@ -1354,11 +1376,11 @@ internal ControllersOperations(DevSpacesManagementClient client)
string _responseContent = null;
if ((int)_statusCode != 200 && (int)_statusCode != 201)
{
- var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ var ex = new DevSpacesErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ DevSpacesErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
if (_errorBody != null)
{
ex.Body = _errorBody;
@@ -1450,7 +1472,7 @@ internal ControllersOperations(DevSpacesManagementClient client)
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -1493,17 +1515,17 @@ internal ControllersOperations(DevSpacesManagementClient client)
}
if (name != null)
{
- if (name.Length > 31)
+ if (name.Length > 63)
{
- throw new ValidationException(ValidationRules.MaxLength, "name", 31);
+ throw new ValidationException(ValidationRules.MaxLength, "name", 63);
}
- if (name.Length < 3)
+ if (name.Length < 1)
{
- throw new ValidationException(ValidationRules.MinLength, "name", 3);
+ throw new ValidationException(ValidationRules.MinLength, "name", 1);
}
- if (!System.Text.RegularExpressions.Regex.IsMatch(name, "^[a-zA-Z0-9](-?[a-zA-Z0-9])*$"))
+ if (!System.Text.RegularExpressions.Regex.IsMatch(name, "^[a-zA-Z0-9]([_-]*[a-zA-Z0-9])*$"))
{
- throw new ValidationException(ValidationRules.Pattern, "name", "^[a-zA-Z0-9](-?[a-zA-Z0-9])*$");
+ throw new ValidationException(ValidationRules.Pattern, "name", "^[a-zA-Z0-9]([_-]*[a-zA-Z0-9])*$");
}
}
// Tracing
@@ -1589,11 +1611,11 @@ internal ControllersOperations(DevSpacesManagementClient client)
string _responseContent = null;
if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204)
{
- var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ var ex = new DevSpacesErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ DevSpacesErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
if (_errorBody != null)
{
ex.Body = _errorBody;
@@ -1647,7 +1669,7 @@ internal ControllersOperations(DevSpacesManagementClient client)
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -1743,11 +1765,11 @@ internal ControllersOperations(DevSpacesManagementClient client)
string _responseContent = null;
if ((int)_statusCode != 200)
{
- var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ var ex = new DevSpacesErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ DevSpacesErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
if (_errorBody != null)
{
ex.Body = _errorBody;
@@ -1819,7 +1841,7 @@ internal ControllersOperations(DevSpacesManagementClient client)
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -1915,11 +1937,11 @@ internal ControllersOperations(DevSpacesManagementClient client)
string _responseContent = null;
if ((int)_statusCode != 200)
{
- var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ var ex = new DevSpacesErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ DevSpacesErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
if (_errorBody != null)
{
ex.Body = _errorBody;
diff --git a/src/SDKs/DevSpaces/Management.DevSpaces/Generated/ControllersOperationsExtensions.cs b/src/SDKs/DevSpaces/Management.DevSpaces/Generated/ControllersOperationsExtensions.cs
index c6ea419e26ae..5926b7a767bd 100644
--- a/src/SDKs/DevSpaces/Management.DevSpaces/Generated/ControllersOperationsExtensions.cs
+++ b/src/SDKs/DevSpaces/Management.DevSpaces/Generated/ControllersOperationsExtensions.cs
@@ -185,9 +185,12 @@ public static void Delete(this IControllersOperations operations, string resourc
///
/// Tags for the Azure Dev Spaces Controller.
///
- public static Controller Update(this IControllersOperations operations, string resourceGroupName, string name, IDictionary tags = default(IDictionary))
+ ///
+ /// Credentials of the target container host (base64).
+ ///
+ public static Controller Update(this IControllersOperations operations, string resourceGroupName, string name, IDictionary tags = default(IDictionary), string targetContainerHostCredentialsBase64 = default(string))
{
- return operations.UpdateAsync(resourceGroupName, name, tags).GetAwaiter().GetResult();
+ return operations.UpdateAsync(resourceGroupName, name, tags, targetContainerHostCredentialsBase64).GetAwaiter().GetResult();
}
///
@@ -209,12 +212,15 @@ public static void Delete(this IControllersOperations operations, string resourc
///
/// Tags for the Azure Dev Spaces Controller.
///
+ ///
+ /// Credentials of the target container host (base64).
+ ///
///
/// The cancellation token.
///
- public static async Task UpdateAsync(this IControllersOperations operations, string resourceGroupName, string name, IDictionary tags = default(IDictionary), CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task UpdateAsync(this IControllersOperations operations, string resourceGroupName, string name, IDictionary tags = default(IDictionary), string targetContainerHostCredentialsBase64 = default(string), CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, name, tags, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, name, tags, targetContainerHostCredentialsBase64, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
diff --git a/src/SDKs/DevSpaces/Management.DevSpaces/Generated/IContainerHostMappingsOperations.cs b/src/SDKs/DevSpaces/Management.DevSpaces/Generated/IContainerHostMappingsOperations.cs
index 313ddaa785e1..5409bb753b52 100644
--- a/src/SDKs/DevSpaces/Management.DevSpaces/Generated/IContainerHostMappingsOperations.cs
+++ b/src/SDKs/DevSpaces/Management.DevSpaces/Generated/IContainerHostMappingsOperations.cs
@@ -42,7 +42,7 @@ public partial interface IContainerHostMappingsOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
diff --git a/src/SDKs/DevSpaces/Management.DevSpaces/Generated/IControllersOperations.cs b/src/SDKs/DevSpaces/Management.DevSpaces/Generated/IControllersOperations.cs
index 954d943e8e02..e250c53386f6 100644
--- a/src/SDKs/DevSpaces/Management.DevSpaces/Generated/IControllersOperations.cs
+++ b/src/SDKs/DevSpaces/Management.DevSpaces/Generated/IControllersOperations.cs
@@ -41,7 +41,7 @@ public partial interface IControllersOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -73,7 +73,7 @@ public partial interface IControllersOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -101,7 +101,7 @@ public partial interface IControllersOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -124,13 +124,16 @@ public partial interface IControllersOperations
///
/// Tags for the Azure Dev Spaces Controller.
///
+ ///
+ /// Credentials of the target container host (base64).
+ ///
///
/// The headers that will be added to request.
///
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -139,7 +142,7 @@ public partial interface IControllersOperations
///
/// Thrown when a required parameter is null
///
- Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string name, IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string name, IDictionary tags = default(IDictionary), string targetContainerHostCredentialsBase64 = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Lists the Azure Dev Spaces Controllers in a resource group.
///
@@ -156,7 +159,7 @@ public partial interface IControllersOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -179,7 +182,7 @@ public partial interface IControllersOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -212,7 +215,7 @@ public partial interface IControllersOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -244,7 +247,7 @@ public partial interface IControllersOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -272,7 +275,7 @@ public partial interface IControllersOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -295,7 +298,7 @@ public partial interface IControllersOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
@@ -321,7 +324,7 @@ public partial interface IControllersOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
///
diff --git a/src/SDKs/DevSpaces/Management.DevSpaces/Generated/Models/ControllerUpdateParameters.cs b/src/SDKs/DevSpaces/Management.DevSpaces/Generated/Models/ControllerUpdateParameters.cs
index a35751348041..8a75b8735c2b 100644
--- a/src/SDKs/DevSpaces/Management.DevSpaces/Generated/Models/ControllerUpdateParameters.cs
+++ b/src/SDKs/DevSpaces/Management.DevSpaces/Generated/Models/ControllerUpdateParameters.cs
@@ -10,6 +10,8 @@
namespace Microsoft.Azure.Management.DevSpaces.Models
{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
@@ -18,6 +20,7 @@ namespace Microsoft.Azure.Management.DevSpaces.Models
///
/// Parameters for updating an Azure Dev Spaces Controller.
///
+ [Rest.Serialization.JsonTransformation]
public partial class ControllerUpdateParameters
{
///
@@ -33,9 +36,12 @@ public ControllerUpdateParameters()
///
/// Tags for the Azure Dev Spaces
/// Controller.
- public ControllerUpdateParameters(IDictionary tags = default(IDictionary))
+ /// Credentials of
+ /// the target container host (base64).
+ public ControllerUpdateParameters(IDictionary tags = default(IDictionary), string targetContainerHostCredentialsBase64 = default(string))
{
Tags = tags;
+ TargetContainerHostCredentialsBase64 = targetContainerHostCredentialsBase64;
CustomInit();
}
@@ -50,5 +56,11 @@ public ControllerUpdateParameters()
[JsonProperty(PropertyName = "tags")]
public IDictionary Tags { get; set; }
+ ///
+ /// Gets or sets credentials of the target container host (base64).
+ ///
+ [JsonProperty(PropertyName = "properties.targetContainerHostCredentialsBase64")]
+ public string TargetContainerHostCredentialsBase64 { get; set; }
+
}
}
diff --git a/src/SDKs/DevSpaces/Management.DevSpaces/Generated/Models/ErrorResponse.cs b/src/SDKs/DevSpaces/Management.DevSpaces/Generated/Models/DevSpacesErrorResponse.cs
similarity index 80%
rename from src/SDKs/DevSpaces/Management.DevSpaces/Generated/Models/ErrorResponse.cs
rename to src/SDKs/DevSpaces/Management.DevSpaces/Generated/Models/DevSpacesErrorResponse.cs
index 7a8c0b0e297a..6c4a359fabbc 100644
--- a/src/SDKs/DevSpaces/Management.DevSpaces/Generated/Models/ErrorResponse.cs
+++ b/src/SDKs/DevSpaces/Management.DevSpaces/Generated/Models/DevSpacesErrorResponse.cs
@@ -17,21 +17,21 @@ namespace Microsoft.Azure.Management.DevSpaces.Models
/// Error response indicates that the service is not able to process the
/// incoming request. The reason is provided in the error message.
///
- public partial class ErrorResponse
+ public partial class DevSpacesErrorResponse
{
///
- /// Initializes a new instance of the ErrorResponse class.
+ /// Initializes a new instance of the DevSpacesErrorResponse class.
///
- public ErrorResponse()
+ public DevSpacesErrorResponse()
{
CustomInit();
}
///
- /// Initializes a new instance of the ErrorResponse class.
+ /// Initializes a new instance of the DevSpacesErrorResponse class.
///
/// The details of the error.
- public ErrorResponse(ErrorDetails error = default(ErrorDetails))
+ public DevSpacesErrorResponse(ErrorDetails error = default(ErrorDetails))
{
Error = error;
CustomInit();
diff --git a/src/SDKs/DevSpaces/Management.DevSpaces/Generated/Models/ErrorResponseException.cs b/src/SDKs/DevSpaces/Management.DevSpaces/Generated/Models/DevSpacesErrorResponseException.cs
similarity index 67%
rename from src/SDKs/DevSpaces/Management.DevSpaces/Generated/Models/ErrorResponseException.cs
rename to src/SDKs/DevSpaces/Management.DevSpaces/Generated/Models/DevSpacesErrorResponseException.cs
index 195bfb295cb0..bc0ecf77e1a7 100644
--- a/src/SDKs/DevSpaces/Management.DevSpaces/Generated/Models/ErrorResponseException.cs
+++ b/src/SDKs/DevSpaces/Management.DevSpaces/Generated/Models/DevSpacesErrorResponseException.cs
@@ -13,10 +13,10 @@ namespace Microsoft.Azure.Management.DevSpaces.Models
using Microsoft.Rest;
///
- /// Exception thrown for an invalid response with ErrorResponse
+ /// Exception thrown for an invalid response with DevSpacesErrorResponse
/// information.
///
- public partial class ErrorResponseException : RestException
+ public partial class DevSpacesErrorResponseException : RestException
{
///
/// Gets information about the associated HTTP request.
@@ -31,30 +31,30 @@ public partial class ErrorResponseException : RestException
///
/// Gets or sets the body object.
///
- public ErrorResponse Body { get; set; }
+ public DevSpacesErrorResponse Body { get; set; }
///
- /// Initializes a new instance of the ErrorResponseException class.
+ /// Initializes a new instance of the DevSpacesErrorResponseException class.
///
- public ErrorResponseException()
+ public DevSpacesErrorResponseException()
{
}
///
- /// Initializes a new instance of the ErrorResponseException class.
+ /// Initializes a new instance of the DevSpacesErrorResponseException class.
///
/// The exception message.
- public ErrorResponseException(string message)
+ public DevSpacesErrorResponseException(string message)
: this(message, null)
{
}
///
- /// Initializes a new instance of the ErrorResponseException class.
+ /// Initializes a new instance of the DevSpacesErrorResponseException class.
///
/// The exception message.
/// Inner exception.
- public ErrorResponseException(string message, System.Exception innerException)
+ public DevSpacesErrorResponseException(string message, System.Exception innerException)
: base(message, innerException)
{
}