@azure-typespec/http-client-csharp-mgmt 1.0.0-alpha.20250514.2 → 1.0.0-alpha.20250515.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generator/Azure.Generator.Management.deps.json +6 -6
- package/dist/generator/Azure.Generator.Management.dll +0 -0
- package/dist/generator/Azure.Generator.Management.pdb +0 -0
- package/dist/generator/Azure.Generator.Management.xml +3 -0
- package/dist/generator/Azure.Generator.dll +0 -0
- package/dist/generator/Shared/Core/NoValueResponseOfT.cs +39 -0
- package/dist/generator/net8.0/Azure.Generator.Management.deps.json +6 -6
- package/dist/generator/net8.0/Azure.Generator.Management.dll +0 -0
- package/dist/generator/net8.0/Azure.Generator.Management.pdb +0 -0
- package/dist/generator/net8.0/Azure.Generator.Management.xml +3 -0
- package/dist/generator/net8.0/Azure.Generator.dll +0 -0
- package/dist/generator/net8.0/Shared/Core/NoValueResponseOfT.cs +39 -0
- package/package.json +2 -2
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"Azure.Generator.Management/1.0.0-alpha.20250515.1": {
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"Azure.Core": "1.46.1",
|
|
12
|
-
"Azure.Generator": "1.0.0-alpha.
|
|
12
|
+
"Azure.Generator": "1.0.0-alpha.20250514.1",
|
|
13
13
|
"Azure.ResourceManager": "1.13.0",
|
|
14
14
|
"Microsoft.Azure.AutoRest.CSharp": "3.0.0-beta.20250514.2",
|
|
15
15
|
"Microsoft.SourceLink.GitHub": "8.0.0",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
|
-
"Azure.Generator/1.0.0-alpha.
|
|
37
|
+
"Azure.Generator/1.0.0-alpha.20250514.1": {
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"Azure.Core": "1.46.1",
|
|
40
40
|
"Azure.ResourceManager": "1.13.0",
|
|
@@ -631,12 +631,12 @@
|
|
|
631
631
|
"path": "azure.core/1.46.1",
|
|
632
632
|
"hashPath": "azure.core.1.46.1.nupkg.sha512"
|
|
633
633
|
},
|
|
634
|
-
"Azure.Generator/1.0.0-alpha.
|
|
634
|
+
"Azure.Generator/1.0.0-alpha.20250514.1": {
|
|
635
635
|
"type": "package",
|
|
636
636
|
"serviceable": true,
|
|
637
|
-
"sha512": "sha512-
|
|
638
|
-
"path": "azure.generator/1.0.0-alpha.
|
|
639
|
-
"hashPath": "azure.generator.1.0.0-alpha.
|
|
637
|
+
"sha512": "sha512-FnllSZ16tBURjice2LQUoVH3Uw4vMNb6WzXE+jUbspMQNTuFMT6rAhUeiCBqlCrGsmMirYKSTiHKOuz5ZD1otQ==",
|
|
638
|
+
"path": "azure.generator/1.0.0-alpha.20250514.1",
|
|
639
|
+
"hashPath": "azure.generator.1.0.0-alpha.20250514.1.nupkg.sha512"
|
|
640
640
|
},
|
|
641
641
|
"Azure.ResourceManager/1.13.0": {
|
|
642
642
|
"type": "package",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
using System;
|
|
5
|
+
|
|
6
|
+
namespace Azure
|
|
7
|
+
{
|
|
8
|
+
#pragma warning disable SA1649 // File name should match first type name
|
|
9
|
+
internal sealed class NoValueResponse<T> : NullableResponse<T>
|
|
10
|
+
#pragma warning restore SA1649 // File name should match first type name
|
|
11
|
+
{
|
|
12
|
+
private readonly Response _response;
|
|
13
|
+
|
|
14
|
+
public NoValueResponse(Response response)
|
|
15
|
+
{
|
|
16
|
+
_response = response ?? throw new ArgumentNullException(nameof(response));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/// <inheritdoc />
|
|
20
|
+
public override bool HasValue => false;
|
|
21
|
+
|
|
22
|
+
public override T Value
|
|
23
|
+
{
|
|
24
|
+
get
|
|
25
|
+
{
|
|
26
|
+
throw new InvalidOperationException(GetStatusMessage());
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
public override Response GetRawResponse() => _response;
|
|
31
|
+
|
|
32
|
+
public override string ToString()
|
|
33
|
+
{
|
|
34
|
+
return GetStatusMessage();
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
internal string GetStatusMessage() => $"Status: {GetRawResponse().Status}, Service returned no content";
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"Azure.Generator.Management/1.0.0-alpha.20250515.1": {
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"Azure.Core": "1.46.1",
|
|
12
|
-
"Azure.Generator": "1.0.0-alpha.
|
|
12
|
+
"Azure.Generator": "1.0.0-alpha.20250514.1",
|
|
13
13
|
"Azure.ResourceManager": "1.13.0",
|
|
14
14
|
"Microsoft.Azure.AutoRest.CSharp": "3.0.0-beta.20250514.2",
|
|
15
15
|
"Microsoft.SourceLink.GitHub": "8.0.0",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
|
-
"Azure.Generator/1.0.0-alpha.
|
|
37
|
+
"Azure.Generator/1.0.0-alpha.20250514.1": {
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"Azure.Core": "1.46.1",
|
|
40
40
|
"Azure.ResourceManager": "1.13.0",
|
|
@@ -631,12 +631,12 @@
|
|
|
631
631
|
"path": "azure.core/1.46.1",
|
|
632
632
|
"hashPath": "azure.core.1.46.1.nupkg.sha512"
|
|
633
633
|
},
|
|
634
|
-
"Azure.Generator/1.0.0-alpha.
|
|
634
|
+
"Azure.Generator/1.0.0-alpha.20250514.1": {
|
|
635
635
|
"type": "package",
|
|
636
636
|
"serviceable": true,
|
|
637
|
-
"sha512": "sha512-
|
|
638
|
-
"path": "azure.generator/1.0.0-alpha.
|
|
639
|
-
"hashPath": "azure.generator.1.0.0-alpha.
|
|
637
|
+
"sha512": "sha512-FnllSZ16tBURjice2LQUoVH3Uw4vMNb6WzXE+jUbspMQNTuFMT6rAhUeiCBqlCrGsmMirYKSTiHKOuz5ZD1otQ==",
|
|
638
|
+
"path": "azure.generator/1.0.0-alpha.20250514.1",
|
|
639
|
+
"hashPath": "azure.generator.1.0.0-alpha.20250514.1.nupkg.sha512"
|
|
640
640
|
},
|
|
641
641
|
"Azure.ResourceManager/1.13.0": {
|
|
642
642
|
"type": "package",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
using System;
|
|
5
|
+
|
|
6
|
+
namespace Azure
|
|
7
|
+
{
|
|
8
|
+
#pragma warning disable SA1649 // File name should match first type name
|
|
9
|
+
internal sealed class NoValueResponse<T> : NullableResponse<T>
|
|
10
|
+
#pragma warning restore SA1649 // File name should match first type name
|
|
11
|
+
{
|
|
12
|
+
private readonly Response _response;
|
|
13
|
+
|
|
14
|
+
public NoValueResponse(Response response)
|
|
15
|
+
{
|
|
16
|
+
_response = response ?? throw new ArgumentNullException(nameof(response));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/// <inheritdoc />
|
|
20
|
+
public override bool HasValue => false;
|
|
21
|
+
|
|
22
|
+
public override T Value
|
|
23
|
+
{
|
|
24
|
+
get
|
|
25
|
+
{
|
|
26
|
+
throw new InvalidOperationException(GetStatusMessage());
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
public override Response GetRawResponse() => _response;
|
|
31
|
+
|
|
32
|
+
public override string ToString()
|
|
33
|
+
{
|
|
34
|
+
return GetStatusMessage();
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
internal string GetStatusMessage() => $"Status: {GetRawResponse().Status}, Service returned no content";
|
|
38
|
+
}
|
|
39
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure-typespec/http-client-csharp-mgmt",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.20250515.1",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec library for emitting Azure management libraries for C#.",
|
|
6
6
|
"readme": "https://github.com/Azure/azure-sdk-for-net/blob/main/eng/packages/http-client-csharp-mgmt/README.md",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"dist/**"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@azure-typespec/http-client-csharp": "1.0.0-alpha.
|
|
40
|
+
"@azure-typespec/http-client-csharp": "1.0.0-alpha.20250514.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@azure-tools/azure-http-specs": "0.1.0-alpha.17",
|