diff --git a/src/SDKs/DevSpaces/AzSdk.RP.props b/src/SDKs/DevSpaces/AzSdk.RP.props
index 94688a1867d84..5f41a3f9ca964 100644
--- a/src/SDKs/DevSpaces/AzSdk.RP.props
+++ b/src/SDKs/DevSpaces/AzSdk.RP.props
@@ -1,7 +1,7 @@
- DevSpaces_2019-01-01-preview;
+ DevSpaces_2019-04-01;
$(PackageTags);$(CommonTags);$(AzureApiTag);
\ No newline at end of file
diff --git a/src/SDKs/DevSpaces/Management.DevSpaces/Generated/ContainerHostMappingsOperations.cs b/src/SDKs/DevSpaces/Management.DevSpaces/Generated/ContainerHostMappingsOperations.cs
index 51f455da16eba..8aecea7221387 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
///
///
@@ -84,7 +84,7 @@ internal ContainerHostMappingsOperations(DevSpacesManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> GetContainerHostMappingWithHttpMessagesAsync(string resourceGroupName, string location, string containerHostResourceId = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> GetContainerHostMappingWithHttpMessagesAsync(string resourceGroupName, string location, string containerHostResourceId = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (Client.ApiVersion == null)
{
@@ -206,16 +206,15 @@ internal ContainerHostMappingsOperations(DevSpacesManagementClient client)
HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
- if ((int)_statusCode != 200)
+ if ((int)_statusCode != 200 && (int)_statusCode != 204)
{
- var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ var ex = new ErrorResponseException(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);
+ ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
if (_errorBody != null)
{
- ex = new CloudException(_errorBody.Message);
ex.Body = _errorBody;
}
}
@@ -225,10 +224,6 @@ internal ContainerHostMappingsOperations(DevSpacesManagementClient client)
}
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);
@@ -241,7 +236,7 @@ internal ContainerHostMappingsOperations(DevSpacesManagementClient client)
throw ex;
}
// Create Result
- var _result = new AzureOperationResponse