Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Fix SFRP map types and error model #3083

Merged
merged 1 commit into from
May 22, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1026,42 +1026,10 @@
},
"description": "List of application capacity metric description."
},
"ApplicationParameter": {
"type": "object",
"description": "Describes an application parameter override to be applied when creating or upgrading an application.",
"required": [
"Key",
"Value"
],
"properties": {
"Key": {
"type": "string",
"description": "The name of the parameter."
},
"Value": {
"type": "string",
"description": "The value of the parameter."
}
}
},
"ApplicationParameterList": {
"type": "array",
"items": {
"$ref": "#/definitions/ApplicationParameter"
},
"description": "List of application parameters with overridden values from their default values specified in the application manifest."
},
"ApplicationTypeName": {
"type": "string",
"description": "The application type name as defined in the application manifest."
},
"ApplicationTypeParameterList": {
"type": "array",
"items": {
"$ref": "#/definitions/ApplicationParameter"
},
"description": "List of application type parameters that can be overridden when creating or updating the application."
},
"ApplicationTypeVersion": {
"type": "string",
"description": "The version of the application type as defined in the application manifest."
Expand Down Expand Up @@ -1474,6 +1442,13 @@
]
}
},
"ApplicationParameterList": {
"type": "object",
"description": "List of application parameters with overridden values from their default values specified in the application manifest.",
"additionalProperties": {
"type": "string"
}
},
"ApplicationResource": {
"description": "The application resource.",
"properties": {
Expand Down Expand Up @@ -1572,6 +1547,13 @@
}
}
},
"ApplicationTypeParameterList": {
"type": "object",
"description": "List of application type parameters that can be overridden when creating or updating the application.",
"additionalProperties": {
"type": "string"
}
},
"ApplicationTypeResourceProperties": {
"description": "The application type name properties",
"properties": {
Expand Down Expand Up @@ -1698,19 +1680,6 @@
},
"description": "Operation supported by Service Fabric resource provider"
},
"ErrorModel": {
"properties": {
"code": {
"type": "string",
"description": "The error code."
},
"message": {
"type": "string",
"description": "The error message."
}
},
"description": "The error details."
},
"OperationListResult": {
"properties": {
"value": {
Expand Down Expand Up @@ -2026,6 +1995,28 @@
}
}
},
"ErrorModel": {
"properties": {
"error": {
"$ref": "#/definitions/ErrorModelError",
"description": "The error details."
}
},
"description": "The structure of the error."
},
"ErrorModelError": {
"properties": {
"code": {
"type": "string",
"description": "The error code."
},
"message": {
"type": "string",
"description": "The error message."
}
},
"description": "The error details."
},
"ServiceTypeHealthPolicy": {
"type": "object",
"description": "Represents the health policy used to evaluate the health of services belonging to a service type.\n",
Expand All @@ -2040,28 +2031,10 @@
}
},
"ServiceTypeHealthPolicyMap": {
"type": "array",
"items": {
"$ref": "#/definitions/ServiceTypeHealthPolicyMapItem"
},
"description": "Defines a ServiceTypeHealthPolicy per service type name.\n\nThe entries in the map replace the default service type health policy for each specified service type.\nFor example, in an application that contains both a stateless gateway service type and a stateful engine service type, the health policies for the stateless and stateful services can be configured differently.\nWith policy per service type, there's more granular control of the health of the service.\n\nIf no policy is specified for a service type name, the DefaultServiceTypeHealthPolicy is used for evaluation.\n"
},
"ServiceTypeHealthPolicyMapItem": {
"type": "object",
"description": "Defines an item in ServiceTypeHealthPolicyMap.\n",
"required": [
"key",
"value"
],
"properties": {
"key": {
"type": "string",
"description": "The key of the service type health policy map item. This is the name of the service type."
},
"value": {
"$ref": "#/definitions/ServiceTypeHealthPolicy",
"description": "The value of the service type health policy map item. This is the ServiceTypeHealthPolicy for this service type."
}
"description": "Defines a ServiceTypeHealthPolicy per service type name.\n\nThe entries in the map replace the default service type health policy for each specified service type.\nFor example, in an application that contains both a stateless gateway service type and a stateful engine service type, the health policies for the stateless and stateful services can be configured differently.\nWith policy per service type, there's more granular control of the health of the service.\n\nIf no policy is specified for a service type name, the DefaultServiceTypeHealthPolicy is used for evaluation.\n",
"additionalProperties": {
"$ref": "#/definitions/ServiceTypeHealthPolicy"
}
}
},
Expand All @@ -2076,7 +2049,7 @@
"2017-07-01-preview"
],
"default": "2017-07-01-preview",
"x-ms-parameter-location": "method"
"x-ms-parameter-location": "client"
},
"applicationName": {
"name": "applicationName",
Expand Down Expand Up @@ -2124,7 +2097,7 @@
"description": "The customer subscription identifier.",
"required": true,
"type": "string",
"x-ms-parameter-location": "method"
"x-ms-parameter-location": "client"
Copy link
Contributor

Choose a reason for hiding this comment

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

Are you sure about this change? This will be breaking change in the SDK. So, Please confirm if you are absolutely sure that this is what you want

Copy link
Contributor Author

@juhacket juhacket May 21, 2018

Choose a reason for hiding this comment

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

@sarangan12 These resources were not part of the SDK until now, so this is not a breaking change.

},
"version": {
"name": "version",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -525,28 +525,10 @@
}
},
"ApplicationDeltaHealthPolicyMap": {
"type": "array",
"items": {
"$ref": "#/definitions/ApplicationDeltaHealthPolicyMapItem"
},
"description": "Defines a map that contains specific application delta health policies for different applications.\nEach entry specifies as key the application name and as value an ApplicationDeltaHealthPolicy used to evaluate the application health when upgrading the cluster.\nThe map is empty by default.\n"
},
"ApplicationDeltaHealthPolicyMapItem": {
"type": "object",
"description": "Defines an item in ApplicationDeltaHealthPolicyMap.\n",
"required": [
"key",
"value"
],
"properties": {
"key": {
"$ref": "#/definitions/ApplicationName",
"description": "The key of the application delta health policy map item. This is the name of the application."
},
"value": {
"$ref": "#/definitions/ApplicationDeltaHealthPolicy",
"description": "The value of the application delta health policy map item. This is the ApplicationDeltaHealthPolicy for this application."
}
"description": "Defines a map that contains specific application delta health policies for different applications.\nEach entry specifies as key the application name and as value an ApplicationDeltaHealthPolicy used to evaluate the application health when upgrading the cluster.\nThe application name should include the 'fabric:' URI scheme.\nThe map is empty by default.\n",
"additionalProperties": {
"$ref": "#/definitions/ApplicationDeltaHealthPolicy"
}
},
"ApplicationHealthPolicy": {
Expand All @@ -564,34 +546,12 @@
}
},
"ApplicationHealthPolicyMap": {
"type": "array",
"items": {
"$ref": "#/definitions/ApplicationHealthPolicyMapItem"
},
"description": "Defines a map that contains specific application health policies for different applications.\nEach entry specifies as key the application name and as value an ApplicationHealthPolicy used to evaluate the application health.\nThe map is empty by default.\n"
},
"ApplicationHealthPolicyMapItem": {
"type": "object",
"description": "Defines an item in ApplicationHealthPolicyMap.\n",
"required": [
"key",
"value"
],
"properties": {
"key": {
"$ref": "#/definitions/ApplicationName",
"description": "The key of the application health policy map item. This is the name of the application."
},
"value": {
"$ref": "#/definitions/ApplicationHealthPolicy",
"description": "The value of the application health policy map item. This is the ApplicationHealthPolicy for this application."
}
"description": "Defines a map that contains specific application health policies for different applications.\nEach entry specifies as key the application name and as value an ApplicationHealthPolicy used to evaluate the application health.\nThe application name should include the 'fabric:' URI scheme.\nThe map is empty by default.\n",
"additionalProperties": {
"$ref": "#/definitions/ApplicationHealthPolicy"
}
},
"ApplicationName": {
"type": "string",
"description": "The name of the application, including the 'fabric:' URI scheme."
},
"AvailableOperationDisplay": {
"properties": {
"provider": {
Expand Down Expand Up @@ -1183,19 +1143,6 @@
},
"description": "Port range details"
},
"ErrorModel": {
"properties": {
"code": {
"type": "string",
"description": "The error code."
},
"message": {
"type": "string",
"description": "The error message."
}
},
"description": "The error details."
},
"NodeTypeDescription": {
"required": [
"clientConnectionEndpointPort",
Expand Down Expand Up @@ -1397,28 +1344,10 @@
}
},
"ServiceTypeDeltaHealthPolicyMap": {
"type": "array",
"items": {
"$ref": "#/definitions/ServiceTypeDeltaHealthPolicyMapItem"
},
"description": "Defines a map that contains specific delta health policies for different service types.\nEach entry specifies as key the service type name and as value a ServiceTypeDeltaHealthPolicy used to evaluate the service health when upgrading the cluster.\nThe map is empty by default.\n"
},
"ServiceTypeDeltaHealthPolicyMapItem": {
"type": "object",
"description": "Defines an item in ServiceTypeDeltaHealthPolicyMap.\n",
"required": [
"key",
"value"
],
"properties": {
"key": {
"type": "string",
"description": "The key of the service type delta health policy map item. This is the name of the service type."
},
"value": {
"$ref": "#/definitions/ServiceTypeDeltaHealthPolicy",
"description": "The value of the service type delta health policy map item. This is the ServiceTypeDeltaHealthPolicy for this service type."
}
"description": "Defines a map that contains specific delta health policies for different service types.\nEach entry specifies as key the service type name and as value a ServiceTypeDeltaHealthPolicy used to evaluate the service health when upgrading the cluster.\nThe map is empty by default.\n",
"additionalProperties": {
"$ref": "#/definitions/ServiceTypeDeltaHealthPolicy"
}
},
"SettingsParameterDescription": {
Expand Down Expand Up @@ -1480,6 +1409,28 @@
"Manual"
]
},
"ErrorModel": {
"properties": {
"error": {
"$ref": "#/definitions/ErrorModelError",
"description": "The error details."
}
},
"description": "The structure of the error."
},
"ErrorModelError": {
"properties": {
"code": {
"type": "string",
"description": "The error code."
},
"message": {
"type": "string",
"description": "The error message."
}
},
"description": "The error details."
},
"ServiceTypeHealthPolicy": {
"type": "object",
"description": "Represents the health policy used to evaluate the health of services belonging to a service type.\n",
Expand All @@ -1494,28 +1445,10 @@
}
},
"ServiceTypeHealthPolicyMap": {
"type": "array",
"items": {
"$ref": "#/definitions/ServiceTypeHealthPolicyMapItem"
},
"description": "Defines a ServiceTypeHealthPolicy per service type name.\n\nThe entries in the map replace the default service type health policy for each specified service type.\nFor example, in an application that contains both a stateless gateway service type and a stateful engine service type, the health policies for the stateless and stateful services can be configured differently.\nWith policy per service type, there's more granular control of the health of the service.\n\nIf no policy is specified for a service type name, the DefaultServiceTypeHealthPolicy is used for evaluation.\n"
},
"ServiceTypeHealthPolicyMapItem": {
"type": "object",
"description": "Defines an item in ServiceTypeHealthPolicyMap.\n",
"required": [
"key",
"value"
],
"properties": {
"key": {
"type": "string",
"description": "The key of the service type health policy map item. This is the name of the service type."
},
"value": {
"$ref": "#/definitions/ServiceTypeHealthPolicy",
"description": "The value of the service type health policy map item. This is the ServiceTypeHealthPolicy for this service type."
}
"description": "Defines a ServiceTypeHealthPolicy per service type name.\n\nThe entries in the map replace the default service type health policy for each specified service type.\nFor example, in an application that contains both a stateless gateway service type and a stateful engine service type, the health policies for the stateless and stateful services can be configured differently.\nWith policy per service type, there's more granular control of the health of the service.\n\nIf no policy is specified for a service type name, the DefaultServiceTypeHealthPolicy is used for evaluation.\n",
"additionalProperties": {
"$ref": "#/definitions/ServiceTypeHealthPolicy"
}
}
},
Expand All @@ -1530,7 +1463,7 @@
"2018-02-01"
],
"default": "2018-02-01",
"x-ms-parameter-location": "method"
"x-ms-parameter-location": "client"
},
"clusterNameParameter": {
"name": "clusterName",
Expand Down Expand Up @@ -1582,7 +1515,7 @@
"description": "The customer subscription identifier.",
"required": true,
"type": "string",
"x-ms-parameter-location": "method"
"x-ms-parameter-location": "client"
}
}
}