@azure-typespec/http-client-csharp-mgmt 1.0.0-alpha.20250514.2 → 1.0.0-alpha.20250515.2
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 +8 -9
- 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 +8 -9
- 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
|
@@ -6,14 +6,13 @@
|
|
|
6
6
|
"compilationOptions": {},
|
|
7
7
|
"targets": {
|
|
8
8
|
".NETCoreApp,Version=v8.0": {
|
|
9
|
-
"Azure.Generator.Management/1.0.0-alpha.
|
|
9
|
+
"Azure.Generator.Management/1.0.0-alpha.20250516.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",
|
|
16
|
-
"Microsoft.TypeSpec.Generator.ClientModel": "1.0.0-alpha.20250509.1",
|
|
17
16
|
"SauceControl.InheritDoc": "1.2.0",
|
|
18
17
|
"StyleCop.Analyzers": "1.2.0-beta.333"
|
|
19
18
|
},
|
|
@@ -34,7 +33,7 @@
|
|
|
34
33
|
}
|
|
35
34
|
}
|
|
36
35
|
},
|
|
37
|
-
"Azure.Generator/1.0.0-alpha.
|
|
36
|
+
"Azure.Generator/1.0.0-alpha.20250514.1": {
|
|
38
37
|
"dependencies": {
|
|
39
38
|
"Azure.Core": "1.46.1",
|
|
40
39
|
"Azure.ResourceManager": "1.13.0",
|
|
@@ -619,7 +618,7 @@
|
|
|
619
618
|
}
|
|
620
619
|
},
|
|
621
620
|
"libraries": {
|
|
622
|
-
"Azure.Generator.Management/1.0.0-alpha.
|
|
621
|
+
"Azure.Generator.Management/1.0.0-alpha.20250516.1": {
|
|
623
622
|
"type": "project",
|
|
624
623
|
"serviceable": false,
|
|
625
624
|
"sha512": ""
|
|
@@ -631,12 +630,12 @@
|
|
|
631
630
|
"path": "azure.core/1.46.1",
|
|
632
631
|
"hashPath": "azure.core.1.46.1.nupkg.sha512"
|
|
633
632
|
},
|
|
634
|
-
"Azure.Generator/1.0.0-alpha.
|
|
633
|
+
"Azure.Generator/1.0.0-alpha.20250514.1": {
|
|
635
634
|
"type": "package",
|
|
636
635
|
"serviceable": true,
|
|
637
|
-
"sha512": "sha512-
|
|
638
|
-
"path": "azure.generator/1.0.0-alpha.
|
|
639
|
-
"hashPath": "azure.generator.1.0.0-alpha.
|
|
636
|
+
"sha512": "sha512-FnllSZ16tBURjice2LQUoVH3Uw4vMNb6WzXE+jUbspMQNTuFMT6rAhUeiCBqlCrGsmMirYKSTiHKOuz5ZD1otQ==",
|
|
637
|
+
"path": "azure.generator/1.0.0-alpha.20250514.1",
|
|
638
|
+
"hashPath": "azure.generator.1.0.0-alpha.20250514.1.nupkg.sha512"
|
|
640
639
|
},
|
|
641
640
|
"Azure.ResourceManager/1.13.0": {
|
|
642
641
|
"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
|
+
}
|
|
@@ -6,14 +6,13 @@
|
|
|
6
6
|
"compilationOptions": {},
|
|
7
7
|
"targets": {
|
|
8
8
|
".NETCoreApp,Version=v8.0": {
|
|
9
|
-
"Azure.Generator.Management/1.0.0-alpha.
|
|
9
|
+
"Azure.Generator.Management/1.0.0-alpha.20250516.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",
|
|
16
|
-
"Microsoft.TypeSpec.Generator.ClientModel": "1.0.0-alpha.20250509.1",
|
|
17
16
|
"SauceControl.InheritDoc": "1.2.0",
|
|
18
17
|
"StyleCop.Analyzers": "1.2.0-beta.333"
|
|
19
18
|
},
|
|
@@ -34,7 +33,7 @@
|
|
|
34
33
|
}
|
|
35
34
|
}
|
|
36
35
|
},
|
|
37
|
-
"Azure.Generator/1.0.0-alpha.
|
|
36
|
+
"Azure.Generator/1.0.0-alpha.20250514.1": {
|
|
38
37
|
"dependencies": {
|
|
39
38
|
"Azure.Core": "1.46.1",
|
|
40
39
|
"Azure.ResourceManager": "1.13.0",
|
|
@@ -619,7 +618,7 @@
|
|
|
619
618
|
}
|
|
620
619
|
},
|
|
621
620
|
"libraries": {
|
|
622
|
-
"Azure.Generator.Management/1.0.0-alpha.
|
|
621
|
+
"Azure.Generator.Management/1.0.0-alpha.20250516.1": {
|
|
623
622
|
"type": "project",
|
|
624
623
|
"serviceable": false,
|
|
625
624
|
"sha512": ""
|
|
@@ -631,12 +630,12 @@
|
|
|
631
630
|
"path": "azure.core/1.46.1",
|
|
632
631
|
"hashPath": "azure.core.1.46.1.nupkg.sha512"
|
|
633
632
|
},
|
|
634
|
-
"Azure.Generator/1.0.0-alpha.
|
|
633
|
+
"Azure.Generator/1.0.0-alpha.20250514.1": {
|
|
635
634
|
"type": "package",
|
|
636
635
|
"serviceable": true,
|
|
637
|
-
"sha512": "sha512-
|
|
638
|
-
"path": "azure.generator/1.0.0-alpha.
|
|
639
|
-
"hashPath": "azure.generator.1.0.0-alpha.
|
|
636
|
+
"sha512": "sha512-FnllSZ16tBURjice2LQUoVH3Uw4vMNb6WzXE+jUbspMQNTuFMT6rAhUeiCBqlCrGsmMirYKSTiHKOuz5ZD1otQ==",
|
|
637
|
+
"path": "azure.generator/1.0.0-alpha.20250514.1",
|
|
638
|
+
"hashPath": "azure.generator.1.0.0-alpha.20250514.1.nupkg.sha512"
|
|
640
639
|
},
|
|
641
640
|
"Azure.ResourceManager/1.13.0": {
|
|
642
641
|
"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.2",
|
|
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",
|