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

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: PublicIPAddress
 * @Description:公共ip地址
 * @author: zhenpingLi/李振平
 * @date: 2020/10/16 10:02
 */
@Table("public_ip_address")
@Data
public class PublicIPAddress 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("idle_timeout_in_minutes")
    private Integer IdleTimeoutInMinutes;
    @Column("sku")
    private String sku;
    @Column("version")
    private String version;// ipv4/ipv6
    @Column("ip_allocation_method")
    private String ipAllocationMethod;// 动态/静态
    @Column("ip_address")
    private String ipAddress;
    @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("locked")
    private Boolean locked;
    @Column("fqdn")
    private String fqdn;
    @Column("tags")
    private String tags;
    @IgnoreAll
    private String regionName;
    @IgnoreAll
    private String resourceGroupName;
    @IgnoreAll
    private String tenantName;
    @IgnoreAll
    private String projectName;

    //eip使用者，是网络接口还是负载之类的
    @IgnoreAll
    private String resourceUserType;
    @IgnoreAll
    private String resourceUserName;
    @IgnoreAll
    private Long resourceUserId;

}