This commit is contained in:
crusader 2018-06-13 19:02:43 +09:00
parent 6d6ac17b0a
commit 846c510a1a
10 changed files with 40 additions and 0 deletions

View File

@ -83,6 +83,10 @@ var (
} }
) )
func (e MetaCryptoTypeEnum) String() string {
return metaCryptoTypeEnumID[e]
}
func ToMetaCryptoTypeEnum(v *MetaCryptoType) MetaCryptoTypeEnum { func ToMetaCryptoTypeEnum(v *MetaCryptoType) MetaCryptoTypeEnum {
return metaCryptoTypeEnumKey[v.Key] return metaCryptoTypeEnumKey[v.Key]
} }

View File

@ -32,6 +32,10 @@ var (
} }
) )
func (e MetaIPTypeEnum) String() string {
return metaIPTypeEnumID[e]
}
func ToMetaIPTypeEnum(v *MetaIPType) MetaIPTypeEnum { func ToMetaIPTypeEnum(v *MetaIPType) MetaIPTypeEnum {
return metaIPTypeEnumKey[v.Key] return metaIPTypeEnumKey[v.Key]
} }

View File

@ -35,6 +35,10 @@ var (
} }
) )
func (e MetaInfraTypeEnum) String() string {
return metaInfraTypeEnumID[e]
}
func ToMetaInfraTypeEnum(v *MetaInfraType) MetaInfraTypeEnum { func ToMetaInfraTypeEnum(v *MetaInfraType) MetaInfraTypeEnum {
return metaInfraTypeEnumKey[v.Key] return metaInfraTypeEnumKey[v.Key]
} }

View File

@ -38,6 +38,10 @@ var (
} }
) )
func (e MetaMemberStatusEnum) String() string {
return metaMemberStatusEnumID[e]
}
func ToMetaMemberStatusEnum(v *MetaMemberStatus) MetaMemberStatusEnum { func ToMetaMemberStatusEnum(v *MetaMemberStatus) MetaMemberStatusEnum {
return metaMemberStatusEnumKey[v.Key] return metaMemberStatusEnumKey[v.Key]
} }

View File

@ -35,6 +35,10 @@ var (
} }
) )
func (e NoAuthProbeStatusEnum) String() string {
return noAuthProbeStatusEnumID[e]
}
func ToNoAuthProbeStatusEnum(v *MetaNoAuthProbeStatus) NoAuthProbeStatusEnum { func ToNoAuthProbeStatusEnum(v *MetaNoAuthProbeStatus) NoAuthProbeStatusEnum {
return noAuthProbeStatusEnumKey[v.Key] return noAuthProbeStatusEnumKey[v.Key]
} }

View File

@ -32,6 +32,10 @@ var (
} }
) )
func (e MetaPortTypeEnum) String() string {
return metaPortTypeEnumID[e]
}
func ToMetaPortTypeEnum(v *MetaPortType) MetaPortTypeEnum { func ToMetaPortTypeEnum(v *MetaPortType) MetaPortTypeEnum {
return metaPortTypeEnumKey[v.Key] return metaPortTypeEnumKey[v.Key]
} }

View File

@ -32,6 +32,10 @@ var (
} }
) )
func (e MetaProbeStatusEnum) String() string {
return metaProbeStatusEnumID[e]
}
func ToMetaProbeStatusEnum(v *MetaProbeStatus) MetaProbeStatusEnum { func ToMetaProbeStatusEnum(v *MetaProbeStatus) MetaProbeStatusEnum {
return metaProbeStatusEnumKey[v.Key] return metaProbeStatusEnumKey[v.Key]
} }

View File

@ -20,6 +20,10 @@ var (
} }
) )
func (e MetaTargetHostTypeEnum) String() string {
return metaTargetHostTypeEnumID[e]
}
func ToMetaTargetHostTypeEnum(v *MetaTargetHostType) MetaTargetHostTypeEnum { func ToMetaTargetHostTypeEnum(v *MetaTargetHostType) MetaTargetHostTypeEnum {
return metaTargetHostTypeEnumKey[v.Key] return metaTargetHostTypeEnumKey[v.Key]
} }

View File

@ -20,6 +20,10 @@ var (
} }
) )
func (e MetaTargetServiceTypeEnum) String() string {
return metaTargetServiceTypeEnumID[e]
}
func ToMetaTargetServiceTypeEnum(v *MetaTargetServiceType) MetaTargetServiceTypeEnum { func ToMetaTargetServiceTypeEnum(v *MetaTargetServiceType) MetaTargetServiceTypeEnum {
return metaTargetServiceTypeEnumKey[v.Key] return metaTargetServiceTypeEnumKey[v.Key]
} }

View File

@ -23,6 +23,10 @@ var (
} }
) )
func (e MetaTargetZoneTypeEnum) String() string {
return metaTargetZoneTypeEnumID[e]
}
func ToMetaTargetZoneTypeEnum(v *MetaTargetZoneType) MetaTargetZoneTypeEnum { func ToMetaTargetZoneTypeEnum(v *MetaTargetZoneType) MetaTargetZoneTypeEnum {
return metaTargetZoneTypeEnumKey[v.Key] return metaTargetZoneTypeEnumKey[v.Key]
} }