Skip to content

Commit

Permalink
make build_sdks
Browse files Browse the repository at this point in the history
  • Loading branch information
pulumi-bot committed Nov 6, 2023
1 parent a999e0a commit f7c95e5
Show file tree
Hide file tree
Showing 69 changed files with 8,035 additions and 1,479 deletions.
939 changes: 811 additions & 128 deletions sdk/python/pulumi_vsphere/_inputs.py

Large diffs are not rendered by default.

800 changes: 668 additions & 132 deletions sdk/python/pulumi_vsphere/compute_cluster.py

Large diffs are not rendered by default.

58 changes: 51 additions & 7 deletions sdk/python/pulumi_vsphere/compute_cluster_host_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload
from . import _utilities

__all__ = ['ComputeClusterHostGroupArgs', 'ComputeClusterHostGroup']
Expand All @@ -32,11 +32,32 @@ def __init__(__self__, *,
:param pulumi.Input[str] name: The name of the host group. This must be unique in the
cluster. Forces a new resource if changed.
"""
pulumi.set(__self__, "compute_cluster_id", compute_cluster_id)
ComputeClusterHostGroupArgs._configure(
lambda key, value: pulumi.set(__self__, key, value),
compute_cluster_id=compute_cluster_id,
host_system_ids=host_system_ids,
name=name,
)
@staticmethod
def _configure(
_setter: Callable[[Any, Any], None],
compute_cluster_id: Optional[pulumi.Input[str]] = None,
host_system_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[pulumi.ResourceOptions]=None,
**kwargs):
if compute_cluster_id is None and 'computeClusterId' in kwargs:
compute_cluster_id = kwargs['computeClusterId']
if compute_cluster_id is None:
raise TypeError("Missing 'compute_cluster_id' argument")
if host_system_ids is None and 'hostSystemIds' in kwargs:
host_system_ids = kwargs['hostSystemIds']

_setter("compute_cluster_id", compute_cluster_id)
if host_system_ids is not None:
pulumi.set(__self__, "host_system_ids", host_system_ids)
_setter("host_system_ids", host_system_ids)
if name is not None:
pulumi.set(__self__, "name", name)
_setter("name", name)

@property
@pulumi.getter(name="computeClusterId")
Expand Down Expand Up @@ -105,12 +126,31 @@ def __init__(__self__, *,
:param pulumi.Input[str] name: The name of the host group. This must be unique in the
cluster. Forces a new resource if changed.
"""
_ComputeClusterHostGroupState._configure(
lambda key, value: pulumi.set(__self__, key, value),
compute_cluster_id=compute_cluster_id,
host_system_ids=host_system_ids,
name=name,
)
@staticmethod
def _configure(
_setter: Callable[[Any, Any], None],
compute_cluster_id: Optional[pulumi.Input[str]] = None,
host_system_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[pulumi.ResourceOptions]=None,
**kwargs):
if compute_cluster_id is None and 'computeClusterId' in kwargs:
compute_cluster_id = kwargs['computeClusterId']
if host_system_ids is None and 'hostSystemIds' in kwargs:
host_system_ids = kwargs['hostSystemIds']

if compute_cluster_id is not None:
pulumi.set(__self__, "compute_cluster_id", compute_cluster_id)
_setter("compute_cluster_id", compute_cluster_id)
if host_system_ids is not None:
pulumi.set(__self__, "host_system_ids", host_system_ids)
_setter("host_system_ids", host_system_ids)
if name is not None:
pulumi.set(__self__, "name", name)
_setter("name", name)

@property
@pulumi.getter(name="computeClusterId")
Expand Down Expand Up @@ -202,6 +242,10 @@ def __init__(__self__, resource_name: str, *args, **kwargs):
if resource_args is not None:
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
else:
kwargs = kwargs or {}
def _setter(key, value):
kwargs[key] = value
ComputeClusterHostGroupArgs._configure(_setter, **kwargs)
__self__._internal_init(resource_name, *args, **kwargs)

def _internal_init(__self__,
Expand Down
76 changes: 65 additions & 11 deletions sdk/python/pulumi_vsphere/compute_cluster_vm_affinity_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload
from . import _utilities

__all__ = ['ComputeClusterVmAffinityRuleArgs', 'ComputeClusterVmAffinityRule']
Expand Down Expand Up @@ -35,14 +35,41 @@ def __init__(__self__, *,
this when naming your rules.
:param pulumi.Input[str] name: The name of the rule. This must be unique in the cluster.
"""
pulumi.set(__self__, "compute_cluster_id", compute_cluster_id)
pulumi.set(__self__, "virtual_machine_ids", virtual_machine_ids)
ComputeClusterVmAffinityRuleArgs._configure(
lambda key, value: pulumi.set(__self__, key, value),
compute_cluster_id=compute_cluster_id,
virtual_machine_ids=virtual_machine_ids,
enabled=enabled,
mandatory=mandatory,
name=name,
)
@staticmethod
def _configure(
_setter: Callable[[Any, Any], None],
compute_cluster_id: Optional[pulumi.Input[str]] = None,
virtual_machine_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
enabled: Optional[pulumi.Input[bool]] = None,
mandatory: Optional[pulumi.Input[bool]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[pulumi.ResourceOptions]=None,
**kwargs):
if compute_cluster_id is None and 'computeClusterId' in kwargs:
compute_cluster_id = kwargs['computeClusterId']
if compute_cluster_id is None:
raise TypeError("Missing 'compute_cluster_id' argument")
if virtual_machine_ids is None and 'virtualMachineIds' in kwargs:
virtual_machine_ids = kwargs['virtualMachineIds']
if virtual_machine_ids is None:
raise TypeError("Missing 'virtual_machine_ids' argument")

_setter("compute_cluster_id", compute_cluster_id)
_setter("virtual_machine_ids", virtual_machine_ids)
if enabled is not None:
pulumi.set(__self__, "enabled", enabled)
_setter("enabled", enabled)
if mandatory is not None:
pulumi.set(__self__, "mandatory", mandatory)
_setter("mandatory", mandatory)
if name is not None:
pulumi.set(__self__, "name", name)
_setter("name", name)

@property
@pulumi.getter(name="computeClusterId")
Expand Down Expand Up @@ -137,16 +164,39 @@ def __init__(__self__, *,
:param pulumi.Input[Sequence[pulumi.Input[str]]] virtual_machine_ids: The UUIDs of the virtual machines to run
on the same host together.
"""
_ComputeClusterVmAffinityRuleState._configure(
lambda key, value: pulumi.set(__self__, key, value),
compute_cluster_id=compute_cluster_id,
enabled=enabled,
mandatory=mandatory,
name=name,
virtual_machine_ids=virtual_machine_ids,
)
@staticmethod
def _configure(
_setter: Callable[[Any, Any], None],
compute_cluster_id: Optional[pulumi.Input[str]] = None,
enabled: Optional[pulumi.Input[bool]] = None,
mandatory: Optional[pulumi.Input[bool]] = None,
name: Optional[pulumi.Input[str]] = None,
virtual_machine_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
opts: Optional[pulumi.ResourceOptions]=None,
**kwargs):
if compute_cluster_id is None and 'computeClusterId' in kwargs:
compute_cluster_id = kwargs['computeClusterId']
if virtual_machine_ids is None and 'virtualMachineIds' in kwargs:
virtual_machine_ids = kwargs['virtualMachineIds']

if compute_cluster_id is not None:
pulumi.set(__self__, "compute_cluster_id", compute_cluster_id)
_setter("compute_cluster_id", compute_cluster_id)
if enabled is not None:
pulumi.set(__self__, "enabled", enabled)
_setter("enabled", enabled)
if mandatory is not None:
pulumi.set(__self__, "mandatory", mandatory)
_setter("mandatory", mandatory)
if name is not None:
pulumi.set(__self__, "name", name)
_setter("name", name)
if virtual_machine_ids is not None:
pulumi.set(__self__, "virtual_machine_ids", virtual_machine_ids)
_setter("virtual_machine_ids", virtual_machine_ids)

@property
@pulumi.getter(name="computeClusterId")
Expand Down Expand Up @@ -432,6 +482,10 @@ def __init__(__self__, resource_name: str, *args, **kwargs):
if resource_args is not None:
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
else:
kwargs = kwargs or {}
def _setter(key, value):
kwargs[key] = value
ComputeClusterVmAffinityRuleArgs._configure(_setter, **kwargs)
__self__._internal_init(resource_name, *args, **kwargs)

def _internal_init(__self__,
Expand Down
76 changes: 65 additions & 11 deletions sdk/python/pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload
from . import _utilities

__all__ = ['ComputeClusterVmAntiAffinityRuleArgs', 'ComputeClusterVmAntiAffinityRule']
Expand Down Expand Up @@ -35,14 +35,41 @@ def __init__(__self__, *,
this when naming your rules.
:param pulumi.Input[str] name: The name of the rule. This must be unique in the cluster.
"""
pulumi.set(__self__, "compute_cluster_id", compute_cluster_id)
pulumi.set(__self__, "virtual_machine_ids", virtual_machine_ids)
ComputeClusterVmAntiAffinityRuleArgs._configure(
lambda key, value: pulumi.set(__self__, key, value),
compute_cluster_id=compute_cluster_id,
virtual_machine_ids=virtual_machine_ids,
enabled=enabled,
mandatory=mandatory,
name=name,
)
@staticmethod
def _configure(
_setter: Callable[[Any, Any], None],
compute_cluster_id: Optional[pulumi.Input[str]] = None,
virtual_machine_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
enabled: Optional[pulumi.Input[bool]] = None,
mandatory: Optional[pulumi.Input[bool]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[pulumi.ResourceOptions]=None,
**kwargs):
if compute_cluster_id is None and 'computeClusterId' in kwargs:
compute_cluster_id = kwargs['computeClusterId']
if compute_cluster_id is None:
raise TypeError("Missing 'compute_cluster_id' argument")
if virtual_machine_ids is None and 'virtualMachineIds' in kwargs:
virtual_machine_ids = kwargs['virtualMachineIds']
if virtual_machine_ids is None:
raise TypeError("Missing 'virtual_machine_ids' argument")

_setter("compute_cluster_id", compute_cluster_id)
_setter("virtual_machine_ids", virtual_machine_ids)
if enabled is not None:
pulumi.set(__self__, "enabled", enabled)
_setter("enabled", enabled)
if mandatory is not None:
pulumi.set(__self__, "mandatory", mandatory)
_setter("mandatory", mandatory)
if name is not None:
pulumi.set(__self__, "name", name)
_setter("name", name)

@property
@pulumi.getter(name="computeClusterId")
Expand Down Expand Up @@ -137,16 +164,39 @@ def __init__(__self__, *,
:param pulumi.Input[Sequence[pulumi.Input[str]]] virtual_machine_ids: The UUIDs of the virtual machines to run
on hosts different from each other.
"""
_ComputeClusterVmAntiAffinityRuleState._configure(
lambda key, value: pulumi.set(__self__, key, value),
compute_cluster_id=compute_cluster_id,
enabled=enabled,
mandatory=mandatory,
name=name,
virtual_machine_ids=virtual_machine_ids,
)
@staticmethod
def _configure(
_setter: Callable[[Any, Any], None],
compute_cluster_id: Optional[pulumi.Input[str]] = None,
enabled: Optional[pulumi.Input[bool]] = None,
mandatory: Optional[pulumi.Input[bool]] = None,
name: Optional[pulumi.Input[str]] = None,
virtual_machine_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
opts: Optional[pulumi.ResourceOptions]=None,
**kwargs):
if compute_cluster_id is None and 'computeClusterId' in kwargs:
compute_cluster_id = kwargs['computeClusterId']
if virtual_machine_ids is None and 'virtualMachineIds' in kwargs:
virtual_machine_ids = kwargs['virtualMachineIds']

if compute_cluster_id is not None:
pulumi.set(__self__, "compute_cluster_id", compute_cluster_id)
_setter("compute_cluster_id", compute_cluster_id)
if enabled is not None:
pulumi.set(__self__, "enabled", enabled)
_setter("enabled", enabled)
if mandatory is not None:
pulumi.set(__self__, "mandatory", mandatory)
_setter("mandatory", mandatory)
if name is not None:
pulumi.set(__self__, "name", name)
_setter("name", name)
if virtual_machine_ids is not None:
pulumi.set(__self__, "virtual_machine_ids", virtual_machine_ids)
_setter("virtual_machine_ids", virtual_machine_ids)

@property
@pulumi.getter(name="computeClusterId")
Expand Down Expand Up @@ -264,6 +314,10 @@ def __init__(__self__, resource_name: str, *args, **kwargs):
if resource_args is not None:
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
else:
kwargs = kwargs or {}
def _setter(key, value):
kwargs[key] = value
ComputeClusterVmAntiAffinityRuleArgs._configure(_setter, **kwargs)
__self__._internal_init(resource_name, *args, **kwargs)

def _internal_init(__self__,
Expand Down
Loading

0 comments on commit f7c95e5

Please sign in to comment.