ngrok-api 0.12.0 → 0.14.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (290) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +1 -0
  3. data/LICENSE +7 -0
  4. data/doc/NgrokAPI/Client.html +184 -182
  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 +55 -19
  9. data/doc/NgrokAPI/Models/APIKey.html +1 -1
  10. data/doc/NgrokAPI/Models/AWSAuth.html +1 -1
  11. data/doc/NgrokAPI/Models/AWSCredentials.html +1 -1
  12. data/doc/NgrokAPI/Models/AWSRole.html +1 -1
  13. data/doc/NgrokAPI/Models/AbuseReport.html +1 -1
  14. data/doc/NgrokAPI/Models/AbuseReportHostname.html +1 -1
  15. data/doc/NgrokAPI/Models/CertificateAuthority.html +1 -1
  16. data/doc/NgrokAPI/Models/Credential.html +1 -1
  17. data/doc/NgrokAPI/Models/EndpointCircuitBreaker.html +1 -1
  18. data/doc/NgrokAPI/Models/EndpointCompression.html +1 -1
  19. data/doc/NgrokAPI/Models/EndpointConfiguration.html +1 -1
  20. data/doc/NgrokAPI/Models/EndpointIPPolicy.html +1 -1
  21. data/doc/NgrokAPI/Models/EndpointIPPolicyMutate.html +1 -1
  22. data/doc/NgrokAPI/Models/EndpointLogging.html +1 -1
  23. data/doc/NgrokAPI/Models/EndpointLoggingMutate.html +1 -1
  24. data/doc/NgrokAPI/Models/EndpointMutualTLS.html +1 -1
  25. data/doc/NgrokAPI/Models/EndpointMutualTLSMutate.html +1 -1
  26. data/doc/NgrokAPI/Models/EndpointOAuth.html +1 -1
  27. data/doc/NgrokAPI/Models/EndpointOAuthFacebook.html +1 -1
  28. data/doc/NgrokAPI/Models/EndpointOAuthGitHub.html +1 -1
  29. data/doc/NgrokAPI/Models/EndpointOAuthGoogle.html +1 -1
  30. data/doc/NgrokAPI/Models/EndpointOAuthMicrosoft.html +1 -1
  31. data/doc/NgrokAPI/Models/EndpointOAuthProvider.html +1 -1
  32. data/doc/NgrokAPI/Models/EndpointOIDC.html +1 -1
  33. data/doc/NgrokAPI/Models/EndpointRequestHeaders.html +1 -1
  34. data/doc/NgrokAPI/Models/EndpointResponseHeaders.html +1 -1
  35. data/doc/NgrokAPI/Models/EndpointSAML.html +1 -1
  36. data/doc/NgrokAPI/Models/EndpointSAMLMutate.html +1 -1
  37. data/doc/NgrokAPI/Models/EndpointTLSTermination.html +1 -1
  38. data/doc/NgrokAPI/Models/EndpointWebhookValidation.html +1 -1
  39. data/doc/NgrokAPI/Models/EventDestination.html +1 -1
  40. data/doc/NgrokAPI/Models/EventSource.html +1 -1
  41. data/doc/NgrokAPI/Models/{ReservedDomainCertNSTarget.html → EventSourceList.html} +42 -42
  42. data/doc/NgrokAPI/Models/EventSourceReplace.html +1 -1
  43. data/doc/NgrokAPI/Models/EventStream.html +1 -1
  44. data/doc/NgrokAPI/Models/EventSubscription.html +1 -1
  45. data/doc/NgrokAPI/Models/EventTarget.html +1 -1
  46. data/doc/NgrokAPI/Models/EventTargetCloudwatchLogs.html +1 -1
  47. data/doc/NgrokAPI/Models/EventTargetFirehose.html +1 -1
  48. data/doc/NgrokAPI/Models/EventTargetKinesis.html +1 -1
  49. data/doc/NgrokAPI/Models/IPPolicy.html +1 -1
  50. data/doc/NgrokAPI/Models/IPPolicyRule.html +1 -1
  51. data/doc/NgrokAPI/Models/IPRestriction.html +1 -1
  52. data/doc/NgrokAPI/Models/IPWhitelistEntry.html +1 -1
  53. data/doc/NgrokAPI/Models/Listable.html +118 -50
  54. data/doc/NgrokAPI/Models/Ref.html +1 -1
  55. data/doc/NgrokAPI/Models/ReservedAddr.html +1 -1
  56. data/doc/NgrokAPI/Models/ReservedDomain.html +91 -17
  57. data/doc/NgrokAPI/Models/ReservedDomainCertJob.html +12 -86
  58. data/doc/NgrokAPI/Models/ReservedDomainCertPolicy.html +1 -1
  59. data/doc/NgrokAPI/Models/ReservedDomainCertStatus.html +1 -1
  60. data/doc/NgrokAPI/Models/SSHCertificateAuthority.html +1 -1
  61. data/doc/NgrokAPI/Models/SSHCredential.html +1 -1
  62. data/doc/NgrokAPI/Models/SSHHostCertificate.html +1 -1
  63. data/doc/NgrokAPI/Models/SSHUserCertificate.html +1 -1
  64. data/doc/NgrokAPI/Models/TLSCertificate.html +1 -1
  65. data/doc/NgrokAPI/Models/TLSCertificateSANs.html +1 -1
  66. data/doc/NgrokAPI/Models/Tunnel.html +1 -1
  67. data/doc/NgrokAPI/Models/TunnelSession.html +1 -1
  68. data/doc/NgrokAPI/Models.html +3 -3
  69. data/doc/NgrokAPI/PagedIterator.html +14 -10
  70. data/doc/NgrokAPI/Services/APIKeysClient.html +227 -62
  71. data/doc/NgrokAPI/Services/AbuseReportsClient.html +2 -5
  72. data/doc/NgrokAPI/Services/CertificateAuthoritiesClient.html +206 -41
  73. data/doc/NgrokAPI/Services/CredentialsClient.html +213 -47
  74. data/doc/NgrokAPI/Services/EndpointCircuitBreakerModuleClient.html +1 -1
  75. data/doc/NgrokAPI/Services/EndpointCompressionModuleClient.html +1 -1
  76. data/doc/NgrokAPI/Services/EndpointConfigurationsClient.html +281 -114
  77. data/doc/NgrokAPI/Services/EndpointIPPolicyModuleClient.html +1 -1
  78. data/doc/NgrokAPI/Services/EndpointLoggingModuleClient.html +1 -1
  79. data/doc/NgrokAPI/Services/EndpointMutualTLSModuleClient.html +1 -1
  80. data/doc/NgrokAPI/Services/EndpointOAuthModuleClient.html +1 -1
  81. data/doc/NgrokAPI/Services/EndpointOIDCModuleClient.html +1 -1
  82. data/doc/NgrokAPI/Services/EndpointRequestHeadersModuleClient.html +1 -1
  83. data/doc/NgrokAPI/Services/EndpointResponseHeadersModuleClient.html +1 -1
  84. data/doc/NgrokAPI/Services/EndpointSAMLModuleClient.html +1 -1
  85. data/doc/NgrokAPI/Services/EndpointTLSTerminationModuleClient.html +1 -1
  86. data/doc/NgrokAPI/Services/EndpointWebhookValidationModuleClient.html +1 -1
  87. data/doc/NgrokAPI/Services/EventDestinationsClient.html +221 -50
  88. data/doc/NgrokAPI/Services/EventSourcesClient.html +279 -33
  89. data/doc/NgrokAPI/Services/EventStreamsClient.html +218 -47
  90. data/doc/NgrokAPI/Services/EventSubscriptionsClient.html +213 -42
  91. data/doc/NgrokAPI/Services/IPPoliciesClient.html +207 -41
  92. data/doc/NgrokAPI/Services/IPPolicyRulesClient.html +210 -42
  93. data/doc/NgrokAPI/Services/IPRestrictionsClient.html +215 -51
  94. data/doc/NgrokAPI/Services/IPWhitelistClient.html +206 -38
  95. data/doc/NgrokAPI/Services/ReservedAddrsClient.html +230 -63
  96. data/doc/NgrokAPI/Services/ReservedDomainsClient.html +308 -142
  97. data/doc/NgrokAPI/Services/SSHCertificateAuthoritiesClient.html +208 -40
  98. data/doc/NgrokAPI/Services/SSHCredentialsClient.html +213 -45
  99. data/doc/NgrokAPI/Services/SSHHostCertificatesClient.html +207 -40
  100. data/doc/NgrokAPI/Services/SSHUserCertificatesClient.html +209 -42
  101. data/doc/NgrokAPI/Services/TLSCertificatesClient.html +208 -43
  102. data/doc/NgrokAPI/Services/TunnelSessionsClient.html +260 -93
  103. data/doc/NgrokAPI/Services/TunnelsClient.html +174 -6
  104. data/doc/NgrokAPI/Services.html +1 -1
  105. data/doc/NgrokAPI.html +2 -2
  106. data/doc/README +94 -0
  107. data/doc/_index.html +8 -8
  108. data/doc/class_list.html +1 -1
  109. data/doc/file.README.html +53 -26
  110. data/doc/index.html +53 -26
  111. data/doc/method_list.html +822 -630
  112. data/doc/top-level-namespace.html +1 -1
  113. data/docs/NgrokAPI/Client.html +184 -182
  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 +55 -19
  118. data/docs/NgrokAPI/Models/APIKey.html +1 -1
  119. data/docs/NgrokAPI/Models/AWSAuth.html +1 -1
  120. data/docs/NgrokAPI/Models/AWSCredentials.html +1 -1
  121. data/docs/NgrokAPI/Models/AWSRole.html +1 -1
  122. data/docs/NgrokAPI/Models/AbuseReport.html +1 -1
  123. data/docs/NgrokAPI/Models/AbuseReportHostname.html +1 -1
  124. data/docs/NgrokAPI/Models/CertificateAuthority.html +1 -1
  125. data/docs/NgrokAPI/Models/Credential.html +1 -1
  126. data/docs/NgrokAPI/Models/EndpointCircuitBreaker.html +1 -1
  127. data/docs/NgrokAPI/Models/EndpointCompression.html +1 -1
  128. data/docs/NgrokAPI/Models/EndpointConfiguration.html +1 -1
  129. data/docs/NgrokAPI/Models/EndpointIPPolicy.html +1 -1
  130. data/docs/NgrokAPI/Models/EndpointIPPolicyMutate.html +1 -1
  131. data/docs/NgrokAPI/Models/EndpointLogging.html +1 -1
  132. data/docs/NgrokAPI/Models/EndpointLoggingMutate.html +1 -1
  133. data/docs/NgrokAPI/Models/EndpointMutualTLS.html +1 -1
  134. data/docs/NgrokAPI/Models/EndpointMutualTLSMutate.html +1 -1
  135. data/docs/NgrokAPI/Models/EndpointOAuth.html +1 -1
  136. data/docs/NgrokAPI/Models/EndpointOAuthFacebook.html +1 -1
  137. data/docs/NgrokAPI/Models/EndpointOAuthGitHub.html +1 -1
  138. data/docs/NgrokAPI/Models/EndpointOAuthGoogle.html +1 -1
  139. data/docs/NgrokAPI/Models/EndpointOAuthMicrosoft.html +1 -1
  140. data/docs/NgrokAPI/Models/EndpointOAuthProvider.html +1 -1
  141. data/docs/NgrokAPI/Models/EndpointOIDC.html +1 -1
  142. data/docs/NgrokAPI/Models/EndpointRequestHeaders.html +1 -1
  143. data/docs/NgrokAPI/Models/EndpointResponseHeaders.html +1 -1
  144. data/docs/NgrokAPI/Models/EndpointSAML.html +1 -1
  145. data/docs/NgrokAPI/Models/EndpointSAMLMutate.html +1 -1
  146. data/docs/NgrokAPI/Models/EndpointTLSTermination.html +1 -1
  147. data/docs/NgrokAPI/Models/EndpointWebhookValidation.html +1 -1
  148. data/docs/NgrokAPI/Models/EventDestination.html +1 -1
  149. data/docs/NgrokAPI/Models/EventSource.html +1 -1
  150. data/docs/NgrokAPI/Models/{ReservedDomainCertNSTarget.html → EventSourceList.html} +42 -42
  151. data/docs/NgrokAPI/Models/EventSourceReplace.html +1 -1
  152. data/docs/NgrokAPI/Models/EventStream.html +1 -1
  153. data/docs/NgrokAPI/Models/EventSubscription.html +1 -1
  154. data/docs/NgrokAPI/Models/EventTarget.html +1 -1
  155. data/docs/NgrokAPI/Models/EventTargetCloudwatchLogs.html +1 -1
  156. data/docs/NgrokAPI/Models/EventTargetFirehose.html +1 -1
  157. data/docs/NgrokAPI/Models/EventTargetKinesis.html +1 -1
  158. data/docs/NgrokAPI/Models/IPPolicy.html +1 -1
  159. data/docs/NgrokAPI/Models/IPPolicyRule.html +1 -1
  160. data/docs/NgrokAPI/Models/IPRestriction.html +1 -1
  161. data/docs/NgrokAPI/Models/IPWhitelistEntry.html +1 -1
  162. data/docs/NgrokAPI/Models/Listable.html +118 -50
  163. data/docs/NgrokAPI/Models/Ref.html +1 -1
  164. data/docs/NgrokAPI/Models/ReservedAddr.html +1 -1
  165. data/docs/NgrokAPI/Models/ReservedDomain.html +91 -17
  166. data/docs/NgrokAPI/Models/ReservedDomainCertJob.html +12 -86
  167. data/docs/NgrokAPI/Models/ReservedDomainCertPolicy.html +1 -1
  168. data/docs/NgrokAPI/Models/ReservedDomainCertStatus.html +1 -1
  169. data/docs/NgrokAPI/Models/SSHCertificateAuthority.html +1 -1
  170. data/docs/NgrokAPI/Models/SSHCredential.html +1 -1
  171. data/docs/NgrokAPI/Models/SSHHostCertificate.html +1 -1
  172. data/docs/NgrokAPI/Models/SSHUserCertificate.html +1 -1
  173. data/docs/NgrokAPI/Models/TLSCertificate.html +1 -1
  174. data/docs/NgrokAPI/Models/TLSCertificateSANs.html +1 -1
  175. data/docs/NgrokAPI/Models/Tunnel.html +1 -1
  176. data/docs/NgrokAPI/Models/TunnelSession.html +1 -1
  177. data/docs/NgrokAPI/Models.html +3 -3
  178. data/docs/NgrokAPI/PagedIterator.html +14 -10
  179. data/docs/NgrokAPI/Services/APIKeysClient.html +227 -62
  180. data/docs/NgrokAPI/Services/AbuseReportsClient.html +2 -5
  181. data/docs/NgrokAPI/Services/CertificateAuthoritiesClient.html +206 -41
  182. data/docs/NgrokAPI/Services/CredentialsClient.html +213 -47
  183. data/docs/NgrokAPI/Services/EndpointCircuitBreakerModuleClient.html +1 -1
  184. data/docs/NgrokAPI/Services/EndpointCompressionModuleClient.html +1 -1
  185. data/docs/NgrokAPI/Services/EndpointConfigurationsClient.html +281 -114
  186. data/docs/NgrokAPI/Services/EndpointIPPolicyModuleClient.html +1 -1
  187. data/docs/NgrokAPI/Services/EndpointLoggingModuleClient.html +1 -1
  188. data/docs/NgrokAPI/Services/EndpointMutualTLSModuleClient.html +1 -1
  189. data/docs/NgrokAPI/Services/EndpointOAuthModuleClient.html +1 -1
  190. data/docs/NgrokAPI/Services/EndpointOIDCModuleClient.html +1 -1
  191. data/docs/NgrokAPI/Services/EndpointRequestHeadersModuleClient.html +1 -1
  192. data/docs/NgrokAPI/Services/EndpointResponseHeadersModuleClient.html +1 -1
  193. data/docs/NgrokAPI/Services/EndpointSAMLModuleClient.html +1 -1
  194. data/docs/NgrokAPI/Services/EndpointTLSTerminationModuleClient.html +1 -1
  195. data/docs/NgrokAPI/Services/EndpointWebhookValidationModuleClient.html +1 -1
  196. data/docs/NgrokAPI/Services/EventDestinationsClient.html +221 -50
  197. data/docs/NgrokAPI/Services/EventSourcesClient.html +279 -33
  198. data/docs/NgrokAPI/Services/EventStreamsClient.html +218 -47
  199. data/docs/NgrokAPI/Services/EventSubscriptionsClient.html +213 -42
  200. data/docs/NgrokAPI/Services/IPPoliciesClient.html +207 -41
  201. data/docs/NgrokAPI/Services/IPPolicyRulesClient.html +210 -42
  202. data/docs/NgrokAPI/Services/IPRestrictionsClient.html +215 -51
  203. data/docs/NgrokAPI/Services/IPWhitelistClient.html +206 -38
  204. data/docs/NgrokAPI/Services/ReservedAddrsClient.html +230 -63
  205. data/docs/NgrokAPI/Services/ReservedDomainsClient.html +308 -142
  206. data/docs/NgrokAPI/Services/SSHCertificateAuthoritiesClient.html +208 -40
  207. data/docs/NgrokAPI/Services/SSHCredentialsClient.html +213 -45
  208. data/docs/NgrokAPI/Services/SSHHostCertificatesClient.html +207 -40
  209. data/docs/NgrokAPI/Services/SSHUserCertificatesClient.html +209 -42
  210. data/docs/NgrokAPI/Services/TLSCertificatesClient.html +208 -43
  211. data/docs/NgrokAPI/Services/TunnelSessionsClient.html +260 -93
  212. data/docs/NgrokAPI/Services/TunnelsClient.html +174 -6
  213. data/docs/NgrokAPI/Services.html +1 -1
  214. data/docs/NgrokAPI.html +2 -2
  215. data/docs/README +94 -0
  216. data/docs/_index.html +8 -8
  217. data/docs/class_list.html +1 -1
  218. data/docs/file.README.html +53 -26
  219. data/docs/index.html +53 -26
  220. data/docs/method_list.html +822 -630
  221. data/docs/top-level-namespace.html +1 -1
  222. data/lib/ngrokapi/client.rb +27 -8
  223. data/lib/ngrokapi/http_client.rb +5 -3
  224. data/lib/ngrokapi/models/{reserved_domain_cert_ns_target.rb → event_source_list.rb} +5 -5
  225. data/lib/ngrokapi/models/listable.rb +13 -2
  226. data/lib/ngrokapi/models/reserved_domain.rb +3 -1
  227. data/lib/ngrokapi/models/reserved_domain_cert_job.rb +1 -3
  228. data/lib/ngrokapi/paged_iterator.rb +4 -2
  229. data/lib/ngrokapi/services/api_keys_client.rb +36 -4
  230. data/lib/ngrokapi/services/certificate_authorities_client.rb +33 -0
  231. data/lib/ngrokapi/services/credentials_client.rb +35 -2
  232. data/lib/ngrokapi/services/endpoint_configurations_client.rb +33 -0
  233. data/lib/ngrokapi/services/event_destinations_client.rb +33 -0
  234. data/lib/ngrokapi/services/event_sources_client.rb +39 -0
  235. data/lib/ngrokapi/services/event_streams_client.rb +33 -0
  236. data/lib/ngrokapi/services/event_subscriptions_client.rb +33 -0
  237. data/lib/ngrokapi/services/ip_policies_client.rb +34 -1
  238. data/lib/ngrokapi/services/ip_policy_rules_client.rb +33 -0
  239. data/lib/ngrokapi/services/ip_restrictions_client.rb +33 -0
  240. data/lib/ngrokapi/services/ip_whitelist_client.rb +34 -1
  241. data/lib/ngrokapi/services/reserved_addrs_client.rb +33 -0
  242. data/lib/ngrokapi/services/reserved_domains_client.rb +33 -0
  243. data/lib/ngrokapi/services/ssh_certificate_authorities_client.rb +33 -0
  244. data/lib/ngrokapi/services/ssh_credentials_client.rb +33 -0
  245. data/lib/ngrokapi/services/ssh_host_certificates_client.rb +33 -0
  246. data/lib/ngrokapi/services/ssh_user_certificates_client.rb +33 -0
  247. data/lib/ngrokapi/services/tls_certificates_client.rb +33 -0
  248. data/lib/ngrokapi/services/tunnel_sessions_client.rb +33 -0
  249. data/lib/ngrokapi/services/tunnels_client.rb +33 -0
  250. data/lib/ngrokapi/version.rb +1 -1
  251. data/spec/ngrokapi/client_spec.rb +19 -0
  252. data/spec/ngrokapi/models/event_source_list_spec.rb +21 -0
  253. data/spec/ngrokapi/paged_iterator_spec.rb +2 -2
  254. data/spec/ngrokapi/services/abuse_reports_client_spec.rb +0 -2
  255. data/spec/ngrokapi/services/api_keys_client_spec.rb +0 -3
  256. data/spec/ngrokapi/services/certificate_authorities_client_spec.rb +0 -3
  257. data/spec/ngrokapi/services/credentials_client_spec.rb +0 -3
  258. data/spec/ngrokapi/services/endpoint_circuit_breaker_module_client_spec.rb +0 -2
  259. data/spec/ngrokapi/services/endpoint_compression_module_client_spec.rb +0 -2
  260. data/spec/ngrokapi/services/endpoint_configurations_client_spec.rb +0 -3
  261. data/spec/ngrokapi/services/endpoint_ip_policy_module_client_spec.rb +0 -2
  262. data/spec/ngrokapi/services/endpoint_logging_module_client_spec.rb +0 -2
  263. data/spec/ngrokapi/services/endpoint_mutual_tls_module_client_spec.rb +0 -2
  264. data/spec/ngrokapi/services/endpoint_o_auth_module_client_spec.rb +0 -2
  265. data/spec/ngrokapi/services/endpoint_oidc_module_client_spec.rb +0 -2
  266. data/spec/ngrokapi/services/endpoint_request_headers_module_client_spec.rb +0 -2
  267. data/spec/ngrokapi/services/endpoint_response_headers_module_client_spec.rb +0 -2
  268. data/spec/ngrokapi/services/endpoint_saml_module_client_spec.rb +0 -2
  269. data/spec/ngrokapi/services/endpoint_tls_termination_module_client_spec.rb +0 -2
  270. data/spec/ngrokapi/services/endpoint_webhook_validation_module_client_spec.rb +0 -2
  271. data/spec/ngrokapi/services/event_destinations_client_spec.rb +0 -3
  272. data/spec/ngrokapi/services/event_sources_client_spec.rb +33 -3
  273. data/spec/ngrokapi/services/event_streams_client_spec.rb +0 -3
  274. data/spec/ngrokapi/services/event_subscriptions_client_spec.rb +0 -3
  275. data/spec/ngrokapi/services/ip_policies_client_spec.rb +0 -3
  276. data/spec/ngrokapi/services/ip_policy_rules_client_spec.rb +0 -3
  277. data/spec/ngrokapi/services/ip_restrictions_client_spec.rb +0 -3
  278. data/spec/ngrokapi/services/ip_whitelist_client_spec.rb +0 -3
  279. data/spec/ngrokapi/services/reserved_addrs_client_spec.rb +0 -3
  280. data/spec/ngrokapi/services/reserved_domains_client_spec.rb +0 -3
  281. data/spec/ngrokapi/services/ssh_certificate_authorities_client_spec.rb +0 -3
  282. data/spec/ngrokapi/services/ssh_credentials_client_spec.rb +0 -3
  283. data/spec/ngrokapi/services/ssh_host_certificates_client_spec.rb +0 -3
  284. data/spec/ngrokapi/services/ssh_user_certificates_client_spec.rb +0 -3
  285. data/spec/ngrokapi/services/tls_certificates_client_spec.rb +0 -3
  286. data/spec/ngrokapi/services/tunnel_sessions_client_spec.rb +0 -1
  287. data/spec/spec_helper.rb +7 -0
  288. metadata +10 -7
  289. data/doc/.gitkeep +0 -0
  290. data/spec/ngrokapi/models/reserved_domain_cert_ns_target_spec.rb +0 -21
@@ -100,7 +100,7 @@
100
100
  </div>
101
101
 
102
102
  <div id="footer">
103
- Generated on Mon Oct 4 23:24:15 2021 by
103
+ Generated on Tue Oct 19 15:48:17 2021 by
104
104
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
105
105
  0.9.26 (ruby-3.0.1).
106
106
  </div>
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'ostruct'
4
+
3
5
  module NgrokAPI
4
6
  ##
5
7
  # Low-level api client for communicating with Ngrok's HTTP API.
@@ -22,11 +24,10 @@ module NgrokAPI
22
24
  end
23
25
 
24
26
  ##
25
- # API Keys are used to authenticate to the
26
- # (https://ngrok.com/docs/api#authentication)ngrok
27
- # API. You may use the API itself
27
+ # API Keys are used to authenticate to the [ngrok
28
+ # API](https://ngrok.com/docs/api#authentication). You may use the API itself
28
29
  # to provision and manage API Keys but you'll need to provision your first API
29
- # key from the (https://dashboard.ngrok.com/api/keys)API Keys page on your
30
+ # key from the [API Keys page](https://dashboard.ngrok.com/api/keys) on your
30
31
  # ngrok.com dashboard.
31
32
  #
32
33
  # @return [NgrokAPI::Services::APIKeysClient]
@@ -49,8 +50,8 @@ module NgrokAPI
49
50
  ##
50
51
  # Tunnel Credentials are ngrok agent authtokens. They authorize the ngrok
51
52
  # agent to connect the ngrok service as your account. They are installed with
52
- # the ngrok authtoken command or by specifying it in the ngrok.yml
53
- # configuration file with the authtoken property.
53
+ # the `ngrok authtoken` command or by specifying it in the `ngrok.yml`
54
+ # configuration file with the `authtoken` property.
54
55
  #
55
56
  # @return [NgrokAPI::Services::CredentialsClient]
56
57
  def credentials
@@ -84,7 +85,7 @@ module NgrokAPI
84
85
  end
85
86
 
86
87
  ##
87
- # IP Policies are reusable groups of CIDR ranges with an allow or deny
88
+ # IP Policies are reusable groups of CIDR ranges with an `allow` or `deny`
88
89
  # action. They can be attached to endpoints via the Endpoint Configuration IP
89
90
  # Policy module. They can also be used with IP Restrictions to control source
90
91
  # IP ranges that can start tunnel sessions and connect to the API and dashboard.
@@ -118,7 +119,7 @@ module NgrokAPI
118
119
 
119
120
  ##
120
121
  # The IP Whitelist is deprecated and will be removed. Use an IP Restriction
121
- # with an endpoints type instead.
122
+ # with an `endpoints` type instead.
122
123
  #
123
124
  # @return [NgrokAPI::Services::IPWhitelistClient]
124
125
  def ip_whitelist
@@ -214,5 +215,23 @@ module NgrokAPI
214
215
  def tunnels
215
216
  @_tunnels ||= NgrokAPI::Services::TunnelsClient.new(client: @client)
216
217
  end
218
+
219
+ def pointcfg_module
220
+ ns = OpenStruct.new
221
+ ns.logging = NgrokAPI::Services::EndpointLoggingModuleClient.new(client: @client)
222
+ ns.circuit_breaker = NgrokAPI::Services::EndpointCircuitBreakerModuleClient.new(client: @client)
223
+ ns.compression = NgrokAPI::Services::EndpointCompressionModuleClient.new(client: @client)
224
+ ns.tls_termination = NgrokAPI::Services::EndpointTLSTerminationModuleClient.new(client: @client)
225
+ ns.ip_policy = NgrokAPI::Services::EndpointIPPolicyModuleClient.new(client: @client)
226
+ ns.mutual_tls = NgrokAPI::Services::EndpointMutualTLSModuleClient.new(client: @client)
227
+ ns.request_headers = NgrokAPI::Services::EndpointRequestHeadersModuleClient.new(client: @client)
228
+ ns.response_headers = NgrokAPI::Services::EndpointResponseHeadersModuleClient.new(client: @client)
229
+ ns.oauth = NgrokAPI::Services::EndpointOAuthModuleClient.new(client: @client)
230
+ ns.webhook_validation = NgrokAPI::Services::EndpointWebhookValidationModuleClient.new(client: @client)
231
+ ns.saml = NgrokAPI::Services::EndpointSAMLModuleClient.new(client: @client)
232
+ ns.oidc = NgrokAPI::Services::EndpointOIDCModuleClient.new(client: @client)
233
+
234
+ ns
235
+ end
217
236
  end
218
237
  end
@@ -42,21 +42,23 @@ module NgrokAPI
42
42
  end
43
43
 
44
44
  ##
45
- # Make a GET request
45
+ # Make a GET request to list resources
46
46
  #
47
+ # @param [boolean] danger determine if we should throw an exception on 404 or not
47
48
  # @param [string] before_id URL resource path
48
49
  # @param [integer] limit URL resource path
49
50
  # @param [string] path resource path, mutually exclusive with url
50
51
  # @param [string] url Full URL of the resource, mutually exclusive with path
52
+ # @param [string] url Full URL of the resource, mutually exclusive with path
51
53
  # @return [json] response body
52
- def list(before_id: nil, limit: nil, path: nil, url: nil)
54
+ def list(danger: false, before_id: nil, limit: nil, path: nil, url: nil)
53
55
  if url
54
56
  get(url)
55
57
  else
56
58
  data = {}
57
59
  data[:before_id] = before_id if before_id
58
60
  data[:limit] = limit if limit
59
- get(path, data: data)
61
+ get(path, danger: danger, data: data)
60
62
  end
61
63
  end
62
64
 
@@ -2,17 +2,17 @@
2
2
 
3
3
  module NgrokAPI
4
4
  module Models
5
- class ReservedDomainCertNSTarget
5
+ class EventSourceList
6
6
  attr_reader :client,
7
7
  :result,
8
- :zone,
9
- :nameservers
8
+ :sources,
9
+ :uri
10
10
 
11
11
  def initialize(client:, result:)
12
12
  @client = client
13
13
  @result = result
14
- @zone = @result['zone']
15
- @nameservers = @result['nameservers']
14
+ @sources = @result['sources']
15
+ @uri = @result['uri']
16
16
  end
17
17
 
18
18
  def ==(other)
@@ -5,6 +5,8 @@ module NgrokAPI
5
5
  ##
6
6
  # A resource representing multiple instances from a given "list" API call
7
7
  class Listable
8
+ include Enumerable
9
+
8
10
  attr_reader :client,
9
11
  :klass,
10
12
  :iter,
@@ -14,7 +16,7 @@ module NgrokAPI
14
16
  :result,
15
17
  :uri
16
18
 
17
- def initialize(client:, result:, list_property:, klass:)
19
+ def initialize(danger: false, client:, result:, list_property:, klass:)
18
20
  @client = client
19
21
  @result = result
20
22
  @list_property = list_property
@@ -26,10 +28,19 @@ module NgrokAPI
26
28
  @iter = NgrokAPI::PagedIterator.new(
27
29
  client: client,
28
30
  page: self,
29
- list_property: list_property
31
+ list_property: list_property,
32
+ danger: danger
30
33
  )
31
34
  end
32
35
 
36
+ def each
37
+ item = @iter.get_next
38
+ while item
39
+ yield item
40
+ item = @iter.get_next
41
+ end
42
+ end
43
+
33
44
  def ==(other)
34
45
  @result == other.result
35
46
  end
@@ -17,7 +17,8 @@ module NgrokAPI
17
17
  :https_endpoint_configuration,
18
18
  :certificate,
19
19
  :certificate_management_policy,
20
- :certificate_management_status
20
+ :certificate_management_status,
21
+ :acme_challenge_cname_target
21
22
 
22
23
  def initialize(client:, result:)
23
24
  @client = client
@@ -35,6 +36,7 @@ module NgrokAPI
35
36
  @certificate = @result['certificate']
36
37
  @certificate_management_policy = @result['certificate_management_policy']
37
38
  @certificate_management_status = @result['certificate_management_status']
39
+ @acme_challenge_cname_target = @result['acme_challenge_cname_target']
38
40
  end
39
41
 
40
42
  def ==(other)
@@ -8,8 +8,7 @@ module NgrokAPI
8
8
  :error_code,
9
9
  :msg,
10
10
  :started_at,
11
- :retries_at,
12
- :ns_targets
11
+ :retries_at
13
12
 
14
13
  def initialize(client:, result:)
15
14
  @client = client
@@ -18,7 +17,6 @@ module NgrokAPI
18
17
  @msg = @result['msg']
19
18
  @started_at = @result['started_at']
20
19
  @retries_at = @result['retries_at']
21
- @ns_targets = @result['ns_targets']
22
20
  end
23
21
 
24
22
  def ==(other)
@@ -10,12 +10,14 @@ module NgrokAPI
10
10
  def initialize(
11
11
  client:,
12
12
  page:,
13
- list_property:
13
+ list_property:,
14
+ danger: false
14
15
  )
15
16
  @n = 0
16
17
  @client = client
17
18
  @list_property = list_property
18
19
  @page = page
20
+ @danger = danger
19
21
  end
20
22
 
21
23
  ##
@@ -30,7 +32,7 @@ module NgrokAPI
30
32
  item
31
33
  rescue
32
34
  if @page.next_page_uri
33
- res = @client.list(url: @page.next_page_uri)
35
+ res = @client.list(danger: @danger, url: @page.next_page_uri)
34
36
  self.n = 0
35
37
  self.page = res
36
38
  get_next
@@ -3,11 +3,10 @@
3
3
  module NgrokAPI
4
4
  module Services
5
5
  ##
6
- # API Keys are used to authenticate to the
7
- # (https://ngrok.com/docs/api#authentication)ngrok
8
- # API. You may use the API itself
6
+ # API Keys are used to authenticate to the [ngrok
7
+ # API](https://ngrok.com/docs/api#authentication). You may use the API itself
9
8
  # to provision and manage API Keys but you'll need to provision your first API
10
- # key from the (https://dashboard.ngrok.com/api/keys)API Keys page on your
9
+ # key from the [API Keys page](https://dashboard.ngrok.com/api/keys) on your
11
10
  # ngrok.com dashboard.
12
11
  #
13
12
  # https://ngrok.com/docs/api#api-api-keys
@@ -140,6 +139,7 @@ module NgrokAPI
140
139
  url: url,
141
140
  path: PATH
142
141
  )
142
+
143
143
  NgrokAPI::Models::Listable.new(
144
144
  client: self,
145
145
  result: result,
@@ -148,6 +148,38 @@ module NgrokAPI
148
148
  )
149
149
  end
150
150
 
151
+ ##
152
+ # List all API keys owned by this account
153
+ # Throws an exception if API error.
154
+ #
155
+ # @param [string] before_id
156
+ # @param [string] limit
157
+ # @param [string] url optional and mutually exclusive from before_id and limit
158
+ # @return [NgrokAPI::Models::Listable] result from the API request
159
+ #
160
+ # https://ngrok.com/docs/api#api-api-keys-list
161
+ def list!(
162
+ before_id: nil,
163
+ limit: nil,
164
+ url: nil
165
+ )
166
+ result = @client.list(
167
+ before_id: before_id,
168
+ limit: limit,
169
+ danger: true,
170
+ url: url,
171
+ path: PATH
172
+ )
173
+
174
+ NgrokAPI::Models::Listable.new(
175
+ client: self,
176
+ result: result,
177
+ list_property: LIST_PROPERTY,
178
+ klass: NgrokAPI::Models::APIKey,
179
+ danger: true
180
+ )
181
+ end
182
+
151
183
  ##
152
184
  # Update attributes of an API key by ID.
153
185
  #
@@ -141,6 +141,7 @@ module NgrokAPI
141
141
  url: url,
142
142
  path: PATH
143
143
  )
144
+
144
145
  NgrokAPI::Models::Listable.new(
145
146
  client: self,
146
147
  result: result,
@@ -149,6 +150,38 @@ module NgrokAPI
149
150
  )
150
151
  end
151
152
 
153
+ ##
154
+ # List all Certificate Authority on this account
155
+ # Throws an exception if API error.
156
+ #
157
+ # @param [string] before_id
158
+ # @param [string] limit
159
+ # @param [string] url optional and mutually exclusive from before_id and limit
160
+ # @return [NgrokAPI::Models::Listable] result from the API request
161
+ #
162
+ # https://ngrok.com/docs/api#api-certificate-authorities-list
163
+ def list!(
164
+ before_id: nil,
165
+ limit: nil,
166
+ url: nil
167
+ )
168
+ result = @client.list(
169
+ before_id: before_id,
170
+ limit: limit,
171
+ danger: true,
172
+ url: url,
173
+ path: PATH
174
+ )
175
+
176
+ NgrokAPI::Models::Listable.new(
177
+ client: self,
178
+ result: result,
179
+ list_property: LIST_PROPERTY,
180
+ klass: NgrokAPI::Models::CertificateAuthority,
181
+ danger: true
182
+ )
183
+ end
184
+
152
185
  ##
153
186
  # Update attributes of a Certificate Authority by ID
154
187
  #
@@ -5,8 +5,8 @@ module NgrokAPI
5
5
  ##
6
6
  # Tunnel Credentials are ngrok agent authtokens. They authorize the ngrok
7
7
  # agent to connect the ngrok service as your account. They are installed with
8
- # the ngrok authtoken command or by specifying it in the ngrok.yml
9
- # configuration file with the authtoken property.
8
+ # the `ngrok authtoken` command or by specifying it in the `ngrok.yml`
9
+ # configuration file with the `authtoken` property.
10
10
  #
11
11
  # https://ngrok.com/docs/api#api-credentials
12
12
  class CredentialsClient
@@ -143,6 +143,7 @@ module NgrokAPI
143
143
  url: url,
144
144
  path: PATH
145
145
  )
146
+
146
147
  NgrokAPI::Models::Listable.new(
147
148
  client: self,
148
149
  result: result,
@@ -151,6 +152,38 @@ module NgrokAPI
151
152
  )
152
153
  end
153
154
 
155
+ ##
156
+ # List all tunnel authtoken credentials on this account
157
+ # Throws an exception if API error.
158
+ #
159
+ # @param [string] before_id
160
+ # @param [string] limit
161
+ # @param [string] url optional and mutually exclusive from before_id and limit
162
+ # @return [NgrokAPI::Models::Listable] result from the API request
163
+ #
164
+ # https://ngrok.com/docs/api#api-credentials-list
165
+ def list!(
166
+ before_id: nil,
167
+ limit: nil,
168
+ url: nil
169
+ )
170
+ result = @client.list(
171
+ before_id: before_id,
172
+ limit: limit,
173
+ danger: true,
174
+ url: url,
175
+ path: PATH
176
+ )
177
+
178
+ NgrokAPI::Models::Listable.new(
179
+ client: self,
180
+ result: result,
181
+ list_property: LIST_PROPERTY,
182
+ klass: NgrokAPI::Models::Credential,
183
+ danger: true
184
+ )
185
+ end
186
+
154
187
  ##
155
188
  # Update attributes of an tunnel authtoken credential by ID
156
189
  #
@@ -179,6 +179,7 @@ module NgrokAPI
179
179
  url: url,
180
180
  path: PATH
181
181
  )
182
+
182
183
  NgrokAPI::Models::Listable.new(
183
184
  client: self,
184
185
  result: result,
@@ -187,6 +188,38 @@ module NgrokAPI
187
188
  )
188
189
  end
189
190
 
191
+ ##
192
+ # Returns a list of all endpoint configurations on this account
193
+ # Throws an exception if API error.
194
+ #
195
+ # @param [string] before_id
196
+ # @param [string] limit
197
+ # @param [string] url optional and mutually exclusive from before_id and limit
198
+ # @return [NgrokAPI::Models::Listable] result from the API request
199
+ #
200
+ # https://ngrok.com/docs/api#api-endpoint-configurations-list
201
+ def list!(
202
+ before_id: nil,
203
+ limit: nil,
204
+ url: nil
205
+ )
206
+ result = @client.list(
207
+ before_id: before_id,
208
+ limit: limit,
209
+ danger: true,
210
+ url: url,
211
+ path: PATH
212
+ )
213
+
214
+ NgrokAPI::Models::Listable.new(
215
+ client: self,
216
+ result: result,
217
+ list_property: LIST_PROPERTY,
218
+ klass: NgrokAPI::Models::EndpointConfiguration,
219
+ danger: true
220
+ )
221
+ end
222
+
190
223
  ##
191
224
  # Updates an endpoint configuration. If a module is not specified in the update,
192
225
  # it will not be modified. However, each module configuration that is specified
@@ -145,6 +145,7 @@ module NgrokAPI
145
145
  url: url,
146
146
  path: PATH
147
147
  )
148
+
148
149
  NgrokAPI::Models::Listable.new(
149
150
  client: self,
150
151
  result: result,
@@ -153,6 +154,38 @@ module NgrokAPI
153
154
  )
154
155
  end
155
156
 
157
+ ##
158
+ # List all Event Destinations on this account.
159
+ # Throws an exception if API error.
160
+ #
161
+ # @param [string] before_id
162
+ # @param [string] limit
163
+ # @param [string] url optional and mutually exclusive from before_id and limit
164
+ # @return [NgrokAPI::Models::Listable] result from the API request
165
+ #
166
+ # https://ngrok.com/docs/api#api-event-destinations-list
167
+ def list!(
168
+ before_id: nil,
169
+ limit: nil,
170
+ url: nil
171
+ )
172
+ result = @client.list(
173
+ before_id: before_id,
174
+ limit: limit,
175
+ danger: true,
176
+ url: url,
177
+ path: PATH
178
+ )
179
+
180
+ NgrokAPI::Models::Listable.new(
181
+ client: self,
182
+ result: result,
183
+ list_property: LIST_PROPERTY,
184
+ klass: NgrokAPI::Models::EventDestination,
185
+ danger: true
186
+ )
187
+ end
188
+
156
189
  ##
157
190
  # Update attributes of an Event Destination.
158
191
  #
@@ -124,6 +124,45 @@ module NgrokAPI
124
124
  NgrokAPI::Models::EventSource.new(client: self, result: result)
125
125
  end
126
126
 
127
+ ##
128
+ # List the types for which this event subscription will trigger
129
+ #
130
+ # @param [string] subscription_id The unique identifier for the Event Subscription that this Event Source is attached to.
131
+ # @return [NgrokAPI::Models::EventSourceList] result from the API request
132
+ #
133
+ # https://ngrok.com/docs/api#api-event-sources-list
134
+ def list(
135
+ subscription_id: ""
136
+ )
137
+ path = '/event_subscriptions/%{subscription_id}/sources'
138
+ replacements = {
139
+ subscription_id: subscription_id,
140
+ }
141
+ data = {}
142
+ result = @client.get(path % replacements, data: data)
143
+ NgrokAPI::Models::EventSourceList.new(client: self, result: result)
144
+ end
145
+
146
+ ##
147
+ # List the types for which this event subscription will trigger
148
+ # Throws an exception if API error.
149
+ #
150
+ # @param [string] subscription_id The unique identifier for the Event Subscription that this Event Source is attached to.
151
+ # @return [NgrokAPI::Models::EventSourceList] result from the API request
152
+ #
153
+ # https://ngrok.com/docs/api#api-event-sources-list
154
+ def list!(
155
+ subscription_id: ""
156
+ )
157
+ path = '/event_subscriptions/%{subscription_id}/sources'
158
+ replacements = {
159
+ subscription_id: subscription_id,
160
+ }
161
+ data = {}
162
+ result = @client.get(path % replacements, data: data, danger: true)
163
+ NgrokAPI::Models::EventSourceList.new(client: self, result: result)
164
+ end
165
+
127
166
  ##
128
167
  # Update the type for which this event subscription will trigger
129
168
  #
@@ -145,6 +145,7 @@ module NgrokAPI
145
145
  url: url,
146
146
  path: PATH
147
147
  )
148
+
148
149
  NgrokAPI::Models::Listable.new(
149
150
  client: self,
150
151
  result: result,
@@ -153,6 +154,38 @@ module NgrokAPI
153
154
  )
154
155
  end
155
156
 
157
+ ##
158
+ # List all Event Streams available on this account.
159
+ # Throws an exception if API error.
160
+ #
161
+ # @param [string] before_id
162
+ # @param [string] limit
163
+ # @param [string] url optional and mutually exclusive from before_id and limit
164
+ # @return [NgrokAPI::Models::Listable] result from the API request
165
+ #
166
+ # https://ngrok.com/docs/api#api-event-streams-list
167
+ def list!(
168
+ before_id: nil,
169
+ limit: nil,
170
+ url: nil
171
+ )
172
+ result = @client.list(
173
+ before_id: before_id,
174
+ limit: limit,
175
+ danger: true,
176
+ url: url,
177
+ path: PATH
178
+ )
179
+
180
+ NgrokAPI::Models::Listable.new(
181
+ client: self,
182
+ result: result,
183
+ list_property: LIST_PROPERTY,
184
+ klass: NgrokAPI::Models::EventStream,
185
+ danger: true
186
+ )
187
+ end
188
+
156
189
  ##
157
190
  # Update attributes of an Event Stream by ID.
158
191
  #
@@ -138,6 +138,7 @@ module NgrokAPI
138
138
  url: url,
139
139
  path: PATH
140
140
  )
141
+
141
142
  NgrokAPI::Models::Listable.new(
142
143
  client: self,
143
144
  result: result,
@@ -146,6 +147,38 @@ module NgrokAPI
146
147
  )
147
148
  end
148
149
 
150
+ ##
151
+ # List this Account's Event Subscriptions.
152
+ # Throws an exception if API error.
153
+ #
154
+ # @param [string] before_id
155
+ # @param [string] limit
156
+ # @param [string] url optional and mutually exclusive from before_id and limit
157
+ # @return [NgrokAPI::Models::Listable] result from the API request
158
+ #
159
+ # https://ngrok.com/docs/api#api-event-subscriptions-list
160
+ def list!(
161
+ before_id: nil,
162
+ limit: nil,
163
+ url: nil
164
+ )
165
+ result = @client.list(
166
+ before_id: before_id,
167
+ limit: limit,
168
+ danger: true,
169
+ url: url,
170
+ path: PATH
171
+ )
172
+
173
+ NgrokAPI::Models::Listable.new(
174
+ client: self,
175
+ result: result,
176
+ list_property: LIST_PROPERTY,
177
+ klass: NgrokAPI::Models::EventSubscription,
178
+ danger: true
179
+ )
180
+ end
181
+
149
182
  ##
150
183
  # Update an Event Subscription.
151
184
  #