Skip to content

Commit

Permalink
[Service Fabric] adding api version 2021-06-01 (#14838)
Browse files Browse the repository at this point in the history
* initiall commit with previous stable version 2020-03-01

* update to version 2021-06-01

* update examples with 2021-06-01 api

* fix automation errors

* remove operation definitions from app

* use systemData from common-types

* add type

* update vmInstanceCount description and min

* adding missing az params

* adding missing cluster parameters

* remove 200 from app delete operations

* remove default respopnse from clusterVersions

Co-authored-by: Alfredo Santamaria Gomez <alsantam@microsoft.com>
  • Loading branch information
a-santamaria and Alfredo Santamaria Gomez committed Jun 23, 2021
1 parent 8d2bd54 commit 52b1c1b
Show file tree
Hide file tree
Showing 36 changed files with 7,060 additions and 1 deletion.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "resRg",
"clusterName": "myCluster",
"applicationName": "myApp",
"api-version": "2021-06-01"
},
"responses": {
"202": {
"headers": {
"Retry-After": "10",
"Location": "http://10.91.140.224/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastus/operationResults/76053752-a423-4a80-b283-1dad1ba5f314?api-version=2019-03-01"
}
},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "resRg",
"clusterName": "myCluster",
"applicationName": "myApp",
"api-version": "2021-06-01"
},
"responses": {
"200": {
"headers": {},
"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": {
"upgradeMode": "Monitored",
"applicationHealthPolicy": {
"considerWarningAsError": true,
"maxPercentUnhealthyDeployedApplications": 0,
"defaultServiceTypeHealthPolicy": {
"maxPercentUnhealthyServices": 0,
"maxPercentUnhealthyPartitionsPerService": 0,
"maxPercentUnhealthyReplicasPerPartition": 0
}
},
"rollingUpgradeMonitoringPolicy": {
"failureAction": "Rollback",
"healthCheckRetryTimeout": "00:10:00",
"healthCheckWaitDuration": "00:02:00",
"healthCheckStableDuration": "00:05:00",
"upgradeDomainTimeout": "1.06:00:00",
"upgradeTimeout": "01:00:00"
},
"upgradeReplicaSetCheckTimeout": "01:00:00",
"forceRestart": false
},
"maximumNodes": 3,
"minimumNodes": 1,
"removeApplicationCapacity": false,
"metrics": [
{
"name": "metric1",
"reservationCapacity": 1,
"maximumCapacity": 3,
"totalApplicationCapacity": 5
}
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "resRg",
"clusterName": "myCluster",
"api-version": "2021-06-01"
},
"responses": {
"200": {
"headers": {},
"body": {
"value": [
{
"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/\"636462502180261858\"",
"properties": {
"provisioningState": "Updating",
"typeName": "myAppType",
"typeVersion": "1.0",
"removeApplicationCapacity": false,
"metrics": [
{
"name": "metric1",
"reservationCapacity": 1,
"maximumCapacity": 3,
"totalApplicationCapacity": 5
}
]
}
}
],
"nextLink": ""
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "resRg",
"clusterName": "myCluster",
"applicationName": "myApp",
"api-version": "2021-06-01",
"parameters": {
"location": "eastus",
"tags": {},
"properties": {
"typeVersion": "1.0",
"removeApplicationCapacity": false,
"metrics": [
{
"name": "metric1",
"reservationCapacity": 1,
"maximumCapacity": 3,
"totalApplicationCapacity": 5
}
]
}
}
},
"responses": {
"202": {
"headers": {
"Retry-After": "10",
"Location": "http://10.91.140.224/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastus/operationResults/a553eb63-c332-40df-8ace-eb8d34a9b298?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/\"636462502180261858\"",
"properties": {
"provisioningState": "Updating",
"typeName": "myAppType",
"typeVersion": "1.0",
"removeApplicationCapacity": false,
"metrics": [
{
"name": "metric1",
"reservationCapacity": 1,
"maximumCapacity": 3,
"totalApplicationCapacity": 5
}
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
{
"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": {
"upgradeMode": "Monitored",
"applicationHealthPolicy": {
"considerWarningAsError": true,
"maxPercentUnhealthyDeployedApplications": 0,
"defaultServiceTypeHealthPolicy": {
"maxPercentUnhealthyServices": 0,
"maxPercentUnhealthyPartitionsPerService": 0,
"maxPercentUnhealthyReplicasPerPartition": 0
}
},
"rollingUpgradeMonitoringPolicy": {
"failureAction": "Rollback",
"healthCheckRetryTimeout": "00:10:00",
"healthCheckWaitDuration": "00:02:00",
"healthCheckStableDuration": "00:05:00",
"upgradeDomainTimeout": "1.06:00:00",
"upgradeTimeout": "01:00:00"
},
"upgradeReplicaSetCheckTimeout": "01:00:00",
"forceRestart": false
},
"maximumNodes": 3,
"minimumNodes": 1,
"removeApplicationCapacity": false,
"metrics": [
{
"name": "metric1",
"reservationCapacity": 1,
"maximumCapacity": 3,
"totalApplicationCapacity": 5
}
]
}
}
},
"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": {
"upgradeMode": "Monitored",
"applicationHealthPolicy": {
"considerWarningAsError": true,
"maxPercentUnhealthyDeployedApplications": 0,
"defaultServiceTypeHealthPolicy": {
"maxPercentUnhealthyServices": 0,
"maxPercentUnhealthyPartitionsPerService": 0,
"maxPercentUnhealthyReplicasPerPartition": 0
}
},
"rollingUpgradeMonitoringPolicy": {
"failureAction": "Rollback",
"healthCheckRetryTimeout": "00:10:00",
"healthCheckWaitDuration": "00:02:00",
"healthCheckStableDuration": "00:05:00",
"upgradeDomainTimeout": "1.06:00:00",
"upgradeTimeout": "01:00:00"
},
"upgradeReplicaSetCheckTimeout": "01:00:00",
"forceRestart": false
},
"maximumNodes": 3,
"minimumNodes": 1,
"removeApplicationCapacity": false,
"metrics": [
{
"name": "metric1",
"reservationCapacity": 1,
"maximumCapacity": 3,
"totalApplicationCapacity": 5
}
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "resRg",
"clusterName": "myCluster",
"applicationName": "myApp",
"api-version": "2021-06-01",
"parameters": {
"location": "eastus",
"tags": {},
"properties": {
"typeName": "myAppType",
"typeVersion": "1.0",
"removeApplicationCapacity": false
}
}
},
"responses": {
"202": {
"headers": {
"Retry-After": "10",
"Location": "http://10.91.140.224/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastus/operationResults/5dce62ce-439b-47af-81d8-99ab14708e91?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/\"636462502180261857\"",
"properties": {
"provisioningState": "Updating",
"typeName": "myAppType",
"typeVersion": "1.0",
"removeApplicationCapacity": false
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "resRg",
"clusterName": "myCluster",
"applicationTypeName": "myAppType",
"api-version": "2021-06-01"
},
"responses": {
"202": {
"headers": {
"Retry-After": "10",
"Location": "http://10.91.140.224/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastus/operationResults/6a367b2d-9f60-4941-b886-e348ddcb4127?api-version=2021-06-01"
}
},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "resRg",
"clusterName": "myCluster",
"applicationTypeName": "myAppType",
"api-version": "2021-06-01"
},
"responses": {
"200": {
"headers": {},
"body": {
"type": "applicationTypes",
"location": "eastus",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster/applicationTypes/myAppType",
"name": "myCluster",
"tags": {},
"etag": "W/\"636462502174844831\"",
"properties": {
"provisioningState": "Succeeded"
}
}
}
}
}
Loading

0 comments on commit 52b1c1b

Please sign in to comment.