@azure-typespec/http-client-csharp-mgmt 1.0.0-alpha.20250514.1 → 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.
@@ -6,10 +6,10 @@
6
6
  "compilationOptions": {},
7
7
  "targets": {
8
8
  ".NETCoreApp,Version=v8.0": {
9
- "Azure.Generator.Mgmt/1.0.0-alpha.20250514.1": {
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.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",
@@ -18,7 +18,7 @@
18
18
  "StyleCop.Analyzers": "1.2.0-beta.333"
19
19
  },
20
20
  "runtime": {
21
- "Azure.Generator.Mgmt.dll": {}
21
+ "Azure.Generator.Management.dll": {}
22
22
  }
23
23
  },
24
24
  "Azure.Core/1.46.1": {
@@ -34,7 +34,7 @@
34
34
  }
35
35
  }
36
36
  },
37
- "Azure.Generator/1.0.0-alpha.20250508.1": {
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",
@@ -619,7 +619,7 @@
619
619
  }
620
620
  },
621
621
  "libraries": {
622
- "Azure.Generator.Mgmt/1.0.0-alpha.20250514.1": {
622
+ "Azure.Generator.Management/1.0.0-alpha.20250515.1": {
623
623
  "type": "project",
624
624
  "serviceable": false,
625
625
  "sha512": ""
@@ -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.20250508.1": {
634
+ "Azure.Generator/1.0.0-alpha.20250514.1": {
635
635
  "type": "package",
636
636
  "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"
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",
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0"?>
2
2
  <doc>
3
3
  <assembly>
4
- <name>Azure.Generator.Mgmt</name>
4
+ <name>Azure.Generator.Management</name>
5
5
  </assembly>
6
6
  <members>
7
7
  <member name="T:Azure.Generator.Management.ManagementClientGenerator">
@@ -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,10 +6,10 @@
6
6
  "compilationOptions": {},
7
7
  "targets": {
8
8
  ".NETCoreApp,Version=v8.0": {
9
- "Azure.Generator.Mgmt/1.0.0-alpha.20250514.1": {
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.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",
@@ -18,7 +18,7 @@
18
18
  "StyleCop.Analyzers": "1.2.0-beta.333"
19
19
  },
20
20
  "runtime": {
21
- "Azure.Generator.Mgmt.dll": {}
21
+ "Azure.Generator.Management.dll": {}
22
22
  }
23
23
  },
24
24
  "Azure.Core/1.46.1": {
@@ -34,7 +34,7 @@
34
34
  }
35
35
  }
36
36
  },
37
- "Azure.Generator/1.0.0-alpha.20250508.1": {
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",
@@ -619,7 +619,7 @@
619
619
  }
620
620
  },
621
621
  "libraries": {
622
- "Azure.Generator.Mgmt/1.0.0-alpha.20250514.1": {
622
+ "Azure.Generator.Management/1.0.0-alpha.20250515.1": {
623
623
  "type": "project",
624
624
  "serviceable": false,
625
625
  "sha512": ""
@@ -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.20250508.1": {
634
+ "Azure.Generator/1.0.0-alpha.20250514.1": {
635
635
  "type": "package",
636
636
  "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"
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",
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0"?>
2
2
  <doc>
3
3
  <assembly>
4
- <name>Azure.Generator.Mgmt</name>
4
+ <name>Azure.Generator.Management</name>
5
5
  </assembly>
6
6
  <members>
7
7
  <member name="T:Azure.Generator.Management.ManagementClientGenerator">
@@ -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.1",
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.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",