class NgrokAPI::Models::TLSEdge
Attributes
attrs[R]
backend[R]
client[R]
created_at[R]
description[R]
hostports[R]
id[R]
ip_restriction[R]
metadata[R]
mutual_tls[R]
tls_termination[R]
uri[R]
Public Class Methods
new(client: nil, attrs: {})
click to toggle source
# File lib/ngrokapi/models/tls_edge.rb, line 19 def initialize(client: nil, attrs: {}) @client = client @attrs = attrs @id = @attrs['id'] @description = @attrs['description'] @metadata = @attrs['metadata'] @created_at = @attrs['created_at'] @uri = @attrs['uri'] @hostports = @attrs['hostports'] @backend = @attrs['backend'] @ip_restriction = @attrs['ip_restriction'] @mutual_tls = @attrs['mutual_tls'] @tls_termination = @attrs['tls_termination'] end
Public Instance Methods
==(other)
click to toggle source
# File lib/ngrokapi/models/tls_edge.rb, line 34 def ==(other) @attrs == other.attrs end
delete()
click to toggle source
Delete a TLS Edge by ID
ngrok.com/docs/api#api-edges-tls-delete
# File lib/ngrokapi/models/tls_edge.rb, line 85 def delete @client.delete( id: @id ) end
to_h()
click to toggle source
# File lib/ngrokapi/models/tls_edge.rb, line 42 def to_h @attrs.to_h end
to_s()
click to toggle source
# File lib/ngrokapi/models/tls_edge.rb, line 38 def to_s @attrs.to_s end
update( description: nil, metadata: nil, hostports: nil, backend: nil, ip_restriction: nil, mutual_tls: nil, tls_termination: nil )
click to toggle source
Updates a TLS Edge by ID. If a module is not specified in the update, it will not be modified. However, each module configuration that is specified will completely replace the existing value. There is no way to delete an existing module via this API, instead use the delete module API.
ngrok.com/docs/api#api-edges-tls-update
# File lib/ngrokapi/models/tls_edge.rb, line 53 def update( description: nil, metadata: nil, hostports: nil, backend: nil, ip_restriction: nil, mutual_tls: nil, tls_termination: nil ) @description = description if description @metadata = metadata if metadata @hostports = hostports if hostports @backend = backend if backend @ip_restriction = ip_restriction if ip_restriction @mutual_tls = mutual_tls if mutual_tls @tls_termination = tls_termination if tls_termination @client.update( id: @id, description: description, metadata: metadata, hostports: hostports, backend: backend, ip_restriction: ip_restriction, mutual_tls: mutual_tls, tls_termination: tls_termination ) end