pulumi-vsphere 4.11.0__py3-none-any.whl → 4.11.0a1__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 (48) hide show
  1. pulumi_vsphere/_inputs.py +6 -92
  2. pulumi_vsphere/_utilities.py +4 -40
  3. pulumi_vsphere/compute_cluster.py +20 -20
  4. pulumi_vsphere/compute_cluster_vm_affinity_rule.py +18 -14
  5. pulumi_vsphere/content_library.py +10 -10
  6. pulumi_vsphere/datacenter.py +28 -7
  7. pulumi_vsphere/datastore_cluster.py +14 -0
  8. pulumi_vsphere/distributed_port_group.py +12 -61
  9. pulumi_vsphere/distributed_virtual_switch.py +43 -22
  10. pulumi_vsphere/entity_permissions.py +38 -59
  11. pulumi_vsphere/folder.py +21 -0
  12. pulumi_vsphere/get_compute_cluster_host_group.py +16 -18
  13. pulumi_vsphere/get_content_library.py +6 -10
  14. pulumi_vsphere/get_content_library_item.py +8 -12
  15. pulumi_vsphere/get_datastore.py +12 -12
  16. pulumi_vsphere/get_datastore_stats.py +40 -42
  17. pulumi_vsphere/get_dynamic.py +12 -14
  18. pulumi_vsphere/get_guest_os_customization.py +43 -8
  19. pulumi_vsphere/get_host_base_images.py +6 -6
  20. pulumi_vsphere/get_host_pci_device.py +2 -4
  21. pulumi_vsphere/get_host_thumbprint.py +12 -12
  22. pulumi_vsphere/get_host_vgpu_profile.py +2 -4
  23. pulumi_vsphere/get_license.py +1 -2
  24. pulumi_vsphere/get_network.py +14 -14
  25. pulumi_vsphere/get_resource_pool.py +8 -12
  26. pulumi_vsphere/get_role.py +4 -4
  27. pulumi_vsphere/get_virtual_machine.py +35 -60
  28. pulumi_vsphere/guest_os_customization.py +31 -31
  29. pulumi_vsphere/host.py +40 -49
  30. pulumi_vsphere/host_port_group.py +2 -2
  31. pulumi_vsphere/nas_datastore.py +7 -7
  32. pulumi_vsphere/offline_software_depot.py +2 -2
  33. pulumi_vsphere/outputs.py +40 -129
  34. pulumi_vsphere/provider.py +6 -2
  35. pulumi_vsphere/pulumi-plugin.json +1 -1
  36. pulumi_vsphere/resource_pool.py +2 -2
  37. pulumi_vsphere/supervisor.py +30 -134
  38. pulumi_vsphere/virtual_disk.py +30 -38
  39. pulumi_vsphere/virtual_machine.py +32 -32
  40. pulumi_vsphere/virtual_machine_class.py +0 -2
  41. pulumi_vsphere/virtual_machine_snapshot.py +2 -2
  42. pulumi_vsphere/vm_storage_policy.py +67 -67
  43. pulumi_vsphere/vnic.py +93 -89
  44. {pulumi_vsphere-4.11.0.dist-info → pulumi_vsphere-4.11.0a1.dist-info}/METADATA +1 -1
  45. pulumi_vsphere-4.11.0a1.dist-info/RECORD +86 -0
  46. {pulumi_vsphere-4.11.0.dist-info → pulumi_vsphere-4.11.0a1.dist-info}/WHEEL +1 -1
  47. pulumi_vsphere-4.11.0.dist-info/RECORD +0 -86
  48. {pulumi_vsphere-4.11.0.dist-info → pulumi_vsphere-4.11.0a1.dist-info}/top_level.txt +0 -0
@@ -524,14 +524,14 @@ class Supervisor(pulumi.CustomResource):
524
524
  content_library: Optional[pulumi.Input[str]] = None,
525
525
  dvs_uuid: Optional[pulumi.Input[str]] = None,
526
526
  edge_cluster: Optional[pulumi.Input[str]] = None,
527
- egress_cidrs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SupervisorEgressCidrArgs', 'SupervisorEgressCidrArgsDict']]]]] = None,
528
- ingress_cidrs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SupervisorIngressCidrArgs', 'SupervisorIngressCidrArgsDict']]]]] = None,
527
+ egress_cidrs: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SupervisorEgressCidrArgs']]]]] = None,
528
+ ingress_cidrs: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SupervisorIngressCidrArgs']]]]] = None,
529
529
  main_dns: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
530
- management_network: Optional[pulumi.Input[Union['SupervisorManagementNetworkArgs', 'SupervisorManagementNetworkArgsDict']]] = None,
531
- namespaces: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SupervisorNamespaceArgs', 'SupervisorNamespaceArgsDict']]]]] = None,
532
- pod_cidrs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SupervisorPodCidrArgs', 'SupervisorPodCidrArgsDict']]]]] = None,
530
+ management_network: Optional[pulumi.Input[pulumi.InputType['SupervisorManagementNetworkArgs']]] = None,
531
+ namespaces: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SupervisorNamespaceArgs']]]]] = None,
532
+ pod_cidrs: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SupervisorPodCidrArgs']]]]] = None,
533
533
  search_domains: Optional[pulumi.Input[str]] = None,
534
- service_cidr: Optional[pulumi.Input[Union['SupervisorServiceCidrArgs', 'SupervisorServiceCidrArgsDict']]] = None,
534
+ service_cidr: Optional[pulumi.Input[pulumi.InputType['SupervisorServiceCidrArgs']]] = None,
535
535
  sizing_hint: Optional[pulumi.Input[str]] = None,
536
536
  storage_policy: Optional[pulumi.Input[str]] = None,
537
537
  worker_dns: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
@@ -541,77 +541,25 @@ class Supervisor(pulumi.CustomResource):
541
541
 
542
542
  ## Example Usage
543
543
 
544
- ### S
545
-
546
- **Enable Workload Management on a compute cluster**
547
-
548
- ```python
549
- import pulumi
550
- import pulumi_vsphere as vsphere
551
-
552
- vm_class = vsphere.VirtualMachineClass("vm_class",
553
- name="custom-class",
554
- cpus=4,
555
- memory=4096)
556
- supervisor = vsphere.Supervisor("supervisor",
557
- cluster="<compute_cluster_id>",
558
- storage_policy="<storage_policy_name>",
559
- content_library="<content_library_id>",
560
- main_dns="10.0.0.250",
561
- worker_dns="10.0.0.250",
562
- edge_cluster="<edge_cluster_id>",
563
- dvs_uuid="<distributed_switch_uuid>",
564
- sizing_hint="MEDIUM",
565
- management_network={
566
- "network": "<portgroup_id>",
567
- "subnet_mask": "255.255.255.0",
568
- "starting_address": "10.0.0.150",
569
- "gateway": "10.0.0.250",
570
- "address_count": 5,
571
- },
572
- ingress_cidrs=[{
573
- "address": "10.10.10.0",
574
- "prefix": 24,
575
- }],
576
- egress_cidrs=[{
577
- "address": "10.10.11.0",
578
- "prefix": 24,
579
- }],
580
- pod_cidrs=[{
581
- "address": "10.244.10.0",
582
- "prefix": 23,
583
- }],
584
- service_cidr={
585
- "address": "10.10.12.0",
586
- "prefix": 24,
587
- },
588
- search_domains="vsphere.local",
589
- namespaces=[{
590
- "name": "custom-namespace",
591
- "content_libraries": [],
592
- "vm_classes": [vm_class.id],
593
- }])
594
- ```
595
-
596
544
  :param str resource_name: The name of the resource.
597
545
  :param pulumi.ResourceOptions opts: Options for the resource.
598
546
  :param pulumi.Input[str] cluster: The identifier of the compute cluster.
599
547
  :param pulumi.Input[str] content_library: The identifier of the subscribed content library.
600
548
  :param pulumi.Input[str] dvs_uuid: The UUID of the distributed switch.
601
549
  :param pulumi.Input[str] edge_cluster: The identifier of the NSX Edge Cluster.
602
- :param pulumi.Input[Sequence[pulumi.Input[Union['SupervisorEgressCidrArgs', 'SupervisorEgressCidrArgsDict']]]] egress_cidrs: CIDR blocks from which NSX assigns IP addresses used for performing SNAT from container IPs to external IPs.
603
- :param pulumi.Input[Sequence[pulumi.Input[Union['SupervisorIngressCidrArgs', 'SupervisorIngressCidrArgsDict']]]] ingress_cidrs: CIDR blocks from which NSX assigns IP addresses for Kubernetes Ingresses and Kubernetes Services of type LoadBalancer.
550
+ :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SupervisorEgressCidrArgs']]]] egress_cidrs: CIDR blocks from which NSX assigns IP addresses used for performing SNAT from container IPs to external IPs.
551
+ :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SupervisorIngressCidrArgs']]]] ingress_cidrs: CIDR blocks from which NSX assigns IP addresses for Kubernetes Ingresses and Kubernetes Services of type LoadBalancer.
604
552
  :param pulumi.Input[Sequence[pulumi.Input[str]]] main_dns: The list of addresses of the primary DNS servers.
605
- :param pulumi.Input[Union['SupervisorManagementNetworkArgs', 'SupervisorManagementNetworkArgsDict']] management_network: The configuration for the management network which the control plane VMs will be connected to.
553
+ :param pulumi.Input[pulumi.InputType['SupervisorManagementNetworkArgs']] management_network: The configuration for the management network which the control plane VMs will be connected to.
606
554
  * * `network` - ID of the network. (e.g. a distributed port group).
607
555
  * * `starting_address` - Starting address of the management network range.
608
556
  * * `subnet_mask` - Subnet mask.
609
557
  * * `gateway` - Gateway IP address.
610
558
  * * `address_count` - Number of addresses to allocate. Starts from `starting_address`
611
- :param pulumi.Input[Sequence[pulumi.Input[Union['SupervisorNamespaceArgs', 'SupervisorNamespaceArgsDict']]]] namespaces: The list of namespaces to create in the Supervisor cluster
612
- :param pulumi.Input[Sequence[pulumi.Input[Union['SupervisorPodCidrArgs', 'SupervisorPodCidrArgsDict']]]] pod_cidrs: CIDR blocks from which Kubernetes allocates pod IP addresses. Minimum subnet size is 23.
559
+ :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SupervisorNamespaceArgs']]]] namespaces: The list of namespaces to create in the Supervisor cluster
560
+ :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SupervisorPodCidrArgs']]]] pod_cidrs: CIDR blocks from which Kubernetes allocates pod IP addresses. Minimum subnet size is 23.
613
561
  :param pulumi.Input[str] search_domains: List of DNS search domains.
614
- :param pulumi.Input[Union['SupervisorServiceCidrArgs', 'SupervisorServiceCidrArgsDict']] service_cidr: CIDR block from which Kubernetes allocates service cluster IP addresses.
562
+ :param pulumi.Input[pulumi.InputType['SupervisorServiceCidrArgs']] service_cidr: CIDR block from which Kubernetes allocates service cluster IP addresses.
615
563
  :param pulumi.Input[str] sizing_hint: The size of the Kubernetes API server.
616
564
  :param pulumi.Input[str] storage_policy: The name of the storage policy.
617
565
  :param pulumi.Input[Sequence[pulumi.Input[str]]] worker_dns: The list of addresses of the DNS servers to use for the worker nodes.
@@ -627,58 +575,6 @@ class Supervisor(pulumi.CustomResource):
627
575
 
628
576
  ## Example Usage
629
577
 
630
- ### S
631
-
632
- **Enable Workload Management on a compute cluster**
633
-
634
- ```python
635
- import pulumi
636
- import pulumi_vsphere as vsphere
637
-
638
- vm_class = vsphere.VirtualMachineClass("vm_class",
639
- name="custom-class",
640
- cpus=4,
641
- memory=4096)
642
- supervisor = vsphere.Supervisor("supervisor",
643
- cluster="<compute_cluster_id>",
644
- storage_policy="<storage_policy_name>",
645
- content_library="<content_library_id>",
646
- main_dns="10.0.0.250",
647
- worker_dns="10.0.0.250",
648
- edge_cluster="<edge_cluster_id>",
649
- dvs_uuid="<distributed_switch_uuid>",
650
- sizing_hint="MEDIUM",
651
- management_network={
652
- "network": "<portgroup_id>",
653
- "subnet_mask": "255.255.255.0",
654
- "starting_address": "10.0.0.150",
655
- "gateway": "10.0.0.250",
656
- "address_count": 5,
657
- },
658
- ingress_cidrs=[{
659
- "address": "10.10.10.0",
660
- "prefix": 24,
661
- }],
662
- egress_cidrs=[{
663
- "address": "10.10.11.0",
664
- "prefix": 24,
665
- }],
666
- pod_cidrs=[{
667
- "address": "10.244.10.0",
668
- "prefix": 23,
669
- }],
670
- service_cidr={
671
- "address": "10.10.12.0",
672
- "prefix": 24,
673
- },
674
- search_domains="vsphere.local",
675
- namespaces=[{
676
- "name": "custom-namespace",
677
- "content_libraries": [],
678
- "vm_classes": [vm_class.id],
679
- }])
680
- ```
681
-
682
578
  :param str resource_name: The name of the resource.
683
579
  :param SupervisorArgs args: The arguments to use to populate this resource's properties.
684
580
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -698,14 +594,14 @@ class Supervisor(pulumi.CustomResource):
698
594
  content_library: Optional[pulumi.Input[str]] = None,
699
595
  dvs_uuid: Optional[pulumi.Input[str]] = None,
700
596
  edge_cluster: Optional[pulumi.Input[str]] = None,
701
- egress_cidrs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SupervisorEgressCidrArgs', 'SupervisorEgressCidrArgsDict']]]]] = None,
702
- ingress_cidrs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SupervisorIngressCidrArgs', 'SupervisorIngressCidrArgsDict']]]]] = None,
597
+ egress_cidrs: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SupervisorEgressCidrArgs']]]]] = None,
598
+ ingress_cidrs: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SupervisorIngressCidrArgs']]]]] = None,
703
599
  main_dns: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
704
- management_network: Optional[pulumi.Input[Union['SupervisorManagementNetworkArgs', 'SupervisorManagementNetworkArgsDict']]] = None,
705
- namespaces: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SupervisorNamespaceArgs', 'SupervisorNamespaceArgsDict']]]]] = None,
706
- pod_cidrs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SupervisorPodCidrArgs', 'SupervisorPodCidrArgsDict']]]]] = None,
600
+ management_network: Optional[pulumi.Input[pulumi.InputType['SupervisorManagementNetworkArgs']]] = None,
601
+ namespaces: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SupervisorNamespaceArgs']]]]] = None,
602
+ pod_cidrs: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SupervisorPodCidrArgs']]]]] = None,
707
603
  search_domains: Optional[pulumi.Input[str]] = None,
708
- service_cidr: Optional[pulumi.Input[Union['SupervisorServiceCidrArgs', 'SupervisorServiceCidrArgsDict']]] = None,
604
+ service_cidr: Optional[pulumi.Input[pulumi.InputType['SupervisorServiceCidrArgs']]] = None,
709
605
  sizing_hint: Optional[pulumi.Input[str]] = None,
710
606
  storage_policy: Optional[pulumi.Input[str]] = None,
711
607
  worker_dns: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
@@ -775,14 +671,14 @@ class Supervisor(pulumi.CustomResource):
775
671
  content_library: Optional[pulumi.Input[str]] = None,
776
672
  dvs_uuid: Optional[pulumi.Input[str]] = None,
777
673
  edge_cluster: Optional[pulumi.Input[str]] = None,
778
- egress_cidrs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SupervisorEgressCidrArgs', 'SupervisorEgressCidrArgsDict']]]]] = None,
779
- ingress_cidrs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SupervisorIngressCidrArgs', 'SupervisorIngressCidrArgsDict']]]]] = None,
674
+ egress_cidrs: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SupervisorEgressCidrArgs']]]]] = None,
675
+ ingress_cidrs: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SupervisorIngressCidrArgs']]]]] = None,
780
676
  main_dns: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
781
- management_network: Optional[pulumi.Input[Union['SupervisorManagementNetworkArgs', 'SupervisorManagementNetworkArgsDict']]] = None,
782
- namespaces: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SupervisorNamespaceArgs', 'SupervisorNamespaceArgsDict']]]]] = None,
783
- pod_cidrs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SupervisorPodCidrArgs', 'SupervisorPodCidrArgsDict']]]]] = None,
677
+ management_network: Optional[pulumi.Input[pulumi.InputType['SupervisorManagementNetworkArgs']]] = None,
678
+ namespaces: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SupervisorNamespaceArgs']]]]] = None,
679
+ pod_cidrs: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SupervisorPodCidrArgs']]]]] = None,
784
680
  search_domains: Optional[pulumi.Input[str]] = None,
785
- service_cidr: Optional[pulumi.Input[Union['SupervisorServiceCidrArgs', 'SupervisorServiceCidrArgsDict']]] = None,
681
+ service_cidr: Optional[pulumi.Input[pulumi.InputType['SupervisorServiceCidrArgs']]] = None,
786
682
  sizing_hint: Optional[pulumi.Input[str]] = None,
787
683
  storage_policy: Optional[pulumi.Input[str]] = None,
788
684
  worker_dns: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None) -> 'Supervisor':
@@ -797,19 +693,19 @@ class Supervisor(pulumi.CustomResource):
797
693
  :param pulumi.Input[str] content_library: The identifier of the subscribed content library.
798
694
  :param pulumi.Input[str] dvs_uuid: The UUID of the distributed switch.
799
695
  :param pulumi.Input[str] edge_cluster: The identifier of the NSX Edge Cluster.
800
- :param pulumi.Input[Sequence[pulumi.Input[Union['SupervisorEgressCidrArgs', 'SupervisorEgressCidrArgsDict']]]] egress_cidrs: CIDR blocks from which NSX assigns IP addresses used for performing SNAT from container IPs to external IPs.
801
- :param pulumi.Input[Sequence[pulumi.Input[Union['SupervisorIngressCidrArgs', 'SupervisorIngressCidrArgsDict']]]] ingress_cidrs: CIDR blocks from which NSX assigns IP addresses for Kubernetes Ingresses and Kubernetes Services of type LoadBalancer.
696
+ :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SupervisorEgressCidrArgs']]]] egress_cidrs: CIDR blocks from which NSX assigns IP addresses used for performing SNAT from container IPs to external IPs.
697
+ :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SupervisorIngressCidrArgs']]]] ingress_cidrs: CIDR blocks from which NSX assigns IP addresses for Kubernetes Ingresses and Kubernetes Services of type LoadBalancer.
802
698
  :param pulumi.Input[Sequence[pulumi.Input[str]]] main_dns: The list of addresses of the primary DNS servers.
803
- :param pulumi.Input[Union['SupervisorManagementNetworkArgs', 'SupervisorManagementNetworkArgsDict']] management_network: The configuration for the management network which the control plane VMs will be connected to.
699
+ :param pulumi.Input[pulumi.InputType['SupervisorManagementNetworkArgs']] management_network: The configuration for the management network which the control plane VMs will be connected to.
804
700
  * * `network` - ID of the network. (e.g. a distributed port group).
805
701
  * * `starting_address` - Starting address of the management network range.
806
702
  * * `subnet_mask` - Subnet mask.
807
703
  * * `gateway` - Gateway IP address.
808
704
  * * `address_count` - Number of addresses to allocate. Starts from `starting_address`
809
- :param pulumi.Input[Sequence[pulumi.Input[Union['SupervisorNamespaceArgs', 'SupervisorNamespaceArgsDict']]]] namespaces: The list of namespaces to create in the Supervisor cluster
810
- :param pulumi.Input[Sequence[pulumi.Input[Union['SupervisorPodCidrArgs', 'SupervisorPodCidrArgsDict']]]] pod_cidrs: CIDR blocks from which Kubernetes allocates pod IP addresses. Minimum subnet size is 23.
705
+ :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SupervisorNamespaceArgs']]]] namespaces: The list of namespaces to create in the Supervisor cluster
706
+ :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SupervisorPodCidrArgs']]]] pod_cidrs: CIDR blocks from which Kubernetes allocates pod IP addresses. Minimum subnet size is 23.
811
707
  :param pulumi.Input[str] search_domains: List of DNS search domains.
812
- :param pulumi.Input[Union['SupervisorServiceCidrArgs', 'SupervisorServiceCidrArgsDict']] service_cidr: CIDR block from which Kubernetes allocates service cluster IP addresses.
708
+ :param pulumi.Input[pulumi.InputType['SupervisorServiceCidrArgs']] service_cidr: CIDR block from which Kubernetes allocates service cluster IP addresses.
813
709
  :param pulumi.Input[str] sizing_hint: The size of the Kubernetes API server.
814
710
  :param pulumi.Input[str] storage_policy: The name of the storage policy.
815
711
  :param pulumi.Input[Sequence[pulumi.Input[str]]] worker_dns: The list of addresses of the DNS servers to use for the worker nodes.
@@ -25,9 +25,7 @@ class VirtualDiskArgs:
25
25
  The set of arguments for constructing a VirtualDisk resource.
26
26
  :param pulumi.Input[str] datastore: The name of the datastore in which to create the
27
27
  disk.
28
- :param pulumi.Input[int] size: Size of the disk (in GB). Decreasing the size of a disk is not possible.
29
- If a disk of a smaller size is required then the original has to be destroyed along with its data and a new one has to be
30
- created.
28
+ :param pulumi.Input[int] size: Size of the disk (in GB).
31
29
  :param pulumi.Input[str] vmdk_path: The path, including filename, of the virtual disk to
32
30
  be created. This needs to end in `.vmdk`.
33
31
  :param pulumi.Input[str] adapter_type: The adapter type for this virtual disk. Can be
@@ -47,14 +45,14 @@ class VirtualDiskArgs:
47
45
  `create_directories` is enabled will not be deleted when the resource is
48
46
  destroyed.
49
47
  :param pulumi.Input[str] datacenter: The name of the datacenter in which to create the
50
- disk. Can be omitted when ESXi or if there is only one datacenter in
48
+ disk. Can be omitted when when ESXi or if there is only one datacenter in
51
49
  your infrastructure.
52
50
  :param pulumi.Input[str] type: The type of disk to create. Can be one of
53
51
  `eagerZeroedThick`, `lazy`, or `thin`. Default: `eagerZeroedThick`. For
54
52
  information on what each kind of disk provisioning policy means, click
55
53
  [here][docs-vmware-vm-disk-provisioning].
56
54
 
57
- [docs-vmware-vm-disk-provisioning]: https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-vm-administration/GUID-4C0F4D73-82F2-4B81-8AA7-1DD752A8A5AC.html
55
+ [docs-vmware-vm-disk-provisioning]: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.vm_admin.doc/GUID-4C0F4D73-82F2-4B81-8AA7-1DD752A8A5AC.html
58
56
  """
59
57
  pulumi.set(__self__, "datastore", datastore)
60
58
  pulumi.set(__self__, "size", size)
@@ -88,9 +86,7 @@ class VirtualDiskArgs:
88
86
  @pulumi.getter
89
87
  def size(self) -> pulumi.Input[int]:
90
88
  """
91
- Size of the disk (in GB). Decreasing the size of a disk is not possible.
92
- If a disk of a smaller size is required then the original has to be destroyed along with its data and a new one has to be
93
- created.
89
+ Size of the disk (in GB).
94
90
  """
95
91
  return pulumi.get(self, "size")
96
92
 
@@ -113,7 +109,6 @@ class VirtualDiskArgs:
113
109
 
114
110
  @property
115
111
  @pulumi.getter(name="adapterType")
116
- @_utilities.deprecated("""this attribute has no effect on controller types - please use scsi_type in VirtualMachine instead""")
117
112
  def adapter_type(self) -> Optional[pulumi.Input[str]]:
118
113
  """
119
114
  The adapter type for this virtual disk. Can be
@@ -126,6 +121,9 @@ class VirtualDiskArgs:
126
121
  disk controller types. This parameter will be removed in future versions of the
127
122
  vSphere provider.
128
123
  """
124
+ warnings.warn("""this attribute has no effect on controller types - please use scsi_type in VirtualMachine instead""", DeprecationWarning)
125
+ pulumi.log.warn("""adapter_type is deprecated: this attribute has no effect on controller types - please use scsi_type in VirtualMachine instead""")
126
+
129
127
  return pulumi.get(self, "adapter_type")
130
128
 
131
129
  @adapter_type.setter
@@ -155,7 +153,7 @@ class VirtualDiskArgs:
155
153
  def datacenter(self) -> Optional[pulumi.Input[str]]:
156
154
  """
157
155
  The name of the datacenter in which to create the
158
- disk. Can be omitted when ESXi or if there is only one datacenter in
156
+ disk. Can be omitted when when ESXi or if there is only one datacenter in
159
157
  your infrastructure.
160
158
  """
161
159
  return pulumi.get(self, "datacenter")
@@ -173,7 +171,7 @@ class VirtualDiskArgs:
173
171
  information on what each kind of disk provisioning policy means, click
174
172
  [here][docs-vmware-vm-disk-provisioning].
175
173
 
176
- [docs-vmware-vm-disk-provisioning]: https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-vm-administration/GUID-4C0F4D73-82F2-4B81-8AA7-1DD752A8A5AC.html
174
+ [docs-vmware-vm-disk-provisioning]: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.vm_admin.doc/GUID-4C0F4D73-82F2-4B81-8AA7-1DD752A8A5AC.html
177
175
  """
178
176
  return pulumi.get(self, "type")
179
177
 
@@ -211,19 +209,17 @@ class _VirtualDiskState:
211
209
  `create_directories` is enabled will not be deleted when the resource is
212
210
  destroyed.
213
211
  :param pulumi.Input[str] datacenter: The name of the datacenter in which to create the
214
- disk. Can be omitted when ESXi or if there is only one datacenter in
212
+ disk. Can be omitted when when ESXi or if there is only one datacenter in
215
213
  your infrastructure.
216
214
  :param pulumi.Input[str] datastore: The name of the datastore in which to create the
217
215
  disk.
218
- :param pulumi.Input[int] size: Size of the disk (in GB). Decreasing the size of a disk is not possible.
219
- If a disk of a smaller size is required then the original has to be destroyed along with its data and a new one has to be
220
- created.
216
+ :param pulumi.Input[int] size: Size of the disk (in GB).
221
217
  :param pulumi.Input[str] type: The type of disk to create. Can be one of
222
218
  `eagerZeroedThick`, `lazy`, or `thin`. Default: `eagerZeroedThick`. For
223
219
  information on what each kind of disk provisioning policy means, click
224
220
  [here][docs-vmware-vm-disk-provisioning].
225
221
 
226
- [docs-vmware-vm-disk-provisioning]: https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-vm-administration/GUID-4C0F4D73-82F2-4B81-8AA7-1DD752A8A5AC.html
222
+ [docs-vmware-vm-disk-provisioning]: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.vm_admin.doc/GUID-4C0F4D73-82F2-4B81-8AA7-1DD752A8A5AC.html
227
223
  :param pulumi.Input[str] vmdk_path: The path, including filename, of the virtual disk to
228
224
  be created. This needs to end in `.vmdk`.
229
225
  """
@@ -247,7 +243,6 @@ class _VirtualDiskState:
247
243
 
248
244
  @property
249
245
  @pulumi.getter(name="adapterType")
250
- @_utilities.deprecated("""this attribute has no effect on controller types - please use scsi_type in VirtualMachine instead""")
251
246
  def adapter_type(self) -> Optional[pulumi.Input[str]]:
252
247
  """
253
248
  The adapter type for this virtual disk. Can be
@@ -260,6 +255,9 @@ class _VirtualDiskState:
260
255
  disk controller types. This parameter will be removed in future versions of the
261
256
  vSphere provider.
262
257
  """
258
+ warnings.warn("""this attribute has no effect on controller types - please use scsi_type in VirtualMachine instead""", DeprecationWarning)
259
+ pulumi.log.warn("""adapter_type is deprecated: this attribute has no effect on controller types - please use scsi_type in VirtualMachine instead""")
260
+
263
261
  return pulumi.get(self, "adapter_type")
264
262
 
265
263
  @adapter_type.setter
@@ -289,7 +287,7 @@ class _VirtualDiskState:
289
287
  def datacenter(self) -> Optional[pulumi.Input[str]]:
290
288
  """
291
289
  The name of the datacenter in which to create the
292
- disk. Can be omitted when ESXi or if there is only one datacenter in
290
+ disk. Can be omitted when when ESXi or if there is only one datacenter in
293
291
  your infrastructure.
294
292
  """
295
293
  return pulumi.get(self, "datacenter")
@@ -315,9 +313,7 @@ class _VirtualDiskState:
315
313
  @pulumi.getter
316
314
  def size(self) -> Optional[pulumi.Input[int]]:
317
315
  """
318
- Size of the disk (in GB). Decreasing the size of a disk is not possible.
319
- If a disk of a smaller size is required then the original has to be destroyed along with its data and a new one has to be
320
- created.
316
+ Size of the disk (in GB).
321
317
  """
322
318
  return pulumi.get(self, "size")
323
319
 
@@ -334,7 +330,7 @@ class _VirtualDiskState:
334
330
  information on what each kind of disk provisioning policy means, click
335
331
  [here][docs-vmware-vm-disk-provisioning].
336
332
 
337
- [docs-vmware-vm-disk-provisioning]: https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-vm-administration/GUID-4C0F4D73-82F2-4B81-8AA7-1DD752A8A5AC.html
333
+ [docs-vmware-vm-disk-provisioning]: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.vm_admin.doc/GUID-4C0F4D73-82F2-4B81-8AA7-1DD752A8A5AC.html
338
334
  """
339
335
  return pulumi.get(self, "type")
340
336
 
@@ -390,19 +386,17 @@ class VirtualDisk(pulumi.CustomResource):
390
386
  `create_directories` is enabled will not be deleted when the resource is
391
387
  destroyed.
392
388
  :param pulumi.Input[str] datacenter: The name of the datacenter in which to create the
393
- disk. Can be omitted when ESXi or if there is only one datacenter in
389
+ disk. Can be omitted when when ESXi or if there is only one datacenter in
394
390
  your infrastructure.
395
391
  :param pulumi.Input[str] datastore: The name of the datastore in which to create the
396
392
  disk.
397
- :param pulumi.Input[int] size: Size of the disk (in GB). Decreasing the size of a disk is not possible.
398
- If a disk of a smaller size is required then the original has to be destroyed along with its data and a new one has to be
399
- created.
393
+ :param pulumi.Input[int] size: Size of the disk (in GB).
400
394
  :param pulumi.Input[str] type: The type of disk to create. Can be one of
401
395
  `eagerZeroedThick`, `lazy`, or `thin`. Default: `eagerZeroedThick`. For
402
396
  information on what each kind of disk provisioning policy means, click
403
397
  [here][docs-vmware-vm-disk-provisioning].
404
398
 
405
- [docs-vmware-vm-disk-provisioning]: https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-vm-administration/GUID-4C0F4D73-82F2-4B81-8AA7-1DD752A8A5AC.html
399
+ [docs-vmware-vm-disk-provisioning]: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.vm_admin.doc/GUID-4C0F4D73-82F2-4B81-8AA7-1DD752A8A5AC.html
406
400
  :param pulumi.Input[str] vmdk_path: The path, including filename, of the virtual disk to
407
401
  be created. This needs to end in `.vmdk`.
408
402
  """
@@ -499,19 +493,17 @@ class VirtualDisk(pulumi.CustomResource):
499
493
  `create_directories` is enabled will not be deleted when the resource is
500
494
  destroyed.
501
495
  :param pulumi.Input[str] datacenter: The name of the datacenter in which to create the
502
- disk. Can be omitted when ESXi or if there is only one datacenter in
496
+ disk. Can be omitted when when ESXi or if there is only one datacenter in
503
497
  your infrastructure.
504
498
  :param pulumi.Input[str] datastore: The name of the datastore in which to create the
505
499
  disk.
506
- :param pulumi.Input[int] size: Size of the disk (in GB). Decreasing the size of a disk is not possible.
507
- If a disk of a smaller size is required then the original has to be destroyed along with its data and a new one has to be
508
- created.
500
+ :param pulumi.Input[int] size: Size of the disk (in GB).
509
501
  :param pulumi.Input[str] type: The type of disk to create. Can be one of
510
502
  `eagerZeroedThick`, `lazy`, or `thin`. Default: `eagerZeroedThick`. For
511
503
  information on what each kind of disk provisioning policy means, click
512
504
  [here][docs-vmware-vm-disk-provisioning].
513
505
 
514
- [docs-vmware-vm-disk-provisioning]: https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-vm-administration/GUID-4C0F4D73-82F2-4B81-8AA7-1DD752A8A5AC.html
506
+ [docs-vmware-vm-disk-provisioning]: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.vm_admin.doc/GUID-4C0F4D73-82F2-4B81-8AA7-1DD752A8A5AC.html
515
507
  :param pulumi.Input[str] vmdk_path: The path, including filename, of the virtual disk to
516
508
  be created. This needs to end in `.vmdk`.
517
509
  """
@@ -530,7 +522,6 @@ class VirtualDisk(pulumi.CustomResource):
530
522
 
531
523
  @property
532
524
  @pulumi.getter(name="adapterType")
533
- @_utilities.deprecated("""this attribute has no effect on controller types - please use scsi_type in VirtualMachine instead""")
534
525
  def adapter_type(self) -> pulumi.Output[Optional[str]]:
535
526
  """
536
527
  The adapter type for this virtual disk. Can be
@@ -543,6 +534,9 @@ class VirtualDisk(pulumi.CustomResource):
543
534
  disk controller types. This parameter will be removed in future versions of the
544
535
  vSphere provider.
545
536
  """
537
+ warnings.warn("""this attribute has no effect on controller types - please use scsi_type in VirtualMachine instead""", DeprecationWarning)
538
+ pulumi.log.warn("""adapter_type is deprecated: this attribute has no effect on controller types - please use scsi_type in VirtualMachine instead""")
539
+
546
540
  return pulumi.get(self, "adapter_type")
547
541
 
548
542
  @property
@@ -564,7 +558,7 @@ class VirtualDisk(pulumi.CustomResource):
564
558
  def datacenter(self) -> pulumi.Output[Optional[str]]:
565
559
  """
566
560
  The name of the datacenter in which to create the
567
- disk. Can be omitted when ESXi or if there is only one datacenter in
561
+ disk. Can be omitted when when ESXi or if there is only one datacenter in
568
562
  your infrastructure.
569
563
  """
570
564
  return pulumi.get(self, "datacenter")
@@ -582,9 +576,7 @@ class VirtualDisk(pulumi.CustomResource):
582
576
  @pulumi.getter
583
577
  def size(self) -> pulumi.Output[int]:
584
578
  """
585
- Size of the disk (in GB). Decreasing the size of a disk is not possible.
586
- If a disk of a smaller size is required then the original has to be destroyed along with its data and a new one has to be
587
- created.
579
+ Size of the disk (in GB).
588
580
  """
589
581
  return pulumi.get(self, "size")
590
582
 
@@ -597,7 +589,7 @@ class VirtualDisk(pulumi.CustomResource):
597
589
  information on what each kind of disk provisioning policy means, click
598
590
  [here][docs-vmware-vm-disk-provisioning].
599
591
 
600
- [docs-vmware-vm-disk-provisioning]: https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-vm-administration/GUID-4C0F4D73-82F2-4B81-8AA7-1DD752A8A5AC.html
592
+ [docs-vmware-vm-disk-provisioning]: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.vm_admin.doc/GUID-4C0F4D73-82F2-4B81-8AA7-1DD752A8A5AC.html
601
593
  """
602
594
  return pulumi.get(self, "type")
603
595