Class: NgrokAPI::Models::EndpointSAML

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of EndpointSAML.



28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/ngrokapi/models/endpoint_saml.rb', line 28

def initialize(client: nil, attrs: {})
  @client = client
  @attrs = attrs
  @enabled = @attrs['enabled']
  @options_passthrough = @attrs['options_passthrough']
  @cookie_prefix = @attrs['cookie_prefix']
  @inactivity_timeout = @attrs['inactivity_timeout']
  @maximum_duration = @attrs['maximum_duration']
  @idp_metadata = @attrs['idp_metadata']
  @force_authn = @attrs['force_authn']
  @allow_idp_initiated = @attrs['allow_idp_initiated']
  @authorized_groups = @attrs['authorized_groups']
  @entity_id = @attrs['entity_id']
  unless @attrs['assertion_consumer_service_url'].nil?
    @assertion_consumer_service_url = URI(@attrs['assertion_consumer_service_url'])
  end
  unless @attrs['single_logout_url'].nil?
    @single_logout_url = URI(@attrs['single_logout_url'])
  end
  @request_signing_certificate_pem = @attrs['request_signing_certificate_pem']
  unless @attrs['metadata_url'].nil?
    @metadata_url = URI(@attrs['metadata_url'])
  end
  @nameid_format = @attrs['nameid_format']
end

Instance Attribute Details

#allow_idp_initiatedObject (readonly)

Returns the value of attribute allow_idp_initiated.



10
11
12
# File 'lib/ngrokapi/models/endpoint_saml.rb', line 10

def allow_idp_initiated
  @allow_idp_initiated
end

#assertion_consumer_service_urlObject (readonly)

Returns the value of attribute assertion_consumer_service_url.



10
11
12
# File 'lib/ngrokapi/models/endpoint_saml.rb', line 10

def assertion_consumer_service_url
  @assertion_consumer_service_url
end

#attrsObject (readonly)

Returns the value of attribute attrs.



10
11
12
# File 'lib/ngrokapi/models/endpoint_saml.rb', line 10

def attrs
  @attrs
end

#authorized_groupsObject (readonly)

Returns the value of attribute authorized_groups.



10
11
12
# File 'lib/ngrokapi/models/endpoint_saml.rb', line 10

def authorized_groups
  @authorized_groups
end

#clientObject (readonly)

Returns the value of attribute client.



10
11
12
# File 'lib/ngrokapi/models/endpoint_saml.rb', line 10

def client
  @client
end

Returns the value of attribute cookie_prefix.



10
11
12
# File 'lib/ngrokapi/models/endpoint_saml.rb', line 10

def cookie_prefix
  @cookie_prefix
end

#enabledObject (readonly)

Returns the value of attribute enabled.



10
11
12
# File 'lib/ngrokapi/models/endpoint_saml.rb', line 10

def enabled
  @enabled
end

#entity_idObject (readonly)

Returns the value of attribute entity_id.



10
11
12
# File 'lib/ngrokapi/models/endpoint_saml.rb', line 10

def entity_id
  @entity_id
end

#force_authnObject (readonly)

Returns the value of attribute force_authn.



10
11
12
# File 'lib/ngrokapi/models/endpoint_saml.rb', line 10

def force_authn
  @force_authn
end

#idp_metadataObject (readonly)

Returns the value of attribute idp_metadata.



10
11
12
# File 'lib/ngrokapi/models/endpoint_saml.rb', line 10

def 
  @idp_metadata
end

#inactivity_timeoutObject (readonly)

Returns the value of attribute inactivity_timeout.



10
11
12
# File 'lib/ngrokapi/models/endpoint_saml.rb', line 10

def inactivity_timeout
  @inactivity_timeout
end

#maximum_durationObject (readonly)

Returns the value of attribute maximum_duration.



10
11
12
# File 'lib/ngrokapi/models/endpoint_saml.rb', line 10

def maximum_duration
  @maximum_duration
end

#metadata_urlObject (readonly)

Returns the value of attribute metadata_url.



10
11
12
# File 'lib/ngrokapi/models/endpoint_saml.rb', line 10

def 
  @metadata_url
end

#nameid_formatObject (readonly)

Returns the value of attribute nameid_format.



10
11
12
# File 'lib/ngrokapi/models/endpoint_saml.rb', line 10

def nameid_format
  @nameid_format
end

#options_passthroughObject (readonly)

Returns the value of attribute options_passthrough.



10
11
12
# File 'lib/ngrokapi/models/endpoint_saml.rb', line 10

def options_passthrough
  @options_passthrough
end

#request_signing_certificate_pemObject (readonly)

Returns the value of attribute request_signing_certificate_pem.



10
11
12
# File 'lib/ngrokapi/models/endpoint_saml.rb', line 10

def request_signing_certificate_pem
  @request_signing_certificate_pem
end

#single_logout_urlObject (readonly)

Returns the value of attribute single_logout_url.



10
11
12
# File 'lib/ngrokapi/models/endpoint_saml.rb', line 10

def single_logout_url
  @single_logout_url
end

Instance Method Details

#==(other) ⇒ Object



54
55
56
# File 'lib/ngrokapi/models/endpoint_saml.rb', line 54

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

#to_hObject



62
63
64
# File 'lib/ngrokapi/models/endpoint_saml.rb', line 62

def to_h
  @attrs.to_h
end

#to_sObject



58
59
60
# File 'lib/ngrokapi/models/endpoint_saml.rb', line 58

def to_s
  @attrs.to_s
end