class SwaggerAemOsgiClient::ComAdobeGraniteAuthSamlSamlAuthenticationHandlerProperties

Attributes

add_group_memberships[RW]
assertion_consumer_service_url[RW]
clock_tolerance[RW]
create_user[RW]
default_groups[RW]
default_redirect_url[RW]
digest_method[RW]
group_membership_attribute[RW]
handle_logout[RW]
identity_sync_type[RW]
idp_cert_alias[RW]
idp_http_redirect[RW]
idp_identifier[RW]
idp_url[RW]
key_store_password[RW]
logout_url[RW]
name_id_format[RW]
path[RW]
service_provider_entity_id[RW]
service_ranking[RW]
signature_method[RW]
sp_private_key_alias[RW]
synchronize_attributes[RW]
use_encryption[RW]
user_id_attribute[RW]
user_intermediate_path[RW]

Public Class Methods

attribute_map() click to toggle source

Attribute mapping from ruby-style variable name to JSON key.

# File lib/swagger_aem_osgi/models/com_adobe_granite_auth_saml_saml_authentication_handler_properties.rb, line 70
def self.attribute_map
  {
    :'path' => :'path',
    :'service_ranking' => :'service.ranking',
    :'idp_url' => :'idpUrl',
    :'idp_cert_alias' => :'idpCertAlias',
    :'idp_http_redirect' => :'idpHttpRedirect',
    :'service_provider_entity_id' => :'serviceProviderEntityId',
    :'assertion_consumer_service_url' => :'assertionConsumerServiceURL',
    :'sp_private_key_alias' => :'spPrivateKeyAlias',
    :'key_store_password' => :'keyStorePassword',
    :'default_redirect_url' => :'defaultRedirectUrl',
    :'user_id_attribute' => :'userIDAttribute',
    :'use_encryption' => :'useEncryption',
    :'create_user' => :'createUser',
    :'user_intermediate_path' => :'userIntermediatePath',
    :'add_group_memberships' => :'addGroupMemberships',
    :'group_membership_attribute' => :'groupMembershipAttribute',
    :'default_groups' => :'defaultGroups',
    :'name_id_format' => :'nameIdFormat',
    :'synchronize_attributes' => :'synchronizeAttributes',
    :'handle_logout' => :'handleLogout',
    :'logout_url' => :'logoutUrl',
    :'clock_tolerance' => :'clockTolerance',
    :'digest_method' => :'digestMethod',
    :'signature_method' => :'signatureMethod',
    :'identity_sync_type' => :'identitySyncType',
    :'idp_identifier' => :'idpIdentifier'
  }
end
new(attributes = {}) click to toggle source

Initializes the object @param [Hash] attributes Model attributes in the form of hash

# File lib/swagger_aem_osgi/models/com_adobe_granite_auth_saml_saml_authentication_handler_properties.rb, line 135
def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

  # convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }

  if attributes.has_key?(:'path')
    self.path = attributes[:'path']
  end

  if attributes.has_key?(:'service.ranking')
    self.service_ranking = attributes[:'service.ranking']
  end

  if attributes.has_key?(:'idpUrl')
    self.idp_url = attributes[:'idpUrl']
  end

  if attributes.has_key?(:'idpCertAlias')
    self.idp_cert_alias = attributes[:'idpCertAlias']
  end

  if attributes.has_key?(:'idpHttpRedirect')
    self.idp_http_redirect = attributes[:'idpHttpRedirect']
  end

  if attributes.has_key?(:'serviceProviderEntityId')
    self.service_provider_entity_id = attributes[:'serviceProviderEntityId']
  end

  if attributes.has_key?(:'assertionConsumerServiceURL')
    self.assertion_consumer_service_url = attributes[:'assertionConsumerServiceURL']
  end

  if attributes.has_key?(:'spPrivateKeyAlias')
    self.sp_private_key_alias = attributes[:'spPrivateKeyAlias']
  end

  if attributes.has_key?(:'keyStorePassword')
    self.key_store_password = attributes[:'keyStorePassword']
  end

  if attributes.has_key?(:'defaultRedirectUrl')
    self.default_redirect_url = attributes[:'defaultRedirectUrl']
  end

  if attributes.has_key?(:'userIDAttribute')
    self.user_id_attribute = attributes[:'userIDAttribute']
  end

  if attributes.has_key?(:'useEncryption')
    self.use_encryption = attributes[:'useEncryption']
  end

  if attributes.has_key?(:'createUser')
    self.create_user = attributes[:'createUser']
  end

  if attributes.has_key?(:'userIntermediatePath')
    self.user_intermediate_path = attributes[:'userIntermediatePath']
  end

  if attributes.has_key?(:'addGroupMemberships')
    self.add_group_memberships = attributes[:'addGroupMemberships']
  end

  if attributes.has_key?(:'groupMembershipAttribute')
    self.group_membership_attribute = attributes[:'groupMembershipAttribute']
  end

  if attributes.has_key?(:'defaultGroups')
    self.default_groups = attributes[:'defaultGroups']
  end

  if attributes.has_key?(:'nameIdFormat')
    self.name_id_format = attributes[:'nameIdFormat']
  end

  if attributes.has_key?(:'synchronizeAttributes')
    self.synchronize_attributes = attributes[:'synchronizeAttributes']
  end

  if attributes.has_key?(:'handleLogout')
    self.handle_logout = attributes[:'handleLogout']
  end

  if attributes.has_key?(:'logoutUrl')
    self.logout_url = attributes[:'logoutUrl']
  end

  if attributes.has_key?(:'clockTolerance')
    self.clock_tolerance = attributes[:'clockTolerance']
  end

  if attributes.has_key?(:'digestMethod')
    self.digest_method = attributes[:'digestMethod']
  end

  if attributes.has_key?(:'signatureMethod')
    self.signature_method = attributes[:'signatureMethod']
  end

  if attributes.has_key?(:'identitySyncType')
    self.identity_sync_type = attributes[:'identitySyncType']
  end

  if attributes.has_key?(:'idpIdentifier')
    self.idp_identifier = attributes[:'idpIdentifier']
  end
end
openapi_types() click to toggle source

Attribute type mapping.

# File lib/swagger_aem_osgi/models/com_adobe_granite_auth_saml_saml_authentication_handler_properties.rb, line 102
def self.openapi_types
  {
    :'path' => :'ConfigNodePropertyArray',
    :'service_ranking' => :'ConfigNodePropertyInteger',
    :'idp_url' => :'ConfigNodePropertyString',
    :'idp_cert_alias' => :'ConfigNodePropertyString',
    :'idp_http_redirect' => :'ConfigNodePropertyBoolean',
    :'service_provider_entity_id' => :'ConfigNodePropertyString',
    :'assertion_consumer_service_url' => :'ConfigNodePropertyString',
    :'sp_private_key_alias' => :'ConfigNodePropertyString',
    :'key_store_password' => :'ConfigNodePropertyString',
    :'default_redirect_url' => :'ConfigNodePropertyString',
    :'user_id_attribute' => :'ConfigNodePropertyString',
    :'use_encryption' => :'ConfigNodePropertyBoolean',
    :'create_user' => :'ConfigNodePropertyBoolean',
    :'user_intermediate_path' => :'ConfigNodePropertyString',
    :'add_group_memberships' => :'ConfigNodePropertyBoolean',
    :'group_membership_attribute' => :'ConfigNodePropertyString',
    :'default_groups' => :'ConfigNodePropertyArray',
    :'name_id_format' => :'ConfigNodePropertyString',
    :'synchronize_attributes' => :'ConfigNodePropertyArray',
    :'handle_logout' => :'ConfigNodePropertyBoolean',
    :'logout_url' => :'ConfigNodePropertyString',
    :'clock_tolerance' => :'ConfigNodePropertyInteger',
    :'digest_method' => :'ConfigNodePropertyString',
    :'signature_method' => :'ConfigNodePropertyString',
    :'identity_sync_type' => :'ConfigNodePropertyDropDown',
    :'idp_identifier' => :'ConfigNodePropertyString'
  }
end

Public Instance Methods

==(o) click to toggle source

Checks equality by comparing each attribute. @param [Object] Object to be compared

# File lib/swagger_aem_osgi/models/com_adobe_granite_auth_saml_saml_authentication_handler_properties.rb, line 261
def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      path == o.path &&
      service_ranking == o.service_ranking &&
      idp_url == o.idp_url &&
      idp_cert_alias == o.idp_cert_alias &&
      idp_http_redirect == o.idp_http_redirect &&
      service_provider_entity_id == o.service_provider_entity_id &&
      assertion_consumer_service_url == o.assertion_consumer_service_url &&
      sp_private_key_alias == o.sp_private_key_alias &&
      key_store_password == o.key_store_password &&
      default_redirect_url == o.default_redirect_url &&
      user_id_attribute == o.user_id_attribute &&
      use_encryption == o.use_encryption &&
      create_user == o.create_user &&
      user_intermediate_path == o.user_intermediate_path &&
      add_group_memberships == o.add_group_memberships &&
      group_membership_attribute == o.group_membership_attribute &&
      default_groups == o.default_groups &&
      name_id_format == o.name_id_format &&
      synchronize_attributes == o.synchronize_attributes &&
      handle_logout == o.handle_logout &&
      logout_url == o.logout_url &&
      clock_tolerance == o.clock_tolerance &&
      digest_method == o.digest_method &&
      signature_method == o.signature_method &&
      identity_sync_type == o.identity_sync_type &&
      idp_identifier == o.idp_identifier
end
_deserialize(type, value) click to toggle source

Deserializes the data based on type @param string type Data type @param string value Value to be deserialized @return [Object] Deserialized data

# File lib/swagger_aem_osgi/models/com_adobe_granite_auth_saml_saml_authentication_handler_properties.rb, line 328
def _deserialize(type, value)
  case type.to_sym
  when :DateTime
    DateTime.parse(value)
  when :Date
    Date.parse(value)
  when :String
    value.to_s
  when :Integer
    value.to_i
  when :Float
    value.to_f
  when :BOOLEAN
    if value.to_s =~ /\A(true|t|yes|y|1)\z/i
      true
    else
      false
    end
  when :Object
    # generic object (usually a Hash), return directly
    value
  when /\AArray<(?<inner_type>.+)>\z/
    inner_type = Regexp.last_match[:inner_type]
    value.map { |v| _deserialize(inner_type, v) }
  when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
    k_type = Regexp.last_match[:k_type]
    v_type = Regexp.last_match[:v_type]
    {}.tap do |hash|
      value.each do |k, v|
        hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
      end
    end
  else # model
    temp_model = SwaggerAemOsgiClient.const_get(type).new
    temp_model.build_from_hash(value)
  end
end
_to_hash(value) click to toggle source

Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value @param [Object] value Any valid value @return [Hash] Returns the value in the form of hash

# File lib/swagger_aem_osgi/models/com_adobe_granite_auth_saml_saml_authentication_handler_properties.rb, line 394
def _to_hash(value)
  if value.is_a?(Array)
    value.compact.map { |v| _to_hash(v) }
  elsif value.is_a?(Hash)
    {}.tap do |hash|
      value.each { |k, v| hash[k] = _to_hash(v) }
    end
  elsif value.respond_to? :to_hash
    value.to_hash
  else
    value
  end
end
build_from_hash(attributes) click to toggle source

Builds the object from hash @param [Hash] attributes Model attributes in the form of hash @return [Object] Returns the model itself

# File lib/swagger_aem_osgi/models/com_adobe_granite_auth_saml_saml_authentication_handler_properties.rb, line 307
def build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)
  self.class.openapi_types.each_pair do |key, type|
    if type =~ /\AArray<(.*)>/i
      # check to ensure the input is an array given that the the attribute
      # is documented as an array but the input is not
      if attributes[self.class.attribute_map[key]].is_a?(Array)
        self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
      end
    elsif !attributes[self.class.attribute_map[key]].nil?
      self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
    end # or else data not found in attributes(hash), not an issue as the data can be optional
  end

  self
end
eql?(o) click to toggle source

@see the `==` method @param [Object] Object to be compared

# File lib/swagger_aem_osgi/models/com_adobe_granite_auth_saml_saml_authentication_handler_properties.rb, line 294
def eql?(o)
  self == o
end
hash() click to toggle source

Calculates hash code according to all attributes. @return [Fixnum] Hash code

# File lib/swagger_aem_osgi/models/com_adobe_granite_auth_saml_saml_authentication_handler_properties.rb, line 300
def hash
  [path, service_ranking, idp_url, idp_cert_alias, idp_http_redirect, service_provider_entity_id, assertion_consumer_service_url, sp_private_key_alias, key_store_password, default_redirect_url, user_id_attribute, use_encryption, create_user, user_intermediate_path, add_group_memberships, group_membership_attribute, default_groups, name_id_format, synchronize_attributes, handle_logout, logout_url, clock_tolerance, digest_method, signature_method, identity_sync_type, idp_identifier].hash
end
list_invalid_properties() click to toggle source

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

# File lib/swagger_aem_osgi/models/com_adobe_granite_auth_saml_saml_authentication_handler_properties.rb, line 248
def list_invalid_properties
  invalid_properties = Array.new
  invalid_properties
end
to_body() click to toggle source

to_body is an alias to to_hash (backward compatibility) @return [Hash] Returns the object in the form of hash

# File lib/swagger_aem_osgi/models/com_adobe_granite_auth_saml_saml_authentication_handler_properties.rb, line 374
def to_body
  to_hash
end
to_hash() click to toggle source

Returns the object in the form of hash @return [Hash] Returns the object in the form of hash

# File lib/swagger_aem_osgi/models/com_adobe_granite_auth_saml_saml_authentication_handler_properties.rb, line 380
def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = self.send(attr)
    next if value.nil?
    hash[param] = _to_hash(value)
  end
  hash
end
to_s() click to toggle source

Returns the string representation of the object @return [String] String presentation of the object

# File lib/swagger_aem_osgi/models/com_adobe_granite_auth_saml_saml_authentication_handler_properties.rb, line 368
def to_s
  to_hash.to_s
end
valid?() click to toggle source

Check to see if the all the properties in the model are valid @return true if the model is valid

# File lib/swagger_aem_osgi/models/com_adobe_granite_auth_saml_saml_authentication_handler_properties.rb, line 255
def valid?
  true
end