@azure/search-documents 12.0.0-beta.4 → 12.1.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/README.md +52 -32
  2. package/dist/index.js +13493 -13180
  3. package/dist/index.js.map +1 -1
  4. package/dist-esm/src/constants.js +2 -1
  5. package/dist-esm/src/constants.js.map +1 -1
  6. package/dist-esm/src/errorModels.js +4 -0
  7. package/dist-esm/src/errorModels.js.map +1 -0
  8. package/dist-esm/src/generated/data/models/index.js +37 -53
  9. package/dist-esm/src/generated/data/models/index.js.map +1 -1
  10. package/dist-esm/src/generated/data/models/mappers.js +398 -331
  11. package/dist-esm/src/generated/data/models/mappers.js.map +1 -1
  12. package/dist-esm/src/generated/data/models/parameters.js +195 -195
  13. package/dist-esm/src/generated/data/models/parameters.js.map +1 -1
  14. package/dist-esm/src/generated/data/operations/documents.js +41 -41
  15. package/dist-esm/src/generated/data/operations/documents.js.map +1 -1
  16. package/dist-esm/src/generated/data/operationsInterfaces/documents.js.map +1 -1
  17. package/dist-esm/src/generated/data/searchClient.js +30 -4
  18. package/dist-esm/src/generated/data/searchClient.js.map +1 -1
  19. package/dist-esm/src/generated/service/models/index.js +138 -69
  20. package/dist-esm/src/generated/service/models/index.js.map +1 -1
  21. package/dist-esm/src/generated/service/models/mappers.js +1821 -1663
  22. package/dist-esm/src/generated/service/models/mappers.js.map +1 -1
  23. package/dist-esm/src/generated/service/models/parameters.js +64 -64
  24. package/dist-esm/src/generated/service/models/parameters.js.map +1 -1
  25. package/dist-esm/src/generated/service/operations/aliases.js +22 -22
  26. package/dist-esm/src/generated/service/operations/aliases.js.map +1 -1
  27. package/dist-esm/src/generated/service/operations/dataSources.js +23 -23
  28. package/dist-esm/src/generated/service/operations/dataSources.js.map +1 -1
  29. package/dist-esm/src/generated/service/operations/indexers.js +36 -36
  30. package/dist-esm/src/generated/service/operations/indexers.js.map +1 -1
  31. package/dist-esm/src/generated/service/operations/indexes.js +30 -30
  32. package/dist-esm/src/generated/service/operations/indexes.js.map +1 -1
  33. package/dist-esm/src/generated/service/operations/skillsets.js +26 -26
  34. package/dist-esm/src/generated/service/operations/skillsets.js.map +1 -1
  35. package/dist-esm/src/generated/service/operations/synonymMaps.js +22 -22
  36. package/dist-esm/src/generated/service/operations/synonymMaps.js.map +1 -1
  37. package/dist-esm/src/generated/service/operationsInterfaces/aliases.js.map +1 -1
  38. package/dist-esm/src/generated/service/operationsInterfaces/dataSources.js.map +1 -1
  39. package/dist-esm/src/generated/service/operationsInterfaces/indexers.js.map +1 -1
  40. package/dist-esm/src/generated/service/operationsInterfaces/indexes.js.map +1 -1
  41. package/dist-esm/src/generated/service/operationsInterfaces/skillsets.js.map +1 -1
  42. package/dist-esm/src/generated/service/operationsInterfaces/synonymMaps.js.map +1 -1
  43. package/dist-esm/src/generated/service/searchServiceClient.js +35 -9
  44. package/dist-esm/src/generated/service/searchServiceClient.js.map +1 -1
  45. package/dist-esm/src/generatedStringLiteralUnions.js +4 -0
  46. package/dist-esm/src/generatedStringLiteralUnions.js.map +1 -0
  47. package/dist-esm/src/index.js +8 -9
  48. package/dist-esm/src/index.js.map +1 -1
  49. package/dist-esm/src/indexDocumentsBatch.js.map +1 -1
  50. package/dist-esm/src/indexModels.js.map +1 -1
  51. package/dist-esm/src/odata.js.map +1 -1
  52. package/dist-esm/src/odataMetadataPolicy.js.map +1 -1
  53. package/dist-esm/src/searchApiKeyCredentialPolicy.js.map +1 -1
  54. package/dist-esm/src/searchClient.js +36 -27
  55. package/dist-esm/src/searchClient.js.map +1 -1
  56. package/dist-esm/src/searchIndexClient.js +15 -29
  57. package/dist-esm/src/searchIndexClient.js.map +1 -1
  58. package/dist-esm/src/searchIndexerClient.js +9 -6
  59. package/dist-esm/src/searchIndexerClient.js.map +1 -1
  60. package/dist-esm/src/searchIndexingBufferedSender.js +3 -8
  61. package/dist-esm/src/searchIndexingBufferedSender.js.map +1 -1
  62. package/dist-esm/src/serialization.js.map +1 -1
  63. package/dist-esm/src/serviceModels.js.map +1 -1
  64. package/dist-esm/src/serviceUtils.js +44 -67
  65. package/dist-esm/src/serviceUtils.js.map +1 -1
  66. package/dist-esm/src/synonymMapHelper.browser.js.map +1 -1
  67. package/dist-esm/src/synonymMapHelper.js +1 -1
  68. package/dist-esm/src/synonymMapHelper.js.map +1 -1
  69. package/dist-esm/src/tracing.js +1 -1
  70. package/dist-esm/src/tracing.js.map +1 -1
  71. package/package.json +42 -43
  72. package/types/search-documents.d.ts +1014 -1458
@@ -5,7 +5,7 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { SearchIndexerDataSource as SearchIndexerDataSourceMapper, DocumentKeysOrIds as DocumentKeysOrIdsMapper, SearchIndexer as SearchIndexerMapper, SearchIndexerSkillset as SearchIndexerSkillsetMapper, SkillNames as SkillNamesMapper, SynonymMap as SynonymMapMapper, SearchIndex as SearchIndexMapper, AnalyzeRequest as AnalyzeRequestMapper, SearchAlias as SearchAliasMapper } from "../models/mappers";
8
+ import { SearchIndexerDataSource as SearchIndexerDataSourceMapper, DocumentKeysOrIds as DocumentKeysOrIdsMapper, SearchIndexer as SearchIndexerMapper, SearchIndexerSkillset as SearchIndexerSkillsetMapper, SkillNames as SkillNamesMapper, SynonymMap as SynonymMapMapper, SearchIndex as SearchIndexMapper, AnalyzeRequest as AnalyzeRequestMapper, SearchAlias as SearchAliasMapper, } from "../models/mappers";
9
9
  export const contentType = {
10
10
  parameterPath: ["options", "contentType"],
11
11
  mapper: {
@@ -13,13 +13,13 @@ export const contentType = {
13
13
  isConstant: true,
14
14
  serializedName: "Content-Type",
15
15
  type: {
16
- name: "String"
17
- }
18
- }
16
+ name: "String",
17
+ },
18
+ },
19
19
  };
20
20
  export const dataSource = {
21
21
  parameterPath: "dataSource",
22
- mapper: SearchIndexerDataSourceMapper
22
+ mapper: SearchIndexerDataSourceMapper,
23
23
  };
24
24
  export const accept = {
25
25
  parameterPath: "accept",
@@ -28,9 +28,9 @@ export const accept = {
28
28
  isConstant: true,
29
29
  serializedName: "Accept",
30
30
  type: {
31
- name: "String"
32
- }
33
- }
31
+ name: "String",
32
+ },
33
+ },
34
34
  };
35
35
  export const endpoint = {
36
36
  parameterPath: "endpoint",
@@ -38,10 +38,10 @@ export const endpoint = {
38
38
  serializedName: "endpoint",
39
39
  required: true,
40
40
  type: {
41
- name: "String"
42
- }
41
+ name: "String",
42
+ },
43
43
  },
44
- skipEncoding: true
44
+ skipEncoding: true,
45
45
  };
46
46
  export const dataSourceName = {
47
47
  parameterPath: "dataSourceName",
@@ -49,27 +49,27 @@ export const dataSourceName = {
49
49
  serializedName: "dataSourceName",
50
50
  required: true,
51
51
  type: {
52
- name: "String"
53
- }
54
- }
52
+ name: "String",
53
+ },
54
+ },
55
55
  };
56
56
  export const ifMatch = {
57
57
  parameterPath: ["options", "ifMatch"],
58
58
  mapper: {
59
59
  serializedName: "If-Match",
60
60
  type: {
61
- name: "String"
62
- }
63
- }
61
+ name: "String",
62
+ },
63
+ },
64
64
  };
65
65
  export const ifNoneMatch = {
66
66
  parameterPath: ["options", "ifNoneMatch"],
67
67
  mapper: {
68
68
  serializedName: "If-None-Match",
69
69
  type: {
70
- name: "String"
71
- }
72
- }
70
+ name: "String",
71
+ },
72
+ },
73
73
  };
74
74
  export const prefer = {
75
75
  parameterPath: "prefer",
@@ -78,9 +78,9 @@ export const prefer = {
78
78
  isConstant: true,
79
79
  serializedName: "Prefer",
80
80
  type: {
81
- name: "String"
82
- }
83
- }
81
+ name: "String",
82
+ },
83
+ },
84
84
  };
85
85
  export const apiVersion = {
86
86
  parameterPath: "apiVersion",
@@ -88,27 +88,27 @@ export const apiVersion = {
88
88
  serializedName: "api-version",
89
89
  required: true,
90
90
  type: {
91
- name: "String"
92
- }
93
- }
91
+ name: "String",
92
+ },
93
+ },
94
94
  };
95
95
  export const skipIndexerResetRequirementForCache = {
96
96
  parameterPath: ["options", "skipIndexerResetRequirementForCache"],
97
97
  mapper: {
98
98
  serializedName: "ignoreResetRequirements",
99
99
  type: {
100
- name: "Boolean"
101
- }
102
- }
100
+ name: "Boolean",
101
+ },
102
+ },
103
103
  };
104
104
  export const select = {
105
105
  parameterPath: ["options", "select"],
106
106
  mapper: {
107
107
  serializedName: "$select",
108
108
  type: {
109
- name: "String"
110
- }
111
- }
109
+ name: "String",
110
+ },
111
+ },
112
112
  };
113
113
  export const indexerName = {
114
114
  parameterPath: "indexerName",
@@ -116,13 +116,13 @@ export const indexerName = {
116
116
  serializedName: "indexerName",
117
117
  required: true,
118
118
  type: {
119
- name: "String"
120
- }
121
- }
119
+ name: "String",
120
+ },
121
+ },
122
122
  };
123
123
  export const keysOrIds = {
124
124
  parameterPath: ["options", "keysOrIds"],
125
- mapper: DocumentKeysOrIdsMapper
125
+ mapper: DocumentKeysOrIdsMapper,
126
126
  };
127
127
  export const overwrite = {
128
128
  parameterPath: ["options", "overwrite"],
@@ -130,26 +130,26 @@ export const overwrite = {
130
130
  defaultValue: false,
131
131
  serializedName: "overwrite",
132
132
  type: {
133
- name: "Boolean"
134
- }
135
- }
133
+ name: "Boolean",
134
+ },
135
+ },
136
136
  };
137
137
  export const indexer = {
138
138
  parameterPath: "indexer",
139
- mapper: SearchIndexerMapper
139
+ mapper: SearchIndexerMapper,
140
140
  };
141
141
  export const disableCacheReprocessingChangeDetection = {
142
142
  parameterPath: ["options", "disableCacheReprocessingChangeDetection"],
143
143
  mapper: {
144
144
  serializedName: "disableCacheReprocessingChangeDetection",
145
145
  type: {
146
- name: "Boolean"
147
- }
148
- }
146
+ name: "Boolean",
147
+ },
148
+ },
149
149
  };
150
150
  export const skillset = {
151
151
  parameterPath: "skillset",
152
- mapper: SearchIndexerSkillsetMapper
152
+ mapper: SearchIndexerSkillsetMapper,
153
153
  };
154
154
  export const skillsetName = {
155
155
  parameterPath: "skillsetName",
@@ -157,17 +157,17 @@ export const skillsetName = {
157
157
  serializedName: "skillsetName",
158
158
  required: true,
159
159
  type: {
160
- name: "String"
161
- }
162
- }
160
+ name: "String",
161
+ },
162
+ },
163
163
  };
164
164
  export const skillNames = {
165
165
  parameterPath: "skillNames",
166
- mapper: SkillNamesMapper
166
+ mapper: SkillNamesMapper,
167
167
  };
168
168
  export const synonymMap = {
169
169
  parameterPath: "synonymMap",
170
- mapper: SynonymMapMapper
170
+ mapper: SynonymMapMapper,
171
171
  };
172
172
  export const synonymMapName = {
173
173
  parameterPath: "synonymMapName",
@@ -175,13 +175,13 @@ export const synonymMapName = {
175
175
  serializedName: "synonymMapName",
176
176
  required: true,
177
177
  type: {
178
- name: "String"
179
- }
180
- }
178
+ name: "String",
179
+ },
180
+ },
181
181
  };
182
182
  export const index = {
183
183
  parameterPath: "index",
184
- mapper: SearchIndexMapper
184
+ mapper: SearchIndexMapper,
185
185
  };
186
186
  export const indexName = {
187
187
  parameterPath: "indexName",
@@ -189,26 +189,26 @@ export const indexName = {
189
189
  serializedName: "indexName",
190
190
  required: true,
191
191
  type: {
192
- name: "String"
193
- }
194
- }
192
+ name: "String",
193
+ },
194
+ },
195
195
  };
196
196
  export const allowIndexDowntime = {
197
197
  parameterPath: ["options", "allowIndexDowntime"],
198
198
  mapper: {
199
199
  serializedName: "allowIndexDowntime",
200
200
  type: {
201
- name: "Boolean"
202
- }
203
- }
201
+ name: "Boolean",
202
+ },
203
+ },
204
204
  };
205
205
  export const request = {
206
206
  parameterPath: "request",
207
- mapper: AnalyzeRequestMapper
207
+ mapper: AnalyzeRequestMapper,
208
208
  };
209
209
  export const alias = {
210
210
  parameterPath: "alias",
211
- mapper: SearchAliasMapper
211
+ mapper: SearchAliasMapper,
212
212
  };
213
213
  export const aliasName = {
214
214
  parameterPath: "aliasName",
@@ -216,8 +216,8 @@ export const aliasName = {
216
216
  serializedName: "aliasName",
217
217
  required: true,
218
218
  type: {
219
- name: "String"
220
- }
221
- }
219
+ name: "String",
220
+ },
221
+ },
222
222
  };
223
223
  //# sourceMappingURL=parameters.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../../../src/generated/service/models/parameters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAOH,OAAO,EACL,uBAAuB,IAAI,6BAA6B,EACxD,iBAAiB,IAAI,uBAAuB,EAC5C,aAAa,IAAI,mBAAmB,EACpC,qBAAqB,IAAI,2BAA2B,EACpD,UAAU,IAAI,gBAAgB,EAC9B,UAAU,IAAI,gBAAgB,EAC9B,WAAW,IAAI,iBAAiB,EAChC,cAAc,IAAI,oBAAoB,EACtC,WAAW,IAAI,iBAAiB,EACjC,MAAM,mBAAmB,CAAC;AAE3B,MAAM,CAAC,MAAM,WAAW,GAAuB;IAC7C,aAAa,EAAE,CAAC,SAAS,EAAE,aAAa,CAAC;IACzC,MAAM,EAAE;QACN,YAAY,EAAE,kBAAkB;QAChC,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,cAAc;QAC9B,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAuB;IAC5C,aAAa,EAAE,YAAY;IAC3B,MAAM,EAAE,6BAA6B;CACtC,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAuB;IACxC,aAAa,EAAE,QAAQ;IACvB,MAAM,EAAE;QACN,YAAY,EAAE,kBAAkB;QAChC,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,QAAQ;QACxB,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAA0B;IAC7C,aAAa,EAAE,UAAU;IACzB,MAAM,EAAE;QACN,cAAc,EAAE,UAAU;QAC1B,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;IACD,YAAY,EAAE,IAAI;CACnB,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GA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,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n OperationParameter,\n OperationURLParameter,\n OperationQueryParameter\n} from \"@azure/core-client\";\nimport {\n SearchIndexerDataSource as SearchIndexerDataSourceMapper,\n DocumentKeysOrIds as DocumentKeysOrIdsMapper,\n SearchIndexer as SearchIndexerMapper,\n SearchIndexerSkillset as SearchIndexerSkillsetMapper,\n SkillNames as SkillNamesMapper,\n SynonymMap as SynonymMapMapper,\n SearchIndex as SearchIndexMapper,\n AnalyzeRequest as AnalyzeRequestMapper,\n SearchAlias as SearchAliasMapper\n} from \"../models/mappers\";\n\nexport const contentType: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const dataSource: OperationParameter = {\n parameterPath: \"dataSource\",\n mapper: SearchIndexerDataSourceMapper\n};\n\nexport const accept: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const endpoint: OperationURLParameter = {\n parameterPath: \"endpoint\",\n mapper: {\n serializedName: \"endpoint\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\n\nexport const dataSourceName: OperationURLParameter = {\n parameterPath: \"dataSourceName\",\n mapper: {\n serializedName: \"dataSourceName\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const ifMatch: OperationParameter = {\n parameterPath: [\"options\", \"ifMatch\"],\n mapper: {\n serializedName: \"If-Match\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const ifNoneMatch: OperationParameter = {\n parameterPath: [\"options\", \"ifNoneMatch\"],\n mapper: {\n serializedName: \"If-None-Match\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const prefer: OperationParameter = {\n parameterPath: \"prefer\",\n mapper: {\n defaultValue: \"return=representation\",\n isConstant: true,\n serializedName: \"Prefer\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n serializedName: \"api-version\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const skipIndexerResetRequirementForCache: OperationQueryParameter = {\n parameterPath: [\"options\", \"skipIndexerResetRequirementForCache\"],\n mapper: {\n serializedName: \"ignoreResetRequirements\",\n type: {\n name: \"Boolean\"\n }\n }\n};\n\nexport const select: OperationQueryParameter = {\n parameterPath: [\"options\", \"select\"],\n mapper: {\n serializedName: \"$select\",\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const indexerName: OperationURLParameter = {\n parameterPath: \"indexerName\",\n mapper: {\n serializedName: \"indexerName\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const keysOrIds: OperationParameter = {\n parameterPath: [\"options\", \"keysOrIds\"],\n mapper: DocumentKeysOrIdsMapper\n};\n\nexport const overwrite: OperationQueryParameter = {\n parameterPath: [\"options\", \"overwrite\"],\n mapper: {\n defaultValue: false,\n serializedName: \"overwrite\",\n type: {\n name: \"Boolean\"\n }\n }\n};\n\nexport const indexer: OperationParameter = {\n parameterPath: \"indexer\",\n mapper: SearchIndexerMapper\n};\n\nexport const disableCacheReprocessingChangeDetection: OperationQueryParameter = {\n parameterPath: [\"options\", \"disableCacheReprocessingChangeDetection\"],\n mapper: {\n serializedName: \"disableCacheReprocessingChangeDetection\",\n type: {\n name: \"Boolean\"\n }\n }\n};\n\nexport const skillset: OperationParameter = {\n parameterPath: \"skillset\",\n mapper: SearchIndexerSkillsetMapper\n};\n\nexport const skillsetName: OperationURLParameter = {\n parameterPath: \"skillsetName\",\n mapper: {\n serializedName: \"skillsetName\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const skillNames: OperationParameter = {\n parameterPath: \"skillNames\",\n mapper: SkillNamesMapper\n};\n\nexport const synonymMap: OperationParameter = {\n parameterPath: \"synonymMap\",\n mapper: SynonymMapMapper\n};\n\nexport const synonymMapName: OperationURLParameter = {\n parameterPath: \"synonymMapName\",\n mapper: {\n serializedName: \"synonymMapName\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const index: OperationParameter = {\n parameterPath: \"index\",\n mapper: SearchIndexMapper\n};\n\nexport const indexName: OperationURLParameter = {\n parameterPath: \"indexName\",\n mapper: {\n serializedName: \"indexName\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n\nexport const allowIndexDowntime: OperationQueryParameter = {\n parameterPath: [\"options\", \"allowIndexDowntime\"],\n mapper: {\n serializedName: \"allowIndexDowntime\",\n type: {\n name: \"Boolean\"\n }\n }\n};\n\nexport const request: OperationParameter = {\n parameterPath: \"request\",\n mapper: AnalyzeRequestMapper\n};\n\nexport const alias: OperationParameter = {\n parameterPath: \"alias\",\n mapper: SearchAliasMapper\n};\n\nexport const aliasName: OperationURLParameter = {\n parameterPath: \"aliasName\",\n mapper: {\n serializedName: \"aliasName\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n};\n"]}
1
+ {"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../../../src/generated/service/models/parameters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAOH,OAAO,EACL,uBAAuB,IAAI,6BAA6B,EACxD,iBAAiB,IAAI,uBAAuB,EAC5C,aAAa,IAAI,mBAAmB,EACpC,qBAAqB,IAAI,2BAA2B,EACpD,UAAU,IAAI,gBAAgB,EAC9B,UAAU,IAAI,gBAAgB,EAC9B,WAAW,IAAI,iBAAiB,EAChC,cAAc,IAAI,oBAAoB,EACtC,WAAW,IAAI,iBAAiB,GACjC,MAAM,mBAAmB,CAAC;AAE3B,MAAM,C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AAM,KAAK,GAAuB;IACvC,aAAa,EAAE,OAAO;IACtB,MAAM,EAAE,iBAAiB;CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAA0B;IAC9C,aAAa,EAAE,WAAW;IAC1B,MAAM,EAAE;QACN,cAAc,EAAE,WAAW;QAC3B,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAA4B;IACzD,aAAa,EAAE,CAAC,SAAS,EAAE,oBAAoB,CAAC;IAChD,MAAM,EAAE;QACN,cAAc,EAAE,oBAAoB;QACpC,IAAI,EAAE;YACJ,IAAI,EAAE,SAAS;SAChB;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAuB;IACzC,aAAa,EAAE,SAAS;IACxB,MAAM,EAAE,oBAAoB;CAC7B,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAuB;IACvC,aAAa,EAAE,OAAO;IACtB,MAAM,EAAE,iBAAiB;CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAA0B;IAC9C,aAAa,EAAE,WAAW;IAC1B,MAAM,EAAE;QACN,cAAc,EAAE,WAAW;QAC3B,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n OperationParameter,\n OperationURLParameter,\n OperationQueryParameter,\n} from \"@azure/core-client\";\nimport {\n SearchIndexerDataSource as SearchIndexerDataSourceMapper,\n DocumentKeysOrIds as DocumentKeysOrIdsMapper,\n SearchIndexer as SearchIndexerMapper,\n SearchIndexerSkillset as SearchIndexerSkillsetMapper,\n SkillNames as SkillNamesMapper,\n SynonymMap as SynonymMapMapper,\n SearchIndex as SearchIndexMapper,\n AnalyzeRequest as AnalyzeRequestMapper,\n SearchAlias as SearchAliasMapper,\n} from \"../models/mappers\";\n\nexport const contentType: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const dataSource: OperationParameter = {\n parameterPath: \"dataSource\",\n mapper: SearchIndexerDataSourceMapper,\n};\n\nexport const accept: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const endpoint: OperationURLParameter = {\n parameterPath: \"endpoint\",\n mapper: {\n serializedName: \"endpoint\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n skipEncoding: true,\n};\n\nexport const dataSourceName: OperationURLParameter = {\n parameterPath: \"dataSourceName\",\n mapper: {\n serializedName: \"dataSourceName\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const ifMatch: OperationParameter = {\n parameterPath: [\"options\", \"ifMatch\"],\n mapper: {\n serializedName: \"If-Match\",\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const ifNoneMatch: OperationParameter = {\n parameterPath: [\"options\", \"ifNoneMatch\"],\n mapper: {\n serializedName: \"If-None-Match\",\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const prefer: OperationParameter = {\n parameterPath: \"prefer\",\n mapper: {\n defaultValue: \"return=representation\",\n isConstant: true,\n serializedName: \"Prefer\",\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n serializedName: \"api-version\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const skipIndexerResetRequirementForCache: OperationQueryParameter = {\n parameterPath: [\"options\", \"skipIndexerResetRequirementForCache\"],\n mapper: {\n serializedName: \"ignoreResetRequirements\",\n type: {\n name: \"Boolean\",\n },\n },\n};\n\nexport const select: OperationQueryParameter = {\n parameterPath: [\"options\", \"select\"],\n mapper: {\n serializedName: \"$select\",\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const indexerName: OperationURLParameter = {\n parameterPath: \"indexerName\",\n mapper: {\n serializedName: \"indexerName\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const keysOrIds: OperationParameter = {\n parameterPath: [\"options\", \"keysOrIds\"],\n mapper: DocumentKeysOrIdsMapper,\n};\n\nexport const overwrite: OperationQueryParameter = {\n parameterPath: [\"options\", \"overwrite\"],\n mapper: {\n defaultValue: false,\n serializedName: \"overwrite\",\n type: {\n name: \"Boolean\",\n },\n },\n};\n\nexport const indexer: OperationParameter = {\n parameterPath: \"indexer\",\n mapper: SearchIndexerMapper,\n};\n\nexport const disableCacheReprocessingChangeDetection: OperationQueryParameter =\n {\n parameterPath: [\"options\", \"disableCacheReprocessingChangeDetection\"],\n mapper: {\n serializedName: \"disableCacheReprocessingChangeDetection\",\n type: {\n name: \"Boolean\",\n },\n },\n };\n\nexport const skillset: OperationParameter = {\n parameterPath: \"skillset\",\n mapper: SearchIndexerSkillsetMapper,\n};\n\nexport const skillsetName: OperationURLParameter = {\n parameterPath: \"skillsetName\",\n mapper: {\n serializedName: \"skillsetName\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const skillNames: OperationParameter = {\n parameterPath: \"skillNames\",\n mapper: SkillNamesMapper,\n};\n\nexport const synonymMap: OperationParameter = {\n parameterPath: \"synonymMap\",\n mapper: SynonymMapMapper,\n};\n\nexport const synonymMapName: OperationURLParameter = {\n parameterPath: \"synonymMapName\",\n mapper: {\n serializedName: \"synonymMapName\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const index: OperationParameter = {\n parameterPath: \"index\",\n mapper: SearchIndexMapper,\n};\n\nexport const indexName: OperationURLParameter = {\n parameterPath: \"indexName\",\n mapper: {\n serializedName: \"indexName\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const allowIndexDowntime: OperationQueryParameter = {\n parameterPath: [\"options\", \"allowIndexDowntime\"],\n mapper: {\n serializedName: \"allowIndexDowntime\",\n type: {\n name: \"Boolean\",\n },\n },\n};\n\nexport const request: OperationParameter = {\n parameterPath: \"request\",\n mapper: AnalyzeRequestMapper,\n};\n\nexport const alias: OperationParameter = {\n parameterPath: \"alias\",\n mapper: SearchAliasMapper,\n};\n\nexport const aliasName: OperationURLParameter = {\n parameterPath: \"aliasName\",\n mapper: {\n serializedName: \"aliasName\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n};\n"]}
@@ -66,48 +66,48 @@ const createOperationSpec = {
66
66
  httpMethod: "POST",
67
67
  responses: {
68
68
  201: {
69
- bodyMapper: Mappers.SearchAlias
69
+ bodyMapper: Mappers.SearchAlias,
70
70
  },
71
71
  default: {
72
- bodyMapper: Mappers.SearchError
73
- }
72
+ bodyMapper: Mappers.ErrorResponse,
73
+ },
74
74
  },
75
75
  requestBody: Parameters.alias,
76
76
  queryParameters: [Parameters.apiVersion],
77
77
  urlParameters: [Parameters.endpoint],
78
78
  headerParameters: [Parameters.contentType, Parameters.accept],
79
79
  mediaType: "json",
80
- serializer
80
+ serializer,
81
81
  };
82
82
  const listOperationSpec = {
83
83
  path: "/aliases",
84
84
  httpMethod: "GET",
85
85
  responses: {
86
86
  200: {
87
- bodyMapper: Mappers.ListAliasesResult
87
+ bodyMapper: Mappers.ListAliasesResult,
88
88
  },
89
89
  default: {
90
- bodyMapper: Mappers.SearchError
91
- }
90
+ bodyMapper: Mappers.ErrorResponse,
91
+ },
92
92
  },
93
93
  queryParameters: [Parameters.apiVersion],
94
94
  urlParameters: [Parameters.endpoint],
95
95
  headerParameters: [Parameters.accept],
96
- serializer
96
+ serializer,
97
97
  };
98
98
  const createOrUpdateOperationSpec = {
99
99
  path: "/aliases('{aliasName}')",
100
100
  httpMethod: "PUT",
101
101
  responses: {
102
102
  200: {
103
- bodyMapper: Mappers.SearchAlias
103
+ bodyMapper: Mappers.SearchAlias,
104
104
  },
105
105
  201: {
106
- bodyMapper: Mappers.SearchAlias
106
+ bodyMapper: Mappers.SearchAlias,
107
107
  },
108
108
  default: {
109
- bodyMapper: Mappers.SearchError
110
- }
109
+ bodyMapper: Mappers.ErrorResponse,
110
+ },
111
111
  },
112
112
  requestBody: Parameters.alias,
113
113
  queryParameters: [Parameters.apiVersion],
@@ -117,10 +117,10 @@ const createOrUpdateOperationSpec = {
117
117
  Parameters.accept,
118
118
  Parameters.ifMatch,
119
119
  Parameters.ifNoneMatch,
120
- Parameters.prefer
120
+ Parameters.prefer,
121
121
  ],
122
122
  mediaType: "json",
123
- serializer
123
+ serializer,
124
124
  };
125
125
  const deleteOperationSpec = {
126
126
  path: "/aliases('{aliasName}')",
@@ -129,32 +129,32 @@ const deleteOperationSpec = {
129
129
  204: {},
130
130
  404: {},
131
131
  default: {
132
- bodyMapper: Mappers.SearchError
133
- }
132
+ bodyMapper: Mappers.ErrorResponse,
133
+ },
134
134
  },
135
135
  queryParameters: [Parameters.apiVersion],
136
136
  urlParameters: [Parameters.endpoint, Parameters.aliasName],
137
137
  headerParameters: [
138
138
  Parameters.accept,
139
139
  Parameters.ifMatch,
140
- Parameters.ifNoneMatch
140
+ Parameters.ifNoneMatch,
141
141
  ],
142
- serializer
142
+ serializer,
143
143
  };
144
144
  const getOperationSpec = {
145
145
  path: "/aliases('{aliasName}')",
146
146
  httpMethod: "GET",
147
147
  responses: {
148
148
  200: {
149
- bodyMapper: Mappers.SearchAlias
149
+ bodyMapper: Mappers.SearchAlias,
150
150
  },
151
151
  default: {
152
- bodyMapper: Mappers.SearchError
153
- }
152
+ bodyMapper: Mappers.ErrorResponse,
153
+ },
154
154
  },
155
155
  queryParameters: [Parameters.apiVersion],
156
156
  urlParameters: [Parameters.endpoint, Parameters.aliasName],
157
157
  headerParameters: [Parameters.accept],
158
- serializer
158
+ serializer,
159
159
  };
160
160
  //# sourceMappingURL=aliases.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"aliases.js","sourceRoot":"","sources":["../../../../../src/generated/service/operations/aliases.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAenD,2CAA2C;AAC3C,MAAM,OAAO,WAAW;IAGtB;;;OAGG;IACH,YAAY,MAA2B;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACH,MAAM,CACJ,KAAkB,EAClB,OAAqC;QAErC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,KAAK,EAAE,OAAO,EAAE,EAClB,mBAAmB,CACpB,CAAC;IACJ,CAAC;IAED;;;OAGG;IACH,IAAI,CAAC,OAAmC;QACtC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,EAAE,iBAAiB,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;OAKG;IACH,cAAc,CACZ,SAAiB,EACjB,KAAkB,EAClB,OAA6C;QAE7C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,EAC7B,2BAA2B,CAC5B,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACH,MAAM,CACJ,SAAiB,EACjB,OAAqC;QAErC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,SAAS,EAAE,OAAO,EAAE,EACtB,mBAAmB,CACpB,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,GAAG,CACD,SAAiB,EACjB,OAAkC;QAElC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,SAAS,EAAE,OAAO,EAAE,EACtB,gBAAg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UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { Aliases } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { SearchServiceClient } from \"../searchServiceClient\";\nimport {\n SearchAlias,\n AliasesCreateOptionalParams,\n AliasesCreateResponse,\n AliasesListOptionalParams,\n AliasesListResponse,\n AliasesCreateOrUpdateOptionalParams,\n AliasesCreateOrUpdateResponse,\n AliasesDeleteOptionalParams,\n AliasesGetOptionalParams,\n AliasesGetResponse\n} from \"../models\";\n\n/** Class containing Aliases operations. */\nexport class AliasesImpl implements Aliases {\n private readonly client: SearchServiceClient;\n\n /**\n * Initialize a new instance of the class Aliases class.\n * @param client Reference to the service client\n */\n constructor(client: SearchServiceClient) {\n this.client = client;\n }\n\n /**\n * Creates a new search alias.\n * @param alias The definition of the alias to create.\n * @param options The options parameters.\n */\n create(\n alias: SearchAlias,\n options?: AliasesCreateOptionalParams\n ): Promise<AliasesCreateResponse> {\n return this.client.sendOperationRequest(\n { alias, options },\n createOperationSpec\n );\n }\n\n /**\n * Lists all aliases available for a search service.\n * @param options The options parameters.\n */\n list(options?: AliasesListOptionalParams): Promise<AliasesListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Creates a new search alias or updates an alias if it already exists.\n * @param aliasName The definition of the alias to create or update.\n * @param alias The definition of the alias to create or update.\n * @param options The options parameters.\n */\n createOrUpdate(\n aliasName: string,\n alias: SearchAlias,\n options?: AliasesCreateOrUpdateOptionalParams\n ): Promise<AliasesCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { aliasName, alias, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Deletes a search alias and its associated mapping to an index. This operation is permanent, with no\n * recovery option. The mapped index is untouched by this operation.\n * @param aliasName The name of the alias to delete.\n * @param options The options parameters.\n */\n delete(\n aliasName: string,\n options?: AliasesDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { aliasName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Retrieves an alias definition.\n * @param aliasName The name of the alias to retrieve.\n * @param options The options parameters.\n */\n get(\n aliasName: string,\n options?: AliasesGetOptionalParams\n ): Promise<AliasesGetResponse> {\n return this.client.sendOperationRequest(\n { aliasName, options },\n getOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/aliases\",\n httpMethod: \"POST\",\n responses: {\n 201: {\n bodyMapper: Mappers.SearchAlias\n },\n default: {\n bodyMapper: Mappers.SearchError\n }\n },\n requestBody: Parameters.alias,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/aliases\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListAliasesResult\n },\n default: {\n bodyMapper: Mappers.SearchError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/aliases('{aliasName}')\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.SearchAlias\n },\n 201: {\n bodyMapper: Mappers.SearchAlias\n },\n default: {\n bodyMapper: Mappers.SearchError\n }\n },\n requestBody: Parameters.alias,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.aliasName],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n Parameters.prefer\n ],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/aliases('{aliasName}')\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n 404: {},\n default: {\n bodyMapper: Mappers.SearchError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.aliasName],\n headerParameters: [\n Parameters.accept,\n Parameters.ifMatch,\n Parameters.ifNoneMatch\n ],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/aliases('{aliasName}')\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SearchAlias\n },\n default: {\n bodyMapper: Mappers.SearchError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.aliasName],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"aliases.js","sourceRoot":"","sources":["../../../../../src/generated/service/operations/aliases.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAenD,2CAA2C;AAC3C,MAAM,OAAO,WAAW;IAGtB;;;OAGG;IACH,YAAY,MAA2B;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACH,MAAM,CACJ,KAAkB,EAClB,OAAqC;QAErC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,KAAK,EAAE,OAAO,EAAE,EAClB,mBAAmB,CACpB,CAAC;IACJ,CAAC;IAED;;;OAGG;IACH,IAAI,CAAC,OAAmC;QACtC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,EAAE,iBAAiB,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;OAKG;IAC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AE;QAChB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,WAAW;KACvB;IACD,UAAU;CACX,CAAC;AACF,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,yBAAyB;IAC/B,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,WAAW;SAChC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,SAAS,CAAC;IAC1D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { Aliases } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { SearchServiceClient } from \"../searchServiceClient\";\nimport {\n SearchAlias,\n AliasesCreateOptionalParams,\n AliasesCreateResponse,\n AliasesListOptionalParams,\n AliasesListResponse,\n AliasesCreateOrUpdateOptionalParams,\n AliasesCreateOrUpdateResponse,\n AliasesDeleteOptionalParams,\n AliasesGetOptionalParams,\n AliasesGetResponse,\n} from \"../models\";\n\n/** Class containing Aliases operations. */\nexport class AliasesImpl implements Aliases {\n private readonly client: SearchServiceClient;\n\n /**\n * Initialize a new instance of the class Aliases class.\n * @param client Reference to the service client\n */\n constructor(client: SearchServiceClient) {\n this.client = client;\n }\n\n /**\n * Creates a new search alias.\n * @param alias The definition of the alias to create.\n * @param options The options parameters.\n */\n create(\n alias: SearchAlias,\n options?: AliasesCreateOptionalParams,\n ): Promise<AliasesCreateResponse> {\n return this.client.sendOperationRequest(\n { alias, options },\n createOperationSpec,\n );\n }\n\n /**\n * Lists all aliases available for a search service.\n * @param options The options parameters.\n */\n list(options?: AliasesListOptionalParams): Promise<AliasesListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Creates a new search alias or updates an alias if it already exists.\n * @param aliasName The definition of the alias to create or update.\n * @param alias The definition of the alias to create or update.\n * @param options The options parameters.\n */\n createOrUpdate(\n aliasName: string,\n alias: SearchAlias,\n options?: AliasesCreateOrUpdateOptionalParams,\n ): Promise<AliasesCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { aliasName, alias, options },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Deletes a search alias and its associated mapping to an index. This operation is permanent, with no\n * recovery option. The mapped index is untouched by this operation.\n * @param aliasName The name of the alias to delete.\n * @param options The options parameters.\n */\n delete(\n aliasName: string,\n options?: AliasesDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { aliasName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Retrieves an alias definition.\n * @param aliasName The name of the alias to retrieve.\n * @param options The options parameters.\n */\n get(\n aliasName: string,\n options?: AliasesGetOptionalParams,\n ): Promise<AliasesGetResponse> {\n return this.client.sendOperationRequest(\n { aliasName, options },\n getOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/aliases\",\n httpMethod: \"POST\",\n responses: {\n 201: {\n bodyMapper: Mappers.SearchAlias,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.alias,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/aliases\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListAliasesResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/aliases('{aliasName}')\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.SearchAlias,\n },\n 201: {\n bodyMapper: Mappers.SearchAlias,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.alias,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.aliasName],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n Parameters.prefer,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/aliases('{aliasName}')\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n 404: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.aliasName],\n headerParameters: [\n Parameters.accept,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n ],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/aliases('{aliasName}')\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SearchAlias,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.aliasName],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -65,19 +65,19 @@ const createOrUpdateOperationSpec = {
65
65
  httpMethod: "PUT",
66
66
  responses: {
67
67
  200: {
68
- bodyMapper: Mappers.SearchIndexerDataSource
68
+ bodyMapper: Mappers.SearchIndexerDataSource,
69
69
  },
70
70
  201: {
71
- bodyMapper: Mappers.SearchIndexerDataSource
71
+ bodyMapper: Mappers.SearchIndexerDataSource,
72
72
  },
73
73
  default: {
74
- bodyMapper: Mappers.SearchError
75
- }
74
+ bodyMapper: Mappers.ErrorResponse,
75
+ },
76
76
  },
77
77
  requestBody: Parameters.dataSource,
78
78
  queryParameters: [
79
79
  Parameters.apiVersion,
80
- Parameters.skipIndexerResetRequirementForCache
80
+ Parameters.skipIndexerResetRequirementForCache,
81
81
  ],
82
82
  urlParameters: [Parameters.endpoint, Parameters.dataSourceName],
83
83
  headerParameters: [
@@ -85,10 +85,10 @@ const createOrUpdateOperationSpec = {
85
85
  Parameters.accept,
86
86
  Parameters.ifMatch,
87
87
  Parameters.ifNoneMatch,
88
- Parameters.prefer
88
+ Parameters.prefer,
89
89
  ],
90
90
  mediaType: "json",
91
- serializer
91
+ serializer,
92
92
  };
93
93
  const deleteOperationSpec = {
94
94
  path: "/datasources('{dataSourceName}')",
@@ -97,66 +97,66 @@ const deleteOperationSpec = {
97
97
  204: {},
98
98
  404: {},
99
99
  default: {
100
- bodyMapper: Mappers.SearchError
101
- }
100
+ bodyMapper: Mappers.ErrorResponse,
101
+ },
102
102
  },
103
103
  queryParameters: [Parameters.apiVersion],
104
104
  urlParameters: [Parameters.endpoint, Parameters.dataSourceName],
105
105
  headerParameters: [
106
106
  Parameters.accept,
107
107
  Parameters.ifMatch,
108
- Parameters.ifNoneMatch
108
+ Parameters.ifNoneMatch,
109
109
  ],
110
- serializer
110
+ serializer,
111
111
  };
112
112
  const getOperationSpec = {
113
113
  path: "/datasources('{dataSourceName}')",
114
114
  httpMethod: "GET",
115
115
  responses: {
116
116
  200: {
117
- bodyMapper: Mappers.SearchIndexerDataSource
117
+ bodyMapper: Mappers.SearchIndexerDataSource,
118
118
  },
119
119
  default: {
120
- bodyMapper: Mappers.SearchError
121
- }
120
+ bodyMapper: Mappers.ErrorResponse,
121
+ },
122
122
  },
123
123
  queryParameters: [Parameters.apiVersion],
124
124
  urlParameters: [Parameters.endpoint, Parameters.dataSourceName],
125
125
  headerParameters: [Parameters.accept],
126
- serializer
126
+ serializer,
127
127
  };
128
128
  const listOperationSpec = {
129
129
  path: "/datasources",
130
130
  httpMethod: "GET",
131
131
  responses: {
132
132
  200: {
133
- bodyMapper: Mappers.ListDataSourcesResult
133
+ bodyMapper: Mappers.ListDataSourcesResult,
134
134
  },
135
135
  default: {
136
- bodyMapper: Mappers.SearchError
137
- }
136
+ bodyMapper: Mappers.ErrorResponse,
137
+ },
138
138
  },
139
139
  queryParameters: [Parameters.apiVersion, Parameters.select],
140
140
  urlParameters: [Parameters.endpoint],
141
141
  headerParameters: [Parameters.accept],
142
- serializer
142
+ serializer,
143
143
  };
144
144
  const createOperationSpec = {
145
145
  path: "/datasources",
146
146
  httpMethod: "POST",
147
147
  responses: {
148
148
  201: {
149
- bodyMapper: Mappers.SearchIndexerDataSource
149
+ bodyMapper: Mappers.SearchIndexerDataSource,
150
150
  },
151
151
  default: {
152
- bodyMapper: Mappers.SearchError
153
- }
152
+ bodyMapper: Mappers.ErrorResponse,
153
+ },
154
154
  },
155
155
  requestBody: Parameters.dataSource,
156
156
  queryParameters: [Parameters.apiVersion],
157
157
  urlParameters: [Parameters.endpoint],
158
158
  headerParameters: [Parameters.contentType, Parameters.accept],
159
159
  mediaType: "json",
160
- serializer
160
+ serializer,
161
161
  };
162
162
  //# sourceMappingURL=dataSources.js.map