ngrok-api 0.12.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
@@ -3,7 +3,7 @@
3
3
  module NgrokAPI
4
4
  module Services
5
5
  ##
6
- # IP Policies are reusable groups of CIDR ranges with an allow or deny
6
+ # IP Policies are reusable groups of CIDR ranges with an `allow` or `deny`
7
7
  # action. They can be attached to endpoints via the Endpoint Configuration IP
8
8
  # Policy module. They can also be used with IP Restrictions to control source
9
9
  # IP ranges that can start tunnel sessions and connect to the API and dashboard.
@@ -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 IP policies 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-ip-policies-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::IPPolicy,
185
+ danger: true
186
+ )
187
+ end
188
+
156
189
  ##
157
190
  # Update attributes of an IP policy by ID
158
191
  #
@@ -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 IP policy rules 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-ip-policy-rules-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::IPPolicyRule,
181
+ danger: true
182
+ )
183
+ end
184
+
152
185
  ##
153
186
  # Update attributes of an IP policy rule by ID
154
187
  #
@@ -148,6 +148,7 @@ module NgrokAPI
148
148
  url: url,
149
149
  path: PATH
150
150
  )
151
+
151
152
  NgrokAPI::Models::Listable.new(
152
153
  client: self,
153
154
  result: result,
@@ -156,6 +157,38 @@ module NgrokAPI
156
157
  )
157
158
  end
158
159
 
160
+ ##
161
+ # List all IP restrictions on this account
162
+ # Throws an exception if API error.
163
+ #
164
+ # @param [string] before_id
165
+ # @param [string] limit
166
+ # @param [string] url optional and mutually exclusive from before_id and limit
167
+ # @return [NgrokAPI::Models::Listable] result from the API request
168
+ #
169
+ # https://ngrok.com/docs/api#api-ip-restrictions-list
170
+ def list!(
171
+ before_id: nil,
172
+ limit: nil,
173
+ url: nil
174
+ )
175
+ result = @client.list(
176
+ before_id: before_id,
177
+ limit: limit,
178
+ danger: true,
179
+ url: url,
180
+ path: PATH
181
+ )
182
+
183
+ NgrokAPI::Models::Listable.new(
184
+ client: self,
185
+ result: result,
186
+ list_property: LIST_PROPERTY,
187
+ klass: NgrokAPI::Models::IPRestriction,
188
+ danger: true
189
+ )
190
+ end
191
+
159
192
  ##
160
193
  # Update attributes of an IP restriction by ID
161
194
  #
@@ -4,7 +4,7 @@ module NgrokAPI
4
4
  module Services
5
5
  ##
6
6
  # The IP Whitelist is deprecated and will be removed. Use an IP Restriction
7
- # with an endpoints type instead.
7
+ # with an `endpoints` type instead.
8
8
  #
9
9
  # https://ngrok.com/docs/api#api-ip-whitelist
10
10
  class IPWhitelistClient
@@ -139,6 +139,7 @@ module NgrokAPI
139
139
  url: url,
140
140
  path: PATH
141
141
  )
142
+
142
143
  NgrokAPI::Models::Listable.new(
143
144
  client: self,
144
145
  result: result,
@@ -147,6 +148,38 @@ module NgrokAPI
147
148
  )
148
149
  end
149
150
 
151
+ ##
152
+ # List all IP whitelist entries on 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-ip-whitelist-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::IPWhitelistEntry,
179
+ danger: true
180
+ )
181
+ end
182
+
150
183
  ##
151
184
  # Update attributes of an IP whitelist entry by ID
152
185
  #
@@ -142,6 +142,7 @@ module NgrokAPI
142
142
  url: url,
143
143
  path: PATH
144
144
  )
145
+
145
146
  NgrokAPI::Models::Listable.new(
146
147
  client: self,
147
148
  result: result,
@@ -150,6 +151,38 @@ module NgrokAPI
150
151
  )
151
152
  end
152
153
 
154
+ ##
155
+ # List all reserved addresses on this account.
156
+ # Throws an exception if API error.
157
+ #
158
+ # @param [string] before_id
159
+ # @param [string] limit
160
+ # @param [string] url optional and mutually exclusive from before_id and limit
161
+ # @return [NgrokAPI::Models::Listable] result from the API request
162
+ #
163
+ # https://ngrok.com/docs/api#api-reserved-addrs-list
164
+ def list!(
165
+ before_id: nil,
166
+ limit: nil,
167
+ url: nil
168
+ )
169
+ result = @client.list(
170
+ before_id: before_id,
171
+ limit: limit,
172
+ danger: true,
173
+ url: url,
174
+ path: PATH
175
+ )
176
+
177
+ NgrokAPI::Models::Listable.new(
178
+ client: self,
179
+ result: result,
180
+ list_property: LIST_PROPERTY,
181
+ klass: NgrokAPI::Models::ReservedAddr,
182
+ danger: true
183
+ )
184
+ end
185
+
153
186
  ##
154
187
  # Update the attributes of a reserved address.
155
188
  #
@@ -155,6 +155,7 @@ module NgrokAPI
155
155
  url: url,
156
156
  path: PATH
157
157
  )
158
+
158
159
  NgrokAPI::Models::Listable.new(
159
160
  client: self,
160
161
  result: result,
@@ -163,6 +164,38 @@ module NgrokAPI
163
164
  )
164
165
  end
165
166
 
167
+ ##
168
+ # List all reserved domains on this account.
169
+ # Throws an exception if API error.
170
+ #
171
+ # @param [string] before_id
172
+ # @param [string] limit
173
+ # @param [string] url optional and mutually exclusive from before_id and limit
174
+ # @return [NgrokAPI::Models::Listable] result from the API request
175
+ #
176
+ # https://ngrok.com/docs/api#api-reserved-domains-list
177
+ def list!(
178
+ before_id: nil,
179
+ limit: nil,
180
+ url: nil
181
+ )
182
+ result = @client.list(
183
+ before_id: before_id,
184
+ limit: limit,
185
+ danger: true,
186
+ url: url,
187
+ path: PATH
188
+ )
189
+
190
+ NgrokAPI::Models::Listable.new(
191
+ client: self,
192
+ result: result,
193
+ list_property: LIST_PROPERTY,
194
+ klass: NgrokAPI::Models::ReservedDomain,
195
+ danger: true
196
+ )
197
+ end
198
+
166
199
  ##
167
200
  # Update the attributes of a reserved domain.
168
201
  #
@@ -144,6 +144,7 @@ module NgrokAPI
144
144
  url: url,
145
145
  path: PATH
146
146
  )
147
+
147
148
  NgrokAPI::Models::Listable.new(
148
149
  client: self,
149
150
  result: result,
@@ -152,6 +153,38 @@ module NgrokAPI
152
153
  )
153
154
  end
154
155
 
156
+ ##
157
+ # List all SSH Certificate Authorities on this account
158
+ # Throws an exception if API error.
159
+ #
160
+ # @param [string] before_id
161
+ # @param [string] limit
162
+ # @param [string] url optional and mutually exclusive from before_id and limit
163
+ # @return [NgrokAPI::Models::Listable] result from the API request
164
+ #
165
+ # https://ngrok.com/docs/api#api-ssh-certificate-authorities-list
166
+ def list!(
167
+ before_id: nil,
168
+ limit: nil,
169
+ url: nil
170
+ )
171
+ result = @client.list(
172
+ before_id: before_id,
173
+ limit: limit,
174
+ danger: true,
175
+ url: url,
176
+ path: PATH
177
+ )
178
+
179
+ NgrokAPI::Models::Listable.new(
180
+ client: self,
181
+ result: result,
182
+ list_property: LIST_PROPERTY,
183
+ klass: NgrokAPI::Models::SSHCertificateAuthority,
184
+ danger: true
185
+ )
186
+ end
187
+
155
188
  ##
156
189
  # Update an SSH Certificate Authority
157
190
  #
@@ -142,6 +142,7 @@ module NgrokAPI
142
142
  url: url,
143
143
  path: PATH
144
144
  )
145
+
145
146
  NgrokAPI::Models::Listable.new(
146
147
  client: self,
147
148
  result: result,
@@ -150,6 +151,38 @@ module NgrokAPI
150
151
  )
151
152
  end
152
153
 
154
+ ##
155
+ # List all ssh credentials on this account
156
+ # Throws an exception if API error.
157
+ #
158
+ # @param [string] before_id
159
+ # @param [string] limit
160
+ # @param [string] url optional and mutually exclusive from before_id and limit
161
+ # @return [NgrokAPI::Models::Listable] result from the API request
162
+ #
163
+ # https://ngrok.com/docs/api#api-ssh-credentials-list
164
+ def list!(
165
+ before_id: nil,
166
+ limit: nil,
167
+ url: nil
168
+ )
169
+ result = @client.list(
170
+ before_id: before_id,
171
+ limit: limit,
172
+ danger: true,
173
+ url: url,
174
+ path: PATH
175
+ )
176
+
177
+ NgrokAPI::Models::Listable.new(
178
+ client: self,
179
+ result: result,
180
+ list_property: LIST_PROPERTY,
181
+ klass: NgrokAPI::Models::SSHCredential,
182
+ danger: true
183
+ )
184
+ end
185
+
153
186
  ##
154
187
  # Update attributes of an ssh_credential by ID
155
188
  #
@@ -151,6 +151,7 @@ module NgrokAPI
151
151
  url: url,
152
152
  path: PATH
153
153
  )
154
+
154
155
  NgrokAPI::Models::Listable.new(
155
156
  client: self,
156
157
  result: result,
@@ -159,6 +160,38 @@ module NgrokAPI
159
160
  )
160
161
  end
161
162
 
163
+ ##
164
+ # List all SSH Host Certificates issued on this account
165
+ # Throws an exception if API error.
166
+ #
167
+ # @param [string] before_id
168
+ # @param [string] limit
169
+ # @param [string] url optional and mutually exclusive from before_id and limit
170
+ # @return [NgrokAPI::Models::Listable] result from the API request
171
+ #
172
+ # https://ngrok.com/docs/api#api-ssh-host-certificates-list
173
+ def list!(
174
+ before_id: nil,
175
+ limit: nil,
176
+ url: nil
177
+ )
178
+ result = @client.list(
179
+ before_id: before_id,
180
+ limit: limit,
181
+ danger: true,
182
+ url: url,
183
+ path: PATH
184
+ )
185
+
186
+ NgrokAPI::Models::Listable.new(
187
+ client: self,
188
+ result: result,
189
+ list_property: LIST_PROPERTY,
190
+ klass: NgrokAPI::Models::SSHHostCertificate,
191
+ danger: true
192
+ )
193
+ end
194
+
162
195
  ##
163
196
  # Update an SSH Host Certificate
164
197
  #
@@ -157,6 +157,7 @@ module NgrokAPI
157
157
  url: url,
158
158
  path: PATH
159
159
  )
160
+
160
161
  NgrokAPI::Models::Listable.new(
161
162
  client: self,
162
163
  result: result,
@@ -165,6 +166,38 @@ module NgrokAPI
165
166
  )
166
167
  end
167
168
 
169
+ ##
170
+ # List all SSH User Certificates issued on this account
171
+ # Throws an exception if API error.
172
+ #
173
+ # @param [string] before_id
174
+ # @param [string] limit
175
+ # @param [string] url optional and mutually exclusive from before_id and limit
176
+ # @return [NgrokAPI::Models::Listable] result from the API request
177
+ #
178
+ # https://ngrok.com/docs/api#api-ssh-user-certificates-list
179
+ def list!(
180
+ before_id: nil,
181
+ limit: nil,
182
+ url: nil
183
+ )
184
+ result = @client.list(
185
+ before_id: before_id,
186
+ limit: limit,
187
+ danger: true,
188
+ url: url,
189
+ path: PATH
190
+ )
191
+
192
+ NgrokAPI::Models::Listable.new(
193
+ client: self,
194
+ result: result,
195
+ list_property: LIST_PROPERTY,
196
+ klass: NgrokAPI::Models::SSHUserCertificate,
197
+ danger: true
198
+ )
199
+ end
200
+
168
201
  ##
169
202
  # Update an SSH User Certificate
170
203
  #
@@ -144,6 +144,7 @@ module NgrokAPI
144
144
  url: url,
145
145
  path: PATH
146
146
  )
147
+
147
148
  NgrokAPI::Models::Listable.new(
148
149
  client: self,
149
150
  result: result,
@@ -152,6 +153,38 @@ module NgrokAPI
152
153
  )
153
154
  end
154
155
 
156
+ ##
157
+ # List all TLS certificates on this account
158
+ # Throws an exception if API error.
159
+ #
160
+ # @param [string] before_id
161
+ # @param [string] limit
162
+ # @param [string] url optional and mutually exclusive from before_id and limit
163
+ # @return [NgrokAPI::Models::Listable] result from the API request
164
+ #
165
+ # https://ngrok.com/docs/api#api-tls-certificates-list
166
+ def list!(
167
+ before_id: nil,
168
+ limit: nil,
169
+ url: nil
170
+ )
171
+ result = @client.list(
172
+ before_id: before_id,
173
+ limit: limit,
174
+ danger: true,
175
+ url: url,
176
+ path: PATH
177
+ )
178
+
179
+ NgrokAPI::Models::Listable.new(
180
+ client: self,
181
+ result: result,
182
+ list_property: LIST_PROPERTY,
183
+ klass: NgrokAPI::Models::TLSCertificate,
184
+ danger: true
185
+ )
186
+ end
187
+
155
188
  ##
156
189
  # Update attributes of a TLS Certificate by ID
157
190
  #
@@ -40,6 +40,7 @@ module NgrokAPI
40
40
  url: url,
41
41
  path: PATH
42
42
  )
43
+
43
44
  NgrokAPI::Models::Listable.new(
44
45
  client: self,
45
46
  result: result,
@@ -48,6 +49,38 @@ module NgrokAPI
48
49
  )
49
50
  end
50
51
 
52
+ ##
53
+ # List all online tunnel sessions running on this account.
54
+ # Throws an exception if API error.
55
+ #
56
+ # @param [string] before_id
57
+ # @param [string] limit
58
+ # @param [string] url optional and mutually exclusive from before_id and limit
59
+ # @return [NgrokAPI::Models::Listable] result from the API request
60
+ #
61
+ # https://ngrok.com/docs/api#api-tunnel-sessions-list
62
+ def list!(
63
+ before_id: nil,
64
+ limit: nil,
65
+ url: nil
66
+ )
67
+ result = @client.list(
68
+ before_id: before_id,
69
+ limit: limit,
70
+ danger: true,
71
+ url: url,
72
+ path: PATH
73
+ )
74
+
75
+ NgrokAPI::Models::Listable.new(
76
+ client: self,
77
+ result: result,
78
+ list_property: LIST_PROPERTY,
79
+ klass: NgrokAPI::Models::TunnelSession,
80
+ danger: true
81
+ )
82
+ end
83
+
51
84
  ##
52
85
  # Get the detailed status of a tunnel session by ID
53
86
  #
@@ -39,6 +39,7 @@ module NgrokAPI
39
39
  url: url,
40
40
  path: PATH
41
41
  )
42
+
42
43
  NgrokAPI::Models::Listable.new(
43
44
  client: self,
44
45
  result: result,
@@ -46,6 +47,38 @@ module NgrokAPI
46
47
  klass: NgrokAPI::Models::Tunnel
47
48
  )
48
49
  end
50
+
51
+ ##
52
+ # List all online tunnels currently running on the account.
53
+ # Throws an exception if API error.
54
+ #
55
+ # @param [string] before_id
56
+ # @param [string] limit
57
+ # @param [string] url optional and mutually exclusive from before_id and limit
58
+ # @return [NgrokAPI::Models::Listable] result from the API request
59
+ #
60
+ # https://ngrok.com/docs/api#api-tunnels-list
61
+ def list!(
62
+ before_id: nil,
63
+ limit: nil,
64
+ url: nil
65
+ )
66
+ result = @client.list(
67
+ before_id: before_id,
68
+ limit: limit,
69
+ danger: true,
70
+ url: url,
71
+ path: PATH
72
+ )
73
+
74
+ NgrokAPI::Models::Listable.new(
75
+ client: self,
76
+ result: result,
77
+ list_property: LIST_PROPERTY,
78
+ klass: NgrokAPI::Models::Tunnel,
79
+ danger: true
80
+ )
81
+ end
49
82
  end
50
83
  end
51
84
  end
@@ -2,6 +2,6 @@ module NgrokAPI
2
2
  # rubocop:disable Layout/SpaceAroundOperators
3
3
 
4
4
  # The current version of the gem
5
- VERSION="0.12.0".freeze
5
+ VERSION="0.14.0".freeze
6
6
  # rubocop:enable Layout/SpaceAroundOperators
7
7
  end
@@ -1,4 +1,5 @@
1
1
  require 'spec_helper'
2
+ require 'ostruct'
2
3
 
3
4
  RSpec.describe NgrokAPI::Client do
4
5
  before(:each) do
@@ -136,4 +137,22 @@ RSpec.describe NgrokAPI::Client do
136
137
  expect(@client.tunnels.class).to eq(NgrokAPI::Services::TunnelsClient)
137
138
  end
138
139
  end
140
+
141
+ describe "#pointcfg_module" do
142
+ it "returns an instance of OpenStruct covering namespaces" do
143
+ ns = @client.pointcfg_module
144
+ expect(ns.logging.class).to eq(NgrokAPI::Services::EndpointLoggingModuleClient)
145
+ expect(ns.circuit_breaker.class).to eq(NgrokAPI::Services::EndpointCircuitBreakerModuleClient)
146
+ expect(ns.compression.class).to eq(NgrokAPI::Services::EndpointCompressionModuleClient)
147
+ expect(ns.tls_termination.class).to eq(NgrokAPI::Services::EndpointTLSTerminationModuleClient)
148
+ expect(ns.ip_policy.class).to eq(NgrokAPI::Services::EndpointIPPolicyModuleClient)
149
+ expect(ns.mutual_tls.class).to eq(NgrokAPI::Services::EndpointMutualTLSModuleClient)
150
+ expect(ns.request_headers.class).to eq(NgrokAPI::Services::EndpointRequestHeadersModuleClient)
151
+ expect(ns.response_headers.class).to eq(NgrokAPI::Services::EndpointResponseHeadersModuleClient)
152
+ expect(ns.oauth.class).to eq(NgrokAPI::Services::EndpointOAuthModuleClient)
153
+ expect(ns.webhook_validation.class).to eq(NgrokAPI::Services::EndpointWebhookValidationModuleClient)
154
+ expect(ns.saml.class).to eq(NgrokAPI::Services::EndpointSAMLModuleClient)
155
+ expect(ns.oidc.class).to eq(NgrokAPI::Services::EndpointOIDCModuleClient)
156
+ end
157
+ end
139
158
  end
@@ -0,0 +1,21 @@
1
+ require 'spec_helper'
2
+
3
+ RSpec.describe NgrokAPI::Models::EventSourceList do
4
+ before(:each) do
5
+ @client = class_double("EventSourceListsClient")
6
+ @event_source_list = NgrokAPI::Models::EventSourceList.new(client: @client, result: event_source_list_result)
7
+ end
8
+
9
+ describe "#==" do
10
+ it "is equal if the results are the same" do
11
+ other = NgrokAPI::Models::EventSourceList.new(client: @client, result: event_source_list_result)
12
+ expect(@event_source_list == other).to eq true
13
+ end
14
+ end
15
+
16
+ describe "#to_s" do
17
+ it "stringifies as result.to_s" do
18
+ expect(@event_source_list.to_s).to eq event_source_list_result.to_s
19
+ end
20
+ end
21
+ end