ngrok-api 0.22.0 → 0.23.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (356) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/doc/NgrokAPI/Client.html +19 -19
  4. data/doc/NgrokAPI/Error.html +2 -2
  5. data/doc/NgrokAPI/Errors/NotFoundError.html +2 -2
  6. data/doc/NgrokAPI/Errors.html +2 -2
  7. data/doc/NgrokAPI/HttpClient.html +2 -2
  8. data/doc/NgrokAPI/Models/APIKey.html +2 -2
  9. data/doc/NgrokAPI/Models/AWSAuth.html +2 -2
  10. data/doc/NgrokAPI/Models/AWSCredentials.html +2 -2
  11. data/doc/NgrokAPI/Models/AWSRole.html +2 -2
  12. data/doc/NgrokAPI/Models/AbuseReport.html +2 -2
  13. data/doc/NgrokAPI/Models/AbuseReportHostname.html +2 -2
  14. data/doc/NgrokAPI/Models/AgentIngress.html +2 -2
  15. data/doc/NgrokAPI/Models/AgentIngressCertJob.html +2 -2
  16. data/doc/NgrokAPI/Models/AgentIngressCertPolicy.html +2 -2
  17. data/doc/NgrokAPI/Models/AgentIngressCertStatus.html +2 -2
  18. data/doc/NgrokAPI/Models/ApplicationSession.html +2 -2
  19. data/doc/NgrokAPI/Models/ApplicationUser.html +2 -2
  20. data/doc/NgrokAPI/Models/BotUser.html +2 -2
  21. data/doc/NgrokAPI/Models/BrowserSession.html +2 -2
  22. data/doc/NgrokAPI/Models/CertificateAuthority.html +2 -2
  23. data/doc/NgrokAPI/Models/Credential.html +2 -2
  24. data/doc/NgrokAPI/Models/Endpoint.html +2 -2
  25. data/doc/NgrokAPI/Models/EndpointBackend.html +2 -2
  26. data/doc/NgrokAPI/Models/EndpointBackendMutate.html +2 -2
  27. data/doc/NgrokAPI/Models/EndpointCircuitBreaker.html +2 -2
  28. data/doc/NgrokAPI/Models/EndpointCompression.html +2 -2
  29. data/doc/NgrokAPI/Models/EndpointIPPolicy.html +2 -2
  30. data/doc/NgrokAPI/Models/EndpointIPPolicyMutate.html +2 -2
  31. data/doc/NgrokAPI/Models/EndpointMutualTLS.html +2 -2
  32. data/doc/NgrokAPI/Models/EndpointMutualTLSMutate.html +2 -2
  33. data/doc/NgrokAPI/Models/EndpointOAuth.html +2 -2
  34. data/doc/NgrokAPI/Models/EndpointOAuthAmazon.html +2 -2
  35. data/doc/NgrokAPI/Models/EndpointOAuthFacebook.html +2 -2
  36. data/doc/NgrokAPI/Models/EndpointOAuthGitHub.html +2 -2
  37. data/doc/NgrokAPI/Models/EndpointOAuthGitLab.html +2 -2
  38. data/doc/NgrokAPI/Models/EndpointOAuthGoogle.html +2 -2
  39. data/doc/NgrokAPI/Models/EndpointOAuthLinkedIn.html +2 -2
  40. data/doc/NgrokAPI/Models/EndpointOAuthMicrosoft.html +2 -2
  41. data/doc/NgrokAPI/Models/EndpointOAuthProvider.html +2 -2
  42. data/doc/NgrokAPI/Models/EndpointOAuthTwitch.html +2 -2
  43. data/doc/NgrokAPI/Models/EndpointOIDC.html +2 -2
  44. data/doc/NgrokAPI/Models/EndpointRequestHeaders.html +2 -2
  45. data/doc/NgrokAPI/Models/EndpointResponseHeaders.html +2 -2
  46. data/doc/NgrokAPI/Models/EndpointSAML.html +2 -2
  47. data/doc/NgrokAPI/Models/EndpointSAMLMutate.html +2 -2
  48. data/doc/NgrokAPI/Models/EndpointTLSTermination.html +2 -2
  49. data/doc/NgrokAPI/Models/EndpointTLSTerminationAtEdge.html +2 -2
  50. data/doc/NgrokAPI/Models/EndpointTrafficPolicy.html +669 -0
  51. data/doc/NgrokAPI/Models/EndpointUserAgentFilter.html +2 -2
  52. data/doc/NgrokAPI/Models/EndpointWebhookValidation.html +2 -2
  53. data/doc/NgrokAPI/Models/EndpointWebsocketTCPConverter.html +2 -2
  54. data/doc/NgrokAPI/Models/EventDestination.html +2 -2
  55. data/doc/NgrokAPI/Models/EventSource.html +2 -2
  56. data/doc/NgrokAPI/Models/EventSourceList.html +2 -2
  57. data/doc/NgrokAPI/Models/EventSourceReplace.html +2 -2
  58. data/doc/NgrokAPI/Models/EventSubscription.html +2 -2
  59. data/doc/NgrokAPI/Models/EventTarget.html +91 -17
  60. data/doc/NgrokAPI/Models/EventTargetAzureLogsIngestion.html +965 -0
  61. data/doc/NgrokAPI/Models/EventTargetCloudwatchLogs.html +2 -2
  62. data/doc/NgrokAPI/Models/EventTargetDatadog.html +2 -2
  63. data/doc/NgrokAPI/Models/EventTargetFirehose.html +2 -2
  64. data/doc/NgrokAPI/Models/EventTargetKinesis.html +2 -2
  65. data/doc/NgrokAPI/Models/FailoverBackend.html +2 -2
  66. data/doc/NgrokAPI/Models/HTTPResponseBackend.html +2 -2
  67. data/doc/NgrokAPI/Models/HTTPSEdge.html +2 -2
  68. data/doc/NgrokAPI/Models/HTTPSEdgeRoute.html +36 -36
  69. data/doc/NgrokAPI/Models/IPPolicy.html +2 -2
  70. data/doc/NgrokAPI/Models/IPPolicyRule.html +2 -2
  71. data/doc/NgrokAPI/Models/IPRestriction.html +2 -2
  72. data/doc/NgrokAPI/Models/IdentityProvider.html +2 -2
  73. data/doc/NgrokAPI/Models/Listable.html +2 -2
  74. data/doc/NgrokAPI/Models/Location.html +2 -2
  75. data/doc/NgrokAPI/Models/Ref.html +2 -2
  76. data/doc/NgrokAPI/Models/ReservedAddr.html +2 -2
  77. data/doc/NgrokAPI/Models/ReservedDomain.html +2 -2
  78. data/doc/NgrokAPI/Models/ReservedDomainCertJob.html +2 -2
  79. data/doc/NgrokAPI/Models/ReservedDomainCertPolicy.html +2 -2
  80. data/doc/NgrokAPI/Models/ReservedDomainCertStatus.html +2 -2
  81. data/doc/NgrokAPI/Models/SSHCertificateAuthority.html +2 -2
  82. data/doc/NgrokAPI/Models/SSHCredential.html +2 -2
  83. data/doc/NgrokAPI/Models/SSHHostCertificate.html +2 -2
  84. data/doc/NgrokAPI/Models/SSHUserCertificate.html +2 -2
  85. data/doc/NgrokAPI/Models/StaticBackend.html +2 -2
  86. data/doc/NgrokAPI/Models/StaticBackendTLS.html +2 -2
  87. data/doc/NgrokAPI/Models/TCPEdge.html +15 -15
  88. data/doc/NgrokAPI/Models/TLSCertificate.html +2 -2
  89. data/doc/NgrokAPI/Models/TLSCertificateSANs.html +2 -2
  90. data/doc/NgrokAPI/Models/TLSEdge.html +22 -22
  91. data/doc/NgrokAPI/Models/Tunnel.html +2 -2
  92. data/doc/NgrokAPI/Models/TunnelGroupBackend.html +2 -2
  93. data/doc/NgrokAPI/Models/TunnelSession.html +2 -2
  94. data/doc/NgrokAPI/Models/UserAgent.html +2 -2
  95. data/doc/NgrokAPI/Models/WeightedBackend.html +2 -2
  96. data/doc/NgrokAPI/Models.html +4 -4
  97. data/doc/NgrokAPI/PagedIterator.html +2 -2
  98. data/doc/NgrokAPI/Services/APIKeysClient.html +3 -3
  99. data/doc/NgrokAPI/Services/AbuseReportsClient.html +3 -3
  100. data/doc/NgrokAPI/Services/AgentIngressesClient.html +2 -2
  101. data/doc/NgrokAPI/Services/ApplicationSessionsClient.html +2 -2
  102. data/doc/NgrokAPI/Services/ApplicationUsersClient.html +2 -2
  103. data/doc/NgrokAPI/Services/BotUsersClient.html +2 -2
  104. data/doc/NgrokAPI/Services/CertificateAuthoritiesClient.html +3 -3
  105. data/doc/NgrokAPI/Services/CredentialsClient.html +3 -3
  106. data/doc/NgrokAPI/Services/EdgeRouteBackendModuleClient.html +2 -2
  107. data/doc/NgrokAPI/Services/EdgeRouteCircuitBreakerModuleClient.html +2 -2
  108. data/doc/NgrokAPI/Services/EdgeRouteCompressionModuleClient.html +2 -2
  109. data/doc/NgrokAPI/Services/EdgeRouteIPRestrictionModuleClient.html +2 -2
  110. data/doc/NgrokAPI/Services/EdgeRouteOAuthModuleClient.html +2 -2
  111. data/doc/NgrokAPI/Services/EdgeRouteOIDCModuleClient.html +2 -2
  112. data/doc/NgrokAPI/Services/EdgeRouteRequestHeadersModuleClient.html +2 -2
  113. data/doc/NgrokAPI/Services/EdgeRouteResponseHeadersModuleClient.html +2 -2
  114. data/doc/NgrokAPI/Services/EdgeRouteSAMLModuleClient.html +2 -2
  115. data/doc/NgrokAPI/Services/EdgeRouteTrafficPolicyModuleClient.html +1149 -0
  116. data/doc/NgrokAPI/Services/EdgeRouteUserAgentFilterModuleClient.html +2 -2
  117. data/doc/NgrokAPI/Services/EdgeRouteWebhookVerificationModuleClient.html +2 -2
  118. data/doc/NgrokAPI/Services/EdgeRouteWebsocketTCPConverterModuleClient.html +2 -2
  119. data/doc/NgrokAPI/Services/EdgesHTTPSClient.html +2 -2
  120. data/doc/NgrokAPI/Services/EdgesHTTPSRoutesClient.html +26 -26
  121. data/doc/NgrokAPI/Services/EdgesTCPClient.html +26 -26
  122. data/doc/NgrokAPI/Services/EdgesTLSClient.html +26 -26
  123. data/doc/NgrokAPI/Services/EndpointsClient.html +3 -3
  124. data/doc/NgrokAPI/Services/EventDestinationsClient.html +2 -2
  125. data/doc/NgrokAPI/Services/EventSourcesClient.html +2 -2
  126. data/doc/NgrokAPI/Services/EventSubscriptionsClient.html +2 -2
  127. data/doc/NgrokAPI/Services/FailoverBackendsClient.html +3 -3
  128. data/doc/NgrokAPI/Services/HTTPResponseBackendsClient.html +2 -2
  129. data/doc/NgrokAPI/Services/HTTPSEdgeMutualTLSModuleClient.html +2 -2
  130. data/doc/NgrokAPI/Services/HTTPSEdgeTLSTerminationModuleClient.html +2 -2
  131. data/doc/NgrokAPI/Services/IPPoliciesClient.html +3 -3
  132. data/doc/NgrokAPI/Services/IPPolicyRulesClient.html +3 -3
  133. data/doc/NgrokAPI/Services/IPRestrictionsClient.html +3 -3
  134. data/doc/NgrokAPI/Services/ReservedAddrsClient.html +3 -3
  135. data/doc/NgrokAPI/Services/ReservedDomainsClient.html +15 -15
  136. data/doc/NgrokAPI/Services/SSHCertificateAuthoritiesClient.html +3 -3
  137. data/doc/NgrokAPI/Services/SSHCredentialsClient.html +3 -3
  138. data/doc/NgrokAPI/Services/SSHHostCertificatesClient.html +3 -3
  139. data/doc/NgrokAPI/Services/SSHUserCertificatesClient.html +3 -3
  140. data/doc/NgrokAPI/Services/StaticBackendsClient.html +3 -3
  141. data/doc/NgrokAPI/Services/TCPEdgeBackendModuleClient.html +2 -2
  142. data/doc/NgrokAPI/Services/TCPEdgeIPRestrictionModuleClient.html +2 -2
  143. data/doc/NgrokAPI/Services/TCPEdgeTrafficPolicyModuleClient.html +1039 -0
  144. data/doc/NgrokAPI/Services/TLSCertificatesClient.html +3 -3
  145. data/doc/NgrokAPI/Services/TLSEdgeBackendModuleClient.html +2 -2
  146. data/doc/NgrokAPI/Services/TLSEdgeIPRestrictionModuleClient.html +2 -2
  147. data/doc/NgrokAPI/Services/TLSEdgeMutualTLSModuleClient.html +2 -2
  148. data/doc/NgrokAPI/Services/TLSEdgeTLSTerminationModuleClient.html +2 -2
  149. data/doc/NgrokAPI/Services/TLSEdgeTrafficPolicyModuleClient.html +1039 -0
  150. data/doc/NgrokAPI/Services/TunnelGroupBackendsClient.html +3 -3
  151. data/doc/NgrokAPI/Services/TunnelSessionsClient.html +3 -3
  152. data/doc/NgrokAPI/Services/TunnelsClient.html +3 -3
  153. data/doc/NgrokAPI/Services/WeightedBackendsClient.html +3 -3
  154. data/doc/NgrokAPI/Services.html +4 -4
  155. data/doc/NgrokAPI.html +3 -3
  156. data/doc/_index.html +21 -28
  157. data/doc/class_list.html +1 -1
  158. data/doc/file.README.html +2 -2
  159. data/doc/index.html +2 -2
  160. data/doc/method_list.html +1089 -1129
  161. data/doc/top-level-namespace.html +2 -2
  162. data/docs/NgrokAPI/Client.html +19 -19
  163. data/docs/NgrokAPI/Error.html +2 -2
  164. data/docs/NgrokAPI/Errors/NotFoundError.html +2 -2
  165. data/docs/NgrokAPI/Errors.html +2 -2
  166. data/docs/NgrokAPI/HttpClient.html +2 -2
  167. data/docs/NgrokAPI/Models/APIKey.html +2 -2
  168. data/docs/NgrokAPI/Models/AWSAuth.html +2 -2
  169. data/docs/NgrokAPI/Models/AWSCredentials.html +2 -2
  170. data/docs/NgrokAPI/Models/AWSRole.html +2 -2
  171. data/docs/NgrokAPI/Models/AbuseReport.html +2 -2
  172. data/docs/NgrokAPI/Models/AbuseReportHostname.html +2 -2
  173. data/docs/NgrokAPI/Models/AgentIngress.html +2 -2
  174. data/docs/NgrokAPI/Models/AgentIngressCertJob.html +2 -2
  175. data/docs/NgrokAPI/Models/AgentIngressCertPolicy.html +2 -2
  176. data/docs/NgrokAPI/Models/AgentIngressCertStatus.html +2 -2
  177. data/docs/NgrokAPI/Models/ApplicationSession.html +2 -2
  178. data/docs/NgrokAPI/Models/ApplicationUser.html +2 -2
  179. data/docs/NgrokAPI/Models/BotUser.html +2 -2
  180. data/docs/NgrokAPI/Models/BrowserSession.html +2 -2
  181. data/docs/NgrokAPI/Models/CertificateAuthority.html +2 -2
  182. data/docs/NgrokAPI/Models/Credential.html +2 -2
  183. data/docs/NgrokAPI/Models/Endpoint.html +2 -2
  184. data/docs/NgrokAPI/Models/EndpointBackend.html +2 -2
  185. data/docs/NgrokAPI/Models/EndpointBackendMutate.html +2 -2
  186. data/docs/NgrokAPI/Models/EndpointCircuitBreaker.html +2 -2
  187. data/docs/NgrokAPI/Models/EndpointCompression.html +2 -2
  188. data/docs/NgrokAPI/Models/EndpointIPPolicy.html +2 -2
  189. data/docs/NgrokAPI/Models/EndpointIPPolicyMutate.html +2 -2
  190. data/docs/NgrokAPI/Models/EndpointMutualTLS.html +2 -2
  191. data/docs/NgrokAPI/Models/EndpointMutualTLSMutate.html +2 -2
  192. data/docs/NgrokAPI/Models/EndpointOAuth.html +2 -2
  193. data/docs/NgrokAPI/Models/EndpointOAuthAmazon.html +2 -2
  194. data/docs/NgrokAPI/Models/EndpointOAuthFacebook.html +2 -2
  195. data/docs/NgrokAPI/Models/EndpointOAuthGitHub.html +2 -2
  196. data/docs/NgrokAPI/Models/EndpointOAuthGitLab.html +2 -2
  197. data/docs/NgrokAPI/Models/EndpointOAuthGoogle.html +2 -2
  198. data/docs/NgrokAPI/Models/EndpointOAuthLinkedIn.html +2 -2
  199. data/docs/NgrokAPI/Models/EndpointOAuthMicrosoft.html +2 -2
  200. data/docs/NgrokAPI/Models/EndpointOAuthProvider.html +2 -2
  201. data/docs/NgrokAPI/Models/EndpointOAuthTwitch.html +2 -2
  202. data/docs/NgrokAPI/Models/EndpointOIDC.html +2 -2
  203. data/docs/NgrokAPI/Models/EndpointRequestHeaders.html +2 -2
  204. data/docs/NgrokAPI/Models/EndpointResponseHeaders.html +2 -2
  205. data/docs/NgrokAPI/Models/EndpointSAML.html +2 -2
  206. data/docs/NgrokAPI/Models/EndpointSAMLMutate.html +2 -2
  207. data/docs/NgrokAPI/Models/EndpointTLSTermination.html +2 -2
  208. data/docs/NgrokAPI/Models/EndpointTLSTerminationAtEdge.html +2 -2
  209. data/docs/NgrokAPI/Models/EndpointTrafficPolicy.html +669 -0
  210. data/docs/NgrokAPI/Models/EndpointUserAgentFilter.html +2 -2
  211. data/docs/NgrokAPI/Models/EndpointWebhookValidation.html +2 -2
  212. data/docs/NgrokAPI/Models/EndpointWebsocketTCPConverter.html +2 -2
  213. data/docs/NgrokAPI/Models/EventDestination.html +2 -2
  214. data/docs/NgrokAPI/Models/EventSource.html +2 -2
  215. data/docs/NgrokAPI/Models/EventSourceList.html +2 -2
  216. data/docs/NgrokAPI/Models/EventSourceReplace.html +2 -2
  217. data/docs/NgrokAPI/Models/EventSubscription.html +2 -2
  218. data/docs/NgrokAPI/Models/EventTarget.html +91 -17
  219. data/docs/NgrokAPI/Models/EventTargetAzureLogsIngestion.html +965 -0
  220. data/docs/NgrokAPI/Models/EventTargetCloudwatchLogs.html +2 -2
  221. data/docs/NgrokAPI/Models/EventTargetDatadog.html +2 -2
  222. data/docs/NgrokAPI/Models/EventTargetFirehose.html +2 -2
  223. data/docs/NgrokAPI/Models/EventTargetKinesis.html +2 -2
  224. data/docs/NgrokAPI/Models/FailoverBackend.html +2 -2
  225. data/docs/NgrokAPI/Models/HTTPResponseBackend.html +2 -2
  226. data/docs/NgrokAPI/Models/HTTPSEdge.html +2 -2
  227. data/docs/NgrokAPI/Models/HTTPSEdgeRoute.html +36 -36
  228. data/docs/NgrokAPI/Models/IPPolicy.html +2 -2
  229. data/docs/NgrokAPI/Models/IPPolicyRule.html +2 -2
  230. data/docs/NgrokAPI/Models/IPRestriction.html +2 -2
  231. data/docs/NgrokAPI/Models/IdentityProvider.html +2 -2
  232. data/docs/NgrokAPI/Models/Listable.html +2 -2
  233. data/docs/NgrokAPI/Models/Location.html +2 -2
  234. data/docs/NgrokAPI/Models/Ref.html +2 -2
  235. data/docs/NgrokAPI/Models/ReservedAddr.html +2 -2
  236. data/docs/NgrokAPI/Models/ReservedDomain.html +2 -2
  237. data/docs/NgrokAPI/Models/ReservedDomainCertJob.html +2 -2
  238. data/docs/NgrokAPI/Models/ReservedDomainCertPolicy.html +2 -2
  239. data/docs/NgrokAPI/Models/ReservedDomainCertStatus.html +2 -2
  240. data/docs/NgrokAPI/Models/SSHCertificateAuthority.html +2 -2
  241. data/docs/NgrokAPI/Models/SSHCredential.html +2 -2
  242. data/docs/NgrokAPI/Models/SSHHostCertificate.html +2 -2
  243. data/docs/NgrokAPI/Models/SSHUserCertificate.html +2 -2
  244. data/docs/NgrokAPI/Models/StaticBackend.html +2 -2
  245. data/docs/NgrokAPI/Models/StaticBackendTLS.html +2 -2
  246. data/docs/NgrokAPI/Models/TCPEdge.html +15 -15
  247. data/docs/NgrokAPI/Models/TLSCertificate.html +2 -2
  248. data/docs/NgrokAPI/Models/TLSCertificateSANs.html +2 -2
  249. data/docs/NgrokAPI/Models/TLSEdge.html +22 -22
  250. data/docs/NgrokAPI/Models/Tunnel.html +2 -2
  251. data/docs/NgrokAPI/Models/TunnelGroupBackend.html +2 -2
  252. data/docs/NgrokAPI/Models/TunnelSession.html +2 -2
  253. data/docs/NgrokAPI/Models/UserAgent.html +2 -2
  254. data/docs/NgrokAPI/Models/WeightedBackend.html +2 -2
  255. data/docs/NgrokAPI/Models.html +4 -4
  256. data/docs/NgrokAPI/PagedIterator.html +2 -2
  257. data/docs/NgrokAPI/Services/APIKeysClient.html +3 -3
  258. data/docs/NgrokAPI/Services/AbuseReportsClient.html +3 -3
  259. data/docs/NgrokAPI/Services/AgentIngressesClient.html +2 -2
  260. data/docs/NgrokAPI/Services/ApplicationSessionsClient.html +2 -2
  261. data/docs/NgrokAPI/Services/ApplicationUsersClient.html +2 -2
  262. data/docs/NgrokAPI/Services/BotUsersClient.html +2 -2
  263. data/docs/NgrokAPI/Services/CertificateAuthoritiesClient.html +3 -3
  264. data/docs/NgrokAPI/Services/CredentialsClient.html +3 -3
  265. data/docs/NgrokAPI/Services/EdgeRouteBackendModuleClient.html +2 -2
  266. data/docs/NgrokAPI/Services/EdgeRouteCircuitBreakerModuleClient.html +2 -2
  267. data/docs/NgrokAPI/Services/EdgeRouteCompressionModuleClient.html +2 -2
  268. data/docs/NgrokAPI/Services/EdgeRouteIPRestrictionModuleClient.html +2 -2
  269. data/docs/NgrokAPI/Services/EdgeRouteOAuthModuleClient.html +2 -2
  270. data/docs/NgrokAPI/Services/EdgeRouteOIDCModuleClient.html +2 -2
  271. data/docs/NgrokAPI/Services/EdgeRouteRequestHeadersModuleClient.html +2 -2
  272. data/docs/NgrokAPI/Services/EdgeRouteResponseHeadersModuleClient.html +2 -2
  273. data/docs/NgrokAPI/Services/EdgeRouteSAMLModuleClient.html +2 -2
  274. data/docs/NgrokAPI/Services/EdgeRouteTrafficPolicyModuleClient.html +1149 -0
  275. data/docs/NgrokAPI/Services/EdgeRouteUserAgentFilterModuleClient.html +2 -2
  276. data/docs/NgrokAPI/Services/EdgeRouteWebhookVerificationModuleClient.html +2 -2
  277. data/docs/NgrokAPI/Services/EdgeRouteWebsocketTCPConverterModuleClient.html +2 -2
  278. data/docs/NgrokAPI/Services/EdgesHTTPSClient.html +2 -2
  279. data/docs/NgrokAPI/Services/EdgesHTTPSRoutesClient.html +26 -26
  280. data/docs/NgrokAPI/Services/EdgesTCPClient.html +26 -26
  281. data/docs/NgrokAPI/Services/EdgesTLSClient.html +26 -26
  282. data/docs/NgrokAPI/Services/EndpointsClient.html +3 -3
  283. data/docs/NgrokAPI/Services/EventDestinationsClient.html +2 -2
  284. data/docs/NgrokAPI/Services/EventSourcesClient.html +2 -2
  285. data/docs/NgrokAPI/Services/EventSubscriptionsClient.html +2 -2
  286. data/docs/NgrokAPI/Services/FailoverBackendsClient.html +3 -3
  287. data/docs/NgrokAPI/Services/HTTPResponseBackendsClient.html +2 -2
  288. data/docs/NgrokAPI/Services/HTTPSEdgeMutualTLSModuleClient.html +2 -2
  289. data/docs/NgrokAPI/Services/HTTPSEdgeTLSTerminationModuleClient.html +2 -2
  290. data/docs/NgrokAPI/Services/IPPoliciesClient.html +3 -3
  291. data/docs/NgrokAPI/Services/IPPolicyRulesClient.html +3 -3
  292. data/docs/NgrokAPI/Services/IPRestrictionsClient.html +3 -3
  293. data/docs/NgrokAPI/Services/ReservedAddrsClient.html +3 -3
  294. data/docs/NgrokAPI/Services/ReservedDomainsClient.html +15 -15
  295. data/docs/NgrokAPI/Services/SSHCertificateAuthoritiesClient.html +3 -3
  296. data/docs/NgrokAPI/Services/SSHCredentialsClient.html +3 -3
  297. data/docs/NgrokAPI/Services/SSHHostCertificatesClient.html +3 -3
  298. data/docs/NgrokAPI/Services/SSHUserCertificatesClient.html +3 -3
  299. data/docs/NgrokAPI/Services/StaticBackendsClient.html +3 -3
  300. data/docs/NgrokAPI/Services/TCPEdgeBackendModuleClient.html +2 -2
  301. data/docs/NgrokAPI/Services/TCPEdgeIPRestrictionModuleClient.html +2 -2
  302. data/docs/NgrokAPI/Services/TCPEdgeTrafficPolicyModuleClient.html +1039 -0
  303. data/docs/NgrokAPI/Services/TLSCertificatesClient.html +3 -3
  304. data/docs/NgrokAPI/Services/TLSEdgeBackendModuleClient.html +2 -2
  305. data/docs/NgrokAPI/Services/TLSEdgeIPRestrictionModuleClient.html +2 -2
  306. data/docs/NgrokAPI/Services/TLSEdgeMutualTLSModuleClient.html +2 -2
  307. data/docs/NgrokAPI/Services/TLSEdgeTLSTerminationModuleClient.html +2 -2
  308. data/docs/NgrokAPI/Services/TLSEdgeTrafficPolicyModuleClient.html +1039 -0
  309. data/docs/NgrokAPI/Services/TunnelGroupBackendsClient.html +3 -3
  310. data/docs/NgrokAPI/Services/TunnelSessionsClient.html +3 -3
  311. data/docs/NgrokAPI/Services/TunnelsClient.html +3 -3
  312. data/docs/NgrokAPI/Services/WeightedBackendsClient.html +3 -3
  313. data/docs/NgrokAPI/Services.html +4 -4
  314. data/docs/NgrokAPI.html +3 -3
  315. data/docs/_index.html +21 -28
  316. data/docs/class_list.html +1 -1
  317. data/docs/file.README.html +2 -2
  318. data/docs/index.html +2 -2
  319. data/docs/method_list.html +1089 -1129
  320. data/docs/top-level-namespace.html +2 -2
  321. data/lib/ngrokapi/models/{endpoint_policy.rb → endpoint_traffic_policy.rb} +3 -5
  322. data/lib/ngrokapi/models/event_target.rb +3 -1
  323. data/lib/ngrokapi/models/event_target_azure_logs_ingestion.rb +41 -0
  324. data/lib/ngrokapi/models/https_edge_route.rb +5 -5
  325. data/lib/ngrokapi/models/tcp_edge.rb +5 -5
  326. data/lib/ngrokapi/models/tls_edge.rb +5 -5
  327. data/lib/ngrokapi/services/{edge_route_policy_module_client.rb → edge_route_traffic_policy_module_client.rb} +25 -25
  328. data/lib/ngrokapi/services/edges_https_routes_client.rb +12 -12
  329. data/lib/ngrokapi/services/edges_tcp_client.rb +12 -12
  330. data/lib/ngrokapi/services/edges_tls_client.rb +12 -12
  331. data/lib/ngrokapi/services/reserved_domains_client.rb +4 -4
  332. data/lib/ngrokapi/services/{tcp_edge_policy_module_client.rb → tcp_edge_traffic_policy_module_client.rb} +25 -25
  333. data/lib/ngrokapi/services/{tls_edge_policy_module_client.rb → tls_edge_traffic_policy_module_client.rb} +25 -25
  334. data/lib/ngrokapi/version.rb +1 -1
  335. data/spec/ngrokapi/models/endpoint_traffic_policy_spec.rb +23 -0
  336. data/spec/ngrokapi/models/event_target_azure_logs_ingestion_spec.rb +23 -0
  337. data/spec/ngrokapi/models/https_edge_route_spec.rb +3 -3
  338. data/spec/ngrokapi/models/tcp_edge_spec.rb +3 -3
  339. data/spec/ngrokapi/models/tls_edge_spec.rb +3 -3
  340. data/spec/ngrokapi/services/edge_route_traffic_policy_module_client_spec.rb +139 -0
  341. data/spec/ngrokapi/services/edges_https_routes_client_spec.rb +12 -8
  342. data/spec/ngrokapi/services/edges_tcp_client_spec.rb +12 -8
  343. data/spec/ngrokapi/services/edges_tls_client_spec.rb +12 -8
  344. data/spec/ngrokapi/services/reserved_domains_client_spec.rb +8 -4
  345. data/spec/ngrokapi/services/tcp_edge_traffic_policy_module_client_spec.rb +125 -0
  346. data/spec/ngrokapi/services/tls_edge_traffic_policy_module_client_spec.rb +125 -0
  347. data/spec/spec_helper.rb +6 -11
  348. metadata +21 -13
  349. data/lib/ngrokapi/models/endpoint_action.rb +0 -33
  350. data/lib/ngrokapi/models/endpoint_rule.rb +0 -35
  351. data/spec/ngrokapi/models/endpoint_action_spec.rb +0 -23
  352. data/spec/ngrokapi/models/endpoint_policy_spec.rb +0 -23
  353. data/spec/ngrokapi/models/endpoint_rule_spec.rb +0 -23
  354. data/spec/ngrokapi/services/edge_route_policy_module_client_spec.rb +0 -139
  355. data/spec/ngrokapi/services/tcp_edge_policy_module_client_spec.rb +0 -125
  356. data/spec/ngrokapi/services/tls_edge_policy_module_client_spec.rb +0 -125
@@ -25,7 +25,7 @@ RSpec.describe NgrokAPI::Services::EdgesTCPClient do
25
25
  data[:hostports] = "New hostports"
26
26
  data[:backend] = "New backend"
27
27
  data[:ip_restriction] = "New ip_restriction"
28
- data[:policy] = "New policy"
28
+ data[:traffic_policy] = "New traffic_policy"
29
29
  expect(@client).to receive(:post).with(path % replacements, data: data).
30
30
  and_return(tcp_edge_result)
31
31
  result = @edges_tcp_client.create(
@@ -34,7 +34,8 @@ RSpec.describe NgrokAPI::Services::EdgesTCPClient do
34
34
  hostports: "New hostports",
35
35
  backend: "New backend",
36
36
  ip_restriction: "New ip_restriction",
37
- policy: "New policy"
37
+ policy: "New policy",
38
+ traffic_policy: "New traffic_policy"
38
39
  )
39
40
  expect(result.class).to eq(NgrokAPI::Models::TCPEdge)
40
41
  end
@@ -51,7 +52,7 @@ RSpec.describe NgrokAPI::Services::EdgesTCPClient do
51
52
  data[:hostports] = "New hostports"
52
53
  data[:backend] = "New backend"
53
54
  data[:ip_restriction] = "New ip_restriction"
54
- data[:policy] = "New policy"
55
+ data[:traffic_policy] = "New traffic_policy"
55
56
  expect(@client).to receive(:post).with(path % replacements, data: data).
56
57
  and_return(tcp_edge_result)
57
58
  result = @edges_tcp_client.create(
@@ -60,7 +61,8 @@ RSpec.describe NgrokAPI::Services::EdgesTCPClient do
60
61
  hostports: "New hostports",
61
62
  backend: "New backend",
62
63
  ip_restriction: "New ip_restriction",
63
- policy: "New policy"
64
+ policy: "New policy",
65
+ traffic_policy: "New traffic_policy"
64
66
  )
65
67
  expect(result.class).to eq(NgrokAPI::Models::TCPEdge)
66
68
  # expect(result.id).to eq(tcp_edge_result["id"])
@@ -122,7 +124,7 @@ RSpec.describe NgrokAPI::Services::EdgesTCPClient do
122
124
  data[:hostports] = "New hostports"
123
125
  data[:backend] = "New backend"
124
126
  data[:ip_restriction] = "New ip_restriction"
125
- data[:policy] = "New policy"
127
+ data[:traffic_policy] = "New traffic_policy"
126
128
  expect(@client).to receive(:patch).with(path % replacements, data: data).
127
129
  and_return(tcp_edge_result)
128
130
  result = @edges_tcp_client.update(
@@ -132,7 +134,8 @@ RSpec.describe NgrokAPI::Services::EdgesTCPClient do
132
134
  hostports: "New hostports",
133
135
  backend: "New backend",
134
136
  ip_restriction: "New ip_restriction",
135
- policy: "New policy"
137
+ policy: "New policy",
138
+ traffic_policy: "New traffic_policy"
136
139
  )
137
140
  expect(result.class).to eq(NgrokAPI::Models::TCPEdge)
138
141
  end
@@ -150,7 +153,7 @@ RSpec.describe NgrokAPI::Services::EdgesTCPClient do
150
153
  data[:hostports] = "New hostports"
151
154
  data[:backend] = "New backend"
152
155
  data[:ip_restriction] = "New ip_restriction"
153
- data[:policy] = "New policy"
156
+ data[:traffic_policy] = "New traffic_policy"
154
157
  expect(@client).to receive(:patch).with(path % replacements, data: data).
155
158
  and_return(tcp_edge_result)
156
159
  result = @edges_tcp_client.update(
@@ -160,7 +163,8 @@ RSpec.describe NgrokAPI::Services::EdgesTCPClient do
160
163
  hostports: "New hostports",
161
164
  backend: "New backend",
162
165
  ip_restriction: "New ip_restriction",
163
- policy: "New policy"
166
+ policy: "New policy",
167
+ traffic_policy: "New traffic_policy"
164
168
  )
165
169
  expect(result.class).to eq(NgrokAPI::Models::TCPEdge)
166
170
  # expect(result.id).to eq(tcp_edge_result["id"])
@@ -27,7 +27,7 @@ RSpec.describe NgrokAPI::Services::EdgesTLSClient do
27
27
  data[:ip_restriction] = "New ip_restriction"
28
28
  data[:mutual_tls] = "New mutual_tls"
29
29
  data[:tls_termination] = "New tls_termination"
30
- data[:policy] = "New policy"
30
+ data[:traffic_policy] = "New traffic_policy"
31
31
  expect(@client).to receive(:post).with(path % replacements, data: data).
32
32
  and_return(tls_edge_result)
33
33
  result = @edges_tls_client.create(
@@ -38,7 +38,8 @@ RSpec.describe NgrokAPI::Services::EdgesTLSClient do
38
38
  ip_restriction: "New ip_restriction",
39
39
  mutual_tls: "New mutual_tls",
40
40
  tls_termination: "New tls_termination",
41
- policy: "New policy"
41
+ policy: "New policy",
42
+ traffic_policy: "New traffic_policy"
42
43
  )
43
44
  expect(result.class).to eq(NgrokAPI::Models::TLSEdge)
44
45
  end
@@ -57,7 +58,7 @@ RSpec.describe NgrokAPI::Services::EdgesTLSClient do
57
58
  data[:ip_restriction] = "New ip_restriction"
58
59
  data[:mutual_tls] = "New mutual_tls"
59
60
  data[:tls_termination] = "New tls_termination"
60
- data[:policy] = "New policy"
61
+ data[:traffic_policy] = "New traffic_policy"
61
62
  expect(@client).to receive(:post).with(path % replacements, data: data).
62
63
  and_return(tls_edge_result)
63
64
  result = @edges_tls_client.create(
@@ -68,7 +69,8 @@ RSpec.describe NgrokAPI::Services::EdgesTLSClient do
68
69
  ip_restriction: "New ip_restriction",
69
70
  mutual_tls: "New mutual_tls",
70
71
  tls_termination: "New tls_termination",
71
- policy: "New policy"
72
+ policy: "New policy",
73
+ traffic_policy: "New traffic_policy"
72
74
  )
73
75
  expect(result.class).to eq(NgrokAPI::Models::TLSEdge)
74
76
  # expect(result.id).to eq(tls_edge_result["id"])
@@ -132,7 +134,7 @@ RSpec.describe NgrokAPI::Services::EdgesTLSClient do
132
134
  data[:ip_restriction] = "New ip_restriction"
133
135
  data[:mutual_tls] = "New mutual_tls"
134
136
  data[:tls_termination] = "New tls_termination"
135
- data[:policy] = "New policy"
137
+ data[:traffic_policy] = "New traffic_policy"
136
138
  expect(@client).to receive(:patch).with(path % replacements, data: data).
137
139
  and_return(tls_edge_result)
138
140
  result = @edges_tls_client.update(
@@ -144,7 +146,8 @@ RSpec.describe NgrokAPI::Services::EdgesTLSClient do
144
146
  ip_restriction: "New ip_restriction",
145
147
  mutual_tls: "New mutual_tls",
146
148
  tls_termination: "New tls_termination",
147
- policy: "New policy"
149
+ policy: "New policy",
150
+ traffic_policy: "New traffic_policy"
148
151
  )
149
152
  expect(result.class).to eq(NgrokAPI::Models::TLSEdge)
150
153
  end
@@ -164,7 +167,7 @@ RSpec.describe NgrokAPI::Services::EdgesTLSClient do
164
167
  data[:ip_restriction] = "New ip_restriction"
165
168
  data[:mutual_tls] = "New mutual_tls"
166
169
  data[:tls_termination] = "New tls_termination"
167
- data[:policy] = "New policy"
170
+ data[:traffic_policy] = "New traffic_policy"
168
171
  expect(@client).to receive(:patch).with(path % replacements, data: data).
169
172
  and_return(tls_edge_result)
170
173
  result = @edges_tls_client.update(
@@ -176,7 +179,8 @@ RSpec.describe NgrokAPI::Services::EdgesTLSClient do
176
179
  ip_restriction: "New ip_restriction",
177
180
  mutual_tls: "New mutual_tls",
178
181
  tls_termination: "New tls_termination",
179
- policy: "New policy"
182
+ policy: "New policy",
183
+ traffic_policy: "New traffic_policy"
180
184
  )
181
185
  expect(result.class).to eq(NgrokAPI::Models::TLSEdge)
182
186
  # expect(result.id).to eq(tls_edge_result["id"])
@@ -37,7 +37,8 @@ RSpec.describe NgrokAPI::Services::ReservedDomainsClient do
37
37
  http_endpoint_configuration_id: "New http_endpoint_configuration_id",
38
38
  https_endpoint_configuration_id: "New https_endpoint_configuration_id",
39
39
  certificate_id: "New certificate_id",
40
- certificate_management_policy: "New certificate_management_policy"
40
+ certificate_management_policy: "New certificate_management_policy",
41
+ error_redirect_url: "New error_redirect_url"
41
42
  )
42
43
  expect(result.class).to eq(NgrokAPI::Models::ReservedDomain)
43
44
  end
@@ -66,7 +67,8 @@ RSpec.describe NgrokAPI::Services::ReservedDomainsClient do
66
67
  http_endpoint_configuration_id: "New http_endpoint_configuration_id",
67
68
  https_endpoint_configuration_id: "New https_endpoint_configuration_id",
68
69
  certificate_id: "New certificate_id",
69
- certificate_management_policy: "New certificate_management_policy"
70
+ certificate_management_policy: "New certificate_management_policy",
71
+ error_redirect_url: "New error_redirect_url"
70
72
  )
71
73
  expect(result.class).to eq(NgrokAPI::Models::ReservedDomain)
72
74
  # expect(result.id).to eq(reserved_domain_result["id"])
@@ -178,7 +180,8 @@ RSpec.describe NgrokAPI::Services::ReservedDomainsClient do
178
180
  https_endpoint_configuration_id: "New https_endpoint_configuration_id",
179
181
  certificate_id: "New certificate_id",
180
182
  certificate_management_policy: "New certificate_management_policy",
181
- region: "New region"
183
+ region: "New region",
184
+ error_redirect_url: "New error_redirect_url"
182
185
  )
183
186
  expect(result.class).to eq(NgrokAPI::Models::ReservedDomain)
184
187
  end
@@ -205,7 +208,8 @@ RSpec.describe NgrokAPI::Services::ReservedDomainsClient do
205
208
  https_endpoint_configuration_id: "New https_endpoint_configuration_id",
206
209
  certificate_id: "New certificate_id",
207
210
  certificate_management_policy: "New certificate_management_policy",
208
- region: "New region"
211
+ region: "New region",
212
+ error_redirect_url: "New error_redirect_url"
209
213
  )
210
214
  expect(result.class).to eq(NgrokAPI::Models::ReservedDomain)
211
215
  # expect(result.id).to eq(reserved_domain_result["id"])
@@ -0,0 +1,125 @@
1
+ # Code generated for API Clients. DO NOT EDIT.
2
+
3
+ require 'spec_helper'
4
+
5
+ RSpec.describe NgrokAPI::Services::TCPEdgeTrafficPolicyModuleClient do
6
+ let(:base_url) { 'https://api.ngrok.com' }
7
+ let(:path) { '/edges/tcp/%{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
+ @tcp_edge_traffic_policy_module_client = NgrokAPI::Services::TCPEdgeTrafficPolicyModuleClient.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/tcp/%{id}/traffic_policy'
20
+ replacements = {
21
+ id: endpoint_traffic_policy_result["id"],
22
+ }
23
+ data = "New a_module"
24
+ expect(@client).to receive(:put).with(path % replacements, data: data).
25
+ and_return(endpoint_traffic_policy_result)
26
+ result = @tcp_edge_traffic_policy_module_client.replace(
27
+ id: endpoint_traffic_policy_result["id"],
28
+ a_module: "New a_module"
29
+ )
30
+ expect(result.class).to eq(NgrokAPI::Models::EndpointTrafficPolicy)
31
+ end
32
+ end
33
+
34
+ describe "#replace!" do
35
+ it "will make a put request and return an instance of NgrokAPI::Models::EndpointTrafficPolicy" do
36
+ path = '/edges/tcp/%{id}/traffic_policy'
37
+ replacements = {
38
+ id: endpoint_traffic_policy_result["id"],
39
+ }
40
+ data = "New a_module"
41
+ expect(@client).to receive(:put).with(path % replacements, data: data).
42
+ and_return(endpoint_traffic_policy_result)
43
+ result = @tcp_edge_traffic_policy_module_client.replace(
44
+ id: endpoint_traffic_policy_result["id"],
45
+ a_module: "New a_module"
46
+ )
47
+ expect(result.class).to eq(NgrokAPI::Models::EndpointTrafficPolicy)
48
+ # expect(result.id).to eq(endpoint_traffic_policy_result["id"])
49
+ end
50
+ end
51
+
52
+ describe "#get" do
53
+ it "will make a get request and return an instance of NgrokAPI::Models::EndpointTrafficPolicy" do
54
+ path = '/edges/tcp/%{id}/traffic_policy'
55
+ replacements = {
56
+ id: endpoint_traffic_policy_result["id"],
57
+ }
58
+ data = {}
59
+ expect(@client).to receive(:get).with(path % replacements, data: data).
60
+ and_return(endpoint_traffic_policy_result)
61
+ result = @tcp_edge_traffic_policy_module_client.get(
62
+ id: endpoint_traffic_policy_result["id"]
63
+ )
64
+ expect(result.class).to eq(NgrokAPI::Models::EndpointTrafficPolicy)
65
+ end
66
+ end
67
+
68
+ describe "#get!" do
69
+ it "will make a get request and return an instance of NgrokAPI::Models::EndpointTrafficPolicy" do
70
+ path = '/edges/tcp/%{id}/traffic_policy'
71
+ replacements = {
72
+ id: endpoint_traffic_policy_result["id"],
73
+ }
74
+ data = {}
75
+ expect(@client).to receive(:get).with(path % replacements, data: data).
76
+ and_return(endpoint_traffic_policy_result)
77
+ result = @tcp_edge_traffic_policy_module_client.get(
78
+ id: endpoint_traffic_policy_result["id"]
79
+ )
80
+ expect(result.class).to eq(NgrokAPI::Models::EndpointTrafficPolicy)
81
+ # expect(result.id).to eq(endpoint_traffic_policy_result["id"])
82
+ end
83
+ end
84
+
85
+ describe "#delete" do
86
+ it "will make a delete request" do
87
+ path = '/edges/tcp/%{id}/traffic_policy'
88
+ replacements = {
89
+ id: api_key_result["id"],
90
+ }
91
+ expect(@client).to receive(:delete).with(path % replacements).and_return(nil)
92
+ @tcp_edge_traffic_policy_module_client.delete(
93
+ id: api_key_result["id"]
94
+ )
95
+ end
96
+ end
97
+
98
+ describe "#delete!" do
99
+ it "will make a delete request" do
100
+ path = '/edges/tcp/%{id}/traffic_policy'
101
+ replacements = {
102
+ id: api_key_result["id"],
103
+ }
104
+ expect(@client).to receive(:delete).with(path % replacements, danger: true).and_return(nil)
105
+ @tcp_edge_traffic_policy_module_client.delete!(
106
+ id: api_key_result["id"]
107
+ )
108
+ end
109
+
110
+ it "will make a delete request and return NotFoundError if 404" do
111
+ path = '/edges/tcp/%{id}/traffic_policy'
112
+ replacements = {
113
+ id: api_key_result["id"],
114
+ }
115
+ expect do
116
+ expect(@client).to receive(:delete).with(path % replacements, danger: true).
117
+ and_raise(NgrokAPI::Errors::NotFoundError)
118
+ result = @tcp_edge_traffic_policy_module_client.delete!(
119
+ id: api_key_result["id"]
120
+ )
121
+ expect(result).to be nil
122
+ end.to raise_error(NgrokAPI::Errors::NotFoundError)
123
+ end
124
+ end
125
+ end
@@ -0,0 +1,125 @@
1
+ # Code generated for API Clients. DO NOT EDIT.
2
+
3
+ require 'spec_helper'
4
+
5
+ RSpec.describe NgrokAPI::Services::TLSEdgeTrafficPolicyModuleClient do
6
+ let(:base_url) { 'https://api.ngrok.com' }
7
+ let(:path) { '/edges/tls/%{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
+ @tls_edge_traffic_policy_module_client = NgrokAPI::Services::TLSEdgeTrafficPolicyModuleClient.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/tls/%{id}/traffic_policy'
20
+ replacements = {
21
+ id: endpoint_traffic_policy_result["id"],
22
+ }
23
+ data = "New a_module"
24
+ expect(@client).to receive(:put).with(path % replacements, data: data).
25
+ and_return(endpoint_traffic_policy_result)
26
+ result = @tls_edge_traffic_policy_module_client.replace(
27
+ id: endpoint_traffic_policy_result["id"],
28
+ a_module: "New a_module"
29
+ )
30
+ expect(result.class).to eq(NgrokAPI::Models::EndpointTrafficPolicy)
31
+ end
32
+ end
33
+
34
+ describe "#replace!" do
35
+ it "will make a put request and return an instance of NgrokAPI::Models::EndpointTrafficPolicy" do
36
+ path = '/edges/tls/%{id}/traffic_policy'
37
+ replacements = {
38
+ id: endpoint_traffic_policy_result["id"],
39
+ }
40
+ data = "New a_module"
41
+ expect(@client).to receive(:put).with(path % replacements, data: data).
42
+ and_return(endpoint_traffic_policy_result)
43
+ result = @tls_edge_traffic_policy_module_client.replace(
44
+ id: endpoint_traffic_policy_result["id"],
45
+ a_module: "New a_module"
46
+ )
47
+ expect(result.class).to eq(NgrokAPI::Models::EndpointTrafficPolicy)
48
+ # expect(result.id).to eq(endpoint_traffic_policy_result["id"])
49
+ end
50
+ end
51
+
52
+ describe "#get" do
53
+ it "will make a get request and return an instance of NgrokAPI::Models::EndpointTrafficPolicy" do
54
+ path = '/edges/tls/%{id}/traffic_policy'
55
+ replacements = {
56
+ id: endpoint_traffic_policy_result["id"],
57
+ }
58
+ data = {}
59
+ expect(@client).to receive(:get).with(path % replacements, data: data).
60
+ and_return(endpoint_traffic_policy_result)
61
+ result = @tls_edge_traffic_policy_module_client.get(
62
+ id: endpoint_traffic_policy_result["id"]
63
+ )
64
+ expect(result.class).to eq(NgrokAPI::Models::EndpointTrafficPolicy)
65
+ end
66
+ end
67
+
68
+ describe "#get!" do
69
+ it "will make a get request and return an instance of NgrokAPI::Models::EndpointTrafficPolicy" do
70
+ path = '/edges/tls/%{id}/traffic_policy'
71
+ replacements = {
72
+ id: endpoint_traffic_policy_result["id"],
73
+ }
74
+ data = {}
75
+ expect(@client).to receive(:get).with(path % replacements, data: data).
76
+ and_return(endpoint_traffic_policy_result)
77
+ result = @tls_edge_traffic_policy_module_client.get(
78
+ id: endpoint_traffic_policy_result["id"]
79
+ )
80
+ expect(result.class).to eq(NgrokAPI::Models::EndpointTrafficPolicy)
81
+ # expect(result.id).to eq(endpoint_traffic_policy_result["id"])
82
+ end
83
+ end
84
+
85
+ describe "#delete" do
86
+ it "will make a delete request" do
87
+ path = '/edges/tls/%{id}/traffic_policy'
88
+ replacements = {
89
+ id: api_key_result["id"],
90
+ }
91
+ expect(@client).to receive(:delete).with(path % replacements).and_return(nil)
92
+ @tls_edge_traffic_policy_module_client.delete(
93
+ id: api_key_result["id"]
94
+ )
95
+ end
96
+ end
97
+
98
+ describe "#delete!" do
99
+ it "will make a delete request" do
100
+ path = '/edges/tls/%{id}/traffic_policy'
101
+ replacements = {
102
+ id: api_key_result["id"],
103
+ }
104
+ expect(@client).to receive(:delete).with(path % replacements, danger: true).and_return(nil)
105
+ @tls_edge_traffic_policy_module_client.delete!(
106
+ id: api_key_result["id"]
107
+ )
108
+ end
109
+
110
+ it "will make a delete request and return NotFoundError if 404" do
111
+ path = '/edges/tls/%{id}/traffic_policy'
112
+ replacements = {
113
+ id: api_key_result["id"],
114
+ }
115
+ expect do
116
+ expect(@client).to receive(:delete).with(path % replacements, danger: true).
117
+ and_raise(NgrokAPI::Errors::NotFoundError)
118
+ result = @tls_edge_traffic_policy_module_client.delete!(
119
+ id: api_key_result["id"]
120
+ )
121
+ expect(result).to be nil
122
+ end.to raise_error(NgrokAPI::Errors::NotFoundError)
123
+ end
124
+ end
125
+ end
data/spec/spec_helper.rb CHANGED
@@ -498,17 +498,7 @@ def endpoint_ip_policy_mutate_result
498
498
  }
499
499
  end
500
500
 
501
- def endpoint_policy_result
502
- {
503
- }
504
- end
505
-
506
- def endpoint_action_result
507
- {
508
- }
509
- end
510
-
511
- def endpoint_rule_result
501
+ def endpoint_traffic_policy_result
512
502
  {
513
503
  }
514
504
  end
@@ -803,6 +793,11 @@ def event_target_datadog_result
803
793
  }
804
794
  end
805
795
 
796
+ def event_target_azure_logs_ingestion_result
797
+ {
798
+ }
799
+ end
800
+
806
801
  def event_target_result
807
802
  {
808
803
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ngrok-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.22.0
4
+ version: 0.23.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
@@ -84,6 +84,7 @@ files:
84
84
  - doc/NgrokAPI/Models/EndpointSAMLMutate.html
85
85
  - doc/NgrokAPI/Models/EndpointTLSTermination.html
86
86
  - doc/NgrokAPI/Models/EndpointTLSTerminationAtEdge.html
87
+ - doc/NgrokAPI/Models/EndpointTrafficPolicy.html
87
88
  - doc/NgrokAPI/Models/EndpointUserAgentFilter.html
88
89
  - doc/NgrokAPI/Models/EndpointWebhookValidation.html
89
90
  - doc/NgrokAPI/Models/EndpointWebsocketTCPConverter.html
@@ -93,6 +94,7 @@ files:
93
94
  - doc/NgrokAPI/Models/EventSourceReplace.html
94
95
  - doc/NgrokAPI/Models/EventSubscription.html
95
96
  - doc/NgrokAPI/Models/EventTarget.html
97
+ - doc/NgrokAPI/Models/EventTargetAzureLogsIngestion.html
96
98
  - doc/NgrokAPI/Models/EventTargetCloudwatchLogs.html
97
99
  - doc/NgrokAPI/Models/EventTargetDatadog.html
98
100
  - doc/NgrokAPI/Models/EventTargetFirehose.html
@@ -148,6 +150,7 @@ files:
148
150
  - doc/NgrokAPI/Services/EdgeRouteRequestHeadersModuleClient.html
149
151
  - doc/NgrokAPI/Services/EdgeRouteResponseHeadersModuleClient.html
150
152
  - doc/NgrokAPI/Services/EdgeRouteSAMLModuleClient.html
153
+ - doc/NgrokAPI/Services/EdgeRouteTrafficPolicyModuleClient.html
151
154
  - doc/NgrokAPI/Services/EdgeRouteUserAgentFilterModuleClient.html
152
155
  - doc/NgrokAPI/Services/EdgeRouteWebhookVerificationModuleClient.html
153
156
  - doc/NgrokAPI/Services/EdgeRouteWebsocketTCPConverterModuleClient.html
@@ -176,12 +179,14 @@ files:
176
179
  - doc/NgrokAPI/Services/TCPEdgeBackendModuleClient.html
177
180
  - doc/NgrokAPI/Services/TCPEdgeIPRestrictionModuleClient.html
178
181
  - doc/NgrokAPI/Services/TCPEdgePolicyModuleClient.html
182
+ - doc/NgrokAPI/Services/TCPEdgeTrafficPolicyModuleClient.html
179
183
  - doc/NgrokAPI/Services/TLSCertificatesClient.html
180
184
  - doc/NgrokAPI/Services/TLSEdgeBackendModuleClient.html
181
185
  - doc/NgrokAPI/Services/TLSEdgeIPRestrictionModuleClient.html
182
186
  - doc/NgrokAPI/Services/TLSEdgeMutualTLSModuleClient.html
183
187
  - doc/NgrokAPI/Services/TLSEdgePolicyModuleClient.html
184
188
  - doc/NgrokAPI/Services/TLSEdgeTLSTerminationModuleClient.html
189
+ - doc/NgrokAPI/Services/TLSEdgeTrafficPolicyModuleClient.html
185
190
  - doc/NgrokAPI/Services/TunnelGroupBackendsClient.html
186
191
  - doc/NgrokAPI/Services/TunnelSessionsClient.html
187
192
  - doc/NgrokAPI/Services/TunnelsClient.html
@@ -254,6 +259,7 @@ files:
254
259
  - docs/NgrokAPI/Models/EndpointSAMLMutate.html
255
260
  - docs/NgrokAPI/Models/EndpointTLSTermination.html
256
261
  - docs/NgrokAPI/Models/EndpointTLSTerminationAtEdge.html
262
+ - docs/NgrokAPI/Models/EndpointTrafficPolicy.html
257
263
  - docs/NgrokAPI/Models/EndpointUserAgentFilter.html
258
264
  - docs/NgrokAPI/Models/EndpointWebhookValidation.html
259
265
  - docs/NgrokAPI/Models/EndpointWebsocketTCPConverter.html
@@ -263,6 +269,7 @@ files:
263
269
  - docs/NgrokAPI/Models/EventSourceReplace.html
264
270
  - docs/NgrokAPI/Models/EventSubscription.html
265
271
  - docs/NgrokAPI/Models/EventTarget.html
272
+ - docs/NgrokAPI/Models/EventTargetAzureLogsIngestion.html
266
273
  - docs/NgrokAPI/Models/EventTargetCloudwatchLogs.html
267
274
  - docs/NgrokAPI/Models/EventTargetDatadog.html
268
275
  - docs/NgrokAPI/Models/EventTargetFirehose.html
@@ -318,6 +325,7 @@ files:
318
325
  - docs/NgrokAPI/Services/EdgeRouteRequestHeadersModuleClient.html
319
326
  - docs/NgrokAPI/Services/EdgeRouteResponseHeadersModuleClient.html
320
327
  - docs/NgrokAPI/Services/EdgeRouteSAMLModuleClient.html
328
+ - docs/NgrokAPI/Services/EdgeRouteTrafficPolicyModuleClient.html
321
329
  - docs/NgrokAPI/Services/EdgeRouteUserAgentFilterModuleClient.html
322
330
  - docs/NgrokAPI/Services/EdgeRouteWebhookVerificationModuleClient.html
323
331
  - docs/NgrokAPI/Services/EdgeRouteWebsocketTCPConverterModuleClient.html
@@ -346,12 +354,14 @@ files:
346
354
  - docs/NgrokAPI/Services/TCPEdgeBackendModuleClient.html
347
355
  - docs/NgrokAPI/Services/TCPEdgeIPRestrictionModuleClient.html
348
356
  - docs/NgrokAPI/Services/TCPEdgePolicyModuleClient.html
357
+ - docs/NgrokAPI/Services/TCPEdgeTrafficPolicyModuleClient.html
349
358
  - docs/NgrokAPI/Services/TLSCertificatesClient.html
350
359
  - docs/NgrokAPI/Services/TLSEdgeBackendModuleClient.html
351
360
  - docs/NgrokAPI/Services/TLSEdgeIPRestrictionModuleClient.html
352
361
  - docs/NgrokAPI/Services/TLSEdgeMutualTLSModuleClient.html
353
362
  - docs/NgrokAPI/Services/TLSEdgePolicyModuleClient.html
354
363
  - docs/NgrokAPI/Services/TLSEdgeTLSTerminationModuleClient.html
364
+ - docs/NgrokAPI/Services/TLSEdgeTrafficPolicyModuleClient.html
355
365
  - docs/NgrokAPI/Services/TunnelGroupBackendsClient.html
356
366
  - docs/NgrokAPI/Services/TunnelSessionsClient.html
357
367
  - docs/NgrokAPI/Services/TunnelsClient.html
@@ -392,7 +402,6 @@ files:
392
402
  - lib/ngrokapi/models/certificate_authority.rb
393
403
  - lib/ngrokapi/models/credential.rb
394
404
  - lib/ngrokapi/models/endpoint.rb
395
- - lib/ngrokapi/models/endpoint_action.rb
396
405
  - lib/ngrokapi/models/endpoint_backend.rb
397
406
  - lib/ngrokapi/models/endpoint_backend_mutate.rb
398
407
  - lib/ngrokapi/models/endpoint_circuit_breaker.rb
@@ -412,14 +421,13 @@ files:
412
421
  - lib/ngrokapi/models/endpoint_o_auth_provider.rb
413
422
  - lib/ngrokapi/models/endpoint_o_auth_twitch.rb
414
423
  - lib/ngrokapi/models/endpoint_oidc.rb
415
- - lib/ngrokapi/models/endpoint_policy.rb
416
424
  - lib/ngrokapi/models/endpoint_request_headers.rb
417
425
  - lib/ngrokapi/models/endpoint_response_headers.rb
418
- - lib/ngrokapi/models/endpoint_rule.rb
419
426
  - lib/ngrokapi/models/endpoint_saml.rb
420
427
  - lib/ngrokapi/models/endpoint_saml_mutate.rb
421
428
  - lib/ngrokapi/models/endpoint_tls_termination.rb
422
429
  - lib/ngrokapi/models/endpoint_tls_termination_at_edge.rb
430
+ - lib/ngrokapi/models/endpoint_traffic_policy.rb
423
431
  - lib/ngrokapi/models/endpoint_user_agent_filter.rb
424
432
  - lib/ngrokapi/models/endpoint_webhook_validation.rb
425
433
  - lib/ngrokapi/models/endpoint_websocket_tcp_converter.rb
@@ -429,6 +437,7 @@ files:
429
437
  - lib/ngrokapi/models/event_source_replace.rb
430
438
  - lib/ngrokapi/models/event_subscription.rb
431
439
  - lib/ngrokapi/models/event_target.rb
440
+ - lib/ngrokapi/models/event_target_azure_logs_ingestion.rb
432
441
  - lib/ngrokapi/models/event_target_cloudwatch_logs.rb
433
442
  - lib/ngrokapi/models/event_target_datadog.rb
434
443
  - lib/ngrokapi/models/event_target_firehose.rb
@@ -480,10 +489,10 @@ files:
480
489
  - lib/ngrokapi/services/edge_route_ip_restriction_module_client.rb
481
490
  - lib/ngrokapi/services/edge_route_o_auth_module_client.rb
482
491
  - lib/ngrokapi/services/edge_route_oidc_module_client.rb
483
- - lib/ngrokapi/services/edge_route_policy_module_client.rb
484
492
  - lib/ngrokapi/services/edge_route_request_headers_module_client.rb
485
493
  - lib/ngrokapi/services/edge_route_response_headers_module_client.rb
486
494
  - lib/ngrokapi/services/edge_route_saml_module_client.rb
495
+ - lib/ngrokapi/services/edge_route_traffic_policy_module_client.rb
487
496
  - lib/ngrokapi/services/edge_route_user_agent_filter_module_client.rb
488
497
  - lib/ngrokapi/services/edge_route_webhook_verification_module_client.rb
489
498
  - lib/ngrokapi/services/edge_route_websocket_tcp_converter_module_client.rb
@@ -511,13 +520,13 @@ files:
511
520
  - lib/ngrokapi/services/static_backends_client.rb
512
521
  - lib/ngrokapi/services/tcp_edge_backend_module_client.rb
513
522
  - lib/ngrokapi/services/tcp_edge_ip_restriction_module_client.rb
514
- - lib/ngrokapi/services/tcp_edge_policy_module_client.rb
523
+ - lib/ngrokapi/services/tcp_edge_traffic_policy_module_client.rb
515
524
  - lib/ngrokapi/services/tls_certificates_client.rb
516
525
  - lib/ngrokapi/services/tls_edge_backend_module_client.rb
517
526
  - lib/ngrokapi/services/tls_edge_ip_restriction_module_client.rb
518
527
  - lib/ngrokapi/services/tls_edge_mutual_tls_module_client.rb
519
- - lib/ngrokapi/services/tls_edge_policy_module_client.rb
520
528
  - lib/ngrokapi/services/tls_edge_tls_termination_module_client.rb
529
+ - lib/ngrokapi/services/tls_edge_traffic_policy_module_client.rb
521
530
  - lib/ngrokapi/services/tunnel_group_backends_client.rb
522
531
  - lib/ngrokapi/services/tunnel_sessions_client.rb
523
532
  - lib/ngrokapi/services/tunnels_client.rb
@@ -542,7 +551,6 @@ files:
542
551
  - spec/ngrokapi/models/browser_session_spec.rb
543
552
  - spec/ngrokapi/models/certificate_authority_spec.rb
544
553
  - spec/ngrokapi/models/credential_spec.rb
545
- - spec/ngrokapi/models/endpoint_action_spec.rb
546
554
  - spec/ngrokapi/models/endpoint_backend_mutate_spec.rb
547
555
  - spec/ngrokapi/models/endpoint_backend_spec.rb
548
556
  - spec/ngrokapi/models/endpoint_circuit_breaker_spec.rb
@@ -562,15 +570,14 @@ files:
562
570
  - spec/ngrokapi/models/endpoint_o_auth_spec.rb
563
571
  - spec/ngrokapi/models/endpoint_o_auth_twitch_spec.rb
564
572
  - spec/ngrokapi/models/endpoint_oidc_spec.rb
565
- - spec/ngrokapi/models/endpoint_policy_spec.rb
566
573
  - spec/ngrokapi/models/endpoint_request_headers_spec.rb
567
574
  - spec/ngrokapi/models/endpoint_response_headers_spec.rb
568
- - spec/ngrokapi/models/endpoint_rule_spec.rb
569
575
  - spec/ngrokapi/models/endpoint_saml_mutate_spec.rb
570
576
  - spec/ngrokapi/models/endpoint_saml_spec.rb
571
577
  - spec/ngrokapi/models/endpoint_spec.rb
572
578
  - spec/ngrokapi/models/endpoint_tls_termination_at_edge_spec.rb
573
579
  - spec/ngrokapi/models/endpoint_tls_termination_spec.rb
580
+ - spec/ngrokapi/models/endpoint_traffic_policy_spec.rb
574
581
  - spec/ngrokapi/models/endpoint_user_agent_filter_spec.rb
575
582
  - spec/ngrokapi/models/endpoint_webhook_validation_spec.rb
576
583
  - spec/ngrokapi/models/endpoint_websocket_tcp_converter_spec.rb
@@ -579,6 +586,7 @@ files:
579
586
  - spec/ngrokapi/models/event_source_replace_spec.rb
580
587
  - spec/ngrokapi/models/event_source_spec.rb
581
588
  - spec/ngrokapi/models/event_subscription_spec.rb
589
+ - spec/ngrokapi/models/event_target_azure_logs_ingestion_spec.rb
582
590
  - spec/ngrokapi/models/event_target_cloudwatch_logs_spec.rb
583
591
  - spec/ngrokapi/models/event_target_datadog_spec.rb
584
592
  - spec/ngrokapi/models/event_target_firehose_spec.rb
@@ -631,10 +639,10 @@ files:
631
639
  - spec/ngrokapi/services/edge_route_ip_restriction_module_client_spec.rb
632
640
  - spec/ngrokapi/services/edge_route_o_auth_module_client_spec.rb
633
641
  - spec/ngrokapi/services/edge_route_oidc_module_client_spec.rb
634
- - spec/ngrokapi/services/edge_route_policy_module_client_spec.rb
635
642
  - spec/ngrokapi/services/edge_route_request_headers_module_client_spec.rb
636
643
  - spec/ngrokapi/services/edge_route_response_headers_module_client_spec.rb
637
644
  - spec/ngrokapi/services/edge_route_saml_module_client_spec.rb
645
+ - spec/ngrokapi/services/edge_route_traffic_policy_module_client_spec.rb
638
646
  - spec/ngrokapi/services/edge_route_user_agent_filter_module_client_spec.rb
639
647
  - spec/ngrokapi/services/edge_route_webhook_verification_module_client_spec.rb
640
648
  - spec/ngrokapi/services/edge_route_websocket_tcp_converter_module_client_spec.rb
@@ -662,13 +670,13 @@ files:
662
670
  - spec/ngrokapi/services/static_backends_client_spec.rb
663
671
  - spec/ngrokapi/services/tcp_edge_backend_module_client_spec.rb
664
672
  - spec/ngrokapi/services/tcp_edge_ip_restriction_module_client_spec.rb
665
- - spec/ngrokapi/services/tcp_edge_policy_module_client_spec.rb
673
+ - spec/ngrokapi/services/tcp_edge_traffic_policy_module_client_spec.rb
666
674
  - spec/ngrokapi/services/tls_certificates_client_spec.rb
667
675
  - spec/ngrokapi/services/tls_edge_backend_module_client_spec.rb
668
676
  - spec/ngrokapi/services/tls_edge_ip_restriction_module_client_spec.rb
669
677
  - spec/ngrokapi/services/tls_edge_mutual_tls_module_client_spec.rb
670
- - spec/ngrokapi/services/tls_edge_policy_module_client_spec.rb
671
678
  - spec/ngrokapi/services/tls_edge_tls_termination_module_client_spec.rb
679
+ - spec/ngrokapi/services/tls_edge_traffic_policy_module_client_spec.rb
672
680
  - spec/ngrokapi/services/tunnel_group_backends_client_spec.rb
673
681
  - spec/ngrokapi/services/tunnel_sessions_client_spec.rb
674
682
  - spec/ngrokapi/services/tunnels_client_spec.rb