Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev/ccelik/dedicatedhostswagger #6612

Merged
merged 23 commits into from Jul 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -884,7 +884,7 @@
"schema": {
"$ref": "#/definitions/DedicatedHost"
},
"description": "Parameters supplied to the Create Dedicated Host ."
"description": "Parameters supplied to the Create Dedicated Host."
},
{
"$ref": "#/parameters/ApiVersionParameter"
Expand Down Expand Up @@ -5454,7 +5454,9 @@
"platformFaultDomainCount": {
"type": "integer",
"format": "int32",
"description": "Number of fault domains that the host group can span. Supported values 1,2,3."
"minimum": 1,
"maximum": 3,
"description": "Number of fault domains that the host group can span."
},
"hosts": {
"type": "array",
Expand All @@ -5465,6 +5467,9 @@
"description": "A list of references to all dedicated hosts in the dedicated host group."
}
},
"required": [
"platformFaultDomainCount"
],
"description": "Dedicated Host Group Properties."
},
"DedicatedHostGroup": {
Expand All @@ -5478,15 +5483,15 @@
"items": {
"type": "string"
},
"description": "Availability Zone to use for this host group � only single zone is supported. The zone can be assigned only during creation. If not provided, the group supports all zones in the region. If provided, enforce each host in the group is in the same zone."
"description": "Availability Zone to use for this host group � only single zone is supported. The zone can be assigned only during creation. If not provided, the group supports all zones in the region. If provided, enforces each host in the group to be in the same zone."
}
},
"allOf": [
{
"$ref": "#/definitions/Resource"
}
],
"description": "Specifies information about the dedicated host group that the dedicated hosts should be assigned to. <br><br> Currently, a Dedicated host can only be added to Dedicated Host Group at creation time. An existing Dedicated Host cannot be added to a dedicated host group."
"description": "Specifies information about the dedicated host group that the dedicated hosts should be assigned to. <br><br> Currently, a dedicated host can only be added to a dedicated host group at creation time. An existing dedicated host cannot be added to another dedicated host group."
},
"DedicatedHostGroupUpdate": {
"properties": {
Expand All @@ -5499,7 +5504,7 @@
"items": {
"type": "string"
},
"description": "Availability Zone to use for this host group � only single zone is supported. The zone can be assigned only during creation. If not provided, the group supports all zones in the region. If provided, enforce each host in the group is in the same zone."
"description": "Availability Zone to use for this host group � only single zone is supported. The zone can be assigned only during creation. If not provided, the group supports all zones in the region. If provided, enforces each host in the group to be in the same zone."
}
},
"allOf": [
Expand Down Expand Up @@ -5541,21 +5546,6 @@
"modelAsString": false
}
},
"DedicatedHostCapacity": {
"properties": {
"totalCores": {
"type": "number",
"format": "double",
"description": "The total number of cores."
},
"totalVCpus": {
"type": "number",
"format": "double",
"description": "The total number of CPUs."
}
},
"description": "Dedicated host total capacity."
},
"DedicatedHostAllocatableVM": {
"properties": {
"vmSize": {
Expand All @@ -5572,11 +5562,6 @@
},
"DedicatedHostAvailableCapacity": {
"properties": {
"availableVCpus": {
"type": "number",
"format": "double",
"description": "The total number of CPUs."
},
"allocatableVMs": {
"type": "array",
"items": {
Expand All @@ -5592,11 +5577,7 @@
"assetId": {
"readOnly": true,
"type": "string",
"description": "Specifies the unique of the dedicated physical machine on which the dedicated host resides."
},
"capacity": {
celikcigdem marked this conversation as resolved.
Show resolved Hide resolved
"$ref": "#/definitions/DedicatedHostCapacity",
"description": "The total capacity of the dedicated host."
"description": "Specifies the unique id of the dedicated physical machine on which the dedicated host resides."
},
"availableCapacity": {
"$ref": "#/definitions/DedicatedHostAvailableCapacity",
Expand All @@ -5617,16 +5598,18 @@
"platformFaultDomain": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this also required property as platformFaultDomainCount?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not always, only if the platformDomainCount is > 1.

"type": "integer",
"format": "int32",
"description": "Fault domain of the host within a group. Supported values 0,1,2."
"minimum": 0,
"maximum": 2,
"description": "Fault domain of the dedicated host within a dedicated host group."
},
"autoReplaceOnFailure": {
"type": "boolean",
"description": "Whether the host should be replaced automatically in case of a failure. The value is defaulted to true when not provided."
"description": "Specifies whether the dedicated host should be replaced automatically in case of a failure. The value is defaulted to 'true' when not provided."
},
"hostId": {
"readOnly": true,
"type": "string",
"description": "A unique id generated and assigned to the dedicated host by the platform."
"description": "A unique id generated and assigned to the dedicated host by the platform. <br><br> Does not change throughout the lifetime of the host."
},
"virtualMachines": {
"type": "array",
Expand All @@ -5644,7 +5627,7 @@
"readOnly": true,
"type": "string",
"format": "date-time",
"description": "The date when the host was first created."
"description": "The date when the host was first provisioned."
},
"provisioningState": {
"readOnly": true,
Expand All @@ -5667,14 +5650,17 @@
},
"sku": {
"$ref": "#/definitions/Sku",
"description": "Sku of the dedicated host for Hardware Generation and VM family, The only name is required to be set. See DedicatedHostSkuTypes for possible set of values."
"description": "SKU of the dedicated host for Hardware Generation and VM family. Only name is required to be set. List Microsoft.Compute SKUs for a list of possible values."
}
},
"allOf": [
{
"$ref": "#/definitions/Resource"
}
],
"required": [
"sku"
],
"description": "Specifies information about the Dedicated host."
},
"DedicatedHostUpdate": {
Expand Down Expand Up @@ -5702,13 +5688,13 @@
},
"nextLink": {
"type": "string",
"description": "The URI to fetch the next page of Dedicated hosts. Call ListNext() with this URI to fetch the next page of Dedicated hosts."
"description": "The URI to fetch the next page of dedicated hosts. Call ListNext() with this URI to fetch the next page of dedicated hosts."
}
},
"required": [
"value"
],
"description": "The List Dedicated Host operation response."
"description": "The list dedicated host operation response."
},
"VirtualMachineSize": {
"properties": {
Expand Down
Expand Up @@ -22,12 +22,7 @@
"provisioningState": "Succeeded",
"instanceView": {
"assetId": "eb3f58b8-b4e8-4882-b69f-301a01812407",
"capacity": {
"totalCores": 30,
"totalVCpus": 60
},
"availableCapacity": {
"availableVCpus": 40,
"allocatableVMs": [
{
"vmSize": "Standard_A1",
Expand Down
Expand Up @@ -20,7 +20,6 @@
}
},
"202": {
"body": ""
}
}
}
Expand Up @@ -20,7 +20,6 @@
}
},
"202": {
"body": ""
}
}
}