Class: Netscaler::Ssl::Vserver::Bind
- Inherits:
-
NetscalerService
- Object
- NetscalerService
- Netscaler::Ssl::Vserver::Bind
- Defined in:
- lib/netscaler/ssl/vserver/bind.rb
Instance Method Summary collapse
- #ecccurve(payload) ⇒ Object
-
#initialize(netscaler) ⇒ Bind
constructor
A new instance of Bind.
- #sslcertkey(payload) ⇒ Object
- #sslpolicy(payload) ⇒ Object
Methods inherited from NetscalerService
Constructor Details
#initialize(netscaler) ⇒ Bind
Returns a new instance of Bind.
5 6 7 |
# File 'lib/netscaler/ssl/vserver/bind.rb', line 5 def initialize(netscaler) @netscaler=netscaler end |
Instance Method Details
#ecccurve(payload) ⇒ Object
21 22 23 24 25 |
# File 'lib/netscaler/ssl/vserver/bind.rb', line 21 def ecccurve(payload) raise ArgumentError, 'payload cannot be null' if payload.nil? validate_payload(payload, [:vservername, :ecccurvename]) return @netscaler.adapter.put("config/sslvserver_ecccurve_binding", {'sslvserver_ecccurve_binding' => payload}, {no_wrapper: true}) end |
#sslcertkey(payload) ⇒ Object
9 10 11 12 13 |
# File 'lib/netscaler/ssl/vserver/bind.rb', line 9 def sslcertkey(payload) raise ArgumentError, 'payload cannot be null' if payload.nil? validate_payload(payload, [:vservername, :certkeyname]) return @netscaler.adapter.post("config/sslvserver_sslcertkey_binding/#{payload[:vservername]}", {'params' => {'action' => 'bind'}, 'sslvserver_sslcertkey_binding' => payload}) end |
#sslpolicy(payload) ⇒ Object
15 16 17 18 19 |
# File 'lib/netscaler/ssl/vserver/bind.rb', line 15 def sslpolicy(payload) raise ArgumentError, 'payload cannot be null' if payload.nil? validate_payload(payload, [:vservername, :policyname, :priority]) return @netscaler.adapter.put("config/sslvserver_sslpolicy_binding/#{payload[:vservername]}", {'sslvserver_sslpolicy_binding' => payload}, {no_wrapper: true}) end |