@azure-typespec/http-client-csharp 1.0.0-alpha.20250409.15

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.
Files changed (202) hide show
  1. package/dist/emitter/emitter.d.ts +4 -0
  2. package/dist/emitter/emitter.d.ts.map +1 -0
  3. package/dist/emitter/emitter.js +10 -0
  4. package/dist/emitter/emitter.js.map +1 -0
  5. package/dist/emitter/index.d.ts +2 -0
  6. package/dist/emitter/index.d.ts.map +1 -0
  7. package/dist/emitter/index.js +4 -0
  8. package/dist/emitter/index.js.map +1 -0
  9. package/dist/generator/Azure.Core.dll +0 -0
  10. package/dist/generator/Azure.Generator.StubLibrary.deps.json +997 -0
  11. package/dist/generator/Azure.Generator.StubLibrary.dll +0 -0
  12. package/dist/generator/Azure.Generator.StubLibrary.pdb +0 -0
  13. package/dist/generator/Azure.Generator.StubLibrary.xml +24 -0
  14. package/dist/generator/Azure.Generator.deps.json +979 -0
  15. package/dist/generator/Azure.Generator.dll +0 -0
  16. package/dist/generator/Azure.Generator.pdb +0 -0
  17. package/dist/generator/Azure.Generator.xml +163 -0
  18. package/dist/generator/Azure.ResourceManager.dll +0 -0
  19. package/dist/generator/CommandLine.dll +0 -0
  20. package/dist/generator/Humanizer.dll +0 -0
  21. package/dist/generator/Microsoft.Bcl.AsyncInterfaces.dll +0 -0
  22. package/dist/generator/Microsoft.Build.Framework.dll +0 -0
  23. package/dist/generator/Microsoft.Build.dll +0 -0
  24. package/dist/generator/Microsoft.CodeAnalysis.CSharp.Workspaces.dll +0 -0
  25. package/dist/generator/Microsoft.CodeAnalysis.CSharp.dll +0 -0
  26. package/dist/generator/Microsoft.CodeAnalysis.Workspaces.dll +0 -0
  27. package/dist/generator/Microsoft.CodeAnalysis.dll +0 -0
  28. package/dist/generator/Microsoft.Extensions.Logging.Abstractions.dll +0 -0
  29. package/dist/generator/Microsoft.NET.StringTools.dll +0 -0
  30. package/dist/generator/Microsoft.TypeSpec.Generator.ClientModel.dll +0 -0
  31. package/dist/generator/Microsoft.TypeSpec.Generator.Input.dll +0 -0
  32. package/dist/generator/Microsoft.TypeSpec.Generator.dll +0 -0
  33. package/dist/generator/Microsoft.TypeSpec.Generator.runtimeconfig.json +12 -0
  34. package/dist/generator/NuGet.Common.dll +0 -0
  35. package/dist/generator/NuGet.Configuration.dll +0 -0
  36. package/dist/generator/NuGet.Frameworks.dll +0 -0
  37. package/dist/generator/Shared/Core/AzureKeyCredentialPolicy.cs +50 -0
  38. package/dist/generator/Shared/Core/RawRequestUriBuilder.cs +192 -0
  39. package/dist/generator/System.ClientModel.dll +0 -0
  40. package/dist/generator/System.ComponentModel.Composition.dll +0 -0
  41. package/dist/generator/System.Composition.AttributedModel.dll +0 -0
  42. package/dist/generator/System.Composition.Convention.dll +0 -0
  43. package/dist/generator/System.Composition.Hosting.dll +0 -0
  44. package/dist/generator/System.Composition.Runtime.dll +0 -0
  45. package/dist/generator/System.Composition.TypedParts.dll +0 -0
  46. package/dist/generator/System.Configuration.ConfigurationManager.dll +0 -0
  47. package/dist/generator/System.Diagnostics.EventLog.dll +0 -0
  48. package/dist/generator/System.IO.Pipelines.dll +0 -0
  49. package/dist/generator/System.Memory.Data.dll +0 -0
  50. package/dist/generator/System.Reflection.MetadataLoadContext.dll +0 -0
  51. package/dist/generator/System.Security.Cryptography.ProtectedData.dll +0 -0
  52. package/dist/generator/cs/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  53. package/dist/generator/cs/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  54. package/dist/generator/cs/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  55. package/dist/generator/cs/Microsoft.CodeAnalysis.resources.dll +0 -0
  56. package/dist/generator/de/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  57. package/dist/generator/de/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  58. package/dist/generator/de/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  59. package/dist/generator/de/Microsoft.CodeAnalysis.resources.dll +0 -0
  60. package/dist/generator/es/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  61. package/dist/generator/es/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  62. package/dist/generator/es/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  63. package/dist/generator/es/Microsoft.CodeAnalysis.resources.dll +0 -0
  64. package/dist/generator/fr/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  65. package/dist/generator/fr/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  66. package/dist/generator/fr/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  67. package/dist/generator/fr/Microsoft.CodeAnalysis.resources.dll +0 -0
  68. package/dist/generator/it/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  69. package/dist/generator/it/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  70. package/dist/generator/it/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  71. package/dist/generator/it/Microsoft.CodeAnalysis.resources.dll +0 -0
  72. package/dist/generator/ja/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  73. package/dist/generator/ja/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  74. package/dist/generator/ja/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  75. package/dist/generator/ja/Microsoft.CodeAnalysis.resources.dll +0 -0
  76. package/dist/generator/ko/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  77. package/dist/generator/ko/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  78. package/dist/generator/ko/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  79. package/dist/generator/ko/Microsoft.CodeAnalysis.resources.dll +0 -0
  80. package/dist/generator/net8.0/Azure.Core.dll +0 -0
  81. package/dist/generator/net8.0/Azure.Generator.StubLibrary.deps.json +997 -0
  82. package/dist/generator/net8.0/Azure.Generator.StubLibrary.dll +0 -0
  83. package/dist/generator/net8.0/Azure.Generator.StubLibrary.pdb +0 -0
  84. package/dist/generator/net8.0/Azure.Generator.StubLibrary.xml +24 -0
  85. package/dist/generator/net8.0/Azure.Generator.deps.json +979 -0
  86. package/dist/generator/net8.0/Azure.Generator.dll +0 -0
  87. package/dist/generator/net8.0/Azure.Generator.pdb +0 -0
  88. package/dist/generator/net8.0/Azure.Generator.xml +163 -0
  89. package/dist/generator/net8.0/Azure.ResourceManager.dll +0 -0
  90. package/dist/generator/net8.0/CommandLine.dll +0 -0
  91. package/dist/generator/net8.0/Humanizer.dll +0 -0
  92. package/dist/generator/net8.0/Microsoft.Bcl.AsyncInterfaces.dll +0 -0
  93. package/dist/generator/net8.0/Microsoft.Build.Framework.dll +0 -0
  94. package/dist/generator/net8.0/Microsoft.Build.dll +0 -0
  95. package/dist/generator/net8.0/Microsoft.CodeAnalysis.CSharp.Workspaces.dll +0 -0
  96. package/dist/generator/net8.0/Microsoft.CodeAnalysis.CSharp.dll +0 -0
  97. package/dist/generator/net8.0/Microsoft.CodeAnalysis.Workspaces.dll +0 -0
  98. package/dist/generator/net8.0/Microsoft.CodeAnalysis.dll +0 -0
  99. package/dist/generator/net8.0/Microsoft.Extensions.Logging.Abstractions.dll +0 -0
  100. package/dist/generator/net8.0/Microsoft.NET.StringTools.dll +0 -0
  101. package/dist/generator/net8.0/Microsoft.TypeSpec.Generator.ClientModel.dll +0 -0
  102. package/dist/generator/net8.0/Microsoft.TypeSpec.Generator.Input.dll +0 -0
  103. package/dist/generator/net8.0/Microsoft.TypeSpec.Generator.dll +0 -0
  104. package/dist/generator/net8.0/NuGet.Common.dll +0 -0
  105. package/dist/generator/net8.0/NuGet.Configuration.dll +0 -0
  106. package/dist/generator/net8.0/NuGet.Frameworks.dll +0 -0
  107. package/dist/generator/net8.0/Shared/Core/AzureKeyCredentialPolicy.cs +50 -0
  108. package/dist/generator/net8.0/Shared/Core/RawRequestUriBuilder.cs +192 -0
  109. package/dist/generator/net8.0/System.ClientModel.dll +0 -0
  110. package/dist/generator/net8.0/System.ComponentModel.Composition.dll +0 -0
  111. package/dist/generator/net8.0/System.Composition.AttributedModel.dll +0 -0
  112. package/dist/generator/net8.0/System.Composition.Convention.dll +0 -0
  113. package/dist/generator/net8.0/System.Composition.Hosting.dll +0 -0
  114. package/dist/generator/net8.0/System.Composition.Runtime.dll +0 -0
  115. package/dist/generator/net8.0/System.Composition.TypedParts.dll +0 -0
  116. package/dist/generator/net8.0/System.Configuration.ConfigurationManager.dll +0 -0
  117. package/dist/generator/net8.0/System.Diagnostics.EventLog.dll +0 -0
  118. package/dist/generator/net8.0/System.IO.Pipelines.dll +0 -0
  119. package/dist/generator/net8.0/System.Memory.Data.dll +0 -0
  120. package/dist/generator/net8.0/System.Reflection.MetadataLoadContext.dll +0 -0
  121. package/dist/generator/net8.0/System.Security.Cryptography.ProtectedData.dll +0 -0
  122. package/dist/generator/net8.0/cs/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  123. package/dist/generator/net8.0/cs/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  124. package/dist/generator/net8.0/cs/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  125. package/dist/generator/net8.0/cs/Microsoft.CodeAnalysis.resources.dll +0 -0
  126. package/dist/generator/net8.0/de/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  127. package/dist/generator/net8.0/de/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  128. package/dist/generator/net8.0/de/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  129. package/dist/generator/net8.0/de/Microsoft.CodeAnalysis.resources.dll +0 -0
  130. package/dist/generator/net8.0/es/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  131. package/dist/generator/net8.0/es/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  132. package/dist/generator/net8.0/es/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  133. package/dist/generator/net8.0/es/Microsoft.CodeAnalysis.resources.dll +0 -0
  134. package/dist/generator/net8.0/fr/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  135. package/dist/generator/net8.0/fr/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  136. package/dist/generator/net8.0/fr/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  137. package/dist/generator/net8.0/fr/Microsoft.CodeAnalysis.resources.dll +0 -0
  138. package/dist/generator/net8.0/it/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  139. package/dist/generator/net8.0/it/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  140. package/dist/generator/net8.0/it/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  141. package/dist/generator/net8.0/it/Microsoft.CodeAnalysis.resources.dll +0 -0
  142. package/dist/generator/net8.0/ja/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  143. package/dist/generator/net8.0/ja/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  144. package/dist/generator/net8.0/ja/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  145. package/dist/generator/net8.0/ja/Microsoft.CodeAnalysis.resources.dll +0 -0
  146. package/dist/generator/net8.0/ko/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  147. package/dist/generator/net8.0/ko/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  148. package/dist/generator/net8.0/ko/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  149. package/dist/generator/net8.0/ko/Microsoft.CodeAnalysis.resources.dll +0 -0
  150. package/dist/generator/net8.0/pl/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  151. package/dist/generator/net8.0/pl/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  152. package/dist/generator/net8.0/pl/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  153. package/dist/generator/net8.0/pl/Microsoft.CodeAnalysis.resources.dll +0 -0
  154. package/dist/generator/net8.0/pt-BR/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  155. package/dist/generator/net8.0/pt-BR/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  156. package/dist/generator/net8.0/pt-BR/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  157. package/dist/generator/net8.0/pt-BR/Microsoft.CodeAnalysis.resources.dll +0 -0
  158. package/dist/generator/net8.0/ru/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  159. package/dist/generator/net8.0/ru/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  160. package/dist/generator/net8.0/ru/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  161. package/dist/generator/net8.0/ru/Microsoft.CodeAnalysis.resources.dll +0 -0
  162. package/dist/generator/net8.0/runtimes/win/lib/net8.0/System.Diagnostics.EventLog.Messages.dll +0 -0
  163. package/dist/generator/net8.0/runtimes/win/lib/net8.0/System.Diagnostics.EventLog.dll +0 -0
  164. package/dist/generator/net8.0/tr/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  165. package/dist/generator/net8.0/tr/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  166. package/dist/generator/net8.0/tr/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  167. package/dist/generator/net8.0/tr/Microsoft.CodeAnalysis.resources.dll +0 -0
  168. package/dist/generator/net8.0/zh-Hans/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  169. package/dist/generator/net8.0/zh-Hans/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  170. package/dist/generator/net8.0/zh-Hans/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  171. package/dist/generator/net8.0/zh-Hans/Microsoft.CodeAnalysis.resources.dll +0 -0
  172. package/dist/generator/net8.0/zh-Hant/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  173. package/dist/generator/net8.0/zh-Hant/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  174. package/dist/generator/net8.0/zh-Hant/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  175. package/dist/generator/net8.0/zh-Hant/Microsoft.CodeAnalysis.resources.dll +0 -0
  176. package/dist/generator/pl/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  177. package/dist/generator/pl/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  178. package/dist/generator/pl/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  179. package/dist/generator/pl/Microsoft.CodeAnalysis.resources.dll +0 -0
  180. package/dist/generator/pt-BR/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  181. package/dist/generator/pt-BR/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  182. package/dist/generator/pt-BR/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  183. package/dist/generator/pt-BR/Microsoft.CodeAnalysis.resources.dll +0 -0
  184. package/dist/generator/ru/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  185. package/dist/generator/ru/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  186. package/dist/generator/ru/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  187. package/dist/generator/ru/Microsoft.CodeAnalysis.resources.dll +0 -0
  188. package/dist/generator/runtimes/win/lib/net8.0/System.Diagnostics.EventLog.Messages.dll +0 -0
  189. package/dist/generator/runtimes/win/lib/net8.0/System.Diagnostics.EventLog.dll +0 -0
  190. package/dist/generator/tr/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  191. package/dist/generator/tr/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  192. package/dist/generator/tr/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  193. package/dist/generator/tr/Microsoft.CodeAnalysis.resources.dll +0 -0
  194. package/dist/generator/zh-Hans/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  195. package/dist/generator/zh-Hans/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  196. package/dist/generator/zh-Hans/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  197. package/dist/generator/zh-Hans/Microsoft.CodeAnalysis.resources.dll +0 -0
  198. package/dist/generator/zh-Hant/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  199. package/dist/generator/zh-Hant/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  200. package/dist/generator/zh-Hant/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  201. package/dist/generator/zh-Hant/Microsoft.CodeAnalysis.resources.dll +0 -0
  202. package/package.json +67 -0
@@ -0,0 +1,163 @@
1
+ <?xml version="1.0"?>
2
+ <doc>
3
+ <assembly>
4
+ <name>Azure.Generator</name>
5
+ </assembly>
6
+ <members>
7
+ <member name="T:Azure.Generator.AzureClientGenerator">
8
+ <summary>
9
+ The Azure client generator to generate the Azure client SDK.
10
+ </summary>
11
+ </member>
12
+ <member name="P:Azure.Generator.AzureClientGenerator.TypeFactory">
13
+ <inheritdoc/>
14
+ </member>
15
+ <member name="P:Azure.Generator.AzureClientGenerator.OutputLibrary">
16
+ <inheritdoc/>
17
+ </member>
18
+ <member name="M:Azure.Generator.AzureClientGenerator.#ctor(Microsoft.TypeSpec.Generator.GeneratorContext)">
19
+ <summary>
20
+ Constructs the Azure client generator used to generate the Azure client SDK.
21
+ </summary>
22
+ <param name="context"></param>
23
+ </member>
24
+ <member name="M:Azure.Generator.AzureClientGenerator.Configure">
25
+ <summary>
26
+ Customize the generation output for Azure client SDK.
27
+ </summary>
28
+ </member>
29
+ <member name="T:Azure.Generator.AzureOutputLibrary">
30
+ <inheritdoc/>
31
+ </member>
32
+ <member name="M:Azure.Generator.AzureOutputLibrary.BuildTypeProviders">
33
+ <inheritdoc/>
34
+ </member>
35
+ <member name="T:Azure.Generator.AzureTypeFactory">
36
+ <inheritdoc/>
37
+ </member>
38
+ <member name="P:Azure.Generator.AzureTypeFactory.ClientResponseApi">
39
+ <inheritdoc/>
40
+ </member>
41
+ <member name="P:Azure.Generator.AzureTypeFactory.HttpResponseApi">
42
+ <inheritdoc/>
43
+ </member>
44
+ <member name="P:Azure.Generator.AzureTypeFactory.ClientPipelineApi">
45
+ <inheritdoc/>
46
+ </member>
47
+ <member name="P:Azure.Generator.AzureTypeFactory.HttpMessageApi">
48
+ <inheritdoc/>
49
+ </member>
50
+ <member name="P:Azure.Generator.AzureTypeFactory.HttpRequestApi">
51
+ <inheritdoc/>
52
+ </member>
53
+ <member name="P:Azure.Generator.AzureTypeFactory.StatusCodeClassifierApi">
54
+ <inheritdoc/>
55
+ </member>
56
+ <member name="P:Azure.Generator.AzureTypeFactory.RequestContentApi">
57
+ <inheritdoc/>
58
+ </member>
59
+ <member name="P:Azure.Generator.AzureTypeFactory.HttpRequestOptionsApi">
60
+ <inheritdoc/>
61
+ </member>
62
+ <member name="P:Azure.Generator.AzureTypeFactory.AzureDependencyPackages">
63
+ <summary>
64
+ Get dependency packages for Azure.
65
+ </summary>
66
+ </member>
67
+ <member name="M:Azure.Generator.AzureTypeFactory.CreateCSharpTypeCore(Microsoft.TypeSpec.Generator.Input.InputType)">
68
+ <inheritdoc/>
69
+ </member>
70
+ <member name="M:Azure.Generator.AzureTypeFactory.DeserializeJsonValue(System.Type,Microsoft.TypeSpec.Generator.Snippets.ScopedApi{System.Text.Json.JsonElement},Microsoft.TypeSpec.Generator.Input.SerializationFormat)">
71
+ <inheritdoc/>
72
+ </member>
73
+ <member name="M:Azure.Generator.AzureTypeFactory.SerializeJsonValue(System.Type,Microsoft.TypeSpec.Generator.Expressions.ValueExpression,Microsoft.TypeSpec.Generator.Snippets.ScopedApi{System.Text.Json.Utf8JsonWriter},Microsoft.TypeSpec.Generator.Snippets.ScopedApi{System.ClientModel.Primitives.ModelReaderWriterOptions},Microsoft.TypeSpec.Generator.Input.SerializationFormat)">
74
+ <inheritdoc/>
75
+ </member>
76
+ <member name="M:Azure.Generator.AzureTypeFactory.CreateNewProjectScaffolding">
77
+ <inheritdoc/>
78
+ </member>
79
+ <member name="M:Azure.Generator.Management.Models.RequestPath.IsAncestorOf(Azure.Generator.Management.Models.RequestPath)">
80
+ <summary>
81
+ Check if this <see cref="T:Azure.Generator.Management.Models.RequestPath"/> is a prefix path of the other request path.
82
+ Note that this.IsAncestorOf(this) will return false which indicates that this method is testing the "proper ancestor" like a proper subset.
83
+ </summary>
84
+ <param name="other"></param>
85
+ <returns></returns>
86
+ </member>
87
+ <member name="M:Azure.Generator.Management.Models.RequestPath.TrimAncestorFrom(Azure.Generator.Management.Models.RequestPath)">
88
+ <summary>
89
+ Trim this from the other and return the <see cref="T:Azure.Generator.Management.Models.RequestPath"/>that remain.
90
+ The result is "other - this" by removing this as a prefix of other.
91
+ If this == other, return empty request path
92
+ </summary>
93
+ <param name="other"></param>
94
+ <returns></returns>
95
+ <exception cref="T:System.InvalidOperationException">if this.IsAncestorOf(other) is false</exception>
96
+ </member>
97
+ <member name="T:Azure.Generator.Primitives.NewAzureProjectScaffolding">
98
+ <summary>
99
+ Defines the new project scaffolding needed for an azure sdk.
100
+ </summary>
101
+ </member>
102
+ <member name="M:Azure.Generator.Primitives.NewAzureProjectScaffolding.GetSourceProjectFileContent">
103
+ <inheritdoc/>
104
+ </member>
105
+ <member name="T:Azure.Generator.Providers.Abstraction.HttpPipelineProvider">
106
+ <inheritdoc/>
107
+ </member>
108
+ <member name="M:Azure.Generator.Providers.Abstraction.HttpPipelineProvider.#ctor(Microsoft.TypeSpec.Generator.Expressions.ValueExpression)">
109
+ <inheritdoc/>
110
+ </member>
111
+ <member name="P:Azure.Generator.Providers.Abstraction.HttpPipelineProvider.ClientPipelineType">
112
+ <inheritdoc/>
113
+ </member>
114
+ <member name="P:Azure.Generator.Providers.Abstraction.HttpPipelineProvider.ClientPipelineOptionsType">
115
+ <inheritdoc/>
116
+ </member>
117
+ <member name="P:Azure.Generator.Providers.Abstraction.HttpPipelineProvider.PipelinePolicyType">
118
+ <inheritdoc/>
119
+ </member>
120
+ <member name="P:Azure.Generator.Providers.Abstraction.HttpPipelineProvider.KeyCredentialType">
121
+ <inheritdoc/>
122
+ </member>
123
+ <member name="P:Azure.Generator.Providers.Abstraction.HttpPipelineProvider.TokenCredentialType">
124
+ <inheritdoc/>
125
+ </member>
126
+ <member name="M:Azure.Generator.Providers.Abstraction.HttpPipelineProvider.Create(Microsoft.TypeSpec.Generator.Expressions.ValueExpression,Microsoft.TypeSpec.Generator.Expressions.ValueExpression)">
127
+ <inheritdoc/>
128
+ </member>
129
+ <member name="M:Azure.Generator.Providers.Abstraction.HttpPipelineProvider.CreateMessage(Microsoft.TypeSpec.Generator.ClientModel.Providers.HttpRequestOptionsApi,Microsoft.TypeSpec.Generator.Expressions.ValueExpression)">
130
+ <inheritdoc/>
131
+ </member>
132
+ <member name="M:Azure.Generator.Providers.Abstraction.HttpPipelineProvider.FromExpression(Microsoft.TypeSpec.Generator.Expressions.ValueExpression)">
133
+ <inheritdoc/>
134
+ </member>
135
+ <member name="M:Azure.Generator.Providers.Abstraction.HttpPipelineProvider.KeyAuthorizationPolicy(Microsoft.TypeSpec.Generator.Expressions.ValueExpression,Microsoft.TypeSpec.Generator.Expressions.ValueExpression,Microsoft.TypeSpec.Generator.Expressions.ValueExpression)">
136
+ <inheritdoc/>
137
+ </member>
138
+ <member name="M:Azure.Generator.Providers.Abstraction.HttpPipelineProvider.TokenAuthorizationPolicy(Microsoft.TypeSpec.Generator.Expressions.ValueExpression,Microsoft.TypeSpec.Generator.Expressions.ValueExpression)">
139
+ <inheritdoc/>
140
+ </member>
141
+ <member name="M:Azure.Generator.Providers.Abstraction.HttpPipelineProvider.ToExpression">
142
+ <inheritdoc/>
143
+ </member>
144
+ <member name="M:Azure.Generator.Providers.Abstraction.HttpPipelineProvider.ProcessMessage(Microsoft.TypeSpec.Generator.ClientModel.Providers.HttpMessageApi,Microsoft.TypeSpec.Generator.ClientModel.Providers.HttpRequestOptionsApi)">
145
+ <inheritdoc/>
146
+ </member>
147
+ <member name="M:Azure.Generator.Providers.Abstraction.HttpPipelineProvider.ProcessMessageAsync(Microsoft.TypeSpec.Generator.ClientModel.Providers.HttpMessageApi,Microsoft.TypeSpec.Generator.ClientModel.Providers.HttpRequestOptionsApi)">
148
+ <inheritdoc/>
149
+ </member>
150
+ <member name="M:Azure.Core.AzureKeyCredentialPolicy.#ctor(Azure.AzureKeyCredential,System.String,System.String)">
151
+ <summary>
152
+ Initializes a new instance of the <see cref="T:Azure.Core.AzureKeyCredentialPolicy"/> class.
153
+ </summary>
154
+ <param name="credential">The <see cref="T:Azure.AzureKeyCredential"/> used to authenticate requests.</param>
155
+ <param name="name">The name of the key header used for the credential.</param>
156
+ <param name="prefix">The prefix to apply before the credential key. For example, a prefix of "SharedAccessKey" would result in
157
+ a value of "SharedAccessKey {credential.Key}" being stamped on the request header with header key of <paramref name="name"/>.</param>
158
+ </member>
159
+ <member name="M:Azure.Core.AzureKeyCredentialPolicy.OnSendingRequest(Azure.Core.HttpMessage)">
160
+ <inheritdoc/>
161
+ </member>
162
+ </members>
163
+ </doc>
Binary file
Binary file
@@ -0,0 +1,12 @@
1
+ {
2
+ "runtimeOptions": {
3
+ "tfm": "net8.0",
4
+ "framework": {
5
+ "name": "Microsoft.NETCore.App",
6
+ "version": "8.0.0"
7
+ },
8
+ "configProperties": {
9
+ "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
10
+ }
11
+ }
12
+ }
Binary file
@@ -0,0 +1,50 @@
1
+ // Copyright (c) Microsoft Corporation. All rights reserved.
2
+ // Licensed under the MIT License.
3
+
4
+ using System;
5
+ using Azure.Core.Pipeline;
6
+
7
+ #nullable enable
8
+
9
+ namespace Azure.Core
10
+ {
11
+ internal class AzureKeyCredentialPolicy : HttpPipelineSynchronousPolicy
12
+ {
13
+ private readonly string _name;
14
+ private readonly AzureKeyCredential _credential;
15
+ private readonly string? _prefix;
16
+
17
+ /// <summary>
18
+ /// Initializes a new instance of the <see cref="AzureKeyCredentialPolicy"/> class.
19
+ /// </summary>
20
+ /// <param name="credential">The <see cref="AzureKeyCredential"/> used to authenticate requests.</param>
21
+ /// <param name="name">The name of the key header used for the credential.</param>
22
+ /// <param name="prefix">The prefix to apply before the credential key. For example, a prefix of "SharedAccessKey" would result in
23
+ /// a value of "SharedAccessKey {credential.Key}" being stamped on the request header with header key of <paramref name="name"/>.</param>
24
+ public AzureKeyCredentialPolicy(AzureKeyCredential credential, string name, string? prefix = null)
25
+ {
26
+ if (credential is null)
27
+ {
28
+ throw new ArgumentNullException(nameof(credential));
29
+ }
30
+ if (name is null)
31
+ {
32
+ throw new ArgumentNullException(nameof(name));
33
+ }
34
+ if (name.Length == 0)
35
+ {
36
+ throw new ArgumentException("Value cannot be an empty string.", nameof(name));
37
+ }
38
+ _credential = credential;
39
+ _name = name;
40
+ _prefix = prefix;
41
+ }
42
+
43
+ /// <inheritdoc/>
44
+ public override void OnSendingRequest(HttpMessage message)
45
+ {
46
+ base.OnSendingRequest(message);
47
+ message.Request.Headers.SetValue(_name, _prefix != null ? $"{_prefix} {_credential.Key}" : _credential.Key);
48
+ }
49
+ }
50
+ }
@@ -0,0 +1,192 @@
1
+ // Copyright (c) Microsoft Corporation. All rights reserved.
2
+ // Licensed under the MIT License.
3
+
4
+ #nullable enable
5
+
6
+ using System;
7
+ using System.Globalization;
8
+ using System.IO;
9
+
10
+ namespace Azure.Core
11
+ {
12
+ internal class RawRequestUriBuilder: RequestUriBuilder
13
+ {
14
+ private const string SchemeSeparator = "://";
15
+ private const char HostSeparator = '/';
16
+ private const char PortSeparator = ':';
17
+ private static readonly char[] HostOrPort = { HostSeparator, PortSeparator };
18
+ private const char QueryBeginSeparator = '?';
19
+ private const char QueryContinueSeparator = '&';
20
+ private const char QueryValueSeparator = '=';
21
+
22
+ private RawWritingPosition? _position;
23
+
24
+ private static void GetQueryParts(ReadOnlySpan<char> queryUnparsed, out ReadOnlySpan<char> name, out ReadOnlySpan<char> value)
25
+ {
26
+ int separatorIndex = queryUnparsed.IndexOf(QueryValueSeparator);
27
+ if (separatorIndex == -1)
28
+ {
29
+ name = queryUnparsed;
30
+ value = ReadOnlySpan<char>.Empty;
31
+ }
32
+ else
33
+ {
34
+ name = queryUnparsed.Slice(0, separatorIndex);
35
+ value = queryUnparsed.Slice(separatorIndex + 1);
36
+ }
37
+ }
38
+
39
+ public void AppendRaw(string value, bool escape)
40
+ {
41
+ AppendRaw(value.AsSpan(), escape);
42
+ }
43
+
44
+ private void AppendRaw(ReadOnlySpan<char> value, bool escape)
45
+ {
46
+ if (_position == null)
47
+ {
48
+ if (HasQuery)
49
+ {
50
+ _position = RawWritingPosition.Query;
51
+ }
52
+ else if (HasPath)
53
+ {
54
+ _position = RawWritingPosition.Path;
55
+ }
56
+ else if (!string.IsNullOrEmpty(Host))
57
+ {
58
+ _position = RawWritingPosition.Host;
59
+ }
60
+ else
61
+ {
62
+ _position = RawWritingPosition.Scheme;
63
+ }
64
+ }
65
+
66
+ while (!value.IsEmpty)
67
+ {
68
+ if (_position == RawWritingPosition.Scheme)
69
+ {
70
+ int separator = value.IndexOf(SchemeSeparator.AsSpan(), StringComparison.InvariantCultureIgnoreCase);
71
+ if (separator == -1)
72
+ {
73
+ Scheme += value.ToString();
74
+ value = ReadOnlySpan<char>.Empty;
75
+ }
76
+ else
77
+ {
78
+ Scheme += value.Slice(0, separator).ToString();
79
+ // TODO: Find a better way to map schemes to default ports
80
+ Port = string.Equals(Scheme, "https", StringComparison.OrdinalIgnoreCase) ? 443 : 80;
81
+ value = value.Slice(separator + SchemeSeparator.Length);
82
+ _position = RawWritingPosition.Host;
83
+ }
84
+ }
85
+ else if (_position == RawWritingPosition.Host)
86
+ {
87
+ int separator = value.IndexOfAny(HostOrPort);
88
+ if (separator == -1)
89
+ {
90
+ if (!HasPath)
91
+ {
92
+ Host += value.ToString();
93
+ value = ReadOnlySpan<char>.Empty;
94
+ }
95
+ else
96
+ {
97
+ // All Host information must be written before Path information
98
+ // If Path already has information, we transition to writing Path
99
+ _position = RawWritingPosition.Path;
100
+ }
101
+ }
102
+ else
103
+ {
104
+ Host += value.Slice(0, separator).ToString();
105
+ _position = value[separator] == HostSeparator ? RawWritingPosition.Path : RawWritingPosition.Port;
106
+ value = value.Slice(separator + 1);
107
+ }
108
+ }
109
+ else if (_position == RawWritingPosition.Port)
110
+ {
111
+ int separator = value.IndexOf(HostSeparator);
112
+ if (separator == -1)
113
+ {
114
+ #if NETCOREAPP2_1_OR_GREATER
115
+ Port = int.Parse(value, NumberStyles.Integer, CultureInfo.InvariantCulture);
116
+ #else
117
+ Port = int.Parse(value.ToString(), CultureInfo.InvariantCulture);
118
+ #endif
119
+ value = ReadOnlySpan<char>.Empty;
120
+ }
121
+ else
122
+ {
123
+ #if NETCOREAPP2_1_OR_GREATER
124
+ Port = int.Parse(value.Slice(0, separator), NumberStyles.Integer, CultureInfo.InvariantCulture);
125
+ #else
126
+ Port = int.Parse(value.Slice(0, separator).ToString(), CultureInfo.InvariantCulture);
127
+ #endif
128
+ value = value.Slice(separator + 1);
129
+ }
130
+ // Port cannot be split (like Host), so always transition to Path when Port is parsed
131
+ _position = RawWritingPosition.Path;
132
+ }
133
+ else if (_position == RawWritingPosition.Path)
134
+ {
135
+ int separator = value.IndexOf(QueryBeginSeparator);
136
+ if (separator == -1)
137
+ {
138
+ AppendPath(value, escape);
139
+ value = ReadOnlySpan<char>.Empty;
140
+ }
141
+ else
142
+ {
143
+ AppendPath(value.Slice(0, separator), escape);
144
+ value = value.Slice(separator + 1);
145
+ _position = RawWritingPosition.Query;
146
+ }
147
+ }
148
+ else if (_position == RawWritingPosition.Query)
149
+ {
150
+ int separator = value.IndexOf(QueryContinueSeparator);
151
+ if (separator == 0)
152
+ {
153
+ value = value.Slice(1);
154
+ }
155
+ else if (separator == -1)
156
+ {
157
+ GetQueryParts(value, out var queryName, out var queryValue);
158
+ AppendQuery(queryName, queryValue, escape);
159
+ value = ReadOnlySpan<char>.Empty;
160
+ }
161
+ else
162
+ {
163
+ GetQueryParts(value.Slice(0, separator), out var queryName, out var queryValue);
164
+ AppendQuery(queryName, queryValue, escape);
165
+ value = value.Slice(separator + 1);
166
+ }
167
+ }
168
+ }
169
+ }
170
+
171
+ private enum RawWritingPosition
172
+ {
173
+ Scheme,
174
+ Host,
175
+ Port,
176
+ Path,
177
+ Query
178
+ }
179
+
180
+ public void AppendRawNextLink(string nextLink, bool escape)
181
+ {
182
+ // If it is an absolute link, we use the nextLink as the entire url
183
+ if (nextLink.StartsWith(Uri.UriSchemeHttp, StringComparison.InvariantCultureIgnoreCase))
184
+ {
185
+ Reset(new Uri(nextLink));
186
+ return;
187
+ }
188
+
189
+ AppendRaw(nextLink, escape);
190
+ }
191
+ }
192
+ }