1. Packages
  2. threefold
  3. API Docs
  4. provider
  5. Scheduler
Threefold Grid v0.6.4 published on Tuesday, May 28, 2024 by Threefold

threefold.provider.Scheduler

Explore with Pulumi AI

threefold logo
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_id string
    Gpu_device_name string
    Gpu_vendor_id string
    Gpu_vendor_name string
    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_id String
    gpu_device_name String
    gpu_vendor_id String
    gpu_vendor_name String
    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_id string
    gpu_device_name string
    gpu_vendor_id string
    gpu_vendor_name string
    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 String
    city String
    country String
    dedicated Boolean
    domain Boolean
    farm_ids List<Number>
    farm_name String
    free_ips Number
    gpu_available Boolean
    gpu_device_id String
    gpu_device_name String
    gpu_vendor_id String
    gpu_vendor_name String
    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:

    Id string
    The provider-assigned unique ID for this managed resource.
    Nodes List<int>
    Id string
    The provider-assigned unique ID for this managed resource.
    Nodes []int
    id String
    The provider-assigned unique ID for this managed resource.
    nodes List<Integer>
    id string
    The provider-assigned unique ID for this managed resource.
    nodes number[]
    id str
    The provider-assigned unique ID for this managed resource.
    nodes Sequence[int]
    id String
    The provider-assigned unique ID for this managed resource.
    nodes List<Number>

    Package Details

    Repository
    threefold threefoldtech/pulumi-threefold
    License
    Apache-2.0
    threefold logo
    Threefold Grid v0.6.4 published on Tuesday, May 28, 2024 by Threefold