Skip to content

Commit 5f0b5c7

Browse files
authored
avoid required properties + enums (#3985)
1 parent f069723 commit 5f0b5c7

File tree

1 file changed

+3
-33
lines changed
  • specification/recommendationsservice/resource-manager/Microsoft.RecommendationsService/preview/2021-02-01-preview

1 file changed

+3
-33
lines changed

specification/recommendationsservice/resource-manager/Microsoft.RecommendationsService/preview/2021-02-01-preview/recommendationsservice.json

Lines changed: 3 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -929,11 +929,6 @@
929929
"EndpointAuthentication": {
930930
"description": "Service endpoints authentication details.",
931931
"type": "object",
932-
"required": [
933-
"aadTenantID",
934-
"principalID",
935-
"principalType"
936-
],
937932
"properties": {
938933
"aadTenantID": {
939934
"description": "AAD tenant ID.",
@@ -1023,16 +1018,10 @@
10231018
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource"
10241019
}
10251020
],
1026-
"required": [
1027-
"properties"
1028-
],
10291021
"properties": {
10301022
"properties": {
10311023
"description": "Account resource properties.",
10321024
"type": "object",
1033-
"required": [
1034-
"configuration"
1035-
],
10361025
"properties": {
10371026
"configuration": {
10381027
"description": "Account configuration. This can only be set at RecommendationsService Account creation.",
@@ -1043,7 +1032,6 @@
10431032
],
10441033
"enum": [
10451034
"Free",
1046-
"Explore",
10471035
"Capacity"
10481036
],
10491037
"x-ms-enum": {
@@ -1116,9 +1104,6 @@
11161104
"ModelingInputData": {
11171105
"description": "The configuration to raw CDM data to be used as Modeling resource input.",
11181106
"type": "object",
1119-
"required": [
1120-
"connectionString"
1121-
],
11221107
"properties": {
11231108
"connectionString": {
11241109
"description": "Connection string to raw input data.",
@@ -1134,19 +1119,10 @@
11341119
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource"
11351120
}
11361121
],
1137-
"required": [
1138-
"properties"
1139-
],
11401122
"properties": {
11411123
"properties": {
11421124
"description": "Modeling resource properties.",
11431125
"type": "object",
1144-
"required": [
1145-
"features",
1146-
"frequency",
1147-
"size",
1148-
"inputData"
1149-
],
11501126
"properties": {
11511127
"features": {
11521128
"description": "Modeling features controls the set of supported scenarios\\models being computed. This can only be set at Modeling creation.",
@@ -1162,7 +1138,7 @@
11621138
],
11631139
"x-ms-enum": {
11641140
"name": "ModelingFeatures",
1165-
"modelAsString": false
1141+
"modelAsString": true
11661142
}
11671143
},
11681144
"frequency": {
@@ -1179,7 +1155,7 @@
11791155
],
11801156
"x-ms-enum": {
11811157
"name": "ModelingFrequency",
1182-
"modelAsString": false
1158+
"modelAsString": true
11831159
}
11841160
},
11851161
"size": {
@@ -1196,7 +1172,7 @@
11961172
],
11971173
"x-ms-enum": {
11981174
"name": "ModelingSize",
1199-
"modelAsString": false
1175+
"modelAsString": true
12001176
}
12011177
},
12021178
"inputData": {
@@ -1261,16 +1237,10 @@
12611237
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource"
12621238
}
12631239
],
1264-
"required": [
1265-
"properties"
1266-
],
12671240
"properties": {
12681241
"properties": {
12691242
"description": "ServiceEndpoint resource properties.",
12701243
"type": "object",
1271-
"required": [
1272-
"preAllocatedCapacity"
1273-
],
12741244
"properties": {
12751245
"preAllocatedCapacity": {
12761246
"description": "ServiceEndpoint pre-allocated capacity controls the maximum requests-per-second allowed for that endpoint. Only applicable when Account configuration is Capacity.",

0 commit comments

Comments
 (0)