ngrok-api 0.9.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (413) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +1 -1
  3. data/doc/.gitkeep +0 -0
  4. data/doc/NgrokAPI/Client.html +1499 -125
  5. data/doc/NgrokAPI/Error.html +1 -1
  6. data/doc/NgrokAPI/Errors/NotFoundError.html +1 -1
  7. data/doc/NgrokAPI/Errors.html +1 -1
  8. data/doc/NgrokAPI/HttpClient.html +1 -1
  9. data/doc/NgrokAPI/Models/{ApiKey.html → APIKey.html} +108 -177
  10. data/doc/NgrokAPI/Models/AWSAuth.html +617 -0
  11. data/doc/NgrokAPI/Models/AWSCredentials.html +617 -0
  12. data/doc/NgrokAPI/Models/AWSRole.html +543 -0
  13. data/doc/NgrokAPI/Models/AbuseReport.html +987 -0
  14. data/doc/NgrokAPI/Models/AbuseReportHostname.html +617 -0
  15. data/doc/NgrokAPI/Models/CertificateAuthority.html +1439 -0
  16. data/doc/NgrokAPI/Models/Credential.html +1149 -0
  17. data/doc/NgrokAPI/Models/EndpointCircuitBreaker.html +913 -0
  18. data/doc/NgrokAPI/Models/EndpointCompression.html +543 -0
  19. data/doc/NgrokAPI/Models/EndpointConfiguration.html +1321 -510
  20. data/doc/NgrokAPI/Models/EndpointIPPolicy.html +617 -0
  21. data/doc/NgrokAPI/Models/EndpointIPPolicyMutate.html +617 -0
  22. data/doc/NgrokAPI/Models/EndpointLogging.html +617 -0
  23. data/doc/NgrokAPI/Models/EndpointLoggingMutate.html +617 -0
  24. data/doc/NgrokAPI/Models/EndpointMutualTLS.html +617 -0
  25. data/doc/NgrokAPI/Models/EndpointMutualTLSMutate.html +617 -0
  26. data/doc/NgrokAPI/Models/EndpointOAuth.html +987 -0
  27. data/doc/NgrokAPI/Models/EndpointOAuthFacebook.html +839 -0
  28. data/doc/NgrokAPI/Models/EndpointOAuthGitHub.html +987 -0
  29. data/doc/NgrokAPI/Models/EndpointOAuthGoogle.html +839 -0
  30. data/doc/NgrokAPI/Models/EndpointOAuthMicrosoft.html +839 -0
  31. data/doc/NgrokAPI/Models/EndpointOAuthProvider.html +765 -0
  32. data/doc/NgrokAPI/Models/EndpointOIDC.html +1135 -0
  33. data/doc/NgrokAPI/Models/EndpointRequestHeaders.html +691 -0
  34. data/doc/NgrokAPI/Models/EndpointResponseHeaders.html +691 -0
  35. data/doc/NgrokAPI/Models/EndpointSAML.html +1653 -0
  36. data/doc/NgrokAPI/Models/EndpointSAMLMutate.html +1283 -0
  37. data/doc/NgrokAPI/Models/EndpointTLSTermination.html +691 -0
  38. data/doc/NgrokAPI/Models/EndpointWebhookValidation.html +691 -0
  39. data/doc/NgrokAPI/Models/EventDestination.html +1058 -0
  40. data/doc/NgrokAPI/Models/EventSource.html +765 -0
  41. data/doc/NgrokAPI/Models/EventSourceReplace.html +691 -0
  42. data/doc/NgrokAPI/Models/EventStream.html +1309 -0
  43. data/doc/NgrokAPI/Models/EventSubscription.html +1058 -0
  44. data/doc/NgrokAPI/Models/EventTarget.html +765 -0
  45. data/doc/NgrokAPI/Models/EventTargetCloudwatchLogs.html +617 -0
  46. data/doc/NgrokAPI/Models/EventTargetFirehose.html +617 -0
  47. data/doc/NgrokAPI/Models/EventTargetKinesis.html +617 -0
  48. data/doc/NgrokAPI/Models/IPPolicy.html +1069 -0
  49. data/doc/NgrokAPI/Models/IPPolicyRule.html +1149 -0
  50. data/doc/NgrokAPI/Models/IPRestriction.html +1132 -0
  51. data/doc/NgrokAPI/Models/{TlsCertificate.html → IPWhitelistEntry.html} +168 -163
  52. data/doc/NgrokAPI/Models/Listable.html +1 -1
  53. data/doc/NgrokAPI/Models/Ref.html +617 -0
  54. data/doc/NgrokAPI/Models/ReservedAddr.html +1132 -0
  55. data/doc/NgrokAPI/Models/ReservedDomain.html +111 -1107
  56. data/doc/NgrokAPI/Models/ReservedDomainCertJob.html +839 -0
  57. data/doc/NgrokAPI/Models/ReservedDomainCertNSTarget.html +617 -0
  58. data/doc/NgrokAPI/Models/ReservedDomainCertPolicy.html +617 -0
  59. data/doc/NgrokAPI/Models/ReservedDomainCertStatus.html +617 -0
  60. data/doc/NgrokAPI/Models/SSHCertificateAuthority.html +1143 -0
  61. data/doc/NgrokAPI/Models/SSHCredential.html +1149 -0
  62. data/doc/NgrokAPI/Models/SSHHostCertificate.html +1513 -0
  63. data/doc/NgrokAPI/Models/SSHUserCertificate.html +1661 -0
  64. data/doc/NgrokAPI/Models/TLSCertificate.html +2179 -0
  65. data/doc/NgrokAPI/Models/TLSCertificateSANs.html +617 -0
  66. data/doc/NgrokAPI/Models/Tunnel.html +987 -0
  67. data/doc/NgrokAPI/Models/TunnelSession.html +1209 -0
  68. data/doc/NgrokAPI/Models.html +4 -4
  69. data/doc/NgrokAPI/PagedIterator.html +1 -1
  70. data/{docs/NgrokAPI/Services/ApiKeysClient.html → doc/NgrokAPI/Services/APIKeysClient.html} +287 -151
  71. data/doc/NgrokAPI/Services/AbuseReportsClient.html +723 -0
  72. data/doc/NgrokAPI/Services/CertificateAuthoritiesClient.html +1489 -0
  73. data/doc/NgrokAPI/Services/CredentialsClient.html +1534 -0
  74. data/doc/NgrokAPI/Services/EndpointCircuitBreakerModuleClient.html +1071 -0
  75. data/doc/NgrokAPI/Services/EndpointCompressionModuleClient.html +1071 -0
  76. data/doc/NgrokAPI/Services/EndpointConfigurationsClient.html +473 -371
  77. data/doc/NgrokAPI/Services/EndpointIPPolicyModuleClient.html +1071 -0
  78. data/doc/NgrokAPI/Services/EndpointLoggingModuleClient.html +1071 -0
  79. data/doc/NgrokAPI/Services/EndpointMutualTLSModuleClient.html +1071 -0
  80. data/doc/NgrokAPI/Services/EndpointOAuthModuleClient.html +1071 -0
  81. data/doc/NgrokAPI/Services/EndpointOIDCModuleClient.html +1071 -0
  82. data/doc/NgrokAPI/Services/EndpointRequestHeadersModuleClient.html +1071 -0
  83. data/doc/NgrokAPI/Services/EndpointResponseHeadersModuleClient.html +1071 -0
  84. data/doc/NgrokAPI/Services/EndpointSAMLModuleClient.html +1071 -0
  85. data/doc/NgrokAPI/Services/EndpointTLSTerminationModuleClient.html +1071 -0
  86. data/doc/NgrokAPI/Services/EndpointWebhookValidationModuleClient.html +1071 -0
  87. data/doc/NgrokAPI/Services/EventDestinationsClient.html +1609 -0
  88. data/doc/NgrokAPI/Services/EventSourcesClient.html +1348 -0
  89. data/doc/NgrokAPI/Services/EventStreamsClient.html +1691 -0
  90. data/doc/NgrokAPI/Services/EventSubscriptionsClient.html +1603 -0
  91. data/doc/NgrokAPI/Services/IPPoliciesClient.html +1488 -0
  92. data/doc/NgrokAPI/Services/IPPolicyRulesClient.html +1550 -0
  93. data/doc/NgrokAPI/Services/IPRestrictionsClient.html +1620 -0
  94. data/doc/NgrokAPI/Services/IPWhitelistClient.html +1488 -0
  95. data/doc/NgrokAPI/Services/ReservedAddrsClient.html +1793 -0
  96. data/doc/NgrokAPI/Services/ReservedDomainsClient.html +518 -333
  97. data/doc/NgrokAPI/Services/SSHCertificateAuthoritiesClient.html +1532 -0
  98. data/doc/NgrokAPI/Services/SSHCredentialsClient.html +1552 -0
  99. data/doc/NgrokAPI/Services/SSHHostCertificatesClient.html +1573 -0
  100. data/doc/NgrokAPI/Services/SSHUserCertificatesClient.html +1617 -0
  101. data/{docs/NgrokAPI/Services/TlsCertificatesClient.html → doc/NgrokAPI/Services/TLSCertificatesClient.html} +290 -198
  102. data/doc/NgrokAPI/Services/TunnelSessionsClient.html +1468 -0
  103. data/doc/NgrokAPI/Services/TunnelsClient.html +513 -0
  104. data/doc/NgrokAPI/Services.html +4 -4
  105. data/doc/NgrokAPI.html +3 -3
  106. data/doc/_index.html +624 -28
  107. data/doc/class_list.html +1 -1
  108. data/doc/file.README.html +1 -1
  109. data/doc/index.html +1 -1
  110. data/doc/method_list.html +7318 -286
  111. data/doc/top-level-namespace.html +1 -1
  112. data/docs/.gitkeep +0 -0
  113. data/docs/NgrokAPI/Client.html +1499 -125
  114. data/docs/NgrokAPI/Error.html +1 -1
  115. data/docs/NgrokAPI/Errors/NotFoundError.html +1 -1
  116. data/docs/NgrokAPI/Errors.html +1 -1
  117. data/docs/NgrokAPI/HttpClient.html +1 -1
  118. data/docs/NgrokAPI/Models/{ApiKey.html → APIKey.html} +108 -177
  119. data/docs/NgrokAPI/Models/AWSAuth.html +617 -0
  120. data/docs/NgrokAPI/Models/AWSCredentials.html +617 -0
  121. data/docs/NgrokAPI/Models/AWSRole.html +543 -0
  122. data/docs/NgrokAPI/Models/AbuseReport.html +987 -0
  123. data/docs/NgrokAPI/Models/AbuseReportHostname.html +617 -0
  124. data/docs/NgrokAPI/Models/CertificateAuthority.html +1439 -0
  125. data/docs/NgrokAPI/Models/Credential.html +1149 -0
  126. data/docs/NgrokAPI/Models/EndpointCircuitBreaker.html +913 -0
  127. data/docs/NgrokAPI/Models/EndpointCompression.html +543 -0
  128. data/docs/NgrokAPI/Models/EndpointConfiguration.html +1321 -510
  129. data/docs/NgrokAPI/Models/EndpointIPPolicy.html +617 -0
  130. data/docs/NgrokAPI/Models/EndpointIPPolicyMutate.html +617 -0
  131. data/docs/NgrokAPI/Models/EndpointLogging.html +617 -0
  132. data/docs/NgrokAPI/Models/EndpointLoggingMutate.html +617 -0
  133. data/docs/NgrokAPI/Models/EndpointMutualTLS.html +617 -0
  134. data/docs/NgrokAPI/Models/EndpointMutualTLSMutate.html +617 -0
  135. data/docs/NgrokAPI/Models/EndpointOAuth.html +987 -0
  136. data/docs/NgrokAPI/Models/EndpointOAuthFacebook.html +839 -0
  137. data/docs/NgrokAPI/Models/EndpointOAuthGitHub.html +987 -0
  138. data/docs/NgrokAPI/Models/EndpointOAuthGoogle.html +839 -0
  139. data/docs/NgrokAPI/Models/EndpointOAuthMicrosoft.html +839 -0
  140. data/docs/NgrokAPI/Models/EndpointOAuthProvider.html +765 -0
  141. data/docs/NgrokAPI/Models/EndpointOIDC.html +1135 -0
  142. data/docs/NgrokAPI/Models/EndpointRequestHeaders.html +691 -0
  143. data/docs/NgrokAPI/Models/EndpointResponseHeaders.html +691 -0
  144. data/docs/NgrokAPI/Models/EndpointSAML.html +1653 -0
  145. data/docs/NgrokAPI/Models/EndpointSAMLMutate.html +1283 -0
  146. data/docs/NgrokAPI/Models/EndpointTLSTermination.html +691 -0
  147. data/docs/NgrokAPI/Models/EndpointWebhookValidation.html +691 -0
  148. data/docs/NgrokAPI/Models/EventDestination.html +1058 -0
  149. data/docs/NgrokAPI/Models/EventSource.html +765 -0
  150. data/docs/NgrokAPI/Models/EventSourceReplace.html +691 -0
  151. data/docs/NgrokAPI/Models/EventStream.html +1309 -0
  152. data/docs/NgrokAPI/Models/EventSubscription.html +1058 -0
  153. data/docs/NgrokAPI/Models/EventTarget.html +765 -0
  154. data/docs/NgrokAPI/Models/EventTargetCloudwatchLogs.html +617 -0
  155. data/docs/NgrokAPI/Models/EventTargetFirehose.html +617 -0
  156. data/docs/NgrokAPI/Models/EventTargetKinesis.html +617 -0
  157. data/docs/NgrokAPI/Models/IPPolicy.html +1069 -0
  158. data/docs/NgrokAPI/Models/IPPolicyRule.html +1149 -0
  159. data/docs/NgrokAPI/Models/IPRestriction.html +1132 -0
  160. data/docs/NgrokAPI/Models/{TlsCertificate.html → IPWhitelistEntry.html} +168 -163
  161. data/docs/NgrokAPI/Models/Listable.html +1 -1
  162. data/docs/NgrokAPI/Models/Ref.html +617 -0
  163. data/docs/NgrokAPI/Models/ReservedAddr.html +1132 -0
  164. data/docs/NgrokAPI/Models/ReservedDomain.html +111 -1107
  165. data/docs/NgrokAPI/Models/ReservedDomainCertJob.html +839 -0
  166. data/docs/NgrokAPI/Models/ReservedDomainCertNSTarget.html +617 -0
  167. data/docs/NgrokAPI/Models/ReservedDomainCertPolicy.html +617 -0
  168. data/docs/NgrokAPI/Models/ReservedDomainCertStatus.html +617 -0
  169. data/docs/NgrokAPI/Models/SSHCertificateAuthority.html +1143 -0
  170. data/docs/NgrokAPI/Models/SSHCredential.html +1149 -0
  171. data/docs/NgrokAPI/Models/SSHHostCertificate.html +1513 -0
  172. data/docs/NgrokAPI/Models/SSHUserCertificate.html +1661 -0
  173. data/docs/NgrokAPI/Models/TLSCertificate.html +2179 -0
  174. data/docs/NgrokAPI/Models/TLSCertificateSANs.html +617 -0
  175. data/docs/NgrokAPI/Models/Tunnel.html +987 -0
  176. data/docs/NgrokAPI/Models/TunnelSession.html +1209 -0
  177. data/docs/NgrokAPI/Models.html +4 -4
  178. data/docs/NgrokAPI/PagedIterator.html +1 -1
  179. data/{doc/NgrokAPI/Services/ApiKeysClient.html → docs/NgrokAPI/Services/APIKeysClient.html} +287 -151
  180. data/docs/NgrokAPI/Services/AbuseReportsClient.html +723 -0
  181. data/docs/NgrokAPI/Services/CertificateAuthoritiesClient.html +1489 -0
  182. data/docs/NgrokAPI/Services/CredentialsClient.html +1534 -0
  183. data/docs/NgrokAPI/Services/EndpointCircuitBreakerModuleClient.html +1071 -0
  184. data/docs/NgrokAPI/Services/EndpointCompressionModuleClient.html +1071 -0
  185. data/docs/NgrokAPI/Services/EndpointConfigurationsClient.html +473 -371
  186. data/docs/NgrokAPI/Services/EndpointIPPolicyModuleClient.html +1071 -0
  187. data/docs/NgrokAPI/Services/EndpointLoggingModuleClient.html +1071 -0
  188. data/docs/NgrokAPI/Services/EndpointMutualTLSModuleClient.html +1071 -0
  189. data/docs/NgrokAPI/Services/EndpointOAuthModuleClient.html +1071 -0
  190. data/docs/NgrokAPI/Services/EndpointOIDCModuleClient.html +1071 -0
  191. data/docs/NgrokAPI/Services/EndpointRequestHeadersModuleClient.html +1071 -0
  192. data/docs/NgrokAPI/Services/EndpointResponseHeadersModuleClient.html +1071 -0
  193. data/docs/NgrokAPI/Services/EndpointSAMLModuleClient.html +1071 -0
  194. data/docs/NgrokAPI/Services/EndpointTLSTerminationModuleClient.html +1071 -0
  195. data/docs/NgrokAPI/Services/EndpointWebhookValidationModuleClient.html +1071 -0
  196. data/docs/NgrokAPI/Services/EventDestinationsClient.html +1609 -0
  197. data/docs/NgrokAPI/Services/EventSourcesClient.html +1348 -0
  198. data/docs/NgrokAPI/Services/EventStreamsClient.html +1691 -0
  199. data/docs/NgrokAPI/Services/EventSubscriptionsClient.html +1603 -0
  200. data/docs/NgrokAPI/Services/IPPoliciesClient.html +1488 -0
  201. data/docs/NgrokAPI/Services/IPPolicyRulesClient.html +1550 -0
  202. data/docs/NgrokAPI/Services/IPRestrictionsClient.html +1620 -0
  203. data/docs/NgrokAPI/Services/IPWhitelistClient.html +1488 -0
  204. data/docs/NgrokAPI/Services/ReservedAddrsClient.html +1793 -0
  205. data/docs/NgrokAPI/Services/ReservedDomainsClient.html +518 -333
  206. data/docs/NgrokAPI/Services/SSHCertificateAuthoritiesClient.html +1532 -0
  207. data/docs/NgrokAPI/Services/SSHCredentialsClient.html +1552 -0
  208. data/docs/NgrokAPI/Services/SSHHostCertificatesClient.html +1573 -0
  209. data/docs/NgrokAPI/Services/SSHUserCertificatesClient.html +1617 -0
  210. data/{doc/NgrokAPI/Services/TlsCertificatesClient.html → docs/NgrokAPI/Services/TLSCertificatesClient.html} +290 -198
  211. data/docs/NgrokAPI/Services/TunnelSessionsClient.html +1468 -0
  212. data/docs/NgrokAPI/Services/TunnelsClient.html +513 -0
  213. data/docs/NgrokAPI/Services.html +4 -4
  214. data/docs/NgrokAPI.html +3 -3
  215. data/docs/_index.html +624 -28
  216. data/docs/class_list.html +1 -1
  217. data/docs/file.README.html +1 -1
  218. data/docs/index.html +1 -1
  219. data/docs/method_list.html +7318 -286
  220. data/docs/top-level-namespace.html +1 -1
  221. data/lib/ngrokapi/client.rb +218 -49
  222. data/lib/ngrokapi/models/abuse_report.rb +37 -0
  223. data/lib/ngrokapi/models/abuse_report_hostname.rb +27 -0
  224. data/lib/ngrokapi/models/api_key.rb +62 -64
  225. data/lib/ngrokapi/models/aws_auth.rb +27 -0
  226. data/lib/ngrokapi/models/aws_credentials.rb +27 -0
  227. data/lib/ngrokapi/models/aws_role.rb +25 -0
  228. data/lib/ngrokapi/models/certificate_authority.rb +72 -0
  229. data/lib/ngrokapi/models/credential.rb +67 -0
  230. data/lib/ngrokapi/models/endpoint_circuit_breaker.rb +35 -0
  231. data/lib/ngrokapi/models/endpoint_compression.rb +25 -0
  232. data/lib/ngrokapi/models/endpoint_configuration.rb +130 -119
  233. data/lib/ngrokapi/models/endpoint_ip_policy.rb +27 -0
  234. data/lib/ngrokapi/models/endpoint_ip_policy_mutate.rb +27 -0
  235. data/lib/ngrokapi/models/endpoint_logging.rb +27 -0
  236. data/lib/ngrokapi/models/endpoint_logging_mutate.rb +27 -0
  237. data/lib/ngrokapi/models/endpoint_mutual_tls.rb +27 -0
  238. data/lib/ngrokapi/models/endpoint_mutual_tls_mutate.rb +27 -0
  239. data/lib/ngrokapi/models/endpoint_o_auth.rb +37 -0
  240. data/lib/ngrokapi/models/endpoint_o_auth_facebook.rb +33 -0
  241. data/lib/ngrokapi/models/endpoint_o_auth_git_hub.rb +37 -0
  242. data/lib/ngrokapi/models/endpoint_o_auth_google.rb +33 -0
  243. data/lib/ngrokapi/models/endpoint_o_auth_microsoft.rb +33 -0
  244. data/lib/ngrokapi/models/endpoint_o_auth_provider.rb +31 -0
  245. data/lib/ngrokapi/models/endpoint_oidc.rb +41 -0
  246. data/lib/ngrokapi/models/endpoint_request_headers.rb +29 -0
  247. data/lib/ngrokapi/models/endpoint_response_headers.rb +29 -0
  248. data/lib/ngrokapi/models/endpoint_saml.rb +55 -0
  249. data/lib/ngrokapi/models/endpoint_saml_mutate.rb +45 -0
  250. data/lib/ngrokapi/models/endpoint_tls_termination.rb +29 -0
  251. data/lib/ngrokapi/models/endpoint_webhook_validation.rb +29 -0
  252. data/lib/ngrokapi/models/event_destination.rb +49 -0
  253. data/lib/ngrokapi/models/event_source.rb +31 -0
  254. data/lib/ngrokapi/models/event_source_replace.rb +29 -0
  255. data/lib/ngrokapi/models/event_stream.rb +77 -0
  256. data/lib/ngrokapi/models/event_subscription.rb +47 -0
  257. data/lib/ngrokapi/models/event_target.rb +31 -0
  258. data/lib/ngrokapi/models/event_target_cloudwatch_logs.rb +27 -0
  259. data/lib/ngrokapi/models/event_target_firehose.rb +27 -0
  260. data/lib/ngrokapi/models/event_target_kinesis.rb +27 -0
  261. data/lib/ngrokapi/models/ip_policy.rb +64 -0
  262. data/lib/ngrokapi/models/ip_policy_rule.rb +67 -0
  263. data/lib/ngrokapi/models/ip_restriction.rb +49 -0
  264. data/lib/ngrokapi/models/ip_whitelist_entry.rb +62 -0
  265. data/lib/ngrokapi/models/ref.rb +27 -0
  266. data/lib/ngrokapi/models/reserved_addr.rb +49 -0
  267. data/lib/ngrokapi/models/reserved_domain.rb +59 -211
  268. data/lib/ngrokapi/models/reserved_domain_cert_job.rb +33 -0
  269. data/lib/ngrokapi/models/reserved_domain_cert_ns_target.rb +27 -0
  270. data/lib/ngrokapi/models/reserved_domain_cert_policy.rb +27 -0
  271. data/lib/ngrokapi/models/reserved_domain_cert_status.rb +27 -0
  272. data/lib/ngrokapi/models/ssh_certificate_authority.rb +64 -0
  273. data/lib/ngrokapi/models/ssh_credential.rb +67 -0
  274. data/lib/ngrokapi/models/ssh_host_certificate.rb +74 -0
  275. data/lib/ngrokapi/models/ssh_user_certificate.rb +78 -0
  276. data/lib/ngrokapi/models/tls_certificate.rb +92 -62
  277. data/lib/ngrokapi/models/tls_certificate_sa_ns.rb +27 -0
  278. data/lib/ngrokapi/models/tunnel.rb +37 -0
  279. data/lib/ngrokapi/models/tunnel_session.rb +43 -0
  280. data/lib/ngrokapi/services/.gitkeep +0 -0
  281. data/lib/ngrokapi/services/abuse_reports_client.rb +84 -0
  282. data/lib/ngrokapi/services/api_keys_client.rb +203 -144
  283. data/lib/ngrokapi/services/certificate_authorities_client.rb +204 -0
  284. data/lib/ngrokapi/services/credentials_client.rb +212 -0
  285. data/lib/ngrokapi/services/endpoint_circuit_breaker_module_client.rb +122 -0
  286. data/lib/ngrokapi/services/endpoint_compression_module_client.rb +122 -0
  287. data/lib/ngrokapi/services/endpoint_configurations_client.rb +324 -313
  288. data/lib/ngrokapi/services/endpoint_ip_policy_module_client.rb +122 -0
  289. data/lib/ngrokapi/services/endpoint_logging_module_client.rb +122 -0
  290. data/lib/ngrokapi/services/endpoint_mutual_tls_module_client.rb +122 -0
  291. data/lib/ngrokapi/services/endpoint_o_auth_module_client.rb +122 -0
  292. data/lib/ngrokapi/services/endpoint_oidc_module_client.rb +122 -0
  293. data/lib/ngrokapi/services/endpoint_request_headers_module_client.rb +122 -0
  294. data/lib/ngrokapi/services/endpoint_response_headers_module_client.rb +122 -0
  295. data/lib/ngrokapi/services/endpoint_saml_module_client.rb +122 -0
  296. data/lib/ngrokapi/services/endpoint_tls_termination_module_client.rb +122 -0
  297. data/lib/ngrokapi/services/endpoint_webhook_validation_module_client.rb +122 -0
  298. data/lib/ngrokapi/services/event_destinations_client.rb +222 -0
  299. data/lib/ngrokapi/services/event_sources_client.rb +177 -0
  300. data/lib/ngrokapi/services/event_streams_client.rb +226 -0
  301. data/lib/ngrokapi/services/event_subscriptions_client.rb +213 -0
  302. data/lib/ngrokapi/services/ip_policies_client.rb +208 -0
  303. data/lib/ngrokapi/services/ip_policy_rules_client.rb +210 -0
  304. data/lib/ngrokapi/services/ip_restrictions_client.rb +223 -0
  305. data/lib/ngrokapi/services/ip_whitelist_client.rb +202 -0
  306. data/lib/ngrokapi/services/reserved_addrs_client.rb +246 -0
  307. data/lib/ngrokapi/services/reserved_domains_client.rb +382 -313
  308. data/lib/ngrokapi/services/ssh_certificate_authorities_client.rb +207 -0
  309. data/lib/ngrokapi/services/ssh_credentials_client.rb +211 -0
  310. data/lib/ngrokapi/services/ssh_host_certificates_client.rb +214 -0
  311. data/lib/ngrokapi/services/ssh_user_certificates_client.rb +220 -0
  312. data/lib/ngrokapi/services/tls_certificates_client.rb +207 -161
  313. data/lib/ngrokapi/services/tunnel_sessions_client.rb +228 -0
  314. data/lib/ngrokapi/services/tunnels_client.rb +51 -0
  315. data/lib/ngrokapi/version.rb +1 -1
  316. data/spec/ngrokapi/client_spec.rb +139 -33
  317. data/spec/ngrokapi/models/abuse_report_hostname_spec.rb +21 -0
  318. data/spec/ngrokapi/models/abuse_report_spec.rb +21 -0
  319. data/spec/ngrokapi/models/api_key_spec.rb +42 -43
  320. data/spec/ngrokapi/models/aws_auth_spec.rb +21 -0
  321. data/spec/ngrokapi/models/aws_credentials_spec.rb +21 -0
  322. data/spec/ngrokapi/models/aws_role_spec.rb +21 -0
  323. data/spec/ngrokapi/models/certificate_authority_spec.rb +42 -0
  324. data/spec/ngrokapi/models/credential_spec.rb +45 -0
  325. data/spec/ngrokapi/models/endpoint_circuit_breaker_spec.rb +21 -0
  326. data/spec/ngrokapi/models/endpoint_compression_spec.rb +21 -0
  327. data/spec/ngrokapi/models/endpoint_configuration_spec.rb +78 -0
  328. data/spec/ngrokapi/models/endpoint_ip_policy_mutate_spec.rb +21 -0
  329. data/spec/ngrokapi/models/endpoint_ip_policy_spec.rb +21 -0
  330. data/spec/ngrokapi/models/endpoint_logging_mutate_spec.rb +21 -0
  331. data/spec/ngrokapi/models/endpoint_logging_spec.rb +21 -0
  332. data/spec/ngrokapi/models/endpoint_mutual_tls_mutate_spec.rb +21 -0
  333. data/spec/ngrokapi/models/endpoint_mutual_tls_spec.rb +21 -0
  334. data/spec/ngrokapi/models/endpoint_o_auth_facebook_spec.rb +21 -0
  335. data/spec/ngrokapi/models/endpoint_o_auth_git_hub_spec.rb +21 -0
  336. data/spec/ngrokapi/models/endpoint_o_auth_google_spec.rb +21 -0
  337. data/spec/ngrokapi/models/endpoint_o_auth_microsoft_spec.rb +21 -0
  338. data/spec/ngrokapi/models/endpoint_o_auth_provider_spec.rb +21 -0
  339. data/spec/ngrokapi/models/endpoint_o_auth_spec.rb +21 -0
  340. data/spec/ngrokapi/models/endpoint_oidc_spec.rb +21 -0
  341. data/spec/ngrokapi/models/endpoint_request_headers_spec.rb +21 -0
  342. data/spec/ngrokapi/models/endpoint_response_headers_spec.rb +21 -0
  343. data/spec/ngrokapi/models/endpoint_saml_mutate_spec.rb +21 -0
  344. data/spec/ngrokapi/models/endpoint_saml_spec.rb +21 -0
  345. data/spec/ngrokapi/models/endpoint_tls_termination_spec.rb +21 -0
  346. data/spec/ngrokapi/models/endpoint_webhook_validation_spec.rb +21 -0
  347. data/spec/ngrokapi/models/event_destination_spec.rb +28 -0
  348. data/spec/ngrokapi/models/event_source_replace_spec.rb +21 -0
  349. data/spec/ngrokapi/models/event_source_spec.rb +21 -0
  350. data/spec/ngrokapi/models/event_stream_spec.rb +51 -0
  351. data/spec/ngrokapi/models/event_subscription_spec.rb +28 -0
  352. data/spec/ngrokapi/models/event_target_cloudwatch_logs_spec.rb +21 -0
  353. data/spec/ngrokapi/models/event_target_firehose_spec.rb +21 -0
  354. data/spec/ngrokapi/models/event_target_kinesis_spec.rb +21 -0
  355. data/spec/ngrokapi/models/event_target_spec.rb +21 -0
  356. data/spec/ngrokapi/models/ip_policy_rule_spec.rb +45 -0
  357. data/spec/ngrokapi/models/ip_policy_spec.rb +42 -0
  358. data/spec/ngrokapi/models/ip_restriction_spec.rb +28 -0
  359. data/spec/ngrokapi/models/ip_whitelist_entry_spec.rb +42 -0
  360. data/spec/ngrokapi/models/listable_spec.rb +4 -4
  361. data/spec/ngrokapi/models/ref_spec.rb +21 -0
  362. data/spec/ngrokapi/models/reserved_addr_spec.rb +28 -0
  363. data/spec/ngrokapi/models/reserved_domain_cert_job_spec.rb +21 -0
  364. data/spec/ngrokapi/models/reserved_domain_cert_ns_target_spec.rb +21 -0
  365. data/spec/ngrokapi/models/reserved_domain_cert_policy_spec.rb +21 -0
  366. data/spec/ngrokapi/models/reserved_domain_cert_status_spec.rb +21 -0
  367. data/spec/ngrokapi/models/reserved_domain_spec.rb +28 -100
  368. data/spec/ngrokapi/models/ssh_certificate_authority_spec.rb +42 -0
  369. data/spec/ngrokapi/models/ssh_credential_spec.rb +45 -0
  370. data/spec/ngrokapi/models/ssh_host_certificate_spec.rb +42 -0
  371. data/spec/ngrokapi/models/ssh_user_certificate_spec.rb +42 -0
  372. data/spec/ngrokapi/models/tls_certificate_sa_ns_spec.rb +21 -0
  373. data/spec/ngrokapi/models/tls_certificate_spec.rb +42 -0
  374. data/spec/ngrokapi/models/tunnel_session_spec.rb +21 -0
  375. data/spec/ngrokapi/models/tunnel_spec.rb +21 -0
  376. data/spec/ngrokapi/paged_iterator_spec.rb +5 -5
  377. data/spec/ngrokapi/services/.gitkeep +0 -0
  378. data/spec/ngrokapi/services/abuse_reports_client_spec.rb +67 -0
  379. data/spec/ngrokapi/services/api_keys_client_spec.rb +160 -127
  380. data/spec/ngrokapi/services/certificate_authorities_client_spec.rb +162 -0
  381. data/spec/ngrokapi/services/credentials_client_spec.rb +166 -0
  382. data/spec/ngrokapi/services/endpoint_circuit_breaker_module_client_spec.rb +127 -0
  383. data/spec/ngrokapi/services/endpoint_compression_module_client_spec.rb +127 -0
  384. data/spec/ngrokapi/services/endpoint_configurations_client_spec.rb +240 -0
  385. data/spec/ngrokapi/services/endpoint_ip_policy_module_client_spec.rb +127 -0
  386. data/spec/ngrokapi/services/endpoint_logging_module_client_spec.rb +127 -0
  387. data/spec/ngrokapi/services/endpoint_mutual_tls_module_client_spec.rb +127 -0
  388. data/spec/ngrokapi/services/endpoint_o_auth_module_client_spec.rb +127 -0
  389. data/spec/ngrokapi/services/endpoint_oidc_module_client_spec.rb +127 -0
  390. data/spec/ngrokapi/services/endpoint_request_headers_module_client_spec.rb +127 -0
  391. data/spec/ngrokapi/services/endpoint_response_headers_module_client_spec.rb +127 -0
  392. data/spec/ngrokapi/services/endpoint_saml_module_client_spec.rb +127 -0
  393. data/spec/ngrokapi/services/endpoint_tls_termination_module_client_spec.rb +127 -0
  394. data/spec/ngrokapi/services/endpoint_webhook_validation_module_client_spec.rb +127 -0
  395. data/spec/ngrokapi/services/event_destinations_client_spec.rb +175 -0
  396. data/spec/ngrokapi/services/event_sources_client_spec.rb +162 -0
  397. data/spec/ngrokapi/services/event_streams_client_spec.rb +180 -0
  398. data/spec/ngrokapi/services/event_subscriptions_client_spec.rb +172 -0
  399. data/spec/ngrokapi/services/ip_policies_client_spec.rb +162 -0
  400. data/spec/ngrokapi/services/ip_policy_rules_client_spec.rb +168 -0
  401. data/spec/ngrokapi/services/ip_restrictions_client_spec.rb +174 -0
  402. data/spec/ngrokapi/services/ip_whitelist_client_spec.rb +162 -0
  403. data/spec/ngrokapi/services/reserved_addrs_client_spec.rb +209 -0
  404. data/spec/ngrokapi/services/reserved_domains_client_spec.rb +352 -0
  405. data/spec/ngrokapi/services/ssh_certificate_authorities_client_spec.rb +166 -0
  406. data/spec/ngrokapi/services/ssh_credentials_client_spec.rb +168 -0
  407. data/spec/ngrokapi/services/ssh_host_certificates_client_spec.rb +170 -0
  408. data/spec/ngrokapi/services/ssh_user_certificates_client_spec.rb +174 -0
  409. data/spec/ngrokapi/services/tls_certificates_client_spec.rb +164 -0
  410. data/spec/ngrokapi/services/tunnel_sessions_client_spec.rb +184 -0
  411. data/spec/ngrokapi/services/tunnels_client_spec.rb +21 -0
  412. data/spec/spec_helper.rb +958 -0
  413. metadata +355 -10
data/spec/spec_helper.rb CHANGED
@@ -46,6 +46,17 @@ RSpec::Matchers.define :use_cert_store do |cert_store|
46
46
  end
47
47
 
48
48
  # Custom objects
49
+ # NOTE: we should programmatically create these at some point in the future.
50
+ def abuse_report_hostname_result
51
+ {
52
+ }
53
+ end
54
+
55
+ def abuse_report_result
56
+ {
57
+ }
58
+ end
59
+
49
60
  def api_key_result
50
61
  {
51
62
  "id" => "ak_1xrq8h890dWRYiRdIHeZYCdlyT7",
@@ -78,3 +89,950 @@ def api_key_results
78
89
  "next_page_uri" => nil,
79
90
  }
80
91
  end
92
+
93
+ def aws_auth_result
94
+ {
95
+ }
96
+ end
97
+
98
+ def aws_credentials_result
99
+ {
100
+ }
101
+ end
102
+
103
+ def aws_role_result
104
+ {
105
+ }
106
+ end
107
+
108
+ def certificate_authority_result
109
+ {
110
+ "id" => "ca_1rV5DZka5Q6SaX2NwY1rKVOVgA1",
111
+ "uri" => "https://api.ngrok.com/certificate_authorities/ca_1rV5DZka5Q6SaX2NwY1rKVOVgA1",
112
+ "created_at" => "2021-04-21T23:38:17Z",
113
+ "description" => "Device Connectivity Authority",
114
+ "metadata" => "",
115
+ "ca_pem" => "-----BEGIN CERTIFICATE-----\nMIIEAzCCAuugAwIBAgIUGN+Gv4BdJ17VoVXWrz9j51jcfYowDQYJKoZIhvcNAQEL\nBQAwgZAxCzAJBgNVBAYTAlVTMRMwEQYDVQQIDApDYWxpZm9ybmlhMRYwFAYDVQQH\nDA1TYW4gRnJhbmNpc2NvMRMwEQYDVQQKDApBQ01FLCBJbmMuMR4wHAYDVQQDDBVB\nQ01FIERldmljZSBBdXRob3JpdHkxHzAdBgkqhkiG9w0BCQEWEG9wc0BhY21lLmV4\nYW1wbGUwHhcNMjAwNTAxMTYyNTA5WhcNMjEwNTAxMTYyNTA5WjCBkDELMAkGA1UE\nBhMCVVMxEzARBgNVBAgMCkNhbGlmb3JuaWExFjAUBgNVBAcMDVNhbiBGcmFuY2lz\nY28xEzARBgNVBAoMCkFDTUUsIEluYy4xHjAcBgNVBAMMFUFDTUUgRGV2aWNlIEF1\ndGhvcml0eTEfMB0GCSqGSIb3DQEJARYQb3BzQGFjbWUuZXhhbXBsZTCCASIwDQYJ\nKoZIhvcNAQEBBQADggEPADCCAQoCggEBAO8vxADdMmZANJ0aTAX6Jp50vCjFh2/d\nJLxn4ZAg0fFgkM+Zl+3gxGA7YUUKxIKet6rSeyKAjOX9AFA+idpv5mXnD+0nwPDr\nkwGe1MkYsaWYdMyUEoI9uEodS0LmHItAzV63ovkdagb3fqZqWcJCsoDa22WHt6GN\nT2d4xGD0gEMyDmwxey4XYSy63H1mvQRzhjC5wCzTGOefG76Io0whJka0mr3b6wEv\nSw0YqRF0/BEDlmWU/VWz7YEgWpb0rXaLqQKbZjyFo137X1otZK8vj9MVRWRvYmcF\nHgE+n0ifoCQ/DNVF1mkG6HGK3LREj9LGRBTN683Vqq2W+93B9yuTgr8CAwEAAaNT\nMFEwHQYDVR0OBBYEFLGXXIYFIpkRy4j0VsOdfgxgZpXzMB8GA1UdIwQYMBaAFLGX\nXIYFIpkRy4j0VsOdfgxgZpXzMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQEL\nBQADggEBAFyO7ZWj9w6xzoBWu/XbIVwsQ3kE5k+wrRGyp2rh2v4msAEveCIZP5kT\nCSdr2vr+9HQYiKf1ftsp9tGTLXwrhz3ztC8jIqo4A0grw5B61J0lj+2grKNq1/CK\nxQcpkbnetzo4zsDqFRoN2VK40Ovo4b/IknFa38t06b4t8cYQIqUdkFHMSSIz3Mvx\nRIK6MZlilT8zkWhi9kfCJe/s3cVEAJixNkgO4XNo5VhhxFenyvAL2vDM27dWVtDG\nqL3MFZbcy0/74AJsJDSrflGUQxjrK3WI9PkpKp/xey54XJAbhF63z1VwkJwSwufv\nW9HgidfMN9icgxkScyWpB9KrZHcsLk4=\n-----END CERTIFICATE-----\n",
116
+ "subject_common_name" => "ACME Device Authority",
117
+ "not_before" => "2020-05-01T16:25:09Z",
118
+ "not_after" => "2021-05-01T16:25:09Z",
119
+ "key_usages" => [],
120
+ "extended_key_usages" => [],
121
+ }
122
+ end
123
+
124
+ def certificate_authority_result2
125
+ {
126
+ "id" => "ca_1rV5Dca4ELSBvqQv2YmoQp4s220",
127
+ "uri" => "https://api.ngrok.com/certificate_authorities/ca_1rV5Dca4ELSBvqQv2YmoQp4s220",
128
+ "created_at" => "2021-04-21T23:38:17Z",
129
+ "description" => "Internal Coprorates Services Authority",
130
+ "metadata" => "{\"internal_id\" => \"7d2caeee-cdc3-4b26-b2c2-b280b8287552\"}",
131
+ "ca_pem" => "-----BEGIN CERTIFICATE-----\nMIIEETCCAvmgAwIBAgIUU3N6lNzPqar4400cLQMcVHFl+mEwDQYJKoZIhvcNAQEL\nBQAwgZcxCzAJBgNVBAYTAkFVMQwwCgYDVQQIDANOU1cxDzANBgNVBAcMBlN5ZG5l\neTEZMBcGA1UECgwQRHJvcGJlYXIgUHR5IEx0ZDEkMCIGA1UEAwwbSW50cmFuZXQg\nU2VydmljZXMgQXV0aG9yaXR5MSgwJgYJKoZIhvcNAQkBFhlzZWN1cml0eUBkcm9w\nYmVhci5leGFtcGxlMB4XDTIwMDUwMTE2Mjc1OVoXDTIxMDUwMTE2Mjc1OVowgZcx\nCzAJBgNVBAYTAkFVMQwwCgYDVQQIDANOU1cxDzANBgNVBAcMBlN5ZG5leTEZMBcG\nA1UECgwQRHJvcGJlYXIgUHR5IEx0ZDEkMCIGA1UEAwwbSW50cmFuZXQgU2Vydmlj\nZXMgQXV0aG9yaXR5MSgwJgYJKoZIhvcNAQkBFhlzZWN1cml0eUBkcm9wYmVhci5l\neGFtcGxlMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7y/EAN0yZkA0\nnRpMBfomnnS8KMWHb90kvGfhkCDR8WCQz5mX7eDEYDthRQrEgp63qtJ7IoCM5f0A\nUD6J2m/mZecP7SfA8OuTAZ7UyRixpZh0zJQSgj24Sh1LQuYci0DNXrei+R1qBvd+\npmpZwkKygNrbZYe3oY1PZ3jEYPSAQzIObDF7LhdhLLrcfWa9BHOGMLnALNMY558b\nvoijTCEmRrSavdvrAS9LDRipEXT8EQOWZZT9VbPtgSBalvStdoupAptmPIWjXftf\nWi1kry+P0xVFZG9iZwUeAT6fSJ+gJD8M1UXWaQbocYrctESP0sZEFM3rzdWqrZb7\n3cH3K5OCvwIDAQABo1MwUTAdBgNVHQ4EFgQUsZdchgUimRHLiPRWw51+DGBmlfMw\nHwYDVR0jBBgwFoAUsZdchgUimRHLiPRWw51+DGBmlfMwDwYDVR0TAQH/BAUwAwEB\n/zANBgkqhkiG9w0BAQsFAAOCAQEANk25tt8sSfn6Qu1bbhWRbjKgS5z+j9LqyCna\nv3fbSchMthaQR7w0vL69ayroeYdqDZkRMmHjuYKY4NyqyXkkaqVO63wEicCo55d9\npIKuPzc/7xwdRephosjGTQ4QaQ4OnrdpJZieI92m9ODexgsab84AYmwNpbGOI/tK\nnPsQr8x1RfLs2gbBwQ4MYVM3tQQbX0o+yve5nz/NCOq4vdG+eKON5u6VYMkOOg9F\nVyNY1iISQkpNk/AF6Vi9BGuDb5Hg0phEl1Q0ntCO7ZHAUHjy0ucqXZiXoXdXZcs3\n3zKKLUKva59EDBZ5TUucvXh8VemBtNc6hd1mX4Tq7lAreG9pjQ==\n-----END CERTIFICATE-----\n",
132
+ "subject_common_name" => "Intranet Services Authority",
133
+ "not_before" => "2020-05-01T16:27:59Z",
134
+ "not_after" => "2021-05-01T16:27:59Z",
135
+ "key_usages" => [],
136
+ "extended_key_usages" => [],
137
+ }
138
+ end
139
+
140
+ def certificate_authority_results
141
+ {
142
+ "certificate_authorities" => [
143
+ certificate_authority_result,
144
+ certificate_authority_result2,
145
+ ],
146
+ "uri" => "https://api.ngrok.com/certificate_authorities",
147
+ "next_page_uri" => nil,
148
+ }
149
+ end
150
+
151
+ def credential_result
152
+ {
153
+ "id" => "cr_1rV53L5Cbhpz2SEyPaMuh3Fz4fN",
154
+ "uri" => "https://api.ngrok.com/credentials/cr_1rV53L5Cbhpz2SEyPaMuh3Fz4fN",
155
+ "created_at" => "2021-04-21T23:36:55Z",
156
+ "description" => "for device #132",
157
+ "metadata" => "",
158
+ "token" => nil,
159
+ "acl" => [
160
+ "bind:1.tcp.ngrok.io:20002",
161
+ "bind:132.devices.company.com",
162
+ ],
163
+ }
164
+ end
165
+
166
+ def credential_result2
167
+ {
168
+ "id" => "cr_1rV53HesDPMw48BJyEO9Zlgz9dd",
169
+ "uri" => "https://api.ngrok.com/credentials/cr_1rV53HesDPMw48BJyEO9Zlgz9dd",
170
+ "created_at" => "2021-04-21T23:36:55Z",
171
+ "description" => "development cred for alan@example.com",
172
+ "metadata" => "",
173
+ "token" => nil,
174
+ "acl" => [],
175
+ }
176
+ end
177
+
178
+ def credential_results
179
+ {
180
+ "credentials" => [
181
+ credential_result,
182
+ credential_result2,
183
+ ],
184
+ "uri" => "https //api.ngrok.com/credentials",
185
+ "next_page_uri" => nil,
186
+ }
187
+ end
188
+
189
+ def endpoint_compression_result
190
+ {
191
+ }
192
+ end
193
+
194
+ def endpoint_configuration_result
195
+ {
196
+ "id" => "ec_1rV504F3NJD5F9CSDUeWRkld2SB",
197
+ "type" => "https",
198
+ "description" => "app servers",
199
+ "metadata" => "",
200
+ "created_at" => "2021-04-21T23:36:29Z",
201
+ "uri" => "https://api.ngrok.com/endpoint_configurations/ec_1rV504F3NJD5F9CSDUeWRkld2SB",
202
+ "basic_auth" => nil,
203
+ "circuit_breaker" => nil,
204
+ "compression" => nil,
205
+ "request_headers" => {
206
+ "enabled" => true,
207
+ "add" => {
208
+ "x-frontend" => "ngrok",
209
+ },
210
+ "remove" => [
211
+ "cache-control",
212
+ ],
213
+ },
214
+ "response_headers" => nil,
215
+ "ip_policy" => nil,
216
+ "mutual_tls" => nil,
217
+ "tls_termination" => nil,
218
+ "webhook_validation" => nil,
219
+ "oauth" => nil,
220
+ "logging" => nil,
221
+ "saml" => nil,
222
+ "oidc" => nil,
223
+ "backend" => nil,
224
+ }
225
+ end
226
+
227
+ def endpoint_configuration_result2
228
+ {
229
+ "id" => "ec_1rV4zxf7pC5PFpXAcL2A9VLLeGF",
230
+ "type" => "https",
231
+ "description" => "web servers",
232
+ "metadata" => "",
233
+ "created_at" => "2021-04-21T23:36:29Z",
234
+ "uri" => "https://api.ngrok.com/endpoint_configurations/ec_1rV4zxf7pC5PFpXAcL2A9VLLeGF",
235
+ "basic_auth" => nil,
236
+ "circuit_breaker" => {
237
+ "enabled" => true,
238
+ "tripped_duration" => 0,
239
+ "rolling_window" => 0,
240
+ "num_buckets" => 0,
241
+ "volume_threshold" => 0,
242
+ "error_threshold_percentage" => 0.2,
243
+ },
244
+ "compression" => {
245
+ "enabled" => true,
246
+ },
247
+ "request_headers" => nil,
248
+ "response_headers" => {
249
+ "enabled" => true,
250
+ "add" => {
251
+ "content-security-policy" => "script-src 'self'",
252
+ "x-frame-options" => "DENY",
253
+ },
254
+ "remove" => [],
255
+ },
256
+ "ip_policy" => nil,
257
+ "mutual_tls" => nil,
258
+ "tls_termination" => nil,
259
+ "webhook_validation" => nil,
260
+ "oauth" => nil,
261
+ "logging" => nil,
262
+ "saml" => nil,
263
+ "oidc" => nil,
264
+ "backend" => nil,
265
+ }
266
+ end
267
+
268
+ def endpoint_configuration_results
269
+ {
270
+ "endpoint_configurations" => [
271
+ endpoint_configuration_result,
272
+ endpoint_configuration_result2,
273
+ ],
274
+ "uri" => "https://api.ngrok.com/endpoint_configurations",
275
+ "next_page_uri" => nil,
276
+ }
277
+ end
278
+
279
+ def endpoint_circuit_breaker_result
280
+ {
281
+ }
282
+ end
283
+
284
+ def endpoint_ip_policy_result
285
+ {
286
+ }
287
+ end
288
+
289
+ def endpoint_ip_policy_mutate_result
290
+ {
291
+ }
292
+ end
293
+
294
+ def endpoint_logging_result
295
+ {
296
+ }
297
+ end
298
+
299
+ def endpoint_logging_mutate_result
300
+ {
301
+ }
302
+ end
303
+
304
+ def endpoint_mutual_tls_result
305
+ {
306
+ }
307
+ end
308
+
309
+ def endpoint_mutual_tls_mutate_result
310
+ {
311
+ }
312
+ end
313
+
314
+ def endpoint_o_auth_facebook_result
315
+ {
316
+ }
317
+ end
318
+
319
+ def endpoint_o_auth_git_hub_result
320
+ {
321
+ }
322
+ end
323
+
324
+ def endpoint_o_auth_google_result
325
+ {
326
+ }
327
+ end
328
+
329
+ def endpoint_o_auth_microsoft_result
330
+ {
331
+ }
332
+ end
333
+
334
+ def endpoint_o_auth_provider_result
335
+ {
336
+ }
337
+ end
338
+
339
+ def endpoint_o_auth_result
340
+ {
341
+ }
342
+ end
343
+
344
+ def endpoint_oidc_result
345
+ {
346
+ }
347
+ end
348
+
349
+ def endpoint_request_headers_result
350
+ {
351
+ }
352
+ end
353
+
354
+ def endpoint_response_headers_result
355
+ {
356
+ }
357
+ end
358
+
359
+ def endpoint_saml_result
360
+ {
361
+ }
362
+ end
363
+
364
+ def endpoint_saml_mutate_result
365
+ {
366
+ }
367
+ end
368
+
369
+ def endpoint_tls_termination_result
370
+ {
371
+ }
372
+ end
373
+
374
+ def endpoint_webhook_validation_result
375
+ {
376
+ }
377
+ end
378
+
379
+ def event_destination_result
380
+ {
381
+ "id" => "ed_1ro7YLHYTloEfaH6LDcX2A3z18Q",
382
+ "metadata" => "",
383
+ "created_at" => "2021-04-28T17:23:54Z",
384
+ "description" => "",
385
+ "format" => "json",
386
+ "target" => {
387
+ "firehose" => nil,
388
+ "kinesis" => {
389
+ "auth" => {
390
+ "role" => nil,
391
+ "creds" => {
392
+ "aws_access_key_id" => "AKIAIOSFODNN7EXAMPLE",
393
+ "aws_secret_access_key" => nil,
394
+ },
395
+ },
396
+ "stream_arn" => "arn:ngrok-local:kinesis:us-east-2:123456789012:stream/mystream",
397
+ },
398
+ "cloudwatch_logs" => nil,
399
+ },
400
+ "uri" => "https://api.ngrok.com/event_destinations/ed_1ro7YLHYTloEfaH6LDcX2A3z18Q",
401
+ }
402
+ end
403
+
404
+ def event_destination_result2
405
+ {
406
+ "id" => "ed_1ro7aZHBLfa4vYAeRpweVomDSJa",
407
+ "metadata" => "{\"environment\" =>\"dev\"}",
408
+ "created_at" => "2021-04-28T17:24:12Z",
409
+ "description" => "kinesis dev stream",
410
+ "format" => "json",
411
+ "target" => {
412
+ "firehose" => nil,
413
+ "kinesis" => {
414
+ "auth" => {
415
+ "role" => {
416
+ "role_arn" => "arn:aws:iam::123456789012:role/example",
417
+ },
418
+ "creds" => nil,
419
+ },
420
+ "stream_arn" => "arn:ngrok-local:kinesis:us-east-2:123456789012:stream/mystream2",
421
+ },
422
+ "cloudwatch_logs" => nil,
423
+ },
424
+ "uri" => "https://api.ngrok.com/event_destinations/ed_1ro7aZHBLfa4vYAeRpweVomDSJa",
425
+ }
426
+ end
427
+
428
+ def event_destination_results
429
+ {
430
+ "event_destinations" => [
431
+ event_destination_result,
432
+ event_destination_result2,
433
+ ],
434
+ "uri" => "https://api.ngrok.com/event_destinations",
435
+ "next_page_uri" => nil,
436
+ }
437
+ end
438
+
439
+ def event_source_replace_result
440
+ {
441
+ }
442
+ end
443
+
444
+ def event_stream_result
445
+ {
446
+ "id" => "es_1ro7aBEJQkcfUBNX1r3IBSqjDU8",
447
+ "uri" => "https://api.ngrok.com/event_streams/es_1ro7aBEJQkcfUBNX1r3IBSqjDU8",
448
+ "created_at" => "2021-04-28T17:24:09Z",
449
+ "metadata" => "{\"environment\" => \"staging\"}",
450
+ "description" => "low sampling, basic HTTP logs",
451
+ "fields" => [
452
+ "http.request.method",
453
+ "http.response.status_code",
454
+ "conn.client_ip",
455
+ ],
456
+ "event_type" => "http_request_complete",
457
+ "destination_ids" => [
458
+ "ed_1ro7aG1J2tGT6neX0PHJLTuzQ9E",
459
+ ],
460
+ "sampling_rate" => 0.1,
461
+ }
462
+ end
463
+
464
+ def event_stream_result2
465
+ {
466
+ "id" => "es_1ro7YJvY0atyuqOjbLMsZfe928o",
467
+ "uri" => "https://api.ngrok.com/event_streams/es_1ro7YJvY0atyuqOjbLMsZfe928o",
468
+ "created_at" => "2021-04-28T17:23:54Z",
469
+ "metadata" => "",
470
+ "description" => "",
471
+ "fields" => [
472
+ "http.request.method",
473
+ "http.response.status_code",
474
+ "conn.client_ip",
475
+ ],
476
+ "event_type" => "http_request_complete",
477
+ "destination_ids" => [
478
+ "ed_1ro7YLHYTloEfaH6LDcX2A3z18Q",
479
+ ],
480
+ "sampling_rate" => 0.1,
481
+ }
482
+ end
483
+
484
+ def event_stream_results
485
+ {
486
+ "event_streams" => [
487
+ event_stream_result,
488
+ event_stream_result2,
489
+ ],
490
+ "uri" => "https://api.ngrok.com/event_streams",
491
+ "next_page_uri" => nil,
492
+ }
493
+ end
494
+
495
+ def event_source_result
496
+ {
497
+ }
498
+ end
499
+
500
+ def event_subscription_result
501
+ {
502
+ "id" => "esb_1ro7av77nFHjRVO7GwDxRE7TElG",
503
+ "uri" => "https://api.ngrok.com/event_subscriptions/esb_1ro7av77nFHjRVO7GwDxRE7TElG",
504
+ "created_at" => "2021-04-28T17:24:15Z",
505
+ "metadata" => "{\"environment\" => \"staging\"}",
506
+ "description" => "low sampling, basic HTTP logs",
507
+ "sources" => [
508
+ {
509
+ "type" => "http_request_complete",
510
+ "uri" => "https://api.ngrok.com/event_subscriptions/esb_1ro7av77nFHjRVO7GwDxRE7TElG/sources/http_request_complete",
511
+ },
512
+ ],
513
+ "destinations" => [
514
+ {
515
+ "id" => "ed_1ro7aylyqQ1LLMWNWrOISvlfveQ",
516
+ "uri" => "https://api.ngrok.com/event_destinations/ed_1ro7aylyqQ1LLMWNWrOISvlfveQ",
517
+ },
518
+ ],
519
+ }
520
+ end
521
+
522
+ def event_subscription_results
523
+ {
524
+ "event_subscriptions" => [
525
+ event_subscription_result,
526
+ ],
527
+ "uri" => "https://api.ngrok.com/event_subscriptions",
528
+ "next_page_uri" => nil,
529
+ }
530
+ end
531
+
532
+ def event_target_cloudwatch_logs_result
533
+ {
534
+ }
535
+ end
536
+
537
+ def event_target_firehose_result
538
+ {
539
+ }
540
+ end
541
+
542
+ def event_target_kinesis_result
543
+ {
544
+ }
545
+ end
546
+
547
+ def event_target_result
548
+ {
549
+ }
550
+ end
551
+
552
+ def ip_policy_result
553
+ {
554
+ "id" => "ipp_1vckSz67sd2iZNRX03t8i8wihdB",
555
+ "uri" => "https://api.ngrok.com/ip_policies/ipp_1vckSz67sd2iZNRX03t8i8wihdB",
556
+ "created_at" => "2021-07-21T11:59:27Z",
557
+ "description" => "Developer Environments",
558
+ "metadata" => "",
559
+ "action" => "allow",
560
+ }
561
+ end
562
+
563
+ def ip_policy_result2
564
+ {
565
+ "id" => "ipp_1vckSvgJ7tjaBIs4w8KZOYQjA7q",
566
+ "uri" => "https://api.ngrok.com/ip_policies/ipp_1vckSvgJ7tjaBIs4w8KZOYQjA7q",
567
+ "created_at" => "2021-07-21T11:59:27Z",
568
+ "description" => "API Outbound Gateway",
569
+ "metadata" => "",
570
+ "action" => "allow",
571
+ }
572
+ end
573
+
574
+ def ip_policy_results
575
+ {
576
+ "ip_policies" => [
577
+ ip_policy_result,
578
+ ip_policy_result2,
579
+ ],
580
+ "uri" => "https://api.ngrok.com/ip_policies",
581
+ "next_page_uri" => nil,
582
+ }
583
+ end
584
+
585
+ def ip_policy_rule_result
586
+ {
587
+ "id" => "ipr_1rV56jFvshOkyVBrKOLNOdd9Jq2",
588
+ "uri" => "https://api.ngrok.com/ip_policy_rules/ipr_1rV56jFvshOkyVBrKOLNOdd9Jq2",
589
+ "created_at" => "2021-04-21T23:37:22Z",
590
+ "description" => "alan laptop",
591
+ "metadata" => "",
592
+ "cidr" => "2.2.2.2/32",
593
+ "ip_policy" => {
594
+ "id" => "ipp_1rV56VrAxesFteoj4XZxaaYyvXo",
595
+ "uri" => "https://api.ngrok.com/ip_policies/ipp_1rV56VrAxesFteoj4XZxaaYyvXo",
596
+ },
597
+ }
598
+ end
599
+
600
+ def ip_policy_rule_result2
601
+ {
602
+ "id" => "ipr_1rV56fKu4NnoTEVfCPSRqE5zRsK",
603
+ "uri" => "https://api.ngrok.com/ip_policy_rules/ipr_1rV56fKu4NnoTEVfCPSRqE5zRsK",
604
+ "created_at" => "2021-04-21T23:37:22Z",
605
+ "description" => "sf office",
606
+ "metadata" => "",
607
+ "cidr" => "132.2.19.0/24",
608
+ "ip_policy" => {
609
+ "id" => "ipp_1rV56VrAxesFteoj4XZxaaYyvXo",
610
+ "uri" => "https://api.ngrok.com/ip_policies/ipp_1rV56VrAxesFteoj4XZxaaYyvXo",
611
+ },
612
+ }
613
+ end
614
+
615
+ def ip_policy_rule_results
616
+ {
617
+ "ip_policy_rules" => [
618
+ ip_policy_rule_result,
619
+ ip_policy_rule_result2,
620
+ ],
621
+ "uri" => "https://api.ngrok.com/ip_policy_rules",
622
+ "next_page_uri" => nil,
623
+ }
624
+ end
625
+
626
+ def ip_restriction_result
627
+ {
628
+ "id" => "ipx_1rV5CKgSrd3y2fosbXX5GoAhMeR",
629
+ "uri" => "https://api.ngrok.com/ip_restrictions/ipx_1rV5CKgSrd3y2fosbXX5GoAhMeR",
630
+ "created_at" => "2021-04-21T23:38:07Z",
631
+ "description" => "",
632
+ "metadata" => "",
633
+ "enforced" => false,
634
+ "type" => "dashboard",
635
+ "ip_policies" => [
636
+ {
637
+ "id" => "ipp_1rV5CMI1Aw8MiqWtjlQCyDDEWnQ",
638
+ "uri" => "https://api.ngrok.com/ip_policies/ipp_1rV5CMI1Aw8MiqWtjlQCyDDEWnQ",
639
+ },
640
+ ],
641
+ }
642
+ end
643
+
644
+ def ip_restriction_results
645
+ {
646
+ "ip_restrictions" => [
647
+ ip_restriction_result,
648
+ ],
649
+ "uri" => "https://api.ngrok.com/ip_restrictions",
650
+ "next_page_uri" => nil,
651
+ }
652
+ end
653
+
654
+ def ip_whitelist_entry_result
655
+ {
656
+ "id" => "wl_1rV55uK6IddK1eJWBcopcSqr9jr",
657
+ "uri" => "https://api.ngrok.com/ip_whitelist/wl_1rV55uK6IddK1eJWBcopcSqr9jr",
658
+ "created_at" => "2021-04-21T23:37:16Z",
659
+ "description" => "outbound proxy servers",
660
+ "metadata" => "",
661
+ "ip_net" => "10.1.1.0/24",
662
+ }
663
+ end
664
+
665
+ def ip_whitelist_entry_result2
666
+ {
667
+ "id" => "wl_1rV55s4NmZ81mUa5zqPetlpngC7",
668
+ "uri" => "https://api.ngrok.com/ip_whitelist/wl_1rV55s4NmZ81mUa5zqPetlpngC7",
669
+ "created_at" => "2021-04-21T23:37:16Z",
670
+ "description" => "office wifi",
671
+ "metadata" => "",
672
+ "ip_net" => "78.3.12.121/32",
673
+ }
674
+ end
675
+
676
+ def ip_whitelist_entry_results
677
+ {
678
+ "whitelist" => [
679
+ ip_whitelist_entry_result,
680
+ ip_whitelist_entry_result2,
681
+ ],
682
+ "uri" => "https://api.ngrok.com/ip_whitelist",
683
+ "next_page_uri" => nil,
684
+ }
685
+ end
686
+
687
+ def ref_result
688
+ {
689
+ }
690
+ end
691
+
692
+ def reserved_addr_result
693
+ {
694
+ "id" => "ra_1rV3SMgGd7NuIB89hzucFK8r8nZ",
695
+ "uri" => "https://api.ngrok.com/reserved_addrs/ra_1rV3SMgGd7NuIB89hzucFK8r8nZ",
696
+ "created_at" => "2021-04-21T23:36:49Z",
697
+ "description" => "SSH for device #001",
698
+ "metadata" => "",
699
+ "addr" => "1.tcp.ngrok.io:20011",
700
+ "region" => "us",
701
+ "endpoint_configuration" => nil,
702
+ }
703
+ end
704
+
705
+ def reserved_addr_results
706
+ {
707
+ "reserved_addrs" => [
708
+ reserved_addr_result,
709
+ ],
710
+ "uri" => "https://api.ngrok.com/reserved_addrs",
711
+ "next_page_uri" => nil,
712
+ }
713
+ end
714
+
715
+ def reserved_domain_cert_policy_result
716
+ {
717
+ }
718
+ end
719
+
720
+ def reserved_domain_cert_status_result
721
+ {
722
+ }
723
+ end
724
+
725
+ def reserved_domain_result
726
+ {
727
+ "id" => "rd_1rV51TBbVHrjheFFdfasWnL6E1z",
728
+ "uri" => "https://api.ngrok.com/reserved_domains/rd_1rV51TBbVHrjheFFdfasWnL6E1z",
729
+ "created_at" => "2021-04-21T23:36:41Z",
730
+ "description" => "Device 0001 Dashboard",
731
+ "metadata" => "{\"service\" => \"dashboard\"}",
732
+ "domain" => "manage-0001.app.example.com",
733
+ "region" => "us",
734
+ "cname_target" => "2y4vzpktb.cname.us.ngrok.io",
735
+ "http_endpoint_configuration" => nil,
736
+ "https_endpoint_configuration" => nil,
737
+ "certificate" => nil,
738
+ "certificate_management_policy" => nil,
739
+ "certificate_management_status" => nil,
740
+ }
741
+ end
742
+
743
+ def reserved_domain_result2
744
+ {
745
+ "id" => "rd_1rV51Qr590Jb8MgfiWIxshe0RWs",
746
+ "uri" => "https://api.ngrok.com/reserved_domains/rd_1rV51Qr590Jb8MgfiWIxshe0RWs",
747
+ "created_at" => "2021-04-21T23:36:40Z",
748
+ "description" => "",
749
+ "metadata" => "",
750
+ "domain" => "myapp.mydomain.com",
751
+ "region" => "us",
752
+ "cname_target" => "29flmdbzs.cname.us.ngrok.io",
753
+ "http_endpoint_configuration" => nil,
754
+ "https_endpoint_configuration" => nil,
755
+ "certificate" => {
756
+ "id" => "cert_1rV51OQetZPK9V6vTWUVy3Onjir",
757
+ "uri" => "https://api.ngrok.com/tls_certificates/cert_1rV51OQetZPK9V6vTWUVy3Onjir",
758
+ },
759
+ "certificate_management_policy" => nil,
760
+ "certificate_management_status" => nil,
761
+ }
762
+ end
763
+
764
+ def reserved_domain_results
765
+ {
766
+ "reserved_domains" => [
767
+ reserved_domain_result,
768
+ reserved_domain_result2,
769
+ ],
770
+ "uri" => "https://api.ngrok.com/reserved_domains",
771
+ "next_page_uri" => nil,
772
+ }
773
+ end
774
+
775
+ def reserved_domain_cert_job_result
776
+ {
777
+ }
778
+ end
779
+
780
+ def reserved_domain_cert_ns_target_result
781
+ {
782
+ }
783
+ end
784
+
785
+ def ssh_certificate_authority_result
786
+ {
787
+ "id" => "sshca_1rV5FT4Uy4JaYbMnSyKS3p0xE4f",
788
+ "uri" => "https://api.ngrok.com/ssh_certificate_authorities/sshca_1rV5FT4Uy4JaYbMnSyKS3p0xE4f",
789
+ "created_at" => "2021-04-21T23:38:32Z",
790
+ "description" => "Staging Environment Hosts",
791
+ "metadata" => "",
792
+ "public_key" => "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICDx404hGFBUi7mFqNcd1TkrP4MVtf57kJVP3r0h3rSO",
793
+ "key_type" => "ed25519",
794
+ }
795
+ end
796
+
797
+ def ssh_certificate_authority_results
798
+ {
799
+ "ssh_certificate_authorities" => [
800
+ ssh_certificate_authority_result,
801
+ ],
802
+ "uri" => "https://api.ngrok.com/ssh_certificate_authorities",
803
+ "next_page_uri" => nil,
804
+ }
805
+ end
806
+
807
+ def ssh_credential_result
808
+ {
809
+ "id" => "sshcr_1rV5504YUNgDKQ3WvFOeotnfgNm",
810
+ "uri" => "https://api.ngrok.com/ssh_credentials/sshcr_1rV5504YUNgDKQ3WvFOeotnfgNm",
811
+ "created_at" => "2021-04-21T23:37:09Z",
812
+ "description" => "for device #132",
813
+ "metadata" => "",
814
+ "public_key" => "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDmGS49FkSODAcKhn3+/47DW2zEn19BZvzRQ8RZjL3v6hCIX2qXfsFK35EGxNI0wV23H4xXC2gVRPHKU71YnCb50tad3yMBTM6+2yfGsEDasEH/anmBLclChKvuGiT547RskZlpbAbdq3GvbzmY+R/2EBRMOiObpc8XmSzKAd05j28kqN0+rZO65SWId0MXdvJdSCSAnuRqBNd/aXKlu8hBPDcgwbT2lMkuR+ApoBS2FLRBOiQyt2Ol0T7Uuf7lTLlazpGB3uTw5zFYUNXkuuI6cAP8QYuY1Bne/hNrG8t3Aw9a1yc2C4Fz1hJ/4OMRxTQ8SUQf+Rmxs8DryMlMFJ8r device132@example.com",
815
+ "acl" => [
816
+ "bind:1.tcp.ngrok.io:20002",
817
+ "bind:132.devices.company.com",
818
+ ],
819
+ }
820
+ end
821
+
822
+ def ssh_credential_results
823
+ {
824
+ "ssh_credentials" => [
825
+ ssh_credential_result,
826
+ ],
827
+ "uri" => "https://api.ngrok.com/ssh_credentials",
828
+ "next_page_uri" => nil,
829
+ }
830
+ end
831
+
832
+ def ssh_host_certificate_result
833
+ {
834
+ "id" => "shcrt_1rV5GnCIHgKW4OyBIjKSqpbaf04",
835
+ "uri" => "https://api.ngrok.com/ssh_host_certificates/shcrt_1rV5GnCIHgKW4OyBIjKSqpbaf04",
836
+ "created_at" => "2021-04-21T23:38:42Z",
837
+ "description" => "personal server",
838
+ "metadata" => "",
839
+ "public_key" => "ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBI3oSgxrOEJ+tIJ/n6VYtxQIFvynqlOHpfOAJ4x4OfmMYDkbf8dr6RAuUSf+ZC2HMCujta7EjZ9t+6v08Ue+Cgk= inconshreveable.com",
840
+ "key_type" => "ecdsa",
841
+ "ssh_certificate_authority_id" => "sshca_1rV5GiTaiBQg8AtJiyiVeNKzYiR",
842
+ "principals" => [
843
+ "inconshreveable.com",
844
+ "10.2.42.9",
845
+ ],
846
+ "valid_after" => "2021-04-21T23:38:42Z",
847
+ "valid_until" => "2021-07-20T23:38:42Z",
848
+ "certificate" => "ecdsa-sha2-nistp256-cert-v01@openssh.com AAAAKGVjZHNhLXNoYTItbmlzdHAyNTYtY2VydC12MDFAb3BlbnNzaC5jb20AAAAgl+i7u7P1mVEWv2Igcf76hXPS2/xnKniDnJZX53xfuTQAAAAIbmlzdHAyNTYAAABBBI3oSgxrOEJ+tIJ/n6VYtxQIFvynqlOHpfOAJ4x4OfmMYDkbf8dr6RAuUSf+ZC2HMCujta7EjZ9t+6v08Ue+CgkAAAAAAAAAAAAAAAIAAAAhc2hjcnRfMXJWNUduQ0lIZ0tXNE95QklqS1NxcGJhZjA0AAAAJAAAABNpbmNvbnNocmV2ZWFibGUuY29tAAAACTEwLjIuNDIuOQAAAABggLeCAAAAAGD3XoIAAAAAAAAAAAAAAAAAAAAzAAAAC3NzaC1lZDI1NTE5AAAAIEpsciWkhlFN7VFWGMkSy1xFNwuZLVh7ZE/uo79NWH8LAAAAUwAAAAtzc2gtZWQyNTUxOQAAAECJHCycrdAf2WNjWGWolP+Y5TlIm5LX4TdRJFeSdUVp0amDg9ZYRltqXy61qGVc43G/unqz35ZzkwJPmVAi/ZQL shcrt_1rV5GnCIHgKW4OyBIjKSqpbaf04",
849
+ }
850
+ end
851
+
852
+ def ssh_host_certificate_results
853
+ {
854
+ "ssh_host_certificates" => [
855
+ ssh_host_certificate_result,
856
+ ],
857
+ "uri" => "https://api.ngrok.com/ssh_host_certificates",
858
+ "next_page_uri" => nil,
859
+ }
860
+ end
861
+
862
+ def ssh_user_certificate_result
863
+ {
864
+ "id" => "sucrt_1rV5G8jarzhIEEQTv1wXRE1KRU1",
865
+ "uri" => "https://api.ngrok.com/ssh_user_certificates/sucrt_1rV5G8jarzhIEEQTv1wXRE1KRU1",
866
+ "created_at" => "2021-04-21T23:38:37Z",
867
+ "description" => "temporary access to staging machine",
868
+ "metadata" => "",
869
+ "public_key" => "ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBK58lFzmWlDimDtBz78wVT4oauA8PjY0CiXTCEIsBNC6UwOJvZ0jdSaYNhDaa7dRV84DfBb/gKzqlXC7cVMZjl0= alan@work-laptop",
870
+ "key_type" => "ecdsa",
871
+ "ssh_certificate_authority_id" => "sshca_1rV5G33U0TV5AFqiEfKcjOi8W4t",
872
+ "principals" => [
873
+ "ec2-user",
874
+ "root",
875
+ ],
876
+ "critical_options" => {},
877
+ "extensions" => {
878
+ "permit-pty" => "",
879
+ "permit-user-rc" => "",
880
+ },
881
+ "valid_after" => "2021-04-21T23:38:37Z",
882
+ "valid_until" => "2021-07-20T23:38:37Z",
883
+ "certificate" => "ecdsa-sha2-nistp256-cert-v01@openssh.com AAAAKGVjZHNhLXNoYTItbmlzdHAyNTYtY2VydC12MDFAb3BlbnNzaC5jb20AAAAgMQgYZDmRzsM+dcF5rZZM5/xHEFNygLtRKq7Ycsjvk+0AAAAIbmlzdHAyNTYAAABBBK58lFzmWlDimDtBz78wVT4oauA8PjY0CiXTCEIsBNC6UwOJvZ0jdSaYNhDaa7dRV84DfBb/gKzqlXC7cVMZjl0AAAAAAAAAAAAAAAEAAAAhc3VjcnRfMXJWNUc4amFyemhJRUVRVHYxd1hSRTFLUlUxAAAAFAAAAAhlYzItdXNlcgAAAARyb290AAAAAGCAt30AAAAAYPdefQAAAAAAAAAoAAAACnBlcm1pdC1wdHkAAAAAAAAADnBlcm1pdC11c2VyLXJjAAAAAAAAAAAAAAAzAAAAC3NzaC1lZDI1NTE5AAAAICskbrMYess7OemvQlCikleCUq+2lkxesOd8ivjoWlNCAAAAUwAAAAtzc2gtZWQyNTUxOQAAAEA6yhx0v0tzSsQaCQez/qwL8QO+ZLLvKhfmcQ53I0bSYxSaf6G7n8uLThk4OVtq/QJdVaWNcfLrLY0ipITz1RAK sucrt_1rV5G8jarzhIEEQTv1wXRE1KRU1",
884
+ }
885
+ end
886
+
887
+ def ssh_user_certificate_results
888
+ {
889
+ "ssh_user_certificates" => [
890
+ ssh_user_certificate_result,
891
+ ],
892
+ "uri" => "https://api.ngrok.com/ssh_user_certificates",
893
+ "next_page_uri" => nil,
894
+ }
895
+ end
896
+
897
+ def tls_certificate_result
898
+ {
899
+ "id" => "cert_1rV51OQetZPK9V6vTWUVy3Onjir",
900
+ "uri" => "https://api.ngrok.com/tls_certificates/cert_1rV51OQetZPK9V6vTWUVy3Onjir",
901
+ "created_at" => "2021-04-21T23:36:40Z",
902
+ "description" => "",
903
+ "metadata" => "",
904
+ "certificate_pem" => "-----BEGIN CERTIFICATE-----\nMIIDDTCCAfWgAwIBAgIUBUunDdA4gjgtEbZA8w9Ljhvl3bEwDQYJKoZIhvcNAQEL\nBQAwFjEUMBIGA1UEAwwLZXhhbXBsZS5jb20wHhcNMjAwMzI0MTgxODE5WhcNMjAw\nNDIzMTgxODE5WjAWMRQwEgYDVQQDDAtleGFtcGxlLmNvbTCCASIwDQYJKoZIhvcN\nAQEBBQADggEPADCCAQoCggEBAPKVkkKYNl3d9cqrz4tIFlwsohED5W4y1dcBixy4\nGANFFnw43nc2wPyKwYXumJqJIFrcW/NkUZL07bd+dou6mT6Gh/zbaTW91IkREPXL\n7b3KfVu4XkFosVXpWs0U6o4GrZ81CLiKBWI+H03x/ij5OSiJ1l71pqLeTJLOydAR\nAl8kpp7axeHU4UbDrAZkW5SnuZTjIKwVg0UNsBg1yNfUOu1Uah3BYaqPgQitC0Yg\nLW+NUGu/T91bkD7tLsVInkQXeQGdXBAqOycfJ7wj8OlIpyuXjTnGFA0izVmbQw5f\nrQnZ0geGyhLamvz9Gcd7mIlD/+/AEN9Lht82tAOzKG98/O8CAwEAAaNTMFEwHQYD\nVR0OBBYEFKv6RsvEC6T+zCtJZwB0FCR1sEkhMB8GA1UdIwQYMBaAFKv6RsvEC6T+\nzCtJZwB0FCR1sEkhMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEB\nAC5fBrouinespo5+9AipjhY/HOKTg+OCnppFnSnqeU1eXZZJ0oakdHTpTNxtbQP9\ntOJTA2f3KWvmpNDMohEQXZz8wHDkdbrIXJKVp6zs1pEp+0BIjA4y9mSywa5xuyk0\noGeChRgGqp2JujDyPCb7LEaKKQEEdMqy73QG+jEAh14+wKixlAf1nATBdeCUvssK\n2x1uZMyqjJFB5y/5EdnWQzD4WJkrsCkxsZHVMN1d+dqf2sf3dTRV8fzsFGOG17NS\n6u2n9iGcFdBA82XN8yeLIWhy1t3GWutG1sdxENbFRRXea+iUqzDsmRtkaBma2GLQ\nd6JTpFbsCtwDjP23UEi7SZo=\n-----END CERTIFICATE-----\n",
905
+ "subject_common_name" => "example.com",
906
+ "subject_alternative_names" => {
907
+ "dns_names" => [],
908
+ "ips" => [],
909
+ },
910
+ "issued_at" => nil,
911
+ "not_before" => "2020-03-24T18:18:19Z",
912
+ "not_after" => "2020-04-23T18:18:19Z",
913
+ "key_usages" => [],
914
+ "extended_key_usages" => [],
915
+ "private_key_type" => "rsa",
916
+ "issuer_common_name" => "example.com",
917
+ "serial_number" => "054ba70dd03882382d11b640f30f4b8e1be5ddb1",
918
+ "subject_organization" => "",
919
+ "subject_organizational_unit" => "",
920
+ "subject_locality" => "",
921
+ "subject_province" => "",
922
+ "subject_country" => "",
923
+ }
924
+ end
925
+
926
+ def tls_certificate_result2
927
+ {
928
+ "id" => "cert_1rV5D0Ur3PklEGZwRj9m6qCBlCc",
929
+ "uri" => "https://api.ngrok.com/tls_certificates/cert_1rV5D0Ur3PklEGZwRj9m6qCBlCc",
930
+ "created_at" => "2021-04-21T23:38:12Z",
931
+ "description" => "",
932
+ "metadata" => "",
933
+ "certificate_pem" => "-----BEGIN CERTIFICATE-----\nMIIDDTCCAfWgAwIBAgIUBUunDdA4gjgtEbZA8w9Ljhvl3bEwDQYJKoZIhvcNAQEL\nBQAwFjEUMBIGA1UEAwwLZXhhbXBsZS5jb20wHhcNMjAwMzI0MTgxODE5WhcNMjAw\nNDIzMTgxODE5WjAWMRQwEgYDVQQDDAtleGFtcGxlLmNvbTCCASIwDQYJKoZIhvcN\nAQEBBQADggEPADCCAQoCggEBAPKVkkKYNl3d9cqrz4tIFlwsohED5W4y1dcBixy4\nGANFFnw43nc2wPyKwYXumJqJIFrcW/NkUZL07bd+dou6mT6Gh/zbaTW91IkREPXL\n7b3KfVu4XkFosVXpWs0U6o4GrZ81CLiKBWI+H03x/ij5OSiJ1l71pqLeTJLOydAR\nAl8kpp7axeHU4UbDrAZkW5SnuZTjIKwVg0UNsBg1yNfUOu1Uah3BYaqPgQitC0Yg\nLW+NUGu/T91bkD7tLsVInkQXeQGdXBAqOycfJ7wj8OlIpyuXjTnGFA0izVmbQw5f\nrQnZ0geGyhLamvz9Gcd7mIlD/+/AEN9Lht82tAOzKG98/O8CAwEAAaNTMFEwHQYD\nVR0OBBYEFKv6RsvEC6T+zCtJZwB0FCR1sEkhMB8GA1UdIwQYMBaAFKv6RsvEC6T+\nzCtJZwB0FCR1sEkhMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEB\nAC5fBrouinespo5+9AipjhY/HOKTg+OCnppFnSnqeU1eXZZJ0oakdHTpTNxtbQP9\ntOJTA2f3KWvmpNDMohEQXZz8wHDkdbrIXJKVp6zs1pEp+0BIjA4y9mSywa5xuyk0\noGeChRgGqp2JujDyPCb7LEaKKQEEdMqy73QG+jEAh14+wKixlAf1nATBdeCUvssK\n2x1uZMyqjJFB5y/5EdnWQzD4WJkrsCkxsZHVMN1d+dqf2sf3dTRV8fzsFGOG17NS\n6u2n9iGcFdBA82XN8yeLIWhy1t3GWutG1sdxENbFRRXea+iUqzDsmRtkaBma2GLQ\nd6JTpFbsCtwDjP23UEi7SZo=\n-----END CERTIFICATE-----\n",
934
+ "subject_common_name" => "example.com",
935
+ "subject_alternative_names" => {
936
+ "dns_names" => [],
937
+ "ips" => [],
938
+ },
939
+ "issued_at" => nil,
940
+ "not_before" => "2020-03-24T18:18:19Z",
941
+ "not_after" => "2020-04-23T18:18:19Z",
942
+ "key_usages" => [],
943
+ "extended_key_usages" => [],
944
+ "private_key_type" => "rsa",
945
+ "issuer_common_name" => "example.com",
946
+ "serial_number" => "054ba70dd03882382d11b640f30f4b8e1be5ddb1",
947
+ "subject_organization" => "",
948
+ "subject_organizational_unit" => "",
949
+ "subject_locality" => "",
950
+ "subject_province" => "",
951
+ "subject_country" => "",
952
+ }
953
+ end
954
+
955
+ def tls_certificate_results
956
+ {
957
+ "tls_certificates" => [
958
+ tls_certificate_result,
959
+ tls_certificate_result2,
960
+ ],
961
+ "uri" => "https://api.ngrok.com/tls_certificates",
962
+ "next_page_uri" => nil,
963
+ }
964
+ end
965
+
966
+ def tls_certificate_sa_ns_result
967
+ {
968
+ }
969
+ end
970
+
971
+ def tunnel_result
972
+ {
973
+ "id" => "tn_1rV53vIXMKFIfPxXVWbW2sf4OLW",
974
+ "public_url" => "http://57ae41e8cfac.ngrok.io",
975
+ "started_at" => "2021-04-21T23:37:00Z",
976
+ "metadata" => "",
977
+ "proto" => "http",
978
+ "region" => "us",
979
+ "tunnel_session" => {
980
+ "id" => "ts_1rV53yu42s8Hb17NxYNmXLDy8zR",
981
+ "uri" => "https://api.ngrok.com/tunnel_sessions/ts_1rV53yu42s8Hb17NxYNmXLDy8zR",
982
+ },
983
+ }
984
+ end
985
+
986
+ def tunnel_result2
987
+ {
988
+ "id" => "tn_1rV53wi3OtUfY1RbkH2vNsTmLcO",
989
+ "public_url" => "https://57ae41e8cfac.ngrok.io",
990
+ "started_at" => "2021-04-21T23:37:00Z",
991
+ "metadata" => "",
992
+ "proto" => "https",
993
+ "region" => "us",
994
+ "tunnel_session" => {
995
+ "id" => "ts_1rV53yu42s8Hb17NxYNmXLDy8zR",
996
+ "uri" => "https://api.ngrok.com/tunnel_sessions/ts_1rV53yu42s8Hb17NxYNmXLDy8zR",
997
+ },
998
+ }
999
+ end
1000
+
1001
+ def tunnel_results
1002
+ {
1003
+ "tunnels" => [
1004
+ tunnel_result,
1005
+ tunnel_result2,
1006
+ ],
1007
+ "uri" => "https://api.ngrok.com/tunnels",
1008
+ "next_page_uri" => nil,
1009
+ }
1010
+ end
1011
+
1012
+ def tunnel_session_result
1013
+ {
1014
+ "agent_version" => "",
1015
+ "credential" => {
1016
+ "id" => "cr_1rV54BnShBhgmZvLtZKAOJhI7jR",
1017
+ "uri" => "https://api.ngrok.com/credentials/cr_1rV54BnShBhgmZvLtZKAOJhI7jR",
1018
+ },
1019
+ "id" => "ts_1rV549gK2e0WnE8Wvk3ab32e98U",
1020
+ "ip" => "10.42.0.63",
1021
+ "metadata" => "",
1022
+ "os" => "linux",
1023
+ "region" => "us",
1024
+ "started_at" => "2021-04-21T23:37:02Z",
1025
+ "transport" => "ngrok/2",
1026
+ "uri" => "https://api.ngrok.com/tunnel_sessions/ts_1rV549gK2e0WnE8Wvk3ab32e98U",
1027
+ }
1028
+ end
1029
+
1030
+ def tunnel_session_results
1031
+ {
1032
+ "tunnel_sessions" => [
1033
+ tunnel_session_result,
1034
+ ],
1035
+ "uri" => "https://api.ngrok.com/tunnel_sessions",
1036
+ "next_page_uri" => nil,
1037
+ }
1038
+ end