mirror of
https://github.com/ngrok/ngrok-api-go.git
synced 2026-05-17 16:50:37 +00:00
Merge pull request #41 from ngrok/pr/generated-317fbab4e1
Update generated files
This commit is contained in:
-248
@@ -1796,190 +1796,6 @@ func (x *CredentialList) GoString() string {
|
|||||||
return b.String()
|
return b.String()
|
||||||
}
|
}
|
||||||
|
|
||||||
type EndpointJWTValidationIssuerConfig struct {
|
|
||||||
// the list of allowed issuers.
|
|
||||||
AllowList []EndpointJWTValidationIssuer `json:"allow_list,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *EndpointJWTValidationIssuerConfig) String() string {
|
|
||||||
return x.GoString()
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *EndpointJWTValidationIssuerConfig) GoString() string {
|
|
||||||
var b bytes.Buffer
|
|
||||||
fmt.Fprintf(&b, "EndpointJWTValidationIssuerConfig {\n")
|
|
||||||
tw := tabwriter.NewWriter(&b, 0, 4, 0, ' ', 0)
|
|
||||||
fmt.Fprintf(tw, "\tAllowList\t%v\n", x.AllowList)
|
|
||||||
tw.Flush()
|
|
||||||
fmt.Fprintf(&b, "}\n")
|
|
||||||
return b.String()
|
|
||||||
}
|
|
||||||
|
|
||||||
type EndpointJWTValidationIssuer struct {
|
|
||||||
// the URL of the issuer.
|
|
||||||
Value string `json:"value,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *EndpointJWTValidationIssuer) String() string {
|
|
||||||
return x.GoString()
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *EndpointJWTValidationIssuer) GoString() string {
|
|
||||||
var b bytes.Buffer
|
|
||||||
fmt.Fprintf(&b, "EndpointJWTValidationIssuer {\n")
|
|
||||||
tw := tabwriter.NewWriter(&b, 0, 4, 0, ' ', 0)
|
|
||||||
fmt.Fprintf(tw, "\tValue\t%v\n", x.Value)
|
|
||||||
tw.Flush()
|
|
||||||
fmt.Fprintf(&b, "}\n")
|
|
||||||
return b.String()
|
|
||||||
}
|
|
||||||
|
|
||||||
type EndpointJWTValidationAudienceConfig struct {
|
|
||||||
// the list of allowed audiences.
|
|
||||||
AllowList []EndpointJWTValidationAudience `json:"allow_list,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *EndpointJWTValidationAudienceConfig) String() string {
|
|
||||||
return x.GoString()
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *EndpointJWTValidationAudienceConfig) GoString() string {
|
|
||||||
var b bytes.Buffer
|
|
||||||
fmt.Fprintf(&b, "EndpointJWTValidationAudienceConfig {\n")
|
|
||||||
tw := tabwriter.NewWriter(&b, 0, 4, 0, ' ', 0)
|
|
||||||
fmt.Fprintf(tw, "\tAllowList\t%v\n", x.AllowList)
|
|
||||||
tw.Flush()
|
|
||||||
fmt.Fprintf(&b, "}\n")
|
|
||||||
return b.String()
|
|
||||||
}
|
|
||||||
|
|
||||||
type EndpointJWTValidationAudience struct {
|
|
||||||
// the audience value.
|
|
||||||
Value string `json:"value,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *EndpointJWTValidationAudience) String() string {
|
|
||||||
return x.GoString()
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *EndpointJWTValidationAudience) GoString() string {
|
|
||||||
var b bytes.Buffer
|
|
||||||
fmt.Fprintf(&b, "EndpointJWTValidationAudience {\n")
|
|
||||||
tw := tabwriter.NewWriter(&b, 0, 4, 0, ' ', 0)
|
|
||||||
fmt.Fprintf(tw, "\tValue\t%v\n", x.Value)
|
|
||||||
tw.Flush()
|
|
||||||
fmt.Fprintf(&b, "}\n")
|
|
||||||
return b.String()
|
|
||||||
}
|
|
||||||
|
|
||||||
type EndpointJWTValidationHTTPConfig struct {
|
|
||||||
// the list of tokens to validate.
|
|
||||||
Tokens []EndpointJWTValidationHTTPToken `json:"tokens,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *EndpointJWTValidationHTTPConfig) String() string {
|
|
||||||
return x.GoString()
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *EndpointJWTValidationHTTPConfig) GoString() string {
|
|
||||||
var b bytes.Buffer
|
|
||||||
fmt.Fprintf(&b, "EndpointJWTValidationHTTPConfig {\n")
|
|
||||||
tw := tabwriter.NewWriter(&b, 0, 4, 0, ' ', 0)
|
|
||||||
fmt.Fprintf(tw, "\tTokens\t%v\n", x.Tokens)
|
|
||||||
tw.Flush()
|
|
||||||
fmt.Fprintf(&b, "}\n")
|
|
||||||
return b.String()
|
|
||||||
}
|
|
||||||
|
|
||||||
type EndpointJWTValidationHTTPToken struct {
|
|
||||||
// the type of the JWT, which acts as a hint to ngrok about how to parse. Must be
|
|
||||||
// one of "jwt", "at+jwt", or "it+jwt".
|
|
||||||
Type string `json:"type,omitempty"`
|
|
||||||
// the type of location to expect the JWT. Must be one of "header" or "body".
|
|
||||||
Method string `json:"method,omitempty"`
|
|
||||||
// the name of the header or body field where the JWT is expected.
|
|
||||||
Name string `json:"name,omitempty"`
|
|
||||||
// any prefix to strip from the JWT before parsing.
|
|
||||||
Prefix *string `json:"prefix,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *EndpointJWTValidationHTTPToken) String() string {
|
|
||||||
return x.GoString()
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *EndpointJWTValidationHTTPToken) GoString() string {
|
|
||||||
var b bytes.Buffer
|
|
||||||
fmt.Fprintf(&b, "EndpointJWTValidationHTTPToken {\n")
|
|
||||||
tw := tabwriter.NewWriter(&b, 0, 4, 0, ' ', 0)
|
|
||||||
fmt.Fprintf(tw, "\tType\t%v\n", x.Type)
|
|
||||||
fmt.Fprintf(tw, "\tMethod\t%v\n", x.Method)
|
|
||||||
fmt.Fprintf(tw, "\tName\t%v\n", x.Name)
|
|
||||||
fmt.Fprintf(tw, "\tPrefix\t%v\n", x.Prefix)
|
|
||||||
tw.Flush()
|
|
||||||
fmt.Fprintf(&b, "}\n")
|
|
||||||
return b.String()
|
|
||||||
}
|
|
||||||
|
|
||||||
type EndpointJWTValidationSigningConfig struct {
|
|
||||||
// the list of allowed signing algorithms.
|
|
||||||
AllowedAlgorithms []string `json:"allowed_algorithms,omitempty"`
|
|
||||||
// the configuration for the JWT signing keys.
|
|
||||||
Keys EndpointJWTValidationSigningKeys `json:"keys,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *EndpointJWTValidationSigningConfig) String() string {
|
|
||||||
return x.GoString()
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *EndpointJWTValidationSigningConfig) GoString() string {
|
|
||||||
var b bytes.Buffer
|
|
||||||
fmt.Fprintf(&b, "EndpointJWTValidationSigningConfig {\n")
|
|
||||||
tw := tabwriter.NewWriter(&b, 0, 4, 0, ' ', 0)
|
|
||||||
fmt.Fprintf(tw, "\tAllowedAlgorithms\t%v\n", x.AllowedAlgorithms)
|
|
||||||
fmt.Fprintf(tw, "\tKeys\t%v\n", x.Keys)
|
|
||||||
tw.Flush()
|
|
||||||
fmt.Fprintf(&b, "}\n")
|
|
||||||
return b.String()
|
|
||||||
}
|
|
||||||
|
|
||||||
type EndpointJWTValidationSigningKeys struct {
|
|
||||||
// the configuration for acquiring the key material used to verify the signed JWTs.
|
|
||||||
Sources EndpointJWTValidationSigningKeySources `json:"sources,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *EndpointJWTValidationSigningKeys) String() string {
|
|
||||||
return x.GoString()
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *EndpointJWTValidationSigningKeys) GoString() string {
|
|
||||||
var b bytes.Buffer
|
|
||||||
fmt.Fprintf(&b, "EndpointJWTValidationSigningKeys {\n")
|
|
||||||
tw := tabwriter.NewWriter(&b, 0, 4, 0, ' ', 0)
|
|
||||||
fmt.Fprintf(tw, "\tSources\t%v\n", x.Sources)
|
|
||||||
tw.Flush()
|
|
||||||
fmt.Fprintf(&b, "}\n")
|
|
||||||
return b.String()
|
|
||||||
}
|
|
||||||
|
|
||||||
type EndpointJWTValidationSigningKeySources struct {
|
|
||||||
// the list of URLs which serve the possible signing keys in JWKS format.
|
|
||||||
AdditionalJkus []string `json:"additional_jkus,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *EndpointJWTValidationSigningKeySources) String() string {
|
|
||||||
return x.GoString()
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *EndpointJWTValidationSigningKeySources) GoString() string {
|
|
||||||
var b bytes.Buffer
|
|
||||||
fmt.Fprintf(&b, "EndpointJWTValidationSigningKeySources {\n")
|
|
||||||
tw := tabwriter.NewWriter(&b, 0, 4, 0, ' ', 0)
|
|
||||||
fmt.Fprintf(tw, "\tAdditionalJkus\t%v\n", x.AdditionalJkus)
|
|
||||||
tw.Flush()
|
|
||||||
fmt.Fprintf(&b, "}\n")
|
|
||||||
return b.String()
|
|
||||||
}
|
|
||||||
|
|
||||||
type EndpointWebhookValidation struct {
|
type EndpointWebhookValidation struct {
|
||||||
// true if the module will be applied to traffic, false to disable. default true if
|
// true if the module will be applied to traffic, false to disable. default true if
|
||||||
// unspecified
|
// unspecified
|
||||||
@@ -2928,38 +2744,6 @@ func (x *EndpointUserAgentFilter) GoString() string {
|
|||||||
return b.String()
|
return b.String()
|
||||||
}
|
}
|
||||||
|
|
||||||
type EndpointJWTValidation struct {
|
|
||||||
// true if the module will be applied to traffic, false to disable. default true if
|
|
||||||
// unspecified
|
|
||||||
Enabled *bool `json:"enabled,omitempty"`
|
|
||||||
// configuration about the Issuer(s) of the JWTs.
|
|
||||||
Issuer EndpointJWTValidationIssuerConfig `json:"issuer,omitempty"`
|
|
||||||
// configuration about the Audience(s) of the JWTs.
|
|
||||||
Audience EndpointJWTValidationAudienceConfig `json:"audience,omitempty"`
|
|
||||||
// configuration about the HTTP requests containing JWTs.
|
|
||||||
Http EndpointJWTValidationHTTPConfig `json:"http,omitempty"`
|
|
||||||
// configuration about signed JWTs (JWS).
|
|
||||||
Jws EndpointJWTValidationSigningConfig `json:"jws,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *EndpointJWTValidation) String() string {
|
|
||||||
return x.GoString()
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *EndpointJWTValidation) GoString() string {
|
|
||||||
var b bytes.Buffer
|
|
||||||
fmt.Fprintf(&b, "EndpointJWTValidation {\n")
|
|
||||||
tw := tabwriter.NewWriter(&b, 0, 4, 0, ' ', 0)
|
|
||||||
fmt.Fprintf(tw, "\tEnabled\t%v\n", x.Enabled)
|
|
||||||
fmt.Fprintf(tw, "\tIssuer\t%v\n", x.Issuer)
|
|
||||||
fmt.Fprintf(tw, "\tAudience\t%v\n", x.Audience)
|
|
||||||
fmt.Fprintf(tw, "\tHttp\t%v\n", x.Http)
|
|
||||||
fmt.Fprintf(tw, "\tJws\t%v\n", x.Jws)
|
|
||||||
tw.Flush()
|
|
||||||
fmt.Fprintf(&b, "}\n")
|
|
||||||
return b.String()
|
|
||||||
}
|
|
||||||
|
|
||||||
type EndpointPolicy struct {
|
type EndpointPolicy struct {
|
||||||
// true if the module will be applied to traffic, false to disable. default true if
|
// true if the module will be applied to traffic, false to disable. default true if
|
||||||
// unspecified
|
// unspecified
|
||||||
@@ -3093,8 +2877,6 @@ type HTTPSEdgeRouteCreate struct {
|
|||||||
// websocket to tcp adapter configuration or null
|
// websocket to tcp adapter configuration or null
|
||||||
WebsocketTCPConverter *EndpointWebsocketTCPConverter `json:"websocket_tcp_converter,omitempty"`
|
WebsocketTCPConverter *EndpointWebsocketTCPConverter `json:"websocket_tcp_converter,omitempty"`
|
||||||
UserAgentFilter *EndpointUserAgentFilter `json:"user_agent_filter,omitempty"`
|
UserAgentFilter *EndpointUserAgentFilter `json:"user_agent_filter,omitempty"`
|
||||||
// jwt validation module configuration or null
|
|
||||||
JWTValidation *EndpointJWTValidation `json:"jwt_validation,omitempty"`
|
|
||||||
// the traffic policy associated with this edge or null
|
// the traffic policy associated with this edge or null
|
||||||
Policy *EndpointPolicy `json:"policy,omitempty"`
|
Policy *EndpointPolicy `json:"policy,omitempty"`
|
||||||
}
|
}
|
||||||
@@ -3124,7 +2906,6 @@ func (x *HTTPSEdgeRouteCreate) GoString() string {
|
|||||||
fmt.Fprintf(tw, "\tOIDC\t%v\n", x.OIDC)
|
fmt.Fprintf(tw, "\tOIDC\t%v\n", x.OIDC)
|
||||||
fmt.Fprintf(tw, "\tWebsocketTCPConverter\t%v\n", x.WebsocketTCPConverter)
|
fmt.Fprintf(tw, "\tWebsocketTCPConverter\t%v\n", x.WebsocketTCPConverter)
|
||||||
fmt.Fprintf(tw, "\tUserAgentFilter\t%v\n", x.UserAgentFilter)
|
fmt.Fprintf(tw, "\tUserAgentFilter\t%v\n", x.UserAgentFilter)
|
||||||
fmt.Fprintf(tw, "\tJWTValidation\t%v\n", x.JWTValidation)
|
|
||||||
fmt.Fprintf(tw, "\tPolicy\t%v\n", x.Policy)
|
fmt.Fprintf(tw, "\tPolicy\t%v\n", x.Policy)
|
||||||
tw.Flush()
|
tw.Flush()
|
||||||
fmt.Fprintf(&b, "}\n")
|
fmt.Fprintf(&b, "}\n")
|
||||||
@@ -3170,8 +2951,6 @@ type HTTPSEdgeRouteUpdate struct {
|
|||||||
// websocket to tcp adapter configuration or null
|
// websocket to tcp adapter configuration or null
|
||||||
WebsocketTCPConverter *EndpointWebsocketTCPConverter `json:"websocket_tcp_converter,omitempty"`
|
WebsocketTCPConverter *EndpointWebsocketTCPConverter `json:"websocket_tcp_converter,omitempty"`
|
||||||
UserAgentFilter *EndpointUserAgentFilter `json:"user_agent_filter,omitempty"`
|
UserAgentFilter *EndpointUserAgentFilter `json:"user_agent_filter,omitempty"`
|
||||||
// jwt validation module configuration or null
|
|
||||||
JWTValidation *EndpointJWTValidation `json:"jwt_validation,omitempty"`
|
|
||||||
// the traffic policy associated with this edge or null
|
// the traffic policy associated with this edge or null
|
||||||
Policy *EndpointPolicy `json:"policy,omitempty"`
|
Policy *EndpointPolicy `json:"policy,omitempty"`
|
||||||
}
|
}
|
||||||
@@ -3203,7 +2982,6 @@ func (x *HTTPSEdgeRouteUpdate) GoString() string {
|
|||||||
fmt.Fprintf(tw, "\tOIDC\t%v\n", x.OIDC)
|
fmt.Fprintf(tw, "\tOIDC\t%v\n", x.OIDC)
|
||||||
fmt.Fprintf(tw, "\tWebsocketTCPConverter\t%v\n", x.WebsocketTCPConverter)
|
fmt.Fprintf(tw, "\tWebsocketTCPConverter\t%v\n", x.WebsocketTCPConverter)
|
||||||
fmt.Fprintf(tw, "\tUserAgentFilter\t%v\n", x.UserAgentFilter)
|
fmt.Fprintf(tw, "\tUserAgentFilter\t%v\n", x.UserAgentFilter)
|
||||||
fmt.Fprintf(tw, "\tJWTValidation\t%v\n", x.JWTValidation)
|
|
||||||
fmt.Fprintf(tw, "\tPolicy\t%v\n", x.Policy)
|
fmt.Fprintf(tw, "\tPolicy\t%v\n", x.Policy)
|
||||||
tw.Flush()
|
tw.Flush()
|
||||||
fmt.Fprintf(&b, "}\n")
|
fmt.Fprintf(&b, "}\n")
|
||||||
@@ -3253,8 +3031,6 @@ type HTTPSEdgeRoute struct {
|
|||||||
// websocket to tcp adapter configuration or null
|
// websocket to tcp adapter configuration or null
|
||||||
WebsocketTCPConverter *EndpointWebsocketTCPConverter `json:"websocket_tcp_converter,omitempty"`
|
WebsocketTCPConverter *EndpointWebsocketTCPConverter `json:"websocket_tcp_converter,omitempty"`
|
||||||
UserAgentFilter *EndpointUserAgentFilter `json:"user_agent_filter,omitempty"`
|
UserAgentFilter *EndpointUserAgentFilter `json:"user_agent_filter,omitempty"`
|
||||||
// jwt validation module configuration or null
|
|
||||||
JWTValidation *EndpointJWTValidation `json:"jwt_validation,omitempty"`
|
|
||||||
// the traffic policy associated with this edge or null
|
// the traffic policy associated with this edge or null
|
||||||
Policy *EndpointPolicy `json:"policy,omitempty"`
|
Policy *EndpointPolicy `json:"policy,omitempty"`
|
||||||
}
|
}
|
||||||
@@ -3288,7 +3064,6 @@ func (x *HTTPSEdgeRoute) GoString() string {
|
|||||||
fmt.Fprintf(tw, "\tOIDC\t%v\n", x.OIDC)
|
fmt.Fprintf(tw, "\tOIDC\t%v\n", x.OIDC)
|
||||||
fmt.Fprintf(tw, "\tWebsocketTCPConverter\t%v\n", x.WebsocketTCPConverter)
|
fmt.Fprintf(tw, "\tWebsocketTCPConverter\t%v\n", x.WebsocketTCPConverter)
|
||||||
fmt.Fprintf(tw, "\tUserAgentFilter\t%v\n", x.UserAgentFilter)
|
fmt.Fprintf(tw, "\tUserAgentFilter\t%v\n", x.UserAgentFilter)
|
||||||
fmt.Fprintf(tw, "\tJWTValidation\t%v\n", x.JWTValidation)
|
|
||||||
fmt.Fprintf(tw, "\tPolicy\t%v\n", x.Policy)
|
fmt.Fprintf(tw, "\tPolicy\t%v\n", x.Policy)
|
||||||
tw.Flush()
|
tw.Flush()
|
||||||
fmt.Fprintf(&b, "}\n")
|
fmt.Fprintf(&b, "}\n")
|
||||||
@@ -3835,29 +3610,6 @@ func (x *EdgeRouteUserAgentFilterReplace) GoString() string {
|
|||||||
return b.String()
|
return b.String()
|
||||||
}
|
}
|
||||||
|
|
||||||
type EdgeRouteJWTValidationReplace struct {
|
|
||||||
EdgeID string `json:"edge_id,omitempty"`
|
|
||||||
ID string `json:"id,omitempty"`
|
|
||||||
Module EndpointJWTValidation `json:"module,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *EdgeRouteJWTValidationReplace) String() string {
|
|
||||||
return fmt.Sprintf("EdgeRouteJWTValidationReplace{ID: %v}", x.ID)
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *EdgeRouteJWTValidationReplace) GoString() string {
|
|
||||||
var b bytes.Buffer
|
|
||||||
fmt.Fprintf(&b, "EdgeRouteJWTValidationReplace {\n")
|
|
||||||
tw := tabwriter.NewWriter(&b, 0, 4, 0, ' ', 0)
|
|
||||||
fmt.Fprintf(tw, "\tEdgeID\t%v\n", x.EdgeID)
|
|
||||||
fmt.Fprintf(tw, "\tID\t%v\n", x.ID)
|
|
||||||
fmt.Fprintf(tw, "\tModule\t%v\n", x.Module)
|
|
||||||
tw.Flush()
|
|
||||||
fmt.Fprintf(&b, "}\n")
|
|
||||||
return b.String()
|
|
||||||
}
|
|
||||||
|
|
||||||
type EdgeRoutePolicyReplace struct {
|
type EdgeRoutePolicyReplace struct {
|
||||||
EdgeID string `json:"edge_id,omitempty"`
|
EdgeID string `json:"edge_id,omitempty"`
|
||||||
ID string `json:"id,omitempty"`
|
ID string `json:"id,omitempty"`
|
||||||
|
|||||||
Reference in New Issue
Block a user