File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed
Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,17 @@ func (enum ListIPsRequestOrderBy) String() string {
5858return 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+
6172func (enum ListIPsRequestOrderBy ) MarshalJSON () ([]byte , error ) {
6273return []byte (fmt .Sprintf (`"%s"` , enum )), nil
6374}
@@ -101,6 +112,26 @@ func (enum ResourceType) String() string {
101112return 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+
104135func (enum ResourceType ) MarshalJSON () ([]byte , error ) {
105136return []byte (fmt .Sprintf (`"%s"` , enum )), nil
106137}
You can’t perform that action at this time.
0 commit comments