ngrok-api 0.21.0 → 0.23.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (388) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/Gemfile +1 -1
  4. data/doc/NgrokAPI/Client.html +166 -110
  5. data/doc/NgrokAPI/Error.html +3 -3
  6. data/doc/NgrokAPI/Errors/NotFoundError.html +3 -3
  7. data/doc/NgrokAPI/Errors.html +3 -3
  8. data/doc/NgrokAPI/HttpClient.html +4 -4
  9. data/doc/NgrokAPI/Models/APIKey.html +3 -3
  10. data/doc/NgrokAPI/Models/AWSAuth.html +3 -3
  11. data/doc/NgrokAPI/Models/AWSCredentials.html +3 -3
  12. data/doc/NgrokAPI/Models/AWSRole.html +3 -3
  13. data/doc/NgrokAPI/Models/AbuseReport.html +3 -3
  14. data/doc/NgrokAPI/Models/AbuseReportHostname.html +3 -3
  15. data/doc/NgrokAPI/Models/AgentIngress.html +3 -3
  16. data/doc/NgrokAPI/Models/AgentIngressCertJob.html +3 -3
  17. data/doc/NgrokAPI/Models/AgentIngressCertPolicy.html +3 -3
  18. data/doc/NgrokAPI/Models/AgentIngressCertStatus.html +3 -3
  19. data/doc/NgrokAPI/Models/ApplicationSession.html +3 -3
  20. data/doc/NgrokAPI/Models/ApplicationUser.html +3 -3
  21. data/doc/NgrokAPI/Models/BotUser.html +1051 -0
  22. data/doc/NgrokAPI/Models/BrowserSession.html +3 -3
  23. data/doc/NgrokAPI/Models/CertificateAuthority.html +3 -3
  24. data/doc/NgrokAPI/Models/Credential.html +3 -3
  25. data/doc/NgrokAPI/Models/Endpoint.html +3 -3
  26. data/doc/NgrokAPI/Models/EndpointAction.html +669 -0
  27. data/doc/NgrokAPI/Models/EndpointBackend.html +3 -3
  28. data/doc/NgrokAPI/Models/EndpointBackendMutate.html +3 -3
  29. data/doc/NgrokAPI/Models/EndpointCircuitBreaker.html +3 -3
  30. data/doc/NgrokAPI/Models/EndpointCompression.html +3 -3
  31. data/doc/NgrokAPI/Models/EndpointIPPolicy.html +3 -3
  32. data/doc/NgrokAPI/Models/EndpointIPPolicyMutate.html +3 -3
  33. data/doc/NgrokAPI/Models/EndpointMutualTLS.html +3 -3
  34. data/doc/NgrokAPI/Models/EndpointMutualTLSMutate.html +3 -3
  35. data/doc/NgrokAPI/Models/EndpointOAuth.html +3 -3
  36. data/doc/NgrokAPI/Models/EndpointOAuthAmazon.html +3 -3
  37. data/doc/NgrokAPI/Models/EndpointOAuthFacebook.html +3 -3
  38. data/doc/NgrokAPI/Models/EndpointOAuthGitHub.html +3 -3
  39. data/doc/NgrokAPI/Models/EndpointOAuthGitLab.html +3 -3
  40. data/doc/NgrokAPI/Models/EndpointOAuthGoogle.html +3 -3
  41. data/doc/NgrokAPI/Models/EndpointOAuthLinkedIn.html +3 -3
  42. data/doc/NgrokAPI/Models/EndpointOAuthMicrosoft.html +3 -3
  43. data/doc/NgrokAPI/Models/EndpointOAuthProvider.html +3 -3
  44. data/doc/NgrokAPI/Models/EndpointOAuthTwitch.html +3 -3
  45. data/doc/NgrokAPI/Models/EndpointOIDC.html +3 -3
  46. data/doc/NgrokAPI/Models/EndpointPolicy.html +743 -0
  47. data/doc/NgrokAPI/Models/EndpointRequestHeaders.html +3 -3
  48. data/doc/NgrokAPI/Models/EndpointResponseHeaders.html +3 -3
  49. data/doc/NgrokAPI/Models/EndpointRule.html +743 -0
  50. data/doc/NgrokAPI/Models/EndpointSAML.html +18 -96
  51. data/doc/NgrokAPI/Models/EndpointSAMLMutate.html +18 -96
  52. data/doc/NgrokAPI/Models/EndpointTLSTermination.html +3 -3
  53. data/doc/NgrokAPI/Models/EndpointTLSTerminationAtEdge.html +3 -3
  54. data/doc/NgrokAPI/Models/EndpointTrafficPolicy.html +669 -0
  55. data/doc/NgrokAPI/Models/EndpointUserAgentFilter.html +743 -0
  56. data/doc/NgrokAPI/Models/EndpointWebhookValidation.html +3 -3
  57. data/doc/NgrokAPI/Models/EndpointWebsocketTCPConverter.html +3 -3
  58. data/doc/NgrokAPI/Models/EventDestination.html +3 -3
  59. data/doc/NgrokAPI/Models/EventSource.html +19 -167
  60. data/doc/NgrokAPI/Models/EventSourceList.html +3 -3
  61. data/doc/NgrokAPI/Models/EventSourceReplace.html +19 -167
  62. data/doc/NgrokAPI/Models/EventSubscription.html +3 -3
  63. data/doc/NgrokAPI/Models/EventTarget.html +32 -32
  64. data/doc/NgrokAPI/Models/EventTargetAzureLogsIngestion.html +965 -0
  65. data/doc/NgrokAPI/Models/EventTargetCloudwatchLogs.html +3 -3
  66. data/doc/NgrokAPI/Models/EventTargetDatadog.html +3 -3
  67. data/doc/NgrokAPI/Models/EventTargetFirehose.html +3 -3
  68. data/doc/NgrokAPI/Models/EventTargetKinesis.html +3 -3
  69. data/doc/NgrokAPI/Models/FailoverBackend.html +3 -3
  70. data/doc/NgrokAPI/Models/HTTPResponseBackend.html +3 -3
  71. data/doc/NgrokAPI/Models/HTTPSEdge.html +3 -3
  72. data/doc/NgrokAPI/Models/HTTPSEdgeRoute.html +197 -37
  73. data/doc/NgrokAPI/Models/IPPolicy.html +27 -101
  74. data/doc/NgrokAPI/Models/IPPolicyRule.html +3 -3
  75. data/doc/NgrokAPI/Models/IPRestriction.html +3 -3
  76. data/doc/NgrokAPI/Models/IdentityProvider.html +3 -3
  77. data/doc/NgrokAPI/Models/Listable.html +3 -3
  78. data/doc/NgrokAPI/Models/Location.html +3 -3
  79. data/doc/NgrokAPI/Models/Ref.html +3 -3
  80. data/doc/NgrokAPI/Models/ReservedAddr.html +22 -96
  81. data/doc/NgrokAPI/Models/ReservedDomain.html +25 -173
  82. data/doc/NgrokAPI/Models/ReservedDomainCertJob.html +3 -3
  83. data/doc/NgrokAPI/Models/ReservedDomainCertPolicy.html +3 -3
  84. data/doc/NgrokAPI/Models/ReservedDomainCertStatus.html +3 -3
  85. data/doc/NgrokAPI/Models/SSHCertificateAuthority.html +3 -3
  86. data/doc/NgrokAPI/Models/SSHCredential.html +3 -3
  87. data/doc/NgrokAPI/Models/SSHHostCertificate.html +3 -3
  88. data/doc/NgrokAPI/Models/SSHUserCertificate.html +3 -3
  89. data/doc/NgrokAPI/Models/StaticBackend.html +1211 -0
  90. data/doc/NgrokAPI/Models/StaticBackendTLS.html +595 -0
  91. data/doc/NgrokAPI/Models/TCPEdge.html +112 -32
  92. data/doc/NgrokAPI/Models/TLSCertificate.html +3 -3
  93. data/doc/NgrokAPI/Models/TLSCertificateSANs.html +3 -3
  94. data/doc/NgrokAPI/Models/TLSEdge.html +112 -32
  95. data/doc/NgrokAPI/Models/Tunnel.html +3 -3
  96. data/doc/NgrokAPI/Models/TunnelGroupBackend.html +3 -3
  97. data/doc/NgrokAPI/Models/TunnelSession.html +3 -3
  98. data/doc/NgrokAPI/Models/UserAgent.html +3 -3
  99. data/doc/NgrokAPI/Models/WeightedBackend.html +3 -3
  100. data/doc/NgrokAPI/Models.html +5 -5
  101. data/doc/NgrokAPI/PagedIterator.html +3 -3
  102. data/doc/NgrokAPI/Services/APIKeysClient.html +4 -4
  103. data/doc/NgrokAPI/Services/AbuseReportsClient.html +4 -4
  104. data/doc/NgrokAPI/Services/AgentIngressesClient.html +3 -3
  105. data/doc/NgrokAPI/Services/ApplicationSessionsClient.html +3 -3
  106. data/doc/NgrokAPI/Services/ApplicationUsersClient.html +3 -3
  107. data/doc/NgrokAPI/Services/BotUsersClient.html +1717 -0
  108. data/doc/NgrokAPI/Services/CertificateAuthoritiesClient.html +4 -4
  109. data/doc/NgrokAPI/Services/CredentialsClient.html +10 -10
  110. data/doc/NgrokAPI/Services/EdgeRouteBackendModuleClient.html +3 -3
  111. data/doc/NgrokAPI/Services/EdgeRouteCircuitBreakerModuleClient.html +3 -3
  112. data/doc/NgrokAPI/Services/EdgeRouteCompressionModuleClient.html +3 -3
  113. data/doc/NgrokAPI/Services/EdgeRouteIPRestrictionModuleClient.html +3 -3
  114. data/doc/NgrokAPI/Services/EdgeRouteOAuthModuleClient.html +3 -3
  115. data/doc/NgrokAPI/Services/EdgeRouteOIDCModuleClient.html +3 -3
  116. data/doc/NgrokAPI/Services/EdgeRoutePolicyModuleClient.html +1149 -0
  117. data/doc/NgrokAPI/Services/EdgeRouteRequestHeadersModuleClient.html +3 -3
  118. data/doc/NgrokAPI/Services/EdgeRouteResponseHeadersModuleClient.html +3 -3
  119. data/doc/NgrokAPI/Services/EdgeRouteSAMLModuleClient.html +3 -3
  120. data/doc/NgrokAPI/Services/EdgeRouteTrafficPolicyModuleClient.html +1149 -0
  121. data/doc/NgrokAPI/Services/EdgeRouteUserAgentFilterModuleClient.html +1149 -0
  122. data/doc/NgrokAPI/Services/EdgeRouteWebhookVerificationModuleClient.html +3 -3
  123. data/doc/NgrokAPI/Services/EdgeRouteWebsocketTCPConverterModuleClient.html +3 -3
  124. data/doc/NgrokAPI/Services/EdgesHTTPSClient.html +3 -3
  125. data/doc/NgrokAPI/Services/EdgesHTTPSRoutesClient.html +233 -93
  126. data/doc/NgrokAPI/Services/EdgesTCPClient.html +159 -79
  127. data/doc/NgrokAPI/Services/EdgesTLSClient.html +159 -79
  128. data/doc/NgrokAPI/Services/EndpointsClient.html +4 -4
  129. data/doc/NgrokAPI/Services/EventDestinationsClient.html +3 -3
  130. data/doc/NgrokAPI/Services/EventSourcesClient.html +3 -3
  131. data/doc/NgrokAPI/Services/EventSubscriptionsClient.html +7 -7
  132. data/doc/NgrokAPI/Services/FailoverBackendsClient.html +4 -4
  133. data/doc/NgrokAPI/Services/HTTPResponseBackendsClient.html +3 -3
  134. data/doc/NgrokAPI/Services/HTTPSEdgeMutualTLSModuleClient.html +3 -3
  135. data/doc/NgrokAPI/Services/HTTPSEdgeTLSTerminationModuleClient.html +3 -3
  136. data/doc/NgrokAPI/Services/IPPoliciesClient.html +4 -4
  137. data/doc/NgrokAPI/Services/IPPolicyRulesClient.html +4 -4
  138. data/doc/NgrokAPI/Services/IPRestrictionsClient.html +4 -4
  139. data/doc/NgrokAPI/Services/ReservedAddrsClient.html +4 -4
  140. data/doc/NgrokAPI/Services/ReservedDomainsClient.html +18 -18
  141. data/doc/NgrokAPI/Services/SSHCertificateAuthoritiesClient.html +4 -4
  142. data/doc/NgrokAPI/Services/SSHCredentialsClient.html +6 -6
  143. data/doc/NgrokAPI/Services/SSHHostCertificatesClient.html +4 -4
  144. data/doc/NgrokAPI/Services/SSHUserCertificatesClient.html +8 -8
  145. data/doc/NgrokAPI/Services/StaticBackendsClient.html +1879 -0
  146. data/doc/NgrokAPI/Services/TCPEdgeBackendModuleClient.html +3 -3
  147. data/doc/NgrokAPI/Services/TCPEdgeIPRestrictionModuleClient.html +3 -3
  148. data/doc/NgrokAPI/Services/TCPEdgePolicyModuleClient.html +1039 -0
  149. data/doc/NgrokAPI/Services/TCPEdgeTrafficPolicyModuleClient.html +1039 -0
  150. data/doc/NgrokAPI/Services/TLSCertificatesClient.html +8 -8
  151. data/doc/NgrokAPI/Services/TLSEdgeBackendModuleClient.html +3 -3
  152. data/doc/NgrokAPI/Services/TLSEdgeIPRestrictionModuleClient.html +3 -3
  153. data/doc/NgrokAPI/Services/TLSEdgeMutualTLSModuleClient.html +3 -3
  154. data/doc/NgrokAPI/Services/TLSEdgePolicyModuleClient.html +1039 -0
  155. data/doc/NgrokAPI/Services/TLSEdgeTLSTerminationModuleClient.html +3 -3
  156. data/doc/NgrokAPI/Services/TLSEdgeTrafficPolicyModuleClient.html +1039 -0
  157. data/doc/NgrokAPI/Services/TunnelGroupBackendsClient.html +4 -4
  158. data/doc/NgrokAPI/Services/TunnelSessionsClient.html +6 -6
  159. data/doc/NgrokAPI/Services/TunnelsClient.html +4 -4
  160. data/doc/NgrokAPI/Services/WeightedBackendsClient.html +4 -4
  161. data/doc/NgrokAPI/Services.html +5 -5
  162. data/doc/NgrokAPI.html +4 -4
  163. data/doc/_index.html +88 -4
  164. data/doc/class_list.html +1 -1
  165. data/doc/file.README.html +3 -3
  166. data/doc/frames.html +10 -5
  167. data/doc/index.html +3 -3
  168. data/doc/method_list.html +1752 -832
  169. data/doc/top-level-namespace.html +3 -3
  170. data/docs/NgrokAPI/Client.html +166 -110
  171. data/docs/NgrokAPI/Error.html +3 -3
  172. data/docs/NgrokAPI/Errors/NotFoundError.html +3 -3
  173. data/docs/NgrokAPI/Errors.html +3 -3
  174. data/docs/NgrokAPI/HttpClient.html +4 -4
  175. data/docs/NgrokAPI/Models/APIKey.html +3 -3
  176. data/docs/NgrokAPI/Models/AWSAuth.html +3 -3
  177. data/docs/NgrokAPI/Models/AWSCredentials.html +3 -3
  178. data/docs/NgrokAPI/Models/AWSRole.html +3 -3
  179. data/docs/NgrokAPI/Models/AbuseReport.html +3 -3
  180. data/docs/NgrokAPI/Models/AbuseReportHostname.html +3 -3
  181. data/docs/NgrokAPI/Models/AgentIngress.html +3 -3
  182. data/docs/NgrokAPI/Models/AgentIngressCertJob.html +3 -3
  183. data/docs/NgrokAPI/Models/AgentIngressCertPolicy.html +3 -3
  184. data/docs/NgrokAPI/Models/AgentIngressCertStatus.html +3 -3
  185. data/docs/NgrokAPI/Models/ApplicationSession.html +3 -3
  186. data/docs/NgrokAPI/Models/ApplicationUser.html +3 -3
  187. data/docs/NgrokAPI/Models/BotUser.html +1051 -0
  188. data/docs/NgrokAPI/Models/BrowserSession.html +3 -3
  189. data/docs/NgrokAPI/Models/CertificateAuthority.html +3 -3
  190. data/docs/NgrokAPI/Models/Credential.html +3 -3
  191. data/docs/NgrokAPI/Models/Endpoint.html +3 -3
  192. data/docs/NgrokAPI/Models/EndpointAction.html +669 -0
  193. data/docs/NgrokAPI/Models/EndpointBackend.html +3 -3
  194. data/docs/NgrokAPI/Models/EndpointBackendMutate.html +3 -3
  195. data/docs/NgrokAPI/Models/EndpointCircuitBreaker.html +3 -3
  196. data/docs/NgrokAPI/Models/EndpointCompression.html +3 -3
  197. data/docs/NgrokAPI/Models/EndpointIPPolicy.html +3 -3
  198. data/docs/NgrokAPI/Models/EndpointIPPolicyMutate.html +3 -3
  199. data/docs/NgrokAPI/Models/EndpointMutualTLS.html +3 -3
  200. data/docs/NgrokAPI/Models/EndpointMutualTLSMutate.html +3 -3
  201. data/docs/NgrokAPI/Models/EndpointOAuth.html +3 -3
  202. data/docs/NgrokAPI/Models/EndpointOAuthAmazon.html +3 -3
  203. data/docs/NgrokAPI/Models/EndpointOAuthFacebook.html +3 -3
  204. data/docs/NgrokAPI/Models/EndpointOAuthGitHub.html +3 -3
  205. data/docs/NgrokAPI/Models/EndpointOAuthGitLab.html +3 -3
  206. data/docs/NgrokAPI/Models/EndpointOAuthGoogle.html +3 -3
  207. data/docs/NgrokAPI/Models/EndpointOAuthLinkedIn.html +3 -3
  208. data/docs/NgrokAPI/Models/EndpointOAuthMicrosoft.html +3 -3
  209. data/docs/NgrokAPI/Models/EndpointOAuthProvider.html +3 -3
  210. data/docs/NgrokAPI/Models/EndpointOAuthTwitch.html +3 -3
  211. data/docs/NgrokAPI/Models/EndpointOIDC.html +3 -3
  212. data/docs/NgrokAPI/Models/EndpointPolicy.html +743 -0
  213. data/docs/NgrokAPI/Models/EndpointRequestHeaders.html +3 -3
  214. data/docs/NgrokAPI/Models/EndpointResponseHeaders.html +3 -3
  215. data/docs/NgrokAPI/Models/EndpointRule.html +743 -0
  216. data/docs/NgrokAPI/Models/EndpointSAML.html +18 -96
  217. data/docs/NgrokAPI/Models/EndpointSAMLMutate.html +18 -96
  218. data/docs/NgrokAPI/Models/EndpointTLSTermination.html +3 -3
  219. data/docs/NgrokAPI/Models/EndpointTLSTerminationAtEdge.html +3 -3
  220. data/docs/NgrokAPI/Models/EndpointTrafficPolicy.html +669 -0
  221. data/docs/NgrokAPI/Models/EndpointUserAgentFilter.html +743 -0
  222. data/docs/NgrokAPI/Models/EndpointWebhookValidation.html +3 -3
  223. data/docs/NgrokAPI/Models/EndpointWebsocketTCPConverter.html +3 -3
  224. data/docs/NgrokAPI/Models/EventDestination.html +3 -3
  225. data/docs/NgrokAPI/Models/EventSource.html +19 -167
  226. data/docs/NgrokAPI/Models/EventSourceList.html +3 -3
  227. data/docs/NgrokAPI/Models/EventSourceReplace.html +19 -167
  228. data/docs/NgrokAPI/Models/EventSubscription.html +3 -3
  229. data/docs/NgrokAPI/Models/EventTarget.html +32 -32
  230. data/docs/NgrokAPI/Models/EventTargetAzureLogsIngestion.html +965 -0
  231. data/docs/NgrokAPI/Models/EventTargetCloudwatchLogs.html +3 -3
  232. data/docs/NgrokAPI/Models/EventTargetDatadog.html +3 -3
  233. data/docs/NgrokAPI/Models/EventTargetFirehose.html +3 -3
  234. data/docs/NgrokAPI/Models/EventTargetKinesis.html +3 -3
  235. data/docs/NgrokAPI/Models/FailoverBackend.html +3 -3
  236. data/docs/NgrokAPI/Models/HTTPResponseBackend.html +3 -3
  237. data/docs/NgrokAPI/Models/HTTPSEdge.html +3 -3
  238. data/docs/NgrokAPI/Models/HTTPSEdgeRoute.html +197 -37
  239. data/docs/NgrokAPI/Models/IPPolicy.html +27 -101
  240. data/docs/NgrokAPI/Models/IPPolicyRule.html +3 -3
  241. data/docs/NgrokAPI/Models/IPRestriction.html +3 -3
  242. data/docs/NgrokAPI/Models/IdentityProvider.html +3 -3
  243. data/docs/NgrokAPI/Models/Listable.html +3 -3
  244. data/docs/NgrokAPI/Models/Location.html +3 -3
  245. data/docs/NgrokAPI/Models/Ref.html +3 -3
  246. data/docs/NgrokAPI/Models/ReservedAddr.html +22 -96
  247. data/docs/NgrokAPI/Models/ReservedDomain.html +25 -173
  248. data/docs/NgrokAPI/Models/ReservedDomainCertJob.html +3 -3
  249. data/docs/NgrokAPI/Models/ReservedDomainCertPolicy.html +3 -3
  250. data/docs/NgrokAPI/Models/ReservedDomainCertStatus.html +3 -3
  251. data/docs/NgrokAPI/Models/SSHCertificateAuthority.html +3 -3
  252. data/docs/NgrokAPI/Models/SSHCredential.html +3 -3
  253. data/docs/NgrokAPI/Models/SSHHostCertificate.html +3 -3
  254. data/docs/NgrokAPI/Models/SSHUserCertificate.html +3 -3
  255. data/docs/NgrokAPI/Models/StaticBackend.html +1211 -0
  256. data/docs/NgrokAPI/Models/StaticBackendTLS.html +595 -0
  257. data/docs/NgrokAPI/Models/TCPEdge.html +112 -32
  258. data/docs/NgrokAPI/Models/TLSCertificate.html +3 -3
  259. data/docs/NgrokAPI/Models/TLSCertificateSANs.html +3 -3
  260. data/docs/NgrokAPI/Models/TLSEdge.html +112 -32
  261. data/docs/NgrokAPI/Models/Tunnel.html +3 -3
  262. data/docs/NgrokAPI/Models/TunnelGroupBackend.html +3 -3
  263. data/docs/NgrokAPI/Models/TunnelSession.html +3 -3
  264. data/docs/NgrokAPI/Models/UserAgent.html +3 -3
  265. data/docs/NgrokAPI/Models/WeightedBackend.html +3 -3
  266. data/docs/NgrokAPI/Models.html +5 -5
  267. data/docs/NgrokAPI/PagedIterator.html +3 -3
  268. data/docs/NgrokAPI/Services/APIKeysClient.html +4 -4
  269. data/docs/NgrokAPI/Services/AbuseReportsClient.html +4 -4
  270. data/docs/NgrokAPI/Services/AgentIngressesClient.html +3 -3
  271. data/docs/NgrokAPI/Services/ApplicationSessionsClient.html +3 -3
  272. data/docs/NgrokAPI/Services/ApplicationUsersClient.html +3 -3
  273. data/docs/NgrokAPI/Services/BotUsersClient.html +1717 -0
  274. data/docs/NgrokAPI/Services/CertificateAuthoritiesClient.html +4 -4
  275. data/docs/NgrokAPI/Services/CredentialsClient.html +10 -10
  276. data/docs/NgrokAPI/Services/EdgeRouteBackendModuleClient.html +3 -3
  277. data/docs/NgrokAPI/Services/EdgeRouteCircuitBreakerModuleClient.html +3 -3
  278. data/docs/NgrokAPI/Services/EdgeRouteCompressionModuleClient.html +3 -3
  279. data/docs/NgrokAPI/Services/EdgeRouteIPRestrictionModuleClient.html +3 -3
  280. data/docs/NgrokAPI/Services/EdgeRouteOAuthModuleClient.html +3 -3
  281. data/docs/NgrokAPI/Services/EdgeRouteOIDCModuleClient.html +3 -3
  282. data/docs/NgrokAPI/Services/EdgeRoutePolicyModuleClient.html +1149 -0
  283. data/docs/NgrokAPI/Services/EdgeRouteRequestHeadersModuleClient.html +3 -3
  284. data/docs/NgrokAPI/Services/EdgeRouteResponseHeadersModuleClient.html +3 -3
  285. data/docs/NgrokAPI/Services/EdgeRouteSAMLModuleClient.html +3 -3
  286. data/docs/NgrokAPI/Services/EdgeRouteTrafficPolicyModuleClient.html +1149 -0
  287. data/docs/NgrokAPI/Services/EdgeRouteUserAgentFilterModuleClient.html +1149 -0
  288. data/docs/NgrokAPI/Services/EdgeRouteWebhookVerificationModuleClient.html +3 -3
  289. data/docs/NgrokAPI/Services/EdgeRouteWebsocketTCPConverterModuleClient.html +3 -3
  290. data/docs/NgrokAPI/Services/EdgesHTTPSClient.html +3 -3
  291. data/docs/NgrokAPI/Services/EdgesHTTPSRoutesClient.html +233 -93
  292. data/docs/NgrokAPI/Services/EdgesTCPClient.html +159 -79
  293. data/docs/NgrokAPI/Services/EdgesTLSClient.html +159 -79
  294. data/docs/NgrokAPI/Services/EndpointsClient.html +4 -4
  295. data/docs/NgrokAPI/Services/EventDestinationsClient.html +3 -3
  296. data/docs/NgrokAPI/Services/EventSourcesClient.html +3 -3
  297. data/docs/NgrokAPI/Services/EventSubscriptionsClient.html +7 -7
  298. data/docs/NgrokAPI/Services/FailoverBackendsClient.html +4 -4
  299. data/docs/NgrokAPI/Services/HTTPResponseBackendsClient.html +3 -3
  300. data/docs/NgrokAPI/Services/HTTPSEdgeMutualTLSModuleClient.html +3 -3
  301. data/docs/NgrokAPI/Services/HTTPSEdgeTLSTerminationModuleClient.html +3 -3
  302. data/docs/NgrokAPI/Services/IPPoliciesClient.html +4 -4
  303. data/docs/NgrokAPI/Services/IPPolicyRulesClient.html +4 -4
  304. data/docs/NgrokAPI/Services/IPRestrictionsClient.html +4 -4
  305. data/docs/NgrokAPI/Services/ReservedAddrsClient.html +4 -4
  306. data/docs/NgrokAPI/Services/ReservedDomainsClient.html +18 -18
  307. data/docs/NgrokAPI/Services/SSHCertificateAuthoritiesClient.html +4 -4
  308. data/docs/NgrokAPI/Services/SSHCredentialsClient.html +6 -6
  309. data/docs/NgrokAPI/Services/SSHHostCertificatesClient.html +4 -4
  310. data/docs/NgrokAPI/Services/SSHUserCertificatesClient.html +8 -8
  311. data/docs/NgrokAPI/Services/StaticBackendsClient.html +1879 -0
  312. data/docs/NgrokAPI/Services/TCPEdgeBackendModuleClient.html +3 -3
  313. data/docs/NgrokAPI/Services/TCPEdgeIPRestrictionModuleClient.html +3 -3
  314. data/docs/NgrokAPI/Services/TCPEdgePolicyModuleClient.html +1039 -0
  315. data/docs/NgrokAPI/Services/TCPEdgeTrafficPolicyModuleClient.html +1039 -0
  316. data/docs/NgrokAPI/Services/TLSCertificatesClient.html +8 -8
  317. data/docs/NgrokAPI/Services/TLSEdgeBackendModuleClient.html +3 -3
  318. data/docs/NgrokAPI/Services/TLSEdgeIPRestrictionModuleClient.html +3 -3
  319. data/docs/NgrokAPI/Services/TLSEdgeMutualTLSModuleClient.html +3 -3
  320. data/docs/NgrokAPI/Services/TLSEdgePolicyModuleClient.html +1039 -0
  321. data/docs/NgrokAPI/Services/TLSEdgeTLSTerminationModuleClient.html +3 -3
  322. data/docs/NgrokAPI/Services/TLSEdgeTrafficPolicyModuleClient.html +1039 -0
  323. data/docs/NgrokAPI/Services/TunnelGroupBackendsClient.html +4 -4
  324. data/docs/NgrokAPI/Services/TunnelSessionsClient.html +6 -6
  325. data/docs/NgrokAPI/Services/TunnelsClient.html +4 -4
  326. data/docs/NgrokAPI/Services/WeightedBackendsClient.html +4 -4
  327. data/docs/NgrokAPI/Services.html +5 -5
  328. data/docs/NgrokAPI.html +4 -4
  329. data/docs/_index.html +88 -4
  330. data/docs/class_list.html +1 -1
  331. data/docs/file.README.html +3 -3
  332. data/docs/frames.html +10 -5
  333. data/docs/index.html +3 -3
  334. data/docs/method_list.html +1752 -832
  335. data/docs/top-level-namespace.html +3 -3
  336. data/lib/ngrokapi/client.rb +6 -0
  337. data/lib/ngrokapi/models/bot_user.rb +70 -0
  338. data/lib/ngrokapi/models/endpoint_saml.rb +0 -4
  339. data/lib/ngrokapi/models/endpoint_saml_mutate.rb +0 -4
  340. data/lib/ngrokapi/models/endpoint_traffic_policy.rb +33 -0
  341. data/lib/ngrokapi/models/endpoint_user_agent_filter.rb +35 -0
  342. data/lib/ngrokapi/models/event_source.rb +0 -4
  343. data/lib/ngrokapi/models/event_source_replace.rb +1 -5
  344. data/lib/ngrokapi/models/event_target.rb +3 -3
  345. data/lib/ngrokapi/models/event_target_azure_logs_ingestion.rb +41 -0
  346. data/lib/ngrokapi/models/https_edge_route.rb +13 -3
  347. data/lib/ngrokapi/models/ip_policy.rb +1 -3
  348. data/lib/ngrokapi/models/reserved_addr.rb +1 -3
  349. data/lib/ngrokapi/models/reserved_domain.rb +0 -4
  350. data/lib/ngrokapi/models/static_backend.rb +80 -0
  351. data/lib/ngrokapi/models/static_backend_tls.rb +31 -0
  352. data/lib/ngrokapi/models/tcp_edge.rb +8 -3
  353. data/lib/ngrokapi/models/tls_edge.rb +8 -3
  354. data/lib/ngrokapi/services/bot_users_client.rb +223 -0
  355. data/lib/ngrokapi/services/credentials_client.rb +2 -2
  356. data/lib/ngrokapi/services/edge_route_traffic_policy_module_client.rb +120 -0
  357. data/lib/ngrokapi/services/edge_route_user_agent_filter_module_client.rb +120 -0
  358. data/lib/ngrokapi/services/edges_https_routes_client.rb +20 -4
  359. data/lib/ngrokapi/services/edges_tcp_client.rb +12 -4
  360. data/lib/ngrokapi/services/edges_tls_client.rb +12 -4
  361. data/lib/ngrokapi/services/reserved_domains_client.rb +6 -6
  362. data/lib/ngrokapi/services/static_backends_client.rb +242 -0
  363. data/lib/ngrokapi/services/tcp_edge_traffic_policy_module_client.rb +108 -0
  364. data/lib/ngrokapi/services/tls_edge_traffic_policy_module_client.rb +108 -0
  365. data/lib/ngrokapi/version.rb +1 -1
  366. data/spec/ngrokapi/client_spec.rb +8 -0
  367. data/spec/ngrokapi/models/bot_user_spec.rb +44 -0
  368. data/spec/ngrokapi/models/endpoint_traffic_policy_spec.rb +23 -0
  369. data/spec/ngrokapi/models/endpoint_user_agent_filter_spec.rb +23 -0
  370. data/spec/ngrokapi/models/event_target_azure_logs_ingestion_spec.rb +23 -0
  371. data/spec/ngrokapi/models/https_edge_route_spec.rb +7 -1
  372. data/spec/ngrokapi/models/static_backend_spec.rb +50 -0
  373. data/spec/ngrokapi/models/static_backend_tls_spec.rb +23 -0
  374. data/spec/ngrokapi/models/tcp_edge_spec.rb +4 -1
  375. data/spec/ngrokapi/models/tls_edge_spec.rb +4 -1
  376. data/spec/ngrokapi/services/bot_users_client_spec.rb +178 -0
  377. data/spec/ngrokapi/services/credentials_client_spec.rb +4 -2
  378. data/spec/ngrokapi/services/edge_route_traffic_policy_module_client_spec.rb +139 -0
  379. data/spec/ngrokapi/services/edge_route_user_agent_filter_module_client_spec.rb +139 -0
  380. data/spec/ngrokapi/services/edges_https_routes_client_spec.rb +24 -4
  381. data/spec/ngrokapi/services/edges_tcp_client_spec.rb +16 -4
  382. data/spec/ngrokapi/services/edges_tls_client_spec.rb +16 -4
  383. data/spec/ngrokapi/services/reserved_domains_client_spec.rb +8 -4
  384. data/spec/ngrokapi/services/static_backends_client_spec.rb +194 -0
  385. data/spec/ngrokapi/services/tcp_edge_traffic_policy_module_client_spec.rb +125 -0
  386. data/spec/ngrokapi/services/tls_edge_traffic_policy_module_client_spec.rb +125 -0
  387. data/spec/spec_helper.rb +59 -0
  388. metadata +62 -2
@@ -0,0 +1,23 @@
1
+ # Code generated for API Clients. DO NOT EDIT.
2
+
3
+ require 'spec_helper'
4
+
5
+ RSpec.describe NgrokAPI::Models::EndpointTrafficPolicy do
6
+ before(:each) do
7
+ @client = class_double("EndpointTrafficPolicysClient")
8
+ @endpoint_traffic_policy = NgrokAPI::Models::EndpointTrafficPolicy.new(client: @client, attrs: endpoint_traffic_policy_result)
9
+ end
10
+
11
+ describe "#==" do
12
+ it "is equal if the results are the same" do
13
+ other = NgrokAPI::Models::EndpointTrafficPolicy.new(client: @client, attrs: endpoint_traffic_policy_result)
14
+ expect(@endpoint_traffic_policy == other).to eq true
15
+ end
16
+ end
17
+
18
+ describe "#to_s" do
19
+ it "stringifies as result.to_s" do
20
+ expect(@endpoint_traffic_policy.to_s).to eq endpoint_traffic_policy_result.to_s
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,23 @@
1
+ # Code generated for API Clients. DO NOT EDIT.
2
+
3
+ require 'spec_helper'
4
+
5
+ RSpec.describe NgrokAPI::Models::EndpointUserAgentFilter do
6
+ before(:each) do
7
+ @client = class_double("EndpointUserAgentFiltersClient")
8
+ @endpoint_user_agent_filter = NgrokAPI::Models::EndpointUserAgentFilter.new(client: @client, attrs: endpoint_user_agent_filter_result)
9
+ end
10
+
11
+ describe "#==" do
12
+ it "is equal if the results are the same" do
13
+ other = NgrokAPI::Models::EndpointUserAgentFilter.new(client: @client, attrs: endpoint_user_agent_filter_result)
14
+ expect(@endpoint_user_agent_filter == other).to eq true
15
+ end
16
+ end
17
+
18
+ describe "#to_s" do
19
+ it "stringifies as result.to_s" do
20
+ expect(@endpoint_user_agent_filter.to_s).to eq endpoint_user_agent_filter_result.to_s
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,23 @@
1
+ # Code generated for API Clients. DO NOT EDIT.
2
+
3
+ require 'spec_helper'
4
+
5
+ RSpec.describe NgrokAPI::Models::EventTargetAzureLogsIngestion do
6
+ before(:each) do
7
+ @client = class_double("EventTargetAzureLogsIngestionsClient")
8
+ @event_target_azure_logs_ingestion = NgrokAPI::Models::EventTargetAzureLogsIngestion.new(client: @client, attrs: event_target_azure_logs_ingestion_result)
9
+ end
10
+
11
+ describe "#==" do
12
+ it "is equal if the results are the same" do
13
+ other = NgrokAPI::Models::EventTargetAzureLogsIngestion.new(client: @client, attrs: event_target_azure_logs_ingestion_result)
14
+ expect(@event_target_azure_logs_ingestion == other).to eq true
15
+ end
16
+ end
17
+
18
+ describe "#to_s" do
19
+ it "stringifies as result.to_s" do
20
+ expect(@event_target_azure_logs_ingestion.to_s).to eq event_target_azure_logs_ingestion_result.to_s
21
+ end
22
+ end
23
+ end
@@ -38,6 +38,8 @@ RSpec.describe NgrokAPI::Models::HTTPSEdgeRoute do
38
38
  new_saml = 'New saml'
39
39
  new_oidc = 'New oidc'
40
40
  new_websocket_tcp_converter = 'New websocket_tcp_converter'
41
+ new_user_agent_filter = 'New user_agent_filter'
42
+ new_traffic_policy = 'New traffic_policy'
41
43
  expect(@https_edge_route.client).to receive(:update)
42
44
  @https_edge_route.update(
43
45
  match_type: new_match_type,
@@ -54,7 +56,9 @@ RSpec.describe NgrokAPI::Models::HTTPSEdgeRoute do
54
56
  oauth: new_oauth,
55
57
  saml: new_saml,
56
58
  oidc: new_oidc,
57
- websocket_tcp_converter: new_websocket_tcp_converter
59
+ websocket_tcp_converter: new_websocket_tcp_converter,
60
+ user_agent_filter: new_user_agent_filter,
61
+ traffic_policy: new_traffic_policy
58
62
  )
59
63
  expect(@https_edge_route.match_type).to eq new_match_type
60
64
  expect(@https_edge_route.match).to eq new_match
@@ -71,6 +75,8 @@ RSpec.describe NgrokAPI::Models::HTTPSEdgeRoute do
71
75
  expect(@https_edge_route.saml).to eq new_saml
72
76
  expect(@https_edge_route.oidc).to eq new_oidc
73
77
  expect(@https_edge_route.websocket_tcp_converter).to eq new_websocket_tcp_converter
78
+ expect(@https_edge_route.user_agent_filter).to eq new_user_agent_filter
79
+ expect(@https_edge_route.traffic_policy).to eq new_traffic_policy
74
80
  end
75
81
  end
76
82
 
@@ -0,0 +1,50 @@
1
+ # Code generated for API Clients. DO NOT EDIT.
2
+
3
+ require 'spec_helper'
4
+
5
+ RSpec.describe NgrokAPI::Models::StaticBackend do
6
+ before(:each) do
7
+ @client = class_double("StaticBackendsClient")
8
+ @static_backend = NgrokAPI::Models::StaticBackend.new(client: @client, attrs: static_backend_result)
9
+ end
10
+
11
+ describe "#==" do
12
+ it "is equal if the results are the same" do
13
+ other = NgrokAPI::Models::StaticBackend.new(client: @client, attrs: static_backend_result)
14
+ expect(@static_backend == other).to eq true
15
+ end
16
+ end
17
+
18
+ describe "#to_s" do
19
+ it "stringifies as result.to_s" do
20
+ expect(@static_backend.to_s).to eq static_backend_result.to_s
21
+ end
22
+ end
23
+
24
+ describe "#delete" do
25
+ it "calls delete on the client" do
26
+ expect(@static_backend.client).to receive(:delete)
27
+ @static_backend.delete
28
+ end
29
+ end
30
+
31
+ describe "#update" do
32
+ it "calls update on the client" do
33
+ new_description = 'New description'
34
+ new_metadata = 'New metadata'
35
+ new_address = 'New address'
36
+ new_tls = 'New tls'
37
+ expect(@static_backend.client).to receive(:update)
38
+ @static_backend.update(
39
+ description: new_description,
40
+ metadata: new_metadata,
41
+ address: new_address,
42
+ tls: new_tls
43
+ )
44
+ expect(@static_backend.description).to eq new_description
45
+ expect(@static_backend.metadata).to eq new_metadata
46
+ expect(@static_backend.address).to eq new_address
47
+ expect(@static_backend.tls).to eq new_tls
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,23 @@
1
+ # Code generated for API Clients. DO NOT EDIT.
2
+
3
+ require 'spec_helper'
4
+
5
+ RSpec.describe NgrokAPI::Models::StaticBackendTLS do
6
+ before(:each) do
7
+ @client = class_double("StaticBackendTLSsClient")
8
+ @static_backend_tls = NgrokAPI::Models::StaticBackendTLS.new(client: @client, attrs: static_backend_tls_result)
9
+ end
10
+
11
+ describe "#==" do
12
+ it "is equal if the results are the same" do
13
+ other = NgrokAPI::Models::StaticBackendTLS.new(client: @client, attrs: static_backend_tls_result)
14
+ expect(@static_backend_tls == other).to eq true
15
+ end
16
+ end
17
+
18
+ describe "#to_s" do
19
+ it "stringifies as result.to_s" do
20
+ expect(@static_backend_tls.to_s).to eq static_backend_tls_result.to_s
21
+ end
22
+ end
23
+ end
@@ -28,19 +28,22 @@ RSpec.describe NgrokAPI::Models::TCPEdge do
28
28
  new_hostports = 'New hostports'
29
29
  new_backend = 'New backend'
30
30
  new_ip_restriction = 'New ip_restriction'
31
+ new_traffic_policy = 'New traffic_policy'
31
32
  expect(@tcp_edge.client).to receive(:update)
32
33
  @tcp_edge.update(
33
34
  description: new_description,
34
35
  metadata: new_metadata,
35
36
  hostports: new_hostports,
36
37
  backend: new_backend,
37
- ip_restriction: new_ip_restriction
38
+ ip_restriction: new_ip_restriction,
39
+ traffic_policy: new_traffic_policy
38
40
  )
39
41
  expect(@tcp_edge.description).to eq new_description
40
42
  expect(@tcp_edge.metadata).to eq new_metadata
41
43
  expect(@tcp_edge.hostports).to eq new_hostports
42
44
  expect(@tcp_edge.backend).to eq new_backend
43
45
  expect(@tcp_edge.ip_restriction).to eq new_ip_restriction
46
+ expect(@tcp_edge.traffic_policy).to eq new_traffic_policy
44
47
  end
45
48
  end
46
49
 
@@ -30,6 +30,7 @@ RSpec.describe NgrokAPI::Models::TLSEdge do
30
30
  new_ip_restriction = 'New ip_restriction'
31
31
  new_mutual_tls = 'New mutual_tls'
32
32
  new_tls_termination = 'New tls_termination'
33
+ new_traffic_policy = 'New traffic_policy'
33
34
  expect(@tls_edge.client).to receive(:update)
34
35
  @tls_edge.update(
35
36
  description: new_description,
@@ -38,7 +39,8 @@ RSpec.describe NgrokAPI::Models::TLSEdge do
38
39
  backend: new_backend,
39
40
  ip_restriction: new_ip_restriction,
40
41
  mutual_tls: new_mutual_tls,
41
- tls_termination: new_tls_termination
42
+ tls_termination: new_tls_termination,
43
+ traffic_policy: new_traffic_policy
42
44
  )
43
45
  expect(@tls_edge.description).to eq new_description
44
46
  expect(@tls_edge.metadata).to eq new_metadata
@@ -47,6 +49,7 @@ RSpec.describe NgrokAPI::Models::TLSEdge do
47
49
  expect(@tls_edge.ip_restriction).to eq new_ip_restriction
48
50
  expect(@tls_edge.mutual_tls).to eq new_mutual_tls
49
51
  expect(@tls_edge.tls_termination).to eq new_tls_termination
52
+ expect(@tls_edge.traffic_policy).to eq new_traffic_policy
50
53
  end
51
54
  end
52
55
 
@@ -0,0 +1,178 @@
1
+ # Code generated for API Clients. DO NOT EDIT.
2
+
3
+ require 'spec_helper'
4
+
5
+ RSpec.describe NgrokAPI::Services::BotUsersClient do
6
+ let(:base_url) { 'https://api.ngrok.com' }
7
+ let(:path) { '/bot_users' }
8
+ let(:not_found) do
9
+ NgrokAPI::Errors::NotFoundError.new(response: bot_user_result)
10
+ end
11
+
12
+ before(:each) do
13
+ @client = class_double("HttpClient")
14
+ @bot_users_client = NgrokAPI::Services::BotUsersClient.new(client: @client)
15
+ end
16
+
17
+ describe "#create" do
18
+ it "will make a post request and return an instance of NgrokAPI::Models::BotUser" do
19
+ path = '/bot_users'
20
+ replacements = {
21
+ }
22
+ data = {}
23
+ data[:name] = "New name"
24
+ data[:active] = "New active"
25
+ expect(@client).to receive(:post).with(path % replacements, data: data).
26
+ and_return(bot_user_result)
27
+ result = @bot_users_client.create(
28
+ name: "New name",
29
+ active: "New active"
30
+ )
31
+ expect(result.class).to eq(NgrokAPI::Models::BotUser)
32
+ end
33
+ end
34
+
35
+ describe "#create!" do
36
+ it "will make a post request and return an instance of NgrokAPI::Models::BotUser" do
37
+ path = '/bot_users'
38
+ replacements = {
39
+ }
40
+ data = {}
41
+ data[:name] = "New name"
42
+ data[:active] = "New active"
43
+ expect(@client).to receive(:post).with(path % replacements, data: data).
44
+ and_return(bot_user_result)
45
+ result = @bot_users_client.create(
46
+ name: "New name",
47
+ active: "New active"
48
+ )
49
+ expect(result.class).to eq(NgrokAPI::Models::BotUser)
50
+ # expect(result.id).to eq(bot_user_result["id"])
51
+ end
52
+ end
53
+
54
+ describe "#delete" do
55
+ it "will make a delete request" do
56
+ path = '/bot_users/%{id}'
57
+ replacements = {
58
+ id: api_key_result["id"],
59
+ }
60
+ expect(@client).to receive(:delete).with(path % replacements).and_return(nil)
61
+ @bot_users_client.delete(
62
+ id: api_key_result["id"]
63
+ )
64
+ end
65
+ end
66
+
67
+ describe "#delete!" do
68
+ it "will make a delete request" do
69
+ path = '/bot_users/%{id}'
70
+ replacements = {
71
+ id: api_key_result["id"],
72
+ }
73
+ expect(@client).to receive(:delete).with(path % replacements, danger: true).and_return(nil)
74
+ @bot_users_client.delete!(
75
+ id: api_key_result["id"]
76
+ )
77
+ end
78
+
79
+ it "will make a delete request and return NotFoundError if 404" do
80
+ path = '/bot_users/%{id}'
81
+ replacements = {
82
+ id: api_key_result["id"],
83
+ }
84
+ expect do
85
+ expect(@client).to receive(:delete).with(path % replacements, danger: true).
86
+ and_raise(NgrokAPI::Errors::NotFoundError)
87
+ result = @bot_users_client.delete!(
88
+ id: api_key_result["id"]
89
+ )
90
+ expect(result).to be nil
91
+ end.to raise_error(NgrokAPI::Errors::NotFoundError)
92
+ end
93
+ end
94
+
95
+ describe "#get" do
96
+ it "will make a get request and return an instance of NgrokAPI::Models::BotUser" do
97
+ path = '/bot_users/%{id}'
98
+ replacements = {
99
+ id: bot_user_result["id"],
100
+ }
101
+ data = {}
102
+ expect(@client).to receive(:get).with(path % replacements, data: data).
103
+ and_return(bot_user_result)
104
+ result = @bot_users_client.get(
105
+ id: bot_user_result["id"]
106
+ )
107
+ expect(result.class).to eq(NgrokAPI::Models::BotUser)
108
+ end
109
+ end
110
+
111
+ describe "#get!" do
112
+ it "will make a get request and return an instance of NgrokAPI::Models::BotUser" do
113
+ path = '/bot_users/%{id}'
114
+ replacements = {
115
+ id: bot_user_result["id"],
116
+ }
117
+ data = {}
118
+ expect(@client).to receive(:get).with(path % replacements, data: data).
119
+ and_return(bot_user_result)
120
+ result = @bot_users_client.get(
121
+ id: bot_user_result["id"]
122
+ )
123
+ expect(result.class).to eq(NgrokAPI::Models::BotUser)
124
+ # expect(result.id).to eq(bot_user_result["id"])
125
+ end
126
+ end
127
+
128
+ describe "#list" do
129
+ it "will make a call to list (a GET request) and return a NgrokAPI::Models::Listable" do
130
+ expect(@client).to receive(:list).
131
+ and_return(bot_user_results)
132
+ url = base_url + path + "?before_id=" + api_key_result["id"] + "&limit=1"
133
+ result = @bot_users_client.list(url: url)
134
+ expect(result.class).to eq(NgrokAPI::Models::Listable)
135
+ end
136
+ end
137
+
138
+ describe "#update" do
139
+ it "will make a patch request and return an instance of NgrokAPI::Models::BotUser" do
140
+ path = '/bot_users/%{id}'
141
+ replacements = {
142
+ id: bot_user_result["id"],
143
+ }
144
+ data = {}
145
+ data[:name] = "New name"
146
+ data[:active] = "New active"
147
+ expect(@client).to receive(:patch).with(path % replacements, data: data).
148
+ and_return(bot_user_result)
149
+ result = @bot_users_client.update(
150
+ id: bot_user_result["id"],
151
+ name: "New name",
152
+ active: "New active"
153
+ )
154
+ expect(result.class).to eq(NgrokAPI::Models::BotUser)
155
+ end
156
+ end
157
+
158
+ describe "#update!" do
159
+ it "will make a patch request and return an instance of NgrokAPI::Models::BotUser" do
160
+ path = '/bot_users/%{id}'
161
+ replacements = {
162
+ id: bot_user_result["id"],
163
+ }
164
+ data = {}
165
+ data[:name] = "New name"
166
+ data[:active] = "New active"
167
+ expect(@client).to receive(:patch).with(path % replacements, data: data).
168
+ and_return(bot_user_result)
169
+ result = @bot_users_client.update(
170
+ id: bot_user_result["id"],
171
+ name: "New name",
172
+ active: "New active"
173
+ )
174
+ expect(result.class).to eq(NgrokAPI::Models::BotUser)
175
+ # expect(result.id).to eq(bot_user_result["id"])
176
+ end
177
+ end
178
+ end
@@ -31,7 +31,8 @@ RSpec.describe NgrokAPI::Services::CredentialsClient do
31
31
  metadata: "New metadata",
32
32
  acl: "New acl",
33
33
  owner_id: "New owner_id",
34
- owner_email: "New owner_email"
34
+ owner_email: "New owner_email",
35
+ precomputed_token: "New precomputed_token"
35
36
  )
36
37
  expect(result.class).to eq(NgrokAPI::Models::Credential)
37
38
  end
@@ -54,7 +55,8 @@ RSpec.describe NgrokAPI::Services::CredentialsClient do
54
55
  metadata: "New metadata",
55
56
  acl: "New acl",
56
57
  owner_id: "New owner_id",
57
- owner_email: "New owner_email"
58
+ owner_email: "New owner_email",
59
+ precomputed_token: "New precomputed_token"
58
60
  )
59
61
  expect(result.class).to eq(NgrokAPI::Models::Credential)
60
62
  # expect(result.id).to eq(credential_result["id"])
@@ -0,0 +1,139 @@
1
+ # Code generated for API Clients. DO NOT EDIT.
2
+
3
+ require 'spec_helper'
4
+
5
+ RSpec.describe NgrokAPI::Services::EdgeRouteTrafficPolicyModuleClient do
6
+ let(:base_url) { 'https://api.ngrok.com' }
7
+ let(:path) { '/edges/https/%{edge_id}/routes/%{id}/traffic_policy' }
8
+ let(:not_found) do
9
+ NgrokAPI::Errors::NotFoundError.new(response: endpoint_traffic_policy_result)
10
+ end
11
+
12
+ before(:each) do
13
+ @client = class_double("HttpClient")
14
+ @edge_route_traffic_policy_module_client = NgrokAPI::Services::EdgeRouteTrafficPolicyModuleClient.new(client: @client)
15
+ end
16
+
17
+ describe "#replace" do
18
+ it "will make a put request and return an instance of NgrokAPI::Models::EndpointTrafficPolicy" do
19
+ path = '/edges/https/%{edge_id}/routes/%{id}/traffic_policy'
20
+ replacements = {
21
+ edge_id: endpoint_traffic_policy_result["edge_id"],
22
+ id: endpoint_traffic_policy_result["id"],
23
+ }
24
+ data = "New a_module"
25
+ expect(@client).to receive(:put).with(path % replacements, data: data).
26
+ and_return(endpoint_traffic_policy_result)
27
+ result = @edge_route_traffic_policy_module_client.replace(
28
+ edge_id: endpoint_traffic_policy_result["edge_id"],
29
+ id: endpoint_traffic_policy_result["id"],
30
+ a_module: "New a_module"
31
+ )
32
+ expect(result.class).to eq(NgrokAPI::Models::EndpointTrafficPolicy)
33
+ end
34
+ end
35
+
36
+ describe "#replace!" do
37
+ it "will make a put request and return an instance of NgrokAPI::Models::EndpointTrafficPolicy" do
38
+ path = '/edges/https/%{edge_id}/routes/%{id}/traffic_policy'
39
+ replacements = {
40
+ edge_id: endpoint_traffic_policy_result["edge_id"],
41
+ id: endpoint_traffic_policy_result["id"],
42
+ }
43
+ data = "New a_module"
44
+ expect(@client).to receive(:put).with(path % replacements, data: data).
45
+ and_return(endpoint_traffic_policy_result)
46
+ result = @edge_route_traffic_policy_module_client.replace(
47
+ edge_id: endpoint_traffic_policy_result["edge_id"],
48
+ id: endpoint_traffic_policy_result["id"],
49
+ a_module: "New a_module"
50
+ )
51
+ expect(result.class).to eq(NgrokAPI::Models::EndpointTrafficPolicy)
52
+ # expect(result.id).to eq(endpoint_traffic_policy_result["id"])
53
+ end
54
+ end
55
+
56
+ describe "#get" do
57
+ it "will make a get request and return an instance of NgrokAPI::Models::EndpointTrafficPolicy" do
58
+ path = '/edges/https/%{edge_id}/routes/%{id}/traffic_policy'
59
+ replacements = {
60
+ edge_id: endpoint_traffic_policy_result["edge_id"],
61
+ id: endpoint_traffic_policy_result["id"],
62
+ }
63
+ data = {}
64
+ expect(@client).to receive(:get).with(path % replacements, data: data).
65
+ and_return(endpoint_traffic_policy_result)
66
+ result = @edge_route_traffic_policy_module_client.get(
67
+ edge_id: endpoint_traffic_policy_result["edge_id"],
68
+ id: endpoint_traffic_policy_result["id"]
69
+ )
70
+ expect(result.class).to eq(NgrokAPI::Models::EndpointTrafficPolicy)
71
+ end
72
+ end
73
+
74
+ describe "#get!" do
75
+ it "will make a get request and return an instance of NgrokAPI::Models::EndpointTrafficPolicy" do
76
+ path = '/edges/https/%{edge_id}/routes/%{id}/traffic_policy'
77
+ replacements = {
78
+ edge_id: endpoint_traffic_policy_result["edge_id"],
79
+ id: endpoint_traffic_policy_result["id"],
80
+ }
81
+ data = {}
82
+ expect(@client).to receive(:get).with(path % replacements, data: data).
83
+ and_return(endpoint_traffic_policy_result)
84
+ result = @edge_route_traffic_policy_module_client.get(
85
+ edge_id: endpoint_traffic_policy_result["edge_id"],
86
+ id: endpoint_traffic_policy_result["id"]
87
+ )
88
+ expect(result.class).to eq(NgrokAPI::Models::EndpointTrafficPolicy)
89
+ # expect(result.id).to eq(endpoint_traffic_policy_result["id"])
90
+ end
91
+ end
92
+
93
+ describe "#delete" do
94
+ it "will make a delete request" do
95
+ path = '/edges/https/%{edge_id}/routes/%{id}/traffic_policy'
96
+ replacements = {
97
+ edge_id: api_key_result["edge_id"],
98
+ id: api_key_result["id"],
99
+ }
100
+ expect(@client).to receive(:delete).with(path % replacements).and_return(nil)
101
+ @edge_route_traffic_policy_module_client.delete(
102
+ edge_id: api_key_result["edge_id"],
103
+ id: api_key_result["id"]
104
+ )
105
+ end
106
+ end
107
+
108
+ describe "#delete!" do
109
+ it "will make a delete request" do
110
+ path = '/edges/https/%{edge_id}/routes/%{id}/traffic_policy'
111
+ replacements = {
112
+ edge_id: api_key_result["edge_id"],
113
+ id: api_key_result["id"],
114
+ }
115
+ expect(@client).to receive(:delete).with(path % replacements, danger: true).and_return(nil)
116
+ @edge_route_traffic_policy_module_client.delete!(
117
+ edge_id: api_key_result["edge_id"],
118
+ id: api_key_result["id"]
119
+ )
120
+ end
121
+
122
+ it "will make a delete request and return NotFoundError if 404" do
123
+ path = '/edges/https/%{edge_id}/routes/%{id}/traffic_policy'
124
+ replacements = {
125
+ edge_id: api_key_result["edge_id"],
126
+ id: api_key_result["id"],
127
+ }
128
+ expect do
129
+ expect(@client).to receive(:delete).with(path % replacements, danger: true).
130
+ and_raise(NgrokAPI::Errors::NotFoundError)
131
+ result = @edge_route_traffic_policy_module_client.delete!(
132
+ edge_id: api_key_result["edge_id"],
133
+ id: api_key_result["id"]
134
+ )
135
+ expect(result).to be nil
136
+ end.to raise_error(NgrokAPI::Errors::NotFoundError)
137
+ end
138
+ end
139
+ end