Skip to content

Commit

Permalink
Use enums and add missing properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfredo Santamaria Gomez committed Apr 16, 2021
1 parent f80541d commit f1a30bc
Show file tree
Hide file tree
Showing 8 changed files with 104 additions and 81 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"properties": {
"supportExpiryUtc": "2021-11-30T00:00:00",
"osType": "Windows",
"codeVersion": "7.2.477.9590"
"clusterCodeVersion": "7.2.477.9590"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"properties": {
"supportExpiryUtc": "2021-11-30T00:00:00",
"osType": "Windows",
"codeVersion": "7.2.477.9590"
"clusterCodeVersion": "7.2.477.9590"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,28 @@
"responses": {
"200": {
"headers": {},
"body": {
"value": [
{
"id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastus/environments/Windows/managedClusterVersions/7.2.457.9590",
"name": "7.2.457.9590",
"type": "Microsoft.ServiceFabric/locations/environments/managedClusterVersions",
"properties": {
"supportExpiryUtc": "2021-11-30T00:00:00",
"osType": "Windows",
"codeVersion": "7.2.457.9590"
}
},
{
"id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastus/environments/Windows/managedClusterVersions/7.2.477.9590",
"name": "7.2.477.9590",
"type": "Microsoft.ServiceFabric/locations/environments/managedClusterVersions",
"properties": {
"supportExpiryUtc": "2021-11-30T00:00:00",
"osType": "Windows",
"codeVersion": "7.2.477.9590"
}
"body": [
{
"id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastus/environments/Windows/managedClusterVersions/7.2.457.9590",
"name": "7.2.457.9590",
"type": "Microsoft.ServiceFabric/locations/environments/managedClusterVersions",
"properties": {
"supportExpiryUtc": "2021-11-30T00:00:00",
"osType": "Windows",
"clusterCodeVersion": "7.2.457.9590"
}
]
}
},
{
"id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastus/environments/Windows/managedClusterVersions/7.2.477.9590",
"name": "7.2.477.9590",
"type": "Microsoft.ServiceFabric/locations/environments/managedClusterVersions",
"properties": {
"supportExpiryUtc": "2021-11-30T00:00:00",
"osType": "Windows",
"clusterCodeVersion": "7.2.477.9590"
}
}
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,28 @@
"responses": {
"200": {
"headers": {},
"body": {
"value": [
{
"id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastus/environments/Windows/managedClusterVersions/7.2.457.9590",
"name": "7.2.457.9590",
"type": "Microsoft.ServiceFabric/locations/environments/managedClusterVersions",
"properties": {
"supportExpiryUtc": "2021-11-30T00:00:00",
"osType": "Windows",
"codeVersion": "7.2.457.9590"
}
},
{
"id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastus/environments/Windows/managedClusterVersions/7.2.477.9590",
"name": "7.2.477.9590",
"type": "Microsoft.ServiceFabric/locations/environments/managedClusterVersions",
"properties": {
"supportExpiryUtc": "2021-11-30T00:00:00",
"osType": "Windows",
"codeVersion": "7.2.477.9590"
}
"body": [
{
"id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastus/environments/Windows/managedClusterVersions/7.2.457.9590",
"name": "7.2.457.9590",
"type": "Microsoft.ServiceFabric/locations/environments/managedClusterVersions",
"properties": {
"supportExpiryUtc": "2021-11-30T00:00:00",
"osType": "Windows",
"clusterCodeVersion": "7.2.457.9590"
}
]
}
},
{
"id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastus/environments/Windows/managedClusterVersions/7.2.477.9590",
"name": "7.2.477.9590",
"type": "Microsoft.ServiceFabric/locations/environments/managedClusterVersions",
"properties": {
"supportExpiryUtc": "2021-11-30T00:00:00",
"osType": "Windows",
"clusterCodeVersion": "7.2.477.9590"
}
}
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"vmImageVersion": "latest",
"vmInstanceCount": 10,
"isStateless": true,
"multiplePlacementGroups": true,
"vmSecrets": [
{
"sourceVault": {
Expand Down Expand Up @@ -90,6 +91,7 @@
"vmImageVersion": "latest",
"vmInstanceCount": 10,
"isStateless": true,
"multiplePlacementGroups": true,
"vmSecrets": [
{
"sourceVault": {
Expand Down Expand Up @@ -149,6 +151,7 @@
"vmImageVersion": "latest",
"vmInstanceCount": 10,
"isStateless": true,
"multiplePlacementGroups": true,
"vmSecrets": [
{
"sourceVault": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1459,7 +1459,8 @@
"metricName",
"lowerLoadThreshold",
"upperLoadThreshold",
"scaleInterval"
"scaleInterval",
"useOnlyPrimaryLoad"
],
"properties": {
"metricName": {
Expand All @@ -1479,6 +1480,10 @@
"scaleInterval": {
"type": "string",
"description": "The period in seconds on which a decision is made whether to scale or not. This property should come in ISO 8601 format \"hh:mm:ss\"."
},
"useOnlyPrimaryLoad": {
"type": "boolean",
"description": "Flag determines whether only the load of primary replica should be considered for scaling. If set to true, then trigger will only consider the load of primary replicas of stateful service. If set to false, trigger will consider load of all replicas. This parameter cannot be set to true for stateless service."
}
}
},
Expand Down Expand Up @@ -1570,7 +1575,7 @@
],
"x-ms-enum": {
"name": "MoveCost",
"modelAsString": true,
"modelAsString": false,
"values": [
{
"value": "Zero",
Expand Down Expand Up @@ -1675,7 +1680,7 @@
],
"x-ms-enum": {
"name": "PartitionScheme",
"modelAsString": true,
"modelAsString": false,
"values": [
{
"value": "Singleton",
Expand Down Expand Up @@ -1744,7 +1749,7 @@
],
"x-ms-enum": {
"name": "RollingUpgradeMode",
"modelAsString": true,
"modelAsString": false,
"values": [
{
"value": "Monitored",
Expand Down Expand Up @@ -1777,7 +1782,7 @@
],
"x-ms-enum": {
"name": "FailureAction",
"modelAsString": true,
"modelAsString": false,
"values": [
{
"value": "Rollback",
Expand Down Expand Up @@ -1887,7 +1892,7 @@
],
"x-ms-enum": {
"name": "ServiceCorrelationScheme",
"modelAsString": true,
"modelAsString": false,
"values": [
{
"value": "AlignedAffinity",
Expand All @@ -1909,7 +1914,7 @@
],
"x-ms-enum": {
"name": "ServiceKind",
"modelAsString": true,
"modelAsString": false,
"values": [
{
"value": "Stateless",
Expand Down Expand Up @@ -1972,7 +1977,7 @@
],
"x-ms-enum": {
"name": "ServiceLoadMetricWeight",
"modelAsString": true,
"modelAsString": false,
"values": [
{
"value": "Zero",
Expand Down Expand Up @@ -2067,7 +2072,7 @@
],
"x-ms-enum": {
"name": "ServicePlacementPolicyType",
"modelAsString": true,
"modelAsString": false,
"values": [
{
"value": "InvalidDomain",
Expand Down Expand Up @@ -2225,7 +2230,7 @@
],
"x-ms-enum": {
"name": "ServicePackageActivationMode",
"modelAsString": true,
"modelAsString": false,
"values": [
{
"value": "SharedProcess",
Expand Down Expand Up @@ -2273,7 +2278,7 @@
],
"x-ms-enum": {
"name": "ServiceScalingMechanismKind",
"modelAsString": true,
"modelAsString": false,
"values": [
{
"value": "ScalePartitionInstanceCount",
Expand All @@ -2295,7 +2300,7 @@
],
"x-ms-enum": {
"name": "ServiceScalingTriggerKind",
"modelAsString": true,
"modelAsString": false,
"values": [
{
"value": "AveragePartitionLoad",
Expand Down Expand Up @@ -2412,10 +2417,6 @@
"servicePlacementTimeLimit": {
"type": "string",
"description": "The duration for which replicas can stay InBuild before reporting that build is stuck, represented in ISO 8601 format \"hh:mm:ss\"."
},
"dropSourceReplicaOnMove": {
"type": "boolean",
"description": "Indicates whether to drop source Secondary replica even if the target replica has not finished build. If desired behavior is to drop it as soon as possible the value of this property is true, if not it is false."
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@
"description": "Number of unused versions per application type to keep."
}
},
"description": "The policy used to clean up unused versions."
"description": "The policy used to clean up unused versions. When the policy is not specified explicitly, the default unused application versions to keep will be 3."
},
"AzureActiveDirectory": {
"properties": {
Expand Down Expand Up @@ -615,7 +615,7 @@
],
"x-ms-enum": {
"name": "ClusterState",
"modelAsString": true,
"modelAsString": false,
"values": [
{
"value": "WaitingForNodes",
Expand Down Expand Up @@ -653,7 +653,7 @@
],
"x-ms-enum": {
"name": "clusterUpgradeCadence",
"modelAsString": true,
"modelAsString": false,
"values": [
{
"value": "Wave0",
Expand Down Expand Up @@ -681,7 +681,7 @@
"default": "Automatic",
"x-ms-enum": {
"name": "ClusterUpgradeMode",
"modelAsString": true,
"modelAsString": false,
"values": [
{
"value": "Automatic",
Expand Down Expand Up @@ -779,13 +779,9 @@
}
},
"ManagedClusterCodeVersionListResult": {
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/ManagedClusterCodeVersionResult"
}
}
"type": "array",
"items": {
"$ref": "#/definitions/ManagedClusterCodeVersionResult"
},
"description": "The list results of the Service Fabric runtime versions."
},
Expand Down Expand Up @@ -974,7 +970,7 @@
},
"ManagedClusterVersionDetails": {
"properties": {
"codeVersion": {
"clusterCodeVersion": {
"type": "string",
"description": "The Service Fabric runtime version of the cluster."
},
Expand Down Expand Up @@ -1105,11 +1101,25 @@
},
"SkuName": {
"type": "string",
"description": "Sku Name. Basic requires a minimum of 3 nodes and Standard a minimum of 5. Basic only allows 1 node type.",
"description": "Sku Name.",
"enum": [
"Basic",
"Standard"
]
],
"x-ms-enum": {
"name": "SkuName",
"modelAsString": true,
"values": [
{
"value": "Basic",
"description": "Basic requires a minimum of 3 nodes and allows only 1 node type."
},
{
"value": "Standard",
"description": "Requires a minimum of 5 nodes and allows 1 or more node type."
}
]
}
},
"AvailableOperationDisplay": {
"properties": {
Expand Down Expand Up @@ -1168,7 +1178,11 @@
"Deleting",
"Deleted",
"Other"
]
],
"x-ms-enum": {
"name": "ManagedResourceProvisioningState",
"modelAsString": false
}
},
"OperationListResult": {
"properties": {
Expand Down
Loading

0 comments on commit f1a30bc

Please sign in to comment.