PageRenderTime 52ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/generator/ServiceClientGeneratorLib/Generators/SourceFiles/ServiceInterface45.cs

https://gitlab.com/vectorci/aws-sdk-net
C# | 325 lines | 204 code | 102 blank | 19 comment | 7 complexity | 3fe26049f7993ab45c60deeb7a63979f MD5 | raw file
  1. // ------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // This code was generated by a tool.
  4. // Runtime Version: 12.0.0.0
  5. //
  6. // Changes to this file may cause incorrect behavior and will be lost if
  7. // the code is regenerated.
  8. // </auto-generated>
  9. // ------------------------------------------------------------------------------
  10. namespace ServiceClientGenerator.Generators.SourceFiles
  11. {
  12. using System.Linq;
  13. using System.Text;
  14. using System.Collections.Generic;
  15. using System;
  16. /// <summary>
  17. /// Class to produce the template output
  18. /// </summary>
  19. #line 1 "C:\Codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceInterface45.tt"
  20. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "12.0.0.0")]
  21. public partial class ServiceInterface45 : BaseGenerator
  22. {
  23. #line hidden
  24. /// <summary>
  25. /// Create the template output
  26. /// </summary>
  27. public override string TransformText()
  28. {
  29. #line 6 "C:\Codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceInterface45.tt"
  30. AddLicenseHeader();
  31. #line default
  32. #line hidden
  33. this.Write("\r\n\r\nusing System;\r\nusing System.Threading;\r\nusing System.Threading.Tasks;\r\nusing " +
  34. "System.Collections.Generic;\r\n\r\nusing ");
  35. #line 16 "C:\Codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceInterface45.tt"
  36. this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.Namespace));
  37. #line default
  38. #line hidden
  39. this.Write(".Model;\r\n\r\nnamespace ");
  40. #line 18 "C:\Codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceInterface45.tt"
  41. this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.Namespace));
  42. #line default
  43. #line hidden
  44. this.Write("\r\n{\r\n");
  45. #line 20 "C:\Codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceInterface45.tt"
  46. this.FormatServiceInterfaceDocumentation(this.Config.ServiceModel.Documentation);
  47. #line default
  48. #line hidden
  49. this.Write("\tpublic partial interface IAmazon");
  50. #line 21 "C:\Codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceInterface45.tt"
  51. this.Write(this.ToStringHelper.ToStringWithCulture(this.Config.BaseName));
  52. #line default
  53. #line hidden
  54. this.Write(" : IDisposable\r\n\t{\r\n\r\n\t\t");
  55. #line 24 "C:\Codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceInterface45.tt"
  56. // Generates definitions for each operation in the service model
  57. foreach(var operation in this.Config.ServiceModel.Operations)
  58. {
  59. if(operation.IsInternal)
  60. continue;
  61. #line default
  62. #line hidden
  63. this.Write("\r\n\t\t#region ");
  64. #line 32 "C:\Codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceInterface45.tt"
  65. this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name));
  66. #line default
  67. #line hidden
  68. this.Write("\r\n\r\n");
  69. #line 34 "C:\Codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceInterface45.tt"
  70. // Creates a parameterless definition of the operation if specified in the customizations file
  71. if (this.Config.ServiceModel.Customizations.CreateNoArgOverload(operation.Name))
  72. {
  73. #line default
  74. #line hidden
  75. #line 39 "C:\Codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceInterface45.tt"
  76. this.FormatOperationDocumentationSync(operation, false);
  77. if(operation.IsDeprecated)
  78. {
  79. #line default
  80. #line hidden
  81. this.Write("\t\t[Obsolete(\"");
  82. #line 44 "C:\Codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceInterface45.tt"
  83. this.Write(this.ToStringHelper.ToStringWithCulture(operation.DeprecationMessage));
  84. #line default
  85. #line hidden
  86. this.Write("\")]\r\n");
  87. #line 45 "C:\Codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceInterface45.tt"
  88. }
  89. #line default
  90. #line hidden
  91. this.Write(" ");
  92. #line 48 "C:\Codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceInterface45.tt"
  93. this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name));
  94. #line default
  95. #line hidden
  96. this.Write("Response ");
  97. #line 48 "C:\Codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceInterface45.tt"
  98. this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name));
  99. #line default
  100. #line hidden
  101. this.Write("();\r\n\r\n");
  102. #line 50 "C:\Codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceInterface45.tt"
  103. }
  104. // Adds simple method forms defined in the customizations file
  105. AddSimpleClientMethodInterfaces(operation, true);
  106. #line default
  107. #line hidden
  108. #line 55 "C:\Codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceInterface45.tt"
  109. this.FormatOperationDocumentationSync(operation, true);
  110. if(operation.IsDeprecated)
  111. {
  112. #line default
  113. #line hidden
  114. this.Write("\t\t[Obsolete(\"");
  115. #line 60 "C:\Codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceInterface45.tt"
  116. this.Write(this.ToStringHelper.ToStringWithCulture(operation.DeprecationMessage));
  117. #line default
  118. #line hidden
  119. this.Write("\")]\r\n");
  120. #line 61 "C:\Codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceInterface45.tt"
  121. }
  122. #line default
  123. #line hidden
  124. this.Write(" ");
  125. #line 64 "C:\Codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceInterface45.tt"
  126. this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name));
  127. #line default
  128. #line hidden
  129. this.Write("Response ");
  130. #line 64 "C:\Codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceInterface45.tt"
  131. this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name));
  132. #line default
  133. #line hidden
  134. this.Write("(");
  135. #line 64 "C:\Codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceInterface45.tt"
  136. this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name));
  137. #line default
  138. #line hidden
  139. this.Write("Request request);\r\n\r\n");
  140. #line 66 "C:\Codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceInterface45.tt"
  141. // Creates a parameterless definition of the operation if specified in the customizations file
  142. if (this.Config.ServiceModel.Customizations.CreateNoArgOverload(operation.Name))
  143. {
  144. #line default
  145. #line hidden
  146. #line 71 "C:\Codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceInterface45.tt"
  147. this.FormatOperationDocumentationAsync(operation, false);
  148. if(operation.IsDeprecated)
  149. {
  150. #line default
  151. #line hidden
  152. this.Write("\t\t[Obsolete(\"");
  153. #line 76 "C:\Codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceInterface45.tt"
  154. this.Write(this.ToStringHelper.ToStringWithCulture(operation.DeprecationMessage));
  155. #line default
  156. #line hidden
  157. this.Write("\")]\r\n");
  158. #line 77 "C:\Codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceInterface45.tt"
  159. }
  160. #line default
  161. #line hidden
  162. this.Write(" Task<");
  163. #line 80 "C:\Codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceInterface45.tt"
  164. this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name));
  165. #line default
  166. #line hidden
  167. this.Write("Response> ");
  168. #line 80 "C:\Codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceInterface45.tt"
  169. this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name));
  170. #line default
  171. #line hidden
  172. this.Write("Async(System.Threading.CancellationToken cancellationToken = default(Cancellation" +
  173. "Token));\r\n\r\n");
  174. #line 82 "C:\Codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceInterface45.tt"
  175. }
  176. AddSimpleClientMethodInterfaces(operation, false);
  177. #line default
  178. #line hidden
  179. this.Write("\r\n");
  180. #line 88 "C:\Codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceInterface45.tt"
  181. AddAsyncDocumentation(operation.Name);
  182. if(operation.IsDeprecated)
  183. {
  184. #line default
  185. #line hidden
  186. this.Write("\t\t[Obsolete(\"");
  187. #line 93 "C:\Codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceInterface45.tt"
  188. this.Write(this.ToStringHelper.ToStringWithCulture(operation.DeprecationMessage));
  189. #line default
  190. #line hidden
  191. this.Write("\")]\r\n");
  192. #line 94 "C:\Codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceInterface45.tt"
  193. }
  194. #line default
  195. #line hidden
  196. this.Write(" Task<");
  197. #line 97 "C:\Codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceInterface45.tt"
  198. this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name));
  199. #line default
  200. #line hidden
  201. this.Write("Response> ");
  202. #line 97 "C:\Codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceInterface45.tt"
  203. this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name));
  204. #line default
  205. #line hidden
  206. this.Write("Async(");
  207. #line 97 "C:\Codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceInterface45.tt"
  208. this.Write(this.ToStringHelper.ToStringWithCulture(operation.Name));
  209. #line default
  210. #line hidden
  211. this.Write("Request request, CancellationToken cancellationToken = default(CancellationToken)" +
  212. ");\r\n\r\n\t\t#endregion\r\n\t\t");
  213. #line 100 "C:\Codebase\v3\AWSDotNetPublic\generator\ServiceClientGeneratorLib\Generators\SourceFiles\ServiceInterface45.tt"
  214. }
  215. #line default
  216. #line hidden
  217. this.Write("\r\n\t}\r\n}\r\n");
  218. return this.GenerationEnvironment.ToString();
  219. }
  220. }
  221. #line default
  222. #line hidden
  223. }