package com.bocloud.ims.entity.resource.azure;

import com.bocloud.entity.annotations.Column;
import com.bocloud.entity.annotations.IgnoreAll;
import com.bocloud.entity.annotations.PK;
import com.bocloud.entity.annotations.Table;
import com.bocloud.entity.bean.GenericEntity;
import com.bocloud.entity.meta.PKStrategy;
import lombok.Data;

/**
 * @ClassName: AvailabilitySet
 * @Description:可用性集
 * @author: zhenpingLi/李振平
 * @date: 2020/10/16 10:06
 */
@Table("availability_set")
@Data
public class AvailabilitySet extends GenericEntity {

    @PK(value = PKStrategy.AUTO)
    private Long id; // ID
    @Column("uuid")
    private String uuid;
    @Column("region_id")
    private String regionId;
    @Column("resource_group_Id")
    private Long resourceGroupId;
    @Column("fault_domain_count")
    private Integer faultDomainCount;// 容错域
    @Column("update_domain_count")
    private Integer updateDomainCount;// 更新域
    @Column("vendor_id")
    private Long vendorId;
    @Column("tenant_id")
    private Long tenantId;
    @Column("project_id")
    private Long projectId;// 项目ID
    @Column("user_id")
    private Long userId;
    @Column("tags")
    private String tags;
    @IgnoreAll
    private String resourceGroupName;
    @IgnoreAll
    private String regionName;
    @IgnoreAll
    private String tenantName;
    @IgnoreAll
    private String projectName;


}