@azure/arm-search 2.0.0 → 3.0.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.
- package/CHANGELOG.md +14 -0
- package/{LICENSE.txt → LICENSE} +1 -1
- package/README.md +70 -78
- package/dist/index.js +2926 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/{esm/models/adminKeysMappers.js → dist-esm/src/index.js} +5 -2
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +692 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +21 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +35 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +503 -558
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +22 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/parameters.js +92 -47
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/adminKeys.d.ts +33 -0
- package/dist-esm/src/operations/adminKeys.d.ts.map +1 -0
- package/dist-esm/src/operations/adminKeys.js +90 -0
- package/dist-esm/src/operations/adminKeys.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +1 -2
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +26 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +90 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +79 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.js +273 -0
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts +34 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.js +103 -0
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operations/queryKeys.d.ts +66 -0
- package/dist-esm/src/operations/queryKeys.d.ts.map +1 -0
- package/dist-esm/src/operations/queryKeys.js +213 -0
- package/dist-esm/src/operations/queryKeys.js.map +1 -0
- package/dist-esm/src/operations/services.d.ts +123 -0
- package/dist-esm/src/operations/services.d.ts.map +1 -0
- package/dist-esm/src/operations/services.js +475 -0
- package/dist-esm/src/operations/services.js.map +1 -0
- package/dist-esm/src/operations/sharedPrivateLinkResources.d.ts +107 -0
- package/dist-esm/src/operations/sharedPrivateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operations/sharedPrivateLinkResources.js +379 -0
- package/dist-esm/src/operations/sharedPrivateLinkResources.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/adminKeys.d.ts +25 -0
- package/dist-esm/src/operationsInterfaces/adminKeys.d.ts.map +1 -0
- package/{src/models/adminKeysMappers.ts → dist-esm/src/operationsInterfaces/adminKeys.js} +2 -5
- package/dist-esm/src/operationsInterfaces/adminKeys.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +8 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +15 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/{src/models/queryKeysMappers.ts → dist-esm/src/operationsInterfaces/operations.js} +2 -6
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +50 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/{src/models/operationsMappers.ts → dist-esm/src/operationsInterfaces/privateEndpointConnections.js} +2 -7
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +15 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/queryKeys.d.ts +37 -0
- package/dist-esm/src/operationsInterfaces/queryKeys.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/queryKeys.js +9 -0
- package/dist-esm/src/operationsInterfaces/queryKeys.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/services.d.ts +85 -0
- package/dist-esm/src/operationsInterfaces/services.d.ts.map +1 -0
- package/{esm/models/index.js → dist-esm/src/operationsInterfaces/services.js} +2 -1
- package/dist-esm/src/operationsInterfaces/services.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/sharedPrivateLinkResources.d.ts +78 -0
- package/dist-esm/src/operationsInterfaces/sharedPrivateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/sharedPrivateLinkResources.js +9 -0
- package/dist-esm/src/operationsInterfaces/sharedPrivateLinkResources.js.map +1 -0
- package/dist-esm/src/searchManagementClient.d.ts +25 -0
- package/dist-esm/src/searchManagementClient.d.ts.map +1 -0
- package/dist-esm/src/searchManagementClient.js +58 -0
- package/dist-esm/src/searchManagementClient.js.map +1 -0
- package/dist-esm/test/search_examples.d.ts +4 -0
- package/dist-esm/test/search_examples.d.ts.map +1 -0
- package/dist-esm/test/search_examples.js +163 -0
- package/dist-esm/test/search_examples.js.map +1 -0
- package/package.json +65 -32
- package/review/arm-search.api.md +600 -0
- package/rollup.config.js +181 -30
- package/{esm/models/queryKeysMappers.js → src/index.ts} +5 -2
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +563 -1357
- package/src/models/mappers.ts +516 -575
- package/src/models/parameters.ts +122 -48
- package/src/operations/adminKeys.ts +65 -109
- package/src/operations/index.ts +1 -2
- package/src/operations/operations.ts +64 -39
- package/src/operations/privateEndpointConnections.ts +223 -235
- package/src/operations/privateLinkResources.ts +100 -54
- package/src/operations/queryKeys.ts +192 -190
- package/src/operations/services.ts +423 -409
- package/src/operations/sharedPrivateLinkResources.ts +390 -232
- package/src/operationsInterfaces/adminKeys.ts +48 -0
- package/src/operationsInterfaces/index.ts +15 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/privateEndpointConnections.ts +88 -0
- package/src/operationsInterfaces/privateLinkResources.ts +31 -0
- package/src/operationsInterfaces/queryKeys.ts +66 -0
- package/src/operationsInterfaces/services.ts +144 -0
- package/src/operationsInterfaces/sharedPrivateLinkResources.ts +131 -0
- package/src/searchManagementClient.ts +90 -46
- package/tsconfig.json +3 -3
- package/types/arm-search.d.ts +1104 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-search.js +0 -2737
- package/dist/arm-search.js.map +0 -1
- package/dist/arm-search.min.js +0 -1
- package/dist/arm-search.min.js.map +0 -1
- package/esm/models/adminKeysMappers.d.ts +0 -2
- package/esm/models/adminKeysMappers.d.ts.map +0 -1
- package/esm/models/adminKeysMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -1499
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -38
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -9
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -14
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/privateEndpointConnectionsMappers.d.ts +0 -2
- package/esm/models/privateEndpointConnectionsMappers.d.ts.map +0 -1
- package/esm/models/privateEndpointConnectionsMappers.js +0 -9
- package/esm/models/privateEndpointConnectionsMappers.js.map +0 -1
- package/esm/models/privateLinkResourcesMappers.d.ts +0 -2
- package/esm/models/privateLinkResourcesMappers.d.ts.map +0 -1
- package/esm/models/privateLinkResourcesMappers.js +0 -9
- package/esm/models/privateLinkResourcesMappers.js.map +0 -1
- package/esm/models/queryKeysMappers.d.ts +0 -2
- package/esm/models/queryKeysMappers.d.ts.map +0 -1
- package/esm/models/queryKeysMappers.js.map +0 -1
- package/esm/models/servicesMappers.d.ts +0 -2
- package/esm/models/servicesMappers.d.ts.map +0 -1
- package/esm/models/servicesMappers.js +0 -9
- package/esm/models/servicesMappers.js.map +0 -1
- package/esm/models/sharedPrivateLinkResourcesMappers.d.ts +0 -2
- package/esm/models/sharedPrivateLinkResourcesMappers.d.ts.map +0 -1
- package/esm/models/sharedPrivateLinkResourcesMappers.js +0 -9
- package/esm/models/sharedPrivateLinkResourcesMappers.js.map +0 -1
- package/esm/operations/adminKeys.d.ts +0 -74
- package/esm/operations/adminKeys.d.ts.map +0 -1
- package/esm/operations/adminKeys.js +0 -92
- package/esm/operations/adminKeys.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -28
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -50
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/privateEndpointConnections.d.ts +0 -161
- package/esm/operations/privateEndpointConnections.d.ts.map +0 -1
- package/esm/operations/privateEndpointConnections.js +0 -197
- package/esm/operations/privateEndpointConnections.js.map +0 -1
- package/esm/operations/privateLinkResources.d.ts +0 -40
- package/esm/operations/privateLinkResources.d.ts.map +0 -1
- package/esm/operations/privateLinkResources.js +0 -58
- package/esm/operations/privateLinkResources.js.map +0 -1
- package/esm/operations/queryKeys.d.ts +0 -120
- package/esm/operations/queryKeys.d.ts.map +0 -1
- package/esm/operations/queryKeys.js +0 -156
- package/esm/operations/queryKeys.js.map +0 -1
- package/esm/operations/services.d.ts +0 -225
- package/esm/operations/services.d.ts.map +0 -1
- package/esm/operations/services.js +0 -355
- package/esm/operations/services.js.map +0 -1
- package/esm/operations/sharedPrivateLinkResources.d.ts +0 -147
- package/esm/operations/sharedPrivateLinkResources.d.ts.map +0 -1
- package/esm/operations/sharedPrivateLinkResources.js +0 -255
- package/esm/operations/sharedPrivateLinkResources.js.map +0 -1
- package/esm/searchManagementClient.d.ts +0 -31
- package/esm/searchManagementClient.d.ts.map +0 -1
- package/esm/searchManagementClient.js +0 -44
- package/esm/searchManagementClient.js.map +0 -1
- package/esm/searchManagementClientContext.d.ts +0 -23
- package/esm/searchManagementClientContext.d.ts.map +0 -1
- package/esm/searchManagementClientContext.js +0 -61
- package/esm/searchManagementClientContext.js.map +0 -1
- package/src/models/privateEndpointConnectionsMappers.ts +0 -33
- package/src/models/privateLinkResourcesMappers.ts +0 -33
- package/src/models/servicesMappers.ts +0 -35
- package/src/models/sharedPrivateLinkResourcesMappers.ts +0 -33
- package/src/searchManagementClientContext.ts +0 -68
package/src/models/parameters.ts
CHANGED
|
@@ -3,33 +3,81 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
7
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
7
|
*/
|
|
9
8
|
|
|
10
|
-
import
|
|
9
|
+
import {
|
|
10
|
+
OperationParameter,
|
|
11
|
+
OperationURLParameter,
|
|
12
|
+
OperationQueryParameter
|
|
13
|
+
} from "@azure/core-client";
|
|
14
|
+
import {
|
|
15
|
+
SearchService as SearchServiceMapper,
|
|
16
|
+
SearchServiceUpdate as SearchServiceUpdateMapper,
|
|
17
|
+
CheckNameAvailabilityInput as CheckNameAvailabilityInputMapper,
|
|
18
|
+
PrivateEndpointConnection as PrivateEndpointConnectionMapper,
|
|
19
|
+
SharedPrivateLinkResource as SharedPrivateLinkResourceMapper
|
|
20
|
+
} from "../models/mappers";
|
|
11
21
|
|
|
12
|
-
export const
|
|
13
|
-
parameterPath: "
|
|
22
|
+
export const accept: OperationParameter = {
|
|
23
|
+
parameterPath: "accept",
|
|
14
24
|
mapper: {
|
|
15
|
-
|
|
16
|
-
|
|
25
|
+
defaultValue: "application/json",
|
|
26
|
+
isConstant: true,
|
|
27
|
+
serializedName: "Accept",
|
|
17
28
|
type: {
|
|
18
29
|
name: "String"
|
|
19
30
|
}
|
|
20
31
|
}
|
|
21
32
|
};
|
|
22
|
-
|
|
23
|
-
|
|
33
|
+
|
|
34
|
+
export const $host: OperationURLParameter = {
|
|
35
|
+
parameterPath: "$host",
|
|
24
36
|
mapper: {
|
|
37
|
+
serializedName: "$host",
|
|
25
38
|
required: true,
|
|
39
|
+
type: {
|
|
40
|
+
name: "String"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
skipEncoding: true
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export const apiVersion: OperationQueryParameter = {
|
|
47
|
+
parameterPath: "apiVersion",
|
|
48
|
+
mapper: {
|
|
49
|
+
defaultValue: "2020-08-01",
|
|
50
|
+
isConstant: true,
|
|
26
51
|
serializedName: "api-version",
|
|
27
52
|
type: {
|
|
28
53
|
name: "String"
|
|
29
54
|
}
|
|
30
55
|
}
|
|
31
56
|
};
|
|
32
|
-
|
|
57
|
+
|
|
58
|
+
export const resourceGroupName: OperationURLParameter = {
|
|
59
|
+
parameterPath: "resourceGroupName",
|
|
60
|
+
mapper: {
|
|
61
|
+
serializedName: "resourceGroupName",
|
|
62
|
+
required: true,
|
|
63
|
+
type: {
|
|
64
|
+
name: "String"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export const searchServiceName: OperationURLParameter = {
|
|
70
|
+
parameterPath: "searchServiceName",
|
|
71
|
+
mapper: {
|
|
72
|
+
serializedName: "searchServiceName",
|
|
73
|
+
required: true,
|
|
74
|
+
type: {
|
|
75
|
+
name: "String"
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
export const clientRequestId: OperationParameter = {
|
|
33
81
|
parameterPath: [
|
|
34
82
|
"options",
|
|
35
83
|
"searchManagementRequestOptions",
|
|
@@ -42,96 +90,122 @@ export const clientRequestId: msRest.OperationParameter = {
|
|
|
42
90
|
}
|
|
43
91
|
}
|
|
44
92
|
};
|
|
45
|
-
|
|
46
|
-
|
|
93
|
+
|
|
94
|
+
export const subscriptionId: OperationURLParameter = {
|
|
95
|
+
parameterPath: "subscriptionId",
|
|
47
96
|
mapper: {
|
|
97
|
+
serializedName: "subscriptionId",
|
|
48
98
|
required: true,
|
|
49
|
-
serializedName: "key",
|
|
50
99
|
type: {
|
|
51
100
|
name: "String"
|
|
52
101
|
}
|
|
53
102
|
}
|
|
54
103
|
};
|
|
55
|
-
|
|
104
|
+
|
|
105
|
+
export const keyKind: OperationURLParameter = {
|
|
56
106
|
parameterPath: "keyKind",
|
|
57
107
|
mapper: {
|
|
58
|
-
required: true,
|
|
59
108
|
serializedName: "keyKind",
|
|
109
|
+
required: true,
|
|
60
110
|
type: {
|
|
61
111
|
name: "Enum",
|
|
62
|
-
allowedValues: [
|
|
63
|
-
"primary",
|
|
64
|
-
"secondary"
|
|
65
|
-
]
|
|
112
|
+
allowedValues: ["primary", "secondary"]
|
|
66
113
|
}
|
|
67
114
|
}
|
|
68
115
|
};
|
|
69
|
-
|
|
116
|
+
|
|
117
|
+
export const name: OperationURLParameter = {
|
|
70
118
|
parameterPath: "name",
|
|
71
119
|
mapper: {
|
|
72
|
-
required: true,
|
|
73
120
|
serializedName: "name",
|
|
121
|
+
required: true,
|
|
74
122
|
type: {
|
|
75
123
|
name: "String"
|
|
76
124
|
}
|
|
77
125
|
}
|
|
78
126
|
};
|
|
79
|
-
|
|
80
|
-
|
|
127
|
+
|
|
128
|
+
export const key: OperationURLParameter = {
|
|
129
|
+
parameterPath: "key",
|
|
81
130
|
mapper: {
|
|
131
|
+
serializedName: "key",
|
|
82
132
|
required: true,
|
|
83
|
-
serializedName: "nextLink",
|
|
84
133
|
type: {
|
|
85
134
|
name: "String"
|
|
86
135
|
}
|
|
87
|
-
}
|
|
88
|
-
skipEncoding: true
|
|
136
|
+
}
|
|
89
137
|
};
|
|
90
|
-
|
|
91
|
-
|
|
138
|
+
|
|
139
|
+
export const nextLink: OperationURLParameter = {
|
|
140
|
+
parameterPath: "nextLink",
|
|
92
141
|
mapper: {
|
|
142
|
+
serializedName: "nextLink",
|
|
93
143
|
required: true,
|
|
94
|
-
serializedName: "privateEndpointConnectionName",
|
|
95
144
|
type: {
|
|
96
145
|
name: "String"
|
|
97
146
|
}
|
|
98
|
-
}
|
|
147
|
+
},
|
|
148
|
+
skipEncoding: true
|
|
99
149
|
};
|
|
100
|
-
|
|
101
|
-
|
|
150
|
+
|
|
151
|
+
export const contentType: OperationParameter = {
|
|
152
|
+
parameterPath: ["options", "contentType"],
|
|
102
153
|
mapper: {
|
|
103
|
-
|
|
104
|
-
|
|
154
|
+
defaultValue: "application/json",
|
|
155
|
+
isConstant: true,
|
|
156
|
+
serializedName: "Content-Type",
|
|
105
157
|
type: {
|
|
106
158
|
name: "String"
|
|
107
159
|
}
|
|
108
160
|
}
|
|
109
161
|
};
|
|
110
|
-
|
|
111
|
-
|
|
162
|
+
|
|
163
|
+
export const service: OperationParameter = {
|
|
164
|
+
parameterPath: "service",
|
|
165
|
+
mapper: SearchServiceMapper
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
export const service1: OperationParameter = {
|
|
169
|
+
parameterPath: "service",
|
|
170
|
+
mapper: SearchServiceUpdateMapper
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
export const name1: OperationParameter = {
|
|
174
|
+
parameterPath: "name",
|
|
175
|
+
mapper: CheckNameAvailabilityInputMapper
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
export const typeParam: OperationParameter = {
|
|
179
|
+
parameterPath: "typeParam",
|
|
180
|
+
mapper: CheckNameAvailabilityInputMapper
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
export const privateEndpointConnection: OperationParameter = {
|
|
184
|
+
parameterPath: "privateEndpointConnection",
|
|
185
|
+
mapper: PrivateEndpointConnectionMapper
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
export const privateEndpointConnectionName: OperationURLParameter = {
|
|
189
|
+
parameterPath: "privateEndpointConnectionName",
|
|
112
190
|
mapper: {
|
|
191
|
+
serializedName: "privateEndpointConnectionName",
|
|
113
192
|
required: true,
|
|
114
|
-
serializedName: "searchServiceName",
|
|
115
193
|
type: {
|
|
116
194
|
name: "String"
|
|
117
195
|
}
|
|
118
196
|
}
|
|
119
197
|
};
|
|
120
|
-
|
|
198
|
+
|
|
199
|
+
export const sharedPrivateLinkResource: OperationParameter = {
|
|
200
|
+
parameterPath: "sharedPrivateLinkResource",
|
|
201
|
+
mapper: SharedPrivateLinkResourceMapper
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
export const sharedPrivateLinkResourceName: OperationURLParameter = {
|
|
121
205
|
parameterPath: "sharedPrivateLinkResourceName",
|
|
122
206
|
mapper: {
|
|
123
|
-
required: true,
|
|
124
207
|
serializedName: "sharedPrivateLinkResourceName",
|
|
125
|
-
type: {
|
|
126
|
-
name: "String"
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
export const subscriptionId: msRest.OperationURLParameter = {
|
|
131
|
-
parameterPath: "subscriptionId",
|
|
132
|
-
mapper: {
|
|
133
208
|
required: true,
|
|
134
|
-
serializedName: "subscriptionId",
|
|
135
209
|
type: {
|
|
136
210
|
name: "String"
|
|
137
211
|
}
|
|
@@ -3,130 +3,82 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
7
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
7
|
*/
|
|
9
8
|
|
|
10
|
-
import
|
|
11
|
-
import * as
|
|
12
|
-
import * as Mappers from "../models/
|
|
9
|
+
import { AdminKeys } from "../operationsInterfaces";
|
|
10
|
+
import * as coreClient from "@azure/core-client";
|
|
11
|
+
import * as Mappers from "../models/mappers";
|
|
13
12
|
import * as Parameters from "../models/parameters";
|
|
14
|
-
import {
|
|
13
|
+
import { SearchManagementClient } from "../searchManagementClient";
|
|
14
|
+
import {
|
|
15
|
+
AdminKeysGetOptionalParams,
|
|
16
|
+
AdminKeysGetResponse,
|
|
17
|
+
AdminKeyKind,
|
|
18
|
+
AdminKeysRegenerateOptionalParams,
|
|
19
|
+
AdminKeysRegenerateResponse
|
|
20
|
+
} from "../models";
|
|
15
21
|
|
|
16
|
-
/** Class
|
|
17
|
-
export class AdminKeys {
|
|
18
|
-
private readonly client:
|
|
22
|
+
/** Class containing AdminKeys operations. */
|
|
23
|
+
export class AdminKeysImpl implements AdminKeys {
|
|
24
|
+
private readonly client: SearchManagementClient;
|
|
19
25
|
|
|
20
26
|
/**
|
|
21
|
-
*
|
|
22
|
-
* @param
|
|
27
|
+
* Initialize a new instance of the class AdminKeys class.
|
|
28
|
+
* @param client Reference to the service client
|
|
23
29
|
*/
|
|
24
|
-
constructor(client:
|
|
30
|
+
constructor(client: SearchManagementClient) {
|
|
25
31
|
this.client = client;
|
|
26
32
|
}
|
|
27
33
|
|
|
28
34
|
/**
|
|
29
35
|
* Gets the primary and secondary admin API keys for the specified Azure Cognitive Search service.
|
|
30
36
|
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
31
|
-
*
|
|
37
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
32
38
|
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
33
|
-
*
|
|
34
|
-
* @param
|
|
35
|
-
* @returns Promise<Models.AdminKeysGetResponse>
|
|
39
|
+
* specified resource group.
|
|
40
|
+
* @param options The options parameters.
|
|
36
41
|
*/
|
|
37
|
-
get(
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
* specified resource group.
|
|
43
|
-
* @param callback The callback
|
|
44
|
-
*/
|
|
45
|
-
get(resourceGroupName: string, searchServiceName: string, callback: msRest.ServiceCallback<Models.AdminKeyResult>): void;
|
|
46
|
-
/**
|
|
47
|
-
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
48
|
-
* obtain this value from the Azure Resource Manager API or the portal.
|
|
49
|
-
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
50
|
-
* specified resource group.
|
|
51
|
-
* @param options The optional parameters
|
|
52
|
-
* @param callback The callback
|
|
53
|
-
*/
|
|
54
|
-
get(resourceGroupName: string, searchServiceName: string, options: Models.AdminKeysGetOptionalParams, callback: msRest.ServiceCallback<Models.AdminKeyResult>): void;
|
|
55
|
-
get(resourceGroupName: string, searchServiceName: string, options?: Models.AdminKeysGetOptionalParams | msRest.ServiceCallback<Models.AdminKeyResult>, callback?: msRest.ServiceCallback<Models.AdminKeyResult>): Promise<Models.AdminKeysGetResponse> {
|
|
42
|
+
get(
|
|
43
|
+
resourceGroupName: string,
|
|
44
|
+
searchServiceName: string,
|
|
45
|
+
options?: AdminKeysGetOptionalParams
|
|
46
|
+
): Promise<AdminKeysGetResponse> {
|
|
56
47
|
return this.client.sendOperationRequest(
|
|
57
|
-
{
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
options
|
|
61
|
-
},
|
|
62
|
-
getOperationSpec,
|
|
63
|
-
callback) as Promise<Models.AdminKeysGetResponse>;
|
|
48
|
+
{ resourceGroupName, searchServiceName, options },
|
|
49
|
+
getOperationSpec
|
|
50
|
+
);
|
|
64
51
|
}
|
|
65
52
|
|
|
66
53
|
/**
|
|
67
54
|
* Regenerates either the primary or secondary admin API key. You can only regenerate one key at a
|
|
68
55
|
* time.
|
|
69
56
|
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
70
|
-
*
|
|
57
|
+
* obtain this value from the Azure Resource Manager API or the portal.
|
|
71
58
|
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
72
|
-
*
|
|
73
|
-
* @param keyKind Specifies which key to regenerate. Valid values include 'primary' and
|
|
74
|
-
*
|
|
75
|
-
* @param [options] The optional parameters
|
|
76
|
-
* @returns Promise<Models.AdminKeysRegenerateResponse>
|
|
59
|
+
* specified resource group.
|
|
60
|
+
* @param keyKind Specifies which key to regenerate. Valid values include 'primary' and 'secondary'.
|
|
61
|
+
* @param options The options parameters.
|
|
77
62
|
*/
|
|
78
|
-
regenerate(
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
* @param keyKind Specifies which key to regenerate. Valid values include 'primary' and
|
|
85
|
-
* 'secondary'. Possible values include: 'primary', 'secondary'
|
|
86
|
-
* @param callback The callback
|
|
87
|
-
*/
|
|
88
|
-
regenerate(resourceGroupName: string, searchServiceName: string, keyKind: Models.AdminKeyKind, callback: msRest.ServiceCallback<Models.AdminKeyResult>): void;
|
|
89
|
-
/**
|
|
90
|
-
* @param resourceGroupName The name of the resource group within the current subscription. You can
|
|
91
|
-
* obtain this value from the Azure Resource Manager API or the portal.
|
|
92
|
-
* @param searchServiceName The name of the Azure Cognitive Search service associated with the
|
|
93
|
-
* specified resource group.
|
|
94
|
-
* @param keyKind Specifies which key to regenerate. Valid values include 'primary' and
|
|
95
|
-
* 'secondary'. Possible values include: 'primary', 'secondary'
|
|
96
|
-
* @param options The optional parameters
|
|
97
|
-
* @param callback The callback
|
|
98
|
-
*/
|
|
99
|
-
regenerate(resourceGroupName: string, searchServiceName: string, keyKind: Models.AdminKeyKind, options: Models.AdminKeysRegenerateOptionalParams, callback: msRest.ServiceCallback<Models.AdminKeyResult>): void;
|
|
100
|
-
regenerate(resourceGroupName: string, searchServiceName: string, keyKind: Models.AdminKeyKind, options?: Models.AdminKeysRegenerateOptionalParams | msRest.ServiceCallback<Models.AdminKeyResult>, callback?: msRest.ServiceCallback<Models.AdminKeyResult>): Promise<Models.AdminKeysRegenerateResponse> {
|
|
63
|
+
regenerate(
|
|
64
|
+
resourceGroupName: string,
|
|
65
|
+
searchServiceName: string,
|
|
66
|
+
keyKind: AdminKeyKind,
|
|
67
|
+
options?: AdminKeysRegenerateOptionalParams
|
|
68
|
+
): Promise<AdminKeysRegenerateResponse> {
|
|
101
69
|
return this.client.sendOperationRequest(
|
|
102
|
-
{
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
keyKind,
|
|
106
|
-
options
|
|
107
|
-
},
|
|
108
|
-
regenerateOperationSpec,
|
|
109
|
-
callback) as Promise<Models.AdminKeysRegenerateResponse>;
|
|
70
|
+
{ resourceGroupName, searchServiceName, keyKind, options },
|
|
71
|
+
regenerateOperationSpec
|
|
72
|
+
);
|
|
110
73
|
}
|
|
111
74
|
}
|
|
112
|
-
|
|
113
75
|
// Operation Specifications
|
|
114
|
-
const serializer =
|
|
115
|
-
|
|
76
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
77
|
+
|
|
78
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
79
|
+
path:
|
|
80
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/listAdminKeys",
|
|
116
81
|
httpMethod: "POST",
|
|
117
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/listAdminKeys",
|
|
118
|
-
urlParameters: [
|
|
119
|
-
Parameters.resourceGroupName,
|
|
120
|
-
Parameters.searchServiceName,
|
|
121
|
-
Parameters.subscriptionId
|
|
122
|
-
],
|
|
123
|
-
queryParameters: [
|
|
124
|
-
Parameters.apiVersion
|
|
125
|
-
],
|
|
126
|
-
headerParameters: [
|
|
127
|
-
Parameters.acceptLanguage,
|
|
128
|
-
Parameters.clientRequestId
|
|
129
|
-
],
|
|
130
82
|
responses: {
|
|
131
83
|
200: {
|
|
132
84
|
bodyMapper: Mappers.AdminKeyResult
|
|
@@ -135,25 +87,20 @@ const getOperationSpec: msRest.OperationSpec = {
|
|
|
135
87
|
bodyMapper: Mappers.CloudError
|
|
136
88
|
}
|
|
137
89
|
},
|
|
138
|
-
|
|
139
|
-
};
|
|
140
|
-
|
|
141
|
-
const regenerateOperationSpec: msRest.OperationSpec = {
|
|
142
|
-
httpMethod: "POST",
|
|
143
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/regenerateAdminKey/{keyKind}",
|
|
90
|
+
queryParameters: [Parameters.apiVersion],
|
|
144
91
|
urlParameters: [
|
|
92
|
+
Parameters.$host,
|
|
145
93
|
Parameters.resourceGroupName,
|
|
146
94
|
Parameters.searchServiceName,
|
|
147
|
-
Parameters.keyKind,
|
|
148
95
|
Parameters.subscriptionId
|
|
149
96
|
],
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
97
|
+
headerParameters: [Parameters.accept, Parameters.clientRequestId],
|
|
98
|
+
serializer
|
|
99
|
+
};
|
|
100
|
+
const regenerateOperationSpec: coreClient.OperationSpec = {
|
|
101
|
+
path:
|
|
102
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/regenerateAdminKey/{keyKind}",
|
|
103
|
+
httpMethod: "POST",
|
|
157
104
|
responses: {
|
|
158
105
|
200: {
|
|
159
106
|
bodyMapper: Mappers.AdminKeyResult
|
|
@@ -162,5 +109,14 @@ const regenerateOperationSpec: msRest.OperationSpec = {
|
|
|
162
109
|
bodyMapper: Mappers.CloudError
|
|
163
110
|
}
|
|
164
111
|
},
|
|
112
|
+
queryParameters: [Parameters.apiVersion],
|
|
113
|
+
urlParameters: [
|
|
114
|
+
Parameters.$host,
|
|
115
|
+
Parameters.resourceGroupName,
|
|
116
|
+
Parameters.searchServiceName,
|
|
117
|
+
Parameters.subscriptionId,
|
|
118
|
+
Parameters.keyKind
|
|
119
|
+
],
|
|
120
|
+
headerParameters: [Parameters.accept, Parameters.clientRequestId],
|
|
165
121
|
serializer
|
|
166
122
|
};
|
package/src/operations/index.ts
CHANGED
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
7
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
7
|
*/
|
|
9
8
|
|
|
10
9
|
export * from "./operations";
|
|
@@ -3,64 +3,86 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
7
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
7
|
*/
|
|
9
8
|
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import * as
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { Operations } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
13
13
|
import * as Parameters from "../models/parameters";
|
|
14
|
-
import {
|
|
14
|
+
import { SearchManagementClient } from "../searchManagementClient";
|
|
15
|
+
import {
|
|
16
|
+
Operation,
|
|
17
|
+
OperationsListOptionalParams,
|
|
18
|
+
OperationsListResponse
|
|
19
|
+
} from "../models";
|
|
15
20
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
21
|
+
/// <reference lib="esnext.asynciterable" />
|
|
22
|
+
/** Class containing Operations operations. */
|
|
23
|
+
export class OperationsImpl implements Operations {
|
|
24
|
+
private readonly client: SearchManagementClient;
|
|
19
25
|
|
|
20
26
|
/**
|
|
21
|
-
*
|
|
22
|
-
* @param
|
|
27
|
+
* Initialize a new instance of the class Operations class.
|
|
28
|
+
* @param client Reference to the service client
|
|
23
29
|
*/
|
|
24
|
-
constructor(client:
|
|
30
|
+
constructor(client: SearchManagementClient) {
|
|
25
31
|
this.client = client;
|
|
26
32
|
}
|
|
27
33
|
|
|
28
34
|
/**
|
|
29
35
|
* Lists all of the available REST API operations of the Microsoft.Search provider.
|
|
30
|
-
* @param
|
|
31
|
-
* @returns Promise<Models.OperationsListResponse>
|
|
36
|
+
* @param options The options parameters.
|
|
32
37
|
*/
|
|
33
|
-
list(
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
+
public list(
|
|
39
|
+
options?: OperationsListOptionalParams
|
|
40
|
+
): PagedAsyncIterableIterator<Operation> {
|
|
41
|
+
const iter = this.listPagingAll(options);
|
|
42
|
+
return {
|
|
43
|
+
next() {
|
|
44
|
+
return iter.next();
|
|
45
|
+
},
|
|
46
|
+
[Symbol.asyncIterator]() {
|
|
47
|
+
return this;
|
|
48
|
+
},
|
|
49
|
+
byPage: () => {
|
|
50
|
+
return this.listPagingPage(options);
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
private async *listPagingPage(
|
|
56
|
+
options?: OperationsListOptionalParams
|
|
57
|
+
): AsyncIterableIterator<Operation[]> {
|
|
58
|
+
let result = await this._list(options);
|
|
59
|
+
yield result.value || [];
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
private async *listPagingAll(
|
|
63
|
+
options?: OperationsListOptionalParams
|
|
64
|
+
): AsyncIterableIterator<Operation> {
|
|
65
|
+
for await (const page of this.listPagingPage(options)) {
|
|
66
|
+
yield* page;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
38
70
|
/**
|
|
39
|
-
*
|
|
40
|
-
* @param
|
|
71
|
+
* Lists all of the available REST API operations of the Microsoft.Search provider.
|
|
72
|
+
* @param options The options parameters.
|
|
41
73
|
*/
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
options
|
|
47
|
-
},
|
|
48
|
-
listOperationSpec,
|
|
49
|
-
callback) as Promise<Models.OperationsListResponse>;
|
|
74
|
+
private _list(
|
|
75
|
+
options?: OperationsListOptionalParams
|
|
76
|
+
): Promise<OperationsListResponse> {
|
|
77
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
50
78
|
}
|
|
51
79
|
}
|
|
52
|
-
|
|
53
80
|
// Operation Specifications
|
|
54
|
-
const serializer =
|
|
55
|
-
|
|
81
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
82
|
+
|
|
83
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
84
|
+
path: "/providers/Microsoft.Search/operations",
|
|
56
85
|
httpMethod: "GET",
|
|
57
|
-
path: "providers/Microsoft.Search/operations",
|
|
58
|
-
queryParameters: [
|
|
59
|
-
Parameters.apiVersion
|
|
60
|
-
],
|
|
61
|
-
headerParameters: [
|
|
62
|
-
Parameters.acceptLanguage
|
|
63
|
-
],
|
|
64
86
|
responses: {
|
|
65
87
|
200: {
|
|
66
88
|
bodyMapper: Mappers.OperationListResult
|
|
@@ -69,5 +91,8 @@ const listOperationSpec: msRest.OperationSpec = {
|
|
|
69
91
|
bodyMapper: Mappers.CloudError
|
|
70
92
|
}
|
|
71
93
|
},
|
|
94
|
+
queryParameters: [Parameters.apiVersion],
|
|
95
|
+
urlParameters: [Parameters.$host],
|
|
96
|
+
headerParameters: [Parameters.accept],
|
|
72
97
|
serializer
|
|
73
98
|
};
|