pulumi-vsphere 4.9.0a1698129503__py3-none-any.whl → 4.9.0a1698198425__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pulumi-vsphere might be problematic. Click here for more details.

Files changed (71) hide show
  1. pulumi_vsphere/_inputs.py +311 -93
  2. pulumi_vsphere/_utilities.py +19 -0
  3. pulumi_vsphere/compute_cluster.py +259 -3
  4. pulumi_vsphere/compute_cluster_host_group.py +17 -3
  5. pulumi_vsphere/compute_cluster_vm_affinity_rule.py +20 -130
  6. pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py +20 -4
  7. pulumi_vsphere/compute_cluster_vm_dependency_rule.py +27 -5
  8. pulumi_vsphere/compute_cluster_vm_group.py +17 -3
  9. pulumi_vsphere/compute_cluster_vm_host_rule.py +28 -4
  10. pulumi_vsphere/content_library.py +15 -13
  11. pulumi_vsphere/content_library_item.py +21 -3
  12. pulumi_vsphere/custom_attribute.py +10 -2
  13. pulumi_vsphere/datacenter.py +10 -34
  14. pulumi_vsphere/datastore_cluster.py +97 -3
  15. pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py +20 -4
  16. pulumi_vsphere/distributed_port_group.py +175 -3
  17. pulumi_vsphere/distributed_virtual_switch.py +355 -115
  18. pulumi_vsphere/dpm_host_override.py +28 -4
  19. pulumi_vsphere/drs_vm_override.py +28 -4
  20. pulumi_vsphere/entity_permissions.py +23 -5
  21. pulumi_vsphere/file.py +35 -61
  22. pulumi_vsphere/folder.py +20 -4
  23. pulumi_vsphere/get_compute_cluster.py +0 -22
  24. pulumi_vsphere/get_compute_cluster_host_group.py +0 -34
  25. pulumi_vsphere/get_content_library.py +0 -18
  26. pulumi_vsphere/get_custom_attribute.py +0 -18
  27. pulumi_vsphere/get_datacenter.py +0 -18
  28. pulumi_vsphere/get_datastore.py +0 -22
  29. pulumi_vsphere/get_datastore_cluster.py +0 -22
  30. pulumi_vsphere/get_distributed_virtual_switch.py +0 -40
  31. pulumi_vsphere/get_dynamic.py +0 -38
  32. pulumi_vsphere/get_folder.py +0 -18
  33. pulumi_vsphere/get_host.py +0 -22
  34. pulumi_vsphere/get_host_pci_device.py +2 -26
  35. pulumi_vsphere/get_host_thumbprint.py +0 -18
  36. pulumi_vsphere/get_license.py +0 -18
  37. pulumi_vsphere/get_network.py +0 -22
  38. pulumi_vsphere/get_policy.py +0 -20
  39. pulumi_vsphere/get_resource_pool.py +0 -64
  40. pulumi_vsphere/get_role.py +0 -18
  41. pulumi_vsphere/get_tag.py +0 -22
  42. pulumi_vsphere/get_tag_category.py +0 -18
  43. pulumi_vsphere/get_vapp_container.py +0 -22
  44. pulumi_vsphere/get_virtual_machine.py +0 -54
  45. pulumi_vsphere/get_vmfs_disks.py +0 -28
  46. pulumi_vsphere/ha_vm_override.py +72 -4
  47. pulumi_vsphere/host.py +23 -101
  48. pulumi_vsphere/host_port_group.py +74 -132
  49. pulumi_vsphere/host_virtual_switch.py +87 -5
  50. pulumi_vsphere/license.py +15 -31
  51. pulumi_vsphere/nas_datastore.py +53 -5
  52. pulumi_vsphere/outputs.py +364 -104
  53. pulumi_vsphere/provider.py +31 -3
  54. pulumi_vsphere/resource_pool.py +61 -83
  55. pulumi_vsphere/role.py +10 -2
  56. pulumi_vsphere/storage_drs_vm_override.py +32 -4
  57. pulumi_vsphere/tag.py +13 -3
  58. pulumi_vsphere/tag_category.py +16 -4
  59. pulumi_vsphere/vapp_container.py +61 -3
  60. pulumi_vsphere/vapp_entity.py +48 -4
  61. pulumi_vsphere/virtual_disk.py +27 -5
  62. pulumi_vsphere/virtual_machine.py +284 -18
  63. pulumi_vsphere/virtual_machine_snapshot.py +33 -39
  64. pulumi_vsphere/vm_storage_policy.py +13 -205
  65. pulumi_vsphere/vmfs_datastore.py +32 -4
  66. pulumi_vsphere/vnic.py +19 -153
  67. {pulumi_vsphere-4.9.0a1698129503.dist-info → pulumi_vsphere-4.9.0a1698198425.dist-info}/METADATA +1 -1
  68. pulumi_vsphere-4.9.0a1698198425.dist-info/RECORD +77 -0
  69. pulumi_vsphere-4.9.0a1698129503.dist-info/RECORD +0 -77
  70. {pulumi_vsphere-4.9.0a1698129503.dist-info → pulumi_vsphere-4.9.0a1698198425.dist-info}/WHEEL +0 -0
  71. {pulumi_vsphere-4.9.0a1698129503.dist-info → pulumi_vsphere-4.9.0a1698198425.dist-info}/top_level.txt +0 -0
@@ -61,8 +61,8 @@ class ProviderArgs:
61
61
  @staticmethod
62
62
  def _configure(
63
63
  _setter: Callable[[Any, Any], None],
64
- password: pulumi.Input[str],
65
- user: pulumi.Input[str],
64
+ password: Optional[pulumi.Input[str]] = None,
65
+ user: Optional[pulumi.Input[str]] = None,
66
66
  allow_unverified_ssl: Optional[pulumi.Input[bool]] = None,
67
67
  api_timeout: Optional[pulumi.Input[int]] = None,
68
68
  client_debug: Optional[pulumi.Input[bool]] = None,
@@ -74,7 +74,35 @@ class ProviderArgs:
74
74
  vim_keep_alive: Optional[pulumi.Input[int]] = None,
75
75
  vim_session_path: Optional[pulumi.Input[str]] = None,
76
76
  vsphere_server: Optional[pulumi.Input[str]] = None,
77
- opts: Optional[pulumi.ResourceOptions]=None):
77
+ opts: Optional[pulumi.ResourceOptions] = None,
78
+ **kwargs):
79
+ if password is None:
80
+ raise TypeError("Missing 'password' argument")
81
+ if user is None:
82
+ raise TypeError("Missing 'user' argument")
83
+ if allow_unverified_ssl is None and 'allowUnverifiedSsl' in kwargs:
84
+ allow_unverified_ssl = kwargs['allowUnverifiedSsl']
85
+ if api_timeout is None and 'apiTimeout' in kwargs:
86
+ api_timeout = kwargs['apiTimeout']
87
+ if client_debug is None and 'clientDebug' in kwargs:
88
+ client_debug = kwargs['clientDebug']
89
+ if client_debug_path is None and 'clientDebugPath' in kwargs:
90
+ client_debug_path = kwargs['clientDebugPath']
91
+ if client_debug_path_run is None and 'clientDebugPathRun' in kwargs:
92
+ client_debug_path_run = kwargs['clientDebugPathRun']
93
+ if persist_session is None and 'persistSession' in kwargs:
94
+ persist_session = kwargs['persistSession']
95
+ if rest_session_path is None and 'restSessionPath' in kwargs:
96
+ rest_session_path = kwargs['restSessionPath']
97
+ if vcenter_server is None and 'vcenterServer' in kwargs:
98
+ vcenter_server = kwargs['vcenterServer']
99
+ if vim_keep_alive is None and 'vimKeepAlive' in kwargs:
100
+ vim_keep_alive = kwargs['vimKeepAlive']
101
+ if vim_session_path is None and 'vimSessionPath' in kwargs:
102
+ vim_session_path = kwargs['vimSessionPath']
103
+ if vsphere_server is None and 'vsphereServer' in kwargs:
104
+ vsphere_server = kwargs['vsphereServer']
105
+
78
106
  _setter("password", password)
79
107
  _setter("user", user)
80
108
  if allow_unverified_ssl is None:
@@ -97,7 +97,7 @@ class ResourcePoolArgs:
97
97
  @staticmethod
98
98
  def _configure(
99
99
  _setter: Callable[[Any, Any], None],
100
- parent_resource_pool_id: pulumi.Input[str],
100
+ parent_resource_pool_id: Optional[pulumi.Input[str]] = None,
101
101
  cpu_expandable: Optional[pulumi.Input[bool]] = None,
102
102
  cpu_limit: Optional[pulumi.Input[int]] = None,
103
103
  cpu_reservation: Optional[pulumi.Input[int]] = None,
@@ -112,7 +112,37 @@ class ResourcePoolArgs:
112
112
  name: Optional[pulumi.Input[str]] = None,
113
113
  scale_descendants_shares: Optional[pulumi.Input[str]] = None,
114
114
  tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
115
- opts: Optional[pulumi.ResourceOptions]=None):
115
+ opts: Optional[pulumi.ResourceOptions] = None,
116
+ **kwargs):
117
+ if parent_resource_pool_id is None and 'parentResourcePoolId' in kwargs:
118
+ parent_resource_pool_id = kwargs['parentResourcePoolId']
119
+ if parent_resource_pool_id is None:
120
+ raise TypeError("Missing 'parent_resource_pool_id' argument")
121
+ if cpu_expandable is None and 'cpuExpandable' in kwargs:
122
+ cpu_expandable = kwargs['cpuExpandable']
123
+ if cpu_limit is None and 'cpuLimit' in kwargs:
124
+ cpu_limit = kwargs['cpuLimit']
125
+ if cpu_reservation is None and 'cpuReservation' in kwargs:
126
+ cpu_reservation = kwargs['cpuReservation']
127
+ if cpu_share_level is None and 'cpuShareLevel' in kwargs:
128
+ cpu_share_level = kwargs['cpuShareLevel']
129
+ if cpu_shares is None and 'cpuShares' in kwargs:
130
+ cpu_shares = kwargs['cpuShares']
131
+ if custom_attributes is None and 'customAttributes' in kwargs:
132
+ custom_attributes = kwargs['customAttributes']
133
+ if memory_expandable is None and 'memoryExpandable' in kwargs:
134
+ memory_expandable = kwargs['memoryExpandable']
135
+ if memory_limit is None and 'memoryLimit' in kwargs:
136
+ memory_limit = kwargs['memoryLimit']
137
+ if memory_reservation is None and 'memoryReservation' in kwargs:
138
+ memory_reservation = kwargs['memoryReservation']
139
+ if memory_share_level is None and 'memoryShareLevel' in kwargs:
140
+ memory_share_level = kwargs['memoryShareLevel']
141
+ if memory_shares is None and 'memoryShares' in kwargs:
142
+ memory_shares = kwargs['memoryShares']
143
+ if scale_descendants_shares is None and 'scaleDescendantsShares' in kwargs:
144
+ scale_descendants_shares = kwargs['scaleDescendantsShares']
145
+
116
146
  _setter("parent_resource_pool_id", parent_resource_pool_id)
117
147
  if cpu_expandable is not None:
118
148
  _setter("cpu_expandable", cpu_expandable)
@@ -454,7 +484,35 @@ class _ResourcePoolState:
454
484
  parent_resource_pool_id: Optional[pulumi.Input[str]] = None,
455
485
  scale_descendants_shares: Optional[pulumi.Input[str]] = None,
456
486
  tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
457
- opts: Optional[pulumi.ResourceOptions]=None):
487
+ opts: Optional[pulumi.ResourceOptions] = None,
488
+ **kwargs):
489
+ if cpu_expandable is None and 'cpuExpandable' in kwargs:
490
+ cpu_expandable = kwargs['cpuExpandable']
491
+ if cpu_limit is None and 'cpuLimit' in kwargs:
492
+ cpu_limit = kwargs['cpuLimit']
493
+ if cpu_reservation is None and 'cpuReservation' in kwargs:
494
+ cpu_reservation = kwargs['cpuReservation']
495
+ if cpu_share_level is None and 'cpuShareLevel' in kwargs:
496
+ cpu_share_level = kwargs['cpuShareLevel']
497
+ if cpu_shares is None and 'cpuShares' in kwargs:
498
+ cpu_shares = kwargs['cpuShares']
499
+ if custom_attributes is None and 'customAttributes' in kwargs:
500
+ custom_attributes = kwargs['customAttributes']
501
+ if memory_expandable is None and 'memoryExpandable' in kwargs:
502
+ memory_expandable = kwargs['memoryExpandable']
503
+ if memory_limit is None and 'memoryLimit' in kwargs:
504
+ memory_limit = kwargs['memoryLimit']
505
+ if memory_reservation is None and 'memoryReservation' in kwargs:
506
+ memory_reservation = kwargs['memoryReservation']
507
+ if memory_share_level is None and 'memoryShareLevel' in kwargs:
508
+ memory_share_level = kwargs['memoryShareLevel']
509
+ if memory_shares is None and 'memoryShares' in kwargs:
510
+ memory_shares = kwargs['memoryShares']
511
+ if parent_resource_pool_id is None and 'parentResourcePoolId' in kwargs:
512
+ parent_resource_pool_id = kwargs['parentResourcePoolId']
513
+ if scale_descendants_shares is None and 'scaleDescendantsShares' in kwargs:
514
+ scale_descendants_shares = kwargs['scaleDescendantsShares']
515
+
458
516
  if cpu_expandable is not None:
459
517
  _setter("cpu_expandable", cpu_expandable)
460
518
  if cpu_limit is not None:
@@ -726,46 +784,6 @@ class ResourcePool(pulumi.CustomResource):
726
784
 
727
785
  [ref-vsphere-resource_pools]: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.resmgmt.doc/GUID-60077B40-66FF-4625-934A-641703ED7601.html
728
786
 
729
- ## Example Usage
730
-
731
- The following example sets up a resource pool in an existing compute cluster
732
- with the default settings for CPU and memory reservations, shares, and limits.
733
-
734
- ```python
735
- import pulumi
736
- import pulumi_vsphere as vsphere
737
-
738
- datacenter = vsphere.get_datacenter(name="dc-01")
739
- compute_cluster = vsphere.get_compute_cluster(name="cluster-01",
740
- datacenter_id=datacenter.id)
741
- resource_pool = vsphere.ResourcePool("resourcePool", parent_resource_pool_id=compute_cluster.resource_pool_id)
742
- ```
743
-
744
- A virtual machine resource could be targeted to use the default resource pool
745
- of the cluster using the following:
746
-
747
- ```python
748
- import pulumi
749
- import pulumi_vsphere as vsphere
750
-
751
- vm = vsphere.VirtualMachine("vm", resource_pool_id=data["vsphere_compute_cluster"]["cluster"]["resource_pool_id"])
752
- # ... other configuration ...
753
- ```
754
-
755
- The following example sets up a parent resource pool in an existing compute cluster
756
- with a child resource pool nested below. Each resource pool is configured with
757
- the default settings for CPU and memory reservations, shares, and limits.
758
-
759
- ```python
760
- import pulumi
761
- import pulumi_vsphere as vsphere
762
-
763
- datacenter = vsphere.get_datacenter(name="dc-01")
764
- compute_cluster = vsphere.get_compute_cluster(name="cluster-01",
765
- datacenter_id=datacenter.id)
766
- resource_pool_parent = vsphere.ResourcePool("resourcePoolParent", parent_resource_pool_id=compute_cluster.resource_pool_id)
767
- resource_pool_child = vsphere.ResourcePool("resourcePoolChild", parent_resource_pool_id=resource_pool_parent.id)
768
- ```
769
787
  ## Importing
770
788
  ### Settings that Require vSphere 7.0 or higher
771
789
 
@@ -835,46 +853,6 @@ class ResourcePool(pulumi.CustomResource):
835
853
 
836
854
  [ref-vsphere-resource_pools]: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.resmgmt.doc/GUID-60077B40-66FF-4625-934A-641703ED7601.html
837
855
 
838
- ## Example Usage
839
-
840
- The following example sets up a resource pool in an existing compute cluster
841
- with the default settings for CPU and memory reservations, shares, and limits.
842
-
843
- ```python
844
- import pulumi
845
- import pulumi_vsphere as vsphere
846
-
847
- datacenter = vsphere.get_datacenter(name="dc-01")
848
- compute_cluster = vsphere.get_compute_cluster(name="cluster-01",
849
- datacenter_id=datacenter.id)
850
- resource_pool = vsphere.ResourcePool("resourcePool", parent_resource_pool_id=compute_cluster.resource_pool_id)
851
- ```
852
-
853
- A virtual machine resource could be targeted to use the default resource pool
854
- of the cluster using the following:
855
-
856
- ```python
857
- import pulumi
858
- import pulumi_vsphere as vsphere
859
-
860
- vm = vsphere.VirtualMachine("vm", resource_pool_id=data["vsphere_compute_cluster"]["cluster"]["resource_pool_id"])
861
- # ... other configuration ...
862
- ```
863
-
864
- The following example sets up a parent resource pool in an existing compute cluster
865
- with a child resource pool nested below. Each resource pool is configured with
866
- the default settings for CPU and memory reservations, shares, and limits.
867
-
868
- ```python
869
- import pulumi
870
- import pulumi_vsphere as vsphere
871
-
872
- datacenter = vsphere.get_datacenter(name="dc-01")
873
- compute_cluster = vsphere.get_compute_cluster(name="cluster-01",
874
- datacenter_id=datacenter.id)
875
- resource_pool_parent = vsphere.ResourcePool("resourcePoolParent", parent_resource_pool_id=compute_cluster.resource_pool_id)
876
- resource_pool_child = vsphere.ResourcePool("resourcePoolChild", parent_resource_pool_id=resource_pool_parent.id)
877
- ```
878
856
  ## Importing
879
857
  ### Settings that Require vSphere 7.0 or higher
880
858
 
pulumi_vsphere/role.py CHANGED
@@ -31,7 +31,11 @@ class RoleArgs:
31
31
  _setter: Callable[[Any, Any], None],
32
32
  name: Optional[pulumi.Input[str]] = None,
33
33
  role_privileges: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
34
- opts: Optional[pulumi.ResourceOptions]=None):
34
+ opts: Optional[pulumi.ResourceOptions] = None,
35
+ **kwargs):
36
+ if role_privileges is None and 'rolePrivileges' in kwargs:
37
+ role_privileges = kwargs['rolePrivileges']
38
+
35
39
  if name is not None:
36
40
  _setter("name", name)
37
41
  if role_privileges is not None:
@@ -86,7 +90,11 @@ class _RoleState:
86
90
  label: Optional[pulumi.Input[str]] = None,
87
91
  name: Optional[pulumi.Input[str]] = None,
88
92
  role_privileges: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
89
- opts: Optional[pulumi.ResourceOptions]=None):
93
+ opts: Optional[pulumi.ResourceOptions] = None,
94
+ **kwargs):
95
+ if role_privileges is None and 'rolePrivileges' in kwargs:
96
+ role_privileges = kwargs['rolePrivileges']
97
+
90
98
  if label is not None:
91
99
  _setter("label", label)
92
100
  if name is not None:
@@ -50,12 +50,28 @@ class StorageDrsVmOverrideArgs:
50
50
  @staticmethod
51
51
  def _configure(
52
52
  _setter: Callable[[Any, Any], None],
53
- datastore_cluster_id: pulumi.Input[str],
54
- virtual_machine_id: pulumi.Input[str],
53
+ datastore_cluster_id: Optional[pulumi.Input[str]] = None,
54
+ virtual_machine_id: Optional[pulumi.Input[str]] = None,
55
55
  sdrs_automation_level: Optional[pulumi.Input[str]] = None,
56
56
  sdrs_enabled: Optional[pulumi.Input[str]] = None,
57
57
  sdrs_intra_vm_affinity: Optional[pulumi.Input[str]] = None,
58
- opts: Optional[pulumi.ResourceOptions]=None):
58
+ opts: Optional[pulumi.ResourceOptions] = None,
59
+ **kwargs):
60
+ if datastore_cluster_id is None and 'datastoreClusterId' in kwargs:
61
+ datastore_cluster_id = kwargs['datastoreClusterId']
62
+ if datastore_cluster_id is None:
63
+ raise TypeError("Missing 'datastore_cluster_id' argument")
64
+ if virtual_machine_id is None and 'virtualMachineId' in kwargs:
65
+ virtual_machine_id = kwargs['virtualMachineId']
66
+ if virtual_machine_id is None:
67
+ raise TypeError("Missing 'virtual_machine_id' argument")
68
+ if sdrs_automation_level is None and 'sdrsAutomationLevel' in kwargs:
69
+ sdrs_automation_level = kwargs['sdrsAutomationLevel']
70
+ if sdrs_enabled is None and 'sdrsEnabled' in kwargs:
71
+ sdrs_enabled = kwargs['sdrsEnabled']
72
+ if sdrs_intra_vm_affinity is None and 'sdrsIntraVmAffinity' in kwargs:
73
+ sdrs_intra_vm_affinity = kwargs['sdrsIntraVmAffinity']
74
+
59
75
  _setter("datastore_cluster_id", datastore_cluster_id)
60
76
  _setter("virtual_machine_id", virtual_machine_id)
61
77
  if sdrs_automation_level is not None:
@@ -182,7 +198,19 @@ class _StorageDrsVmOverrideState:
182
198
  sdrs_enabled: Optional[pulumi.Input[str]] = None,
183
199
  sdrs_intra_vm_affinity: Optional[pulumi.Input[str]] = None,
184
200
  virtual_machine_id: Optional[pulumi.Input[str]] = None,
185
- opts: Optional[pulumi.ResourceOptions]=None):
201
+ opts: Optional[pulumi.ResourceOptions] = None,
202
+ **kwargs):
203
+ if datastore_cluster_id is None and 'datastoreClusterId' in kwargs:
204
+ datastore_cluster_id = kwargs['datastoreClusterId']
205
+ if sdrs_automation_level is None and 'sdrsAutomationLevel' in kwargs:
206
+ sdrs_automation_level = kwargs['sdrsAutomationLevel']
207
+ if sdrs_enabled is None and 'sdrsEnabled' in kwargs:
208
+ sdrs_enabled = kwargs['sdrsEnabled']
209
+ if sdrs_intra_vm_affinity is None and 'sdrsIntraVmAffinity' in kwargs:
210
+ sdrs_intra_vm_affinity = kwargs['sdrsIntraVmAffinity']
211
+ if virtual_machine_id is None and 'virtualMachineId' in kwargs:
212
+ virtual_machine_id = kwargs['virtualMachineId']
213
+
186
214
  if datastore_cluster_id is not None:
187
215
  _setter("datastore_cluster_id", datastore_cluster_id)
188
216
  if sdrs_automation_level is not None:
pulumi_vsphere/tag.py CHANGED
@@ -34,10 +34,16 @@ class TagArgs:
34
34
  @staticmethod
35
35
  def _configure(
36
36
  _setter: Callable[[Any, Any], None],
37
- category_id: pulumi.Input[str],
37
+ category_id: Optional[pulumi.Input[str]] = None,
38
38
  description: Optional[pulumi.Input[str]] = None,
39
39
  name: Optional[pulumi.Input[str]] = None,
40
- opts: Optional[pulumi.ResourceOptions]=None):
40
+ opts: Optional[pulumi.ResourceOptions] = None,
41
+ **kwargs):
42
+ if category_id is None and 'categoryId' in kwargs:
43
+ category_id = kwargs['categoryId']
44
+ if category_id is None:
45
+ raise TypeError("Missing 'category_id' argument")
46
+
41
47
  _setter("category_id", category_id)
42
48
  if description is not None:
43
49
  _setter("description", description)
@@ -109,7 +115,11 @@ class _TagState:
109
115
  category_id: Optional[pulumi.Input[str]] = None,
110
116
  description: Optional[pulumi.Input[str]] = None,
111
117
  name: Optional[pulumi.Input[str]] = None,
112
- opts: Optional[pulumi.ResourceOptions]=None):
118
+ opts: Optional[pulumi.ResourceOptions] = None,
119
+ **kwargs):
120
+ if category_id is None and 'categoryId' in kwargs:
121
+ category_id = kwargs['categoryId']
122
+
113
123
  if category_id is not None:
114
124
  _setter("category_id", category_id)
115
125
  if description is not None:
@@ -43,11 +43,19 @@ class TagCategoryArgs:
43
43
  @staticmethod
44
44
  def _configure(
45
45
  _setter: Callable[[Any, Any], None],
46
- associable_types: pulumi.Input[Sequence[pulumi.Input[str]]],
47
- cardinality: pulumi.Input[str],
46
+ associable_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
47
+ cardinality: Optional[pulumi.Input[str]] = None,
48
48
  description: Optional[pulumi.Input[str]] = None,
49
49
  name: Optional[pulumi.Input[str]] = None,
50
- opts: Optional[pulumi.ResourceOptions]=None):
50
+ opts: Optional[pulumi.ResourceOptions] = None,
51
+ **kwargs):
52
+ if associable_types is None and 'associableTypes' in kwargs:
53
+ associable_types = kwargs['associableTypes']
54
+ if associable_types is None:
55
+ raise TypeError("Missing 'associable_types' argument")
56
+ if cardinality is None:
57
+ raise TypeError("Missing 'cardinality' argument")
58
+
51
59
  _setter("associable_types", associable_types)
52
60
  _setter("cardinality", cardinality)
53
61
  if description is not None:
@@ -148,7 +156,11 @@ class _TagCategoryState:
148
156
  cardinality: Optional[pulumi.Input[str]] = None,
149
157
  description: Optional[pulumi.Input[str]] = None,
150
158
  name: Optional[pulumi.Input[str]] = None,
151
- opts: Optional[pulumi.ResourceOptions]=None):
159
+ opts: Optional[pulumi.ResourceOptions] = None,
160
+ **kwargs):
161
+ if associable_types is None and 'associableTypes' in kwargs:
162
+ associable_types = kwargs['associableTypes']
163
+
152
164
  if associable_types is not None:
153
165
  _setter("associable_types", associable_types)
154
166
  if cardinality is not None:
@@ -96,7 +96,7 @@ class VappContainerArgs:
96
96
  @staticmethod
97
97
  def _configure(
98
98
  _setter: Callable[[Any, Any], None],
99
- parent_resource_pool_id: pulumi.Input[str],
99
+ parent_resource_pool_id: Optional[pulumi.Input[str]] = None,
100
100
  cpu_expandable: Optional[pulumi.Input[bool]] = None,
101
101
  cpu_limit: Optional[pulumi.Input[int]] = None,
102
102
  cpu_reservation: Optional[pulumi.Input[int]] = None,
@@ -111,7 +111,37 @@ class VappContainerArgs:
111
111
  name: Optional[pulumi.Input[str]] = None,
112
112
  parent_folder_id: Optional[pulumi.Input[str]] = None,
113
113
  tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
114
- opts: Optional[pulumi.ResourceOptions]=None):
114
+ opts: Optional[pulumi.ResourceOptions] = None,
115
+ **kwargs):
116
+ if parent_resource_pool_id is None and 'parentResourcePoolId' in kwargs:
117
+ parent_resource_pool_id = kwargs['parentResourcePoolId']
118
+ if parent_resource_pool_id is None:
119
+ raise TypeError("Missing 'parent_resource_pool_id' argument")
120
+ if cpu_expandable is None and 'cpuExpandable' in kwargs:
121
+ cpu_expandable = kwargs['cpuExpandable']
122
+ if cpu_limit is None and 'cpuLimit' in kwargs:
123
+ cpu_limit = kwargs['cpuLimit']
124
+ if cpu_reservation is None and 'cpuReservation' in kwargs:
125
+ cpu_reservation = kwargs['cpuReservation']
126
+ if cpu_share_level is None and 'cpuShareLevel' in kwargs:
127
+ cpu_share_level = kwargs['cpuShareLevel']
128
+ if cpu_shares is None and 'cpuShares' in kwargs:
129
+ cpu_shares = kwargs['cpuShares']
130
+ if custom_attributes is None and 'customAttributes' in kwargs:
131
+ custom_attributes = kwargs['customAttributes']
132
+ if memory_expandable is None and 'memoryExpandable' in kwargs:
133
+ memory_expandable = kwargs['memoryExpandable']
134
+ if memory_limit is None and 'memoryLimit' in kwargs:
135
+ memory_limit = kwargs['memoryLimit']
136
+ if memory_reservation is None and 'memoryReservation' in kwargs:
137
+ memory_reservation = kwargs['memoryReservation']
138
+ if memory_share_level is None and 'memoryShareLevel' in kwargs:
139
+ memory_share_level = kwargs['memoryShareLevel']
140
+ if memory_shares is None and 'memoryShares' in kwargs:
141
+ memory_shares = kwargs['memoryShares']
142
+ if parent_folder_id is None and 'parentFolderId' in kwargs:
143
+ parent_folder_id = kwargs['parentFolderId']
144
+
115
145
  _setter("parent_resource_pool_id", parent_resource_pool_id)
116
146
  if cpu_expandable is not None:
117
147
  _setter("cpu_expandable", cpu_expandable)
@@ -451,7 +481,35 @@ class _VappContainerState:
451
481
  parent_folder_id: Optional[pulumi.Input[str]] = None,
452
482
  parent_resource_pool_id: Optional[pulumi.Input[str]] = None,
453
483
  tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
454
- opts: Optional[pulumi.ResourceOptions]=None):
484
+ opts: Optional[pulumi.ResourceOptions] = None,
485
+ **kwargs):
486
+ if cpu_expandable is None and 'cpuExpandable' in kwargs:
487
+ cpu_expandable = kwargs['cpuExpandable']
488
+ if cpu_limit is None and 'cpuLimit' in kwargs:
489
+ cpu_limit = kwargs['cpuLimit']
490
+ if cpu_reservation is None and 'cpuReservation' in kwargs:
491
+ cpu_reservation = kwargs['cpuReservation']
492
+ if cpu_share_level is None and 'cpuShareLevel' in kwargs:
493
+ cpu_share_level = kwargs['cpuShareLevel']
494
+ if cpu_shares is None and 'cpuShares' in kwargs:
495
+ cpu_shares = kwargs['cpuShares']
496
+ if custom_attributes is None and 'customAttributes' in kwargs:
497
+ custom_attributes = kwargs['customAttributes']
498
+ if memory_expandable is None and 'memoryExpandable' in kwargs:
499
+ memory_expandable = kwargs['memoryExpandable']
500
+ if memory_limit is None and 'memoryLimit' in kwargs:
501
+ memory_limit = kwargs['memoryLimit']
502
+ if memory_reservation is None and 'memoryReservation' in kwargs:
503
+ memory_reservation = kwargs['memoryReservation']
504
+ if memory_share_level is None and 'memoryShareLevel' in kwargs:
505
+ memory_share_level = kwargs['memoryShareLevel']
506
+ if memory_shares is None and 'memoryShares' in kwargs:
507
+ memory_shares = kwargs['memoryShares']
508
+ if parent_folder_id is None and 'parentFolderId' in kwargs:
509
+ parent_folder_id = kwargs['parentFolderId']
510
+ if parent_resource_pool_id is None and 'parentResourcePoolId' in kwargs:
511
+ parent_resource_pool_id = kwargs['parentResourcePoolId']
512
+
455
513
  if cpu_expandable is not None:
456
514
  _setter("cpu_expandable", cpu_expandable)
457
515
  if cpu_limit is not None:
@@ -64,8 +64,8 @@ class VappEntityArgs:
64
64
  @staticmethod
65
65
  def _configure(
66
66
  _setter: Callable[[Any, Any], None],
67
- container_id: pulumi.Input[str],
68
- target_id: pulumi.Input[str],
67
+ container_id: Optional[pulumi.Input[str]] = None,
68
+ target_id: Optional[pulumi.Input[str]] = None,
69
69
  custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
70
70
  start_action: Optional[pulumi.Input[str]] = None,
71
71
  start_delay: Optional[pulumi.Input[int]] = None,
@@ -74,7 +74,31 @@ class VappEntityArgs:
74
74
  stop_delay: Optional[pulumi.Input[int]] = None,
75
75
  tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
76
76
  wait_for_guest: Optional[pulumi.Input[bool]] = None,
77
- opts: Optional[pulumi.ResourceOptions]=None):
77
+ opts: Optional[pulumi.ResourceOptions] = None,
78
+ **kwargs):
79
+ if container_id is None and 'containerId' in kwargs:
80
+ container_id = kwargs['containerId']
81
+ if container_id is None:
82
+ raise TypeError("Missing 'container_id' argument")
83
+ if target_id is None and 'targetId' in kwargs:
84
+ target_id = kwargs['targetId']
85
+ if target_id is None:
86
+ raise TypeError("Missing 'target_id' argument")
87
+ if custom_attributes is None and 'customAttributes' in kwargs:
88
+ custom_attributes = kwargs['customAttributes']
89
+ if start_action is None and 'startAction' in kwargs:
90
+ start_action = kwargs['startAction']
91
+ if start_delay is None and 'startDelay' in kwargs:
92
+ start_delay = kwargs['startDelay']
93
+ if start_order is None and 'startOrder' in kwargs:
94
+ start_order = kwargs['startOrder']
95
+ if stop_action is None and 'stopAction' in kwargs:
96
+ stop_action = kwargs['stopAction']
97
+ if stop_delay is None and 'stopDelay' in kwargs:
98
+ stop_delay = kwargs['stopDelay']
99
+ if wait_for_guest is None and 'waitForGuest' in kwargs:
100
+ wait_for_guest = kwargs['waitForGuest']
101
+
78
102
  _setter("container_id", container_id)
79
103
  _setter("target_id", target_id)
80
104
  if custom_attributes is not None:
@@ -289,7 +313,27 @@ class _VappEntityState:
289
313
  tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
290
314
  target_id: Optional[pulumi.Input[str]] = None,
291
315
  wait_for_guest: Optional[pulumi.Input[bool]] = None,
292
- opts: Optional[pulumi.ResourceOptions]=None):
316
+ opts: Optional[pulumi.ResourceOptions] = None,
317
+ **kwargs):
318
+ if container_id is None and 'containerId' in kwargs:
319
+ container_id = kwargs['containerId']
320
+ if custom_attributes is None and 'customAttributes' in kwargs:
321
+ custom_attributes = kwargs['customAttributes']
322
+ if start_action is None and 'startAction' in kwargs:
323
+ start_action = kwargs['startAction']
324
+ if start_delay is None and 'startDelay' in kwargs:
325
+ start_delay = kwargs['startDelay']
326
+ if start_order is None and 'startOrder' in kwargs:
327
+ start_order = kwargs['startOrder']
328
+ if stop_action is None and 'stopAction' in kwargs:
329
+ stop_action = kwargs['stopAction']
330
+ if stop_delay is None and 'stopDelay' in kwargs:
331
+ stop_delay = kwargs['stopDelay']
332
+ if target_id is None and 'targetId' in kwargs:
333
+ target_id = kwargs['targetId']
334
+ if wait_for_guest is None and 'waitForGuest' in kwargs:
335
+ wait_for_guest = kwargs['waitForGuest']
336
+
293
337
  if container_id is not None:
294
338
  _setter("container_id", container_id)
295
339
  if custom_attributes is not None:
@@ -67,14 +67,28 @@ class VirtualDiskArgs:
67
67
  @staticmethod
68
68
  def _configure(
69
69
  _setter: Callable[[Any, Any], None],
70
- datastore: pulumi.Input[str],
71
- size: pulumi.Input[int],
72
- vmdk_path: pulumi.Input[str],
70
+ datastore: Optional[pulumi.Input[str]] = None,
71
+ size: Optional[pulumi.Input[int]] = None,
72
+ vmdk_path: Optional[pulumi.Input[str]] = None,
73
73
  adapter_type: Optional[pulumi.Input[str]] = None,
74
74
  create_directories: Optional[pulumi.Input[bool]] = None,
75
75
  datacenter: Optional[pulumi.Input[str]] = None,
76
76
  type: Optional[pulumi.Input[str]] = None,
77
- opts: Optional[pulumi.ResourceOptions]=None):
77
+ opts: Optional[pulumi.ResourceOptions] = None,
78
+ **kwargs):
79
+ if datastore is None:
80
+ raise TypeError("Missing 'datastore' argument")
81
+ if size is None:
82
+ raise TypeError("Missing 'size' argument")
83
+ if vmdk_path is None and 'vmdkPath' in kwargs:
84
+ vmdk_path = kwargs['vmdkPath']
85
+ if vmdk_path is None:
86
+ raise TypeError("Missing 'vmdk_path' argument")
87
+ if adapter_type is None and 'adapterType' in kwargs:
88
+ adapter_type = kwargs['adapterType']
89
+ if create_directories is None and 'createDirectories' in kwargs:
90
+ create_directories = kwargs['createDirectories']
91
+
78
92
  _setter("datastore", datastore)
79
93
  _setter("size", size)
80
94
  _setter("vmdk_path", vmdk_path)
@@ -264,7 +278,15 @@ class _VirtualDiskState:
264
278
  size: Optional[pulumi.Input[int]] = None,
265
279
  type: Optional[pulumi.Input[str]] = None,
266
280
  vmdk_path: Optional[pulumi.Input[str]] = None,
267
- opts: Optional[pulumi.ResourceOptions]=None):
281
+ opts: Optional[pulumi.ResourceOptions] = None,
282
+ **kwargs):
283
+ if adapter_type is None and 'adapterType' in kwargs:
284
+ adapter_type = kwargs['adapterType']
285
+ if create_directories is None and 'createDirectories' in kwargs:
286
+ create_directories = kwargs['createDirectories']
287
+ if vmdk_path is None and 'vmdkPath' in kwargs:
288
+ vmdk_path = kwargs['vmdkPath']
289
+
268
290
  if adapter_type is not None:
269
291
  warnings.warn("""this attribute has no effect on controller types - please use scsi_type in vsphere_virtual_machine instead""", DeprecationWarning)
270
292
  pulumi.log.warn("""adapter_type is deprecated: this attribute has no effect on controller types - please use scsi_type in vsphere_virtual_machine instead""")