class Comet::RemoteStorageOption
def to_hash
-
(Hash)
- The complete object as a Ruby hash
def to_hash ret = {} ret['Type'] = @type ret['Description'] = @description unless @remote_address.nil? ret['RemoteAddress'] = @remote_address end unless @username.nil? ret['Username'] = @username end unless @password.nil? ret['Password'] = @password end unless @ldap.nil? ret['LDAP'] = @ldap end unless @oidc.nil? ret['OIDC'] = @oidc end unless @b2.nil? ret['B2'] = @b2 end unless @wasabi.nil? ret['Wasabi'] = @wasabi end unless @custom.nil? ret['Custom'] = @custom end unless @s3.nil? ret['S3'] = @s3 end unless @aws.nil? ret['AWS'] = @aws end unless @storj.nil? ret['Storj'] = @storj end unless @imp_partner.nil? ret['ImpPartner'] = @imp_partner end unless @imp_user.nil? ret['ImpUser'] = @imp_user end ret['StorageLimitEnabled'] = @storage_limit_enabled ret['StorageLimitBytes'] = @storage_limit_bytes ret['RebrandStorage'] = @rebrand_storage @unknown_json_fields.each do |k, v| ret[k] = v end ret end