Class: Netscaler::Ssl::Vserver::Unbind

Inherits:
NetscalerService show all
Defined in:
lib/netscaler/ssl/vserver/unbind.rb

Instance Method Summary collapse

Methods inherited from NetscalerService

#validate_payload

Constructor Details

#initialize(netscaler) ⇒ Unbind

Returns a new instance of Unbind.



5
6
7
# File 'lib/netscaler/ssl/vserver/unbind.rb', line 5

def initialize(netscaler)
  @netscaler=netscaler
end

Instance Method Details

#ecccurve(payload) ⇒ Object

Raises:

  • (ArgumentError)


21
22
23
24
25
# File 'lib/netscaler/ssl/vserver/unbind.rb', line 21

def ecccurve(payload)
  raise ArgumentError, 'payload cannot be null' if payload.nil?
  validate_payload(payload, [:vservername, :ecccurvename])
  return @netscaler.adapter.delete("config/sslvserver_sslecccurve_binding/#{payload[:vservername]}", {'params' => {'ecccurvename' => payload[:ecccurename]}})
end

#sslcertkey(payload) ⇒ Object

Raises:

  • (ArgumentError)


9
10
11
12
13
# File 'lib/netscaler/ssl/vserver/unbind.rb', line 9

def sslcertkey(payload)
  raise ArgumentError, 'payload cannot be null' if payload.nil?
  validate_payload(payload, [:vservername, :certkeyname])
  return @netscaler.adapter.post_no_body("config/sslvserver_sslcertkey_binding/#{payload[:vservername]}?action=unbind/", {'params' => {'action' => 'unbind'}, 'sslvserver_sslcertkey_binding' => payload})
end

#sslpolicy(payload) ⇒ Object

Raises:

  • (ArgumentError)


15
16
17
18
19
# File 'lib/netscaler/ssl/vserver/unbind.rb', line 15

def sslpolicy(payload)
  raise ArgumentError, 'payload cannot be null' if payload.nil?
  validate_payload(payload, [:vservername, :policyname, :priority])
  return @netscaler.adapter.delete("config/sslvserver_sslpolicy_binding/#{payload[:vservername]}", {'params' => { 'policyname' => payload[:policyname], 'priority' => payload[:priority]}})
end