Class: RubyAem::Resources::Saml

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_aem/resources/saml.rb

Overview

AEM class contains API calls related to managing SAML.

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Object

Initialise Saml.

Parameters:

  • RubyAem::Client



25
26
27
28
# File 'lib/ruby_aem/resources/saml.rb', line 25

def initialize(client)
  @client = client
  @call_params = {}
end

Instance Method Details

#create(opts) ⇒ Object

Create SAML configuration

Parameters:

Returns:

  • RubyAem::Result



39
40
41
42
# File 'lib/ruby_aem/resources/saml.rb', line 39

def create(opts)
  @call_params = @call_params.merge(opts)
  @client.call(self.class, __callee__.to_s, @call_params)
end

#deleteObject

Delete SAML configuration

Returns:

  • RubyAem::Result



47
48
49
50
51
52
# File 'lib/ruby_aem/resources/saml.rb', line 47

def delete
  @call_params[:apply] = true
  @call_params[:delete] = true

  @client.call(self.class, __callee__.to_s, @call_params)
end

#getObject

Get SAML configuration

Returns:

  • RubyAem::Result



57
58
59
# File 'lib/ruby_aem/resources/saml.rb', line 57

def get
  @client.call(self.class, __callee__.to_s, @call_params)
end