Skip to content

Commit

Permalink
Generated from 7a1461008e6adf4565276b06a8dfd131ebcb36b7
Browse files Browse the repository at this point in the history
  • Loading branch information
SDK Automation committed Sep 19, 2020
1 parent 981105d commit a943533
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ class DedicatedHost(Resource):
'name': {'readonly': True},
'type': {'readonly': True},
'location': {'required': True},
'platform_fault_domain': {'maximum': 2, 'minimum': 0},
'platform_fault_domain': {'minimum': 0},
'host_id': {'readonly': True},
'virtual_machines': {'readonly': True},
'provisioning_time': {'readonly': True},
Expand Down Expand Up @@ -976,7 +976,7 @@ class DedicatedHostGroup(Resource):
'name': {'readonly': True},
'type': {'readonly': True},
'location': {'required': True},
'platform_fault_domain_count': {'required': True, 'maximum': 3, 'minimum': 1},
'platform_fault_domain_count': {'required': True, 'minimum': 1},
'hosts': {'readonly': True},
'instance_view': {'readonly': True},
}
Expand Down Expand Up @@ -1059,7 +1059,7 @@ class DedicatedHostGroupUpdate(UpdateResource):
"""

_validation = {
'platform_fault_domain_count': {'required': True, 'maximum': 3, 'minimum': 1},
'platform_fault_domain_count': {'required': True, 'minimum': 1},
'hosts': {'readonly': True},
'instance_view': {'readonly': True},
}
Expand Down Expand Up @@ -1196,7 +1196,7 @@ class DedicatedHostUpdate(UpdateResource):
"""

_validation = {
'platform_fault_domain': {'maximum': 2, 'minimum': 0},
'platform_fault_domain': {'minimum': 0},
'host_id': {'readonly': True},
'virtual_machines': {'readonly': True},
'provisioning_time': {'readonly': True},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ class DedicatedHost(Resource):
'name': {'readonly': True},
'type': {'readonly': True},
'location': {'required': True},
'platform_fault_domain': {'maximum': 2, 'minimum': 0},
'platform_fault_domain': {'minimum': 0},
'host_id': {'readonly': True},
'virtual_machines': {'readonly': True},
'provisioning_time': {'readonly': True},
Expand Down Expand Up @@ -976,7 +976,7 @@ class DedicatedHostGroup(Resource):
'name': {'readonly': True},
'type': {'readonly': True},
'location': {'required': True},
'platform_fault_domain_count': {'required': True, 'maximum': 3, 'minimum': 1},
'platform_fault_domain_count': {'required': True, 'minimum': 1},
'hosts': {'readonly': True},
'instance_view': {'readonly': True},
}
Expand Down Expand Up @@ -1059,7 +1059,7 @@ class DedicatedHostGroupUpdate(UpdateResource):
"""

_validation = {
'platform_fault_domain_count': {'required': True, 'maximum': 3, 'minimum': 1},
'platform_fault_domain_count': {'required': True, 'minimum': 1},
'hosts': {'readonly': True},
'instance_view': {'readonly': True},
}
Expand Down Expand Up @@ -1196,7 +1196,7 @@ class DedicatedHostUpdate(UpdateResource):
"""

_validation = {
'platform_fault_domain': {'maximum': 2, 'minimum': 0},
'platform_fault_domain': {'minimum': 0},
'host_id': {'readonly': True},
'virtual_machines': {'readonly': True},
'provisioning_time': {'readonly': True},
Expand Down
2 changes: 1 addition & 1 deletion sdk/compute/azure-mgmt-compute/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
pass

# Version extraction inspired from 'requests'
with open(os.path.join(package_folder_path, 'version.py')
with open(os.path.join(package_folder_path, 'version.py')
if os.path.exists(os.path.join(package_folder_path, 'version.py'))
else os.path.join(package_folder_path, '_version.py'), 'r') as fd:
version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]',
Expand Down

0 comments on commit a943533

Please sign in to comment.