@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.
@@ -6,14 +6,13 @@
6
6
  "compilationOptions": {},
7
7
  "targets": {
8
8
  ".NETCoreApp,Version=v8.0": {
9
- "Azure.Generator.Management/1.0.0-alpha.20250515.1": {
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.20250508.1",
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.20250508.1": {
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.20250515.1": {
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.20250508.1": {
633
+ "Azure.Generator/1.0.0-alpha.20250514.1": {
635
634
  "type": "package",
636
635
  "serviceable": true,
637
- "sha512": "sha512-LuAZrp5JpPKmshfAD6FTko5SD40sxjLg8oqi//6gXc7h9ZN5yJw8UjiyS8TZRvH14cj6kX5eY2cy3IFWrWAAFQ==",
638
- "path": "azure.generator/1.0.0-alpha.20250508.1",
639
- "hashPath": "azure.generator.1.0.0-alpha.20250508.1.nupkg.sha512"
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",
@@ -836,5 +836,8 @@
836
836
  A delay strategy that uses a fixed delay with no jitter applied. This is used by data plane LROs.
837
837
  </summary>
838
838
  </member>
839
+ <member name="P:Azure.NoValueResponse`1.HasValue">
840
+ <inheritdoc />
841
+ </member>
839
842
  </members>
840
843
  </doc>
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.20250515.1": {
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.20250508.1",
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.20250508.1": {
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.20250515.1": {
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.20250508.1": {
633
+ "Azure.Generator/1.0.0-alpha.20250514.1": {
635
634
  "type": "package",
636
635
  "serviceable": true,
637
- "sha512": "sha512-LuAZrp5JpPKmshfAD6FTko5SD40sxjLg8oqi//6gXc7h9ZN5yJw8UjiyS8TZRvH14cj6kX5eY2cy3IFWrWAAFQ==",
638
- "path": "azure.generator/1.0.0-alpha.20250508.1",
639
- "hashPath": "azure.generator.1.0.0-alpha.20250508.1.nupkg.sha512"
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",
@@ -836,5 +836,8 @@
836
836
  A delay strategy that uses a fixed delay with no jitter applied. This is used by data plane LROs.
837
837
  </summary>
838
838
  </member>
839
+ <member name="P:Azure.NoValueResponse`1.HasValue">
840
+ <inheritdoc />
841
+ </member>
839
842
  </members>
840
843
  </doc>
@@ -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.20250514.2",
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.20250508.1"
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",