Skip to content

Commit

Permalink
feat(ipam): add apple silicon resource types (#2330)
Browse files Browse the repository at this point in the history
  • Loading branch information
scaleway-bot authored Nov 26, 2024
1 parent 94736bc commit e5e70ce
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 33 deletions.
38 changes: 21 additions & 17 deletions api/ipam/v1/ipam_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,23 +87,25 @@ func (enum *ListIPsRequestOrderBy) UnmarshalJSON(data []byte) error {
type ResourceType string

const (
ResourceTypeUnknownType = ResourceType("unknown_type")
ResourceTypeCustom = ResourceType("custom")
ResourceTypeInstanceServer = ResourceType("instance_server")
ResourceTypeInstanceIP = ResourceType("instance_ip")
ResourceTypeInstancePrivateNic = ResourceType("instance_private_nic")
ResourceTypeLBServer = ResourceType("lb_server")
ResourceTypeFipIP = ResourceType("fip_ip")
ResourceTypeVpcGateway = ResourceType("vpc_gateway")
ResourceTypeVpcGatewayNetwork = ResourceType("vpc_gateway_network")
ResourceTypeK8sNode = ResourceType("k8s_node")
ResourceTypeK8sCluster = ResourceType("k8s_cluster")
ResourceTypeRdbInstance = ResourceType("rdb_instance")
ResourceTypeRedisCluster = ResourceType("redis_cluster")
ResourceTypeBaremetalServer = ResourceType("baremetal_server")
ResourceTypeBaremetalPrivateNic = ResourceType("baremetal_private_nic")
ResourceTypeLlmDeployment = ResourceType("llm_deployment")
ResourceTypeMgdbInstance = ResourceType("mgdb_instance")
ResourceTypeUnknownType = ResourceType("unknown_type")
ResourceTypeCustom = ResourceType("custom")
ResourceTypeInstanceServer = ResourceType("instance_server")
ResourceTypeInstanceIP = ResourceType("instance_ip")
ResourceTypeInstancePrivateNic = ResourceType("instance_private_nic")
ResourceTypeLBServer = ResourceType("lb_server")
ResourceTypeFipIP = ResourceType("fip_ip")
ResourceTypeVpcGateway = ResourceType("vpc_gateway")
ResourceTypeVpcGatewayNetwork = ResourceType("vpc_gateway_network")
ResourceTypeK8sNode = ResourceType("k8s_node")
ResourceTypeK8sCluster = ResourceType("k8s_cluster")
ResourceTypeRdbInstance = ResourceType("rdb_instance")
ResourceTypeRedisCluster = ResourceType("redis_cluster")
ResourceTypeBaremetalServer = ResourceType("baremetal_server")
ResourceTypeBaremetalPrivateNic = ResourceType("baremetal_private_nic")
ResourceTypeLlmDeployment = ResourceType("llm_deployment")
ResourceTypeMgdbInstance = ResourceType("mgdb_instance")
ResourceTypeAppleSiliconServer = ResourceType("apple_silicon_server")
ResourceTypeAppleSiliconPrivateNic = ResourceType("apple_silicon_private_nic")
)

func (enum ResourceType) String() string {
Expand Down Expand Up @@ -133,6 +135,8 @@ func (enum ResourceType) Values() []ResourceType {
"baremetal_private_nic",
"llm_deployment",
"mgdb_instance",
"apple_silicon_server",
"apple_silicon_private_nic",
}
}

Expand Down
38 changes: 22 additions & 16 deletions api/ipam/v1alpha1/ipam_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,22 +87,25 @@ func (enum *ListIPsRequestOrderBy) UnmarshalJSON(data []byte) error {
type ResourceType string

const (
ResourceTypeUnknownType = ResourceType("unknown_type")
ResourceTypeCustom = ResourceType("custom")
ResourceTypeInstanceServer = ResourceType("instance_server")
ResourceTypeInstanceIP = ResourceType("instance_ip")
ResourceTypeInstancePrivateNic = ResourceType("instance_private_nic")
ResourceTypeLBServer = ResourceType("lb_server")
ResourceTypeFipIP = ResourceType("fip_ip")
ResourceTypeVpcGateway = ResourceType("vpc_gateway")
ResourceTypeVpcGatewayNetwork = ResourceType("vpc_gateway_network")
ResourceTypeK8sNode = ResourceType("k8s_node")
ResourceTypeK8sCluster = ResourceType("k8s_cluster")
ResourceTypeRdbInstance = ResourceType("rdb_instance")
ResourceTypeRedisCluster = ResourceType("redis_cluster")
ResourceTypeBaremetalServer = ResourceType("baremetal_server")
ResourceTypeBaremetalPrivateNic = ResourceType("baremetal_private_nic")
ResourceTypeLlmDeployment = ResourceType("llm_deployment")
ResourceTypeUnknownType = ResourceType("unknown_type")
ResourceTypeCustom = ResourceType("custom")
ResourceTypeInstanceServer = ResourceType("instance_server")
ResourceTypeInstanceIP = ResourceType("instance_ip")
ResourceTypeInstancePrivateNic = ResourceType("instance_private_nic")
ResourceTypeLBServer = ResourceType("lb_server")
ResourceTypeFipIP = ResourceType("fip_ip")
ResourceTypeVpcGateway = ResourceType("vpc_gateway")
ResourceTypeVpcGatewayNetwork = ResourceType("vpc_gateway_network")
ResourceTypeK8sNode = ResourceType("k8s_node")
ResourceTypeK8sCluster = ResourceType("k8s_cluster")
ResourceTypeRdbInstance = ResourceType("rdb_instance")
ResourceTypeRedisCluster = ResourceType("redis_cluster")
ResourceTypeBaremetalServer = ResourceType("baremetal_server")
ResourceTypeBaremetalPrivateNic = ResourceType("baremetal_private_nic")
ResourceTypeLlmDeployment = ResourceType("llm_deployment")
ResourceTypeMgdbInstance = ResourceType("mgdb_instance")
ResourceTypeAppleSiliconServer = ResourceType("apple_silicon_server")
ResourceTypeAppleSiliconPrivateNic = ResourceType("apple_silicon_private_nic")
)

func (enum ResourceType) String() string {
Expand Down Expand Up @@ -131,6 +134,9 @@ func (enum ResourceType) Values() []ResourceType {
"baremetal_server",
"baremetal_private_nic",
"llm_deployment",
"mgdb_instance",
"apple_silicon_server",
"apple_silicon_private_nic",
}
}

Expand Down

0 comments on commit e5e70ce

Please sign in to comment.