Skip to content

Commit eec592d

Browse files
authored
fix(ipam/v1): allow source field to be null in responses (scaleway#2108)
1 parent a057dbf commit eec592d

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

api/ipam/v1/ipam_sdk.go

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,17 @@ func (enum ListIPsRequestOrderBy) String() string {
5858
return string(enum)
5959
}
6060

61+
func (enum ListIPsRequestOrderBy) Values() []ListIPsRequestOrderBy {
62+
return []ListIPsRequestOrderBy{
63+
"created_at_desc",
64+
"created_at_asc",
65+
"updated_at_desc",
66+
"updated_at_asc",
67+
"attached_at_desc",
68+
"attached_at_asc",
69+
}
70+
}
71+
6172
func (enum ListIPsRequestOrderBy) MarshalJSON() ([]byte, error) {
6273
return []byte(fmt.Sprintf(`"%s"`, enum)), nil
6374
}
@@ -101,6 +112,26 @@ func (enum ResourceType) String() string {
101112
return string(enum)
102113
}
103114

115+
func (enum ResourceType) Values() []ResourceType {
116+
return []ResourceType{
117+
"unknown_type",
118+
"instance_server",
119+
"instance_ip",
120+
"instance_private_nic",
121+
"lb_server",
122+
"fip_ip",
123+
"vpc_gateway",
124+
"vpc_gateway_network",
125+
"k8s_node",
126+
"k8s_cluster",
127+
"rdb_instance",
128+
"redis_cluster",
129+
"baremetal_server",
130+
"baremetal_private_nic",
131+
"llm_deployment",
132+
}
133+
}
134+
104135
func (enum ResourceType) MarshalJSON() ([]byte, error) {
105136
return []byte(fmt.Sprintf(`"%s"`, enum)), nil
106137
}

0 commit comments

Comments
 (0)