@@ -651,15 +651,16 @@ class DedicatedHost(Resource):
651
651
:type location: str
652
652
:param tags: Resource tags
653
653
:type tags: dict[str, str]
654
- :param platform_fault_domain: Fault domain of the host within a group.
655
- Supported values 0,1,2 .
654
+ :param platform_fault_domain: Fault domain of the dedicated host within a
655
+ dedicated host group .
656
656
:type platform_fault_domain: int
657
- :param auto_replace_on_failure: Whether the host should be replaced
658
- automatically in case of a failure. The value is defaulted to true when
659
- not provided.
657
+ :param auto_replace_on_failure: Specifies whether the dedicated host
658
+ should be replaced automatically in case of a failure. The value is
659
+ defaulted to 'true' when not provided.
660
660
:type auto_replace_on_failure: bool
661
661
:ivar host_id: A unique id generated and assigned to the dedicated host by
662
- the platform.
662
+ the platform. <br><br> Does not change throughout the lifetime of the
663
+ host.
663
664
:vartype host_id: str
664
665
:ivar virtual_machines: A list of references to all virtual machines in
665
666
the Dedicated Host.
@@ -672,17 +673,17 @@ class DedicatedHost(Resource):
672
673
include: 'None', 'Windows_Server_Hybrid', 'Windows_Server_Perpetual'
673
674
:type license_type: str or
674
675
~azure.mgmt.compute.v2019_03_01.models.DedicatedHostLicenseTypes
675
- :ivar provisioning_time: The date when the host was first created .
676
+ :ivar provisioning_time: The date when the host was first provisioned .
676
677
:vartype provisioning_time: datetime
677
678
:ivar provisioning_state: The provisioning state, which only appears in
678
679
the response.
679
680
:vartype provisioning_state: str
680
681
:ivar instance_view: The dedicated host instance view.
681
682
:vartype instance_view:
682
683
~azure.mgmt.compute.v2019_03_01.models.DedicatedHostInstanceView
683
- :param sku: Sku of the dedicated host for Hardware Generation and VM
684
- family, The only name is required to be set. See DedicatedHostSkuTypes for
685
- possible set of values.
684
+ :param sku: Required. SKU of the dedicated host for Hardware Generation
685
+ and VM family. Only name is required to be set. List Microsoft.Compute
686
+ SKUs for a list of possible values.
686
687
:type sku: ~azure.mgmt.compute.v2019_03_01.models.Sku
687
688
"""
688
689
@@ -691,11 +692,13 @@ class DedicatedHost(Resource):
691
692
'name' : {'readonly' : True },
692
693
'type' : {'readonly' : True },
693
694
'location' : {'required' : True },
695
+ 'platform_fault_domain' : {'maximum' : 2 , 'minimum' : 0 },
694
696
'host_id' : {'readonly' : True },
695
697
'virtual_machines' : {'readonly' : True },
696
698
'provisioning_time' : {'readonly' : True },
697
699
'provisioning_state' : {'readonly' : True },
698
700
'instance_view' : {'readonly' : True },
701
+ 'sku' : {'required' : True },
699
702
}
700
703
701
704
_attribute_map = {
@@ -754,8 +757,6 @@ def __init__(self, **kwargs):
754
757
class DedicatedHostAvailableCapacity (Model ):
755
758
"""Dedicated host unutilized capacity.
756
759
757
- :param available_vcpus: The total number of CPUs.
758
- :type available_vcpus: float
759
760
:param allocatable_vms: The unutilized capacity of the dedicated host
760
761
represented in terms of each VM size that is allowed to be deployed to the
761
762
dedicated host.
@@ -764,41 +765,19 @@ class DedicatedHostAvailableCapacity(Model):
764
765
"""
765
766
766
767
_attribute_map = {
767
- 'available_vcpus' : {'key' : 'availableVCpus' , 'type' : 'float' },
768
768
'allocatable_vms' : {'key' : 'allocatableVMs' , 'type' : '[DedicatedHostAllocatableVM]' },
769
769
}
770
770
771
771
def __init__ (self , ** kwargs ):
772
772
super (DedicatedHostAvailableCapacity , self ).__init__ (** kwargs )
773
- self .available_vcpus = kwargs .get ('available_vcpus' , None )
774
773
self .allocatable_vms = kwargs .get ('allocatable_vms' , None )
775
774
776
775
777
- class DedicatedHostCapacity (Model ):
778
- """Dedicated host total capacity.
779
-
780
- :param total_cores: The total number of cores.
781
- :type total_cores: float
782
- :param total_vcpus: The total number of CPUs.
783
- :type total_vcpus: float
784
- """
785
-
786
- _attribute_map = {
787
- 'total_cores' : {'key' : 'totalCores' , 'type' : 'float' },
788
- 'total_vcpus' : {'key' : 'totalVCpus' , 'type' : 'float' },
789
- }
790
-
791
- def __init__ (self , ** kwargs ):
792
- super (DedicatedHostCapacity , self ).__init__ (** kwargs )
793
- self .total_cores = kwargs .get ('total_cores' , None )
794
- self .total_vcpus = kwargs .get ('total_vcpus' , None )
795
-
796
-
797
776
class DedicatedHostGroup (Resource ):
798
777
"""Specifies information about the dedicated host group that the dedicated
799
- hosts should be assigned to. <br><br> Currently, a Dedicated host can only
800
- be added to Dedicated Host Group at creation time. An existing Dedicated
801
- Host cannot be added to a dedicated host group.
778
+ hosts should be assigned to. <br><br> Currently, a dedicated host can only
779
+ be added to a dedicated host group at creation time. An existing dedicated
780
+ host cannot be added to another dedicated host group.
802
781
803
782
Variables are only populated by the server, and will be ignored when
804
783
sending a request.
@@ -815,17 +794,17 @@ class DedicatedHostGroup(Resource):
815
794
:type location: str
816
795
:param tags: Resource tags
817
796
:type tags: dict[str, str]
818
- :param platform_fault_domain_count: Number of fault domains that the host
819
- group can span. Supported values 1,2,3 .
797
+ :param platform_fault_domain_count: Required. Number of fault domains that
798
+ the host group can span.
820
799
:type platform_fault_domain_count: int
821
800
:ivar hosts: A list of references to all dedicated hosts in the dedicated
822
801
host group.
823
802
:vartype hosts:
824
803
list[~azure.mgmt.compute.v2019_03_01.models.SubResourceReadOnly]
825
804
:param zones: Availability Zone to use for this host group � only single
826
805
zone is supported. The zone can be assigned only during creation. If not
827
- provided, the group supports all zones in the region. If provided, enforce
828
- each host in the group is in the same zone.
806
+ provided, the group supports all zones in the region. If provided,
807
+ enforces each host in the group to be in the same zone.
829
808
:type zones: list[str]
830
809
"""
831
810
@@ -834,6 +813,7 @@ class DedicatedHostGroup(Resource):
834
813
'name' : {'readonly' : True },
835
814
'type' : {'readonly' : True },
836
815
'location' : {'required' : True },
816
+ 'platform_fault_domain_count' : {'required' : True , 'maximum' : 3 , 'minimum' : 1 },
837
817
'hosts' : {'readonly' : True },
838
818
}
839
819
@@ -862,23 +842,26 @@ class DedicatedHostGroupUpdate(UpdateResource):
862
842
Variables are only populated by the server, and will be ignored when
863
843
sending a request.
864
844
845
+ All required parameters must be populated in order to send to Azure.
846
+
865
847
:param tags: Resource tags
866
848
:type tags: dict[str, str]
867
- :param platform_fault_domain_count: Number of fault domains that the host
868
- group can span. Supported values 1,2,3 .
849
+ :param platform_fault_domain_count: Required. Number of fault domains that
850
+ the host group can span.
869
851
:type platform_fault_domain_count: int
870
852
:ivar hosts: A list of references to all dedicated hosts in the dedicated
871
853
host group.
872
854
:vartype hosts:
873
855
list[~azure.mgmt.compute.v2019_03_01.models.SubResourceReadOnly]
874
856
:param zones: Availability Zone to use for this host group � only single
875
857
zone is supported. The zone can be assigned only during creation. If not
876
- provided, the group supports all zones in the region. If provided, enforce
877
- each host in the group is in the same zone.
858
+ provided, the group supports all zones in the region. If provided,
859
+ enforces each host in the group to be in the same zone.
878
860
:type zones: list[str]
879
861
"""
880
862
881
863
_validation = {
864
+ 'platform_fault_domain_count' : {'required' : True , 'maximum' : 3 , 'minimum' : 1 },
882
865
'hosts' : {'readonly' : True },
883
866
}
884
867
@@ -902,12 +885,9 @@ class DedicatedHostInstanceView(Model):
902
885
Variables are only populated by the server, and will be ignored when
903
886
sending a request.
904
887
905
- :ivar asset_id: Specifies the unique of the dedicated physical machine on
906
- which the dedicated host resides.
888
+ :ivar asset_id: Specifies the unique id of the dedicated physical machine
889
+ on which the dedicated host resides.
907
890
:vartype asset_id: str
908
- :param capacity: The total capacity of the dedicated host.
909
- :type capacity:
910
- ~azure.mgmt.compute.v2019_03_01.models.DedicatedHostCapacity
911
891
:param available_capacity: Unutilized capacity of the dedicated host.
912
892
:type available_capacity:
913
893
~azure.mgmt.compute.v2019_03_01.models.DedicatedHostAvailableCapacity
@@ -922,15 +902,13 @@ class DedicatedHostInstanceView(Model):
922
902
923
903
_attribute_map = {
924
904
'asset_id' : {'key' : 'assetId' , 'type' : 'str' },
925
- 'capacity' : {'key' : 'capacity' , 'type' : 'DedicatedHostCapacity' },
926
905
'available_capacity' : {'key' : 'availableCapacity' , 'type' : 'DedicatedHostAvailableCapacity' },
927
906
'statuses' : {'key' : 'statuses' , 'type' : '[InstanceViewStatus]' },
928
907
}
929
908
930
909
def __init__ (self , ** kwargs ):
931
910
super (DedicatedHostInstanceView , self ).__init__ (** kwargs )
932
911
self .asset_id = None
933
- self .capacity = kwargs .get ('capacity' , None )
934
912
self .available_capacity = kwargs .get ('available_capacity' , None )
935
913
self .statuses = kwargs .get ('statuses' , None )
936
914
@@ -944,15 +922,16 @@ class DedicatedHostUpdate(UpdateResource):
944
922
945
923
:param tags: Resource tags
946
924
:type tags: dict[str, str]
947
- :param platform_fault_domain: Fault domain of the host within a group.
948
- Supported values 0,1,2 .
925
+ :param platform_fault_domain: Fault domain of the dedicated host within a
926
+ dedicated host group .
949
927
:type platform_fault_domain: int
950
- :param auto_replace_on_failure: Whether the host should be replaced
951
- automatically in case of a failure. The value is defaulted to true when
952
- not provided.
928
+ :param auto_replace_on_failure: Specifies whether the dedicated host
929
+ should be replaced automatically in case of a failure. The value is
930
+ defaulted to 'true' when not provided.
953
931
:type auto_replace_on_failure: bool
954
932
:ivar host_id: A unique id generated and assigned to the dedicated host by
955
- the platform.
933
+ the platform. <br><br> Does not change throughout the lifetime of the
934
+ host.
956
935
:vartype host_id: str
957
936
:ivar virtual_machines: A list of references to all virtual machines in
958
937
the Dedicated Host.
@@ -965,7 +944,7 @@ class DedicatedHostUpdate(UpdateResource):
965
944
include: 'None', 'Windows_Server_Hybrid', 'Windows_Server_Perpetual'
966
945
:type license_type: str or
967
946
~azure.mgmt.compute.v2019_03_01.models.DedicatedHostLicenseTypes
968
- :ivar provisioning_time: The date when the host was first created .
947
+ :ivar provisioning_time: The date when the host was first provisioned .
969
948
:vartype provisioning_time: datetime
970
949
:ivar provisioning_state: The provisioning state, which only appears in
971
950
the response.
@@ -976,6 +955,7 @@ class DedicatedHostUpdate(UpdateResource):
976
955
"""
977
956
978
957
_validation = {
958
+ 'platform_fault_domain' : {'maximum' : 2 , 'minimum' : 0 },
979
959
'host_id' : {'readonly' : True },
980
960
'virtual_machines' : {'readonly' : True },
981
961
'provisioning_time' : {'readonly' : True },
0 commit comments