Class: NgrokAPI::Services::HTTPSEdgeMutualTLSModuleClient
- Inherits:
- 
      Object
      
        - Object
- NgrokAPI::Services::HTTPSEdgeMutualTLSModuleClient
 
- Defined in:
- lib/ngrokapi/services/https_edge_mutual_tls_module_client.rb
Overview
Constant Summary collapse
- PATH =
          The API path for the requests 
- '/edges/https/%{id}/mutual_tls'
Instance Attribute Summary collapse
- 
  
    
      #client  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute client. 
Instance Method Summary collapse
- #delete(id: "") ⇒ NgrokAPI::Models::Empty
- #delete!(id: "") ⇒ NgrokAPI::Models::Empty
- #get(id: "") ⇒ NgrokAPI::Models::EndpointMutualTLS
- #get!(id: "") ⇒ NgrokAPI::Models::EndpointMutualTLS
- 
  
    
      #initialize(client:)  ⇒ HTTPSEdgeMutualTLSModuleClient 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of HTTPSEdgeMutualTLSModuleClient. 
- #replace(id: "", a_module: nil) ⇒ NgrokAPI::Models::EndpointMutualTLS
- #replace!(id: "", a_module: nil) ⇒ NgrokAPI::Models::EndpointMutualTLS
Constructor Details
#initialize(client:) ⇒ HTTPSEdgeMutualTLSModuleClient
Returns a new instance of HTTPSEdgeMutualTLSModuleClient.
| 15 16 17 | # File 'lib/ngrokapi/services/https_edge_mutual_tls_module_client.rb', line 15 def initialize(client:) @client = client end | 
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
| 13 14 15 | # File 'lib/ngrokapi/services/https_edge_mutual_tls_module_client.rb', line 13 def client @client end | 
Instance Method Details
#delete(id: "") ⇒ NgrokAPI::Models::Empty
| 86 87 88 89 90 91 92 | # File 'lib/ngrokapi/services/https_edge_mutual_tls_module_client.rb', line 86 def delete(id: "") path = '/edges/https/%{id}/mutual_tls' replacements = { id: id, } @client.delete(path % replacements) end | 
#delete!(id: "") ⇒ NgrokAPI::Models::Empty
| 99 100 101 102 103 104 105 | # File 'lib/ngrokapi/services/https_edge_mutual_tls_module_client.rb', line 99 def delete!(id: "") path = '/edges/https/%{id}/mutual_tls' replacements = { id: id, } @client.delete(path % replacements, danger: true) end | 
#get(id: "") ⇒ NgrokAPI::Models::EndpointMutualTLS
| 56 57 58 59 60 61 62 63 64 | # File 'lib/ngrokapi/services/https_edge_mutual_tls_module_client.rb', line 56 def get(id: "") path = '/edges/https/%{id}/mutual_tls' replacements = { id: id, } data = {} result = @client.get(path % replacements, data: data) NgrokAPI::Models::EndpointMutualTLS.new(client: self, attrs: result) end | 
#get!(id: "") ⇒ NgrokAPI::Models::EndpointMutualTLS
| 71 72 73 74 75 76 77 78 79 | # File 'lib/ngrokapi/services/https_edge_mutual_tls_module_client.rb', line 71 def get!(id: "") path = '/edges/https/%{id}/mutual_tls' replacements = { id: id, } data = {} result = @client.get(path % replacements, data: data, danger: true) NgrokAPI::Models::EndpointMutualTLS.new(client: self, attrs: result) end | 
#replace(id: "", a_module: nil) ⇒ NgrokAPI::Models::EndpointMutualTLS
| 25 26 27 28 29 30 31 32 33 | # File 'lib/ngrokapi/services/https_edge_mutual_tls_module_client.rb', line 25 def replace(id: "", a_module: nil) path = '/edges/https/%{id}/mutual_tls' replacements = { id: id, } data = a_module result = @client.put(path % replacements, data: data) NgrokAPI::Models::EndpointMutualTLS.new(client: self, attrs: result) end | 
#replace!(id: "", a_module: nil) ⇒ NgrokAPI::Models::EndpointMutualTLS
| 41 42 43 44 45 46 47 48 49 | # File 'lib/ngrokapi/services/https_edge_mutual_tls_module_client.rb', line 41 def replace!(id: "", a_module: nil) path = '/edges/https/%{id}/mutual_tls' replacements = { id: id, } data = a_module result = @client.put(path % replacements, data: data, danger: true) NgrokAPI::Models::EndpointMutualTLS.new(client: self, attrs: result) end |