Class: NgrokAPI::Models::ReservedDomain

Inherits:
Object
  • Object
show all
Defined in:
lib/ngrokapi/models/reserved_domain.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client: nil, attrs: {}) ⇒ ReservedDomain

Returns a new instance of ReservedDomain.



23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/ngrokapi/models/reserved_domain.rb', line 23

def initialize(client: nil, attrs: {})
  @client = client
  @attrs = attrs
  @id = @attrs['id']
  @uri = @attrs['uri']
  @created_at = @attrs['created_at']
  @description = @attrs['description']
  @metadata = @attrs['metadata']
  @domain = @attrs['domain']
  @region = @attrs['region']
  @cname_target = @attrs['cname_target']
  @http_endpoint_configuration = @attrs['http_endpoint_configuration']
  @https_endpoint_configuration = @attrs['https_endpoint_configuration']
  @certificate = @attrs['certificate']
  @certificate_management_policy = @attrs['certificate_management_policy']
  @certificate_management_status = @attrs['certificate_management_status']
  @acme_challenge_cname_target = @attrs['acme_challenge_cname_target']
end

Instance Attribute Details

#acme_challenge_cname_targetObject (readonly)

Returns the value of attribute acme_challenge_cname_target.



6
7
8
# File 'lib/ngrokapi/models/reserved_domain.rb', line 6

def acme_challenge_cname_target
  @acme_challenge_cname_target
end

#attrsObject (readonly)

Returns the value of attribute attrs.



6
7
8
# File 'lib/ngrokapi/models/reserved_domain.rb', line 6

def attrs
  @attrs
end

#certificateObject (readonly)

Returns the value of attribute certificate.



6
7
8
# File 'lib/ngrokapi/models/reserved_domain.rb', line 6

def certificate
  @certificate
end

#certificate_management_policyObject (readonly)

Returns the value of attribute certificate_management_policy.



6
7
8
# File 'lib/ngrokapi/models/reserved_domain.rb', line 6

def certificate_management_policy
  @certificate_management_policy
end

#certificate_management_statusObject (readonly)

Returns the value of attribute certificate_management_status.



6
7
8
# File 'lib/ngrokapi/models/reserved_domain.rb', line 6

def certificate_management_status
  @certificate_management_status
end

#clientObject (readonly)

Returns the value of attribute client.



6
7
8
# File 'lib/ngrokapi/models/reserved_domain.rb', line 6

def client
  @client
end

#cname_targetObject (readonly)

Returns the value of attribute cname_target.



6
7
8
# File 'lib/ngrokapi/models/reserved_domain.rb', line 6

def cname_target
  @cname_target
end

#created_atObject (readonly)

Returns the value of attribute created_at.



6
7
8
# File 'lib/ngrokapi/models/reserved_domain.rb', line 6

def created_at
  @created_at
end

#descriptionObject (readonly)

Returns the value of attribute description.



6
7
8
# File 'lib/ngrokapi/models/reserved_domain.rb', line 6

def description
  @description
end

#domainObject (readonly)

Returns the value of attribute domain.



6
7
8
# File 'lib/ngrokapi/models/reserved_domain.rb', line 6

def domain
  @domain
end

#http_endpoint_configurationObject (readonly)

Returns the value of attribute http_endpoint_configuration.



6
7
8
# File 'lib/ngrokapi/models/reserved_domain.rb', line 6

def http_endpoint_configuration
  @http_endpoint_configuration
end

#https_endpoint_configurationObject (readonly)

Returns the value of attribute https_endpoint_configuration.



6
7
8
# File 'lib/ngrokapi/models/reserved_domain.rb', line 6

def https_endpoint_configuration
  @https_endpoint_configuration
end

#idObject (readonly)

Returns the value of attribute id.



6
7
8
# File 'lib/ngrokapi/models/reserved_domain.rb', line 6

def id
  @id
end

#metadataObject (readonly)

Returns the value of attribute metadata.



6
7
8
# File 'lib/ngrokapi/models/reserved_domain.rb', line 6

def 
  @metadata
end

#regionObject (readonly)

Returns the value of attribute region.



6
7
8
# File 'lib/ngrokapi/models/reserved_domain.rb', line 6

def region
  @region
end

#uriObject (readonly)

Returns the value of attribute uri.



6
7
8
# File 'lib/ngrokapi/models/reserved_domain.rb', line 6

def uri
  @uri
end

Instance Method Details

#==(other) ⇒ Object



42
43
44
# File 'lib/ngrokapi/models/reserved_domain.rb', line 42

def ==(other)
  @attrs == other.attrs
end

#deleteObject



58
59
60
61
62
# File 'lib/ngrokapi/models/reserved_domain.rb', line 58

def delete
  @client.delete(
    id: @id
  )
end

#to_hObject



50
51
52
# File 'lib/ngrokapi/models/reserved_domain.rb', line 50

def to_h
  @attrs.to_h
end

#to_sObject



46
47
48
# File 'lib/ngrokapi/models/reserved_domain.rb', line 46

def to_s
  @attrs.to_s
end