class AsposeSlidesCloud::ProtectionProperties
Protection properties.
Attributes
True if document properties are encrypted. Has effect only for password protected presentations.
Returns true if the presentation protected for reading.
Returns true if the presentation protected for editing.
True if the document should be opened as read-only.
Password for read protection.
Password for write protection.
Public Class Methods
Source
# File lib/aspose_slides_cloud/models/protection_properties.rb, line 47 def self.attribute_map super.merge({ :'encrypt_document_properties' => :'EncryptDocumentProperties', :'read_only_recommended' => :'ReadOnlyRecommended', :'read_password' => :'ReadPassword', :'write_password' => :'WritePassword', :'is_write_protected' => :'IsWriteProtected', :'is_encrypted' => :'IsEncrypted', }) end
Attribute mapping from ruby-style variable name to JSON key.
Source
# File lib/aspose_slides_cloud/models/protection_properties.rb, line 72 def initialize(attributes = {}) super if attributes.has_key?(:'EncryptDocumentProperties') self.encrypt_document_properties = attributes[:'EncryptDocumentProperties'] end if attributes.has_key?(:'ReadOnlyRecommended') self.read_only_recommended = attributes[:'ReadOnlyRecommended'] end if attributes.has_key?(:'ReadPassword') self.read_password = attributes[:'ReadPassword'] end if attributes.has_key?(:'WritePassword') self.write_password = attributes[:'WritePassword'] end if attributes.has_key?(:'IsWriteProtected') self.is_write_protected = attributes[:'IsWriteProtected'] end if attributes.has_key?(:'IsEncrypted') self.is_encrypted = attributes[:'IsEncrypted'] end end
Initializes the object @param [Hash] attributes Model attributes in the form of hash
Source
# File lib/aspose_slides_cloud/models/protection_properties.rb, line 59 def self.swagger_types super.merge({ :'encrypt_document_properties' => :'BOOLEAN', :'read_only_recommended' => :'BOOLEAN', :'read_password' => :'String', :'write_password' => :'String', :'is_write_protected' => :'BOOLEAN', :'is_encrypted' => :'BOOLEAN', }) end
Attribute type mapping.
Public Instance Methods
Source
# File lib/aspose_slides_cloud/models/protection_properties.rb, line 116 def ==(o) return true if self.equal?(o) self.class == o.class && self_uri == o.self_uri && alternate_links == o.alternate_links && encrypt_document_properties == o.encrypt_document_properties && read_only_recommended == o.read_only_recommended && read_password == o.read_password && write_password == o.write_password && is_write_protected == o.is_write_protected && is_encrypted == o.is_encrypted end
Checks equality by comparing each attribute. @param [Object] Object to be compared
Source
# File lib/aspose_slides_cloud/models/protection_properties.rb, line 131 def eql?(o) self == o end
@see the ‘==` method @param [Object] Object to be compared
Source
# File lib/aspose_slides_cloud/models/protection_properties.rb, line 137 def hash [self_uri, alternate_links, encrypt_document_properties, read_only_recommended, read_password, write_password, is_write_protected, is_encrypted].hash end
Calculates hash code according to all attributes. @return [Fixnum] Hash code
Source
# File lib/aspose_slides_cloud/models/protection_properties.rb, line 102 def list_invalid_properties invalid_properties = super invalid_properties end
Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons
Source
# File lib/aspose_slides_cloud/models/protection_properties.rb, line 109 def valid? return false if !super true end
Check to see if the all the properties in the model are valid @return true if the model is valid