<commit_before>/**
 *  Copyright (C) 2010 Cloud.com, Inc.  All rights reserved.
 * 
 * This software is licensed under the GNU General Public License v3 or later.
 * 
 * It is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or any later version.
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * 
 */
package com.cloud.api.response;

import java.util.Date;

import com.cloud.serializer.Param;
import com.cloud.storage.Storage.ImageFormat;
import com.google.gson.annotations.SerializedName;

public class TemplateResponse extends BaseResponse {
    @SerializedName("id") @Param(description="the template ID")
    private long id;

    @SerializedName("name") @Param(description="the template name")
    private String name;

    @SerializedName("displaytext") @Param(description="the template display text")
    private String displayText;

    @SerializedName("ispublic") // propName="public"  (FIXME:  this used to be part of Param annotation, do we need it?)
    @Param(description="true if this template is a public template, false otherwise")
    private boolean isPublic;

    @SerializedName("created") @Param(description="the date this template was created")
    private Date created;

    @SerializedName("removed") @Param(description="the date this template was removed")
    private Date removed;

    @SerializedName("isready") // propName="ready"  (FIXME:  this used to be part of Param annotation, do we need it?)
    @Param(description="true if the template is ready to be deployed from, false otherwise.")
    private boolean isReady;

    @SerializedName("passwordenabled") @Param(description="true if the reset password feature is enabled, false otherwise")
    private boolean passwordEnabled;

    @SerializedName("format") @Param(description="the format of the template.")
    private ImageFormat format;

    @SerializedName("bootable") @Param(description="true if the ISO is bootable, false otherwise")
    private Boolean bootable;

    @SerializedName("isfeatured") @Param(description="true if this template is a featured template, false otherwise")
    private boolean featured;

    @SerializedName("crossZones") @Param(description="true if the template is managed across all Zones, false otherwise")
    private boolean crossZones;

    @SerializedName("ostypeid") @Param(description="the ID of the OS type for this template.")
    private Long osTypeId;

    @SerializedName("ostypename") @Param(description="the name of the OS type for this template.")
    private String osTypeName;

    @SerializedName("accountid") @Param(description="the account id to which the template belongs")
    private Long accountId;

    @SerializedName("account") @Param(description="the account name to which the template belongs")
    private String account;

    @SerializedName("zoneid") @Param(description="the ID of the zone for this template")
    private Long zoneId;
<commit_msg>bug 7417: fixing the password return val issue for an iso status 7417: resolved fixed<commit_after>/**
 *  Copyright (C) 2010 Cloud.com, Inc.  All rights reserved.
 * 
 * This software is licensed under the GNU General Public License v3 or later.
 * 
 * It is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or any later version.
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * 
 */
package com.cloud.api.response;

import java.util.Date;

import com.cloud.serializer.Param;
import com.cloud.storage.Storage.ImageFormat;
import com.google.gson.annotations.SerializedName;

public class TemplateResponse extends BaseResponse {
    @SerializedName("id") @Param(description="the template ID")
    private long id;

    @SerializedName("name") @Param(description="the template name")
    private String name;

    @SerializedName("displaytext") @Param(description="the template display text")
    private String displayText;

    @SerializedName("ispublic") // propName="public"  (FIXME:  this used to be part of Param annotation, do we need it?)
    @Param(description="true if this template is a public template, false otherwise")
    private boolean isPublic;

    @SerializedName("created") @Param(description="the date this template was created")
    private Date created;

    @SerializedName("removed") @Param(description="the date this template was removed")
    private Date removed;

    @SerializedName("isready") // propName="ready"  (FIXME:  this used to be part of Param annotation, do we need it?)
    @Param(description="true if the template is ready to be deployed from, false otherwise.")
    private boolean isReady;

    @SerializedName("passwordenabled") @Param(description="true if the reset password feature is enabled, false otherwise")
    private Boolean passwordEnabled;

    @SerializedName("format") @Param(description="the format of the template.")
    private ImageFormat format;

    @SerializedName("bootable") @Param(description="true if the ISO is bootable, false otherwise")
    private Boolean bootable;

    @SerializedName("isfeatured") @Param(description="true if this template is a featured template, false otherwise")
    private boolean featured;

    @SerializedName("crossZones") @Param(description="true if the template is managed across all Zones, false otherwise")
    private boolean crossZones;

    @SerializedName("ostypeid") @Param(description="the ID of the OS type for this template.")
    private Long osTypeId;

    @SerializedName("ostypename") @Param(description="the name of the OS type for this template.")
    private String osTypeName;

    @SerializedName("accountid") @Param(description="the account id to which the template belongs")
    private Long accountId;

    @SerializedName("account") @Param(description="the account name to which the template belongs")
    private String account;

    @SerializedName("zoneid") @Param(description="the ID of the zone for this template")
    private Long zoneId;

{'fraction_non_alphanumeric': 0.09000584453535944, 'fraction_numerical': 0.0029222676797194622, 'mean_word_length': 4.5425101214574894, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2269729', 'n_tokens_mistral': 1766, 'n_tokens_neox': 1708, 'n_words': 730}