Skip to content

Commit

Permalink
CodeGen from PR 16090 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
vmwarecloudsimple: adding a missing `type` to the datetime field (Azure#16090)
  • Loading branch information
SDKAuto committed Oct 9, 2021
1 parent cbf7ba8 commit c0f1ada
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 29 deletions.
10 changes: 5 additions & 5 deletions sdk/compute/azure-mgmt-vmwarecloudsimple/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"autorest": "3.4.2",
"autorest": "3.4.5",
"use": [
"@autorest/python@5.8.0",
"@autorest/modelerfour@4.19.1"
"@autorest/python@5.8.4",
"@autorest/modelerfour@4.19.2"
],
"commit": "b983192c03c5db5072c6090976753dc7218a096a",
"commit": "152a1069f362bc4b5824fa16f3494677a4a083cb",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/vmwarecloudsimple/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.0 --use=@autorest/modelerfour@4.19.1 --version=3.4.2",
"autorest_command": "autorest specification/vmwarecloudsimple/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.4 --use=@autorest/modelerfour@4.19.2 --version=3.4.5",
"readme": "specification/vmwarecloudsimple/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ class DedicatedCloudNode(msrest.serialization.Model):
:ivar cloud_rack_name: VMWare Cloud Rack Name.
:vartype cloud_rack_name: str
:ivar created: date time the resource was created.
:vartype created: any
:vartype created: ~datetime.datetime
:param nodes_count: count of nodes to create.
:type nodes_count: int
:param placement_group_id: Placement Group id, e.g. "n1".
Expand Down Expand Up @@ -562,7 +562,7 @@ class DedicatedCloudNode(msrest.serialization.Model):
'availability_zone_id': {'key': 'properties.availabilityZoneId', 'type': 'str'},
'availability_zone_name': {'key': 'properties.availabilityZoneName', 'type': 'str'},
'cloud_rack_name': {'key': 'properties.cloudRackName', 'type': 'str'},
'created': {'key': 'properties.created', 'type': 'object'},
'created': {'key': 'properties.created', 'type': 'iso-8601'},
'nodes_count': {'key': 'properties.nodesCount', 'type': 'int'},
'placement_group_id': {'key': 'properties.placementGroupId', 'type': 'str'},
'placement_group_name': {'key': 'properties.placementGroupName', 'type': 'str'},
Expand Down Expand Up @@ -897,17 +897,16 @@ def __init__(
class PrivateCloud(msrest.serialization.Model):
"""Private cloud model.
Variables are only populated by the server, and will be ignored when sending a request.
:param id: Azure Id, e.g.
"/subscriptions/4da99247-a172-4ed6-8ae9-ebed2d12f839/providers/Microsoft.VMwareCloudSimple/privateClouds/cloud123".
:type id: str
:param location: Location where private cloud created, e.g "westus".
:type location: str
:param name: Private cloud name.
:type name: str
:ivar type: Azure Resource type. Default value: "Microsoft.VMwareCloudSimple/privateClouds".
:vartype type: str
:param type: Azure Resource type. The only acceptable values to pass in are None and
"Microsoft.VMwareCloudSimple/privateClouds". The default value is None.
:type type: str
:param availability_zone_id: Availability Zone id, e.g. "az1".
:type availability_zone_id: str
:param availability_zone_name: Availability Zone name, e.g. "Availability Zone 1".
Expand Down Expand Up @@ -959,10 +958,6 @@ class PrivateCloud(msrest.serialization.Model):
:type vr_ops_enabled: bool
"""

_validation = {
'type': {'constant': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'location': {'key': 'location', 'type': 'str'},
Expand Down Expand Up @@ -994,8 +989,6 @@ class PrivateCloud(msrest.serialization.Model):
'vr_ops_enabled': {'key': 'properties.vrOpsEnabled', 'type': 'bool'},
}

type = "Microsoft.VMwareCloudSimple/privateClouds"

def __init__(
self,
**kwargs
Expand All @@ -1004,6 +997,7 @@ def __init__(
self.id = kwargs.get('id', None)
self.location = kwargs.get('location', None)
self.name = kwargs.get('name', None)
self.type = kwargs.get('type', None)
self.availability_zone_id = kwargs.get('availability_zone_id', None)
self.availability_zone_name = kwargs.get('availability_zone_name', None)
self.clusters_number = kwargs.get('clusters_number', None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ class DedicatedCloudNode(msrest.serialization.Model):
:ivar cloud_rack_name: VMWare Cloud Rack Name.
:vartype cloud_rack_name: str
:ivar created: date time the resource was created.
:vartype created: any
:vartype created: ~datetime.datetime
:param nodes_count: count of nodes to create.
:type nodes_count: int
:param placement_group_id: Placement Group id, e.g. "n1".
Expand Down Expand Up @@ -628,7 +628,7 @@ class DedicatedCloudNode(msrest.serialization.Model):
'availability_zone_id': {'key': 'properties.availabilityZoneId', 'type': 'str'},
'availability_zone_name': {'key': 'properties.availabilityZoneName', 'type': 'str'},
'cloud_rack_name': {'key': 'properties.cloudRackName', 'type': 'str'},
'created': {'key': 'properties.created', 'type': 'object'},
'created': {'key': 'properties.created', 'type': 'iso-8601'},
'nodes_count': {'key': 'properties.nodesCount', 'type': 'int'},
'placement_group_id': {'key': 'properties.placementGroupId', 'type': 'str'},
'placement_group_name': {'key': 'properties.placementGroupName', 'type': 'str'},
Expand Down Expand Up @@ -1004,17 +1004,16 @@ def __init__(
class PrivateCloud(msrest.serialization.Model):
"""Private cloud model.
Variables are only populated by the server, and will be ignored when sending a request.
:param id: Azure Id, e.g.
"/subscriptions/4da99247-a172-4ed6-8ae9-ebed2d12f839/providers/Microsoft.VMwareCloudSimple/privateClouds/cloud123".
:type id: str
:param location: Location where private cloud created, e.g "westus".
:type location: str
:param name: Private cloud name.
:type name: str
:ivar type: Azure Resource type. Default value: "Microsoft.VMwareCloudSimple/privateClouds".
:vartype type: str
:param type: Azure Resource type. The only acceptable values to pass in are None and
"Microsoft.VMwareCloudSimple/privateClouds". The default value is None.
:type type: str
:param availability_zone_id: Availability Zone id, e.g. "az1".
:type availability_zone_id: str
:param availability_zone_name: Availability Zone name, e.g. "Availability Zone 1".
Expand Down Expand Up @@ -1066,10 +1065,6 @@ class PrivateCloud(msrest.serialization.Model):
:type vr_ops_enabled: bool
"""

_validation = {
'type': {'constant': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'location': {'key': 'location', 'type': 'str'},
Expand Down Expand Up @@ -1101,14 +1096,13 @@ class PrivateCloud(msrest.serialization.Model):
'vr_ops_enabled': {'key': 'properties.vrOpsEnabled', 'type': 'bool'},
}

type = "Microsoft.VMwareCloudSimple/privateClouds"

def __init__(
self,
*,
id: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
type: Optional[str] = None,
availability_zone_id: Optional[str] = None,
availability_zone_name: Optional[str] = None,
clusters_number: Optional[int] = None,
Expand Down Expand Up @@ -1139,6 +1133,7 @@ def __init__(
self.id = id
self.location = location
self.name = name
self.type = type
self.availability_zone_id = availability_zone_id
self.availability_zone_name = availability_zone_name
self.clusters_number = clusters_number
Expand Down

0 comments on commit c0f1ada

Please sign in to comment.