class NgrokAPI::Models::AgentIngress
Attributes
attrs[R]
client[R]
created_at[R]
description[R]
domain[R]
id[R]
metadata[R]
ns_targets[R]
region_domains[R]
uri[R]
Public Class Methods
new(client: nil, attrs: {})
click to toggle source
# File lib/ngrokapi/models/agent_ingress.rb, line 17 def initialize(client: nil, attrs: {}) @client = client @attrs = attrs @id = @attrs['id'] @uri = @attrs['uri'] @description = @attrs['description'] @metadata = @attrs['metadata'] @domain = @attrs['domain'] @ns_targets = @attrs['ns_targets'] @region_domains = @attrs['region_domains'] @created_at = @attrs['created_at'] end
Public Instance Methods
==(other)
click to toggle source
# File lib/ngrokapi/models/agent_ingress.rb, line 30 def ==(other) @attrs == other.attrs end
delete()
click to toggle source
Delete an Agent Ingress by ID
ngrok.com/docs/api#api-agent-ingresses-delete
# File lib/ngrokapi/models/agent_ingress.rb, line 46 def delete @client.delete( id: @id ) end
to_h()
click to toggle source
# File lib/ngrokapi/models/agent_ingress.rb, line 38 def to_h @attrs.to_h end
to_s()
click to toggle source
# File lib/ngrokapi/models/agent_ingress.rb, line 34 def to_s @attrs.to_s end
update( description: nil, metadata: nil )
click to toggle source
Update attributes of an Agent Ingress by ID.
ngrok.com/docs/api#api-agent-ingresses-update
# File lib/ngrokapi/models/agent_ingress.rb, line 56 def update( description: nil, metadata: nil ) @description = description if description @metadata = metadata if metadata @client.update( id: @id, description: description, metadata: metadata ) end