Threefold Grid v0.6.4 published on Tuesday, May 28, 2024 by Threefold
threefold.provider.Scheduler
Explore with Pulumi AI
Threefold Grid v0.6.4 published on Tuesday, May 28, 2024 by Threefold
Create Scheduler Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Scheduler(name: string, args?: SchedulerArgs, opts?: CustomResourceOptions);
@overload
def Scheduler(resource_name: str,
args: Optional[SchedulerArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Scheduler(resource_name: str,
opts: Optional[ResourceOptions] = None,
certification_type: Optional[str] = None,
city: Optional[str] = None,
country: Optional[str] = None,
dedicated: Optional[bool] = None,
domain: Optional[bool] = None,
farm_ids: Optional[Sequence[int]] = None,
farm_name: Optional[str] = None,
free_ips: Optional[int] = None,
gpu_available: Optional[bool] = None,
gpu_device_id: Optional[str] = None,
gpu_device_name: Optional[str] = None,
gpu_vendor_id: Optional[str] = None,
gpu_vendor_name: Optional[str] = None,
has_gpu: Optional[bool] = None,
hru: Optional[int] = None,
ipv4: Optional[bool] = None,
ipv6: Optional[bool] = None,
mru: Optional[int] = None,
node_id: Optional[int] = None,
rentable: Optional[bool] = None,
rented: Optional[bool] = None,
sru: Optional[int] = None,
twin_id: Optional[int] = None)
func NewScheduler(ctx *Context, name string, args *SchedulerArgs, opts ...ResourceOption) (*Scheduler, error)
public Scheduler(string name, SchedulerArgs? args = null, CustomResourceOptions? opts = null)
public Scheduler(String name, SchedulerArgs args)
public Scheduler(String name, SchedulerArgs args, CustomResourceOptions options)
type: threefold:provider:Scheduler
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SchedulerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SchedulerArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SchedulerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SchedulerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SchedulerArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var schedulerResource = new Threefold.Provider.Scheduler("schedulerResource", new()
{
Certification_type = "string",
City = "string",
Country = "string",
Dedicated = false,
Domain = false,
Farm_ids = new[]
{
0,
},
Farm_name = "string",
Free_ips = 0,
Gpu_available = false,
Gpu_device_id = "string",
Gpu_device_name = "string",
Gpu_vendor_id = "string",
Gpu_vendor_name = "string",
Has_gpu = false,
Hru = 0,
Ipv4 = false,
Ipv6 = false,
Mru = 0,
Node_id = 0,
Rentable = false,
Rented = false,
Sru = 0,
Twin_id = 0,
});
example, err := provider.NewScheduler(ctx, "schedulerResource", &provider.SchedulerArgs{
Certification_type: pulumi.String("string"),
City: pulumi.String("string"),
Country: pulumi.String("string"),
Dedicated: pulumi.Bool(false),
Domain: pulumi.Bool(false),
Farm_ids: pulumi.IntArray{
pulumi.Int(0),
},
Farm_name: pulumi.String("string"),
Free_ips: pulumi.Int(0),
Gpu_available: pulumi.Bool(false),
Gpu_device_id: pulumi.String("string"),
Gpu_device_name: pulumi.String("string"),
Gpu_vendor_id: pulumi.String("string"),
Gpu_vendor_name: pulumi.String("string"),
Has_gpu: pulumi.Bool(false),
Hru: pulumi.Int(0),
Ipv4: pulumi.Bool(false),
Ipv6: pulumi.Bool(false),
Mru: pulumi.Int(0),
Node_id: pulumi.Int(0),
Rentable: pulumi.Bool(false),
Rented: pulumi.Bool(false),
Sru: pulumi.Int(0),
Twin_id: pulumi.Int(0),
})
var schedulerResource = new Scheduler("schedulerResource", SchedulerArgs.builder()
.certification_type("string")
.city("string")
.country("string")
.dedicated(false)
.domain(false)
.farm_ids(0)
.farm_name("string")
.free_ips(0)
.gpu_available(false)
.gpu_device_id("string")
.gpu_device_name("string")
.gpu_vendor_id("string")
.gpu_vendor_name("string")
.has_gpu(false)
.hru(0)
.ipv4(false)
.ipv6(false)
.mru(0)
.node_id(0)
.rentable(false)
.rented(false)
.sru(0)
.twin_id(0)
.build());
scheduler_resource = threefold.provider.Scheduler("schedulerResource",
certification_type="string",
city="string",
country="string",
dedicated=False,
domain=False,
farm_ids=[0],
farm_name="string",
free_ips=0,
gpu_available=False,
gpu_device_id="string",
gpu_device_name="string",
gpu_vendor_id="string",
gpu_vendor_name="string",
has_gpu=False,
hru=0,
ipv4=False,
ipv6=False,
mru=0,
node_id=0,
rentable=False,
rented=False,
sru=0,
twin_id=0)
const schedulerResource = new threefold.provider.Scheduler("schedulerResource", {
certification_type: "string",
city: "string",
country: "string",
dedicated: false,
domain: false,
farm_ids: [0],
farm_name: "string",
free_ips: 0,
gpu_available: false,
gpu_device_id: "string",
gpu_device_name: "string",
gpu_vendor_id: "string",
gpu_vendor_name: "string",
has_gpu: false,
hru: 0,
ipv4: false,
ipv6: false,
mru: 0,
node_id: 0,
rentable: false,
rented: false,
sru: 0,
twin_id: 0,
});
type: threefold:provider:Scheduler
properties:
certification_type: string
city: string
country: string
dedicated: false
domain: false
farm_ids:
- 0
farm_name: string
free_ips: 0
gpu_available: false
gpu_device_id: string
gpu_device_name: string
gpu_vendor_id: string
gpu_vendor_name: string
has_gpu: false
hru: 0
ipv4: false
ipv6: false
mru: 0
node_id: 0
rentable: false
rented: false
sru: 0
twin_id: 0
Scheduler Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Scheduler resource accepts the following input properties:
- Certification_
type string - City string
- Country string
- Dedicated bool
- Domain bool
- Farm_
ids List<int> - Farm_
name string - Free_
ips int - Gpu_
available bool - Gpu_
device_ stringid - Gpu_
device_ stringname - Gpu_
vendor_ stringid - Gpu_
vendor_ stringname - Has_
gpu bool - Hru int
- Ipv4 bool
- Ipv6 bool
- Mru int
- Node_
id int - Rentable bool
- Rented bool
- Sru int
- Twin_
id int
- Certification_
type string - City string
- Country string
- Dedicated bool
- Domain bool
- Farm_
ids []int - Farm_
name string - Free_
ips int - Gpu_
available bool - Gpu_
device_ stringid - Gpu_
device_ stringname - Gpu_
vendor_ stringid - Gpu_
vendor_ stringname - Has_
gpu bool - Hru int
- Ipv4 bool
- Ipv6 bool
- Mru int
- Node_
id int - Rentable bool
- Rented bool
- Sru int
- Twin_
id int
- certification_
type String - city String
- country String
- dedicated Boolean
- domain Boolean
- farm_
ids List<Integer> - farm_
name String - free_
ips Integer - gpu_
available Boolean - gpu_
device_ Stringid - gpu_
device_ Stringname - gpu_
vendor_ Stringid - gpu_
vendor_ Stringname - has_
gpu Boolean - hru Integer
- ipv4 Boolean
- ipv6 Boolean
- mru Integer
- node_
id Integer - rentable Boolean
- rented Boolean
- sru Integer
- twin_
id Integer
- certification_
type string - city string
- country string
- dedicated boolean
- domain boolean
- farm_
ids number[] - farm_
name string - free_
ips number - gpu_
available boolean - gpu_
device_ stringid - gpu_
device_ stringname - gpu_
vendor_ stringid - gpu_
vendor_ stringname - has_
gpu boolean - hru number
- ipv4 boolean
- ipv6 boolean
- mru number
- node_
id number - rentable boolean
- rented boolean
- sru number
- twin_
id number
- certification_
type str - city str
- country str
- dedicated bool
- domain bool
- farm_
ids Sequence[int] - farm_
name str - free_
ips int - gpu_
available bool - gpu_
device_ strid - gpu_
device_ strname - gpu_
vendor_ strid - gpu_
vendor_ strname - has_
gpu bool - hru int
- ipv4 bool
- ipv6 bool
- mru int
- node_
id int - rentable bool
- rented bool
- sru int
- twin_
id int
- certification_
type String - city String
- country String
- dedicated Boolean
- domain Boolean
- farm_
ids List<Number> - farm_
name String - free_
ips Number - gpu_
available Boolean - gpu_
device_ Stringid - gpu_
device_ Stringname - gpu_
vendor_ Stringid - gpu_
vendor_ Stringname - has_
gpu Boolean - hru Number
- ipv4 Boolean
- ipv6 Boolean
- mru Number
- node_
id Number - rentable Boolean
- rented Boolean
- sru Number
- twin_
id Number
Outputs
All input properties are implicitly available as output properties. Additionally, the Scheduler resource produces the following output properties:
Package Details
- Repository
- threefold threefoldtech/pulumi-threefold
- License
- Apache-2.0
Threefold Grid v0.6.4 published on Tuesday, May 28, 2024 by Threefold