From 780e8bb92119038f5162a4d1d83ec57890576b18 Mon Sep 17 00:00:00 2001 From: Alfredo Santamaria Gomez Date: Thu, 8 Jul 2021 17:52:29 -0700 Subject: [PATCH 01/11] add missing property recreateApplication --- .../stable/2021-06-01/application.json | 7 +++ ...licationPutOperation_recreate_example.json | 49 +++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ApplicationPutOperation_recreate_example.json diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/application.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/application.json index 1ef2c2ee94f6..bbabeca9cb81 100644 --- a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/application.json +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/application.json @@ -508,6 +508,9 @@ }, "Put an application with maximum parameters": { "$ref": "./examples/ApplicationPutOperation_example_max.json" + }, + "Put an application with recreate option": { + "$ref": "./examples/ApplicationPutOperation_recreate_example.json" } }, "x-ms-long-running-operation": true, @@ -1203,6 +1206,10 @@ }, "upgradeMode": { "$ref": "#/definitions/RollingUpgradeMode" + }, + "recreateApplication": { + "type": "boolean", + "description": "Determines whether the application should be recreated on update. If value=true, the rest of the upgrade policy parameters are not allowed and it will result in availability loss." } } }, diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ApplicationPutOperation_recreate_example.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ApplicationPutOperation_recreate_example.json new file mode 100644 index 000000000000..ddd23d7278d1 --- /dev/null +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ApplicationPutOperation_recreate_example.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "resRg", + "clusterName": "myCluster", + "applicationName": "myApp", + "api-version": "2021-06-01", + "parameters": { + "tags": {}, + "properties": { + "typeName": "myAppType", + "typeVersion": "1.0", + "parameters": { + "param1": "value1" + }, + "upgradePolicy": { + "recreateApplication": true + } + } + } + }, + "responses": { + "202": { + "headers": { + "Retry-After": "10", + "Location": "http://10.91.140.224/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastus/operationResults/9c2ce367-47ea-43de-b69e-c5a423da4557?api-version=2021-06-01" + }, + "body": { + "type": "applications", + "location": "eastus", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster/applications/myApp", + "name": "myCluster", + "tags": {}, + "etag": "W/\"636462502180261859\"", + "properties": { + "provisioningState": "Updating", + "typeName": "myAppType", + "typeVersion": "1.0", + "parameters": { + "param1": "value1" + }, + "upgradePolicy": { + "recreateApplication": true + } + } + } + } + } +} From 69fa27ce2575371562707355c3e497361860b92f Mon Sep 17 00:00:00 2001 From: Alfredo Santamaria Gomez Date: Fri, 9 Jul 2021 09:11:30 -0700 Subject: [PATCH 02/11] add recreateApplication to all missing api versions --- .../preview/2019-11-01-preview/application.json | 4 ++++ .../preview/2020-12-01-preview/application.json | 4 ++++ .../stable/2020-03-01/application.json | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2019-11-01-preview/application.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2019-11-01-preview/application.json index 0c05124b3ff9..6a79aaace023 100644 --- a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2019-11-01-preview/application.json +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2019-11-01-preview/application.json @@ -1254,6 +1254,10 @@ "upgradeMode": { "$ref": "#/definitions/RollingUpgradeMode", "description": "The mode used to monitor health during a rolling upgrade. The values are UnmonitoredAuto, UnmonitoredManual, and Monitored." + }, + "recreateApplication": { + "type": "boolean", + "description": "Determines whether the application should be recreated on update. If value=true, the rest of the upgrade policy parameters are not allowed and it will result in availability loss." } } }, diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-12-01-preview/application.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-12-01-preview/application.json index a1dacd7897a9..d1fc7a8f3744 100644 --- a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-12-01-preview/application.json +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-12-01-preview/application.json @@ -1218,6 +1218,10 @@ "upgradeMode": { "$ref": "#/definitions/RollingUpgradeMode", "description": "The mode used to monitor health during a rolling upgrade. The values are UnmonitoredAuto, UnmonitoredManual, and Monitored." + }, + "recreateApplication": { + "type": "boolean", + "description": "Determines whether the application should be recreated on update. If value=true, the rest of the upgrade policy parameters are not allowed and it will result in availability loss." } } }, diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2020-03-01/application.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2020-03-01/application.json index 33669cae7b5a..0e880ad1829a 100644 --- a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2020-03-01/application.json +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2020-03-01/application.json @@ -1254,6 +1254,10 @@ "upgradeMode": { "$ref": "#/definitions/RollingUpgradeMode", "description": "The mode used to monitor health during a rolling upgrade. The values are UnmonitoredAuto, UnmonitoredManual, and Monitored." + }, + "recreateApplication": { + "type": "boolean", + "description": "Determines whether the application should be recreated on update. If value=true, the rest of the upgrade policy parameters are not allowed and it will result in availability loss." } } }, From 83d2a812e041053b40d71f471657790dd2db9ad6 Mon Sep 17 00:00:00 2001 From: Alfredo Santamaria Gomez Date: Tue, 20 Jul 2021 09:44:05 -0700 Subject: [PATCH 03/11] fix issue with cluster difinition AvoidAnonymousTypes --- .../preview/2019-11-01-preview/cluster.json | 18 ++++++------- .../2020-01-01-preview/managedcluster.json | 26 +++++++++---------- .../stable/2020-03-01/cluster.json | 18 ++++++------- 3 files changed, 31 insertions(+), 31 deletions(-) diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2019-11-01-preview/cluster.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2019-11-01-preview/cluster.json index 36558717a519..71783862daea 100644 --- a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2019-11-01-preview/cluster.json +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2019-11-01-preview/cluster.json @@ -672,16 +672,16 @@ "$ref": "#/definitions/Resource" }, { - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ClusterProperties", - "description": "The cluster resource properties" - } - } + "type": "object" } - ] + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ClusterProperties", + "description": "The cluster resource properties" + } + } }, "ClusterCodeVersionsListResult": { "properties": { diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-01-01-preview/managedcluster.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-01-01-preview/managedcluster.json index 51cc8e1a84d8..96b9f6b5dd15 100644 --- a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-01-01-preview/managedcluster.json +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-01-01-preview/managedcluster.json @@ -567,20 +567,20 @@ "$ref": "#/definitions/Resource" }, { - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ManagedClusterProperties", - "description": "The managed cluster resource properties" - }, - "sku": { - "$ref": "#/definitions/Sku", - "description": "The sku of the managed cluster" - } - } + "type": "object" } - ] + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ManagedClusterProperties", + "description": "The managed cluster resource properties" + }, + "sku": { + "$ref": "#/definitions/Sku", + "description": "The sku of the managed cluster" + } + } }, "ManagedClusterListResult": { "properties": { diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2020-03-01/cluster.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2020-03-01/cluster.json index 9ef76c65bf74..f3cf7ba3a0dc 100644 --- a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2020-03-01/cluster.json +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2020-03-01/cluster.json @@ -672,16 +672,16 @@ "$ref": "#/definitions/Resource" }, { - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ClusterProperties", - "description": "The cluster resource properties" - } - } + "type": "object" } - ] + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ClusterProperties", + "description": "The cluster resource properties" + } + } }, "ClusterCodeVersionsListResult": { "properties": { From 6049a4ebf85b54351989a79746f5d812513ccf54 Mon Sep 17 00:00:00 2001 From: Alfredo Santamaria Gomez Date: Tue, 20 Jul 2021 10:16:44 -0700 Subject: [PATCH 04/11] ClusterVersions add default response --- .../preview/2019-11-01-preview/cluster.json | 24 +++++++++++++++++++ .../stable/2020-03-01/cluster.json | 24 +++++++++++++++++++ .../stable/2021-06-01/cluster.json | 24 +++++++++++++++++++ 3 files changed, 72 insertions(+) diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2019-11-01-preview/cluster.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2019-11-01-preview/cluster.json index 71783862daea..fc2967e61b9b 100644 --- a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2019-11-01-preview/cluster.json +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2019-11-01-preview/cluster.json @@ -347,6 +347,12 @@ "schema": { "$ref": "#/definitions/ClusterCodeVersionsListResult" } + }, + "default": { + "description": "The detailed error response.", + "schema": { + "$ref": "#/definitions/ErrorModel" + } } } } @@ -387,6 +393,12 @@ "schema": { "$ref": "#/definitions/ClusterCodeVersionsListResult" } + }, + "default": { + "description": "The detailed error response.", + "schema": { + "$ref": "#/definitions/ErrorModel" + } } } } @@ -421,6 +433,12 @@ "schema": { "$ref": "#/definitions/ClusterCodeVersionsListResult" } + }, + "default": { + "description": "The detailed error response.", + "schema": { + "$ref": "#/definitions/ErrorModel" + } } } } @@ -458,6 +476,12 @@ "schema": { "$ref": "#/definitions/ClusterCodeVersionsListResult" } + }, + "default": { + "description": "The detailed error response.", + "schema": { + "$ref": "#/definitions/ErrorModel" + } } } } diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2020-03-01/cluster.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2020-03-01/cluster.json index f3cf7ba3a0dc..23f7371415af 100644 --- a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2020-03-01/cluster.json +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2020-03-01/cluster.json @@ -347,6 +347,12 @@ "schema": { "$ref": "#/definitions/ClusterCodeVersionsListResult" } + }, + "default": { + "description": "The detailed error response.", + "schema": { + "$ref": "#/definitions/ErrorModel" + } } } } @@ -387,6 +393,12 @@ "schema": { "$ref": "#/definitions/ClusterCodeVersionsListResult" } + }, + "default": { + "description": "The detailed error response.", + "schema": { + "$ref": "#/definitions/ErrorModel" + } } } } @@ -421,6 +433,12 @@ "schema": { "$ref": "#/definitions/ClusterCodeVersionsListResult" } + }, + "default": { + "description": "The detailed error response.", + "schema": { + "$ref": "#/definitions/ErrorModel" + } } } } @@ -458,6 +476,12 @@ "schema": { "$ref": "#/definitions/ClusterCodeVersionsListResult" } + }, + "default": { + "description": "The detailed error response.", + "schema": { + "$ref": "#/definitions/ErrorModel" + } } } } diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/cluster.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/cluster.json index a33484304b5d..3cabe7127d9d 100644 --- a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/cluster.json +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/cluster.json @@ -347,6 +347,12 @@ "schema": { "$ref": "#/definitions/ClusterCodeVersionsListResult" } + }, + "default": { + "description": "The detailed error response.", + "schema": { + "$ref": "#/definitions/ErrorModel" + } } } } @@ -387,6 +393,12 @@ "schema": { "$ref": "#/definitions/ClusterCodeVersionsListResult" } + }, + "default": { + "description": "The detailed error response.", + "schema": { + "$ref": "#/definitions/ErrorModel" + } } } } @@ -421,6 +433,12 @@ "schema": { "$ref": "#/definitions/ClusterCodeVersionsListResult" } + }, + "default": { + "description": "The detailed error response.", + "schema": { + "$ref": "#/definitions/ErrorModel" + } } } } @@ -458,6 +476,12 @@ "schema": { "$ref": "#/definitions/ClusterCodeVersionsListResult" } + }, + "default": { + "description": "The detailed error response.", + "schema": { + "$ref": "#/definitions/ErrorModel" + } } } } From accce57ef11157f79abe57c3d39828db1fac528b Mon Sep 17 00:00:00 2001 From: Alfredo Santamaria Gomez Date: Tue, 20 Jul 2021 10:56:19 -0700 Subject: [PATCH 05/11] add integer format --- .../preview/2020-12-01-preview/cluster.json | 24 +++++++++++++++++++ .../stable/2020-03-01/application.json | 14 +++++++++++ .../stable/2020-03-01/cluster.json | 14 +++++++++++ .../stable/2021-06-01/application.json | 1 + .../stable/2021-06-01/cluster.json | 1 + 5 files changed, 54 insertions(+) diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-12-01-preview/cluster.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-12-01-preview/cluster.json index 160ff7e88cfa..49d08284e473 100644 --- a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-12-01-preview/cluster.json +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-12-01-preview/cluster.json @@ -347,6 +347,12 @@ "schema": { "$ref": "#/definitions/ClusterCodeVersionsListResult" } + }, + "default": { + "description": "The detailed error response.", + "schema": { + "$ref": "#/definitions/ErrorModel" + } } } } @@ -387,6 +393,12 @@ "schema": { "$ref": "#/definitions/ClusterCodeVersionsListResult" } + }, + "default": { + "description": "The detailed error response.", + "schema": { + "$ref": "#/definitions/ErrorModel" + } } } } @@ -421,6 +433,12 @@ "schema": { "$ref": "#/definitions/ClusterCodeVersionsListResult" } + }, + "default": { + "description": "The detailed error response.", + "schema": { + "$ref": "#/definitions/ErrorModel" + } } } } @@ -458,6 +476,12 @@ "schema": { "$ref": "#/definitions/ClusterCodeVersionsListResult" } + }, + "default": { + "description": "The detailed error response.", + "schema": { + "$ref": "#/definitions/ErrorModel" + } } } } diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2020-03-01/application.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2020-03-01/application.json index 0e880ad1829a..f26cd0398a38 100644 --- a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2020-03-01/application.json +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2020-03-01/application.json @@ -1288,6 +1288,7 @@ }, "maxPercentUnhealthyDeployedApplications": { "type": "integer", + "format": "int32", "description": "The maximum allowed percentage of unhealthy deployed applications. Allowed values are Byte values from zero to 100.\nThe percentage represents the maximum tolerated percentage of deployed applications that can be unhealthy before the application is considered in error.\nThis is calculated by dividing the number of unhealthy deployed applications over the number of nodes where the application is currently deployed on in the cluster.\nThe computation rounds up to tolerate one failure on small numbers of nodes. Default percentage is zero.\n", "default": 0 }, @@ -1354,6 +1355,7 @@ "properties": { "maxPercentUnhealthyServices": { "type": "integer", + "format": "int32", "description": "The maximum percentage of services allowed to be unhealthy before your application is considered in error.\n", "default": 0, "minimum": 0, @@ -1361,6 +1363,7 @@ }, "maxPercentUnhealthyPartitionsPerService": { "type": "integer", + "format": "int32", "description": "The maximum percentage of partitions per service allowed to be unhealthy before your application is considered in error.\n", "default": 0, "minimum": 0, @@ -1368,6 +1371,7 @@ }, "maxPercentUnhealthyReplicasPerPartition": { "type": "integer", + "format": "int32", "description": "The maximum percentage of replicas per partition allowed to be unhealthy before your application is considered in error.\n", "default": 0, "minimum": 0, @@ -1536,6 +1540,7 @@ "properties": { "count": { "type": "integer", + "format": "int32", "description": "The number of partitions." }, "names": { @@ -1803,14 +1808,17 @@ }, "primaryDefaultLoad": { "type": "integer", + "format": "int32", "description": "Used only for Stateful services. The default amount of load, as a number, that this service creates for this metric when it is a Primary replica." }, "secondaryDefaultLoad": { "type": "integer", + "format": "int32", "description": "Used only for Stateful services. The default amount of load, as a number, that this service creates for this metric when it is a Secondary replica." }, "defaultLoad": { "type": "integer", + "format": "int32", "description": "Used only for Stateless services. The default amount of load, as a number, that this service creates for this metric." } } @@ -2095,11 +2103,13 @@ }, "targetReplicaSetSize": { "type": "integer", + "format": "int32", "minimum": 1, "description": "The target replica set size as a number." }, "minReplicaSetSize": { "type": "integer", + "format": "int32", "minimum": 1, "description": "The minimum replica set size as a number." }, @@ -2131,11 +2141,13 @@ "properties": { "targetReplicaSetSize": { "type": "integer", + "format": "int32", "minimum": 1, "description": "The target replica set size as a number." }, "minReplicaSetSize": { "type": "integer", + "format": "int32", "minimum": 1, "description": "The minimum replica set size as a number." }, @@ -2167,6 +2179,7 @@ "properties": { "instanceCount": { "type": "integer", + "format": "int32", "minimum": -1, "description": "The instance count." }, @@ -2187,6 +2200,7 @@ "properties": { "instanceCount": { "type": "integer", + "format": "int32", "minimum": -1, "description": "The instance count." }, diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2020-03-01/cluster.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2020-03-01/cluster.json index 23f7371415af..7a1516aac370 100644 --- a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2020-03-01/cluster.json +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2020-03-01/cluster.json @@ -541,6 +541,7 @@ "properties": { "maxUnusedVersionsToKeep": { "type": "integer", + "format": "int64", "minimum": 0, "description": "Number of unused versions per application type to keep." } @@ -758,6 +759,7 @@ "properties": { "maxPercentUnhealthyNodes": { "type": "integer", + "format": "int32", "description": "The maximum allowed percentage of unhealthy nodes before reporting an error. For example, to allow 10% of nodes to be unhealthy, this value would be 10.\n\nThe percentage represents the maximum tolerated percentage of nodes that can be unhealthy before the cluster is considered in error.\nIf the percentage is respected but there is at least one unhealthy node, the health is evaluated as Warning.\nThe percentage is calculated by dividing the number of unhealthy nodes over the total number of nodes in the cluster.\nThe computation rounds up to tolerate one failure on small numbers of nodes. Default percentage is zero.\n\nIn large clusters, some nodes will always be down or out for repairs, so this percentage should be configured to tolerate that.\n", "default": 0, "minimum": 0, @@ -765,6 +767,7 @@ }, "maxPercentUnhealthyApplications": { "type": "integer", + "format": "int32", "description": "The maximum allowed percentage of unhealthy applications before reporting an error. For example, to allow 10% of applications to be unhealthy, this value would be 10.\n\nThe percentage represents the maximum tolerated percentage of applications that can be unhealthy before the cluster is considered in error.\nIf the percentage is respected but there is at least one unhealthy application, the health is evaluated as Warning.\nThis is calculated by dividing the number of unhealthy applications over the total number of application instances in the cluster, excluding applications of application types that are included in the ApplicationTypeHealthPolicyMap.\nThe computation rounds up to tolerate one failure on small numbers of applications. Default percentage is zero.\n", "default": 0, "minimum": 0, @@ -1048,18 +1051,21 @@ "properties": { "maxPercentDeltaUnhealthyNodes": { "type": "integer", + "format": "int32", "description": "The maximum allowed percentage of nodes health degradation allowed during cluster upgrades.\nThe delta is measured between the state of the nodes at the beginning of upgrade and the state of the nodes at the time of the health evaluation.\nThe check is performed after every upgrade domain upgrade completion to make sure the global state of the cluster is within tolerated limits.\n", "minimum": 0, "maximum": 100 }, "maxPercentUpgradeDomainDeltaUnhealthyNodes": { "type": "integer", + "format": "int32", "description": "The maximum allowed percentage of upgrade domain nodes health degradation allowed during cluster upgrades.\nThe delta is measured between the state of the upgrade domain nodes at the beginning of upgrade and the state of the upgrade domain nodes at the time of the health evaluation.\nThe check is performed after every upgrade domain upgrade completion for all completed upgrade domains to make sure the state of the upgrade domains is within tolerated limits.\n", "minimum": 0, "maximum": 100 }, "maxPercentDeltaUnhealthyApplications": { "type": "integer", + "format": "int32", "description": "The maximum allowed percentage of applications health degradation allowed during cluster upgrades.\nThe delta is measured between the state of the applications at the beginning of upgrade and the state of the applications at the time of the health evaluation.\nThe check is performed after every upgrade domain upgrade completion to make sure the global state of the cluster is within tolerated limits. System services are not included in this.\n", "minimum": 0, "maximum": 100 @@ -1190,10 +1196,12 @@ "properties": { "startPort": { "type": "integer", + "format": "int32", "description": "Starting port of a range of ports" }, "endPort": { "type": "integer", + "format": "int32", "description": "End port of a range of ports" } }, @@ -1230,10 +1238,12 @@ }, "clientConnectionEndpointPort": { "type": "integer", + "format": "int32", "description": "The TCP cluster management endpoint port." }, "httpGatewayEndpointPort": { "type": "integer", + "format": "int32", "description": "The HTTP cluster management endpoint port." }, "durabilityLevel": { @@ -1254,12 +1264,14 @@ }, "vmInstanceCount": { "type": "integer", + "format": "int32", "description": "The number of nodes in the node type. This count should match the capacity property in the corresponding VirtualMachineScaleSet resource.", "minimum": 1, "maximum": 2147483647 }, "reverseProxyEndpointPort": { "type": "integer", + "format": "int32", "description": "The endpoint used by reverse proxy." } }, @@ -1397,6 +1409,7 @@ "properties": { "maxPercentDeltaUnhealthyServices": { "type": "integer", + "format": "int32", "description": "The maximum allowed percentage of services health degradation allowed during cluster upgrades.\nThe delta is measured between the state of the services at the beginning of upgrade and the state of the services at the time of the health evaluation.\nThe check is performed after every upgrade domain upgrade completion to make sure the global state of the cluster is within tolerated limits.\n", "default": 0, "minimum": 0, @@ -1498,6 +1511,7 @@ "properties": { "maxPercentUnhealthyServices": { "type": "integer", + "format": "int32", "description": "The maximum percentage of services allowed to be unhealthy before your application is considered in error.\n", "default": 0, "minimum": 0, diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/application.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/application.json index bbabeca9cb81..95939936a2e8 100644 --- a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/application.json +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/application.json @@ -1240,6 +1240,7 @@ }, "maxPercentUnhealthyDeployedApplications": { "type": "integer", + "format": "int32", "description": "The maximum allowed percentage of unhealthy deployed applications. Allowed values are Byte values from zero to 100.\nThe percentage represents the maximum tolerated percentage of deployed applications that can be unhealthy before the application is considered in error.\nThis is calculated by dividing the number of unhealthy deployed applications over the number of nodes where the application is currently deployed on in the cluster.\nThe computation rounds up to tolerate one failure on small numbers of nodes. Default percentage is zero.\n", "default": 0 }, diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/cluster.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/cluster.json index 3cabe7127d9d..6663b76b9b48 100644 --- a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/cluster.json +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/cluster.json @@ -1862,6 +1862,7 @@ "properties": { "maxPercentUnhealthyServices": { "type": "integer", + "format": "int32", "description": "The maximum percentage of services allowed to be unhealthy before your application is considered in error.\n", "default": 0, "minimum": 0, From 9b5d3b6ef1f529bb586817bafc50dce7cbd995e1 Mon Sep 17 00:00:00 2001 From: Alfredo Santamaria Gomez Date: Tue, 20 Jul 2021 11:36:52 -0700 Subject: [PATCH 06/11] more integer formats --- .../preview/2019-11-01-preview/application.json | 15 +++++++++++++++ .../preview/2019-11-01-preview/cluster.json | 14 ++++++++++++++ .../preview/2020-12-01-preview/application.json | 15 +++++++++++++++ .../preview/2020-12-01-preview/cluster.json | 13 +++++++++++++ .../servicefabric/resource-manager/readme.md | 2 -- 5 files changed, 57 insertions(+), 2 deletions(-) diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2019-11-01-preview/application.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2019-11-01-preview/application.json index 6a79aaace023..d61b4a13d154 100644 --- a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2019-11-01-preview/application.json +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2019-11-01-preview/application.json @@ -1288,6 +1288,7 @@ }, "maxPercentUnhealthyDeployedApplications": { "type": "integer", + "format": "int32", "description": "The maximum allowed percentage of unhealthy deployed applications. Allowed values are Byte values from zero to 100.\nThe percentage represents the maximum tolerated percentage of deployed applications that can be unhealthy before the application is considered in error.\nThis is calculated by dividing the number of unhealthy deployed applications over the number of nodes where the application is currently deployed on in the cluster.\nThe computation rounds up to tolerate one failure on small numbers of nodes. Default percentage is zero.\n", "default": 0 }, @@ -1354,6 +1355,7 @@ "properties": { "maxPercentUnhealthyServices": { "type": "integer", + "format": "int32", "description": "The maximum percentage of services allowed to be unhealthy before your application is considered in error.\n", "default": 0, "minimum": 0, @@ -1361,6 +1363,7 @@ }, "maxPercentUnhealthyPartitionsPerService": { "type": "integer", + "format": "int32", "description": "The maximum percentage of partitions per service allowed to be unhealthy before your application is considered in error.\n", "default": 0, "minimum": 0, @@ -1368,6 +1371,7 @@ }, "maxPercentUnhealthyReplicasPerPartition": { "type": "integer", + "format": "int32", "description": "The maximum percentage of replicas per partition allowed to be unhealthy before your application is considered in error.\n", "default": 0, "minimum": 0, @@ -1536,6 +1540,7 @@ "properties": { "count": { "type": "integer", + "format": "int32", "description": "The number of partitions." }, "names": { @@ -1803,14 +1808,17 @@ }, "primaryDefaultLoad": { "type": "integer", + "format": "int32", "description": "Used only for Stateful services. The default amount of load, as a number, that this service creates for this metric when it is a Primary replica." }, "secondaryDefaultLoad": { "type": "integer", + "format": "int32", "description": "Used only for Stateful services. The default amount of load, as a number, that this service creates for this metric when it is a Secondary replica." }, "defaultLoad": { "type": "integer", + "format": "int32", "description": "Used only for Stateless services. The default amount of load, as a number, that this service creates for this metric." } } @@ -2095,11 +2103,13 @@ }, "targetReplicaSetSize": { "type": "integer", + "format": "int32", "minimum": 1, "description": "The target replica set size as a number." }, "minReplicaSetSize": { "type": "integer", + "format": "int32", "minimum": 1, "description": "The minimum replica set size as a number." }, @@ -2131,11 +2141,13 @@ "properties": { "targetReplicaSetSize": { "type": "integer", + "format": "int32", "minimum": 1, "description": "The target replica set size as a number." }, "minReplicaSetSize": { "type": "integer", + "format": "int32", "minimum": 1, "description": "The minimum replica set size as a number." }, @@ -2167,6 +2179,7 @@ "properties": { "instanceCount": { "type": "integer", + "format": "int32", "minimum": -1, "description": "The instance count." }, @@ -2187,6 +2200,7 @@ "properties": { "instanceCount": { "type": "integer", + "format": "int32", "minimum": -1, "description": "The instance count." }, @@ -2237,6 +2251,7 @@ "properties": { "count": { "type": "integer", + "format": "int32", "description": "The number of partitions." }, "lowKey": { diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2019-11-01-preview/cluster.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2019-11-01-preview/cluster.json index fc2967e61b9b..bf5d28d392a8 100644 --- a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2019-11-01-preview/cluster.json +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2019-11-01-preview/cluster.json @@ -541,6 +541,7 @@ "properties": { "maxUnusedVersionsToKeep": { "type": "integer", + "format": "int64", "minimum": 0, "description": "Number of unused versions per application type to keep." } @@ -758,6 +759,7 @@ "properties": { "maxPercentUnhealthyNodes": { "type": "integer", + "format": "int32", "description": "The maximum allowed percentage of unhealthy nodes before reporting an error. For example, to allow 10% of nodes to be unhealthy, this value would be 10.\n\nThe percentage represents the maximum tolerated percentage of nodes that can be unhealthy before the cluster is considered in error.\nIf the percentage is respected but there is at least one unhealthy node, the health is evaluated as Warning.\nThe percentage is calculated by dividing the number of unhealthy nodes over the total number of nodes in the cluster.\nThe computation rounds up to tolerate one failure on small numbers of nodes. Default percentage is zero.\n\nIn large clusters, some nodes will always be down or out for repairs, so this percentage should be configured to tolerate that.\n", "default": 0, "minimum": 0, @@ -765,6 +767,7 @@ }, "maxPercentUnhealthyApplications": { "type": "integer", + "format": "int32", "description": "The maximum allowed percentage of unhealthy applications before reporting an error. For example, to allow 10% of applications to be unhealthy, this value would be 10.\n\nThe percentage represents the maximum tolerated percentage of applications that can be unhealthy before the cluster is considered in error.\nIf the percentage is respected but there is at least one unhealthy application, the health is evaluated as Warning.\nThis is calculated by dividing the number of unhealthy applications over the total number of application instances in the cluster, excluding applications of application types that are included in the ApplicationTypeHealthPolicyMap.\nThe computation rounds up to tolerate one failure on small numbers of applications. Default percentage is zero.\n", "default": 0, "minimum": 0, @@ -1048,18 +1051,21 @@ "properties": { "maxPercentDeltaUnhealthyNodes": { "type": "integer", + "format": "int32", "description": "The maximum allowed percentage of nodes health degradation allowed during cluster upgrades.\nThe delta is measured between the state of the nodes at the beginning of upgrade and the state of the nodes at the time of the health evaluation.\nThe check is performed after every upgrade domain upgrade completion to make sure the global state of the cluster is within tolerated limits.\n", "minimum": 0, "maximum": 100 }, "maxPercentUpgradeDomainDeltaUnhealthyNodes": { "type": "integer", + "format": "int32", "description": "The maximum allowed percentage of upgrade domain nodes health degradation allowed during cluster upgrades.\nThe delta is measured between the state of the upgrade domain nodes at the beginning of upgrade and the state of the upgrade domain nodes at the time of the health evaluation.\nThe check is performed after every upgrade domain upgrade completion for all completed upgrade domains to make sure the state of the upgrade domains is within tolerated limits.\n", "minimum": 0, "maximum": 100 }, "maxPercentDeltaUnhealthyApplications": { "type": "integer", + "format": "int32", "description": "The maximum allowed percentage of applications health degradation allowed during cluster upgrades.\nThe delta is measured between the state of the applications at the beginning of upgrade and the state of the applications at the time of the health evaluation.\nThe check is performed after every upgrade domain upgrade completion to make sure the global state of the cluster is within tolerated limits. System services are not included in this.\n", "minimum": 0, "maximum": 100 @@ -1190,10 +1196,12 @@ "properties": { "startPort": { "type": "integer", + "format": "int32", "description": "Starting port of a range of ports" }, "endPort": { "type": "integer", + "format": "int32", "description": "End port of a range of ports" } }, @@ -1230,10 +1238,12 @@ }, "clientConnectionEndpointPort": { "type": "integer", + "format": "int32", "description": "The TCP cluster management endpoint port." }, "httpGatewayEndpointPort": { "type": "integer", + "format": "int32", "description": "The HTTP cluster management endpoint port." }, "durabilityLevel": { @@ -1254,12 +1264,14 @@ }, "vmInstanceCount": { "type": "integer", + "format": "int32", "description": "The number of nodes in the node type. This count should match the capacity property in the corresponding VirtualMachineScaleSet resource.", "minimum": 1, "maximum": 2147483647 }, "reverseProxyEndpointPort": { "type": "integer", + "format": "int32", "description": "The endpoint used by reverse proxy." } }, @@ -1397,6 +1409,7 @@ "properties": { "maxPercentDeltaUnhealthyServices": { "type": "integer", + "format": "int32", "description": "The maximum allowed percentage of services health degradation allowed during cluster upgrades.\nThe delta is measured between the state of the services at the beginning of upgrade and the state of the services at the time of the health evaluation.\nThe check is performed after every upgrade domain upgrade completion to make sure the global state of the cluster is within tolerated limits.\n", "default": 0, "minimum": 0, @@ -1498,6 +1511,7 @@ "properties": { "maxPercentUnhealthyServices": { "type": "integer", + "format": "int32", "description": "The maximum percentage of services allowed to be unhealthy before your application is considered in error.\n", "default": 0, "minimum": 0, diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-12-01-preview/application.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-12-01-preview/application.json index d1fc7a8f3744..b9a19f0b39ba 100644 --- a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-12-01-preview/application.json +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-12-01-preview/application.json @@ -1252,6 +1252,7 @@ }, "maxPercentUnhealthyDeployedApplications": { "type": "integer", + "format": "int32", "description": "The maximum allowed percentage of unhealthy deployed applications. Allowed values are Byte values from zero to 100.\nThe percentage represents the maximum tolerated percentage of deployed applications that can be unhealthy before the application is considered in error.\nThis is calculated by dividing the number of unhealthy deployed applications over the number of nodes where the application is currently deployed on in the cluster.\nThe computation rounds up to tolerate one failure on small numbers of nodes. Default percentage is zero.\n", "default": 0 }, @@ -1318,6 +1319,7 @@ "properties": { "maxPercentUnhealthyServices": { "type": "integer", + "format": "int32", "description": "The maximum percentage of services allowed to be unhealthy before your application is considered in error.\n", "default": 0, "minimum": 0, @@ -1325,6 +1327,7 @@ }, "maxPercentUnhealthyPartitionsPerService": { "type": "integer", + "format": "int32", "description": "The maximum percentage of partitions per service allowed to be unhealthy before your application is considered in error.\n", "default": 0, "minimum": 0, @@ -1332,6 +1335,7 @@ }, "maxPercentUnhealthyReplicasPerPartition": { "type": "integer", + "format": "int32", "description": "The maximum percentage of replicas per partition allowed to be unhealthy before your application is considered in error.\n", "default": 0, "minimum": 0, @@ -1500,6 +1504,7 @@ "properties": { "count": { "type": "integer", + "format": "int32", "description": "The number of partitions." }, "names": { @@ -1732,14 +1737,17 @@ }, "primaryDefaultLoad": { "type": "integer", + "format": "int32", "description": "Used only for Stateful services. The default amount of load, as a number, that this service creates for this metric when it is a Primary replica." }, "secondaryDefaultLoad": { "type": "integer", + "format": "int32", "description": "Used only for Stateful services. The default amount of load, as a number, that this service creates for this metric when it is a Secondary replica." }, "defaultLoad": { "type": "integer", + "format": "int32", "description": "Used only for Stateless services. The default amount of load, as a number, that this service creates for this metric." } } @@ -2024,11 +2032,13 @@ }, "targetReplicaSetSize": { "type": "integer", + "format": "int32", "minimum": 1, "description": "The target replica set size as a number." }, "minReplicaSetSize": { "type": "integer", + "format": "int32", "minimum": 1, "description": "The minimum replica set size as a number." }, @@ -2060,11 +2070,13 @@ "properties": { "targetReplicaSetSize": { "type": "integer", + "format": "int32", "minimum": 1, "description": "The target replica set size as a number." }, "minReplicaSetSize": { "type": "integer", + "format": "int32", "minimum": 1, "description": "The minimum replica set size as a number." }, @@ -2096,6 +2108,7 @@ "properties": { "instanceCount": { "type": "integer", + "format": "int32", "minimum": -1, "description": "The instance count." }, @@ -2116,6 +2129,7 @@ "properties": { "instanceCount": { "type": "integer", + "format": "int32", "minimum": -1, "description": "The instance count." }, @@ -2166,6 +2180,7 @@ "properties": { "count": { "type": "integer", + "format": "int32", "description": "The number of partitions." }, "lowKey": { diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-12-01-preview/cluster.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-12-01-preview/cluster.json index 49d08284e473..dd8a41f73759 100644 --- a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-12-01-preview/cluster.json +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-12-01-preview/cluster.json @@ -596,6 +596,7 @@ "properties": { "maxUnusedVersionsToKeep": { "type": "integer", + "format": "int64", "minimum": 0, "description": "Number of unused versions per application type to keep." } @@ -807,6 +808,7 @@ "properties": { "maxPercentUnhealthyNodes": { "type": "integer", + "format": "int32", "description": "The maximum allowed percentage of unhealthy nodes before reporting an error. For example, to allow 10% of nodes to be unhealthy, this value would be 10.\n\nThe percentage represents the maximum tolerated percentage of nodes that can be unhealthy before the cluster is considered in error.\nIf the percentage is respected but there is at least one unhealthy node, the health is evaluated as Warning.\nThe percentage is calculated by dividing the number of unhealthy nodes over the total number of nodes in the cluster.\nThe computation rounds up to tolerate one failure on small numbers of nodes. Default percentage is zero.\n\nIn large clusters, some nodes will always be down or out for repairs, so this percentage should be configured to tolerate that.\n", "default": 0, "minimum": 0, @@ -814,6 +816,7 @@ }, "maxPercentUnhealthyApplications": { "type": "integer", + "format": "int32", "description": "The maximum allowed percentage of unhealthy applications before reporting an error. For example, to allow 10% of applications to be unhealthy, this value would be 10.\n\nThe percentage represents the maximum tolerated percentage of applications that can be unhealthy before the cluster is considered in error.\nIf the percentage is respected but there is at least one unhealthy application, the health is evaluated as Warning.\nThis is calculated by dividing the number of unhealthy applications over the total number of application instances in the cluster, excluding applications of application types that are included in the ApplicationTypeHealthPolicyMap.\nThe computation rounds up to tolerate one failure on small numbers of applications. Default percentage is zero.\n", "default": 0, "minimum": 0, @@ -1097,18 +1100,21 @@ "properties": { "maxPercentDeltaUnhealthyNodes": { "type": "integer", + "format": "int32", "description": "The maximum allowed percentage of nodes health degradation allowed during cluster upgrades.\nThe delta is measured between the state of the nodes at the beginning of upgrade and the state of the nodes at the time of the health evaluation.\nThe check is performed after every upgrade domain upgrade completion to make sure the global state of the cluster is within tolerated limits.\n", "minimum": 0, "maximum": 100 }, "maxPercentUpgradeDomainDeltaUnhealthyNodes": { "type": "integer", + "format": "int32", "description": "The maximum allowed percentage of upgrade domain nodes health degradation allowed during cluster upgrades.\nThe delta is measured between the state of the upgrade domain nodes at the beginning of upgrade and the state of the upgrade domain nodes at the time of the health evaluation.\nThe check is performed after every upgrade domain upgrade completion for all completed upgrade domains to make sure the state of the upgrade domains is within tolerated limits.\n", "minimum": 0, "maximum": 100 }, "maxPercentDeltaUnhealthyApplications": { "type": "integer", + "format": "int32", "description": "The maximum allowed percentage of applications health degradation allowed during cluster upgrades.\nThe delta is measured between the state of the applications at the beginning of upgrade and the state of the applications at the time of the health evaluation.\nThe check is performed after every upgrade domain upgrade completion to make sure the global state of the cluster is within tolerated limits. System services are not included in this.\n", "minimum": 0, "maximum": 100 @@ -1239,10 +1245,12 @@ "properties": { "startPort": { "type": "integer", + "format": "int32", "description": "Starting port of a range of ports" }, "endPort": { "type": "integer", + "format": "int32", "description": "End port of a range of ports" } }, @@ -1279,10 +1287,12 @@ }, "clientConnectionEndpointPort": { "type": "integer", + "format": "int32", "description": "The TCP cluster management endpoint port." }, "httpGatewayEndpointPort": { "type": "integer", + "format": "int32", "description": "The HTTP cluster management endpoint port." }, "durabilityLevel": { @@ -1303,12 +1313,14 @@ }, "vmInstanceCount": { "type": "integer", + "format": "int32", "description": "The number of nodes in the node type. This count should match the capacity property in the corresponding VirtualMachineScaleSet resource.", "minimum": 1, "maximum": 2147483647 }, "reverseProxyEndpointPort": { "type": "integer", + "format": "int32", "description": "The endpoint used by reverse proxy." } }, @@ -1453,6 +1465,7 @@ "properties": { "maxPercentDeltaUnhealthyServices": { "type": "integer", + "format": "int32", "description": "The maximum allowed percentage of services health degradation allowed during cluster upgrades.\nThe delta is measured between the state of the services at the beginning of upgrade and the state of the services at the time of the health evaluation.\nThe check is performed after every upgrade domain upgrade completion to make sure the global state of the cluster is within tolerated limits.\n", "default": 0, "minimum": 0, diff --git a/specification/servicefabric/resource-manager/readme.md b/specification/servicefabric/resource-manager/readme.md index 300a20263ad7..d7f8e4e4bafc 100644 --- a/specification/servicefabric/resource-manager/readme.md +++ b/specification/servicefabric/resource-manager/readme.md @@ -77,8 +77,6 @@ These settings apply only when `--tag=package-2020-03` is specified on the comma input-file: - Microsoft.ServiceFabric/stable/2020-03-01/cluster.json - Microsoft.ServiceFabric/stable/2020-03-01/application.json -- Microsoft.ServiceFabric/preview/2020-01-01-preview/managedcluster.json -- Microsoft.ServiceFabric/preview/2020-01-01-preview/nodetype.json ``` ### Tag: package-2020-12-preview From b92ef836f0bd26f491c77777e8adac9f16c5d772 Mon Sep 17 00:00:00 2001 From: Alfredo Santamaria Gomez Date: Tue, 20 Jul 2021 14:17:29 -0700 Subject: [PATCH 07/11] add type object --- .../preview/2020-01-01-preview/managedcluster.json | 7 +++++++ .../preview/2020-01-01-preview/nodetype.json | 2 ++ .../preview/2020-12-01-preview/cluster.json | 1 + .../stable/2020-03-01/application.json | 1 + .../stable/2021-06-01/application.json | 8 ++++++++ .../stable/2021-06-01/cluster.json | 14 ++++++++++++++ 6 files changed, 33 insertions(+) diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-01-01-preview/managedcluster.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-01-01-preview/managedcluster.json index 96b9f6b5dd15..564876224f8e 100644 --- a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-01-01-preview/managedcluster.json +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-01-01-preview/managedcluster.json @@ -866,6 +866,7 @@ "properties": { "maxPercentUnhealthyNodes": { "type": "integer", + "format": "int32", "description": "The maximum allowed percentage of unhealthy nodes before reporting an error. For example, to allow 10% of nodes to be unhealthy, this value would be 10.\n\nThe percentage represents the maximum tolerated percentage of nodes that can be unhealthy before the cluster is considered in error.\nIf the percentage is respected but there is at least one unhealthy node, the health is evaluated as Warning.\nThe percentage is calculated by dividing the number of unhealthy nodes over the total number of nodes in the cluster.\nThe computation rounds up to tolerate one failure on small numbers of nodes. Default percentage is zero.\n\nIn large clusters, some nodes will always be down or out for repairs, so this percentage should be configured to tolerate that.\n", "default": 0, "minimum": 0, @@ -873,6 +874,7 @@ }, "maxPercentUnhealthyApplications": { "type": "integer", + "format": "int32", "description": "The maximum allowed percentage of unhealthy applications before reporting an error. For example, to allow 10% of applications to be unhealthy, this value would be 10.\n\nThe percentage represents the maximum tolerated percentage of applications that can be unhealthy before the cluster is considered in error.\nIf the percentage is respected but there is at least one unhealthy application, the health is evaluated as Warning.\nThis is calculated by dividing the number of unhealthy applications over the total number of application instances in the cluster, excluding applications of application types that are included in the ApplicationTypeHealthPolicyMap.\nThe computation rounds up to tolerate one failure on small numbers of applications. Default percentage is zero.\n", "default": 0, "minimum": 0, @@ -894,18 +896,21 @@ "properties": { "maxPercentDeltaUnhealthyNodes": { "type": "integer", + "format": "int32", "description": "The maximum allowed percentage of nodes health degradation allowed during cluster upgrades.\nThe delta is measured between the state of the nodes at the beginning of upgrade and the state of the nodes at the time of the health evaluation.\nThe check is performed after every upgrade domain upgrade completion to make sure the global state of the cluster is within tolerated limits.\n", "minimum": 0, "maximum": 100 }, "maxPercentUpgradeDomainDeltaUnhealthyNodes": { "type": "integer", + "format": "int32", "description": "The maximum allowed percentage of upgrade domain nodes health degradation allowed during cluster upgrades.\nThe delta is measured between the state of the upgrade domain nodes at the beginning of upgrade and the state of the upgrade domain nodes at the time of the health evaluation.\nThe check is performed after every upgrade domain upgrade completion for all completed upgrade domains to make sure the state of the upgrade domains is within tolerated limits.\n", "minimum": 0, "maximum": 100 }, "maxPercentDeltaUnhealthyApplications": { "type": "integer", + "format": "int32", "description": "The maximum allowed percentage of applications health degradation allowed during cluster upgrades.\nThe delta is measured between the state of the applications at the beginning of upgrade and the state of the applications at the time of the health evaluation.\nThe check is performed after every upgrade domain upgrade completion to make sure the global state of the cluster is within tolerated limits. System services are not included in this.\n", "minimum": 0, "maximum": 100 @@ -1092,6 +1097,7 @@ "properties": { "maxPercentDeltaUnhealthyServices": { "type": "integer", + "format": "int32", "description": "The maximum allowed percentage of services health degradation allowed during cluster upgrades.\nThe delta is measured between the state of the services at the beginning of upgrade and the state of the services at the time of the health evaluation.\nThe check is performed after every upgrade domain upgrade completion to make sure the global state of the cluster is within tolerated limits.\n", "default": 0, "minimum": 0, @@ -1112,6 +1118,7 @@ "properties": { "maxPercentUnhealthyServices": { "type": "integer", + "format": "int32", "description": "The maximum percentage of services allowed to be unhealthy before your application is considered in error.\n", "default": 0, "minimum": 0, diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-01-01-preview/nodetype.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-01-01-preview/nodetype.json index c57c049f0f13..24f3e2f52834 100644 --- a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-01-01-preview/nodetype.json +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-01-01-preview/nodetype.json @@ -919,10 +919,12 @@ "properties": { "startPort": { "type": "integer", + "format": "int32", "description": "Starting port of a range of ports" }, "endPort": { "type": "integer", + "format": "int32", "description": "End port of a range of ports" } }, diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-12-01-preview/cluster.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-12-01-preview/cluster.json index dd8a41f73759..32e3b35d2d57 100644 --- a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-12-01-preview/cluster.json +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-12-01-preview/cluster.json @@ -1590,6 +1590,7 @@ "properties": { "maxPercentUnhealthyServices": { "type": "integer", + "format": "int32", "description": "The maximum percentage of services allowed to be unhealthy before your application is considered in error.\n", "default": 0, "minimum": 0, diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2020-03-01/application.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2020-03-01/application.json index f26cd0398a38..73eeb9431ca1 100644 --- a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2020-03-01/application.json +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2020-03-01/application.json @@ -2251,6 +2251,7 @@ "properties": { "count": { "type": "integer", + "format": "int32", "description": "The number of partitions." }, "lowKey": { diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/application.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/application.json index 95939936a2e8..3c7cdd79de19 100644 --- a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/application.json +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/application.json @@ -977,6 +977,7 @@ } }, "ApplicationResource": { + "type": "object", "description": "The application resource.", "properties": { "identity": { @@ -994,6 +995,7 @@ ] }, "ApplicationResourceList": { + "type": "object", "description": "The list of application resources.", "properties": { "value": { @@ -1010,6 +1012,7 @@ } }, "ApplicationResourceProperties": { + "type": "object", "description": "The application resource properties.", "allOf": [ { @@ -1028,6 +1031,7 @@ } }, "ApplicationResourceUpdate": { + "type": "object", "description": "The application resource for patch operations.", "properties": { "properties": { @@ -1042,6 +1046,7 @@ ] }, "ApplicationResourceUpdateProperties": { + "type": "object", "description": "The application resource properties for patch operations.", "properties": { "typeVersion": { @@ -1094,6 +1099,7 @@ } }, "ApplicationTypeResource": { + "type": "object", "description": "The application type name resource", "properties": { "properties": { @@ -2154,6 +2160,7 @@ "default": "P10675199DT02H48M05.4775807S" }, "ErrorModel": { + "type": "object", "properties": { "error": { "$ref": "#/definitions/ErrorModelError" @@ -2162,6 +2169,7 @@ "description": "The structure of the error." }, "ErrorModelError": { + "type": "object", "properties": { "code": { "type": "string", diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/cluster.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/cluster.json index 6663b76b9b48..7f1b23b655c0 100644 --- a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/cluster.json +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/cluster.json @@ -1231,6 +1231,7 @@ "description": "Indicates when new cluster runtime version upgrades will be applied after they are released. By default is Wave0." }, "ClusterUpgradePolicy": { + "type": "object", "required": [ "healthCheckRetryTimeout", "healthCheckStableDuration", @@ -1281,6 +1282,7 @@ "description": "Describes the policy used when upgrading the cluster." }, "ClusterVersionDetails": { + "type": "object", "properties": { "codeVersion": { "type": "string", @@ -1298,6 +1300,7 @@ "description": "The detail of the Service Fabric runtime version result" }, "DiagnosticsStorageAccountConfig": { + "type": "object", "required": [ "blobEndpoint", "protectedAccountKeyName", @@ -1343,6 +1346,7 @@ ] }, "EndpointRangeDescription": { + "type": "object", "required": [ "endPort", "startPort" @@ -1362,6 +1366,7 @@ "description": "Port range details" }, "NodeTypeDescription": { + "type": "object", "required": [ "clientConnectionEndpointPort", "httpGatewayEndpointPort", @@ -1540,6 +1545,7 @@ "description": "Describes the notification target properties." }, "OperationListResult": { + "type": "object", "properties": { "value": { "type": "array", @@ -1557,6 +1563,7 @@ "description": "Describes the result of the request to list Service Fabric resource provider operations." }, "OperationResult": { + "type": "object", "properties": { "name": { "type": "string", @@ -1593,6 +1600,7 @@ ] }, "Resource": { + "type": "object", "required": [ "location" ], @@ -1640,6 +1648,7 @@ "x-ms-azure-resource": true }, "ServerCertificateCommonName": { + "type": "object", "description": "Describes the server certificate details using common name.", "required": [ "certificateCommonName", @@ -1657,6 +1666,7 @@ } }, "ServerCertificateCommonNames": { + "type": "object", "description": "Describes a list of server certificates referenced by common name that are used to secure the cluster.", "properties": { "commonNames": { @@ -1693,6 +1703,7 @@ } }, "SettingsParameterDescription": { + "type": "object", "required": [ "name", "value" @@ -1710,6 +1721,7 @@ "description": "Describes a parameter in fabric settings of the cluster." }, "SettingsSectionDescription": { + "type": "object", "required": [ "name", "parameters" @@ -1836,6 +1848,7 @@ "description": "This property defines the upgrade mode for the virtual machine scale set, it is mandatory if a node type with multiple Availability Zones is added." }, "ErrorModel": { + "type": "object", "properties": { "error": { "$ref": "#/definitions/ErrorModelError" @@ -1844,6 +1857,7 @@ "description": "The structure of the error." }, "ErrorModelError": { + "type": "object", "properties": { "code": { "type": "string", From 5dd6d46dda587a7fcf3e5d18256c4b7aad87c613 Mon Sep 17 00:00:00 2001 From: Alfredo Santamaria Gomez Date: Tue, 20 Jul 2021 15:26:21 -0700 Subject: [PATCH 08/11] more type object --- .../preview/2020-12-01-preview/cluster.json | 16 ++++++++++++++ .../stable/2021-06-01/application.json | 21 +++++++++++++++++++ 2 files changed, 37 insertions(+) diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-12-01-preview/cluster.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-12-01-preview/cluster.json index 32e3b35d2d57..85836eefea72 100644 --- a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-12-01-preview/cluster.json +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-12-01-preview/cluster.json @@ -1126,6 +1126,7 @@ } }, "ClusterUpgradePolicy": { + "type": "object", "required": [ "healthCheckRetryTimeout", "healthCheckStableDuration", @@ -1176,6 +1177,7 @@ "description": "Describes the policy used when upgrading the cluster." }, "ClusterVersionDetails": { + "type": "object", "properties": { "codeVersion": { "type": "string", @@ -1193,6 +1195,7 @@ "description": "The detail of the Service Fabric runtime version result" }, "DiagnosticsStorageAccountConfig": { + "type": "object", "required": [ "blobEndpoint", "protectedAccountKeyName", @@ -1238,6 +1241,7 @@ ] }, "EndpointRangeDescription": { + "type": "object", "required": [ "endPort", "startPort" @@ -1257,6 +1261,7 @@ "description": "Port range details" }, "NodeTypeDescription": { + "type": "object", "required": [ "clientConnectionEndpointPort", "httpGatewayEndpointPort", @@ -1327,6 +1332,7 @@ "description": "Describes a node type in the cluster, each node type represents sub set of nodes in the cluster." }, "OperationListResult": { + "type": "object", "properties": { "value": { "type": "array", @@ -1344,6 +1350,7 @@ "description": "Describes the result of the request to list Service Fabric resource provider operations." }, "OperationResult": { + "type": "object", "properties": { "name": { "type": "string", @@ -1380,6 +1387,7 @@ ] }, "Resource": { + "type": "object", "required": [ "location" ], @@ -1427,6 +1435,7 @@ "x-ms-azure-resource": true }, "ServerCertificateCommonName": { + "type": "object", "description": "Describes the server certificate details using common name.", "required": [ "certificateCommonName", @@ -1444,6 +1453,7 @@ } }, "ServerCertificateCommonNames": { + "type": "object", "description": "Describes a list of server certificates referenced by common name that are used to secure the cluster.", "properties": { "commonNames": { @@ -1481,6 +1491,7 @@ } }, "SettingsParameterDescription": { + "type": "object", "required": [ "name", "value" @@ -1498,6 +1509,7 @@ "description": "Describes a parameter in fabric settings of the cluster." }, "SettingsSectionDescription": { + "type": "object", "required": [ "name", "parameters" @@ -1532,6 +1544,7 @@ ] }, "UpgradableVersionPathResult": { + "type": "object", "properties": { "supportedPath": { "type": "array", @@ -1544,6 +1557,7 @@ "description": "The list of intermediate cluster code versions for an upgrade or downgrade. Or minimum and maximum upgradable version if no target was given" }, "UpgradableVersionsDescription": { + "type": "object", "required": [ "targetVersion" ], @@ -1563,6 +1577,7 @@ ] }, "ErrorModel": { + "type": "object", "properties": { "error": { "$ref": "#/definitions/ErrorModelError", @@ -1572,6 +1587,7 @@ "description": "The structure of the error." }, "ErrorModelError": { + "type": "object", "properties": { "code": { "type": "string", diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/application.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/application.json index 3c7cdd79de19..734d3e2a409c 100644 --- a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/application.json +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/application.json @@ -1114,6 +1114,7 @@ ] }, "ApplicationTypeResourceList": { + "type": "object", "description": "The list of application type names.", "properties": { "value": { @@ -1130,6 +1131,7 @@ } }, "ApplicationTypeResourceProperties": { + "type": "object", "description": "The application type name properties", "properties": { "provisioningState": { @@ -1144,6 +1146,7 @@ "description": "The version of the application type as defined in the application manifest." }, "ApplicationTypeVersionResource": { + "type": "object", "description": "An application type version resource for the specified application type name resource.", "properties": { "properties": { @@ -1158,6 +1161,7 @@ ] }, "ApplicationTypeVersionResourceList": { + "type": "object", "description": "The list of application type version resources for the specified application type name resource.", "properties": { "value": { @@ -1174,6 +1178,7 @@ } }, "ApplicationTypeVersionResourceProperties": { + "type": "object", "description": "The properties of the application type version resource.", "required": [ "appPackageUrl" @@ -1195,6 +1200,7 @@ } }, "ApplicationUpgradePolicy": { + "type": "object", "description": "Describes the policy for a monitored application upgrade.", "properties": { "upgradeReplicaSetCheckTimeout": { @@ -1220,6 +1226,7 @@ } }, "ApplicationUserAssignedIdentity": { + "type": "object", "required": [ "name", "principalId" @@ -1261,6 +1268,7 @@ } }, "ArmRollingUpgradeMonitoringPolicy": { + "type": "object", "description": "The policy used for monitoring the application upgrade", "properties": { "failureAction": { @@ -1367,6 +1375,7 @@ "default": "0" }, "ManagedIdentity": { + "type": "object", "description": "Describes the managed identities for an Azure resource.", "properties": { "principalId": { @@ -1452,6 +1461,7 @@ } }, "NamedPartitionSchemeDescription": { + "type": "object", "description": "Describes the named partition scheme of the service.", "allOf": [ { @@ -1529,6 +1539,7 @@ } }, "ProxyResource": { + "type": "object", "properties": { "id": { "type": "string", @@ -1838,6 +1849,7 @@ ] }, "ServiceResourceList": { + "type": "object", "description": "The list of service resources.", "properties": { "value": { @@ -1854,6 +1866,7 @@ } }, "ServiceResourceProperties": { + "type": "object", "description": "The service resource properties.", "allOf": [ { @@ -1909,6 +1922,7 @@ } }, "ServiceResourcePropertiesBase": { + "type": "object", "description": "The common service resource properties.", "properties": { "placementConstraints": { @@ -1930,6 +1944,7 @@ } }, "ServiceResourceUpdate": { + "type": "object", "description": "The service resource for patch operations.", "properties": { "properties": { @@ -1944,6 +1959,7 @@ ] }, "ServiceResourceUpdateProperties": { + "type": "object", "description": "The service resource properties for patch operations.", "allOf": [ { @@ -1974,6 +1990,7 @@ "x-ms-discriminator-value": "Singleton" }, "StatefulServiceProperties": { + "type": "object", "description": "The properties of a stateful service resource.", "allOf": [ { @@ -2016,6 +2033,7 @@ } }, "StatefulServiceUpdateProperties": { + "type": "object", "description": "The properties of a stateful service resource for patch operations.", "allOf": [ { @@ -2054,6 +2072,7 @@ } }, "StatelessServiceProperties": { + "type": "object", "description": "The properties of a stateless service resource.", "allOf": [ { @@ -2075,6 +2094,7 @@ } }, "StatelessServiceUpdateProperties": { + "type": "object", "description": "The properties of a stateless service resource for patch operations.", "allOf": [ { @@ -2117,6 +2137,7 @@ } }, "UniformInt64RangePartitionSchemeDescription": { + "type": "object", "description": "Describes a partitioning scheme where an integer range is allocated evenly across a number of partitions.", "allOf": [ { From 9d4f22532effdf36bd46291744a80f29b1f0782d Mon Sep 17 00:00:00 2001 From: Alfredo Santamaria Gomez Date: Tue, 20 Jul 2021 16:41:57 -0700 Subject: [PATCH 09/11] more type object --- .../stable/2020-03-01/application.json | 35 +++++++++++++++++++ .../stable/2020-03-01/cluster.json | 21 +++++++++++ .../stable/2021-06-01/application.json | 2 ++ 3 files changed, 58 insertions(+) diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2020-03-01/application.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2020-03-01/application.json index 73eeb9431ca1..1c41c2d6be1b 100644 --- a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2020-03-01/application.json +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2020-03-01/application.json @@ -1010,6 +1010,7 @@ } }, "ApplicationResource": { + "type": "object", "description": "The application resource.", "properties": { "identity": { @@ -1029,6 +1030,7 @@ ] }, "ApplicationResourceList": { + "type": "object", "description": "The list of application resources.", "properties": { "value": { @@ -1045,6 +1047,7 @@ } }, "ApplicationResourceProperties": { + "type": "object", "description": "The application resource properties.", "allOf": [ { @@ -1064,6 +1067,7 @@ } }, "ApplicationResourceUpdate": { + "type": "object", "description": "The application resource for patch operations.", "properties": { "properties": { @@ -1079,6 +1083,7 @@ ] }, "ApplicationResourceUpdateProperties": { + "type": "object", "description": "The application resource properties for patch operations.", "properties": { "typeVersion": { @@ -1135,6 +1140,7 @@ } }, "ApplicationTypeResource": { + "type": "object", "description": "The application type name resource", "properties": { "properties": { @@ -1150,6 +1156,7 @@ ] }, "ApplicationTypeResourceList": { + "type": "object", "description": "The list of application type names.", "properties": { "value": { @@ -1166,6 +1173,7 @@ } }, "ApplicationTypeResourceProperties": { + "type": "object", "description": "The application type name properties", "properties": { "provisioningState": { @@ -1180,6 +1188,7 @@ "description": "The version of the application type as defined in the application manifest." }, "ApplicationTypeVersionResource": { + "type": "object", "description": "An application type version resource for the specified application type name resource.", "properties": { "properties": { @@ -1195,6 +1204,7 @@ ] }, "ApplicationTypeVersionResourceList": { + "type": "object", "description": "The list of application type version resources for the specified application type name resource.", "properties": { "value": { @@ -1211,6 +1221,7 @@ } }, "ApplicationTypeVersionResourceProperties": { + "type": "object", "description": "The properties of the application type version resource.", "required": [ "appPackageUrl" @@ -1233,6 +1244,7 @@ } }, "ApplicationUpgradePolicy": { + "type": "object", "description": "Describes the policy for a monitored application upgrade.", "properties": { "upgradeReplicaSetCheckTimeout": { @@ -1262,6 +1274,7 @@ } }, "ApplicationUserAssignedIdentity": { + "type": "object", "required": [ "name", "principalId" @@ -1303,6 +1316,7 @@ } }, "ArmRollingUpgradeMonitoringPolicy": { + "type": "object", "description": "The policy used for monitoring the application upgrade", "properties": { "failureAction": { @@ -1387,6 +1401,7 @@ } }, "AvailableOperationDisplay": { + "type": "object", "properties": { "provider": { "type": "string", @@ -1435,6 +1450,7 @@ "default": "0" }, "ManagedIdentity": { + "type": "object", "description": "Describes the managed identities for an Azure resource.", "properties": { "principalId": { @@ -1522,6 +1538,7 @@ } }, "NamedPartitionSchemeDescription": { + "type": "object", "description": "Describes the named partition scheme of the service.", "allOf": [ { @@ -1553,6 +1570,7 @@ } }, "OperationListResult": { + "type": "object", "properties": { "value": { "type": "array", @@ -1570,6 +1588,7 @@ "description": "Describes the result of the request to list Service Fabric resource provider operations." }, "OperationResult": { + "type": "object", "properties": { "name": { "type": "string", @@ -1637,6 +1656,7 @@ } }, "ProxyResource": { + "type": "object", "properties": { "id": { "type": "string", @@ -1930,6 +1950,7 @@ } }, "ServiceResource": { + "type": "object", "description": "The service resource.", "properties": { "properties": { @@ -1945,6 +1966,7 @@ ] }, "ServiceResourceList": { + "type": "object", "description": "The list of service resources.", "properties": { "value": { @@ -1961,6 +1983,7 @@ } }, "ServiceResourceProperties": { + "type": "object", "description": "The service resource properties.", "allOf": [ { @@ -2018,6 +2041,7 @@ } }, "ServiceResourcePropertiesBase": { + "type": "object", "description": "The common service resource properties.", "properties": { "placementConstraints": { @@ -2043,6 +2067,7 @@ } }, "ServiceResourceUpdate": { + "type": "object", "description": "The service resource for patch operations.", "properties": { "properties": { @@ -2058,6 +2083,7 @@ ] }, "ServiceResourceUpdateProperties": { + "type": "object", "description": "The service resource properties for patch operations.", "allOf": [ { @@ -2076,6 +2102,7 @@ } }, "SingletonPartitionSchemeDescription": { + "type": "object", "description": "Describes the partition scheme of a singleton-partitioned, or non-partitioned service.", "allOf": [ { @@ -2089,6 +2116,7 @@ "x-ms-discriminator-value": "Singleton" }, "StatefulServiceProperties": { + "type": "object", "description": "The properties of a stateful service resource.", "allOf": [ { @@ -2131,6 +2159,7 @@ } }, "StatefulServiceUpdateProperties": { + "type": "object", "description": "The properties of a stateful service resource for patch operations.", "allOf": [ { @@ -2169,6 +2198,7 @@ } }, "StatelessServiceProperties": { + "type": "object", "description": "The properties of a stateless service resource.", "allOf": [ { @@ -2190,6 +2220,7 @@ } }, "StatelessServiceUpdateProperties": { + "type": "object", "description": "The properties of a stateless service resource for patch operations.", "allOf": [ { @@ -2211,6 +2242,7 @@ } }, "UserAssignedIdentity": { + "type": "object", "properties": { "principalId": { "type": "string", @@ -2232,6 +2264,7 @@ } }, "UniformInt64RangePartitionSchemeDescription": { + "type": "object", "description": "Describes a partitioning scheme where an integer range is allocated evenly across a number of partitions.", "allOf": [ { @@ -2275,6 +2308,7 @@ "default": "P10675199DT02H48M05.4775807S" }, "ErrorModel": { + "type": "object", "properties": { "error": { "$ref": "#/definitions/ErrorModelError", @@ -2284,6 +2318,7 @@ "description": "The structure of the error." }, "ErrorModelError": { + "type": "object", "properties": { "code": { "type": "string", diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2020-03-01/cluster.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2020-03-01/cluster.json index 7a1516aac370..1785661fbcd0 100644 --- a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2020-03-01/cluster.json +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2020-03-01/cluster.json @@ -709,6 +709,7 @@ } }, "ClusterCodeVersionsListResult": { + "type": "object", "properties": { "value": { "type": "array", @@ -724,6 +725,7 @@ "description": "The list results of the Service Fabric runtime versions." }, "ClusterCodeVersionsResult": { + "type": "object", "properties": { "id": { "type": "string", @@ -780,6 +782,7 @@ } }, "ClusterListResult": { + "type": "object", "properties": { "value": { "type": "array", @@ -795,6 +798,7 @@ "description": "Cluster list results" }, "ClusterProperties": { + "type": "object", "required": [ "managementEndpoint", "nodeTypes" @@ -933,6 +937,7 @@ "description": "Describes the cluster resource properties." }, "ClusterPropertiesUpdateParameters": { + "type": "object", "properties": { "addOnFeatures": { "type": "array", @@ -1025,6 +1030,7 @@ ] }, "ClusterUpdateParameters": { + "type": "object", "properties": { "properties": { "x-ms-client-flatten": true, @@ -1042,6 +1048,7 @@ "description": "Cluster update request" }, "ClusterUpgradeDeltaHealthPolicy": { + "type": "object", "description": "Describes the delta health policies for the cluster upgrade.", "required": [ "maxPercentDeltaUnhealthyApplications", @@ -1077,6 +1084,7 @@ } }, "ClusterUpgradePolicy": { + "type": "object", "required": [ "healthCheckRetryTimeout", "healthCheckStableDuration", @@ -1127,6 +1135,7 @@ "description": "Describes the policy used when upgrading the cluster." }, "ClusterVersionDetails": { + "type": "object", "properties": { "codeVersion": { "type": "string", @@ -1144,6 +1153,7 @@ "description": "The detail of the Service Fabric runtime version result" }, "DiagnosticsStorageAccountConfig": { + "type": "object", "required": [ "blobEndpoint", "protectedAccountKeyName", @@ -1189,6 +1199,7 @@ ] }, "EndpointRangeDescription": { + "type": "object", "required": [ "endPort", "startPort" @@ -1208,6 +1219,7 @@ "description": "Port range details" }, "NodeTypeDescription": { + "type": "object", "required": [ "clientConnectionEndpointPort", "httpGatewayEndpointPort", @@ -1278,6 +1290,7 @@ "description": "Describes a node type in the cluster, each node type represents sub set of nodes in the cluster." }, "OperationListResult": { + "type": "object", "properties": { "value": { "type": "array", @@ -1295,6 +1308,7 @@ "description": "Describes the result of the request to list Service Fabric resource provider operations." }, "OperationResult": { + "type": "object", "properties": { "name": { "type": "string", @@ -1327,6 +1341,7 @@ ] }, "Resource": { + "type": "object", "required": [ "location" ], @@ -1371,6 +1386,7 @@ "x-ms-azure-resource": true }, "ServerCertificateCommonName": { + "type": "object", "description": "Describes the server certificate details using common name.", "required": [ "certificateCommonName", @@ -1388,6 +1404,7 @@ } }, "ServerCertificateCommonNames": { + "type": "object", "description": "Describes a list of server certificates referenced by common name that are used to secure the cluster.", "properties": { "commonNames": { @@ -1425,6 +1442,7 @@ } }, "SettingsParameterDescription": { + "type": "object", "required": [ "name", "value" @@ -1442,6 +1460,7 @@ "description": "Describes a parameter in fabric settings of the cluster." }, "SettingsSectionDescription": { + "type": "object", "required": [ "name", "parameters" @@ -1484,6 +1503,7 @@ ] }, "ErrorModel": { + "type": "object", "properties": { "error": { "$ref": "#/definitions/ErrorModelError", @@ -1493,6 +1513,7 @@ "description": "The structure of the error." }, "ErrorModelError": { + "type": "object", "properties": { "code": { "type": "string", diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/application.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/application.json index 734d3e2a409c..20c393cfcfa4 100644 --- a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/application.json +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/application.json @@ -1835,6 +1835,7 @@ } }, "ServiceResource": { + "type": "object", "description": "The service resource.", "properties": { "properties": { @@ -2116,6 +2117,7 @@ } }, "UserAssignedIdentity": { + "type": "object", "properties": { "principalId": { "type": "string", From 3ab80c006963f801df26fc59623e35edcd060466 Mon Sep 17 00:00:00 2001 From: Alfredo Santamaria Gomez Date: Tue, 20 Jul 2021 17:09:33 -0700 Subject: [PATCH 10/11] more type object --- .../2020-01-01-preview/managedcluster.json | 19 +++++++++++ .../preview/2020-01-01-preview/nodetype.json | 18 ++++++++++ .../2020-12-01-preview/application.json | 33 +++++++++++++++++++ .../stable/2020-03-01/cluster.json | 6 ++++ 4 files changed, 76 insertions(+) diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-01-01-preview/managedcluster.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-01-01-preview/managedcluster.json index 564876224f8e..050e5874c6d9 100644 --- a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-01-01-preview/managedcluster.json +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-01-01-preview/managedcluster.json @@ -439,6 +439,7 @@ ] }, "AzureActiveDirectory": { + "type": "object", "properties": { "tenantId": { "type": "string", @@ -456,6 +457,7 @@ "description": "The settings to enable AAD authentication on the cluster." }, "ClientCertificate": { + "type": "object", "required": [ "isAdmin" ], @@ -506,6 +508,7 @@ ] }, "LoadBalancingRule": { + "type": "object", "required": [ "frontendPort", "backendPort", @@ -583,6 +586,7 @@ } }, "ManagedClusterListResult": { + "type": "object", "properties": { "value": { "type": "array", @@ -598,6 +602,7 @@ "description": "Managed Cluster list results" }, "ManagedClusterProperties": { + "type": "object", "required": [ "dnsName", "adminUserName" @@ -694,6 +699,7 @@ "description": "Describes the managed cluster resource properties." }, "ManagedClusterPropertiesUpdateParameters": { + "type": "object", "properties": { "clientConnectionPort": { "type": "integer", @@ -745,6 +751,7 @@ "description": "Describes the managed cluster resource properties." }, "ManagedClusterUpdateParameters": { + "type": "object", "properties": { "properties": { "x-ms-client-flatten": true, @@ -761,6 +768,7 @@ "description": "Managed cluster update request" }, "ManagedClusterVersionDetails": { + "type": "object", "properties": { "msiVersion": { "type": "string", @@ -778,6 +786,7 @@ "description": "The detail of the Service Fabric runtime version." }, "Sku": { + "type": "object", "required": [ "name" ], @@ -798,6 +807,7 @@ ] }, "AvailableOperationDisplay": { + "type": "object", "properties": { "provider": { "type": "string", @@ -887,6 +897,7 @@ } }, "ClusterUpgradeDeltaHealthPolicy": { + "type": "object", "description": "Describes the delta health policies for the cluster upgrade.", "required": [ "maxPercentDeltaUnhealthyApplications", @@ -922,6 +933,7 @@ } }, "ClusterUpgradePolicy": { + "type": "object", "required": [ "healthCheckRetryTimeout", "healthCheckStableDuration", @@ -972,6 +984,7 @@ "description": "Describes the policy used when upgrading the cluster." }, "ErrorModel": { + "type": "object", "properties": { "error": { "$ref": "#/definitions/ErrorModelError", @@ -981,6 +994,7 @@ "description": "The structure of the error." }, "ErrorModelError": { + "type": "object", "properties": { "code": { "type": "string", @@ -1010,6 +1024,7 @@ ] }, "OperationListResult": { + "type": "object", "properties": { "value": { "type": "array", @@ -1027,6 +1042,7 @@ "description": "Describes the result of the request to list Service Fabric resource provider operations." }, "OperationResult": { + "type": "object", "properties": { "name": { "type": "string", @@ -1048,6 +1064,7 @@ "description": "Available operation list result" }, "Resource": { + "type": "object", "required": [ "location" ], @@ -1134,6 +1151,7 @@ } }, "SettingsParameterDescription": { + "type": "object", "required": [ "name", "value" @@ -1151,6 +1169,7 @@ "description": "Describes a parameter in fabric settings of the cluster." }, "SettingsSectionDescription": { + "type": "object", "required": [ "name", "parameters" diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-01-01-preview/nodetype.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-01-01-preview/nodetype.json index 24f3e2f52834..6427d5dd6064 100644 --- a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-01-01-preview/nodetype.json +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-01-01-preview/nodetype.json @@ -533,6 +533,7 @@ }, "definitions": { "ManagedProxyResource": { + "type": "object", "properties": { "id": { "type": "string", @@ -565,6 +566,7 @@ "x-ms-azure-resource": true }, "NodeType": { + "type": "object", "allOf": [ { "$ref": "#/definitions/ManagedProxyResource" @@ -580,6 +582,7 @@ "description": "Describes a node type in the cluster, each node type represents sub set of nodes in the cluster." }, "NodeTypeActionParameters": { + "type": "object", "required": [ "nodes" ], @@ -599,6 +602,7 @@ "description": "Parameters for Node type action." }, "NodeTypeProperties": { + "type": "object", "required": [ "isPrimary", "vmInstanceCount", @@ -690,6 +694,7 @@ "description": "Describes a node type in the cluster, each node type represents sub set of nodes in the cluster." }, "NodeTypeListResult": { + "type": "object", "properties": { "value": { "type": "array", @@ -707,6 +712,7 @@ "description": "Node type list results" }, "NodeTypePropertiesUpdateParameters": { + "type": "object", "properties": { "vmInstanceCount": { "type": "integer", @@ -759,6 +765,7 @@ "description": "Node type update properties." }, "NodeTypeUpdateParameters": { + "type": "object", "properties": { "properties": { "x-ms-client-flatten": true, @@ -776,6 +783,7 @@ "description": "Node type update request" }, "SubResource": { + "type": "object", "properties": { "id": { "type": "string", @@ -786,6 +794,7 @@ "x-ms-azure-resource": true }, "VaultCertificate": { + "type": "object", "required": [ "certificateUrl", "certificateStore" @@ -803,6 +812,7 @@ "description": "Describes a single certificate reference in a Key Vault, and where the certificate should reside on the VM." }, "VaultSecretGroup": { + "type": "object", "required": [ "sourceVault", "vaultCertificates" @@ -823,6 +833,7 @@ "description": "Specifies set of certificates that should be installed onto the virtual machines." }, "VMSSExtension": { + "type": "object", "required": [ "name", "properties" @@ -841,6 +852,7 @@ "description": "Specifies set of extensions that should be installed onto the virtual machines." }, "VMSSExtensionProperties": { + "type": "object", "required": [ "publisher", "type", @@ -891,6 +903,7 @@ "description": "Describes the properties of a Virtual Machine Scale Set Extension." }, "AvailableOperationDisplay": { + "type": "object", "properties": { "provider": { "type": "string", @@ -912,6 +925,7 @@ "description": "Operation supported by the Service Fabric resource provider" }, "EndpointRangeDescription": { + "type": "object", "required": [ "endPort", "startPort" @@ -931,6 +945,7 @@ "description": "Port range details" }, "ErrorModel": { + "type": "object", "properties": { "error": { "$ref": "#/definitions/ErrorModelError", @@ -940,6 +955,7 @@ "description": "The structure of the error." }, "ErrorModelError": { + "type": "object", "properties": { "code": { "type": "string", @@ -969,6 +985,7 @@ ] }, "OperationListResult": { + "type": "object", "properties": { "value": { "type": "array", @@ -986,6 +1003,7 @@ "description": "Describes the result of the request to list Service Fabric resource provider operations." }, "OperationResult": { + "type": "object", "properties": { "name": { "type": "string", diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-12-01-preview/application.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-12-01-preview/application.json index b9a19f0b39ba..aa5047af46b6 100644 --- a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-12-01-preview/application.json +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-12-01-preview/application.json @@ -974,6 +974,7 @@ } }, "ApplicationResource": { + "type": "object", "description": "The application resource.", "properties": { "identity": { @@ -993,6 +994,7 @@ ] }, "ApplicationResourceList": { + "type": "object", "description": "The list of application resources.", "properties": { "value": { @@ -1009,6 +1011,7 @@ } }, "ApplicationResourceProperties": { + "type": "object", "description": "The application resource properties.", "allOf": [ { @@ -1028,6 +1031,7 @@ } }, "ApplicationResourceUpdate": { + "type": "object", "description": "The application resource for patch operations.", "properties": { "properties": { @@ -1043,6 +1047,7 @@ ] }, "ApplicationResourceUpdateProperties": { + "type": "object", "description": "The application resource properties for patch operations.", "properties": { "typeVersion": { @@ -1099,6 +1104,7 @@ } }, "ApplicationTypeResource": { + "type": "object", "description": "The application type name resource", "properties": { "properties": { @@ -1114,6 +1120,7 @@ ] }, "ApplicationTypeResourceList": { + "type": "object", "description": "The list of application type names.", "properties": { "value": { @@ -1130,6 +1137,7 @@ } }, "ApplicationTypeResourceProperties": { + "type": "object", "description": "The application type name properties", "properties": { "provisioningState": { @@ -1144,6 +1152,7 @@ "description": "The version of the application type as defined in the application manifest." }, "ApplicationTypeVersionResource": { + "type": "object", "description": "An application type version resource for the specified application type name resource.", "properties": { "properties": { @@ -1159,6 +1168,7 @@ ] }, "ApplicationTypeVersionResourceList": { + "type": "object", "description": "The list of application type version resources for the specified application type name resource.", "properties": { "value": { @@ -1175,6 +1185,7 @@ } }, "ApplicationTypeVersionResourceProperties": { + "type": "object", "description": "The properties of the application type version resource.", "required": [ "appPackageUrl" @@ -1197,6 +1208,7 @@ } }, "ApplicationUpgradePolicy": { + "type": "object", "description": "Describes the policy for a monitored application upgrade.", "properties": { "upgradeReplicaSetCheckTimeout": { @@ -1226,6 +1238,7 @@ } }, "ApplicationUserAssignedIdentity": { + "type": "object", "required": [ "name", "principalId" @@ -1267,6 +1280,7 @@ } }, "ArmRollingUpgradeMonitoringPolicy": { + "type": "object", "description": "The policy used for monitoring the application upgrade", "properties": { "failureAction": { @@ -1351,6 +1365,7 @@ } }, "AvailableOperationDisplay": { + "type": "object", "properties": { "provider": { "type": "string", @@ -1399,6 +1414,7 @@ "default": "0" }, "ManagedIdentity": { + "type": "object", "description": "Describes the managed identities for an Azure resource.", "properties": { "principalId": { @@ -1486,6 +1502,7 @@ } }, "NamedPartitionSchemeDescription": { + "type": "object", "description": "Describes the named partition scheme of the service.", "allOf": [ { @@ -1563,6 +1580,7 @@ } }, "ProxyResource": { + "type": "object", "properties": { "id": { "type": "string", @@ -1859,6 +1877,7 @@ } }, "ServiceResource": { + "type": "object", "description": "The service resource.", "properties": { "properties": { @@ -1874,6 +1893,7 @@ ] }, "ServiceResourceList": { + "type": "object", "description": "The list of service resources.", "properties": { "value": { @@ -1890,6 +1910,7 @@ } }, "ServiceResourceProperties": { + "type": "object", "description": "The service resource properties.", "allOf": [ { @@ -1947,6 +1968,7 @@ } }, "ServiceResourcePropertiesBase": { + "type": "object", "description": "The common service resource properties.", "properties": { "placementConstraints": { @@ -1972,6 +1994,7 @@ } }, "ServiceResourceUpdate": { + "type": "object", "description": "The service resource for patch operations.", "properties": { "properties": { @@ -1987,6 +2010,7 @@ ] }, "ServiceResourceUpdateProperties": { + "type": "object", "description": "The service resource properties for patch operations.", "allOf": [ { @@ -2005,6 +2029,7 @@ } }, "SingletonPartitionSchemeDescription": { + "type": "object", "description": "Describes the partition scheme of a singleton-partitioned, or non-partitioned service.", "allOf": [ { @@ -2018,6 +2043,7 @@ "x-ms-discriminator-value": "Singleton" }, "StatefulServiceProperties": { + "type": "object", "description": "The properties of a stateful service resource.", "allOf": [ { @@ -2060,6 +2086,7 @@ } }, "StatefulServiceUpdateProperties": { + "type": "object", "description": "The properties of a stateful service resource for patch operations.", "allOf": [ { @@ -2098,6 +2125,7 @@ } }, "StatelessServiceProperties": { + "type": "object", "description": "The properties of a stateless service resource.", "allOf": [ { @@ -2119,6 +2147,7 @@ } }, "StatelessServiceUpdateProperties": { + "type": "object", "description": "The properties of a stateless service resource for patch operations.", "allOf": [ { @@ -2140,6 +2169,7 @@ } }, "UserAssignedIdentity": { + "type": "object", "properties": { "principalId": { "type": "string", @@ -2161,6 +2191,7 @@ } }, "UniformInt64RangePartitionSchemeDescription": { + "type": "object", "description": "Describes a partitioning scheme where an integer range is allocated evenly across a number of partitions.", "allOf": [ { @@ -2204,6 +2235,7 @@ "default": "P10675199DT02H48M05.4775807S" }, "ErrorModel": { + "type": "object", "properties": { "error": { "$ref": "#/definitions/ErrorModelError", @@ -2213,6 +2245,7 @@ "description": "The structure of the error." }, "ErrorModelError": { + "type": "object", "properties": { "code": { "type": "string", diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2020-03-01/cluster.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2020-03-01/cluster.json index 1785661fbcd0..61a1b7ece2c5 100644 --- a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2020-03-01/cluster.json +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2020-03-01/cluster.json @@ -535,6 +535,7 @@ ] }, "ApplicationTypeVersionsCleanupPolicy": { + "type": "object", "required": [ "maxUnusedVersionsToKeep" ], @@ -590,6 +591,7 @@ } }, "AvailableOperationDisplay": { + "type": "object", "properties": { "provider": { "type": "string", @@ -611,6 +613,7 @@ "description": "Operation supported by the Service Fabric resource provider" }, "AzureActiveDirectory": { + "type": "object", "properties": { "tenantId": { "type": "string", @@ -628,6 +631,7 @@ "description": "The settings to enable AAD authentication on the cluster." }, "CertificateDescription": { + "type": "object", "required": [ "thumbprint" ], @@ -648,6 +652,7 @@ "description": "Describes the certificate details." }, "ClientCertificateCommonName": { + "type": "object", "required": [ "certificateCommonName", "isAdmin", @@ -670,6 +675,7 @@ "description": "Describes the client certificate details using common name." }, "ClientCertificateThumbprint": { + "type": "object", "required": [ "certificateThumbprint", "isAdmin" From e6db333d1033d3290068c78e13d02da49d98681e Mon Sep 17 00:00:00 2001 From: Alfredo Santamaria Gomez Date: Tue, 20 Jul 2021 20:08:03 -0700 Subject: [PATCH 11/11] more type object 3 --- .../2019-11-01-preview/application.json | 35 +++++++++++++++++++ .../preview/2019-11-01-preview/cluster.json | 27 ++++++++++++++ .../preview/2020-12-01-preview/cluster.json | 13 +++++++ 3 files changed, 75 insertions(+) diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2019-11-01-preview/application.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2019-11-01-preview/application.json index d61b4a13d154..cb45ae64a4cf 100644 --- a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2019-11-01-preview/application.json +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2019-11-01-preview/application.json @@ -1010,6 +1010,7 @@ } }, "ApplicationResource": { + "type": "object", "description": "The application resource.", "properties": { "identity": { @@ -1029,6 +1030,7 @@ ] }, "ApplicationResourceList": { + "type": "object", "description": "The list of application resources.", "properties": { "value": { @@ -1045,6 +1047,7 @@ } }, "ApplicationResourceProperties": { + "type": "object", "description": "The application resource properties.", "allOf": [ { @@ -1064,6 +1067,7 @@ } }, "ApplicationResourceUpdate": { + "type": "object", "description": "The application resource for patch operations.", "properties": { "properties": { @@ -1079,6 +1083,7 @@ ] }, "ApplicationResourceUpdateProperties": { + "type": "object", "description": "The application resource properties for patch operations.", "properties": { "typeVersion": { @@ -1135,6 +1140,7 @@ } }, "ApplicationTypeResource": { + "type": "object", "description": "The application type name resource", "properties": { "properties": { @@ -1150,6 +1156,7 @@ ] }, "ApplicationTypeResourceList": { + "type": "object", "description": "The list of application type names.", "properties": { "value": { @@ -1166,6 +1173,7 @@ } }, "ApplicationTypeResourceProperties": { + "type": "object", "description": "The application type name properties", "properties": { "provisioningState": { @@ -1180,6 +1188,7 @@ "description": "The version of the application type as defined in the application manifest." }, "ApplicationTypeVersionResource": { + "type": "object", "description": "An application type version resource for the specified application type name resource.", "properties": { "properties": { @@ -1195,6 +1204,7 @@ ] }, "ApplicationTypeVersionResourceList": { + "type": "object", "description": "The list of application type version resources for the specified application type name resource.", "properties": { "value": { @@ -1211,6 +1221,7 @@ } }, "ApplicationTypeVersionResourceProperties": { + "type": "object", "description": "The properties of the application type version resource.", "required": [ "appPackageUrl" @@ -1233,6 +1244,7 @@ } }, "ApplicationUpgradePolicy": { + "type": "object", "description": "Describes the policy for a monitored application upgrade.", "properties": { "upgradeReplicaSetCheckTimeout": { @@ -1262,6 +1274,7 @@ } }, "ApplicationUserAssignedIdentity": { + "type": "object", "required": [ "name", "principalId" @@ -1303,6 +1316,7 @@ } }, "ArmRollingUpgradeMonitoringPolicy": { + "type": "object", "description": "The policy used for monitoring the application upgrade", "properties": { "failureAction": { @@ -1387,6 +1401,7 @@ } }, "AvailableOperationDisplay": { + "type": "object", "properties": { "provider": { "type": "string", @@ -1435,6 +1450,7 @@ "default": "0" }, "ManagedIdentity": { + "type": "object", "description": "Describes the managed identities for an Azure resource.", "properties": { "principalId": { @@ -1522,6 +1538,7 @@ } }, "NamedPartitionSchemeDescription": { + "type": "object", "description": "Describes the named partition scheme of the service.", "allOf": [ { @@ -1553,6 +1570,7 @@ } }, "OperationListResult": { + "type": "object", "properties": { "value": { "type": "array", @@ -1570,6 +1588,7 @@ "description": "Describes the result of the request to list Service Fabric resource provider operations." }, "OperationResult": { + "type": "object", "properties": { "name": { "type": "string", @@ -1637,6 +1656,7 @@ } }, "ProxyResource": { + "type": "object", "properties": { "id": { "type": "string", @@ -1930,6 +1950,7 @@ } }, "ServiceResource": { + "type": "object", "description": "The service resource.", "properties": { "properties": { @@ -1945,6 +1966,7 @@ ] }, "ServiceResourceList": { + "type": "object", "description": "The list of service resources.", "properties": { "value": { @@ -1961,6 +1983,7 @@ } }, "ServiceResourceProperties": { + "type": "object", "description": "The service resource properties.", "allOf": [ { @@ -2018,6 +2041,7 @@ } }, "ServiceResourcePropertiesBase": { + "type": "object", "description": "The common service resource properties.", "properties": { "placementConstraints": { @@ -2043,6 +2067,7 @@ } }, "ServiceResourceUpdate": { + "type": "object", "description": "The service resource for patch operations.", "properties": { "properties": { @@ -2058,6 +2083,7 @@ ] }, "ServiceResourceUpdateProperties": { + "type": "object", "description": "The service resource properties for patch operations.", "allOf": [ { @@ -2076,6 +2102,7 @@ } }, "SingletonPartitionSchemeDescription": { + "type": "object", "description": "Describes the partition scheme of a singleton-partitioned, or non-partitioned service.", "allOf": [ { @@ -2089,6 +2116,7 @@ "x-ms-discriminator-value": "Singleton" }, "StatefulServiceProperties": { + "type": "object", "description": "The properties of a stateful service resource.", "allOf": [ { @@ -2131,6 +2159,7 @@ } }, "StatefulServiceUpdateProperties": { + "type": "object", "description": "The properties of a stateful service resource for patch operations.", "allOf": [ { @@ -2169,6 +2198,7 @@ } }, "StatelessServiceProperties": { + "type": "object", "description": "The properties of a stateless service resource.", "allOf": [ { @@ -2190,6 +2220,7 @@ } }, "StatelessServiceUpdateProperties": { + "type": "object", "description": "The properties of a stateless service resource for patch operations.", "allOf": [ { @@ -2211,6 +2242,7 @@ } }, "UserAssignedIdentity": { + "type": "object", "properties": { "principalId": { "type": "string", @@ -2232,6 +2264,7 @@ } }, "UniformInt64RangePartitionSchemeDescription": { + "type": "object", "description": "Describes a partitioning scheme where an integer range is allocated evenly across a number of partitions.", "allOf": [ { @@ -2275,6 +2308,7 @@ "default": "P10675199DT02H48M05.4775807S" }, "ErrorModel": { + "type": "object", "properties": { "error": { "$ref": "#/definitions/ErrorModelError", @@ -2284,6 +2318,7 @@ "description": "The structure of the error." }, "ErrorModelError": { + "type": "object", "properties": { "code": { "type": "string", diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2019-11-01-preview/cluster.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2019-11-01-preview/cluster.json index bf5d28d392a8..8a1a0e10e649 100644 --- a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2019-11-01-preview/cluster.json +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2019-11-01-preview/cluster.json @@ -535,6 +535,7 @@ ] }, "ApplicationTypeVersionsCleanupPolicy": { + "type": "object", "required": [ "maxUnusedVersionsToKeep" ], @@ -590,6 +591,7 @@ } }, "AvailableOperationDisplay": { + "type": "object", "properties": { "provider": { "type": "string", @@ -611,6 +613,7 @@ "description": "Operation supported by the Service Fabric resource provider" }, "AzureActiveDirectory": { + "type": "object", "properties": { "tenantId": { "type": "string", @@ -628,6 +631,7 @@ "description": "The settings to enable AAD authentication on the cluster." }, "CertificateDescription": { + "type": "object", "required": [ "thumbprint" ], @@ -648,6 +652,7 @@ "description": "Describes the certificate details." }, "ClientCertificateCommonName": { + "type": "object", "required": [ "certificateCommonName", "isAdmin", @@ -670,6 +675,7 @@ "description": "Describes the client certificate details using common name." }, "ClientCertificateThumbprint": { + "type": "object", "required": [ "certificateThumbprint", "isAdmin" @@ -709,6 +715,7 @@ } }, "ClusterCodeVersionsListResult": { + "type": "object", "properties": { "value": { "type": "array", @@ -724,6 +731,7 @@ "description": "The list results of the Service Fabric runtime versions." }, "ClusterCodeVersionsResult": { + "type": "object", "properties": { "id": { "type": "string", @@ -780,6 +788,7 @@ } }, "ClusterListResult": { + "type": "object", "properties": { "value": { "type": "array", @@ -795,6 +804,7 @@ "description": "Cluster list results" }, "ClusterProperties": { + "type": "object", "required": [ "managementEndpoint", "nodeTypes" @@ -933,6 +943,7 @@ "description": "Describes the cluster resource properties." }, "ClusterPropertiesUpdateParameters": { + "type": "object", "properties": { "addOnFeatures": { "type": "array", @@ -1025,6 +1036,7 @@ ] }, "ClusterUpdateParameters": { + "type": "object", "properties": { "properties": { "x-ms-client-flatten": true, @@ -1042,6 +1054,7 @@ "description": "Cluster update request" }, "ClusterUpgradeDeltaHealthPolicy": { + "type": "object", "description": "Describes the delta health policies for the cluster upgrade.", "required": [ "maxPercentDeltaUnhealthyApplications", @@ -1077,6 +1090,7 @@ } }, "ClusterUpgradePolicy": { + "type": "object", "required": [ "healthCheckRetryTimeout", "healthCheckStableDuration", @@ -1127,6 +1141,7 @@ "description": "Describes the policy used when upgrading the cluster." }, "ClusterVersionDetails": { + "type": "object", "properties": { "codeVersion": { "type": "string", @@ -1144,6 +1159,7 @@ "description": "The detail of the Service Fabric runtime version result" }, "DiagnosticsStorageAccountConfig": { + "type": "object", "required": [ "blobEndpoint", "protectedAccountKeyName", @@ -1189,6 +1205,7 @@ ] }, "EndpointRangeDescription": { + "type": "object", "required": [ "endPort", "startPort" @@ -1208,6 +1225,7 @@ "description": "Port range details" }, "NodeTypeDescription": { + "type": "object", "required": [ "clientConnectionEndpointPort", "httpGatewayEndpointPort", @@ -1278,6 +1296,7 @@ "description": "Describes a node type in the cluster, each node type represents sub set of nodes in the cluster." }, "OperationListResult": { + "type": "object", "properties": { "value": { "type": "array", @@ -1295,6 +1314,7 @@ "description": "Describes the result of the request to list Service Fabric resource provider operations." }, "OperationResult": { + "type": "object", "properties": { "name": { "type": "string", @@ -1327,6 +1347,7 @@ ] }, "Resource": { + "type": "object", "required": [ "location" ], @@ -1371,6 +1392,7 @@ "x-ms-azure-resource": true }, "ServerCertificateCommonName": { + "type": "object", "description": "Describes the server certificate details using common name.", "required": [ "certificateCommonName", @@ -1388,6 +1410,7 @@ } }, "ServerCertificateCommonNames": { + "type": "object", "description": "Describes a list of server certificates referenced by common name that are used to secure the cluster.", "properties": { "commonNames": { @@ -1425,6 +1448,7 @@ } }, "SettingsParameterDescription": { + "type": "object", "required": [ "name", "value" @@ -1442,6 +1466,7 @@ "description": "Describes a parameter in fabric settings of the cluster." }, "SettingsSectionDescription": { + "type": "object", "required": [ "name", "parameters" @@ -1484,6 +1509,7 @@ ] }, "ErrorModel": { + "type": "object", "properties": { "error": { "$ref": "#/definitions/ErrorModelError", @@ -1493,6 +1519,7 @@ "description": "The structure of the error." }, "ErrorModelError": { + "type": "object", "properties": { "code": { "type": "string", diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-12-01-preview/cluster.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-12-01-preview/cluster.json index 85836eefea72..8956f6eefc26 100644 --- a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-12-01-preview/cluster.json +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/preview/2020-12-01-preview/cluster.json @@ -590,6 +590,7 @@ ] }, "ApplicationTypeVersionsCleanupPolicy": { + "type": "object", "required": [ "maxUnusedVersionsToKeep" ], @@ -645,6 +646,7 @@ } }, "AvailableOperationDisplay": { + "type": "object", "properties": { "provider": { "type": "string", @@ -666,6 +668,7 @@ "description": "Operation supported by the Service Fabric resource provider" }, "AzureActiveDirectory": { + "type": "object", "properties": { "tenantId": { "type": "string", @@ -683,6 +686,7 @@ "description": "The settings to enable AAD authentication on the cluster." }, "CertificateDescription": { + "type": "object", "required": [ "thumbprint" ], @@ -703,6 +707,7 @@ "description": "Describes the certificate details." }, "ClientCertificateCommonName": { + "type": "object", "required": [ "certificateCommonName", "isAdmin", @@ -725,6 +730,7 @@ "description": "Describes the client certificate details using common name." }, "ClientCertificateThumbprint": { + "type": "object", "required": [ "certificateThumbprint", "isAdmin" @@ -758,6 +764,7 @@ } }, "ClusterCodeVersionsListResult": { + "type": "object", "properties": { "value": { "type": "array", @@ -773,6 +780,7 @@ "description": "The list results of the Service Fabric runtime versions." }, "ClusterCodeVersionsResult": { + "type": "object", "properties": { "id": { "type": "string", @@ -829,6 +837,7 @@ } }, "ClusterListResult": { + "type": "object", "properties": { "value": { "type": "array", @@ -844,6 +853,7 @@ "description": "Cluster list results" }, "ClusterProperties": { + "type": "object", "required": [ "managementEndpoint", "nodeTypes" @@ -982,6 +992,7 @@ "description": "Describes the cluster resource properties." }, "ClusterPropertiesUpdateParameters": { + "type": "object", "properties": { "addOnFeatures": { "type": "array", @@ -1074,6 +1085,7 @@ ] }, "ClusterUpdateParameters": { + "type": "object", "properties": { "properties": { "x-ms-client-flatten": true, @@ -1091,6 +1103,7 @@ "description": "Cluster update request" }, "ClusterUpgradeDeltaHealthPolicy": { + "type": "object", "description": "Describes the delta health policies for the cluster upgrade.", "required": [ "maxPercentDeltaUnhealthyApplications",