pulumi-vsphere 4.9.0a1698441837__py3-none-any.whl → 4.9.0a1698968062__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.
Files changed (74) hide show
  1. pulumi_vsphere/_inputs.py +128 -811
  2. pulumi_vsphere/_utilities.py +0 -19
  3. pulumi_vsphere/compute_cluster.py +132 -668
  4. pulumi_vsphere/compute_cluster_host_group.py +7 -51
  5. pulumi_vsphere/compute_cluster_vm_affinity_rule.py +11 -65
  6. pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py +11 -65
  7. pulumi_vsphere/compute_cluster_vm_dependency_rule.py +13 -77
  8. pulumi_vsphere/compute_cluster_vm_group.py +7 -51
  9. pulumi_vsphere/compute_cluster_vm_host_rule.py +15 -85
  10. pulumi_vsphere/config/vars.py +1 -1
  11. pulumi_vsphere/content_library.py +11 -61
  12. pulumi_vsphere/content_library_item.py +13 -73
  13. pulumi_vsphere/custom_attribute.py +5 -39
  14. pulumi_vsphere/datacenter.py +10 -54
  15. pulumi_vsphere/datastore_cluster.py +51 -263
  16. pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py +11 -65
  17. pulumi_vsphere/distributed_port_group.py +95 -473
  18. pulumi_vsphere/distributed_virtual_switch.py +190 -938
  19. pulumi_vsphere/dpm_host_override.py +9 -67
  20. pulumi_vsphere/drs_vm_override.py +9 -67
  21. pulumi_vsphere/entity_permissions.py +7 -55
  22. pulumi_vsphere/file.py +15 -91
  23. pulumi_vsphere/folder.py +11 -65
  24. pulumi_vsphere/get_compute_cluster.py +1 -1
  25. pulumi_vsphere/get_compute_cluster_host_group.py +1 -1
  26. pulumi_vsphere/get_content_library.py +1 -1
  27. pulumi_vsphere/get_content_library_item.py +1 -1
  28. pulumi_vsphere/get_custom_attribute.py +1 -1
  29. pulumi_vsphere/get_datacenter.py +1 -1
  30. pulumi_vsphere/get_datastore.py +1 -1
  31. pulumi_vsphere/get_datastore_cluster.py +1 -1
  32. pulumi_vsphere/get_distributed_virtual_switch.py +1 -1
  33. pulumi_vsphere/get_dynamic.py +1 -1
  34. pulumi_vsphere/get_folder.py +1 -1
  35. pulumi_vsphere/get_host.py +1 -1
  36. pulumi_vsphere/get_host_pci_device.py +1 -1
  37. pulumi_vsphere/get_host_thumbprint.py +1 -1
  38. pulumi_vsphere/get_license.py +1 -1
  39. pulumi_vsphere/get_network.py +1 -1
  40. pulumi_vsphere/get_ovf_vm_template.py +1 -1
  41. pulumi_vsphere/get_policy.py +1 -1
  42. pulumi_vsphere/get_resource_pool.py +1 -1
  43. pulumi_vsphere/get_role.py +1 -1
  44. pulumi_vsphere/get_tag.py +1 -1
  45. pulumi_vsphere/get_tag_category.py +1 -1
  46. pulumi_vsphere/get_vapp_container.py +1 -1
  47. pulumi_vsphere/get_virtual_machine.py +1 -1
  48. pulumi_vsphere/get_vmfs_disks.py +1 -1
  49. pulumi_vsphere/ha_vm_override.py +31 -177
  50. pulumi_vsphere/host.py +29 -121
  51. pulumi_vsphere/host_port_group.py +38 -200
  52. pulumi_vsphere/host_virtual_switch.py +43 -227
  53. pulumi_vsphere/license.py +9 -55
  54. pulumi_vsphere/nas_datastore.py +31 -157
  55. pulumi_vsphere/outputs.py +140 -903
  56. pulumi_vsphere/provider.py +14 -79
  57. pulumi_vsphere/resource_pool.py +31 -167
  58. pulumi_vsphere/role.py +6 -42
  59. pulumi_vsphere/storage_drs_vm_override.py +11 -77
  60. pulumi_vsphere/tag.py +7 -47
  61. pulumi_vsphere/tag_category.py +9 -55
  62. pulumi_vsphere/vapp_container.py +31 -167
  63. pulumi_vsphere/vapp_entity.py +21 -123
  64. pulumi_vsphere/virtual_disk.py +15 -83
  65. pulumi_vsphere/virtual_machine.py +160 -777
  66. pulumi_vsphere/virtual_machine_snapshot.py +15 -87
  67. pulumi_vsphere/vm_storage_policy.py +7 -47
  68. pulumi_vsphere/vmfs_datastore.py +22 -110
  69. pulumi_vsphere/vnic.py +21 -95
  70. {pulumi_vsphere-4.9.0a1698441837.dist-info → pulumi_vsphere-4.9.0a1698968062.dist-info}/METADATA +1 -1
  71. pulumi_vsphere-4.9.0a1698968062.dist-info/RECORD +77 -0
  72. {pulumi_vsphere-4.9.0a1698441837.dist-info → pulumi_vsphere-4.9.0a1698968062.dist-info}/WHEEL +1 -1
  73. pulumi_vsphere-4.9.0a1698441837.dist-info/RECORD +0 -77
  74. {pulumi_vsphere-4.9.0a1698441837.dist-info → pulumi_vsphere-4.9.0a1698968062.dist-info}/top_level.txt +0 -0
pulumi_vsphere/_inputs.py CHANGED
@@ -6,7 +6,7 @@ import copy
6
6
  import warnings
7
7
  import pulumi
8
8
  import pulumi.runtime
9
- from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload
9
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
10
10
  from . import _utilities
11
11
 
12
12
  __all__ = [
@@ -72,23 +72,10 @@ class ComputeClusterVsanDiskGroupArgs:
72
72
  )])
73
73
  ```
74
74
  """
75
- ComputeClusterVsanDiskGroupArgs._configure(
76
- lambda key, value: pulumi.set(__self__, key, value),
77
- cache=cache,
78
- storages=storages,
79
- )
80
- @staticmethod
81
- def _configure(
82
- _setter: Callable[[Any, Any], None],
83
- cache: Optional[pulumi.Input[str]] = None,
84
- storages: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
85
- opts: Optional[pulumi.ResourceOptions] = None,
86
- **kwargs):
87
-
88
75
  if cache is not None:
89
- _setter("cache", cache)
76
+ pulumi.set(__self__, "cache", cache)
90
77
  if storages is not None:
91
- _setter("storages", storages)
78
+ pulumi.set(__self__, "storages", storages)
92
79
 
93
80
  @property
94
81
  @pulumi.getter
@@ -158,39 +145,16 @@ class ContentLibraryPublicationArgs:
158
145
  :param pulumi.Input[bool] published: Publish the content library. Default `false`.
159
146
  :param pulumi.Input[str] username: Username used for authentication.
160
147
  """
161
- ContentLibraryPublicationArgs._configure(
162
- lambda key, value: pulumi.set(__self__, key, value),
163
- authentication_method=authentication_method,
164
- password=password,
165
- publish_url=publish_url,
166
- published=published,
167
- username=username,
168
- )
169
- @staticmethod
170
- def _configure(
171
- _setter: Callable[[Any, Any], None],
172
- authentication_method: Optional[pulumi.Input[str]] = None,
173
- password: Optional[pulumi.Input[str]] = None,
174
- publish_url: Optional[pulumi.Input[str]] = None,
175
- published: Optional[pulumi.Input[bool]] = None,
176
- username: Optional[pulumi.Input[str]] = None,
177
- opts: Optional[pulumi.ResourceOptions] = None,
178
- **kwargs):
179
- if authentication_method is None and 'authenticationMethod' in kwargs:
180
- authentication_method = kwargs['authenticationMethod']
181
- if publish_url is None and 'publishUrl' in kwargs:
182
- publish_url = kwargs['publishUrl']
183
-
184
148
  if authentication_method is not None:
185
- _setter("authentication_method", authentication_method)
149
+ pulumi.set(__self__, "authentication_method", authentication_method)
186
150
  if password is not None:
187
- _setter("password", password)
151
+ pulumi.set(__self__, "password", password)
188
152
  if publish_url is not None:
189
- _setter("publish_url", publish_url)
153
+ pulumi.set(__self__, "publish_url", publish_url)
190
154
  if published is not None:
191
- _setter("published", published)
155
+ pulumi.set(__self__, "published", published)
192
156
  if username is not None:
193
- _setter("username", username)
157
+ pulumi.set(__self__, "username", username)
194
158
 
195
159
  @property
196
160
  @pulumi.getter(name="authenticationMethod")
@@ -270,47 +234,18 @@ class ContentLibrarySubscriptionArgs:
270
234
  :param pulumi.Input[str] subscription_url: URL of the published content library.
271
235
  :param pulumi.Input[str] username: Username used for authentication.
272
236
  """
273
- ContentLibrarySubscriptionArgs._configure(
274
- lambda key, value: pulumi.set(__self__, key, value),
275
- authentication_method=authentication_method,
276
- automatic_sync=automatic_sync,
277
- on_demand=on_demand,
278
- password=password,
279
- subscription_url=subscription_url,
280
- username=username,
281
- )
282
- @staticmethod
283
- def _configure(
284
- _setter: Callable[[Any, Any], None],
285
- authentication_method: Optional[pulumi.Input[str]] = None,
286
- automatic_sync: Optional[pulumi.Input[bool]] = None,
287
- on_demand: Optional[pulumi.Input[bool]] = None,
288
- password: Optional[pulumi.Input[str]] = None,
289
- subscription_url: Optional[pulumi.Input[str]] = None,
290
- username: Optional[pulumi.Input[str]] = None,
291
- opts: Optional[pulumi.ResourceOptions] = None,
292
- **kwargs):
293
- if authentication_method is None and 'authenticationMethod' in kwargs:
294
- authentication_method = kwargs['authenticationMethod']
295
- if automatic_sync is None and 'automaticSync' in kwargs:
296
- automatic_sync = kwargs['automaticSync']
297
- if on_demand is None and 'onDemand' in kwargs:
298
- on_demand = kwargs['onDemand']
299
- if subscription_url is None and 'subscriptionUrl' in kwargs:
300
- subscription_url = kwargs['subscriptionUrl']
301
-
302
237
  if authentication_method is not None:
303
- _setter("authentication_method", authentication_method)
238
+ pulumi.set(__self__, "authentication_method", authentication_method)
304
239
  if automatic_sync is not None:
305
- _setter("automatic_sync", automatic_sync)
240
+ pulumi.set(__self__, "automatic_sync", automatic_sync)
306
241
  if on_demand is not None:
307
- _setter("on_demand", on_demand)
242
+ pulumi.set(__self__, "on_demand", on_demand)
308
243
  if password is not None:
309
- _setter("password", password)
244
+ pulumi.set(__self__, "password", password)
310
245
  if subscription_url is not None:
311
- _setter("subscription_url", subscription_url)
246
+ pulumi.set(__self__, "subscription_url", subscription_url)
312
247
  if username is not None:
313
- _setter("username", username)
248
+ pulumi.set(__self__, "username", username)
314
249
 
315
250
  @property
316
251
  @pulumi.getter(name="authenticationMethod")
@@ -390,29 +325,8 @@ class DistributedPortGroupVlanRangeArgs:
390
325
  def __init__(__self__, *,
391
326
  max_vlan: pulumi.Input[int],
392
327
  min_vlan: pulumi.Input[int]):
393
- DistributedPortGroupVlanRangeArgs._configure(
394
- lambda key, value: pulumi.set(__self__, key, value),
395
- max_vlan=max_vlan,
396
- min_vlan=min_vlan,
397
- )
398
- @staticmethod
399
- def _configure(
400
- _setter: Callable[[Any, Any], None],
401
- max_vlan: Optional[pulumi.Input[int]] = None,
402
- min_vlan: Optional[pulumi.Input[int]] = None,
403
- opts: Optional[pulumi.ResourceOptions] = None,
404
- **kwargs):
405
- if max_vlan is None and 'maxVlan' in kwargs:
406
- max_vlan = kwargs['maxVlan']
407
- if max_vlan is None:
408
- raise TypeError("Missing 'max_vlan' argument")
409
- if min_vlan is None and 'minVlan' in kwargs:
410
- min_vlan = kwargs['minVlan']
411
- if min_vlan is None:
412
- raise TypeError("Missing 'min_vlan' argument")
413
-
414
- _setter("max_vlan", max_vlan)
415
- _setter("min_vlan", min_vlan)
328
+ pulumi.set(__self__, "max_vlan", max_vlan)
329
+ pulumi.set(__self__, "min_vlan", min_vlan)
416
330
 
417
331
  @property
418
332
  @pulumi.getter(name="maxVlan")
@@ -444,26 +358,9 @@ class DistributedVirtualSwitchHostArgs:
444
358
  :param pulumi.Input[Sequence[pulumi.Input[str]]] devices: The list of NIC devices to map to uplinks on the VDS,
445
359
  added in order they are specified.
446
360
  """
447
- DistributedVirtualSwitchHostArgs._configure(
448
- lambda key, value: pulumi.set(__self__, key, value),
449
- host_system_id=host_system_id,
450
- devices=devices,
451
- )
452
- @staticmethod
453
- def _configure(
454
- _setter: Callable[[Any, Any], None],
455
- host_system_id: Optional[pulumi.Input[str]] = None,
456
- devices: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
457
- opts: Optional[pulumi.ResourceOptions] = None,
458
- **kwargs):
459
- if host_system_id is None and 'hostSystemId' in kwargs:
460
- host_system_id = kwargs['hostSystemId']
461
- if host_system_id is None:
462
- raise TypeError("Missing 'host_system_id' argument")
463
-
464
- _setter("host_system_id", host_system_id)
361
+ pulumi.set(__self__, "host_system_id", host_system_id)
465
362
  if devices is not None:
466
- _setter("devices", devices)
363
+ pulumi.set(__self__, "devices", devices)
467
364
 
468
365
  @property
469
366
  @pulumi.getter(name="hostSystemId")
@@ -506,36 +403,9 @@ class DistributedVirtualSwitchPvlanMappingArgs:
506
403
  :param pulumi.Input[int] secondary_vlan_id: The secondary VLAN ID. The VLAN IDs of 0
507
404
  and 4095 are reserved and cannot be used in this property.
508
405
  """
509
- DistributedVirtualSwitchPvlanMappingArgs._configure(
510
- lambda key, value: pulumi.set(__self__, key, value),
511
- primary_vlan_id=primary_vlan_id,
512
- pvlan_type=pvlan_type,
513
- secondary_vlan_id=secondary_vlan_id,
514
- )
515
- @staticmethod
516
- def _configure(
517
- _setter: Callable[[Any, Any], None],
518
- primary_vlan_id: Optional[pulumi.Input[int]] = None,
519
- pvlan_type: Optional[pulumi.Input[str]] = None,
520
- secondary_vlan_id: Optional[pulumi.Input[int]] = None,
521
- opts: Optional[pulumi.ResourceOptions] = None,
522
- **kwargs):
523
- if primary_vlan_id is None and 'primaryVlanId' in kwargs:
524
- primary_vlan_id = kwargs['primaryVlanId']
525
- if primary_vlan_id is None:
526
- raise TypeError("Missing 'primary_vlan_id' argument")
527
- if pvlan_type is None and 'pvlanType' in kwargs:
528
- pvlan_type = kwargs['pvlanType']
529
- if pvlan_type is None:
530
- raise TypeError("Missing 'pvlan_type' argument")
531
- if secondary_vlan_id is None and 'secondaryVlanId' in kwargs:
532
- secondary_vlan_id = kwargs['secondaryVlanId']
533
- if secondary_vlan_id is None:
534
- raise TypeError("Missing 'secondary_vlan_id' argument")
535
-
536
- _setter("primary_vlan_id", primary_vlan_id)
537
- _setter("pvlan_type", pvlan_type)
538
- _setter("secondary_vlan_id", secondary_vlan_id)
406
+ pulumi.set(__self__, "primary_vlan_id", primary_vlan_id)
407
+ pulumi.set(__self__, "pvlan_type", pvlan_type)
408
+ pulumi.set(__self__, "secondary_vlan_id", secondary_vlan_id)
539
409
 
540
410
  @property
541
411
  @pulumi.getter(name="primaryVlanId")
@@ -582,29 +452,8 @@ class DistributedVirtualSwitchVlanRangeArgs:
582
452
  def __init__(__self__, *,
583
453
  max_vlan: pulumi.Input[int],
584
454
  min_vlan: pulumi.Input[int]):
585
- DistributedVirtualSwitchVlanRangeArgs._configure(
586
- lambda key, value: pulumi.set(__self__, key, value),
587
- max_vlan=max_vlan,
588
- min_vlan=min_vlan,
589
- )
590
- @staticmethod
591
- def _configure(
592
- _setter: Callable[[Any, Any], None],
593
- max_vlan: Optional[pulumi.Input[int]] = None,
594
- min_vlan: Optional[pulumi.Input[int]] = None,
595
- opts: Optional[pulumi.ResourceOptions] = None,
596
- **kwargs):
597
- if max_vlan is None and 'maxVlan' in kwargs:
598
- max_vlan = kwargs['maxVlan']
599
- if max_vlan is None:
600
- raise TypeError("Missing 'max_vlan' argument")
601
- if min_vlan is None and 'minVlan' in kwargs:
602
- min_vlan = kwargs['minVlan']
603
- if min_vlan is None:
604
- raise TypeError("Missing 'min_vlan' argument")
605
-
606
- _setter("max_vlan", max_vlan)
607
- _setter("min_vlan", min_vlan)
455
+ pulumi.set(__self__, "max_vlan", max_vlan)
456
+ pulumi.set(__self__, "min_vlan", min_vlan)
608
457
 
609
458
  @property
610
459
  @pulumi.getter(name="maxVlan")
@@ -638,41 +487,10 @@ class EntityPermissionsPermissionArgs:
638
487
  :param pulumi.Input[str] role_id: The role id of the role to be given to the user on the specified entity.
639
488
  :param pulumi.Input[str] user_or_group: The user/group getting the permission.
640
489
  """
641
- EntityPermissionsPermissionArgs._configure(
642
- lambda key, value: pulumi.set(__self__, key, value),
643
- is_group=is_group,
644
- propagate=propagate,
645
- role_id=role_id,
646
- user_or_group=user_or_group,
647
- )
648
- @staticmethod
649
- def _configure(
650
- _setter: Callable[[Any, Any], None],
651
- is_group: Optional[pulumi.Input[bool]] = None,
652
- propagate: Optional[pulumi.Input[bool]] = None,
653
- role_id: Optional[pulumi.Input[str]] = None,
654
- user_or_group: Optional[pulumi.Input[str]] = None,
655
- opts: Optional[pulumi.ResourceOptions] = None,
656
- **kwargs):
657
- if is_group is None and 'isGroup' in kwargs:
658
- is_group = kwargs['isGroup']
659
- if is_group is None:
660
- raise TypeError("Missing 'is_group' argument")
661
- if propagate is None:
662
- raise TypeError("Missing 'propagate' argument")
663
- if role_id is None and 'roleId' in kwargs:
664
- role_id = kwargs['roleId']
665
- if role_id is None:
666
- raise TypeError("Missing 'role_id' argument")
667
- if user_or_group is None and 'userOrGroup' in kwargs:
668
- user_or_group = kwargs['userOrGroup']
669
- if user_or_group is None:
670
- raise TypeError("Missing 'user_or_group' argument")
671
-
672
- _setter("is_group", is_group)
673
- _setter("propagate", propagate)
674
- _setter("role_id", role_id)
675
- _setter("user_or_group", user_or_group)
490
+ pulumi.set(__self__, "is_group", is_group)
491
+ pulumi.set(__self__, "propagate", propagate)
492
+ pulumi.set(__self__, "role_id", role_id)
493
+ pulumi.set(__self__, "user_or_group", user_or_group)
676
494
 
677
495
  @property
678
496
  @pulumi.getter(name="isGroup")
@@ -732,29 +550,12 @@ class HostPortGroupPortArgs:
732
550
  """
733
551
  :param pulumi.Input[str] key: The key for this port group as returned from the vSphere API.
734
552
  """
735
- HostPortGroupPortArgs._configure(
736
- lambda key, value: pulumi.set(__self__, key, value),
737
- key=key,
738
- mac_addresses=mac_addresses,
739
- type=type,
740
- )
741
- @staticmethod
742
- def _configure(
743
- _setter: Callable[[Any, Any], None],
744
- key: Optional[pulumi.Input[str]] = None,
745
- mac_addresses: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
746
- type: Optional[pulumi.Input[str]] = None,
747
- opts: Optional[pulumi.ResourceOptions] = None,
748
- **kwargs):
749
- if mac_addresses is None and 'macAddresses' in kwargs:
750
- mac_addresses = kwargs['macAddresses']
751
-
752
553
  if key is not None:
753
- _setter("key", key)
554
+ pulumi.set(__self__, "key", key)
754
555
  if mac_addresses is not None:
755
- _setter("mac_addresses", mac_addresses)
556
+ pulumi.set(__self__, "mac_addresses", mac_addresses)
756
557
  if type is not None:
757
- _setter("type", type)
558
+ pulumi.set(__self__, "type", type)
758
559
 
759
560
  @property
760
561
  @pulumi.getter
@@ -805,41 +606,16 @@ class VirtualMachineCdromArgs:
805
606
 
806
607
  > **NOTE:** Some CD-ROM drive types are not supported by this resource, such as pass-through devices. If these drives are present in a cloned template, or added outside of the provider, the desired state will be corrected to the defined device, or removed if no `cdrom` block is present.
807
608
  """
808
- VirtualMachineCdromArgs._configure(
809
- lambda key, value: pulumi.set(__self__, key, value),
810
- client_device=client_device,
811
- datastore_id=datastore_id,
812
- device_address=device_address,
813
- key=key,
814
- path=path,
815
- )
816
- @staticmethod
817
- def _configure(
818
- _setter: Callable[[Any, Any], None],
819
- client_device: Optional[pulumi.Input[bool]] = None,
820
- datastore_id: Optional[pulumi.Input[str]] = None,
821
- device_address: Optional[pulumi.Input[str]] = None,
822
- key: Optional[pulumi.Input[int]] = None,
823
- path: Optional[pulumi.Input[str]] = None,
824
- opts: Optional[pulumi.ResourceOptions] = None,
825
- **kwargs):
826
- if client_device is None and 'clientDevice' in kwargs:
827
- client_device = kwargs['clientDevice']
828
- if datastore_id is None and 'datastoreId' in kwargs:
829
- datastore_id = kwargs['datastoreId']
830
- if device_address is None and 'deviceAddress' in kwargs:
831
- device_address = kwargs['deviceAddress']
832
-
833
609
  if client_device is not None:
834
- _setter("client_device", client_device)
610
+ pulumi.set(__self__, "client_device", client_device)
835
611
  if datastore_id is not None:
836
- _setter("datastore_id", datastore_id)
612
+ pulumi.set(__self__, "datastore_id", datastore_id)
837
613
  if device_address is not None:
838
- _setter("device_address", device_address)
614
+ pulumi.set(__self__, "device_address", device_address)
839
615
  if key is not None:
840
- _setter("key", key)
616
+ pulumi.set(__self__, "key", key)
841
617
  if path is not None:
842
- _setter("path", path)
618
+ pulumi.set(__self__, "path", path)
843
619
 
844
620
  @property
845
621
  @pulumi.getter(name="clientDevice")
@@ -912,48 +688,17 @@ class VirtualMachineCloneArgs:
912
688
  ovf_network_map: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
913
689
  ovf_storage_map: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
914
690
  timeout: Optional[pulumi.Input[int]] = None):
915
- VirtualMachineCloneArgs._configure(
916
- lambda key, value: pulumi.set(__self__, key, value),
917
- template_uuid=template_uuid,
918
- customize=customize,
919
- linked_clone=linked_clone,
920
- ovf_network_map=ovf_network_map,
921
- ovf_storage_map=ovf_storage_map,
922
- timeout=timeout,
923
- )
924
- @staticmethod
925
- def _configure(
926
- _setter: Callable[[Any, Any], None],
927
- template_uuid: Optional[pulumi.Input[str]] = None,
928
- customize: Optional[pulumi.Input['VirtualMachineCloneCustomizeArgs']] = None,
929
- linked_clone: Optional[pulumi.Input[bool]] = None,
930
- ovf_network_map: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
931
- ovf_storage_map: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
932
- timeout: Optional[pulumi.Input[int]] = None,
933
- opts: Optional[pulumi.ResourceOptions] = None,
934
- **kwargs):
935
- if template_uuid is None and 'templateUuid' in kwargs:
936
- template_uuid = kwargs['templateUuid']
937
- if template_uuid is None:
938
- raise TypeError("Missing 'template_uuid' argument")
939
- if linked_clone is None and 'linkedClone' in kwargs:
940
- linked_clone = kwargs['linkedClone']
941
- if ovf_network_map is None and 'ovfNetworkMap' in kwargs:
942
- ovf_network_map = kwargs['ovfNetworkMap']
943
- if ovf_storage_map is None and 'ovfStorageMap' in kwargs:
944
- ovf_storage_map = kwargs['ovfStorageMap']
945
-
946
- _setter("template_uuid", template_uuid)
691
+ pulumi.set(__self__, "template_uuid", template_uuid)
947
692
  if customize is not None:
948
- _setter("customize", customize)
693
+ pulumi.set(__self__, "customize", customize)
949
694
  if linked_clone is not None:
950
- _setter("linked_clone", linked_clone)
695
+ pulumi.set(__self__, "linked_clone", linked_clone)
951
696
  if ovf_network_map is not None:
952
- _setter("ovf_network_map", ovf_network_map)
697
+ pulumi.set(__self__, "ovf_network_map", ovf_network_map)
953
698
  if ovf_storage_map is not None:
954
- _setter("ovf_storage_map", ovf_storage_map)
699
+ pulumi.set(__self__, "ovf_storage_map", ovf_storage_map)
955
700
  if timeout is not None:
956
- _setter("timeout", timeout)
701
+ pulumi.set(__self__, "timeout", timeout)
957
702
 
958
703
  @property
959
704
  @pulumi.getter(name="templateUuid")
@@ -1025,67 +770,24 @@ class VirtualMachineCloneCustomizeArgs:
1025
770
  """
1026
771
  :param pulumi.Input[Sequence[pulumi.Input['VirtualMachineCloneCustomizeNetworkInterfaceArgs']]] network_interfaces: A specification for a virtual NIC on the virtual machine. See network interface options for more information.
1027
772
  """
1028
- VirtualMachineCloneCustomizeArgs._configure(
1029
- lambda key, value: pulumi.set(__self__, key, value),
1030
- dns_server_lists=dns_server_lists,
1031
- dns_suffix_lists=dns_suffix_lists,
1032
- ipv4_gateway=ipv4_gateway,
1033
- ipv6_gateway=ipv6_gateway,
1034
- linux_options=linux_options,
1035
- network_interfaces=network_interfaces,
1036
- timeout=timeout,
1037
- windows_options=windows_options,
1038
- windows_sysprep_text=windows_sysprep_text,
1039
- )
1040
- @staticmethod
1041
- def _configure(
1042
- _setter: Callable[[Any, Any], None],
1043
- dns_server_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
1044
- dns_suffix_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
1045
- ipv4_gateway: Optional[pulumi.Input[str]] = None,
1046
- ipv6_gateway: Optional[pulumi.Input[str]] = None,
1047
- linux_options: Optional[pulumi.Input['VirtualMachineCloneCustomizeLinuxOptionsArgs']] = None,
1048
- network_interfaces: Optional[pulumi.Input[Sequence[pulumi.Input['VirtualMachineCloneCustomizeNetworkInterfaceArgs']]]] = None,
1049
- timeout: Optional[pulumi.Input[int]] = None,
1050
- windows_options: Optional[pulumi.Input['VirtualMachineCloneCustomizeWindowsOptionsArgs']] = None,
1051
- windows_sysprep_text: Optional[pulumi.Input[str]] = None,
1052
- opts: Optional[pulumi.ResourceOptions] = None,
1053
- **kwargs):
1054
- if dns_server_lists is None and 'dnsServerLists' in kwargs:
1055
- dns_server_lists = kwargs['dnsServerLists']
1056
- if dns_suffix_lists is None and 'dnsSuffixLists' in kwargs:
1057
- dns_suffix_lists = kwargs['dnsSuffixLists']
1058
- if ipv4_gateway is None and 'ipv4Gateway' in kwargs:
1059
- ipv4_gateway = kwargs['ipv4Gateway']
1060
- if ipv6_gateway is None and 'ipv6Gateway' in kwargs:
1061
- ipv6_gateway = kwargs['ipv6Gateway']
1062
- if linux_options is None and 'linuxOptions' in kwargs:
1063
- linux_options = kwargs['linuxOptions']
1064
- if network_interfaces is None and 'networkInterfaces' in kwargs:
1065
- network_interfaces = kwargs['networkInterfaces']
1066
- if windows_options is None and 'windowsOptions' in kwargs:
1067
- windows_options = kwargs['windowsOptions']
1068
- if windows_sysprep_text is None and 'windowsSysprepText' in kwargs:
1069
- windows_sysprep_text = kwargs['windowsSysprepText']
1070
-
1071
773
  if dns_server_lists is not None:
1072
- _setter("dns_server_lists", dns_server_lists)
774
+ pulumi.set(__self__, "dns_server_lists", dns_server_lists)
1073
775
  if dns_suffix_lists is not None:
1074
- _setter("dns_suffix_lists", dns_suffix_lists)
776
+ pulumi.set(__self__, "dns_suffix_lists", dns_suffix_lists)
1075
777
  if ipv4_gateway is not None:
1076
- _setter("ipv4_gateway", ipv4_gateway)
778
+ pulumi.set(__self__, "ipv4_gateway", ipv4_gateway)
1077
779
  if ipv6_gateway is not None:
1078
- _setter("ipv6_gateway", ipv6_gateway)
780
+ pulumi.set(__self__, "ipv6_gateway", ipv6_gateway)
1079
781
  if linux_options is not None:
1080
- _setter("linux_options", linux_options)
782
+ pulumi.set(__self__, "linux_options", linux_options)
1081
783
  if network_interfaces is not None:
1082
- _setter("network_interfaces", network_interfaces)
784
+ pulumi.set(__self__, "network_interfaces", network_interfaces)
1083
785
  if timeout is not None:
1084
- _setter("timeout", timeout)
786
+ pulumi.set(__self__, "timeout", timeout)
1085
787
  if windows_options is not None:
1086
- _setter("windows_options", windows_options)
788
+ pulumi.set(__self__, "windows_options", windows_options)
1087
789
  if windows_sysprep_text is not None:
1088
- _setter("windows_sysprep_text", windows_sysprep_text)
790
+ pulumi.set(__self__, "windows_sysprep_text", windows_sysprep_text)
1089
791
 
1090
792
  @property
1091
793
  @pulumi.getter(name="dnsServerLists")
@@ -1180,45 +882,14 @@ class VirtualMachineCloneCustomizeLinuxOptionsArgs:
1180
882
  hw_clock_utc: Optional[pulumi.Input[bool]] = None,
1181
883
  script_text: Optional[pulumi.Input[str]] = None,
1182
884
  time_zone: Optional[pulumi.Input[str]] = None):
1183
- VirtualMachineCloneCustomizeLinuxOptionsArgs._configure(
1184
- lambda key, value: pulumi.set(__self__, key, value),
1185
- domain=domain,
1186
- host_name=host_name,
1187
- hw_clock_utc=hw_clock_utc,
1188
- script_text=script_text,
1189
- time_zone=time_zone,
1190
- )
1191
- @staticmethod
1192
- def _configure(
1193
- _setter: Callable[[Any, Any], None],
1194
- domain: Optional[pulumi.Input[str]] = None,
1195
- host_name: Optional[pulumi.Input[str]] = None,
1196
- hw_clock_utc: Optional[pulumi.Input[bool]] = None,
1197
- script_text: Optional[pulumi.Input[str]] = None,
1198
- time_zone: Optional[pulumi.Input[str]] = None,
1199
- opts: Optional[pulumi.ResourceOptions] = None,
1200
- **kwargs):
1201
- if domain is None:
1202
- raise TypeError("Missing 'domain' argument")
1203
- if host_name is None and 'hostName' in kwargs:
1204
- host_name = kwargs['hostName']
1205
- if host_name is None:
1206
- raise TypeError("Missing 'host_name' argument")
1207
- if hw_clock_utc is None and 'hwClockUtc' in kwargs:
1208
- hw_clock_utc = kwargs['hwClockUtc']
1209
- if script_text is None and 'scriptText' in kwargs:
1210
- script_text = kwargs['scriptText']
1211
- if time_zone is None and 'timeZone' in kwargs:
1212
- time_zone = kwargs['timeZone']
1213
-
1214
- _setter("domain", domain)
1215
- _setter("host_name", host_name)
885
+ pulumi.set(__self__, "domain", domain)
886
+ pulumi.set(__self__, "host_name", host_name)
1216
887
  if hw_clock_utc is not None:
1217
- _setter("hw_clock_utc", hw_clock_utc)
888
+ pulumi.set(__self__, "hw_clock_utc", hw_clock_utc)
1218
889
  if script_text is not None:
1219
- _setter("script_text", script_text)
890
+ pulumi.set(__self__, "script_text", script_text)
1220
891
  if time_zone is not None:
1221
- _setter("time_zone", time_zone)
892
+ pulumi.set(__self__, "time_zone", time_zone)
1222
893
 
1223
894
  @property
1224
895
  @pulumi.getter
@@ -1275,51 +946,18 @@ class VirtualMachineCloneCustomizeNetworkInterfaceArgs:
1275
946
  ipv4_netmask: Optional[pulumi.Input[int]] = None,
1276
947
  ipv6_address: Optional[pulumi.Input[str]] = None,
1277
948
  ipv6_netmask: Optional[pulumi.Input[int]] = None):
1278
- VirtualMachineCloneCustomizeNetworkInterfaceArgs._configure(
1279
- lambda key, value: pulumi.set(__self__, key, value),
1280
- dns_domain=dns_domain,
1281
- dns_server_lists=dns_server_lists,
1282
- ipv4_address=ipv4_address,
1283
- ipv4_netmask=ipv4_netmask,
1284
- ipv6_address=ipv6_address,
1285
- ipv6_netmask=ipv6_netmask,
1286
- )
1287
- @staticmethod
1288
- def _configure(
1289
- _setter: Callable[[Any, Any], None],
1290
- dns_domain: Optional[pulumi.Input[str]] = None,
1291
- dns_server_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
1292
- ipv4_address: Optional[pulumi.Input[str]] = None,
1293
- ipv4_netmask: Optional[pulumi.Input[int]] = None,
1294
- ipv6_address: Optional[pulumi.Input[str]] = None,
1295
- ipv6_netmask: Optional[pulumi.Input[int]] = None,
1296
- opts: Optional[pulumi.ResourceOptions] = None,
1297
- **kwargs):
1298
- if dns_domain is None and 'dnsDomain' in kwargs:
1299
- dns_domain = kwargs['dnsDomain']
1300
- if dns_server_lists is None and 'dnsServerLists' in kwargs:
1301
- dns_server_lists = kwargs['dnsServerLists']
1302
- if ipv4_address is None and 'ipv4Address' in kwargs:
1303
- ipv4_address = kwargs['ipv4Address']
1304
- if ipv4_netmask is None and 'ipv4Netmask' in kwargs:
1305
- ipv4_netmask = kwargs['ipv4Netmask']
1306
- if ipv6_address is None and 'ipv6Address' in kwargs:
1307
- ipv6_address = kwargs['ipv6Address']
1308
- if ipv6_netmask is None and 'ipv6Netmask' in kwargs:
1309
- ipv6_netmask = kwargs['ipv6Netmask']
1310
-
1311
949
  if dns_domain is not None:
1312
- _setter("dns_domain", dns_domain)
950
+ pulumi.set(__self__, "dns_domain", dns_domain)
1313
951
  if dns_server_lists is not None:
1314
- _setter("dns_server_lists", dns_server_lists)
952
+ pulumi.set(__self__, "dns_server_lists", dns_server_lists)
1315
953
  if ipv4_address is not None:
1316
- _setter("ipv4_address", ipv4_address)
954
+ pulumi.set(__self__, "ipv4_address", ipv4_address)
1317
955
  if ipv4_netmask is not None:
1318
- _setter("ipv4_netmask", ipv4_netmask)
956
+ pulumi.set(__self__, "ipv4_netmask", ipv4_netmask)
1319
957
  if ipv6_address is not None:
1320
- _setter("ipv6_address", ipv6_address)
958
+ pulumi.set(__self__, "ipv6_address", ipv6_address)
1321
959
  if ipv6_netmask is not None:
1322
- _setter("ipv6_netmask", ipv6_netmask)
960
+ pulumi.set(__self__, "ipv6_netmask", ipv6_netmask)
1323
961
 
1324
962
  @property
1325
963
  @pulumi.getter(name="dnsDomain")
@@ -1392,92 +1030,31 @@ class VirtualMachineCloneCustomizeWindowsOptionsArgs:
1392
1030
  run_once_command_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
1393
1031
  time_zone: Optional[pulumi.Input[int]] = None,
1394
1032
  workgroup: Optional[pulumi.Input[str]] = None):
1395
- VirtualMachineCloneCustomizeWindowsOptionsArgs._configure(
1396
- lambda key, value: pulumi.set(__self__, key, value),
1397
- computer_name=computer_name,
1398
- admin_password=admin_password,
1399
- auto_logon=auto_logon,
1400
- auto_logon_count=auto_logon_count,
1401
- domain_admin_password=domain_admin_password,
1402
- domain_admin_user=domain_admin_user,
1403
- full_name=full_name,
1404
- join_domain=join_domain,
1405
- organization_name=organization_name,
1406
- product_key=product_key,
1407
- run_once_command_lists=run_once_command_lists,
1408
- time_zone=time_zone,
1409
- workgroup=workgroup,
1410
- )
1411
- @staticmethod
1412
- def _configure(
1413
- _setter: Callable[[Any, Any], None],
1414
- computer_name: Optional[pulumi.Input[str]] = None,
1415
- admin_password: Optional[pulumi.Input[str]] = None,
1416
- auto_logon: Optional[pulumi.Input[bool]] = None,
1417
- auto_logon_count: Optional[pulumi.Input[int]] = None,
1418
- domain_admin_password: Optional[pulumi.Input[str]] = None,
1419
- domain_admin_user: Optional[pulumi.Input[str]] = None,
1420
- full_name: Optional[pulumi.Input[str]] = None,
1421
- join_domain: Optional[pulumi.Input[str]] = None,
1422
- organization_name: Optional[pulumi.Input[str]] = None,
1423
- product_key: Optional[pulumi.Input[str]] = None,
1424
- run_once_command_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
1425
- time_zone: Optional[pulumi.Input[int]] = None,
1426
- workgroup: Optional[pulumi.Input[str]] = None,
1427
- opts: Optional[pulumi.ResourceOptions] = None,
1428
- **kwargs):
1429
- if computer_name is None and 'computerName' in kwargs:
1430
- computer_name = kwargs['computerName']
1431
- if computer_name is None:
1432
- raise TypeError("Missing 'computer_name' argument")
1433
- if admin_password is None and 'adminPassword' in kwargs:
1434
- admin_password = kwargs['adminPassword']
1435
- if auto_logon is None and 'autoLogon' in kwargs:
1436
- auto_logon = kwargs['autoLogon']
1437
- if auto_logon_count is None and 'autoLogonCount' in kwargs:
1438
- auto_logon_count = kwargs['autoLogonCount']
1439
- if domain_admin_password is None and 'domainAdminPassword' in kwargs:
1440
- domain_admin_password = kwargs['domainAdminPassword']
1441
- if domain_admin_user is None and 'domainAdminUser' in kwargs:
1442
- domain_admin_user = kwargs['domainAdminUser']
1443
- if full_name is None and 'fullName' in kwargs:
1444
- full_name = kwargs['fullName']
1445
- if join_domain is None and 'joinDomain' in kwargs:
1446
- join_domain = kwargs['joinDomain']
1447
- if organization_name is None and 'organizationName' in kwargs:
1448
- organization_name = kwargs['organizationName']
1449
- if product_key is None and 'productKey' in kwargs:
1450
- product_key = kwargs['productKey']
1451
- if run_once_command_lists is None and 'runOnceCommandLists' in kwargs:
1452
- run_once_command_lists = kwargs['runOnceCommandLists']
1453
- if time_zone is None and 'timeZone' in kwargs:
1454
- time_zone = kwargs['timeZone']
1455
-
1456
- _setter("computer_name", computer_name)
1033
+ pulumi.set(__self__, "computer_name", computer_name)
1457
1034
  if admin_password is not None:
1458
- _setter("admin_password", admin_password)
1035
+ pulumi.set(__self__, "admin_password", admin_password)
1459
1036
  if auto_logon is not None:
1460
- _setter("auto_logon", auto_logon)
1037
+ pulumi.set(__self__, "auto_logon", auto_logon)
1461
1038
  if auto_logon_count is not None:
1462
- _setter("auto_logon_count", auto_logon_count)
1039
+ pulumi.set(__self__, "auto_logon_count", auto_logon_count)
1463
1040
  if domain_admin_password is not None:
1464
- _setter("domain_admin_password", domain_admin_password)
1041
+ pulumi.set(__self__, "domain_admin_password", domain_admin_password)
1465
1042
  if domain_admin_user is not None:
1466
- _setter("domain_admin_user", domain_admin_user)
1043
+ pulumi.set(__self__, "domain_admin_user", domain_admin_user)
1467
1044
  if full_name is not None:
1468
- _setter("full_name", full_name)
1045
+ pulumi.set(__self__, "full_name", full_name)
1469
1046
  if join_domain is not None:
1470
- _setter("join_domain", join_domain)
1047
+ pulumi.set(__self__, "join_domain", join_domain)
1471
1048
  if organization_name is not None:
1472
- _setter("organization_name", organization_name)
1049
+ pulumi.set(__self__, "organization_name", organization_name)
1473
1050
  if product_key is not None:
1474
- _setter("product_key", product_key)
1051
+ pulumi.set(__self__, "product_key", product_key)
1475
1052
  if run_once_command_lists is not None:
1476
- _setter("run_once_command_lists", run_once_command_lists)
1053
+ pulumi.set(__self__, "run_once_command_lists", run_once_command_lists)
1477
1054
  if time_zone is not None:
1478
- _setter("time_zone", time_zone)
1055
+ pulumi.set(__self__, "time_zone", time_zone)
1479
1056
  if workgroup is not None:
1480
- _setter("workgroup", workgroup)
1057
+ pulumi.set(__self__, "workgroup", workgroup)
1481
1058
 
1482
1059
  @property
1483
1060
  @pulumi.getter(name="computerName")
@@ -1652,130 +1229,47 @@ class VirtualMachineDiskArgs:
1652
1229
  :param pulumi.Input[str] uuid: The UUID of the virtual disk VMDK file. This is used to track the virtual disk on the virtual machine.
1653
1230
  :param pulumi.Input[bool] write_through: If `true`, writes for this disk are sent directly to the filesystem immediately instead of being buffered. Default: `false`.
1654
1231
  """
1655
- VirtualMachineDiskArgs._configure(
1656
- lambda key, value: pulumi.set(__self__, key, value),
1657
- label=label,
1658
- attach=attach,
1659
- controller_type=controller_type,
1660
- datastore_id=datastore_id,
1661
- device_address=device_address,
1662
- disk_mode=disk_mode,
1663
- disk_sharing=disk_sharing,
1664
- eagerly_scrub=eagerly_scrub,
1665
- io_limit=io_limit,
1666
- io_reservation=io_reservation,
1667
- io_share_count=io_share_count,
1668
- io_share_level=io_share_level,
1669
- keep_on_remove=keep_on_remove,
1670
- key=key,
1671
- path=path,
1672
- size=size,
1673
- storage_policy_id=storage_policy_id,
1674
- thin_provisioned=thin_provisioned,
1675
- unit_number=unit_number,
1676
- uuid=uuid,
1677
- write_through=write_through,
1678
- )
1679
- @staticmethod
1680
- def _configure(
1681
- _setter: Callable[[Any, Any], None],
1682
- label: Optional[pulumi.Input[str]] = None,
1683
- attach: Optional[pulumi.Input[bool]] = None,
1684
- controller_type: Optional[pulumi.Input[str]] = None,
1685
- datastore_id: Optional[pulumi.Input[str]] = None,
1686
- device_address: Optional[pulumi.Input[str]] = None,
1687
- disk_mode: Optional[pulumi.Input[str]] = None,
1688
- disk_sharing: Optional[pulumi.Input[str]] = None,
1689
- eagerly_scrub: Optional[pulumi.Input[bool]] = None,
1690
- io_limit: Optional[pulumi.Input[int]] = None,
1691
- io_reservation: Optional[pulumi.Input[int]] = None,
1692
- io_share_count: Optional[pulumi.Input[int]] = None,
1693
- io_share_level: Optional[pulumi.Input[str]] = None,
1694
- keep_on_remove: Optional[pulumi.Input[bool]] = None,
1695
- key: Optional[pulumi.Input[int]] = None,
1696
- path: Optional[pulumi.Input[str]] = None,
1697
- size: Optional[pulumi.Input[int]] = None,
1698
- storage_policy_id: Optional[pulumi.Input[str]] = None,
1699
- thin_provisioned: Optional[pulumi.Input[bool]] = None,
1700
- unit_number: Optional[pulumi.Input[int]] = None,
1701
- uuid: Optional[pulumi.Input[str]] = None,
1702
- write_through: Optional[pulumi.Input[bool]] = None,
1703
- opts: Optional[pulumi.ResourceOptions] = None,
1704
- **kwargs):
1705
- if label is None:
1706
- raise TypeError("Missing 'label' argument")
1707
- if controller_type is None and 'controllerType' in kwargs:
1708
- controller_type = kwargs['controllerType']
1709
- if datastore_id is None and 'datastoreId' in kwargs:
1710
- datastore_id = kwargs['datastoreId']
1711
- if device_address is None and 'deviceAddress' in kwargs:
1712
- device_address = kwargs['deviceAddress']
1713
- if disk_mode is None and 'diskMode' in kwargs:
1714
- disk_mode = kwargs['diskMode']
1715
- if disk_sharing is None and 'diskSharing' in kwargs:
1716
- disk_sharing = kwargs['diskSharing']
1717
- if eagerly_scrub is None and 'eagerlyScrub' in kwargs:
1718
- eagerly_scrub = kwargs['eagerlyScrub']
1719
- if io_limit is None and 'ioLimit' in kwargs:
1720
- io_limit = kwargs['ioLimit']
1721
- if io_reservation is None and 'ioReservation' in kwargs:
1722
- io_reservation = kwargs['ioReservation']
1723
- if io_share_count is None and 'ioShareCount' in kwargs:
1724
- io_share_count = kwargs['ioShareCount']
1725
- if io_share_level is None and 'ioShareLevel' in kwargs:
1726
- io_share_level = kwargs['ioShareLevel']
1727
- if keep_on_remove is None and 'keepOnRemove' in kwargs:
1728
- keep_on_remove = kwargs['keepOnRemove']
1729
- if storage_policy_id is None and 'storagePolicyId' in kwargs:
1730
- storage_policy_id = kwargs['storagePolicyId']
1731
- if thin_provisioned is None and 'thinProvisioned' in kwargs:
1732
- thin_provisioned = kwargs['thinProvisioned']
1733
- if unit_number is None and 'unitNumber' in kwargs:
1734
- unit_number = kwargs['unitNumber']
1735
- if write_through is None and 'writeThrough' in kwargs:
1736
- write_through = kwargs['writeThrough']
1737
-
1738
- _setter("label", label)
1232
+ pulumi.set(__self__, "label", label)
1739
1233
  if attach is not None:
1740
- _setter("attach", attach)
1234
+ pulumi.set(__self__, "attach", attach)
1741
1235
  if controller_type is not None:
1742
- _setter("controller_type", controller_type)
1236
+ pulumi.set(__self__, "controller_type", controller_type)
1743
1237
  if datastore_id is not None:
1744
- _setter("datastore_id", datastore_id)
1238
+ pulumi.set(__self__, "datastore_id", datastore_id)
1745
1239
  if device_address is not None:
1746
- _setter("device_address", device_address)
1240
+ pulumi.set(__self__, "device_address", device_address)
1747
1241
  if disk_mode is not None:
1748
- _setter("disk_mode", disk_mode)
1242
+ pulumi.set(__self__, "disk_mode", disk_mode)
1749
1243
  if disk_sharing is not None:
1750
- _setter("disk_sharing", disk_sharing)
1244
+ pulumi.set(__self__, "disk_sharing", disk_sharing)
1751
1245
  if eagerly_scrub is not None:
1752
- _setter("eagerly_scrub", eagerly_scrub)
1246
+ pulumi.set(__self__, "eagerly_scrub", eagerly_scrub)
1753
1247
  if io_limit is not None:
1754
- _setter("io_limit", io_limit)
1248
+ pulumi.set(__self__, "io_limit", io_limit)
1755
1249
  if io_reservation is not None:
1756
- _setter("io_reservation", io_reservation)
1250
+ pulumi.set(__self__, "io_reservation", io_reservation)
1757
1251
  if io_share_count is not None:
1758
- _setter("io_share_count", io_share_count)
1252
+ pulumi.set(__self__, "io_share_count", io_share_count)
1759
1253
  if io_share_level is not None:
1760
- _setter("io_share_level", io_share_level)
1254
+ pulumi.set(__self__, "io_share_level", io_share_level)
1761
1255
  if keep_on_remove is not None:
1762
- _setter("keep_on_remove", keep_on_remove)
1256
+ pulumi.set(__self__, "keep_on_remove", keep_on_remove)
1763
1257
  if key is not None:
1764
- _setter("key", key)
1258
+ pulumi.set(__self__, "key", key)
1765
1259
  if path is not None:
1766
- _setter("path", path)
1260
+ pulumi.set(__self__, "path", path)
1767
1261
  if size is not None:
1768
- _setter("size", size)
1262
+ pulumi.set(__self__, "size", size)
1769
1263
  if storage_policy_id is not None:
1770
- _setter("storage_policy_id", storage_policy_id)
1264
+ pulumi.set(__self__, "storage_policy_id", storage_policy_id)
1771
1265
  if thin_provisioned is not None:
1772
- _setter("thin_provisioned", thin_provisioned)
1266
+ pulumi.set(__self__, "thin_provisioned", thin_provisioned)
1773
1267
  if unit_number is not None:
1774
- _setter("unit_number", unit_number)
1268
+ pulumi.set(__self__, "unit_number", unit_number)
1775
1269
  if uuid is not None:
1776
- _setter("uuid", uuid)
1270
+ pulumi.set(__self__, "uuid", uuid)
1777
1271
  if write_through is not None:
1778
- _setter("write_through", write_through)
1272
+ pulumi.set(__self__, "write_through", write_through)
1779
1273
 
1780
1274
  @property
1781
1275
  @pulumi.getter
@@ -2060,80 +1554,27 @@ class VirtualMachineNetworkInterfaceArgs:
2060
1554
  :param pulumi.Input[str] ovf_mapping: Specifies which NIC in an OVF/OVA the `network_interface` should be associated. Only applies at creation when deploying from an OVF/OVA.
2061
1555
  :param pulumi.Input[bool] use_static_mac: If true, the `mac_address` field is treated as a static MAC address and set accordingly. Setting this to `true` requires `mac_address` to be set. Default: `false`.
2062
1556
  """
2063
- VirtualMachineNetworkInterfaceArgs._configure(
2064
- lambda key, value: pulumi.set(__self__, key, value),
2065
- network_id=network_id,
2066
- adapter_type=adapter_type,
2067
- bandwidth_limit=bandwidth_limit,
2068
- bandwidth_reservation=bandwidth_reservation,
2069
- bandwidth_share_count=bandwidth_share_count,
2070
- bandwidth_share_level=bandwidth_share_level,
2071
- device_address=device_address,
2072
- key=key,
2073
- mac_address=mac_address,
2074
- ovf_mapping=ovf_mapping,
2075
- use_static_mac=use_static_mac,
2076
- )
2077
- @staticmethod
2078
- def _configure(
2079
- _setter: Callable[[Any, Any], None],
2080
- network_id: Optional[pulumi.Input[str]] = None,
2081
- adapter_type: Optional[pulumi.Input[str]] = None,
2082
- bandwidth_limit: Optional[pulumi.Input[int]] = None,
2083
- bandwidth_reservation: Optional[pulumi.Input[int]] = None,
2084
- bandwidth_share_count: Optional[pulumi.Input[int]] = None,
2085
- bandwidth_share_level: Optional[pulumi.Input[str]] = None,
2086
- device_address: Optional[pulumi.Input[str]] = None,
2087
- key: Optional[pulumi.Input[int]] = None,
2088
- mac_address: Optional[pulumi.Input[str]] = None,
2089
- ovf_mapping: Optional[pulumi.Input[str]] = None,
2090
- use_static_mac: Optional[pulumi.Input[bool]] = None,
2091
- opts: Optional[pulumi.ResourceOptions] = None,
2092
- **kwargs):
2093
- if network_id is None and 'networkId' in kwargs:
2094
- network_id = kwargs['networkId']
2095
- if network_id is None:
2096
- raise TypeError("Missing 'network_id' argument")
2097
- if adapter_type is None and 'adapterType' in kwargs:
2098
- adapter_type = kwargs['adapterType']
2099
- if bandwidth_limit is None and 'bandwidthLimit' in kwargs:
2100
- bandwidth_limit = kwargs['bandwidthLimit']
2101
- if bandwidth_reservation is None and 'bandwidthReservation' in kwargs:
2102
- bandwidth_reservation = kwargs['bandwidthReservation']
2103
- if bandwidth_share_count is None and 'bandwidthShareCount' in kwargs:
2104
- bandwidth_share_count = kwargs['bandwidthShareCount']
2105
- if bandwidth_share_level is None and 'bandwidthShareLevel' in kwargs:
2106
- bandwidth_share_level = kwargs['bandwidthShareLevel']
2107
- if device_address is None and 'deviceAddress' in kwargs:
2108
- device_address = kwargs['deviceAddress']
2109
- if mac_address is None and 'macAddress' in kwargs:
2110
- mac_address = kwargs['macAddress']
2111
- if ovf_mapping is None and 'ovfMapping' in kwargs:
2112
- ovf_mapping = kwargs['ovfMapping']
2113
- if use_static_mac is None and 'useStaticMac' in kwargs:
2114
- use_static_mac = kwargs['useStaticMac']
2115
-
2116
- _setter("network_id", network_id)
1557
+ pulumi.set(__self__, "network_id", network_id)
2117
1558
  if adapter_type is not None:
2118
- _setter("adapter_type", adapter_type)
1559
+ pulumi.set(__self__, "adapter_type", adapter_type)
2119
1560
  if bandwidth_limit is not None:
2120
- _setter("bandwidth_limit", bandwidth_limit)
1561
+ pulumi.set(__self__, "bandwidth_limit", bandwidth_limit)
2121
1562
  if bandwidth_reservation is not None:
2122
- _setter("bandwidth_reservation", bandwidth_reservation)
1563
+ pulumi.set(__self__, "bandwidth_reservation", bandwidth_reservation)
2123
1564
  if bandwidth_share_count is not None:
2124
- _setter("bandwidth_share_count", bandwidth_share_count)
1565
+ pulumi.set(__self__, "bandwidth_share_count", bandwidth_share_count)
2125
1566
  if bandwidth_share_level is not None:
2126
- _setter("bandwidth_share_level", bandwidth_share_level)
1567
+ pulumi.set(__self__, "bandwidth_share_level", bandwidth_share_level)
2127
1568
  if device_address is not None:
2128
- _setter("device_address", device_address)
1569
+ pulumi.set(__self__, "device_address", device_address)
2129
1570
  if key is not None:
2130
- _setter("key", key)
1571
+ pulumi.set(__self__, "key", key)
2131
1572
  if mac_address is not None:
2132
- _setter("mac_address", mac_address)
1573
+ pulumi.set(__self__, "mac_address", mac_address)
2133
1574
  if ovf_mapping is not None:
2134
- _setter("ovf_mapping", ovf_mapping)
1575
+ pulumi.set(__self__, "ovf_mapping", ovf_mapping)
2135
1576
  if use_static_mac is not None:
2136
- _setter("use_static_mac", use_static_mac)
1577
+ pulumi.set(__self__, "use_static_mac", use_static_mac)
2137
1578
 
2138
1579
  @property
2139
1580
  @pulumi.getter(name="networkId")
@@ -2277,69 +1718,24 @@ class VirtualMachineOvfDeployArgs:
2277
1718
  local_ovf_path: Optional[pulumi.Input[str]] = None,
2278
1719
  ovf_network_map: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
2279
1720
  remote_ovf_url: Optional[pulumi.Input[str]] = None):
2280
- VirtualMachineOvfDeployArgs._configure(
2281
- lambda key, value: pulumi.set(__self__, key, value),
2282
- allow_unverified_ssl_cert=allow_unverified_ssl_cert,
2283
- deployment_option=deployment_option,
2284
- disk_provisioning=disk_provisioning,
2285
- enable_hidden_properties=enable_hidden_properties,
2286
- ip_allocation_policy=ip_allocation_policy,
2287
- ip_protocol=ip_protocol,
2288
- local_ovf_path=local_ovf_path,
2289
- ovf_network_map=ovf_network_map,
2290
- remote_ovf_url=remote_ovf_url,
2291
- )
2292
- @staticmethod
2293
- def _configure(
2294
- _setter: Callable[[Any, Any], None],
2295
- allow_unverified_ssl_cert: Optional[pulumi.Input[bool]] = None,
2296
- deployment_option: Optional[pulumi.Input[str]] = None,
2297
- disk_provisioning: Optional[pulumi.Input[str]] = None,
2298
- enable_hidden_properties: Optional[pulumi.Input[bool]] = None,
2299
- ip_allocation_policy: Optional[pulumi.Input[str]] = None,
2300
- ip_protocol: Optional[pulumi.Input[str]] = None,
2301
- local_ovf_path: Optional[pulumi.Input[str]] = None,
2302
- ovf_network_map: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
2303
- remote_ovf_url: Optional[pulumi.Input[str]] = None,
2304
- opts: Optional[pulumi.ResourceOptions] = None,
2305
- **kwargs):
2306
- if allow_unverified_ssl_cert is None and 'allowUnverifiedSslCert' in kwargs:
2307
- allow_unverified_ssl_cert = kwargs['allowUnverifiedSslCert']
2308
- if deployment_option is None and 'deploymentOption' in kwargs:
2309
- deployment_option = kwargs['deploymentOption']
2310
- if disk_provisioning is None and 'diskProvisioning' in kwargs:
2311
- disk_provisioning = kwargs['diskProvisioning']
2312
- if enable_hidden_properties is None and 'enableHiddenProperties' in kwargs:
2313
- enable_hidden_properties = kwargs['enableHiddenProperties']
2314
- if ip_allocation_policy is None and 'ipAllocationPolicy' in kwargs:
2315
- ip_allocation_policy = kwargs['ipAllocationPolicy']
2316
- if ip_protocol is None and 'ipProtocol' in kwargs:
2317
- ip_protocol = kwargs['ipProtocol']
2318
- if local_ovf_path is None and 'localOvfPath' in kwargs:
2319
- local_ovf_path = kwargs['localOvfPath']
2320
- if ovf_network_map is None and 'ovfNetworkMap' in kwargs:
2321
- ovf_network_map = kwargs['ovfNetworkMap']
2322
- if remote_ovf_url is None and 'remoteOvfUrl' in kwargs:
2323
- remote_ovf_url = kwargs['remoteOvfUrl']
2324
-
2325
1721
  if allow_unverified_ssl_cert is not None:
2326
- _setter("allow_unverified_ssl_cert", allow_unverified_ssl_cert)
1722
+ pulumi.set(__self__, "allow_unverified_ssl_cert", allow_unverified_ssl_cert)
2327
1723
  if deployment_option is not None:
2328
- _setter("deployment_option", deployment_option)
1724
+ pulumi.set(__self__, "deployment_option", deployment_option)
2329
1725
  if disk_provisioning is not None:
2330
- _setter("disk_provisioning", disk_provisioning)
1726
+ pulumi.set(__self__, "disk_provisioning", disk_provisioning)
2331
1727
  if enable_hidden_properties is not None:
2332
- _setter("enable_hidden_properties", enable_hidden_properties)
1728
+ pulumi.set(__self__, "enable_hidden_properties", enable_hidden_properties)
2333
1729
  if ip_allocation_policy is not None:
2334
- _setter("ip_allocation_policy", ip_allocation_policy)
1730
+ pulumi.set(__self__, "ip_allocation_policy", ip_allocation_policy)
2335
1731
  if ip_protocol is not None:
2336
- _setter("ip_protocol", ip_protocol)
1732
+ pulumi.set(__self__, "ip_protocol", ip_protocol)
2337
1733
  if local_ovf_path is not None:
2338
- _setter("local_ovf_path", local_ovf_path)
1734
+ pulumi.set(__self__, "local_ovf_path", local_ovf_path)
2339
1735
  if ovf_network_map is not None:
2340
- _setter("ovf_network_map", ovf_network_map)
1736
+ pulumi.set(__self__, "ovf_network_map", ovf_network_map)
2341
1737
  if remote_ovf_url is not None:
2342
- _setter("remote_ovf_url", remote_ovf_url)
1738
+ pulumi.set(__self__, "remote_ovf_url", remote_ovf_url)
2343
1739
 
2344
1740
  @property
2345
1741
  @pulumi.getter(name="allowUnverifiedSslCert")
@@ -2427,19 +1823,8 @@ class VirtualMachineOvfDeployArgs:
2427
1823
  class VirtualMachineVappArgs:
2428
1824
  def __init__(__self__, *,
2429
1825
  properties: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None):
2430
- VirtualMachineVappArgs._configure(
2431
- lambda key, value: pulumi.set(__self__, key, value),
2432
- properties=properties,
2433
- )
2434
- @staticmethod
2435
- def _configure(
2436
- _setter: Callable[[Any, Any], None],
2437
- properties: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
2438
- opts: Optional[pulumi.ResourceOptions] = None,
2439
- **kwargs):
2440
-
2441
1826
  if properties is not None:
2442
- _setter("properties", properties)
1827
+ pulumi.set(__self__, "properties", properties)
2443
1828
 
2444
1829
  @property
2445
1830
  @pulumi.getter
@@ -2462,33 +1847,10 @@ class VmStoragePolicyTagRuleArgs:
2462
1847
  :param pulumi.Input[Sequence[pulumi.Input[str]]] tags: List of Name of tags to select from the given category.
2463
1848
  :param pulumi.Input[bool] include_datastores_with_tags: Include datastores with the given tags or exclude. Default `true`.
2464
1849
  """
2465
- VmStoragePolicyTagRuleArgs._configure(
2466
- lambda key, value: pulumi.set(__self__, key, value),
2467
- tag_category=tag_category,
2468
- tags=tags,
2469
- include_datastores_with_tags=include_datastores_with_tags,
2470
- )
2471
- @staticmethod
2472
- def _configure(
2473
- _setter: Callable[[Any, Any], None],
2474
- tag_category: Optional[pulumi.Input[str]] = None,
2475
- tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
2476
- include_datastores_with_tags: Optional[pulumi.Input[bool]] = None,
2477
- opts: Optional[pulumi.ResourceOptions] = None,
2478
- **kwargs):
2479
- if tag_category is None and 'tagCategory' in kwargs:
2480
- tag_category = kwargs['tagCategory']
2481
- if tag_category is None:
2482
- raise TypeError("Missing 'tag_category' argument")
2483
- if tags is None:
2484
- raise TypeError("Missing 'tags' argument")
2485
- if include_datastores_with_tags is None and 'includeDatastoresWithTags' in kwargs:
2486
- include_datastores_with_tags = kwargs['includeDatastoresWithTags']
2487
-
2488
- _setter("tag_category", tag_category)
2489
- _setter("tags", tags)
1850
+ pulumi.set(__self__, "tag_category", tag_category)
1851
+ pulumi.set(__self__, "tags", tags)
2490
1852
  if include_datastores_with_tags is not None:
2491
- _setter("include_datastores_with_tags", include_datastores_with_tags)
1853
+ pulumi.set(__self__, "include_datastores_with_tags", include_datastores_with_tags)
2492
1854
 
2493
1855
  @property
2494
1856
  @pulumi.getter(name="tagCategory")
@@ -2540,31 +1902,14 @@ class VnicIpv4Args:
2540
1902
  :param pulumi.Input[str] ip: Address of the interface, if DHCP is not set.
2541
1903
  :param pulumi.Input[str] netmask: Netmask of the interface, if DHCP is not set.
2542
1904
  """
2543
- VnicIpv4Args._configure(
2544
- lambda key, value: pulumi.set(__self__, key, value),
2545
- dhcp=dhcp,
2546
- gw=gw,
2547
- ip=ip,
2548
- netmask=netmask,
2549
- )
2550
- @staticmethod
2551
- def _configure(
2552
- _setter: Callable[[Any, Any], None],
2553
- dhcp: Optional[pulumi.Input[bool]] = None,
2554
- gw: Optional[pulumi.Input[str]] = None,
2555
- ip: Optional[pulumi.Input[str]] = None,
2556
- netmask: Optional[pulumi.Input[str]] = None,
2557
- opts: Optional[pulumi.ResourceOptions] = None,
2558
- **kwargs):
2559
-
2560
1905
  if dhcp is not None:
2561
- _setter("dhcp", dhcp)
1906
+ pulumi.set(__self__, "dhcp", dhcp)
2562
1907
  if gw is not None:
2563
- _setter("gw", gw)
1908
+ pulumi.set(__self__, "gw", gw)
2564
1909
  if ip is not None:
2565
- _setter("ip", ip)
1910
+ pulumi.set(__self__, "ip", ip)
2566
1911
  if netmask is not None:
2567
- _setter("netmask", netmask)
1912
+ pulumi.set(__self__, "netmask", netmask)
2568
1913
 
2569
1914
  @property
2570
1915
  @pulumi.getter
@@ -2628,31 +1973,14 @@ class VnicIpv6Args:
2628
1973
  :param pulumi.Input[bool] dhcp: Use DHCP to configure the interface's IPv6 stack.
2629
1974
  :param pulumi.Input[str] gw: IP address of the default gateway, if DHCP or autoconfig is not set.
2630
1975
  """
2631
- VnicIpv6Args._configure(
2632
- lambda key, value: pulumi.set(__self__, key, value),
2633
- addresses=addresses,
2634
- autoconfig=autoconfig,
2635
- dhcp=dhcp,
2636
- gw=gw,
2637
- )
2638
- @staticmethod
2639
- def _configure(
2640
- _setter: Callable[[Any, Any], None],
2641
- addresses: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
2642
- autoconfig: Optional[pulumi.Input[bool]] = None,
2643
- dhcp: Optional[pulumi.Input[bool]] = None,
2644
- gw: Optional[pulumi.Input[str]] = None,
2645
- opts: Optional[pulumi.ResourceOptions] = None,
2646
- **kwargs):
2647
-
2648
1976
  if addresses is not None:
2649
- _setter("addresses", addresses)
1977
+ pulumi.set(__self__, "addresses", addresses)
2650
1978
  if autoconfig is not None:
2651
- _setter("autoconfig", autoconfig)
1979
+ pulumi.set(__self__, "autoconfig", autoconfig)
2652
1980
  if dhcp is not None:
2653
- _setter("dhcp", dhcp)
1981
+ pulumi.set(__self__, "dhcp", dhcp)
2654
1982
  if gw is not None:
2655
- _setter("gw", gw)
1983
+ pulumi.set(__self__, "gw", gw)
2656
1984
 
2657
1985
  @property
2658
1986
  @pulumi.getter
@@ -2707,19 +2035,8 @@ class VnicIpv6Args:
2707
2035
  class GetVirtualMachineVappArgs:
2708
2036
  def __init__(__self__, *,
2709
2037
  properties: Optional[Mapping[str, str]] = None):
2710
- GetVirtualMachineVappArgs._configure(
2711
- lambda key, value: pulumi.set(__self__, key, value),
2712
- properties=properties,
2713
- )
2714
- @staticmethod
2715
- def _configure(
2716
- _setter: Callable[[Any, Any], None],
2717
- properties: Optional[Mapping[str, str]] = None,
2718
- opts: Optional[pulumi.ResourceOptions] = None,
2719
- **kwargs):
2720
-
2721
2038
  if properties is not None:
2722
- _setter("properties", properties)
2039
+ pulumi.set(__self__, "properties", properties)
2723
2040
 
2724
2041
  @property
2725
2042
  @pulumi.getter