├── .config
└── dotnet-tools.json
├── .gitignore
├── CHANGELOG.md
├── CODE_OF_CONDUCT.md
├── LICENSE
├── NgrokApi
├── ApiHttpClient.cs
├── Datatypes
│ ├── AbuseReport.cs
│ ├── AbuseReportCreate.cs
│ ├── AbuseReportHostname.cs
│ ├── AgentIngress.cs
│ ├── AgentIngressCertJob.cs
│ ├── AgentIngressCertPolicy.cs
│ ├── AgentIngressCertStatus.cs
│ ├── AgentIngressCreate.cs
│ ├── AgentIngressList.cs
│ ├── AgentIngressUpdate.cs
│ ├── ApiKey.cs
│ ├── ApiKeyCreate.cs
│ ├── ApiKeyList.cs
│ ├── ApiKeyUpdate.cs
│ ├── ApplicationSession.cs
│ ├── ApplicationSessionList.cs
│ ├── ApplicationUser.cs
│ ├── ApplicationUserList.cs
│ ├── AwsAuth.cs
│ ├── AwsCredentials.cs
│ ├── AwsRole.cs
│ ├── BotUser.cs
│ ├── BotUserCreate.cs
│ ├── BotUserList.cs
│ ├── BotUserUpdate.cs
│ ├── BrowserSession.cs
│ ├── CertificateAuthority.cs
│ ├── CertificateAuthorityCreate.cs
│ ├── CertificateAuthorityList.cs
│ ├── CertificateAuthorityUpdate.cs
│ ├── Credential.cs
│ ├── CredentialCreate.cs
│ ├── CredentialList.cs
│ ├── CredentialUpdate.cs
│ ├── EdgeBackendReplace.cs
│ ├── EdgeIpRestrictionReplace.cs
│ ├── EdgeMutualTlsReplace.cs
│ ├── EdgePolicyReplace.cs
│ ├── EdgeRouteBackendReplace.cs
│ ├── EdgeRouteCircuitBreakerReplace.cs
│ ├── EdgeRouteCompressionReplace.cs
│ ├── EdgeRouteIpRestrictionReplace.cs
│ ├── EdgeRouteItem.cs
│ ├── EdgeRouteOAuthReplace.cs
│ ├── EdgeRouteOidcReplace.cs
│ ├── EdgeRoutePolicyReplace.cs
│ ├── EdgeRouteRequestHeadersReplace.cs
│ ├── EdgeRouteResponseHeadersReplace.cs
│ ├── EdgeRouteSamlReplace.cs
│ ├── EdgeRouteTrafficPolicyReplace.cs
│ ├── EdgeRouteUserAgentFilterReplace.cs
│ ├── EdgeRouteWebhookVerificationReplace.cs
│ ├── EdgeRouteWebsocketTcpConverterReplace.cs
│ ├── EdgeTlsTerminationAtEdgeReplace.cs
│ ├── EdgeTlsTerminationReplace.cs
│ ├── EdgeTrafficPolicyReplace.cs
│ ├── Empty.cs
│ ├── Endpoint.cs
│ ├── EndpointAction.cs
│ ├── EndpointBackend.cs
│ ├── EndpointBackendMutate.cs
│ ├── EndpointCircuitBreaker.cs
│ ├── EndpointCompression.cs
│ ├── EndpointCreate.cs
│ ├── EndpointIpPolicy.cs
│ ├── EndpointIpPolicyMutate.cs
│ ├── EndpointList.cs
│ ├── EndpointMutualTls.cs
│ ├── EndpointMutualTlsMutate.cs
│ ├── EndpointOAuth.cs
│ ├── EndpointOAuthAmazon.cs
│ ├── EndpointOAuthFacebook.cs
│ ├── EndpointOAuthGitHub.cs
│ ├── EndpointOAuthGitLab.cs
│ ├── EndpointOAuthGoogle.cs
│ ├── EndpointOAuthLinkedIn.cs
│ ├── EndpointOAuthMicrosoft.cs
│ ├── EndpointOAuthProvider.cs
│ ├── EndpointOAuthTwitch.cs
│ ├── EndpointOidc.cs
│ ├── EndpointPolicy.cs
│ ├── EndpointRequestHeaders.cs
│ ├── EndpointResponseHeaders.cs
│ ├── EndpointRule.cs
│ ├── EndpointSaml.cs
│ ├── EndpointSamlMutate.cs
│ ├── EndpointTlsTermination.cs
│ ├── EndpointTlsTerminationAtEdge.cs
│ ├── EndpointTrafficPolicy.cs
│ ├── EndpointUpdate.cs
│ ├── EndpointUserAgentFilter.cs
│ ├── EndpointWebhookValidation.cs
│ ├── EndpointWebsocketTcpConverter.cs
│ ├── Error.cs
│ ├── EventDestination.cs
│ ├── EventDestinationCreate.cs
│ ├── EventDestinationList.cs
│ ├── EventDestinationUpdate.cs
│ ├── EventSource.cs
│ ├── EventSourceCreate.cs
│ ├── EventSourceItem.cs
│ ├── EventSourceList.cs
│ ├── EventSourcePaging.cs
│ ├── EventSourceReplace.cs
│ ├── EventSourceUpdate.cs
│ ├── EventSubscription.cs
│ ├── EventSubscriptionCreate.cs
│ ├── EventSubscriptionList.cs
│ ├── EventSubscriptionUpdate.cs
│ ├── EventTarget.cs
│ ├── EventTargetAzureLogsIngestion.cs
│ ├── EventTargetCloudwatchLogs.cs
│ ├── EventTargetDatadog.cs
│ ├── EventTargetFirehose.cs
│ ├── EventTargetKinesis.cs
│ ├── FailoverBackend.cs
│ ├── FailoverBackendCreate.cs
│ ├── FailoverBackendList.cs
│ ├── FailoverBackendUpdate.cs
│ ├── HttpResponseBackend.cs
│ ├── HttpResponseBackendCreate.cs
│ ├── HttpResponseBackendList.cs
│ ├── HttpResponseBackendUpdate.cs
│ ├── HttpsEdge.cs
│ ├── HttpsEdgeCreate.cs
│ ├── HttpsEdgeList.cs
│ ├── HttpsEdgeRoute.cs
│ ├── HttpsEdgeRouteCreate.cs
│ ├── HttpsEdgeRouteUpdate.cs
│ ├── HttpsEdgeUpdate.cs
│ ├── IdentityProvider.cs
│ ├── IpPolicy.cs
│ ├── IpPolicyCreate.cs
│ ├── IpPolicyList.cs
│ ├── IpPolicyRule.cs
│ ├── IpPolicyRuleCreate.cs
│ ├── IpPolicyRuleList.cs
│ ├── IpPolicyRuleUpdate.cs
│ ├── IpPolicyUpdate.cs
│ ├── IpRestriction.cs
│ ├── IpRestrictionCreate.cs
│ ├── IpRestrictionList.cs
│ ├── IpRestrictionUpdate.cs
│ ├── Item.cs
│ ├── Location.cs
│ ├── Paging.cs
│ ├── Ref.cs
│ ├── ReservedAddr.cs
│ ├── ReservedAddrCreate.cs
│ ├── ReservedAddrList.cs
│ ├── ReservedAddrUpdate.cs
│ ├── ReservedDomain.cs
│ ├── ReservedDomainCertJob.cs
│ ├── ReservedDomainCertPolicy.cs
│ ├── ReservedDomainCertStatus.cs
│ ├── ReservedDomainCreate.cs
│ ├── ReservedDomainList.cs
│ ├── ReservedDomainUpdate.cs
│ ├── SshCertificateAuthority.cs
│ ├── SshCertificateAuthorityCreate.cs
│ ├── SshCertificateAuthorityList.cs
│ ├── SshCertificateAuthorityUpdate.cs
│ ├── SshCredential.cs
│ ├── SshCredentialCreate.cs
│ ├── SshCredentialList.cs
│ ├── SshCredentialUpdate.cs
│ ├── SshHostCertificate.cs
│ ├── SshHostCertificateCreate.cs
│ ├── SshHostCertificateList.cs
│ ├── SshHostCertificateUpdate.cs
│ ├── SshUserCertificate.cs
│ ├── SshUserCertificateCreate.cs
│ ├── SshUserCertificateList.cs
│ ├── SshUserCertificateUpdate.cs
│ ├── StaticBackend.cs
│ ├── StaticBackendCreate.cs
│ ├── StaticBackendList.cs
│ ├── StaticBackendTls.cs
│ ├── StaticBackendUpdate.cs
│ ├── TcpEdge.cs
│ ├── TcpEdgeCreate.cs
│ ├── TcpEdgeList.cs
│ ├── TcpEdgeUpdate.cs
│ ├── TlsCertificate.cs
│ ├── TlsCertificateCreate.cs
│ ├── TlsCertificateList.cs
│ ├── TlsCertificateSaNs.cs
│ ├── TlsCertificateUpdate.cs
│ ├── TlsEdge.cs
│ ├── TlsEdgeCreate.cs
│ ├── TlsEdgeList.cs
│ ├── TlsEdgeUpdate.cs
│ ├── Tunnel.cs
│ ├── TunnelGroupBackend.cs
│ ├── TunnelGroupBackendCreate.cs
│ ├── TunnelGroupBackendList.cs
│ ├── TunnelGroupBackendUpdate.cs
│ ├── TunnelList.cs
│ ├── TunnelSession.cs
│ ├── TunnelSessionList.cs
│ ├── TunnelSessionsUpdate.cs
│ ├── UserAgent.cs
│ ├── WeightedBackend.cs
│ ├── WeightedBackendCreate.cs
│ ├── WeightedBackendList.cs
│ └── WeightedBackendUpdate.cs
├── Error.cs
├── IApiHttpClient.cs
├── InternalsVisibleToTests.cs
├── Iterator.cs
├── Ngrok.cs
├── NgrokApi.csproj
└── Services
│ ├── AbuseReports.cs
│ ├── AgentIngresses.cs
│ ├── ApiKeys.cs
│ ├── ApplicationSessions.cs
│ ├── ApplicationUsers.cs
│ ├── BotUsers.cs
│ ├── CertificateAuthorities.cs
│ ├── Credentials.cs
│ ├── EdgeRouteBackendModule.cs
│ ├── EdgeRouteCircuitBreakerModule.cs
│ ├── EdgeRouteCompressionModule.cs
│ ├── EdgeRouteIpRestrictionModule.cs
│ ├── EdgeRouteOAuthModule.cs
│ ├── EdgeRouteOidcModule.cs
│ ├── EdgeRoutePolicyModule.cs
│ ├── EdgeRouteRequestHeadersModule.cs
│ ├── EdgeRouteResponseHeadersModule.cs
│ ├── EdgeRouteSamlModule.cs
│ ├── EdgeRouteTrafficPolicyModule.cs
│ ├── EdgeRouteUserAgentFilterModule.cs
│ ├── EdgeRouteWebhookVerificationModule.cs
│ ├── EdgeRouteWebsocketTcpConverterModule.cs
│ ├── EdgesHttps.cs
│ ├── EdgesHttpsRoutes.cs
│ ├── EdgesTcp.cs
│ ├── EdgesTls.cs
│ ├── Endpoints.cs
│ ├── EventDestinations.cs
│ ├── EventSources.cs
│ ├── EventSubscriptions.cs
│ ├── FailoverBackends.cs
│ ├── HttpResponseBackends.cs
│ ├── HttpsEdgeMutualTlsModule.cs
│ ├── HttpsEdgeTlsTerminationModule.cs
│ ├── IpPolicies.cs
│ ├── IpPolicyRules.cs
│ ├── IpRestrictions.cs
│ ├── ReservedAddrs.cs
│ ├── ReservedDomains.cs
│ ├── SshCertificateAuthorities.cs
│ ├── SshCredentials.cs
│ ├── SshHostCertificates.cs
│ ├── SshUserCertificates.cs
│ ├── StaticBackends.cs
│ ├── TcpEdgeBackendModule.cs
│ ├── TcpEdgeIpRestrictionModule.cs
│ ├── TcpEdgePolicyModule.cs
│ ├── TcpEdgeTrafficPolicyModule.cs
│ ├── TlsCertificates.cs
│ ├── TlsEdgeBackendModule.cs
│ ├── TlsEdgeIpRestrictionModule.cs
│ ├── TlsEdgeMutualTlsModule.cs
│ ├── TlsEdgePolicyModule.cs
│ ├── TlsEdgeTlsTerminationModule.cs
│ ├── TlsEdgeTrafficPolicyModule.cs
│ ├── TunnelGroupBackends.cs
│ ├── TunnelSessions.cs
│ ├── Tunnels.cs
│ └── WeightedBackends.cs
├── NgrokApiTests
├── APIKeysTest.cs
└── NgrokApiTests.csproj
└── README.md
/.config/dotnet-tools.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": 1,
3 | "isRoot": true,
4 | "tools": {
5 | "dotnet-format": {
6 | "version": "5.1.225507",
7 | "commands": [
8 | "dotnet-format"
9 | ]
10 | }
11 | }
12 | }
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Code generated for API Clients. DO NOT EDIT.
2 |
3 | obj
4 | bin
5 |
--------------------------------------------------------------------------------
/CHANGELOG.md:
--------------------------------------------------------------------------------
1 |
2 | ## 0.14.0
3 | * Renamed `upstream_proto` to `upstream_protocol` for `endpoint` resources
4 | * Added support for `pooling_enabled` on Endpoints
5 |
6 | ## 0.13.0
7 | * Added support for Cloud Endpoints (currently in private beta).
8 |
9 | ## 0.12.0
10 | * Renamed `principal_id` to `principal` for `endpoint` resources
11 |
12 | ## 0.11.0
13 | * Renamed the Policy Module to the Traffic Policy Module on HTTP Edge Routes, TCP Edges, and TLS Edges, which allows you to configure rules that can be used to influence and control traffic to and from your upstream service. The Traffic Policy itself is now specified as either a JSON or YAML string.
14 |
15 | ## 0.10.0
16 |
17 | ENHANCEMENTS:
18 |
19 | * Added support for the Bot User API. The Bot User API allows you to manage the bots that are registered to your ngrok account. You can automate the creation, management, and deletion of bot users in your account.
20 |
21 | * Added support for the Policy Module on HTTP Edge Routes, TCP Edges, and TLS Edges, which allows you to configure rules that can be used to influence and control traffic to and from your upstream service.
22 |
23 | ## 0.9.0
24 |
25 | ENHANCEMENTS:
26 |
27 | * Added `owner_id` field to the `api_key`, `credential`, and `ssh_credential` resources. If supplied at credential creation, ownership will be assigned to the specified User or Bot. Only admins may specify an owner other than themselves. Defaults to the authenticated User or Bot.
28 | * Added `failover_backend`, `http_response_backend`, and `tunnel_group_backend` resources. A Failover backend defines failover behavior within a list of referenced backends. Traffic is sent to the first backend in the list. If that backend is offline or no connection can be established, ngrok attempts to connect to the next backend in the list until one is successful.
29 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright 2021 ngrok, Inc.
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
8 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/AbuseReportCreate.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class AbuseReportCreate
12 | {
13 | //
14 | // a list of URLs containing suspected abusive content
15 | //
16 | [JsonProperty("urls")]
17 | public List Urls { get; set; }
18 | //
19 | // arbitrary user-defined data about this abuse report. Optional, max 4096 bytes.
20 | //
21 | [JsonProperty("metadata")]
22 | public string Metadata { get; set; }
23 |
24 | public override string ToString()
25 | {
26 | return $"AbuseReportCreate Urls={ Urls } Metadata={ Metadata } ";
27 | }
28 |
29 | public override int GetHashCode()
30 | {
31 | unchecked
32 | {
33 | int hash = 17;
34 | hash = hash * 23 + (Urls?.GetHashCode() ?? 0);
35 |
36 | hash = hash * 23 + (Metadata?.GetHashCode() ?? 0);
37 |
38 | return hash;
39 | }
40 | }
41 |
42 |
43 | public override bool Equals(object obj)
44 | {
45 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
46 | {
47 | return false;
48 | }
49 | var other = (AbuseReportCreate)obj;
50 | return (
51 | this.Urls == other.Urls
52 | && this.Metadata == other.Metadata
53 | );
54 | }
55 |
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/AbuseReportHostname.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class AbuseReportHostname
12 | {
13 | //
14 | // the hostname ngrok has parsed out of one of the reported URLs in this abuse
15 | // report
16 | //
17 | [JsonProperty("hostname")]
18 | public string Hostname { get; set; }
19 | //
20 | // indicates what action ngrok has taken against the hostname. one of
21 | // PENDING, BANNED, UNBANNED, or IGNORE
22 | //
23 | [JsonProperty("status")]
24 | public string Status { get; set; }
25 |
26 | public override string ToString()
27 | {
28 | return $"AbuseReportHostname Hostname={ Hostname } Status={ Status } ";
29 | }
30 |
31 | public override int GetHashCode()
32 | {
33 | unchecked
34 | {
35 | int hash = 17;
36 | hash = hash * 23 + (Hostname?.GetHashCode() ?? 0);
37 |
38 | hash = hash * 23 + (Status?.GetHashCode() ?? 0);
39 |
40 | return hash;
41 | }
42 | }
43 |
44 |
45 | public override bool Equals(object obj)
46 | {
47 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
48 | {
49 | return false;
50 | }
51 | var other = (AbuseReportHostname)obj;
52 | return (
53 | this.Hostname == other.Hostname
54 | && this.Status == other.Status
55 | );
56 | }
57 |
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/AgentIngressCertPolicy.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class AgentIngressCertPolicy
12 | {
13 | //
14 | // certificate authority to request certificates from. The only supported value is
15 | // letsencrypt.
16 | //
17 | [JsonProperty("authority")]
18 | public string Authority { get; set; }
19 | //
20 | // type of private key to use when requesting certificates. Defaults to rsa, can be
21 | // either rsa or ecdsa.
22 | //
23 | [JsonProperty("private_key_type")]
24 | public string PrivateKeyType { get; set; }
25 |
26 | public override string ToString()
27 | {
28 | return $"AgentIngressCertPolicy Authority={ Authority } PrivateKeyType={ PrivateKeyType } ";
29 | }
30 |
31 | public override int GetHashCode()
32 | {
33 | unchecked
34 | {
35 | int hash = 17;
36 | hash = hash * 23 + (Authority?.GetHashCode() ?? 0);
37 |
38 | hash = hash * 23 + (PrivateKeyType?.GetHashCode() ?? 0);
39 |
40 | return hash;
41 | }
42 | }
43 |
44 |
45 | public override bool Equals(object obj)
46 | {
47 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
48 | {
49 | return false;
50 | }
51 | var other = (AgentIngressCertPolicy)obj;
52 | return (
53 | this.Authority == other.Authority
54 | && this.PrivateKeyType == other.PrivateKeyType
55 | );
56 | }
57 |
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/AgentIngressCertStatus.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class AgentIngressCertStatus
12 | {
13 | //
14 | // timestamp when the next renewal will be requested, RFC 3339 format
15 | //
16 | [JsonProperty("renews_at")]
17 | public string RenewsAt { get; set; }
18 | //
19 | // status of the certificate provisioning job, or null if the certificiate isn't
20 | // being provisioned or renewed
21 | //
22 | [JsonProperty("provisioning_job")]
23 | public AgentIngressCertJob ProvisioningJob { get; set; }
24 |
25 | public override string ToString()
26 | {
27 | return $"AgentIngressCertStatus RenewsAt={ RenewsAt } ProvisioningJob={ ProvisioningJob } ";
28 | }
29 |
30 | public override int GetHashCode()
31 | {
32 | unchecked
33 | {
34 | int hash = 17;
35 | hash = hash * 23 + (RenewsAt?.GetHashCode() ?? 0);
36 |
37 | hash = hash * 23 + (ProvisioningJob?.GetHashCode() ?? 0);
38 |
39 | return hash;
40 | }
41 | }
42 |
43 |
44 | public override bool Equals(object obj)
45 | {
46 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
47 | {
48 | return false;
49 | }
50 | var other = (AgentIngressCertStatus)obj;
51 | return (
52 | this.RenewsAt == other.RenewsAt
53 | && this.ProvisioningJob == other.ProvisioningJob
54 | );
55 | }
56 |
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/AgentIngressList.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class AgentIngressList
12 | {
13 | //
14 | // the list of Agent Ingresses owned by this account
15 | //
16 | [JsonProperty("ingresses")]
17 | public List Ingresses { get; set; }
18 | //
19 | // URI of the Agent Ingress list API resource
20 | //
21 | [JsonProperty("uri")]
22 | public Uri Uri { get; set; }
23 | //
24 | // URI of the next page, or null if there is no next page
25 | //
26 | [JsonProperty("next_page_uri")]
27 | public Uri NextPageUri { get; set; }
28 |
29 | public override string ToString()
30 | {
31 | return $"AgentIngressList Ingresses={ Ingresses } Uri={ Uri } NextPageUri={ NextPageUri } ";
32 | }
33 |
34 | public override int GetHashCode()
35 | {
36 | unchecked
37 | {
38 | int hash = 17;
39 | hash = hash * 23 + (Ingresses?.GetHashCode() ?? 0);
40 |
41 | hash = hash * 23 + (Uri?.GetHashCode() ?? 0);
42 |
43 | hash = hash * 23 + (NextPageUri?.GetHashCode() ?? 0);
44 |
45 | return hash;
46 | }
47 | }
48 |
49 |
50 | public override bool Equals(object obj)
51 | {
52 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
53 | {
54 | return false;
55 | }
56 | var other = (AgentIngressList)obj;
57 | return (
58 | this.Ingresses == other.Ingresses
59 | && this.Uri == other.Uri
60 | && this.NextPageUri == other.NextPageUri
61 | );
62 | }
63 |
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/ApiKeyList.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class ApiKeyList
12 | {
13 | //
14 | // the list of API keys for this account
15 | //
16 | [JsonProperty("keys")]
17 | public List Keys { get; set; }
18 | //
19 | // URI of the API keys list API resource
20 | //
21 | [JsonProperty("uri")]
22 | public Uri Uri { get; set; }
23 | //
24 | // URI of the next page, or null if there is no next page
25 | //
26 | [JsonProperty("next_page_uri")]
27 | public Uri NextPageUri { get; set; }
28 |
29 | public override string ToString()
30 | {
31 | return $"ApiKeyList Keys={ Keys } Uri={ Uri } NextPageUri={ NextPageUri } ";
32 | }
33 |
34 | public override int GetHashCode()
35 | {
36 | unchecked
37 | {
38 | int hash = 17;
39 | hash = hash * 23 + (Keys?.GetHashCode() ?? 0);
40 |
41 | hash = hash * 23 + (Uri?.GetHashCode() ?? 0);
42 |
43 | hash = hash * 23 + (NextPageUri?.GetHashCode() ?? 0);
44 |
45 | return hash;
46 | }
47 | }
48 |
49 |
50 | public override bool Equals(object obj)
51 | {
52 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
53 | {
54 | return false;
55 | }
56 | var other = (ApiKeyList)obj;
57 | return (
58 | this.Keys == other.Keys
59 | && this.Uri == other.Uri
60 | && this.NextPageUri == other.NextPageUri
61 | );
62 | }
63 |
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/ApiKeyUpdate.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class ApiKeyUpdate : HasId
12 | {
13 | [JsonProperty("id")]
14 | public string Id { get; set; }
15 | //
16 | // human-readable description of what uses the API key to authenticate. optional,
17 | // max 255 bytes.
18 | //
19 | [JsonProperty("description")]
20 | public string Description { get; set; }
21 | //
22 | // arbitrary user-defined data of this API key. optional, max 4096 bytes
23 | //
24 | [JsonProperty("metadata")]
25 | public string Metadata { get; set; }
26 |
27 | public override string ToString()
28 | {
29 | return $"ApiKeyUpdate Id={ Id } Description={ Description } Metadata={ Metadata } ";
30 | }
31 |
32 | public override int GetHashCode()
33 | {
34 | unchecked
35 | {
36 | int hash = 17;
37 | hash = hash * 23 + (Id?.GetHashCode() ?? 0);
38 |
39 | hash = hash * 23 + (Description?.GetHashCode() ?? 0);
40 |
41 | hash = hash * 23 + (Metadata?.GetHashCode() ?? 0);
42 |
43 | return hash;
44 | }
45 | }
46 |
47 |
48 | public override bool Equals(object obj)
49 | {
50 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
51 | {
52 | return false;
53 | }
54 | var other = (ApiKeyUpdate)obj;
55 | return (
56 | this.Id == other.Id
57 | && this.Description == other.Description
58 | && this.Metadata == other.Metadata
59 | );
60 | }
61 |
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/ApplicationSessionList.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class ApplicationSessionList
12 | {
13 | //
14 | // list of all application sessions on this account
15 | //
16 | [JsonProperty("application_sessions")]
17 | public List ApplicationSessions { get; set; }
18 | //
19 | // URI of the application session list API resource
20 | //
21 | [JsonProperty("uri")]
22 | public Uri Uri { get; set; }
23 | //
24 | // URI of the next page, or null if there is no next page
25 | //
26 | [JsonProperty("next_page_uri")]
27 | public Uri NextPageUri { get; set; }
28 |
29 | public override string ToString()
30 | {
31 | return $"ApplicationSessionList ApplicationSessions={ ApplicationSessions } Uri={ Uri } NextPageUri={ NextPageUri } ";
32 | }
33 |
34 | public override int GetHashCode()
35 | {
36 | unchecked
37 | {
38 | int hash = 17;
39 | hash = hash * 23 + (ApplicationSessions?.GetHashCode() ?? 0);
40 |
41 | hash = hash * 23 + (Uri?.GetHashCode() ?? 0);
42 |
43 | hash = hash * 23 + (NextPageUri?.GetHashCode() ?? 0);
44 |
45 | return hash;
46 | }
47 | }
48 |
49 |
50 | public override bool Equals(object obj)
51 | {
52 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
53 | {
54 | return false;
55 | }
56 | var other = (ApplicationSessionList)obj;
57 | return (
58 | this.ApplicationSessions == other.ApplicationSessions
59 | && this.Uri == other.Uri
60 | && this.NextPageUri == other.NextPageUri
61 | );
62 | }
63 |
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/ApplicationUserList.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class ApplicationUserList
12 | {
13 | //
14 | // list of all application users on this account
15 | //
16 | [JsonProperty("application_users")]
17 | public List ApplicationUsers { get; set; }
18 | //
19 | // URI of the application user list API resource
20 | //
21 | [JsonProperty("uri")]
22 | public Uri Uri { get; set; }
23 | //
24 | // URI of the next page, or null if there is no next page
25 | //
26 | [JsonProperty("next_page_uri")]
27 | public Uri NextPageUri { get; set; }
28 |
29 | public override string ToString()
30 | {
31 | return $"ApplicationUserList ApplicationUsers={ ApplicationUsers } Uri={ Uri } NextPageUri={ NextPageUri } ";
32 | }
33 |
34 | public override int GetHashCode()
35 | {
36 | unchecked
37 | {
38 | int hash = 17;
39 | hash = hash * 23 + (ApplicationUsers?.GetHashCode() ?? 0);
40 |
41 | hash = hash * 23 + (Uri?.GetHashCode() ?? 0);
42 |
43 | hash = hash * 23 + (NextPageUri?.GetHashCode() ?? 0);
44 |
45 | return hash;
46 | }
47 | }
48 |
49 |
50 | public override bool Equals(object obj)
51 | {
52 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
53 | {
54 | return false;
55 | }
56 | var other = (ApplicationUserList)obj;
57 | return (
58 | this.ApplicationUsers == other.ApplicationUsers
59 | && this.Uri == other.Uri
60 | && this.NextPageUri == other.NextPageUri
61 | );
62 | }
63 |
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/AwsAuth.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class AwsAuth
12 | {
13 | //
14 | // A role for ngrok to assume on your behalf to deposit events into your AWS
15 | // account.
16 | //
17 | [JsonProperty("role")]
18 | public AwsRole Role { get; set; }
19 | //
20 | // Credentials to your AWS account if you prefer ngrok to sign in with long-term
21 | // access keys.
22 | //
23 | [JsonProperty("creds")]
24 | public AwsCredentials Creds { get; set; }
25 |
26 | public override string ToString()
27 | {
28 | return $"AwsAuth Role={ Role } Creds={ Creds } ";
29 | }
30 |
31 | public override int GetHashCode()
32 | {
33 | unchecked
34 | {
35 | int hash = 17;
36 | hash = hash * 23 + (Role?.GetHashCode() ?? 0);
37 |
38 | hash = hash * 23 + (Creds?.GetHashCode() ?? 0);
39 |
40 | return hash;
41 | }
42 | }
43 |
44 |
45 | public override bool Equals(object obj)
46 | {
47 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
48 | {
49 | return false;
50 | }
51 | var other = (AwsAuth)obj;
52 | return (
53 | this.Role == other.Role
54 | && this.Creds == other.Creds
55 | );
56 | }
57 |
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/AwsCredentials.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class AwsCredentials
12 | {
13 | //
14 | // The ID portion of an AWS access key.
15 | //
16 | [JsonProperty("aws_access_key_id")]
17 | public string AwsAccessKeyId { get; set; }
18 | //
19 | // The secret portion of an AWS access key.
20 | //
21 | [JsonProperty("aws_secret_access_key")]
22 | public string AwsSecretAccessKey { get; set; }
23 |
24 | public override string ToString()
25 | {
26 | return $"AwsCredentials AwsAccessKeyId={ AwsAccessKeyId } AwsSecretAccessKey={ AwsSecretAccessKey } ";
27 | }
28 |
29 | public override int GetHashCode()
30 | {
31 | unchecked
32 | {
33 | int hash = 17;
34 | hash = hash * 23 + (AwsAccessKeyId?.GetHashCode() ?? 0);
35 |
36 | hash = hash * 23 + (AwsSecretAccessKey?.GetHashCode() ?? 0);
37 |
38 | return hash;
39 | }
40 | }
41 |
42 |
43 | public override bool Equals(object obj)
44 | {
45 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
46 | {
47 | return false;
48 | }
49 | var other = (AwsCredentials)obj;
50 | return (
51 | this.AwsAccessKeyId == other.AwsAccessKeyId
52 | && this.AwsSecretAccessKey == other.AwsSecretAccessKey
53 | );
54 | }
55 |
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/AwsRole.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class AwsRole
12 | {
13 | //
14 | // An ARN that specifies the role that ngrok should use to deliver to the
15 | // configured target.
16 | //
17 | [JsonProperty("role_arn")]
18 | public string RoleArn { get; set; }
19 |
20 | public override string ToString()
21 | {
22 | return $"AwsRole RoleArn={ RoleArn } ";
23 | }
24 |
25 | public override int GetHashCode()
26 | {
27 | unchecked
28 | {
29 | int hash = 17;
30 | hash = hash * 23 + (RoleArn?.GetHashCode() ?? 0);
31 |
32 | return hash;
33 | }
34 | }
35 |
36 |
37 | public override bool Equals(object obj)
38 | {
39 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
40 | {
41 | return false;
42 | }
43 | var other = (AwsRole)obj;
44 | return (
45 | this.RoleArn == other.RoleArn
46 | );
47 | }
48 |
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/BotUserCreate.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class BotUserCreate
12 | {
13 | //
14 | // human-readable name used to identify the bot
15 | //
16 | [JsonProperty("name")]
17 | public string Name { get; set; }
18 | //
19 | // whether or not the bot is active
20 | //
21 | [JsonProperty("active")]
22 | public bool? Active { get; set; }
23 |
24 | public override string ToString()
25 | {
26 | return $"BotUserCreate Name={ Name } Active={ Active } ";
27 | }
28 |
29 | public override int GetHashCode()
30 | {
31 | unchecked
32 | {
33 | int hash = 17;
34 | hash = hash * 23 + (Name?.GetHashCode() ?? 0);
35 |
36 | hash = hash * 23 + Convert.ToInt32(Active);
37 | return hash;
38 | }
39 | }
40 |
41 |
42 | public override bool Equals(object obj)
43 | {
44 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
45 | {
46 | return false;
47 | }
48 | var other = (BotUserCreate)obj;
49 | return (
50 | this.Name == other.Name
51 | && this.Active == other.Active
52 | );
53 | }
54 |
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/BotUserList.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class BotUserList
12 | {
13 | //
14 | // the list of all bot users on this account
15 | //
16 | [JsonProperty("bot_users")]
17 | public List BotUsers { get; set; }
18 | //
19 | // URI of the bot users list API resource
20 | //
21 | [JsonProperty("uri")]
22 | public Uri Uri { get; set; }
23 | //
24 | // URI of the next page, or null if there is no next page
25 | //
26 | [JsonProperty("next_page_uri")]
27 | public Uri NextPageUri { get; set; }
28 |
29 | public override string ToString()
30 | {
31 | return $"BotUserList BotUsers={ BotUsers } Uri={ Uri } NextPageUri={ NextPageUri } ";
32 | }
33 |
34 | public override int GetHashCode()
35 | {
36 | unchecked
37 | {
38 | int hash = 17;
39 | hash = hash * 23 + (BotUsers?.GetHashCode() ?? 0);
40 |
41 | hash = hash * 23 + (Uri?.GetHashCode() ?? 0);
42 |
43 | hash = hash * 23 + (NextPageUri?.GetHashCode() ?? 0);
44 |
45 | return hash;
46 | }
47 | }
48 |
49 |
50 | public override bool Equals(object obj)
51 | {
52 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
53 | {
54 | return false;
55 | }
56 | var other = (BotUserList)obj;
57 | return (
58 | this.BotUsers == other.BotUsers
59 | && this.Uri == other.Uri
60 | && this.NextPageUri == other.NextPageUri
61 | );
62 | }
63 |
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/BotUserUpdate.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class BotUserUpdate : HasId
12 | {
13 | [JsonProperty("id")]
14 | public string Id { get; set; }
15 | //
16 | // human-readable name used to identify the bot
17 | //
18 | [JsonProperty("name")]
19 | public string Name { get; set; }
20 | //
21 | // whether or not the bot is active
22 | //
23 | [JsonProperty("active")]
24 | public bool? Active { get; set; }
25 |
26 | public override string ToString()
27 | {
28 | return $"BotUserUpdate Id={ Id } Name={ Name } Active={ Active } ";
29 | }
30 |
31 | public override int GetHashCode()
32 | {
33 | unchecked
34 | {
35 | int hash = 17;
36 | hash = hash * 23 + (Id?.GetHashCode() ?? 0);
37 |
38 | hash = hash * 23 + (Name?.GetHashCode() ?? 0);
39 |
40 | hash = hash * 23 + Convert.ToInt32(Active);
41 | return hash;
42 | }
43 | }
44 |
45 |
46 | public override bool Equals(object obj)
47 | {
48 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
49 | {
50 | return false;
51 | }
52 | var other = (BotUserUpdate)obj;
53 | return (
54 | this.Id == other.Id
55 | && this.Name == other.Name
56 | && this.Active == other.Active
57 | );
58 | }
59 |
60 | }
61 | }
62 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/BrowserSession.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class BrowserSession
12 | {
13 | //
14 | // HTTP User-Agent data
15 | //
16 | [JsonProperty("user_agent")]
17 | public UserAgent UserAgent { get; set; }
18 | //
19 | // IP address
20 | //
21 | [JsonProperty("ip_address")]
22 | public string IpAddress { get; set; }
23 | //
24 | // IP geolocation data
25 | //
26 | [JsonProperty("location")]
27 | public Location Location { get; set; }
28 |
29 | public override string ToString()
30 | {
31 | return $"BrowserSession UserAgent={ UserAgent } IpAddress={ IpAddress } Location={ Location } ";
32 | }
33 |
34 | public override int GetHashCode()
35 | {
36 | unchecked
37 | {
38 | int hash = 17;
39 | hash = hash * 23 + (UserAgent?.GetHashCode() ?? 0);
40 |
41 | hash = hash * 23 + (IpAddress?.GetHashCode() ?? 0);
42 |
43 | hash = hash * 23 + (Location?.GetHashCode() ?? 0);
44 |
45 | return hash;
46 | }
47 | }
48 |
49 |
50 | public override bool Equals(object obj)
51 | {
52 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
53 | {
54 | return false;
55 | }
56 | var other = (BrowserSession)obj;
57 | return (
58 | this.UserAgent == other.UserAgent
59 | && this.IpAddress == other.IpAddress
60 | && this.Location == other.Location
61 | );
62 | }
63 |
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/CertificateAuthorityUpdate.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class CertificateAuthorityUpdate : HasId
12 | {
13 | [JsonProperty("id")]
14 | public string Id { get; set; }
15 | //
16 | // human-readable description of this Certificate Authority. optional, max 255
17 | // bytes.
18 | //
19 | [JsonProperty("description")]
20 | public string Description { get; set; }
21 | //
22 | // arbitrary user-defined machine-readable data of this Certificate Authority.
23 | // optional, max 4096 bytes.
24 | //
25 | [JsonProperty("metadata")]
26 | public string Metadata { get; set; }
27 |
28 | public override string ToString()
29 | {
30 | return $"CertificateAuthorityUpdate Id={ Id } Description={ Description } Metadata={ Metadata } ";
31 | }
32 |
33 | public override int GetHashCode()
34 | {
35 | unchecked
36 | {
37 | int hash = 17;
38 | hash = hash * 23 + (Id?.GetHashCode() ?? 0);
39 |
40 | hash = hash * 23 + (Description?.GetHashCode() ?? 0);
41 |
42 | hash = hash * 23 + (Metadata?.GetHashCode() ?? 0);
43 |
44 | return hash;
45 | }
46 | }
47 |
48 |
49 | public override bool Equals(object obj)
50 | {
51 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
52 | {
53 | return false;
54 | }
55 | var other = (CertificateAuthorityUpdate)obj;
56 | return (
57 | this.Id == other.Id
58 | && this.Description == other.Description
59 | && this.Metadata == other.Metadata
60 | );
61 | }
62 |
63 | }
64 | }
65 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/CredentialList.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class CredentialList
12 | {
13 | //
14 | // the list of all tunnel credentials on this account
15 | //
16 | [JsonProperty("credentials")]
17 | public List Credentials { get; set; }
18 | //
19 | // URI of the tunnel credential list API resource
20 | //
21 | [JsonProperty("uri")]
22 | public Uri Uri { get; set; }
23 | //
24 | // URI of the next page, or null if there is no next page
25 | //
26 | [JsonProperty("next_page_uri")]
27 | public Uri NextPageUri { get; set; }
28 |
29 | public override string ToString()
30 | {
31 | return $"CredentialList Credentials={ Credentials } Uri={ Uri } NextPageUri={ NextPageUri } ";
32 | }
33 |
34 | public override int GetHashCode()
35 | {
36 | unchecked
37 | {
38 | int hash = 17;
39 | hash = hash * 23 + (Credentials?.GetHashCode() ?? 0);
40 |
41 | hash = hash * 23 + (Uri?.GetHashCode() ?? 0);
42 |
43 | hash = hash * 23 + (NextPageUri?.GetHashCode() ?? 0);
44 |
45 | return hash;
46 | }
47 | }
48 |
49 |
50 | public override bool Equals(object obj)
51 | {
52 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
53 | {
54 | return false;
55 | }
56 | var other = (CredentialList)obj;
57 | return (
58 | this.Credentials == other.Credentials
59 | && this.Uri == other.Uri
60 | && this.NextPageUri == other.NextPageUri
61 | );
62 | }
63 |
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EdgeBackendReplace.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class EdgeBackendReplace : HasId
12 | {
13 | [JsonProperty("id")]
14 | public string Id { get; set; }
15 | [JsonProperty("module")]
16 | public EndpointBackendMutate Module { get; set; }
17 |
18 | public override string ToString()
19 | {
20 | return $"EdgeBackendReplace Id={ Id } Module={ Module } ";
21 | }
22 |
23 | public override int GetHashCode()
24 | {
25 | unchecked
26 | {
27 | int hash = 17;
28 | hash = hash * 23 + (Id?.GetHashCode() ?? 0);
29 |
30 | hash = hash * 23 + (Module?.GetHashCode() ?? 0);
31 |
32 | return hash;
33 | }
34 | }
35 |
36 |
37 | public override bool Equals(object obj)
38 | {
39 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
40 | {
41 | return false;
42 | }
43 | var other = (EdgeBackendReplace)obj;
44 | return (
45 | this.Id == other.Id
46 | && this.Module == other.Module
47 | );
48 | }
49 |
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EdgeIpRestrictionReplace.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class EdgeIpRestrictionReplace : HasId
12 | {
13 | [JsonProperty("id")]
14 | public string Id { get; set; }
15 | [JsonProperty("module")]
16 | public EndpointIpPolicyMutate Module { get; set; }
17 |
18 | public override string ToString()
19 | {
20 | return $"EdgeIpRestrictionReplace Id={ Id } Module={ Module } ";
21 | }
22 |
23 | public override int GetHashCode()
24 | {
25 | unchecked
26 | {
27 | int hash = 17;
28 | hash = hash * 23 + (Id?.GetHashCode() ?? 0);
29 |
30 | hash = hash * 23 + (Module?.GetHashCode() ?? 0);
31 |
32 | return hash;
33 | }
34 | }
35 |
36 |
37 | public override bool Equals(object obj)
38 | {
39 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
40 | {
41 | return false;
42 | }
43 | var other = (EdgeIpRestrictionReplace)obj;
44 | return (
45 | this.Id == other.Id
46 | && this.Module == other.Module
47 | );
48 | }
49 |
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EdgeMutualTlsReplace.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class EdgeMutualTlsReplace : HasId
12 | {
13 | [JsonProperty("id")]
14 | public string Id { get; set; }
15 | [JsonProperty("module")]
16 | public EndpointMutualTlsMutate Module { get; set; }
17 |
18 | public override string ToString()
19 | {
20 | return $"EdgeMutualTlsReplace Id={ Id } Module={ Module } ";
21 | }
22 |
23 | public override int GetHashCode()
24 | {
25 | unchecked
26 | {
27 | int hash = 17;
28 | hash = hash * 23 + (Id?.GetHashCode() ?? 0);
29 |
30 | hash = hash * 23 + (Module?.GetHashCode() ?? 0);
31 |
32 | return hash;
33 | }
34 | }
35 |
36 |
37 | public override bool Equals(object obj)
38 | {
39 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
40 | {
41 | return false;
42 | }
43 | var other = (EdgeMutualTlsReplace)obj;
44 | return (
45 | this.Id == other.Id
46 | && this.Module == other.Module
47 | );
48 | }
49 |
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EdgePolicyReplace.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class EdgePolicyReplace : HasId
12 | {
13 | [JsonProperty("id")]
14 | public string Id { get; set; }
15 | [JsonProperty("module")]
16 | public EndpointPolicy Module { get; set; }
17 |
18 | public override string ToString()
19 | {
20 | return $"EdgePolicyReplace Id={ Id } Module={ Module } ";
21 | }
22 |
23 | public override int GetHashCode()
24 | {
25 | unchecked
26 | {
27 | int hash = 17;
28 | hash = hash * 23 + (Id?.GetHashCode() ?? 0);
29 |
30 | hash = hash * 23 + (Module?.GetHashCode() ?? 0);
31 |
32 | return hash;
33 | }
34 | }
35 |
36 |
37 | public override bool Equals(object obj)
38 | {
39 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
40 | {
41 | return false;
42 | }
43 | var other = (EdgePolicyReplace)obj;
44 | return (
45 | this.Id == other.Id
46 | && this.Module == other.Module
47 | );
48 | }
49 |
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EdgeRouteBackendReplace.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class EdgeRouteBackendReplace : HasId
12 | {
13 | [JsonProperty("edge_id")]
14 | public string EdgeId { get; set; }
15 | [JsonProperty("id")]
16 | public string Id { get; set; }
17 | [JsonProperty("module")]
18 | public EndpointBackendMutate Module { get; set; }
19 |
20 | public override string ToString()
21 | {
22 | return $"EdgeRouteBackendReplace EdgeId={ EdgeId } Id={ Id } Module={ Module } ";
23 | }
24 |
25 | public override int GetHashCode()
26 | {
27 | unchecked
28 | {
29 | int hash = 17;
30 | hash = hash * 23 + (EdgeId?.GetHashCode() ?? 0);
31 |
32 | hash = hash * 23 + (Id?.GetHashCode() ?? 0);
33 |
34 | hash = hash * 23 + (Module?.GetHashCode() ?? 0);
35 |
36 | return hash;
37 | }
38 | }
39 |
40 |
41 | public override bool Equals(object obj)
42 | {
43 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
44 | {
45 | return false;
46 | }
47 | var other = (EdgeRouteBackendReplace)obj;
48 | return (
49 | this.EdgeId == other.EdgeId
50 | && this.Id == other.Id
51 | && this.Module == other.Module
52 | );
53 | }
54 |
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EdgeRouteCircuitBreakerReplace.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class EdgeRouteCircuitBreakerReplace : HasId
12 | {
13 | [JsonProperty("edge_id")]
14 | public string EdgeId { get; set; }
15 | [JsonProperty("id")]
16 | public string Id { get; set; }
17 | [JsonProperty("module")]
18 | public EndpointCircuitBreaker Module { get; set; }
19 |
20 | public override string ToString()
21 | {
22 | return $"EdgeRouteCircuitBreakerReplace EdgeId={ EdgeId } Id={ Id } Module={ Module } ";
23 | }
24 |
25 | public override int GetHashCode()
26 | {
27 | unchecked
28 | {
29 | int hash = 17;
30 | hash = hash * 23 + (EdgeId?.GetHashCode() ?? 0);
31 |
32 | hash = hash * 23 + (Id?.GetHashCode() ?? 0);
33 |
34 | hash = hash * 23 + (Module?.GetHashCode() ?? 0);
35 |
36 | return hash;
37 | }
38 | }
39 |
40 |
41 | public override bool Equals(object obj)
42 | {
43 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
44 | {
45 | return false;
46 | }
47 | var other = (EdgeRouteCircuitBreakerReplace)obj;
48 | return (
49 | this.EdgeId == other.EdgeId
50 | && this.Id == other.Id
51 | && this.Module == other.Module
52 | );
53 | }
54 |
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EdgeRouteCompressionReplace.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class EdgeRouteCompressionReplace : HasId
12 | {
13 | [JsonProperty("edge_id")]
14 | public string EdgeId { get; set; }
15 | [JsonProperty("id")]
16 | public string Id { get; set; }
17 | [JsonProperty("module")]
18 | public EndpointCompression Module { get; set; }
19 |
20 | public override string ToString()
21 | {
22 | return $"EdgeRouteCompressionReplace EdgeId={ EdgeId } Id={ Id } Module={ Module } ";
23 | }
24 |
25 | public override int GetHashCode()
26 | {
27 | unchecked
28 | {
29 | int hash = 17;
30 | hash = hash * 23 + (EdgeId?.GetHashCode() ?? 0);
31 |
32 | hash = hash * 23 + (Id?.GetHashCode() ?? 0);
33 |
34 | hash = hash * 23 + (Module?.GetHashCode() ?? 0);
35 |
36 | return hash;
37 | }
38 | }
39 |
40 |
41 | public override bool Equals(object obj)
42 | {
43 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
44 | {
45 | return false;
46 | }
47 | var other = (EdgeRouteCompressionReplace)obj;
48 | return (
49 | this.EdgeId == other.EdgeId
50 | && this.Id == other.Id
51 | && this.Module == other.Module
52 | );
53 | }
54 |
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EdgeRouteIpRestrictionReplace.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class EdgeRouteIpRestrictionReplace : HasId
12 | {
13 | [JsonProperty("edge_id")]
14 | public string EdgeId { get; set; }
15 | [JsonProperty("id")]
16 | public string Id { get; set; }
17 | [JsonProperty("module")]
18 | public EndpointIpPolicyMutate Module { get; set; }
19 |
20 | public override string ToString()
21 | {
22 | return $"EdgeRouteIpRestrictionReplace EdgeId={ EdgeId } Id={ Id } Module={ Module } ";
23 | }
24 |
25 | public override int GetHashCode()
26 | {
27 | unchecked
28 | {
29 | int hash = 17;
30 | hash = hash * 23 + (EdgeId?.GetHashCode() ?? 0);
31 |
32 | hash = hash * 23 + (Id?.GetHashCode() ?? 0);
33 |
34 | hash = hash * 23 + (Module?.GetHashCode() ?? 0);
35 |
36 | return hash;
37 | }
38 | }
39 |
40 |
41 | public override bool Equals(object obj)
42 | {
43 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
44 | {
45 | return false;
46 | }
47 | var other = (EdgeRouteIpRestrictionReplace)obj;
48 | return (
49 | this.EdgeId == other.EdgeId
50 | && this.Id == other.Id
51 | && this.Module == other.Module
52 | );
53 | }
54 |
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EdgeRouteItem.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class EdgeRouteItem : HasId
12 | {
13 | //
14 | // unique identifier of this edge
15 | //
16 | [JsonProperty("edge_id")]
17 | public string EdgeId { get; set; }
18 | //
19 | // unique identifier of this edge route
20 | //
21 | [JsonProperty("id")]
22 | public string Id { get; set; }
23 |
24 | public override string ToString()
25 | {
26 | return $"EdgeRouteItem EdgeId={ EdgeId } Id={ Id } ";
27 | }
28 |
29 | public override int GetHashCode()
30 | {
31 | unchecked
32 | {
33 | int hash = 17;
34 | hash = hash * 23 + (EdgeId?.GetHashCode() ?? 0);
35 |
36 | hash = hash * 23 + (Id?.GetHashCode() ?? 0);
37 |
38 | return hash;
39 | }
40 | }
41 |
42 |
43 | public override bool Equals(object obj)
44 | {
45 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
46 | {
47 | return false;
48 | }
49 | var other = (EdgeRouteItem)obj;
50 | return (
51 | this.EdgeId == other.EdgeId
52 | && this.Id == other.Id
53 | );
54 | }
55 |
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EdgeRouteOAuthReplace.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class EdgeRouteOAuthReplace : HasId
12 | {
13 | [JsonProperty("edge_id")]
14 | public string EdgeId { get; set; }
15 | [JsonProperty("id")]
16 | public string Id { get; set; }
17 | [JsonProperty("module")]
18 | public EndpointOAuth Module { get; set; }
19 |
20 | public override string ToString()
21 | {
22 | return $"EdgeRouteOAuthReplace EdgeId={ EdgeId } Id={ Id } Module={ Module } ";
23 | }
24 |
25 | public override int GetHashCode()
26 | {
27 | unchecked
28 | {
29 | int hash = 17;
30 | hash = hash * 23 + (EdgeId?.GetHashCode() ?? 0);
31 |
32 | hash = hash * 23 + (Id?.GetHashCode() ?? 0);
33 |
34 | hash = hash * 23 + (Module?.GetHashCode() ?? 0);
35 |
36 | return hash;
37 | }
38 | }
39 |
40 |
41 | public override bool Equals(object obj)
42 | {
43 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
44 | {
45 | return false;
46 | }
47 | var other = (EdgeRouteOAuthReplace)obj;
48 | return (
49 | this.EdgeId == other.EdgeId
50 | && this.Id == other.Id
51 | && this.Module == other.Module
52 | );
53 | }
54 |
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EdgeRouteOidcReplace.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class EdgeRouteOidcReplace : HasId
12 | {
13 | [JsonProperty("edge_id")]
14 | public string EdgeId { get; set; }
15 | [JsonProperty("id")]
16 | public string Id { get; set; }
17 | [JsonProperty("module")]
18 | public EndpointOidc Module { get; set; }
19 |
20 | public override string ToString()
21 | {
22 | return $"EdgeRouteOidcReplace EdgeId={ EdgeId } Id={ Id } Module={ Module } ";
23 | }
24 |
25 | public override int GetHashCode()
26 | {
27 | unchecked
28 | {
29 | int hash = 17;
30 | hash = hash * 23 + (EdgeId?.GetHashCode() ?? 0);
31 |
32 | hash = hash * 23 + (Id?.GetHashCode() ?? 0);
33 |
34 | hash = hash * 23 + (Module?.GetHashCode() ?? 0);
35 |
36 | return hash;
37 | }
38 | }
39 |
40 |
41 | public override bool Equals(object obj)
42 | {
43 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
44 | {
45 | return false;
46 | }
47 | var other = (EdgeRouteOidcReplace)obj;
48 | return (
49 | this.EdgeId == other.EdgeId
50 | && this.Id == other.Id
51 | && this.Module == other.Module
52 | );
53 | }
54 |
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EdgeRoutePolicyReplace.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class EdgeRoutePolicyReplace : HasId
12 | {
13 | [JsonProperty("edge_id")]
14 | public string EdgeId { get; set; }
15 | [JsonProperty("id")]
16 | public string Id { get; set; }
17 | [JsonProperty("module")]
18 | public EndpointPolicy Module { get; set; }
19 |
20 | public override string ToString()
21 | {
22 | return $"EdgeRoutePolicyReplace EdgeId={ EdgeId } Id={ Id } Module={ Module } ";
23 | }
24 |
25 | public override int GetHashCode()
26 | {
27 | unchecked
28 | {
29 | int hash = 17;
30 | hash = hash * 23 + (EdgeId?.GetHashCode() ?? 0);
31 |
32 | hash = hash * 23 + (Id?.GetHashCode() ?? 0);
33 |
34 | hash = hash * 23 + (Module?.GetHashCode() ?? 0);
35 |
36 | return hash;
37 | }
38 | }
39 |
40 |
41 | public override bool Equals(object obj)
42 | {
43 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
44 | {
45 | return false;
46 | }
47 | var other = (EdgeRoutePolicyReplace)obj;
48 | return (
49 | this.EdgeId == other.EdgeId
50 | && this.Id == other.Id
51 | && this.Module == other.Module
52 | );
53 | }
54 |
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EdgeRouteRequestHeadersReplace.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class EdgeRouteRequestHeadersReplace : HasId
12 | {
13 | [JsonProperty("edge_id")]
14 | public string EdgeId { get; set; }
15 | [JsonProperty("id")]
16 | public string Id { get; set; }
17 | [JsonProperty("module")]
18 | public EndpointRequestHeaders Module { get; set; }
19 |
20 | public override string ToString()
21 | {
22 | return $"EdgeRouteRequestHeadersReplace EdgeId={ EdgeId } Id={ Id } Module={ Module } ";
23 | }
24 |
25 | public override int GetHashCode()
26 | {
27 | unchecked
28 | {
29 | int hash = 17;
30 | hash = hash * 23 + (EdgeId?.GetHashCode() ?? 0);
31 |
32 | hash = hash * 23 + (Id?.GetHashCode() ?? 0);
33 |
34 | hash = hash * 23 + (Module?.GetHashCode() ?? 0);
35 |
36 | return hash;
37 | }
38 | }
39 |
40 |
41 | public override bool Equals(object obj)
42 | {
43 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
44 | {
45 | return false;
46 | }
47 | var other = (EdgeRouteRequestHeadersReplace)obj;
48 | return (
49 | this.EdgeId == other.EdgeId
50 | && this.Id == other.Id
51 | && this.Module == other.Module
52 | );
53 | }
54 |
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EdgeRouteResponseHeadersReplace.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class EdgeRouteResponseHeadersReplace : HasId
12 | {
13 | [JsonProperty("edge_id")]
14 | public string EdgeId { get; set; }
15 | [JsonProperty("id")]
16 | public string Id { get; set; }
17 | [JsonProperty("module")]
18 | public EndpointResponseHeaders Module { get; set; }
19 |
20 | public override string ToString()
21 | {
22 | return $"EdgeRouteResponseHeadersReplace EdgeId={ EdgeId } Id={ Id } Module={ Module } ";
23 | }
24 |
25 | public override int GetHashCode()
26 | {
27 | unchecked
28 | {
29 | int hash = 17;
30 | hash = hash * 23 + (EdgeId?.GetHashCode() ?? 0);
31 |
32 | hash = hash * 23 + (Id?.GetHashCode() ?? 0);
33 |
34 | hash = hash * 23 + (Module?.GetHashCode() ?? 0);
35 |
36 | return hash;
37 | }
38 | }
39 |
40 |
41 | public override bool Equals(object obj)
42 | {
43 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
44 | {
45 | return false;
46 | }
47 | var other = (EdgeRouteResponseHeadersReplace)obj;
48 | return (
49 | this.EdgeId == other.EdgeId
50 | && this.Id == other.Id
51 | && this.Module == other.Module
52 | );
53 | }
54 |
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EdgeRouteSamlReplace.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class EdgeRouteSamlReplace : HasId
12 | {
13 | [JsonProperty("edge_id")]
14 | public string EdgeId { get; set; }
15 | [JsonProperty("id")]
16 | public string Id { get; set; }
17 | [JsonProperty("module")]
18 | public EndpointSamlMutate Module { get; set; }
19 |
20 | public override string ToString()
21 | {
22 | return $"EdgeRouteSamlReplace EdgeId={ EdgeId } Id={ Id } Module={ Module } ";
23 | }
24 |
25 | public override int GetHashCode()
26 | {
27 | unchecked
28 | {
29 | int hash = 17;
30 | hash = hash * 23 + (EdgeId?.GetHashCode() ?? 0);
31 |
32 | hash = hash * 23 + (Id?.GetHashCode() ?? 0);
33 |
34 | hash = hash * 23 + (Module?.GetHashCode() ?? 0);
35 |
36 | return hash;
37 | }
38 | }
39 |
40 |
41 | public override bool Equals(object obj)
42 | {
43 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
44 | {
45 | return false;
46 | }
47 | var other = (EdgeRouteSamlReplace)obj;
48 | return (
49 | this.EdgeId == other.EdgeId
50 | && this.Id == other.Id
51 | && this.Module == other.Module
52 | );
53 | }
54 |
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EdgeRouteTrafficPolicyReplace.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class EdgeRouteTrafficPolicyReplace : HasId
12 | {
13 | [JsonProperty("edge_id")]
14 | public string EdgeId { get; set; }
15 | [JsonProperty("id")]
16 | public string Id { get; set; }
17 | [JsonProperty("module")]
18 | public EndpointTrafficPolicy Module { get; set; }
19 |
20 | public override string ToString()
21 | {
22 | return $"EdgeRouteTrafficPolicyReplace EdgeId={ EdgeId } Id={ Id } Module={ Module } ";
23 | }
24 |
25 | public override int GetHashCode()
26 | {
27 | unchecked
28 | {
29 | int hash = 17;
30 | hash = hash * 23 + (EdgeId?.GetHashCode() ?? 0);
31 |
32 | hash = hash * 23 + (Id?.GetHashCode() ?? 0);
33 |
34 | hash = hash * 23 + (Module?.GetHashCode() ?? 0);
35 |
36 | return hash;
37 | }
38 | }
39 |
40 |
41 | public override bool Equals(object obj)
42 | {
43 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
44 | {
45 | return false;
46 | }
47 | var other = (EdgeRouteTrafficPolicyReplace)obj;
48 | return (
49 | this.EdgeId == other.EdgeId
50 | && this.Id == other.Id
51 | && this.Module == other.Module
52 | );
53 | }
54 |
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EdgeRouteUserAgentFilterReplace.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class EdgeRouteUserAgentFilterReplace : HasId
12 | {
13 | [JsonProperty("edge_id")]
14 | public string EdgeId { get; set; }
15 | [JsonProperty("id")]
16 | public string Id { get; set; }
17 | [JsonProperty("module")]
18 | public EndpointUserAgentFilter Module { get; set; }
19 |
20 | public override string ToString()
21 | {
22 | return $"EdgeRouteUserAgentFilterReplace EdgeId={ EdgeId } Id={ Id } Module={ Module } ";
23 | }
24 |
25 | public override int GetHashCode()
26 | {
27 | unchecked
28 | {
29 | int hash = 17;
30 | hash = hash * 23 + (EdgeId?.GetHashCode() ?? 0);
31 |
32 | hash = hash * 23 + (Id?.GetHashCode() ?? 0);
33 |
34 | hash = hash * 23 + (Module?.GetHashCode() ?? 0);
35 |
36 | return hash;
37 | }
38 | }
39 |
40 |
41 | public override bool Equals(object obj)
42 | {
43 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
44 | {
45 | return false;
46 | }
47 | var other = (EdgeRouteUserAgentFilterReplace)obj;
48 | return (
49 | this.EdgeId == other.EdgeId
50 | && this.Id == other.Id
51 | && this.Module == other.Module
52 | );
53 | }
54 |
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EdgeRouteWebhookVerificationReplace.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class EdgeRouteWebhookVerificationReplace : HasId
12 | {
13 | [JsonProperty("edge_id")]
14 | public string EdgeId { get; set; }
15 | [JsonProperty("id")]
16 | public string Id { get; set; }
17 | [JsonProperty("module")]
18 | public EndpointWebhookValidation Module { get; set; }
19 |
20 | public override string ToString()
21 | {
22 | return $"EdgeRouteWebhookVerificationReplace EdgeId={ EdgeId } Id={ Id } Module={ Module } ";
23 | }
24 |
25 | public override int GetHashCode()
26 | {
27 | unchecked
28 | {
29 | int hash = 17;
30 | hash = hash * 23 + (EdgeId?.GetHashCode() ?? 0);
31 |
32 | hash = hash * 23 + (Id?.GetHashCode() ?? 0);
33 |
34 | hash = hash * 23 + (Module?.GetHashCode() ?? 0);
35 |
36 | return hash;
37 | }
38 | }
39 |
40 |
41 | public override bool Equals(object obj)
42 | {
43 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
44 | {
45 | return false;
46 | }
47 | var other = (EdgeRouteWebhookVerificationReplace)obj;
48 | return (
49 | this.EdgeId == other.EdgeId
50 | && this.Id == other.Id
51 | && this.Module == other.Module
52 | );
53 | }
54 |
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EdgeRouteWebsocketTcpConverterReplace.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class EdgeRouteWebsocketTcpConverterReplace : HasId
12 | {
13 | [JsonProperty("edge_id")]
14 | public string EdgeId { get; set; }
15 | [JsonProperty("id")]
16 | public string Id { get; set; }
17 | [JsonProperty("module")]
18 | public EndpointWebsocketTcpConverter Module { get; set; }
19 |
20 | public override string ToString()
21 | {
22 | return $"EdgeRouteWebsocketTcpConverterReplace EdgeId={ EdgeId } Id={ Id } Module={ Module } ";
23 | }
24 |
25 | public override int GetHashCode()
26 | {
27 | unchecked
28 | {
29 | int hash = 17;
30 | hash = hash * 23 + (EdgeId?.GetHashCode() ?? 0);
31 |
32 | hash = hash * 23 + (Id?.GetHashCode() ?? 0);
33 |
34 | hash = hash * 23 + (Module?.GetHashCode() ?? 0);
35 |
36 | return hash;
37 | }
38 | }
39 |
40 |
41 | public override bool Equals(object obj)
42 | {
43 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
44 | {
45 | return false;
46 | }
47 | var other = (EdgeRouteWebsocketTcpConverterReplace)obj;
48 | return (
49 | this.EdgeId == other.EdgeId
50 | && this.Id == other.Id
51 | && this.Module == other.Module
52 | );
53 | }
54 |
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EdgeTlsTerminationAtEdgeReplace.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class EdgeTlsTerminationAtEdgeReplace : HasId
12 | {
13 | [JsonProperty("id")]
14 | public string Id { get; set; }
15 | [JsonProperty("module")]
16 | public EndpointTlsTerminationAtEdge Module { get; set; }
17 |
18 | public override string ToString()
19 | {
20 | return $"EdgeTlsTerminationAtEdgeReplace Id={ Id } Module={ Module } ";
21 | }
22 |
23 | public override int GetHashCode()
24 | {
25 | unchecked
26 | {
27 | int hash = 17;
28 | hash = hash * 23 + (Id?.GetHashCode() ?? 0);
29 |
30 | hash = hash * 23 + (Module?.GetHashCode() ?? 0);
31 |
32 | return hash;
33 | }
34 | }
35 |
36 |
37 | public override bool Equals(object obj)
38 | {
39 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
40 | {
41 | return false;
42 | }
43 | var other = (EdgeTlsTerminationAtEdgeReplace)obj;
44 | return (
45 | this.Id == other.Id
46 | && this.Module == other.Module
47 | );
48 | }
49 |
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EdgeTlsTerminationReplace.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class EdgeTlsTerminationReplace : HasId
12 | {
13 | [JsonProperty("id")]
14 | public string Id { get; set; }
15 | [JsonProperty("module")]
16 | public EndpointTlsTermination Module { get; set; }
17 |
18 | public override string ToString()
19 | {
20 | return $"EdgeTlsTerminationReplace Id={ Id } Module={ Module } ";
21 | }
22 |
23 | public override int GetHashCode()
24 | {
25 | unchecked
26 | {
27 | int hash = 17;
28 | hash = hash * 23 + (Id?.GetHashCode() ?? 0);
29 |
30 | hash = hash * 23 + (Module?.GetHashCode() ?? 0);
31 |
32 | return hash;
33 | }
34 | }
35 |
36 |
37 | public override bool Equals(object obj)
38 | {
39 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
40 | {
41 | return false;
42 | }
43 | var other = (EdgeTlsTerminationReplace)obj;
44 | return (
45 | this.Id == other.Id
46 | && this.Module == other.Module
47 | );
48 | }
49 |
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EdgeTrafficPolicyReplace.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class EdgeTrafficPolicyReplace : HasId
12 | {
13 | [JsonProperty("id")]
14 | public string Id { get; set; }
15 | [JsonProperty("module")]
16 | public EndpointTrafficPolicy Module { get; set; }
17 |
18 | public override string ToString()
19 | {
20 | return $"EdgeTrafficPolicyReplace Id={ Id } Module={ Module } ";
21 | }
22 |
23 | public override int GetHashCode()
24 | {
25 | unchecked
26 | {
27 | int hash = 17;
28 | hash = hash * 23 + (Id?.GetHashCode() ?? 0);
29 |
30 | hash = hash * 23 + (Module?.GetHashCode() ?? 0);
31 |
32 | return hash;
33 | }
34 | }
35 |
36 |
37 | public override bool Equals(object obj)
38 | {
39 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
40 | {
41 | return false;
42 | }
43 | var other = (EdgeTrafficPolicyReplace)obj;
44 | return (
45 | this.Id == other.Id
46 | && this.Module == other.Module
47 | );
48 | }
49 |
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/Empty.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class Empty
12 | {
13 |
14 | public override string ToString()
15 | {
16 | return $"Empty";
17 | }
18 |
19 | public override int GetHashCode()
20 | {
21 | unchecked
22 | {
23 | int hash = 17;
24 | return hash;
25 | }
26 | }
27 |
28 |
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EndpointAction.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class EndpointAction
12 | {
13 | //
14 | // the type of action on the policy rule.
15 | //
16 | [JsonProperty("type")]
17 | public string Type { get; set; }
18 | //
19 | // the configuration for the action on the policy rule.
20 | //
21 | [JsonProperty("config")]
22 | public object Config { get; set; }
23 |
24 | public override string ToString()
25 | {
26 | return $"EndpointAction Type={ Type } Config={ Config } ";
27 | }
28 |
29 | public override int GetHashCode()
30 | {
31 | unchecked
32 | {
33 | int hash = 17;
34 | hash = hash * 23 + (Type?.GetHashCode() ?? 0);
35 |
36 | hash = hash * 23 + (Config?.GetHashCode() ?? 0);
37 |
38 | return hash;
39 | }
40 | }
41 |
42 |
43 | public override bool Equals(object obj)
44 | {
45 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
46 | {
47 | return false;
48 | }
49 | var other = (EndpointAction)obj;
50 | return (
51 | this.Type == other.Type
52 | && this.Config == other.Config
53 | );
54 | }
55 |
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EndpointBackend.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class EndpointBackend
12 | {
13 | //
14 | // true if the module will be applied to traffic, false to disable.
15 | // default true if unspecified
16 | //
17 | [JsonProperty("enabled")]
18 | public bool? Enabled { get; set; }
19 | //
20 | // backend to be used to back this endpoint
21 | //
22 | [JsonProperty("backend")]
23 | public Ref Backend { get; set; }
24 |
25 | public override string ToString()
26 | {
27 | return $"EndpointBackend Enabled={ Enabled } Backend={ Backend } ";
28 | }
29 |
30 | public override int GetHashCode()
31 | {
32 | unchecked
33 | {
34 | int hash = 17;
35 | hash = hash * 23 + Convert.ToInt32(Enabled);
36 | hash = hash * 23 + (Backend?.GetHashCode() ?? 0);
37 |
38 | return hash;
39 | }
40 | }
41 |
42 |
43 | public override bool Equals(object obj)
44 | {
45 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
46 | {
47 | return false;
48 | }
49 | var other = (EndpointBackend)obj;
50 | return (
51 | this.Enabled == other.Enabled
52 | && this.Backend == other.Backend
53 | );
54 | }
55 |
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EndpointBackendMutate.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class EndpointBackendMutate
12 | {
13 | //
14 | // true if the module will be applied to traffic, false to disable.
15 | // default true if unspecified
16 | //
17 | [JsonProperty("enabled")]
18 | public bool? Enabled { get; set; }
19 | //
20 | // backend to be used to back this endpoint
21 | //
22 | [JsonProperty("backend_id")]
23 | public string BackendId { get; set; }
24 |
25 | public override string ToString()
26 | {
27 | return $"EndpointBackendMutate Enabled={ Enabled } BackendId={ BackendId } ";
28 | }
29 |
30 | public override int GetHashCode()
31 | {
32 | unchecked
33 | {
34 | int hash = 17;
35 | hash = hash * 23 + Convert.ToInt32(Enabled);
36 | hash = hash * 23 + (BackendId?.GetHashCode() ?? 0);
37 |
38 | return hash;
39 | }
40 | }
41 |
42 |
43 | public override bool Equals(object obj)
44 | {
45 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
46 | {
47 | return false;
48 | }
49 | var other = (EndpointBackendMutate)obj;
50 | return (
51 | this.Enabled == other.Enabled
52 | && this.BackendId == other.BackendId
53 | );
54 | }
55 |
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EndpointCompression.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class EndpointCompression
12 | {
13 | //
14 | // true if the module will be applied to traffic, false to disable.
15 | // default true if unspecified
16 | //
17 | [JsonProperty("enabled")]
18 | public bool? Enabled { get; set; }
19 |
20 | public override string ToString()
21 | {
22 | return $"EndpointCompression Enabled={ Enabled } ";
23 | }
24 |
25 | public override int GetHashCode()
26 | {
27 | unchecked
28 | {
29 | int hash = 17;
30 | hash = hash * 23 + Convert.ToInt32(Enabled);
31 | return hash;
32 | }
33 | }
34 |
35 |
36 | public override bool Equals(object obj)
37 | {
38 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
39 | {
40 | return false;
41 | }
42 | var other = (EndpointCompression)obj;
43 | return (
44 | this.Enabled == other.Enabled
45 | );
46 | }
47 |
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EndpointIpPolicy.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class EndpointIpPolicy
12 | {
13 | //
14 | // true if the module will be applied to traffic, false to disable.
15 | // default true if unspecified
16 | //
17 | [JsonProperty("enabled")]
18 | public bool? Enabled { get; set; }
19 | //
20 | // list of all IP policies that will be used to check if a source IP is allowed
21 | // access to the endpoint
22 | //
23 | [JsonProperty("ip_policies")]
24 | public List[ IpPolicies { get; set; }
25 |
26 | public override string ToString()
27 | {
28 | return $"EndpointIpPolicy Enabled={ Enabled } IpPolicies={ IpPolicies } ";
29 | }
30 |
31 | public override int GetHashCode()
32 | {
33 | unchecked
34 | {
35 | int hash = 17;
36 | hash = hash * 23 + Convert.ToInt32(Enabled);
37 | hash = hash * 23 + (IpPolicies?.GetHashCode() ?? 0);
38 |
39 | return hash;
40 | }
41 | }
42 |
43 |
44 | public override bool Equals(object obj)
45 | {
46 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
47 | {
48 | return false;
49 | }
50 | var other = (EndpointIpPolicy)obj;
51 | return (
52 | this.Enabled == other.Enabled
53 | && this.IpPolicies == other.IpPolicies
54 | );
55 | }
56 |
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EndpointIpPolicyMutate.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class EndpointIpPolicyMutate
12 | {
13 | //
14 | // true if the module will be applied to traffic, false to disable.
15 | // default true if unspecified
16 | //
17 | [JsonProperty("enabled")]
18 | public bool? Enabled { get; set; }
19 | //
20 | // list of all IP policies that will be used to check if a source IP is allowed
21 | // access to the endpoint
22 | //
23 | [JsonProperty("ip_policy_ids")]
24 | public List IpPolicyIds { get; set; }
25 |
26 | public override string ToString()
27 | {
28 | return $"EndpointIpPolicyMutate Enabled={ Enabled } IpPolicyIds={ IpPolicyIds } ";
29 | }
30 |
31 | public override int GetHashCode()
32 | {
33 | unchecked
34 | {
35 | int hash = 17;
36 | hash = hash * 23 + Convert.ToInt32(Enabled);
37 | hash = hash * 23 + (IpPolicyIds?.GetHashCode() ?? 0);
38 |
39 | return hash;
40 | }
41 | }
42 |
43 |
44 | public override bool Equals(object obj)
45 | {
46 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
47 | {
48 | return false;
49 | }
50 | var other = (EndpointIpPolicyMutate)obj;
51 | return (
52 | this.Enabled == other.Enabled
53 | && this.IpPolicyIds == other.IpPolicyIds
54 | );
55 | }
56 |
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EndpointList.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class EndpointList
12 | {
13 | //
14 | // the list of all active endpoints on this account
15 | //
16 | [JsonProperty("endpoints")]
17 | public List Endpoints { get; set; }
18 | //
19 | // URI of the endpoints list API resource
20 | //
21 | [JsonProperty("uri")]
22 | public Uri Uri { get; set; }
23 | //
24 | // URI of the next page, or null if there is no next page
25 | //
26 | [JsonProperty("next_page_uri")]
27 | public Uri NextPageUri { get; set; }
28 |
29 | public override string ToString()
30 | {
31 | return $"EndpointList Endpoints={ Endpoints } Uri={ Uri } NextPageUri={ NextPageUri } ";
32 | }
33 |
34 | public override int GetHashCode()
35 | {
36 | unchecked
37 | {
38 | int hash = 17;
39 | hash = hash * 23 + (Endpoints?.GetHashCode() ?? 0);
40 |
41 | hash = hash * 23 + (Uri?.GetHashCode() ?? 0);
42 |
43 | hash = hash * 23 + (NextPageUri?.GetHashCode() ?? 0);
44 |
45 | return hash;
46 | }
47 | }
48 |
49 |
50 | public override bool Equals(object obj)
51 | {
52 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
53 | {
54 | return false;
55 | }
56 | var other = (EndpointList)obj;
57 | return (
58 | this.Endpoints == other.Endpoints
59 | && this.Uri == other.Uri
60 | && this.NextPageUri == other.NextPageUri
61 | );
62 | }
63 |
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EndpointMutualTls.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class EndpointMutualTls
12 | {
13 | //
14 | // true if the module will be applied to traffic, false to disable.
15 | // default true if unspecified
16 | //
17 | [JsonProperty("enabled")]
18 | public bool? Enabled { get; set; }
19 | //
20 | // PEM-encoded CA certificates that will be used to validate. Multiple CAs may be
21 | // provided by concatenating them together.
22 | //
23 | [JsonProperty("certificate_authorities")]
24 | public List][ CertificateAuthorities { get; set; }
25 |
26 | public override string ToString()
27 | {
28 | return $"EndpointMutualTls Enabled={ Enabled } CertificateAuthorities={ CertificateAuthorities } ";
29 | }
30 |
31 | public override int GetHashCode()
32 | {
33 | unchecked
34 | {
35 | int hash = 17;
36 | hash = hash * 23 + Convert.ToInt32(Enabled);
37 | hash = hash * 23 + (CertificateAuthorities?.GetHashCode() ?? 0);
38 |
39 | return hash;
40 | }
41 | }
42 |
43 |
44 | public override bool Equals(object obj)
45 | {
46 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
47 | {
48 | return false;
49 | }
50 | var other = (EndpointMutualTls)obj;
51 | return (
52 | this.Enabled == other.Enabled
53 | && this.CertificateAuthorities == other.CertificateAuthorities
54 | );
55 | }
56 |
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EndpointMutualTlsMutate.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class EndpointMutualTlsMutate
12 | {
13 | //
14 | // true if the module will be applied to traffic, false to disable.
15 | // default true if unspecified
16 | //
17 | [JsonProperty("enabled")]
18 | public bool? Enabled { get; set; }
19 | //
20 | // list of certificate authorities that will be used to validate the TLS client
21 | // certificate presented by the initiator of the TLS connection
22 | //
23 | [JsonProperty("certificate_authority_ids")]
24 | public List CertificateAuthorityIds { get; set; }
25 |
26 | public override string ToString()
27 | {
28 | return $"EndpointMutualTlsMutate Enabled={ Enabled } CertificateAuthorityIds={ CertificateAuthorityIds } ";
29 | }
30 |
31 | public override int GetHashCode()
32 | {
33 | unchecked
34 | {
35 | int hash = 17;
36 | hash = hash * 23 + Convert.ToInt32(Enabled);
37 | hash = hash * 23 + (CertificateAuthorityIds?.GetHashCode() ?? 0);
38 |
39 | return hash;
40 | }
41 | }
42 |
43 |
44 | public override bool Equals(object obj)
45 | {
46 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
47 | {
48 | return false;
49 | }
50 | var other = (EndpointMutualTlsMutate)obj;
51 | return (
52 | this.Enabled == other.Enabled
53 | && this.CertificateAuthorityIds == other.CertificateAuthorityIds
54 | );
55 | }
56 |
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EndpointPolicy.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class EndpointPolicy
12 | {
13 | //
14 | // true if the module will be applied to traffic, false to disable.
15 | // default true if unspecified
16 | //
17 | [JsonProperty("enabled")]
18 | public bool? Enabled { get; set; }
19 | //
20 | // the inbound rules of the traffic policy.
21 | //
22 | [JsonProperty("inbound")]
23 | public List Inbound { get; set; }
24 | //
25 | // the outbound rules on the traffic policy.
26 | //
27 | [JsonProperty("outbound")]
28 | public List Outbound { get; set; }
29 |
30 | public override string ToString()
31 | {
32 | return $"EndpointPolicy Enabled={ Enabled } Inbound={ Inbound } Outbound={ Outbound } ";
33 | }
34 |
35 | public override int GetHashCode()
36 | {
37 | unchecked
38 | {
39 | int hash = 17;
40 | hash = hash * 23 + Convert.ToInt32(Enabled);
41 | hash = hash * 23 + (Inbound?.GetHashCode() ?? 0);
42 |
43 | hash = hash * 23 + (Outbound?.GetHashCode() ?? 0);
44 |
45 | return hash;
46 | }
47 | }
48 |
49 |
50 | public override bool Equals(object obj)
51 | {
52 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
53 | {
54 | return false;
55 | }
56 | var other = (EndpointPolicy)obj;
57 | return (
58 | this.Enabled == other.Enabled
59 | && this.Inbound == other.Inbound
60 | && this.Outbound == other.Outbound
61 | );
62 | }
63 |
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EndpointRule.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class EndpointRule
12 | {
13 | //
14 | // cel expressions that filter traffic the policy rule applies to.
15 | //
16 | [JsonProperty("expressions")]
17 | public List Expressions { get; set; }
18 | //
19 | // the set of actions on a policy rule.
20 | //
21 | [JsonProperty("actions")]
22 | public List Actions { get; set; }
23 | //
24 | // the name of the rule that is part of the traffic policy.
25 | //
26 | [JsonProperty("name")]
27 | public string Name { get; set; }
28 |
29 | public override string ToString()
30 | {
31 | return $"EndpointRule Expressions={ Expressions } Actions={ Actions } Name={ Name } ";
32 | }
33 |
34 | public override int GetHashCode()
35 | {
36 | unchecked
37 | {
38 | int hash = 17;
39 | hash = hash * 23 + (Expressions?.GetHashCode() ?? 0);
40 |
41 | hash = hash * 23 + (Actions?.GetHashCode() ?? 0);
42 |
43 | hash = hash * 23 + (Name?.GetHashCode() ?? 0);
44 |
45 | return hash;
46 | }
47 | }
48 |
49 |
50 | public override bool Equals(object obj)
51 | {
52 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
53 | {
54 | return false;
55 | }
56 | var other = (EndpointRule)obj;
57 | return (
58 | this.Expressions == other.Expressions
59 | && this.Actions == other.Actions
60 | && this.Name == other.Name
61 | );
62 | }
63 |
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EndpointTlsTerminationAtEdge.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class EndpointTlsTerminationAtEdge
12 | {
13 | //
14 | // true if the module will be applied to traffic, false to disable.
15 | // default true if unspecified
16 | //
17 | [JsonProperty("enabled")]
18 | public bool? Enabled { get; set; }
19 | //
20 | // The minimum TLS version used for termination and advertised to the client during
21 | // the TLS handshake. if unspecified, ngrok will choose an industry-safe default.
22 | // This value must be null if terminate_at is set to upstream.
23 | //
24 | [JsonProperty("min_version")]
25 | public string MinVersion { get; set; }
26 |
27 | public override string ToString()
28 | {
29 | return $"EndpointTlsTerminationAtEdge Enabled={ Enabled } MinVersion={ MinVersion } ";
30 | }
31 |
32 | public override int GetHashCode()
33 | {
34 | unchecked
35 | {
36 | int hash = 17;
37 | hash = hash * 23 + Convert.ToInt32(Enabled);
38 | hash = hash * 23 + (MinVersion?.GetHashCode() ?? 0);
39 |
40 | return hash;
41 | }
42 | }
43 |
44 |
45 | public override bool Equals(object obj)
46 | {
47 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
48 | {
49 | return false;
50 | }
51 | var other = (EndpointTlsTerminationAtEdge)obj;
52 | return (
53 | this.Enabled == other.Enabled
54 | && this.MinVersion == other.MinVersion
55 | );
56 | }
57 |
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EndpointTrafficPolicy.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class EndpointTrafficPolicy
12 | {
13 | //
14 | // true if the module will be applied to traffic, false to disable.
15 | // default true if unspecified
16 | //
17 | [JsonProperty("enabled")]
18 | public bool? Enabled { get; set; }
19 | //
20 | // the traffic policy that should be applied to the traffic on your endpoint.
21 | //
22 | [JsonProperty("value")]
23 | public string Value { get; set; }
24 |
25 | public override string ToString()
26 | {
27 | return $"EndpointTrafficPolicy Enabled={ Enabled } Value={ Value } ";
28 | }
29 |
30 | public override int GetHashCode()
31 | {
32 | unchecked
33 | {
34 | int hash = 17;
35 | hash = hash * 23 + Convert.ToInt32(Enabled);
36 | hash = hash * 23 + (Value?.GetHashCode() ?? 0);
37 |
38 | return hash;
39 | }
40 | }
41 |
42 |
43 | public override bool Equals(object obj)
44 | {
45 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
46 | {
47 | return false;
48 | }
49 | var other = (EndpointTrafficPolicy)obj;
50 | return (
51 | this.Enabled == other.Enabled
52 | && this.Value == other.Value
53 | );
54 | }
55 |
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EndpointUserAgentFilter.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class EndpointUserAgentFilter
12 | {
13 | [JsonProperty("enabled")]
14 | public bool? Enabled { get; set; }
15 | [JsonProperty("allow")]
16 | public List Allow { get; set; }
17 | [JsonProperty("deny")]
18 | public List Deny { get; set; }
19 |
20 | public override string ToString()
21 | {
22 | return $"EndpointUserAgentFilter Enabled={ Enabled } Allow={ Allow } Deny={ Deny } ";
23 | }
24 |
25 | public override int GetHashCode()
26 | {
27 | unchecked
28 | {
29 | int hash = 17;
30 | hash = hash * 23 + Convert.ToInt32(Enabled);
31 | hash = hash * 23 + (Allow?.GetHashCode() ?? 0);
32 |
33 | hash = hash * 23 + (Deny?.GetHashCode() ?? 0);
34 |
35 | return hash;
36 | }
37 | }
38 |
39 |
40 | public override bool Equals(object obj)
41 | {
42 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
43 | {
44 | return false;
45 | }
46 | var other = (EndpointUserAgentFilter)obj;
47 | return (
48 | this.Enabled == other.Enabled
49 | && this.Allow == other.Allow
50 | && this.Deny == other.Deny
51 | );
52 | }
53 |
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EndpointWebsocketTcpConverter.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class EndpointWebsocketTcpConverter
12 | {
13 | //
14 | // true if the module will be applied to traffic, false to disable.
15 | // default true if unspecified
16 | //
17 | [JsonProperty("enabled")]
18 | public bool? Enabled { get; set; }
19 |
20 | public override string ToString()
21 | {
22 | return $"EndpointWebsocketTcpConverter Enabled={ Enabled } ";
23 | }
24 |
25 | public override int GetHashCode()
26 | {
27 | unchecked
28 | {
29 | int hash = 17;
30 | hash = hash * 23 + Convert.ToInt32(Enabled);
31 | return hash;
32 | }
33 | }
34 |
35 |
36 | public override bool Equals(object obj)
37 | {
38 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
39 | {
40 | return false;
41 | }
42 | var other = (EndpointWebsocketTcpConverter)obj;
43 | return (
44 | this.Enabled == other.Enabled
45 | );
46 | }
47 |
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/Error.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | internal class Error
12 | {
13 | [JsonProperty("error_code")]
14 | public string ErrorCode { get; set; }
15 | [JsonProperty("status_code")]
16 | public int StatusCode { get; set; }
17 | [JsonProperty("msg")]
18 | public string Msg { get; set; }
19 | [JsonProperty("details")]
20 | public Dictionary Details { get; set; }
21 |
22 | public override string ToString()
23 | {
24 | return $"Error ErrorCode={ ErrorCode } StatusCode={ StatusCode } Msg={ Msg } Details={ Details } ";
25 | }
26 |
27 | public override int GetHashCode()
28 | {
29 | unchecked
30 | {
31 | int hash = 17;
32 | hash = hash * 23 + (ErrorCode?.GetHashCode() ?? 0);
33 |
34 | hash = hash * 23 + Convert.ToInt32(StatusCode);
35 | hash = hash * 23 + (Msg?.GetHashCode() ?? 0);
36 |
37 | hash = hash * 23 + (Details?.GetHashCode() ?? 0);
38 |
39 | return hash;
40 | }
41 | }
42 |
43 |
44 | public override bool Equals(object obj)
45 | {
46 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
47 | {
48 | return false;
49 | }
50 | var other = (Error)obj;
51 | return (
52 | this.ErrorCode == other.ErrorCode
53 | && this.StatusCode == other.StatusCode
54 | && this.Msg == other.Msg
55 | && this.Details == other.Details
56 | );
57 | }
58 |
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EventDestinationList.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class EventDestinationList
12 | {
13 | //
14 | // The list of all Event Destinations on this account.
15 | //
16 | [JsonProperty("event_destinations")]
17 | public List EventDestinations { get; set; }
18 | //
19 | // URI of the Event Destinations list API resource.
20 | //
21 | [JsonProperty("uri")]
22 | public Uri Uri { get; set; }
23 | //
24 | // URI of the next page, or null if there is no next page.
25 | //
26 | [JsonProperty("next_page_uri")]
27 | public Uri NextPageUri { get; set; }
28 |
29 | public override string ToString()
30 | {
31 | return $"EventDestinationList EventDestinations={ EventDestinations } Uri={ Uri } NextPageUri={ NextPageUri } ";
32 | }
33 |
34 | public override int GetHashCode()
35 | {
36 | unchecked
37 | {
38 | int hash = 17;
39 | hash = hash * 23 + (EventDestinations?.GetHashCode() ?? 0);
40 |
41 | hash = hash * 23 + (Uri?.GetHashCode() ?? 0);
42 |
43 | hash = hash * 23 + (NextPageUri?.GetHashCode() ?? 0);
44 |
45 | return hash;
46 | }
47 | }
48 |
49 |
50 | public override bool Equals(object obj)
51 | {
52 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
53 | {
54 | return false;
55 | }
56 | var other = (EventDestinationList)obj;
57 | return (
58 | this.EventDestinations == other.EventDestinations
59 | && this.Uri == other.Uri
60 | && this.NextPageUri == other.NextPageUri
61 | );
62 | }
63 |
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EventSource.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class EventSource
12 | {
13 | //
14 | // Type of event for which an event subscription will trigger
15 | //
16 | [JsonProperty("type")]
17 | public string Type { get; set; }
18 | //
19 | // URI of the Event Source API resource.
20 | //
21 | [JsonProperty("uri")]
22 | public Uri Uri { get; set; }
23 |
24 | public override string ToString()
25 | {
26 | return $"EventSource Type={ Type } Uri={ Uri } ";
27 | }
28 |
29 | public override int GetHashCode()
30 | {
31 | unchecked
32 | {
33 | int hash = 17;
34 | hash = hash * 23 + (Type?.GetHashCode() ?? 0);
35 |
36 | hash = hash * 23 + (Uri?.GetHashCode() ?? 0);
37 |
38 | return hash;
39 | }
40 | }
41 |
42 |
43 | public override bool Equals(object obj)
44 | {
45 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
46 | {
47 | return false;
48 | }
49 | var other = (EventSource)obj;
50 | return (
51 | this.Type == other.Type
52 | && this.Uri == other.Uri
53 | );
54 | }
55 |
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EventSourceCreate.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class EventSourceCreate
12 | {
13 | //
14 | // The unique identifier for the Event Subscription that this Event Source is
15 | // attached to.
16 | //
17 | [JsonProperty("subscription_id")]
18 | public string SubscriptionId { get; set; }
19 | //
20 | // Type of event for which an event subscription will trigger
21 | //
22 | [JsonProperty("type")]
23 | public string Type { get; set; }
24 |
25 | public override string ToString()
26 | {
27 | return $"EventSourceCreate SubscriptionId={ SubscriptionId } Type={ Type } ";
28 | }
29 |
30 | public override int GetHashCode()
31 | {
32 | unchecked
33 | {
34 | int hash = 17;
35 | hash = hash * 23 + (SubscriptionId?.GetHashCode() ?? 0);
36 |
37 | hash = hash * 23 + (Type?.GetHashCode() ?? 0);
38 |
39 | return hash;
40 | }
41 | }
42 |
43 |
44 | public override bool Equals(object obj)
45 | {
46 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
47 | {
48 | return false;
49 | }
50 | var other = (EventSourceCreate)obj;
51 | return (
52 | this.SubscriptionId == other.SubscriptionId
53 | && this.Type == other.Type
54 | );
55 | }
56 |
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EventSourceItem.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | // This is needed instead of Item because the parameters are different.
12 | public class EventSourceItem
13 | {
14 | //
15 | // The unique identifier for the Event Subscription that this Event Source is
16 | // attached to.
17 | //
18 | [JsonProperty("subscription_id")]
19 | public string SubscriptionId { get; set; }
20 | //
21 | // Type of event for which an event subscription will trigger
22 | //
23 | [JsonProperty("type")]
24 | public string Type { get; set; }
25 |
26 | public override string ToString()
27 | {
28 | return $"EventSourceItem SubscriptionId={ SubscriptionId } Type={ Type } ";
29 | }
30 |
31 | public override int GetHashCode()
32 | {
33 | unchecked
34 | {
35 | int hash = 17;
36 | hash = hash * 23 + (SubscriptionId?.GetHashCode() ?? 0);
37 |
38 | hash = hash * 23 + (Type?.GetHashCode() ?? 0);
39 |
40 | return hash;
41 | }
42 | }
43 |
44 |
45 | public override bool Equals(object obj)
46 | {
47 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
48 | {
49 | return false;
50 | }
51 | var other = (EventSourceItem)obj;
52 | return (
53 | this.SubscriptionId == other.SubscriptionId
54 | && this.Type == other.Type
55 | );
56 | }
57 |
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EventSourceList.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class EventSourceList
12 | {
13 | //
14 | // The list of all Event Sources for an Event Subscription
15 | //
16 | [JsonProperty("sources")]
17 | public List Sources { get; set; }
18 | //
19 | // URI of the next page, or null if there is no next page.
20 | //
21 | [JsonProperty("uri")]
22 | public Uri Uri { get; set; }
23 |
24 | public override string ToString()
25 | {
26 | return $"EventSourceList Sources={ Sources } Uri={ Uri } ";
27 | }
28 |
29 | public override int GetHashCode()
30 | {
31 | unchecked
32 | {
33 | int hash = 17;
34 | hash = hash * 23 + (Sources?.GetHashCode() ?? 0);
35 |
36 | hash = hash * 23 + (Uri?.GetHashCode() ?? 0);
37 |
38 | return hash;
39 | }
40 | }
41 |
42 |
43 | public override bool Equals(object obj)
44 | {
45 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
46 | {
47 | return false;
48 | }
49 | var other = (EventSourceList)obj;
50 | return (
51 | this.Sources == other.Sources
52 | && this.Uri == other.Uri
53 | );
54 | }
55 |
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EventSourcePaging.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | // This is needed instead of Paging because the parameters are different. We also don't need the typical pagination params because pagination of this isn't necessary or supported.
12 | public class EventSourcePaging
13 | {
14 | //
15 | // The unique identifier for the Event Subscription that this Event Source is
16 | // attached to.
17 | //
18 | [JsonProperty("subscription_id")]
19 | public string SubscriptionId { get; set; }
20 |
21 | public override string ToString()
22 | {
23 | return $"EventSourcePaging SubscriptionId={ SubscriptionId } ";
24 | }
25 |
26 | public override int GetHashCode()
27 | {
28 | unchecked
29 | {
30 | int hash = 17;
31 | hash = hash * 23 + (SubscriptionId?.GetHashCode() ?? 0);
32 |
33 | return hash;
34 | }
35 | }
36 |
37 |
38 | public override bool Equals(object obj)
39 | {
40 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
41 | {
42 | return false;
43 | }
44 | var other = (EventSourcePaging)obj;
45 | return (
46 | this.SubscriptionId == other.SubscriptionId
47 | );
48 | }
49 |
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EventSourceReplace.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class EventSourceReplace
12 | {
13 | //
14 | // Type of event for which an event subscription will trigger
15 | //
16 | [JsonProperty("type")]
17 | public string Type { get; set; }
18 |
19 | public override string ToString()
20 | {
21 | return $"EventSourceReplace Type={ Type } ";
22 | }
23 |
24 | public override int GetHashCode()
25 | {
26 | unchecked
27 | {
28 | int hash = 17;
29 | hash = hash * 23 + (Type?.GetHashCode() ?? 0);
30 |
31 | return hash;
32 | }
33 | }
34 |
35 |
36 | public override bool Equals(object obj)
37 | {
38 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
39 | {
40 | return false;
41 | }
42 | var other = (EventSourceReplace)obj;
43 | return (
44 | this.Type == other.Type
45 | );
46 | }
47 |
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EventSourceUpdate.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class EventSourceUpdate
12 | {
13 | //
14 | // The unique identifier for the Event Subscription that this Event Source is
15 | // attached to.
16 | //
17 | [JsonProperty("subscription_id")]
18 | public string SubscriptionId { get; set; }
19 | //
20 | // Type of event for which an event subscription will trigger
21 | //
22 | [JsonProperty("type")]
23 | public string Type { get; set; }
24 |
25 | public override string ToString()
26 | {
27 | return $"EventSourceUpdate SubscriptionId={ SubscriptionId } Type={ Type } ";
28 | }
29 |
30 | public override int GetHashCode()
31 | {
32 | unchecked
33 | {
34 | int hash = 17;
35 | hash = hash * 23 + (SubscriptionId?.GetHashCode() ?? 0);
36 |
37 | hash = hash * 23 + (Type?.GetHashCode() ?? 0);
38 |
39 | return hash;
40 | }
41 | }
42 |
43 |
44 | public override bool Equals(object obj)
45 | {
46 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
47 | {
48 | return false;
49 | }
50 | var other = (EventSourceUpdate)obj;
51 | return (
52 | this.SubscriptionId == other.SubscriptionId
53 | && this.Type == other.Type
54 | );
55 | }
56 |
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EventSubscriptionList.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class EventSubscriptionList
12 | {
13 | //
14 | // The list of all Event Subscriptions on this account.
15 | //
16 | [JsonProperty("event_subscriptions")]
17 | public List EventSubscriptions { get; set; }
18 | //
19 | // URI of the Event Subscriptions list API resource.
20 | //
21 | [JsonProperty("uri")]
22 | public Uri Uri { get; set; }
23 | //
24 | // URI of next page, or null if there is no next page.
25 | //
26 | [JsonProperty("next_page_uri")]
27 | public Uri NextPageUri { get; set; }
28 |
29 | public override string ToString()
30 | {
31 | return $"EventSubscriptionList EventSubscriptions={ EventSubscriptions } Uri={ Uri } NextPageUri={ NextPageUri } ";
32 | }
33 |
34 | public override int GetHashCode()
35 | {
36 | unchecked
37 | {
38 | int hash = 17;
39 | hash = hash * 23 + (EventSubscriptions?.GetHashCode() ?? 0);
40 |
41 | hash = hash * 23 + (Uri?.GetHashCode() ?? 0);
42 |
43 | hash = hash * 23 + (NextPageUri?.GetHashCode() ?? 0);
44 |
45 | return hash;
46 | }
47 | }
48 |
49 |
50 | public override bool Equals(object obj)
51 | {
52 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
53 | {
54 | return false;
55 | }
56 | var other = (EventSubscriptionList)obj;
57 | return (
58 | this.EventSubscriptions == other.EventSubscriptions
59 | && this.Uri == other.Uri
60 | && this.NextPageUri == other.NextPageUri
61 | );
62 | }
63 |
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EventTargetCloudwatchLogs.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class EventTargetCloudwatchLogs
12 | {
13 | //
14 | // Configuration for how to authenticate into your AWS account. Exactly one of
15 | // role or creds should be configured.
16 | //
17 | [JsonProperty("auth")]
18 | public AwsAuth Auth { get; set; }
19 | //
20 | // An Amazon Resource Name specifying the CloudWatch Logs group to deposit events
21 | // into.
22 | //
23 | [JsonProperty("log_group_arn")]
24 | public string LogGroupArn { get; set; }
25 |
26 | public override string ToString()
27 | {
28 | return $"EventTargetCloudwatchLogs Auth={ Auth } LogGroupArn={ LogGroupArn } ";
29 | }
30 |
31 | public override int GetHashCode()
32 | {
33 | unchecked
34 | {
35 | int hash = 17;
36 | hash = hash * 23 + (Auth?.GetHashCode() ?? 0);
37 |
38 | hash = hash * 23 + (LogGroupArn?.GetHashCode() ?? 0);
39 |
40 | return hash;
41 | }
42 | }
43 |
44 |
45 | public override bool Equals(object obj)
46 | {
47 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
48 | {
49 | return false;
50 | }
51 | var other = (EventTargetCloudwatchLogs)obj;
52 | return (
53 | this.Auth == other.Auth
54 | && this.LogGroupArn == other.LogGroupArn
55 | );
56 | }
57 |
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EventTargetFirehose.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class EventTargetFirehose
12 | {
13 | //
14 | // Configuration for how to authenticate into your AWS account. Exactly one of
15 | // role or creds should be configured.
16 | //
17 | [JsonProperty("auth")]
18 | public AwsAuth Auth { get; set; }
19 | //
20 | // An Amazon Resource Name specifying the Firehose delivery stream to deposit
21 | // events into.
22 | //
23 | [JsonProperty("delivery_stream_arn")]
24 | public string DeliveryStreamArn { get; set; }
25 |
26 | public override string ToString()
27 | {
28 | return $"EventTargetFirehose Auth={ Auth } DeliveryStreamArn={ DeliveryStreamArn } ";
29 | }
30 |
31 | public override int GetHashCode()
32 | {
33 | unchecked
34 | {
35 | int hash = 17;
36 | hash = hash * 23 + (Auth?.GetHashCode() ?? 0);
37 |
38 | hash = hash * 23 + (DeliveryStreamArn?.GetHashCode() ?? 0);
39 |
40 | return hash;
41 | }
42 | }
43 |
44 |
45 | public override bool Equals(object obj)
46 | {
47 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
48 | {
49 | return false;
50 | }
51 | var other = (EventTargetFirehose)obj;
52 | return (
53 | this.Auth == other.Auth
54 | && this.DeliveryStreamArn == other.DeliveryStreamArn
55 | );
56 | }
57 |
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/EventTargetKinesis.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class EventTargetKinesis
12 | {
13 | //
14 | // Configuration for how to authenticate into your AWS account. Exactly one of
15 | // role or creds should be configured.
16 | //
17 | [JsonProperty("auth")]
18 | public AwsAuth Auth { get; set; }
19 | //
20 | // An Amazon Resource Name specifying the Kinesis stream to deposit events into.
21 | //
22 | [JsonProperty("stream_arn")]
23 | public string StreamArn { get; set; }
24 |
25 | public override string ToString()
26 | {
27 | return $"EventTargetKinesis Auth={ Auth } StreamArn={ StreamArn } ";
28 | }
29 |
30 | public override int GetHashCode()
31 | {
32 | unchecked
33 | {
34 | int hash = 17;
35 | hash = hash * 23 + (Auth?.GetHashCode() ?? 0);
36 |
37 | hash = hash * 23 + (StreamArn?.GetHashCode() ?? 0);
38 |
39 | return hash;
40 | }
41 | }
42 |
43 |
44 | public override bool Equals(object obj)
45 | {
46 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
47 | {
48 | return false;
49 | }
50 | var other = (EventTargetKinesis)obj;
51 | return (
52 | this.Auth == other.Auth
53 | && this.StreamArn == other.StreamArn
54 | );
55 | }
56 |
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/FailoverBackendCreate.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class FailoverBackendCreate
12 | {
13 | //
14 | // human-readable description of this backend. Optional
15 | //
16 | [JsonProperty("description")]
17 | public string Description { get; set; }
18 | //
19 | // arbitrary user-defined machine-readable data of this backend. Optional
20 | //
21 | [JsonProperty("metadata")]
22 | public string Metadata { get; set; }
23 | //
24 | // the ids of the child backends in order
25 | //
26 | [JsonProperty("backends")]
27 | public List Backends { get; set; }
28 |
29 | public override string ToString()
30 | {
31 | return $"FailoverBackendCreate Description={ Description } Metadata={ Metadata } Backends={ Backends } ";
32 | }
33 |
34 | public override int GetHashCode()
35 | {
36 | unchecked
37 | {
38 | int hash = 17;
39 | hash = hash * 23 + (Description?.GetHashCode() ?? 0);
40 |
41 | hash = hash * 23 + (Metadata?.GetHashCode() ?? 0);
42 |
43 | hash = hash * 23 + (Backends?.GetHashCode() ?? 0);
44 |
45 | return hash;
46 | }
47 | }
48 |
49 |
50 | public override bool Equals(object obj)
51 | {
52 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
53 | {
54 | return false;
55 | }
56 | var other = (FailoverBackendCreate)obj;
57 | return (
58 | this.Description == other.Description
59 | && this.Metadata == other.Metadata
60 | && this.Backends == other.Backends
61 | );
62 | }
63 |
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/FailoverBackendList.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class FailoverBackendList
12 | {
13 | //
14 | // the list of all Failover backends on this account
15 | //
16 | [JsonProperty("backends")]
17 | public List Backends { get; set; }
18 | //
19 | // URI of the Failover backends list API resource
20 | //
21 | [JsonProperty("uri")]
22 | public Uri Uri { get; set; }
23 | //
24 | // URI of the next page, or null if there is no next page
25 | //
26 | [JsonProperty("next_page_uri")]
27 | public Uri NextPageUri { get; set; }
28 |
29 | public override string ToString()
30 | {
31 | return $"FailoverBackendList Backends={ Backends } Uri={ Uri } NextPageUri={ NextPageUri } ";
32 | }
33 |
34 | public override int GetHashCode()
35 | {
36 | unchecked
37 | {
38 | int hash = 17;
39 | hash = hash * 23 + (Backends?.GetHashCode() ?? 0);
40 |
41 | hash = hash * 23 + (Uri?.GetHashCode() ?? 0);
42 |
43 | hash = hash * 23 + (NextPageUri?.GetHashCode() ?? 0);
44 |
45 | return hash;
46 | }
47 | }
48 |
49 |
50 | public override bool Equals(object obj)
51 | {
52 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
53 | {
54 | return false;
55 | }
56 | var other = (FailoverBackendList)obj;
57 | return (
58 | this.Backends == other.Backends
59 | && this.Uri == other.Uri
60 | && this.NextPageUri == other.NextPageUri
61 | );
62 | }
63 |
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/HttpResponseBackendList.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class HttpResponseBackendList
12 | {
13 | [JsonProperty("backends")]
14 | public List Backends { get; set; }
15 | [JsonProperty("uri")]
16 | public Uri Uri { get; set; }
17 | [JsonProperty("next_page_uri")]
18 | public Uri NextPageUri { get; set; }
19 |
20 | public override string ToString()
21 | {
22 | return $"HttpResponseBackendList Backends={ Backends } Uri={ Uri } NextPageUri={ NextPageUri } ";
23 | }
24 |
25 | public override int GetHashCode()
26 | {
27 | unchecked
28 | {
29 | int hash = 17;
30 | hash = hash * 23 + (Backends?.GetHashCode() ?? 0);
31 |
32 | hash = hash * 23 + (Uri?.GetHashCode() ?? 0);
33 |
34 | hash = hash * 23 + (NextPageUri?.GetHashCode() ?? 0);
35 |
36 | return hash;
37 | }
38 | }
39 |
40 |
41 | public override bool Equals(object obj)
42 | {
43 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
44 | {
45 | return false;
46 | }
47 | var other = (HttpResponseBackendList)obj;
48 | return (
49 | this.Backends == other.Backends
50 | && this.Uri == other.Uri
51 | && this.NextPageUri == other.NextPageUri
52 | );
53 | }
54 |
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/HttpsEdgeList.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class HttpsEdgeList
12 | {
13 | //
14 | // the list of all HTTPS Edges on this account
15 | //
16 | [JsonProperty("https_edges")]
17 | public List HttpsEdges { get; set; }
18 | //
19 | // URI of the HTTPS Edge list API resource
20 | //
21 | [JsonProperty("uri")]
22 | public Uri Uri { get; set; }
23 | //
24 | // URI of the next page, or null if there is no next page
25 | //
26 | [JsonProperty("next_page_uri")]
27 | public Uri NextPageUri { get; set; }
28 |
29 | public override string ToString()
30 | {
31 | return $"HttpsEdgeList HttpsEdges={ HttpsEdges } Uri={ Uri } NextPageUri={ NextPageUri } ";
32 | }
33 |
34 | public override int GetHashCode()
35 | {
36 | unchecked
37 | {
38 | int hash = 17;
39 | hash = hash * 23 + (HttpsEdges?.GetHashCode() ?? 0);
40 |
41 | hash = hash * 23 + (Uri?.GetHashCode() ?? 0);
42 |
43 | hash = hash * 23 + (NextPageUri?.GetHashCode() ?? 0);
44 |
45 | return hash;
46 | }
47 | }
48 |
49 |
50 | public override bool Equals(object obj)
51 | {
52 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
53 | {
54 | return false;
55 | }
56 | var other = (HttpsEdgeList)obj;
57 | return (
58 | this.HttpsEdges == other.HttpsEdges
59 | && this.Uri == other.Uri
60 | && this.NextPageUri == other.NextPageUri
61 | );
62 | }
63 |
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/IdentityProvider.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class IdentityProvider
12 | {
13 | //
14 | // name of the identity provider (e.g. Google)
15 | //
16 | [JsonProperty("name")]
17 | public string Name { get; set; }
18 | //
19 | // URL of the identity provider (e.g. https://accounts.google.com)
21 | //
22 | [JsonProperty("url")]
23 | public string Url { get; set; }
24 |
25 | public override string ToString()
26 | {
27 | return $"IdentityProvider Name={ Name } Url={ Url } ";
28 | }
29 |
30 | public override int GetHashCode()
31 | {
32 | unchecked
33 | {
34 | int hash = 17;
35 | hash = hash * 23 + (Name?.GetHashCode() ?? 0);
36 |
37 | hash = hash * 23 + (Url?.GetHashCode() ?? 0);
38 |
39 | return hash;
40 | }
41 | }
42 |
43 |
44 | public override bool Equals(object obj)
45 | {
46 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
47 | {
48 | return false;
49 | }
50 | var other = (IdentityProvider)obj;
51 | return (
52 | this.Name == other.Name
53 | && this.Url == other.Url
54 | );
55 | }
56 |
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/IpPolicyCreate.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class IpPolicyCreate
12 | {
13 | //
14 | // human-readable description of the source IPs of this IP policy. optional, max
15 | // 255 bytes.
16 | //
17 | [JsonProperty("description")]
18 | public string Description { get; set; }
19 | //
20 | // arbitrary user-defined machine-readable data of this IP policy. optional, max
21 | // 4096 bytes.
22 | //
23 | [JsonProperty("metadata")]
24 | public string Metadata { get; set; }
25 |
26 | public override string ToString()
27 | {
28 | return $"IpPolicyCreate Description={ Description } Metadata={ Metadata } ";
29 | }
30 |
31 | public override int GetHashCode()
32 | {
33 | unchecked
34 | {
35 | int hash = 17;
36 | hash = hash * 23 + (Description?.GetHashCode() ?? 0);
37 |
38 | hash = hash * 23 + (Metadata?.GetHashCode() ?? 0);
39 |
40 | return hash;
41 | }
42 | }
43 |
44 |
45 | public override bool Equals(object obj)
46 | {
47 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
48 | {
49 | return false;
50 | }
51 | var other = (IpPolicyCreate)obj;
52 | return (
53 | this.Description == other.Description
54 | && this.Metadata == other.Metadata
55 | );
56 | }
57 |
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/IpPolicyList.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class IpPolicyList
12 | {
13 | //
14 | // the list of all IP policies on this account
15 | //
16 | [JsonProperty("ip_policies")]
17 | public List IpPolicies { get; set; }
18 | //
19 | // URI of the IP policy list API resource
20 | //
21 | [JsonProperty("uri")]
22 | public Uri Uri { get; set; }
23 | //
24 | // URI of the next page, or null if there is no next page
25 | //
26 | [JsonProperty("next_page_uri")]
27 | public Uri NextPageUri { get; set; }
28 |
29 | public override string ToString()
30 | {
31 | return $"IpPolicyList IpPolicies={ IpPolicies } Uri={ Uri } NextPageUri={ NextPageUri } ";
32 | }
33 |
34 | public override int GetHashCode()
35 | {
36 | unchecked
37 | {
38 | int hash = 17;
39 | hash = hash * 23 + (IpPolicies?.GetHashCode() ?? 0);
40 |
41 | hash = hash * 23 + (Uri?.GetHashCode() ?? 0);
42 |
43 | hash = hash * 23 + (NextPageUri?.GetHashCode() ?? 0);
44 |
45 | return hash;
46 | }
47 | }
48 |
49 |
50 | public override bool Equals(object obj)
51 | {
52 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
53 | {
54 | return false;
55 | }
56 | var other = (IpPolicyList)obj;
57 | return (
58 | this.IpPolicies == other.IpPolicies
59 | && this.Uri == other.Uri
60 | && this.NextPageUri == other.NextPageUri
61 | );
62 | }
63 |
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/IpPolicyRuleList.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class IpPolicyRuleList
12 | {
13 | //
14 | // the list of all IP policy rules on this account
15 | //
16 | [JsonProperty("ip_policy_rules")]
17 | public List IpPolicyRules { get; set; }
18 | //
19 | // URI of the IP policy rule list API resource
20 | //
21 | [JsonProperty("uri")]
22 | public Uri Uri { get; set; }
23 | //
24 | // URI of the next page, or null if there is no next page
25 | //
26 | [JsonProperty("next_page_uri")]
27 | public Uri NextPageUri { get; set; }
28 |
29 | public override string ToString()
30 | {
31 | return $"IpPolicyRuleList IpPolicyRules={ IpPolicyRules } Uri={ Uri } NextPageUri={ NextPageUri } ";
32 | }
33 |
34 | public override int GetHashCode()
35 | {
36 | unchecked
37 | {
38 | int hash = 17;
39 | hash = hash * 23 + (IpPolicyRules?.GetHashCode() ?? 0);
40 |
41 | hash = hash * 23 + (Uri?.GetHashCode() ?? 0);
42 |
43 | hash = hash * 23 + (NextPageUri?.GetHashCode() ?? 0);
44 |
45 | return hash;
46 | }
47 | }
48 |
49 |
50 | public override bool Equals(object obj)
51 | {
52 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
53 | {
54 | return false;
55 | }
56 | var other = (IpPolicyRuleList)obj;
57 | return (
58 | this.IpPolicyRules == other.IpPolicyRules
59 | && this.Uri == other.Uri
60 | && this.NextPageUri == other.NextPageUri
61 | );
62 | }
63 |
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/IpPolicyUpdate.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class IpPolicyUpdate : HasId
12 | {
13 | [JsonProperty("id")]
14 | public string Id { get; set; }
15 | //
16 | // human-readable description of the source IPs of this IP policy. optional, max
17 | // 255 bytes.
18 | //
19 | [JsonProperty("description")]
20 | public string Description { get; set; }
21 | //
22 | // arbitrary user-defined machine-readable data of this IP policy. optional, max
23 | // 4096 bytes.
24 | //
25 | [JsonProperty("metadata")]
26 | public string Metadata { get; set; }
27 |
28 | public override string ToString()
29 | {
30 | return $"IpPolicyUpdate Id={ Id } Description={ Description } Metadata={ Metadata } ";
31 | }
32 |
33 | public override int GetHashCode()
34 | {
35 | unchecked
36 | {
37 | int hash = 17;
38 | hash = hash * 23 + (Id?.GetHashCode() ?? 0);
39 |
40 | hash = hash * 23 + (Description?.GetHashCode() ?? 0);
41 |
42 | hash = hash * 23 + (Metadata?.GetHashCode() ?? 0);
43 |
44 | return hash;
45 | }
46 | }
47 |
48 |
49 | public override bool Equals(object obj)
50 | {
51 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
52 | {
53 | return false;
54 | }
55 | var other = (IpPolicyUpdate)obj;
56 | return (
57 | this.Id == other.Id
58 | && this.Description == other.Description
59 | && this.Metadata == other.Metadata
60 | );
61 | }
62 |
63 | }
64 | }
65 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/IpRestrictionList.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class IpRestrictionList
12 | {
13 | //
14 | // the list of all IP restrictions on this account
15 | //
16 | [JsonProperty("ip_restrictions")]
17 | public List IpRestrictions { get; set; }
18 | //
19 | // URI of the IP restrictions list API resource
20 | //
21 | [JsonProperty("uri")]
22 | public Uri Uri { get; set; }
23 | //
24 | // URI of the next page, or null if there is no next page
25 | //
26 | [JsonProperty("next_page_uri")]
27 | public Uri NextPageUri { get; set; }
28 |
29 | public override string ToString()
30 | {
31 | return $"IpRestrictionList IpRestrictions={ IpRestrictions } Uri={ Uri } NextPageUri={ NextPageUri } ";
32 | }
33 |
34 | public override int GetHashCode()
35 | {
36 | unchecked
37 | {
38 | int hash = 17;
39 | hash = hash * 23 + (IpRestrictions?.GetHashCode() ?? 0);
40 |
41 | hash = hash * 23 + (Uri?.GetHashCode() ?? 0);
42 |
43 | hash = hash * 23 + (NextPageUri?.GetHashCode() ?? 0);
44 |
45 | return hash;
46 | }
47 | }
48 |
49 |
50 | public override bool Equals(object obj)
51 | {
52 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
53 | {
54 | return false;
55 | }
56 | var other = (IpRestrictionList)obj;
57 | return (
58 | this.IpRestrictions == other.IpRestrictions
59 | && this.Uri == other.Uri
60 | && this.NextPageUri == other.NextPageUri
61 | );
62 | }
63 |
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/Item.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class Item : HasId
12 | {
13 | //
14 | // a resource identifier
15 | //
16 | [JsonProperty("id")]
17 | public string Id { get; set; }
18 |
19 | public override string ToString()
20 | {
21 | return $"Item Id={ Id } ";
22 | }
23 |
24 | public override int GetHashCode()
25 | {
26 | unchecked
27 | {
28 | int hash = 17;
29 | hash = hash * 23 + (Id?.GetHashCode() ?? 0);
30 |
31 | return hash;
32 | }
33 | }
34 |
35 |
36 | public override bool Equals(object obj)
37 | {
38 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
39 | {
40 | return false;
41 | }
42 | var other = (Item)obj;
43 | return (
44 | this.Id == other.Id
45 | );
46 | }
47 |
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/Paging.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class Paging
12 | {
13 | [JsonProperty("before_id")]
14 | public string BeforeId { get; set; }
15 | [JsonProperty("limit")]
16 | public string Limit { get; set; }
17 |
18 | public override string ToString()
19 | {
20 | return $"Paging BeforeId={ BeforeId } Limit={ Limit } ";
21 | }
22 |
23 | public override int GetHashCode()
24 | {
25 | unchecked
26 | {
27 | int hash = 17;
28 | hash = hash * 23 + (BeforeId?.GetHashCode() ?? 0);
29 |
30 | hash = hash * 23 + (Limit?.GetHashCode() ?? 0);
31 |
32 | return hash;
33 | }
34 | }
35 |
36 |
37 | public override bool Equals(object obj)
38 | {
39 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
40 | {
41 | return false;
42 | }
43 | var other = (Paging)obj;
44 | return (
45 | this.BeforeId == other.BeforeId
46 | && this.Limit == other.Limit
47 | );
48 | }
49 |
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/Ref.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class Ref : HasId
12 | {
13 | //
14 | // a resource identifier
15 | //
16 | [JsonProperty("id")]
17 | public string Id { get; set; }
18 | //
19 | // a uri for locating a resource
20 | //
21 | [JsonProperty("uri")]
22 | public Uri Uri { get; set; }
23 |
24 | public override string ToString()
25 | {
26 | return $"Ref Id={ Id } Uri={ Uri } ";
27 | }
28 |
29 | public override int GetHashCode()
30 | {
31 | unchecked
32 | {
33 | int hash = 17;
34 | hash = hash * 23 + (Id?.GetHashCode() ?? 0);
35 |
36 | hash = hash * 23 + (Uri?.GetHashCode() ?? 0);
37 |
38 | return hash;
39 | }
40 | }
41 |
42 |
43 | public override bool Equals(object obj)
44 | {
45 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
46 | {
47 | return false;
48 | }
49 | var other = (Ref)obj;
50 | return (
51 | this.Id == other.Id
52 | && this.Uri == other.Uri
53 | );
54 | }
55 |
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/ReservedAddrList.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class ReservedAddrList
12 | {
13 | //
14 | // the list of all reserved addresses on this account
15 | //
16 | [JsonProperty("reserved_addrs")]
17 | public List ReservedAddrs { get; set; }
18 | //
19 | // URI of the reserved address list API resource
20 | //
21 | [JsonProperty("uri")]
22 | public Uri Uri { get; set; }
23 | //
24 | // URI of the next page, or null if there is no next page
25 | //
26 | [JsonProperty("next_page_uri")]
27 | public Uri NextPageUri { get; set; }
28 |
29 | public override string ToString()
30 | {
31 | return $"ReservedAddrList ReservedAddrs={ ReservedAddrs } Uri={ Uri } NextPageUri={ NextPageUri } ";
32 | }
33 |
34 | public override int GetHashCode()
35 | {
36 | unchecked
37 | {
38 | int hash = 17;
39 | hash = hash * 23 + (ReservedAddrs?.GetHashCode() ?? 0);
40 |
41 | hash = hash * 23 + (Uri?.GetHashCode() ?? 0);
42 |
43 | hash = hash * 23 + (NextPageUri?.GetHashCode() ?? 0);
44 |
45 | return hash;
46 | }
47 | }
48 |
49 |
50 | public override bool Equals(object obj)
51 | {
52 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
53 | {
54 | return false;
55 | }
56 | var other = (ReservedAddrList)obj;
57 | return (
58 | this.ReservedAddrs == other.ReservedAddrs
59 | && this.Uri == other.Uri
60 | && this.NextPageUri == other.NextPageUri
61 | );
62 | }
63 |
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/ReservedAddrUpdate.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class ReservedAddrUpdate : HasId
12 | {
13 | [JsonProperty("id")]
14 | public string Id { get; set; }
15 | //
16 | // human-readable description of what this reserved address will be used for
17 | //
18 | [JsonProperty("description")]
19 | public string Description { get; set; }
20 | //
21 | // arbitrary user-defined machine-readable data of this reserved address. Optional,
22 | // max 4096 bytes.
23 | //
24 | [JsonProperty("metadata")]
25 | public string Metadata { get; set; }
26 |
27 | public override string ToString()
28 | {
29 | return $"ReservedAddrUpdate Id={ Id } Description={ Description } Metadata={ Metadata } ";
30 | }
31 |
32 | public override int GetHashCode()
33 | {
34 | unchecked
35 | {
36 | int hash = 17;
37 | hash = hash * 23 + (Id?.GetHashCode() ?? 0);
38 |
39 | hash = hash * 23 + (Description?.GetHashCode() ?? 0);
40 |
41 | hash = hash * 23 + (Metadata?.GetHashCode() ?? 0);
42 |
43 | return hash;
44 | }
45 | }
46 |
47 |
48 | public override bool Equals(object obj)
49 | {
50 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
51 | {
52 | return false;
53 | }
54 | var other = (ReservedAddrUpdate)obj;
55 | return (
56 | this.Id == other.Id
57 | && this.Description == other.Description
58 | && this.Metadata == other.Metadata
59 | );
60 | }
61 |
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/ReservedDomainCertPolicy.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class ReservedDomainCertPolicy
12 | {
13 | //
14 | // certificate authority to request certificates from. The only supported value is
15 | // letsencrypt.
16 | //
17 | [JsonProperty("authority")]
18 | public string Authority { get; set; }
19 | //
20 | // type of private key to use when requesting certificates. Defaults to ecdsa, can
21 | // be either rsa or ecdsa.
22 | //
23 | [JsonProperty("private_key_type")]
24 | public string PrivateKeyType { get; set; }
25 |
26 | public override string ToString()
27 | {
28 | return $"ReservedDomainCertPolicy Authority={ Authority } PrivateKeyType={ PrivateKeyType } ";
29 | }
30 |
31 | public override int GetHashCode()
32 | {
33 | unchecked
34 | {
35 | int hash = 17;
36 | hash = hash * 23 + (Authority?.GetHashCode() ?? 0);
37 |
38 | hash = hash * 23 + (PrivateKeyType?.GetHashCode() ?? 0);
39 |
40 | return hash;
41 | }
42 | }
43 |
44 |
45 | public override bool Equals(object obj)
46 | {
47 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
48 | {
49 | return false;
50 | }
51 | var other = (ReservedDomainCertPolicy)obj;
52 | return (
53 | this.Authority == other.Authority
54 | && this.PrivateKeyType == other.PrivateKeyType
55 | );
56 | }
57 |
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/ReservedDomainCertStatus.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class ReservedDomainCertStatus
12 | {
13 | //
14 | // timestamp when the next renewal will be requested, RFC 3339 format
15 | //
16 | [JsonProperty("renews_at")]
17 | public string RenewsAt { get; set; }
18 | //
19 | // status of the certificate provisioning job, or null if the certificiate isn't
20 | // being provisioned or renewed
21 | //
22 | [JsonProperty("provisioning_job")]
23 | public ReservedDomainCertJob ProvisioningJob { get; set; }
24 |
25 | public override string ToString()
26 | {
27 | return $"ReservedDomainCertStatus RenewsAt={ RenewsAt } ProvisioningJob={ ProvisioningJob } ";
28 | }
29 |
30 | public override int GetHashCode()
31 | {
32 | unchecked
33 | {
34 | int hash = 17;
35 | hash = hash * 23 + (RenewsAt?.GetHashCode() ?? 0);
36 |
37 | hash = hash * 23 + (ProvisioningJob?.GetHashCode() ?? 0);
38 |
39 | return hash;
40 | }
41 | }
42 |
43 |
44 | public override bool Equals(object obj)
45 | {
46 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
47 | {
48 | return false;
49 | }
50 | var other = (ReservedDomainCertStatus)obj;
51 | return (
52 | this.RenewsAt == other.RenewsAt
53 | && this.ProvisioningJob == other.ProvisioningJob
54 | );
55 | }
56 |
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/ReservedDomainList.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class ReservedDomainList
12 | {
13 | //
14 | // the list of all reserved domains on this account
15 | //
16 | [JsonProperty("reserved_domains")]
17 | public List ReservedDomains { get; set; }
18 | //
19 | // URI of the reserved domain list API resource
20 | //
21 | [JsonProperty("uri")]
22 | public Uri Uri { get; set; }
23 | //
24 | // URI of the next page, or null if there is no next page
25 | //
26 | [JsonProperty("next_page_uri")]
27 | public Uri NextPageUri { get; set; }
28 |
29 | public override string ToString()
30 | {
31 | return $"ReservedDomainList ReservedDomains={ ReservedDomains } Uri={ Uri } NextPageUri={ NextPageUri } ";
32 | }
33 |
34 | public override int GetHashCode()
35 | {
36 | unchecked
37 | {
38 | int hash = 17;
39 | hash = hash * 23 + (ReservedDomains?.GetHashCode() ?? 0);
40 |
41 | hash = hash * 23 + (Uri?.GetHashCode() ?? 0);
42 |
43 | hash = hash * 23 + (NextPageUri?.GetHashCode() ?? 0);
44 |
45 | return hash;
46 | }
47 | }
48 |
49 |
50 | public override bool Equals(object obj)
51 | {
52 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
53 | {
54 | return false;
55 | }
56 | var other = (ReservedDomainList)obj;
57 | return (
58 | this.ReservedDomains == other.ReservedDomains
59 | && this.Uri == other.Uri
60 | && this.NextPageUri == other.NextPageUri
61 | );
62 | }
63 |
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/SshCertificateAuthorityUpdate.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class SshCertificateAuthorityUpdate : HasId
12 | {
13 | [JsonProperty("id")]
14 | public string Id { get; set; }
15 | //
16 | // human-readable description of this SSH Certificate Authority. optional, max 255
17 | // bytes.
18 | //
19 | [JsonProperty("description")]
20 | public string Description { get; set; }
21 | //
22 | // arbitrary user-defined machine-readable data of this SSH Certificate Authority.
23 | // optional, max 4096 bytes.
24 | //
25 | [JsonProperty("metadata")]
26 | public string Metadata { get; set; }
27 |
28 | public override string ToString()
29 | {
30 | return $"SshCertificateAuthorityUpdate Id={ Id } Description={ Description } Metadata={ Metadata } ";
31 | }
32 |
33 | public override int GetHashCode()
34 | {
35 | unchecked
36 | {
37 | int hash = 17;
38 | hash = hash * 23 + (Id?.GetHashCode() ?? 0);
39 |
40 | hash = hash * 23 + (Description?.GetHashCode() ?? 0);
41 |
42 | hash = hash * 23 + (Metadata?.GetHashCode() ?? 0);
43 |
44 | return hash;
45 | }
46 | }
47 |
48 |
49 | public override bool Equals(object obj)
50 | {
51 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
52 | {
53 | return false;
54 | }
55 | var other = (SshCertificateAuthorityUpdate)obj;
56 | return (
57 | this.Id == other.Id
58 | && this.Description == other.Description
59 | && this.Metadata == other.Metadata
60 | );
61 | }
62 |
63 | }
64 | }
65 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/SshCredentialList.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class SshCredentialList
12 | {
13 | //
14 | // the list of all ssh credentials on this account
15 | //
16 | [JsonProperty("ssh_credentials")]
17 | public List SshCredentials { get; set; }
18 | //
19 | // URI of the ssh credential list API resource
20 | //
21 | [JsonProperty("uri")]
22 | public Uri Uri { get; set; }
23 | //
24 | // URI of the next page, or null if there is no next page
25 | //
26 | [JsonProperty("next_page_uri")]
27 | public Uri NextPageUri { get; set; }
28 |
29 | public override string ToString()
30 | {
31 | return $"SshCredentialList SshCredentials={ SshCredentials } Uri={ Uri } NextPageUri={ NextPageUri } ";
32 | }
33 |
34 | public override int GetHashCode()
35 | {
36 | unchecked
37 | {
38 | int hash = 17;
39 | hash = hash * 23 + (SshCredentials?.GetHashCode() ?? 0);
40 |
41 | hash = hash * 23 + (Uri?.GetHashCode() ?? 0);
42 |
43 | hash = hash * 23 + (NextPageUri?.GetHashCode() ?? 0);
44 |
45 | return hash;
46 | }
47 | }
48 |
49 |
50 | public override bool Equals(object obj)
51 | {
52 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
53 | {
54 | return false;
55 | }
56 | var other = (SshCredentialList)obj;
57 | return (
58 | this.SshCredentials == other.SshCredentials
59 | && this.Uri == other.Uri
60 | && this.NextPageUri == other.NextPageUri
61 | );
62 | }
63 |
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/SshHostCertificateList.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class SshHostCertificateList
12 | {
13 | //
14 | // the list of all ssh host certificates on this account
15 | //
16 | [JsonProperty("ssh_host_certificates")]
17 | public List SshHostCertificates { get; set; }
18 | //
19 | // URI of the ssh host certificates list API resource
20 | //
21 | [JsonProperty("uri")]
22 | public Uri Uri { get; set; }
23 | //
24 | // URI of the next page, or null if there is no next page
25 | //
26 | [JsonProperty("next_page_uri")]
27 | public Uri NextPageUri { get; set; }
28 |
29 | public override string ToString()
30 | {
31 | return $"SshHostCertificateList SshHostCertificates={ SshHostCertificates } Uri={ Uri } NextPageUri={ NextPageUri } ";
32 | }
33 |
34 | public override int GetHashCode()
35 | {
36 | unchecked
37 | {
38 | int hash = 17;
39 | hash = hash * 23 + (SshHostCertificates?.GetHashCode() ?? 0);
40 |
41 | hash = hash * 23 + (Uri?.GetHashCode() ?? 0);
42 |
43 | hash = hash * 23 + (NextPageUri?.GetHashCode() ?? 0);
44 |
45 | return hash;
46 | }
47 | }
48 |
49 |
50 | public override bool Equals(object obj)
51 | {
52 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
53 | {
54 | return false;
55 | }
56 | var other = (SshHostCertificateList)obj;
57 | return (
58 | this.SshHostCertificates == other.SshHostCertificates
59 | && this.Uri == other.Uri
60 | && this.NextPageUri == other.NextPageUri
61 | );
62 | }
63 |
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/SshHostCertificateUpdate.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class SshHostCertificateUpdate : HasId
12 | {
13 | [JsonProperty("id")]
14 | public string Id { get; set; }
15 | //
16 | // human-readable description of this SSH Host Certificate. optional, max 255
17 | // bytes.
18 | //
19 | [JsonProperty("description")]
20 | public string Description { get; set; }
21 | //
22 | // arbitrary user-defined machine-readable data of this SSH Host Certificate.
23 | // optional, max 4096 bytes.
24 | //
25 | [JsonProperty("metadata")]
26 | public string Metadata { get; set; }
27 |
28 | public override string ToString()
29 | {
30 | return $"SshHostCertificateUpdate Id={ Id } Description={ Description } Metadata={ Metadata } ";
31 | }
32 |
33 | public override int GetHashCode()
34 | {
35 | unchecked
36 | {
37 | int hash = 17;
38 | hash = hash * 23 + (Id?.GetHashCode() ?? 0);
39 |
40 | hash = hash * 23 + (Description?.GetHashCode() ?? 0);
41 |
42 | hash = hash * 23 + (Metadata?.GetHashCode() ?? 0);
43 |
44 | return hash;
45 | }
46 | }
47 |
48 |
49 | public override bool Equals(object obj)
50 | {
51 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
52 | {
53 | return false;
54 | }
55 | var other = (SshHostCertificateUpdate)obj;
56 | return (
57 | this.Id == other.Id
58 | && this.Description == other.Description
59 | && this.Metadata == other.Metadata
60 | );
61 | }
62 |
63 | }
64 | }
65 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/SshUserCertificateUpdate.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class SshUserCertificateUpdate : HasId
12 | {
13 | [JsonProperty("id")]
14 | public string Id { get; set; }
15 | //
16 | // human-readable description of this SSH User Certificate. optional, max 255
17 | // bytes.
18 | //
19 | [JsonProperty("description")]
20 | public string Description { get; set; }
21 | //
22 | // arbitrary user-defined machine-readable data of this SSH User Certificate.
23 | // optional, max 4096 bytes.
24 | //
25 | [JsonProperty("metadata")]
26 | public string Metadata { get; set; }
27 |
28 | public override string ToString()
29 | {
30 | return $"SshUserCertificateUpdate Id={ Id } Description={ Description } Metadata={ Metadata } ";
31 | }
32 |
33 | public override int GetHashCode()
34 | {
35 | unchecked
36 | {
37 | int hash = 17;
38 | hash = hash * 23 + (Id?.GetHashCode() ?? 0);
39 |
40 | hash = hash * 23 + (Description?.GetHashCode() ?? 0);
41 |
42 | hash = hash * 23 + (Metadata?.GetHashCode() ?? 0);
43 |
44 | return hash;
45 | }
46 | }
47 |
48 |
49 | public override bool Equals(object obj)
50 | {
51 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
52 | {
53 | return false;
54 | }
55 | var other = (SshUserCertificateUpdate)obj;
56 | return (
57 | this.Id == other.Id
58 | && this.Description == other.Description
59 | && this.Metadata == other.Metadata
60 | );
61 | }
62 |
63 | }
64 | }
65 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/StaticBackendList.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class StaticBackendList
12 | {
13 | //
14 | // the list of all static backends on this account
15 | //
16 | [JsonProperty("backends")]
17 | public List Backends { get; set; }
18 | //
19 | // URI of the static backends list API resource
20 | //
21 | [JsonProperty("uri")]
22 | public Uri Uri { get; set; }
23 | //
24 | // URI of the next page, or null if there is no next page
25 | //
26 | [JsonProperty("next_page_uri")]
27 | public Uri NextPageUri { get; set; }
28 |
29 | public override string ToString()
30 | {
31 | return $"StaticBackendList Backends={ Backends } Uri={ Uri } NextPageUri={ NextPageUri } ";
32 | }
33 |
34 | public override int GetHashCode()
35 | {
36 | unchecked
37 | {
38 | int hash = 17;
39 | hash = hash * 23 + (Backends?.GetHashCode() ?? 0);
40 |
41 | hash = hash * 23 + (Uri?.GetHashCode() ?? 0);
42 |
43 | hash = hash * 23 + (NextPageUri?.GetHashCode() ?? 0);
44 |
45 | return hash;
46 | }
47 | }
48 |
49 |
50 | public override bool Equals(object obj)
51 | {
52 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
53 | {
54 | return false;
55 | }
56 | var other = (StaticBackendList)obj;
57 | return (
58 | this.Backends == other.Backends
59 | && this.Uri == other.Uri
60 | && this.NextPageUri == other.NextPageUri
61 | );
62 | }
63 |
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/StaticBackendTls.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class StaticBackendTls
12 | {
13 | //
14 | // if TLS is checked
15 | //
16 | [JsonProperty("enabled")]
17 | public bool Enabled { get; set; }
18 |
19 | public override string ToString()
20 | {
21 | return $"StaticBackendTls Enabled={ Enabled } ";
22 | }
23 |
24 | public override int GetHashCode()
25 | {
26 | unchecked
27 | {
28 | int hash = 17;
29 | hash = hash * 23 + Convert.ToInt32(Enabled);
30 | return hash;
31 | }
32 | }
33 |
34 |
35 | public override bool Equals(object obj)
36 | {
37 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
38 | {
39 | return false;
40 | }
41 | var other = (StaticBackendTls)obj;
42 | return (
43 | this.Enabled == other.Enabled
44 | );
45 | }
46 |
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/TcpEdgeList.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class TcpEdgeList
12 | {
13 | //
14 | // the list of all TCP Edges on this account
15 | //
16 | [JsonProperty("tcp_edges")]
17 | public List TcpEdges { get; set; }
18 | //
19 | // URI of the TCP Edge list API resource
20 | //
21 | [JsonProperty("uri")]
22 | public Uri Uri { get; set; }
23 | //
24 | // URI of the next page, or null if there is no next page
25 | //
26 | [JsonProperty("next_page_uri")]
27 | public Uri NextPageUri { get; set; }
28 |
29 | public override string ToString()
30 | {
31 | return $"TcpEdgeList TcpEdges={ TcpEdges } Uri={ Uri } NextPageUri={ NextPageUri } ";
32 | }
33 |
34 | public override int GetHashCode()
35 | {
36 | unchecked
37 | {
38 | int hash = 17;
39 | hash = hash * 23 + (TcpEdges?.GetHashCode() ?? 0);
40 |
41 | hash = hash * 23 + (Uri?.GetHashCode() ?? 0);
42 |
43 | hash = hash * 23 + (NextPageUri?.GetHashCode() ?? 0);
44 |
45 | return hash;
46 | }
47 | }
48 |
49 |
50 | public override bool Equals(object obj)
51 | {
52 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
53 | {
54 | return false;
55 | }
56 | var other = (TcpEdgeList)obj;
57 | return (
58 | this.TcpEdges == other.TcpEdges
59 | && this.Uri == other.Uri
60 | && this.NextPageUri == other.NextPageUri
61 | );
62 | }
63 |
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/TlsCertificateList.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class TlsCertificateList
12 | {
13 | //
14 | // the list of all TLS certificates on this account
15 | //
16 | [JsonProperty("tls_certificates")]
17 | public List TlsCertificates { get; set; }
18 | //
19 | // URI of the TLS certificates list API resource
20 | //
21 | [JsonProperty("uri")]
22 | public Uri Uri { get; set; }
23 | //
24 | // URI of the next page, or null if there is no next page
25 | //
26 | [JsonProperty("next_page_uri")]
27 | public Uri NextPageUri { get; set; }
28 |
29 | public override string ToString()
30 | {
31 | return $"TlsCertificateList TlsCertificates={ TlsCertificates } Uri={ Uri } NextPageUri={ NextPageUri } ";
32 | }
33 |
34 | public override int GetHashCode()
35 | {
36 | unchecked
37 | {
38 | int hash = 17;
39 | hash = hash * 23 + (TlsCertificates?.GetHashCode() ?? 0);
40 |
41 | hash = hash * 23 + (Uri?.GetHashCode() ?? 0);
42 |
43 | hash = hash * 23 + (NextPageUri?.GetHashCode() ?? 0);
44 |
45 | return hash;
46 | }
47 | }
48 |
49 |
50 | public override bool Equals(object obj)
51 | {
52 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
53 | {
54 | return false;
55 | }
56 | var other = (TlsCertificateList)obj;
57 | return (
58 | this.TlsCertificates == other.TlsCertificates
59 | && this.Uri == other.Uri
60 | && this.NextPageUri == other.NextPageUri
61 | );
62 | }
63 |
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/TlsCertificateSaNs.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class TlsCertificateSaNs
12 | {
13 | //
14 | // set of additional domains (including wildcards) this TLS certificate is valid
15 | // for
16 | //
17 | [JsonProperty("dns_names")]
18 | public List DnsNames { get; set; }
19 | //
20 | // set of IP addresses this TLS certificate is also valid for
21 | //
22 | [JsonProperty("ips")]
23 | public List Ips { get; set; }
24 |
25 | public override string ToString()
26 | {
27 | return $"TlsCertificateSaNs DnsNames={ DnsNames } Ips={ Ips } ";
28 | }
29 |
30 | public override int GetHashCode()
31 | {
32 | unchecked
33 | {
34 | int hash = 17;
35 | hash = hash * 23 + (DnsNames?.GetHashCode() ?? 0);
36 |
37 | hash = hash * 23 + (Ips?.GetHashCode() ?? 0);
38 |
39 | return hash;
40 | }
41 | }
42 |
43 |
44 | public override bool Equals(object obj)
45 | {
46 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
47 | {
48 | return false;
49 | }
50 | var other = (TlsCertificateSaNs)obj;
51 | return (
52 | this.DnsNames == other.DnsNames
53 | && this.Ips == other.Ips
54 | );
55 | }
56 |
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/TlsCertificateUpdate.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class TlsCertificateUpdate : HasId
12 | {
13 | [JsonProperty("id")]
14 | public string Id { get; set; }
15 | //
16 | // human-readable description of this TLS certificate. optional, max 255 bytes.
17 | //
18 | [JsonProperty("description")]
19 | public string Description { get; set; }
20 | //
21 | // arbitrary user-defined machine-readable data of this TLS certificate. optional,
22 | // max 4096 bytes.
23 | //
24 | [JsonProperty("metadata")]
25 | public string Metadata { get; set; }
26 |
27 | public override string ToString()
28 | {
29 | return $"TlsCertificateUpdate Id={ Id } Description={ Description } Metadata={ Metadata } ";
30 | }
31 |
32 | public override int GetHashCode()
33 | {
34 | unchecked
35 | {
36 | int hash = 17;
37 | hash = hash * 23 + (Id?.GetHashCode() ?? 0);
38 |
39 | hash = hash * 23 + (Description?.GetHashCode() ?? 0);
40 |
41 | hash = hash * 23 + (Metadata?.GetHashCode() ?? 0);
42 |
43 | return hash;
44 | }
45 | }
46 |
47 |
48 | public override bool Equals(object obj)
49 | {
50 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
51 | {
52 | return false;
53 | }
54 | var other = (TlsCertificateUpdate)obj;
55 | return (
56 | this.Id == other.Id
57 | && this.Description == other.Description
58 | && this.Metadata == other.Metadata
59 | );
60 | }
61 |
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/TlsEdgeList.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class TlsEdgeList
12 | {
13 | //
14 | // the list of all TLS Edges on this account
15 | //
16 | [JsonProperty("tls_edges")]
17 | public List TlsEdges { get; set; }
18 | //
19 | // URI of the TLS Edge list API resource
20 | //
21 | [JsonProperty("uri")]
22 | public Uri Uri { get; set; }
23 | //
24 | // URI of the next page, or null if there is no next page
25 | //
26 | [JsonProperty("next_page_uri")]
27 | public Uri NextPageUri { get; set; }
28 |
29 | public override string ToString()
30 | {
31 | return $"TlsEdgeList TlsEdges={ TlsEdges } Uri={ Uri } NextPageUri={ NextPageUri } ";
32 | }
33 |
34 | public override int GetHashCode()
35 | {
36 | unchecked
37 | {
38 | int hash = 17;
39 | hash = hash * 23 + (TlsEdges?.GetHashCode() ?? 0);
40 |
41 | hash = hash * 23 + (Uri?.GetHashCode() ?? 0);
42 |
43 | hash = hash * 23 + (NextPageUri?.GetHashCode() ?? 0);
44 |
45 | return hash;
46 | }
47 | }
48 |
49 |
50 | public override bool Equals(object obj)
51 | {
52 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
53 | {
54 | return false;
55 | }
56 | var other = (TlsEdgeList)obj;
57 | return (
58 | this.TlsEdges == other.TlsEdges
59 | && this.Uri == other.Uri
60 | && this.NextPageUri == other.NextPageUri
61 | );
62 | }
63 |
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/TunnelGroupBackendCreate.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class TunnelGroupBackendCreate
12 | {
13 | //
14 | // human-readable description of this backend. Optional
15 | //
16 | [JsonProperty("description")]
17 | public string Description { get; set; }
18 | //
19 | // arbitrary user-defined machine-readable data of this backend. Optional
20 | //
21 | [JsonProperty("metadata")]
22 | public string Metadata { get; set; }
23 | //
24 | // labels to watch for tunnels on, e.g. app->foo, dc->bar
25 | //
26 | [JsonProperty("labels")]
27 | public Dictionary Labels { get; set; }
28 |
29 | public override string ToString()
30 | {
31 | return $"TunnelGroupBackendCreate Description={ Description } Metadata={ Metadata } Labels={ Labels } ";
32 | }
33 |
34 | public override int GetHashCode()
35 | {
36 | unchecked
37 | {
38 | int hash = 17;
39 | hash = hash * 23 + (Description?.GetHashCode() ?? 0);
40 |
41 | hash = hash * 23 + (Metadata?.GetHashCode() ?? 0);
42 |
43 | hash = hash * 23 + (Labels?.GetHashCode() ?? 0);
44 |
45 | return hash;
46 | }
47 | }
48 |
49 |
50 | public override bool Equals(object obj)
51 | {
52 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
53 | {
54 | return false;
55 | }
56 | var other = (TunnelGroupBackendCreate)obj;
57 | return (
58 | this.Description == other.Description
59 | && this.Metadata == other.Metadata
60 | && this.Labels == other.Labels
61 | );
62 | }
63 |
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/TunnelGroupBackendList.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class TunnelGroupBackendList
12 | {
13 | //
14 | // the list of all TunnelGroup backends on this account
15 | //
16 | [JsonProperty("backends")]
17 | public List Backends { get; set; }
18 | //
19 | // URI of the TunnelGroup backends list API resource
20 | //
21 | [JsonProperty("uri")]
22 | public Uri Uri { get; set; }
23 | //
24 | // URI of the next page, or null if there is no next page
25 | //
26 | [JsonProperty("next_page_uri")]
27 | public Uri NextPageUri { get; set; }
28 |
29 | public override string ToString()
30 | {
31 | return $"TunnelGroupBackendList Backends={ Backends } Uri={ Uri } NextPageUri={ NextPageUri } ";
32 | }
33 |
34 | public override int GetHashCode()
35 | {
36 | unchecked
37 | {
38 | int hash = 17;
39 | hash = hash * 23 + (Backends?.GetHashCode() ?? 0);
40 |
41 | hash = hash * 23 + (Uri?.GetHashCode() ?? 0);
42 |
43 | hash = hash * 23 + (NextPageUri?.GetHashCode() ?? 0);
44 |
45 | return hash;
46 | }
47 | }
48 |
49 |
50 | public override bool Equals(object obj)
51 | {
52 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
53 | {
54 | return false;
55 | }
56 | var other = (TunnelGroupBackendList)obj;
57 | return (
58 | this.Backends == other.Backends
59 | && this.Uri == other.Uri
60 | && this.NextPageUri == other.NextPageUri
61 | );
62 | }
63 |
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/TunnelList.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class TunnelList
12 | {
13 | //
14 | // the list of all online tunnels on this account
15 | //
16 | [JsonProperty("tunnels")]
17 | public List Tunnels { get; set; }
18 | //
19 | // URI of the tunnels list API resource
20 | //
21 | [JsonProperty("uri")]
22 | public Uri Uri { get; set; }
23 | //
24 | // URI of the next page, or null if there is no next page
25 | //
26 | [JsonProperty("next_page_uri")]
27 | public Uri NextPageUri { get; set; }
28 |
29 | public override string ToString()
30 | {
31 | return $"TunnelList Tunnels={ Tunnels } Uri={ Uri } NextPageUri={ NextPageUri } ";
32 | }
33 |
34 | public override int GetHashCode()
35 | {
36 | unchecked
37 | {
38 | int hash = 17;
39 | hash = hash * 23 + (Tunnels?.GetHashCode() ?? 0);
40 |
41 | hash = hash * 23 + (Uri?.GetHashCode() ?? 0);
42 |
43 | hash = hash * 23 + (NextPageUri?.GetHashCode() ?? 0);
44 |
45 | return hash;
46 | }
47 | }
48 |
49 |
50 | public override bool Equals(object obj)
51 | {
52 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
53 | {
54 | return false;
55 | }
56 | var other = (TunnelList)obj;
57 | return (
58 | this.Tunnels == other.Tunnels
59 | && this.Uri == other.Uri
60 | && this.NextPageUri == other.NextPageUri
61 | );
62 | }
63 |
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/TunnelSessionList.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class TunnelSessionList
12 | {
13 | //
14 | // list of all tunnel sessions on this account
15 | //
16 | [JsonProperty("tunnel_sessions")]
17 | public List TunnelSessions { get; set; }
18 | //
19 | // URI to the API resource of the tunnel session list
20 | //
21 | [JsonProperty("uri")]
22 | public Uri Uri { get; set; }
23 | //
24 | // URI of the next page, or null if there is no next page
25 | //
26 | [JsonProperty("next_page_uri")]
27 | public Uri NextPageUri { get; set; }
28 |
29 | public override string ToString()
30 | {
31 | return $"TunnelSessionList TunnelSessions={ TunnelSessions } Uri={ Uri } NextPageUri={ NextPageUri } ";
32 | }
33 |
34 | public override int GetHashCode()
35 | {
36 | unchecked
37 | {
38 | int hash = 17;
39 | hash = hash * 23 + (TunnelSessions?.GetHashCode() ?? 0);
40 |
41 | hash = hash * 23 + (Uri?.GetHashCode() ?? 0);
42 |
43 | hash = hash * 23 + (NextPageUri?.GetHashCode() ?? 0);
44 |
45 | return hash;
46 | }
47 | }
48 |
49 |
50 | public override bool Equals(object obj)
51 | {
52 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
53 | {
54 | return false;
55 | }
56 | var other = (TunnelSessionList)obj;
57 | return (
58 | this.TunnelSessions == other.TunnelSessions
59 | && this.Uri == other.Uri
60 | && this.NextPageUri == other.NextPageUri
61 | );
62 | }
63 |
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/TunnelSessionsUpdate.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class TunnelSessionsUpdate : HasId
12 | {
13 | [JsonProperty("id")]
14 | public string Id { get; set; }
15 |
16 | public override string ToString()
17 | {
18 | return $"TunnelSessionsUpdate Id={ Id } ";
19 | }
20 |
21 | public override int GetHashCode()
22 | {
23 | unchecked
24 | {
25 | int hash = 17;
26 | hash = hash * 23 + (Id?.GetHashCode() ?? 0);
27 |
28 | return hash;
29 | }
30 | }
31 |
32 |
33 | public override bool Equals(object obj)
34 | {
35 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
36 | {
37 | return false;
38 | }
39 | var other = (TunnelSessionsUpdate)obj;
40 | return (
41 | this.Id == other.Id
42 | );
43 | }
44 |
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/WeightedBackendCreate.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class WeightedBackendCreate
12 | {
13 | //
14 | // human-readable description of this backend. Optional
15 | //
16 | [JsonProperty("description")]
17 | public string Description { get; set; }
18 | //
19 | // arbitrary user-defined machine-readable data of this backend. Optional
20 | //
21 | [JsonProperty("metadata")]
22 | public string Metadata { get; set; }
23 | //
24 | // the ids of the child backends to their weights [0-10000]
25 | //
26 | [JsonProperty("backends")]
27 | public Dictionary Backends { get; set; }
28 |
29 | public override string ToString()
30 | {
31 | return $"WeightedBackendCreate Description={ Description } Metadata={ Metadata } Backends={ Backends } ";
32 | }
33 |
34 | public override int GetHashCode()
35 | {
36 | unchecked
37 | {
38 | int hash = 17;
39 | hash = hash * 23 + (Description?.GetHashCode() ?? 0);
40 |
41 | hash = hash * 23 + (Metadata?.GetHashCode() ?? 0);
42 |
43 | hash = hash * 23 + (Backends?.GetHashCode() ?? 0);
44 |
45 | return hash;
46 | }
47 | }
48 |
49 |
50 | public override bool Equals(object obj)
51 | {
52 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
53 | {
54 | return false;
55 | }
56 | var other = (WeightedBackendCreate)obj;
57 | return (
58 | this.Description == other.Description
59 | && this.Metadata == other.Metadata
60 | && this.Backends == other.Backends
61 | );
62 | }
63 |
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/NgrokApi/Datatypes/WeightedBackendList.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System;
5 | using System.Runtime;
6 | using System.Collections.Generic;
7 | using Newtonsoft.Json;
8 |
9 | namespace NgrokApi
10 | {
11 | public class WeightedBackendList
12 | {
13 | //
14 | // the list of all Weighted backends on this account
15 | //
16 | [JsonProperty("backends")]
17 | public List Backends { get; set; }
18 | //
19 | // URI of the Weighted backends list API resource
20 | //
21 | [JsonProperty("uri")]
22 | public Uri Uri { get; set; }
23 | //
24 | // URI of the next page, or null if there is no next page
25 | //
26 | [JsonProperty("next_page_uri")]
27 | public Uri NextPageUri { get; set; }
28 |
29 | public override string ToString()
30 | {
31 | return $"WeightedBackendList Backends={ Backends } Uri={ Uri } NextPageUri={ NextPageUri } ";
32 | }
33 |
34 | public override int GetHashCode()
35 | {
36 | unchecked
37 | {
38 | int hash = 17;
39 | hash = hash * 23 + (Backends?.GetHashCode() ?? 0);
40 |
41 | hash = hash * 23 + (Uri?.GetHashCode() ?? 0);
42 |
43 | hash = hash * 23 + (NextPageUri?.GetHashCode() ?? 0);
44 |
45 | return hash;
46 | }
47 | }
48 |
49 |
50 | public override bool Equals(object obj)
51 | {
52 | if ((obj == null) || !this.GetType().Equals(obj.GetType()))
53 | {
54 | return false;
55 | }
56 | var other = (WeightedBackendList)obj;
57 | return (
58 | this.Backends == other.Backends
59 | && this.Uri == other.Uri
60 | && this.NextPageUri == other.NextPageUri
61 | );
62 | }
63 |
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/NgrokApi/Error.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 | using System;
4 | using System.Collections.Generic;
5 |
6 | namespace NgrokApi
7 | {
8 | public class NgrokException : Exception
9 | {
10 | private Error err;
11 |
12 | internal NgrokException(Error err)
13 | : base(err.Msg)
14 | {
15 | this.err = err;
16 | }
17 |
18 | public bool IsErrorCode(params string[] codes)
19 | {
20 | foreach (var code in codes)
21 | {
22 | if (err.ErrorCode == code)
23 | {
24 | return true;
25 | }
26 | }
27 | return false;
28 | }
29 |
30 | public string OperationId()
31 | {
32 | if (this.Details == null)
33 | {
34 | return null;
35 | }
36 | string opId;
37 | this.Details.TryGetValue("operation_id", out opId);
38 | return opId;
39 | }
40 |
41 | public string ErrorCode
42 | {
43 | get { return err.ErrorCode; }
44 | }
45 |
46 | public int HttpStatusCode
47 | {
48 | get { return err.StatusCode; }
49 | }
50 |
51 | public Dictionary Details
52 | {
53 | get { return err.Details; }
54 | }
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/NgrokApi/IApiHttpClient.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 | using System;
4 | using System.IO;
5 | using System.Net.Http;
6 | using System.Threading.Tasks;
7 | using System.Collections.Generic;
8 |
9 | namespace NgrokApi
10 | {
11 | public interface IApiHttpClient
12 | {
13 | Task Do(HttpMethod method, string path, Dictionary query = null, Object body = null);
14 | Task DoNoReturnBody(HttpMethod method, string path, Dictionary query = null, Object body = null);
15 | void LogTo(TextWriter debugStream);
16 | void UseMocks(bool useMocks);
17 | void PushMockResponse(int httpStatusCode, string responseData);
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/NgrokApi/InternalsVisibleToTests.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 | using System.Runtime.CompilerServices;
4 |
5 | [assembly: InternalsVisibleTo("NgrokApiTests")]
6 |
--------------------------------------------------------------------------------
/NgrokApi/Iterator.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 | using System;
4 | using System.Threading;
5 | using System.Text;
6 | using System.Net.Http;
7 | using System.Threading.Tasks;
8 | using System.Collections;
9 | using System.Collections.Generic;
10 | using System.Runtime.Serialization;
11 | using System.Runtime;
12 | using System.Linq;
13 | using Newtonsoft.Json;
14 |
15 | namespace NgrokApi
16 | {
17 | public interface HasId
18 | {
19 | string Id { get; }
20 | }
21 |
22 | public class Iterator : IAsyncEnumerable where T : HasId
23 | {
24 | private Func>> fetchNextPage;
25 | private string lastId;
26 |
27 | public Iterator(string lastId, Func>> fetchNextPage)
28 | {
29 | this.lastId = lastId;
30 | this.fetchNextPage = fetchNextPage;
31 | }
32 |
33 | public async IAsyncEnumerator GetAsyncEnumerator(CancellationToken token)
34 | {
35 | List items = null;
36 | int index = -1;
37 | while (true)
38 | {
39 | index = index + 1;
40 | if (items != null && index < items.Count())
41 | {
42 | this.lastId = items[index - 1].Id;
43 | yield return items[index - 1];
44 | }
45 | else
46 | {
47 | // fetch next page
48 | var nextItems = await fetchNextPage(this.lastId ?? "");
49 | if (nextItems.Count() == 0)
50 | {
51 | break;
52 | }
53 | else
54 | {
55 | items = nextItems;
56 | index = 0;
57 | this.lastId = items[0].Id;
58 | yield return items[0];
59 | }
60 | }
61 | }
62 | }
63 | }
64 | }
65 |
--------------------------------------------------------------------------------
/NgrokApi/NgrokApi.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | netstandard2.0
5 | 8.0
6 | NgrokApi
7 | NgrokApi
8 | inconshreveable
9 | ngrok
10 | ngrok, Inc.
11 | MIT
12 | true
13 | https://github.com/ngrok/ngrok-api-dotnet
14 | 0.0.0
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/NgrokApi/Services/EdgeRouteBackendModule.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System.Collections.Generic;
5 | using System.Net.Http;
6 | using System.Threading.Tasks;
7 |
8 | namespace NgrokApi
9 | {
10 |
11 | public class EdgeRouteBackendModule
12 | {
13 | private IApiHttpClient apiClient;
14 |
15 | internal EdgeRouteBackendModule(IApiHttpClient apiClient)
16 | {
17 | this.apiClient = apiClient;
18 | }
19 |
20 | public async Task Replace(EdgeRouteBackendReplace arg)
21 | {
22 | Dictionary query = null;
23 | EndpointBackendMutate body = arg.Module;
24 | return await apiClient.Do(
25 | path: $"/edges/https/{arg.EdgeId}/routes/{arg.Id}/backend",
26 | method: new HttpMethod("put"),
27 | body: body,
28 | query: query
29 | );
30 |
31 | }
32 |
33 | public async Task Get(EdgeRouteItem arg)
34 | {
35 | Dictionary query = null;
36 | EdgeRouteItem body = null;
37 | query = new Dictionary()
38 | {
39 | };
40 | return await apiClient.Do(
41 | path: $"/edges/https/{arg.EdgeId}/routes/{arg.Id}/backend",
42 | method: new HttpMethod("get"),
43 | body: body,
44 | query: query
45 | );
46 |
47 | }
48 |
49 | public async Task Delete(EdgeRouteItem arg)
50 | {
51 | Dictionary query = null;
52 | EdgeRouteItem body = null;
53 | query = new Dictionary()
54 | {
55 | };
56 | await apiClient.DoNoReturnBody(
57 | path: $"/edges/https/{arg.EdgeId}/routes/{arg.Id}/backend",
58 | method: new HttpMethod("delete"),
59 | body: body,
60 | query: query
61 | );
62 | }
63 | }
64 | }
65 |
--------------------------------------------------------------------------------
/NgrokApi/Services/EdgeRouteOAuthModule.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System.Collections.Generic;
5 | using System.Net.Http;
6 | using System.Threading.Tasks;
7 |
8 | namespace NgrokApi
9 | {
10 |
11 | public class EdgeRouteOAuthModule
12 | {
13 | private IApiHttpClient apiClient;
14 |
15 | internal EdgeRouteOAuthModule(IApiHttpClient apiClient)
16 | {
17 | this.apiClient = apiClient;
18 | }
19 |
20 | public async Task Replace(EdgeRouteOAuthReplace arg)
21 | {
22 | Dictionary query = null;
23 | EndpointOAuth body = arg.Module;
24 | return await apiClient.Do(
25 | path: $"/edges/https/{arg.EdgeId}/routes/{arg.Id}/oauth",
26 | method: new HttpMethod("put"),
27 | body: body,
28 | query: query
29 | );
30 |
31 | }
32 |
33 | public async Task Get(EdgeRouteItem arg)
34 | {
35 | Dictionary query = null;
36 | EdgeRouteItem body = null;
37 | query = new Dictionary()
38 | {
39 | };
40 | return await apiClient.Do(
41 | path: $"/edges/https/{arg.EdgeId}/routes/{arg.Id}/oauth",
42 | method: new HttpMethod("get"),
43 | body: body,
44 | query: query
45 | );
46 |
47 | }
48 |
49 | public async Task Delete(EdgeRouteItem arg)
50 | {
51 | Dictionary query = null;
52 | EdgeRouteItem body = null;
53 | query = new Dictionary()
54 | {
55 | };
56 | await apiClient.DoNoReturnBody(
57 | path: $"/edges/https/{arg.EdgeId}/routes/{arg.Id}/oauth",
58 | method: new HttpMethod("delete"),
59 | body: body,
60 | query: query
61 | );
62 | }
63 | }
64 | }
65 |
--------------------------------------------------------------------------------
/NgrokApi/Services/EdgeRouteOidcModule.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System.Collections.Generic;
5 | using System.Net.Http;
6 | using System.Threading.Tasks;
7 |
8 | namespace NgrokApi
9 | {
10 |
11 | public class EdgeRouteOidcModule
12 | {
13 | private IApiHttpClient apiClient;
14 |
15 | internal EdgeRouteOidcModule(IApiHttpClient apiClient)
16 | {
17 | this.apiClient = apiClient;
18 | }
19 |
20 | public async Task Replace(EdgeRouteOidcReplace arg)
21 | {
22 | Dictionary query = null;
23 | EndpointOidc body = arg.Module;
24 | return await apiClient.Do(
25 | path: $"/edges/https/{arg.EdgeId}/routes/{arg.Id}/oidc",
26 | method: new HttpMethod("put"),
27 | body: body,
28 | query: query
29 | );
30 |
31 | }
32 |
33 | public async Task Get(EdgeRouteItem arg)
34 | {
35 | Dictionary query = null;
36 | EdgeRouteItem body = null;
37 | query = new Dictionary()
38 | {
39 | };
40 | return await apiClient.Do(
41 | path: $"/edges/https/{arg.EdgeId}/routes/{arg.Id}/oidc",
42 | method: new HttpMethod("get"),
43 | body: body,
44 | query: query
45 | );
46 |
47 | }
48 |
49 | public async Task Delete(EdgeRouteItem arg)
50 | {
51 | Dictionary query = null;
52 | EdgeRouteItem body = null;
53 | query = new Dictionary()
54 | {
55 | };
56 | await apiClient.DoNoReturnBody(
57 | path: $"/edges/https/{arg.EdgeId}/routes/{arg.Id}/oidc",
58 | method: new HttpMethod("delete"),
59 | body: body,
60 | query: query
61 | );
62 | }
63 | }
64 | }
65 |
--------------------------------------------------------------------------------
/NgrokApi/Services/EdgeRoutePolicyModule.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System.Collections.Generic;
5 | using System.Net.Http;
6 | using System.Threading.Tasks;
7 |
8 | namespace NgrokApi
9 | {
10 |
11 | public class EdgeRoutePolicyModule
12 | {
13 | private IApiHttpClient apiClient;
14 |
15 | internal EdgeRoutePolicyModule(IApiHttpClient apiClient)
16 | {
17 | this.apiClient = apiClient;
18 | }
19 |
20 | public async Task Replace(EdgeRoutePolicyReplace arg)
21 | {
22 | Dictionary query = null;
23 | EndpointPolicy body = arg.Module;
24 | return await apiClient.Do(
25 | path: $"/edges/https/{arg.EdgeId}/routes/{arg.Id}/policy",
26 | method: new HttpMethod("put"),
27 | body: body,
28 | query: query
29 | );
30 |
31 | }
32 |
33 | public async Task Get(EdgeRouteItem arg)
34 | {
35 | Dictionary query = null;
36 | EdgeRouteItem body = null;
37 | query = new Dictionary()
38 | {
39 | };
40 | return await apiClient.Do(
41 | path: $"/edges/https/{arg.EdgeId}/routes/{arg.Id}/policy",
42 | method: new HttpMethod("get"),
43 | body: body,
44 | query: query
45 | );
46 |
47 | }
48 |
49 | public async Task Delete(EdgeRouteItem arg)
50 | {
51 | Dictionary query = null;
52 | EdgeRouteItem body = null;
53 | query = new Dictionary()
54 | {
55 | };
56 | await apiClient.DoNoReturnBody(
57 | path: $"/edges/https/{arg.EdgeId}/routes/{arg.Id}/policy",
58 | method: new HttpMethod("delete"),
59 | body: body,
60 | query: query
61 | );
62 | }
63 | }
64 | }
65 |
--------------------------------------------------------------------------------
/NgrokApi/Services/EdgeRouteSamlModule.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System.Collections.Generic;
5 | using System.Net.Http;
6 | using System.Threading.Tasks;
7 |
8 | namespace NgrokApi
9 | {
10 |
11 | public class EdgeRouteSamlModule
12 | {
13 | private IApiHttpClient apiClient;
14 |
15 | internal EdgeRouteSamlModule(IApiHttpClient apiClient)
16 | {
17 | this.apiClient = apiClient;
18 | }
19 |
20 | public async Task Replace(EdgeRouteSamlReplace arg)
21 | {
22 | Dictionary query = null;
23 | EndpointSamlMutate body = arg.Module;
24 | return await apiClient.Do(
25 | path: $"/edges/https/{arg.EdgeId}/routes/{arg.Id}/saml",
26 | method: new HttpMethod("put"),
27 | body: body,
28 | query: query
29 | );
30 |
31 | }
32 |
33 | public async Task Get(EdgeRouteItem arg)
34 | {
35 | Dictionary query = null;
36 | EdgeRouteItem body = null;
37 | query = new Dictionary()
38 | {
39 | };
40 | return await apiClient.Do(
41 | path: $"/edges/https/{arg.EdgeId}/routes/{arg.Id}/saml",
42 | method: new HttpMethod("get"),
43 | body: body,
44 | query: query
45 | );
46 |
47 | }
48 |
49 | public async Task Delete(EdgeRouteItem arg)
50 | {
51 | Dictionary query = null;
52 | EdgeRouteItem body = null;
53 | query = new Dictionary()
54 | {
55 | };
56 | await apiClient.DoNoReturnBody(
57 | path: $"/edges/https/{arg.EdgeId}/routes/{arg.Id}/saml",
58 | method: new HttpMethod("delete"),
59 | body: body,
60 | query: query
61 | );
62 | }
63 | }
64 | }
65 |
--------------------------------------------------------------------------------
/NgrokApi/Services/TcpEdgeBackendModule.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System.Collections.Generic;
5 | using System.Net.Http;
6 | using System.Threading.Tasks;
7 |
8 | namespace NgrokApi
9 | {
10 |
11 | public class TcpEdgeBackendModule
12 | {
13 | private IApiHttpClient apiClient;
14 |
15 | internal TcpEdgeBackendModule(IApiHttpClient apiClient)
16 | {
17 | this.apiClient = apiClient;
18 | }
19 |
20 | public async Task Replace(EdgeBackendReplace arg)
21 | {
22 | Dictionary query = null;
23 | EndpointBackendMutate body = arg.Module;
24 | return await apiClient.Do(
25 | path: $"/edges/tcp/{arg.Id}/backend",
26 | method: new HttpMethod("put"),
27 | body: body,
28 | query: query
29 | );
30 |
31 | }
32 |
33 | public async Task Get(string id)
34 | {
35 | var arg = new Item() { Id = id };
36 |
37 | Dictionary query = null;
38 | Item body = null;
39 | query = new Dictionary()
40 | {
41 | };
42 | return await apiClient.Do(
43 | path: $"/edges/tcp/{arg.Id}/backend",
44 | method: new HttpMethod("get"),
45 | body: body,
46 | query: query
47 | );
48 |
49 | }
50 |
51 | public async Task Delete(string id)
52 | {
53 | var arg = new Item() { Id = id };
54 |
55 | Dictionary query = null;
56 | Item body = null;
57 | query = new Dictionary()
58 | {
59 | };
60 | await apiClient.DoNoReturnBody(
61 | path: $"/edges/tcp/{arg.Id}/backend",
62 | method: new HttpMethod("delete"),
63 | body: body,
64 | query: query
65 | );
66 | }
67 | }
68 | }
69 |
--------------------------------------------------------------------------------
/NgrokApi/Services/TcpEdgePolicyModule.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System.Collections.Generic;
5 | using System.Net.Http;
6 | using System.Threading.Tasks;
7 |
8 | namespace NgrokApi
9 | {
10 |
11 | public class TcpEdgePolicyModule
12 | {
13 | private IApiHttpClient apiClient;
14 |
15 | internal TcpEdgePolicyModule(IApiHttpClient apiClient)
16 | {
17 | this.apiClient = apiClient;
18 | }
19 |
20 | public async Task Replace(EdgePolicyReplace arg)
21 | {
22 | Dictionary query = null;
23 | EndpointPolicy body = arg.Module;
24 | return await apiClient.Do(
25 | path: $"/edges/tcp/{arg.Id}/policy",
26 | method: new HttpMethod("put"),
27 | body: body,
28 | query: query
29 | );
30 |
31 | }
32 |
33 | public async Task Get(string id)
34 | {
35 | var arg = new Item() { Id = id };
36 |
37 | Dictionary query = null;
38 | Item body = null;
39 | query = new Dictionary()
40 | {
41 | };
42 | return await apiClient.Do(
43 | path: $"/edges/tcp/{arg.Id}/policy",
44 | method: new HttpMethod("get"),
45 | body: body,
46 | query: query
47 | );
48 |
49 | }
50 |
51 | public async Task Delete(string id)
52 | {
53 | var arg = new Item() { Id = id };
54 |
55 | Dictionary query = null;
56 | Item body = null;
57 | query = new Dictionary()
58 | {
59 | };
60 | await apiClient.DoNoReturnBody(
61 | path: $"/edges/tcp/{arg.Id}/policy",
62 | method: new HttpMethod("delete"),
63 | body: body,
64 | query: query
65 | );
66 | }
67 | }
68 | }
69 |
--------------------------------------------------------------------------------
/NgrokApi/Services/TlsEdgeBackendModule.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System.Collections.Generic;
5 | using System.Net.Http;
6 | using System.Threading.Tasks;
7 |
8 | namespace NgrokApi
9 | {
10 |
11 | public class TlsEdgeBackendModule
12 | {
13 | private IApiHttpClient apiClient;
14 |
15 | internal TlsEdgeBackendModule(IApiHttpClient apiClient)
16 | {
17 | this.apiClient = apiClient;
18 | }
19 |
20 | public async Task Replace(EdgeBackendReplace arg)
21 | {
22 | Dictionary query = null;
23 | EndpointBackendMutate body = arg.Module;
24 | return await apiClient.Do(
25 | path: $"/edges/tls/{arg.Id}/backend",
26 | method: new HttpMethod("put"),
27 | body: body,
28 | query: query
29 | );
30 |
31 | }
32 |
33 | public async Task Get(string id)
34 | {
35 | var arg = new Item() { Id = id };
36 |
37 | Dictionary query = null;
38 | Item body = null;
39 | query = new Dictionary()
40 | {
41 | };
42 | return await apiClient.Do(
43 | path: $"/edges/tls/{arg.Id}/backend",
44 | method: new HttpMethod("get"),
45 | body: body,
46 | query: query
47 | );
48 |
49 | }
50 |
51 | public async Task Delete(string id)
52 | {
53 | var arg = new Item() { Id = id };
54 |
55 | Dictionary query = null;
56 | Item body = null;
57 | query = new Dictionary()
58 | {
59 | };
60 | await apiClient.DoNoReturnBody(
61 | path: $"/edges/tls/{arg.Id}/backend",
62 | method: new HttpMethod("delete"),
63 | body: body,
64 | query: query
65 | );
66 | }
67 | }
68 | }
69 |
--------------------------------------------------------------------------------
/NgrokApi/Services/TlsEdgePolicyModule.cs:
--------------------------------------------------------------------------------
1 | /* Code generated for API Clients. DO NOT EDIT. */
2 |
3 |
4 | using System.Collections.Generic;
5 | using System.Net.Http;
6 | using System.Threading.Tasks;
7 |
8 | namespace NgrokApi
9 | {
10 |
11 | public class TlsEdgePolicyModule
12 | {
13 | private IApiHttpClient apiClient;
14 |
15 | internal TlsEdgePolicyModule(IApiHttpClient apiClient)
16 | {
17 | this.apiClient = apiClient;
18 | }
19 |
20 | public async Task Replace(EdgePolicyReplace arg)
21 | {
22 | Dictionary query = null;
23 | EndpointPolicy body = arg.Module;
24 | return await apiClient.Do(
25 | path: $"/edges/tls/{arg.Id}/policy",
26 | method: new HttpMethod("put"),
27 | body: body,
28 | query: query
29 | );
30 |
31 | }
32 |
33 | public async Task Get(string id)
34 | {
35 | var arg = new Item() { Id = id };
36 |
37 | Dictionary query = null;
38 | Item body = null;
39 | query = new Dictionary()
40 | {
41 | };
42 | return await apiClient.Do(
43 | path: $"/edges/tls/{arg.Id}/policy",
44 | method: new HttpMethod("get"),
45 | body: body,
46 | query: query
47 | );
48 |
49 | }
50 |
51 | public async Task Delete(string id)
52 | {
53 | var arg = new Item() { Id = id };
54 |
55 | Dictionary query = null;
56 | Item body = null;
57 | query = new Dictionary()
58 | {
59 | };
60 | await apiClient.DoNoReturnBody(
61 | path: $"/edges/tls/{arg.Id}/policy",
62 | method: new HttpMethod("delete"),
63 | body: body,
64 | query: query
65 | );
66 | }
67 | }
68 | }
69 |
--------------------------------------------------------------------------------
/NgrokApiTests/NgrokApiTests.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | netcoreapp6.0
6 |
7 | false
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
]