Class: NgrokAPI::Models::EndpointOIDC

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of EndpointOIDC.



20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/ngrokapi/models/endpoint_oidc.rb', line 20

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']
  @issuer = @attrs['issuer']
  @client_id = @attrs['client_id']
  @client_secret = @attrs['client_secret']
  @scopes = @attrs['scopes']
end

Instance Attribute Details

#attrsObject (readonly)

Returns the value of attribute attrs.



8
9
10
# File 'lib/ngrokapi/models/endpoint_oidc.rb', line 8

def attrs
  @attrs
end

#clientObject (readonly)

Returns the value of attribute client.



8
9
10
# File 'lib/ngrokapi/models/endpoint_oidc.rb', line 8

def client
  @client
end

#client_idObject (readonly)

Returns the value of attribute client_id.



8
9
10
# File 'lib/ngrokapi/models/endpoint_oidc.rb', line 8

def client_id
  @client_id
end

#client_secretObject (readonly)

Returns the value of attribute client_secret.



8
9
10
# File 'lib/ngrokapi/models/endpoint_oidc.rb', line 8

def client_secret
  @client_secret
end

Returns the value of attribute cookie_prefix.



8
9
10
# File 'lib/ngrokapi/models/endpoint_oidc.rb', line 8

def cookie_prefix
  @cookie_prefix
end

#enabledObject (readonly)

Returns the value of attribute enabled.



8
9
10
# File 'lib/ngrokapi/models/endpoint_oidc.rb', line 8

def enabled
  @enabled
end

#inactivity_timeoutObject (readonly)

Returns the value of attribute inactivity_timeout.



8
9
10
# File 'lib/ngrokapi/models/endpoint_oidc.rb', line 8

def inactivity_timeout
  @inactivity_timeout
end

#issuerObject (readonly)

Returns the value of attribute issuer.



8
9
10
# File 'lib/ngrokapi/models/endpoint_oidc.rb', line 8

def issuer
  @issuer
end

#maximum_durationObject (readonly)

Returns the value of attribute maximum_duration.



8
9
10
# File 'lib/ngrokapi/models/endpoint_oidc.rb', line 8

def maximum_duration
  @maximum_duration
end

#options_passthroughObject (readonly)

Returns the value of attribute options_passthrough.



8
9
10
# File 'lib/ngrokapi/models/endpoint_oidc.rb', line 8

def options_passthrough
  @options_passthrough
end

#scopesObject (readonly)

Returns the value of attribute scopes.



8
9
10
# File 'lib/ngrokapi/models/endpoint_oidc.rb', line 8

def scopes
  @scopes
end

Instance Method Details

#==(other) ⇒ Object



34
35
36
# File 'lib/ngrokapi/models/endpoint_oidc.rb', line 34

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

#to_hObject



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

def to_h
  @attrs.to_h
end

#to_sObject



38
39
40
# File 'lib/ngrokapi/models/endpoint_oidc.rb', line 38

def to_s
  @attrs.to_s
end