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 15 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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
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 @@ -5465,6 +5465,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 +5481,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 +5502,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 +5544,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 @@ -5575,7 +5563,7 @@
"availableVCpus": {
"type": "number",
"format": "double",
"description": "The total number of CPUs."
"description": "The number of virtual CPUs available for new allocations."
},
"allocatableVMs": {
"type": "array",
Expand All @@ -5592,11 +5580,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 +5601,16 @@
"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."
"description": "Fault domain of the dedicated host within a dedicated host group. Supported values 0,1,2."
Copy link
Contributor

Choose a reason for hiding this comment

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

Could also use a min/max to describe the restriction

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What is the syntax for that?

Copy link
Contributor

Choose a reason for hiding this comment

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

Found this in the repo

"capacity": {
"type": "integer",
"minimum": 1,
"maximum": 8,
"default": 1,
"description": "The number of instances in the read only query pool."
}

Copy link
Contributor

Choose a reason for hiding this comment

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

Although adding that rather than just the description, may be a breaking change

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks! it is not breaking as service always rejected the requests with out of boundary values.

},
"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 +5628,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 +5651,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 +5689,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
Loading