@azure/arm-resourcegraph 4.0.0 → 5.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.
Files changed (150) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +70 -70
  4. package/dist/index.js +933 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/samples-dev/accessAPropertiesField.d.ts +2 -0
  9. package/dist-esm/samples-dev/accessAPropertiesField.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/accessAPropertiesField.js +32 -0
  11. package/dist-esm/samples-dev/accessAPropertiesField.js.map +1 -0
  12. package/dist-esm/samples-dev/basicManagementGroupQuery.d.ts +2 -0
  13. package/dist-esm/samples-dev/basicManagementGroupQuery.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/basicManagementGroupQuery.js +32 -0
  15. package/dist-esm/samples-dev/basicManagementGroupQuery.js.map +1 -0
  16. package/dist-esm/samples-dev/basicQuery.d.ts +2 -0
  17. package/dist-esm/samples-dev/basicQuery.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/basicQuery.js +32 -0
  19. package/dist-esm/samples-dev/basicQuery.js.map +1 -0
  20. package/dist-esm/samples-dev/basicTenantQuery.d.ts +2 -0
  21. package/dist-esm/samples-dev/basicTenantQuery.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/basicTenantQuery.js +31 -0
  23. package/dist-esm/samples-dev/basicTenantQuery.js.map +1 -0
  24. package/dist-esm/samples-dev/complexQuery.d.ts +2 -0
  25. package/dist-esm/samples-dev/complexQuery.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/complexQuery.js +32 -0
  27. package/dist-esm/samples-dev/complexQuery.js.map +1 -0
  28. package/dist-esm/samples-dev/filterResources.d.ts +2 -0
  29. package/dist-esm/samples-dev/filterResources.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/filterResources.js +32 -0
  31. package/dist-esm/samples-dev/filterResources.js.map +1 -0
  32. package/dist-esm/samples-dev/firstPageQuery.d.ts +2 -0
  33. package/dist-esm/samples-dev/firstPageQuery.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/firstPageQuery.js +33 -0
  35. package/dist-esm/samples-dev/firstPageQuery.js.map +1 -0
  36. package/dist-esm/samples-dev/nextPageQuery.d.ts +2 -0
  37. package/dist-esm/samples-dev/nextPageQuery.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/nextPageQuery.js +35 -0
  39. package/dist-esm/samples-dev/nextPageQuery.js.map +1 -0
  40. package/dist-esm/samples-dev/operationsList.d.ts +2 -0
  41. package/dist-esm/samples-dev/operationsList.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/operationsList.js +42 -0
  43. package/dist-esm/samples-dev/operationsList.js.map +1 -0
  44. package/dist-esm/samples-dev/queryWithAFacetRequest.d.ts +2 -0
  45. package/dist-esm/samples-dev/queryWithAFacetRequest.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/queryWithAFacetRequest.js +51 -0
  47. package/dist-esm/samples-dev/queryWithAFacetRequest.js.map +1 -0
  48. package/dist-esm/samples-dev/randomPageQuery.d.ts +2 -0
  49. package/dist-esm/samples-dev/randomPageQuery.d.ts.map +1 -0
  50. package/dist-esm/samples-dev/randomPageQuery.js +33 -0
  51. package/dist-esm/samples-dev/randomPageQuery.js.map +1 -0
  52. package/dist-esm/samples-dev/resourceHistoryManagementGroupScopeQuery.d.ts +2 -0
  53. package/dist-esm/samples-dev/resourceHistoryManagementGroupScopeQuery.d.ts.map +1 -0
  54. package/dist-esm/samples-dev/resourceHistoryManagementGroupScopeQuery.js +38 -0
  55. package/dist-esm/samples-dev/resourceHistoryManagementGroupScopeQuery.js.map +1 -0
  56. package/dist-esm/samples-dev/resourceHistoryQuery.d.ts +2 -0
  57. package/dist-esm/samples-dev/resourceHistoryQuery.d.ts.map +1 -0
  58. package/dist-esm/samples-dev/resourceHistoryQuery.js +38 -0
  59. package/dist-esm/samples-dev/resourceHistoryQuery.js.map +1 -0
  60. package/dist-esm/samples-dev/summarizeResourcesByLocation.d.ts +2 -0
  61. package/dist-esm/samples-dev/summarizeResourcesByLocation.d.ts.map +1 -0
  62. package/dist-esm/samples-dev/summarizeResourcesByLocation.js +32 -0
  63. package/dist-esm/samples-dev/summarizeResourcesByLocation.js.map +1 -0
  64. package/dist-esm/src/index.d.ts +5 -0
  65. package/dist-esm/src/index.d.ts.map +1 -0
  66. package/dist-esm/src/index.js +12 -0
  67. package/dist-esm/src/index.js.map +1 -0
  68. package/dist-esm/src/models/index.d.ts +216 -0
  69. package/dist-esm/src/models/index.d.ts.map +1 -0
  70. package/{src/models/operationsMappers.ts → dist-esm/src/models/index.js} +2 -10
  71. package/dist-esm/src/models/index.js.map +1 -0
  72. package/dist-esm/src/models/mappers.d.ts +26 -0
  73. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  74. package/{esm → dist-esm/src}/models/mappers.js +353 -267
  75. package/dist-esm/src/models/mappers.js.map +1 -0
  76. package/dist-esm/src/models/parameters.d.ts +8 -0
  77. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  78. package/dist-esm/src/models/parameters.js +61 -0
  79. package/dist-esm/src/models/parameters.js.map +1 -0
  80. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  81. package/dist-esm/src/operations/index.d.ts.map +1 -0
  82. package/{esm → dist-esm/src}/operations/index.js +1 -2
  83. package/dist-esm/src/operations/index.js.map +1 -0
  84. package/dist-esm/src/operations/operations.d.ts +26 -0
  85. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  86. package/dist-esm/src/operations/operations.js +90 -0
  87. package/dist-esm/src/operations/operations.js.map +1 -0
  88. package/dist-esm/src/operationsInterfaces/index.d.ts +2 -0
  89. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  90. package/{esm/models/operationsMappers.js → dist-esm/src/operationsInterfaces/index.js} +2 -2
  91. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  92. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  93. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  94. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  95. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  96. package/dist-esm/src/resourceGraphClient.d.ts +28 -0
  97. package/dist-esm/src/resourceGraphClient.d.ts.map +1 -0
  98. package/dist-esm/src/resourceGraphClient.js +103 -0
  99. package/dist-esm/src/resourceGraphClient.js.map +1 -0
  100. package/dist-esm/test/sampleTest.d.ts +2 -0
  101. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  102. package/dist-esm/test/sampleTest.js +40 -0
  103. package/dist-esm/test/sampleTest.js.map +1 -0
  104. package/package.json +75 -32
  105. package/review/arm-resourcegraph.api.md +214 -0
  106. package/rollup.config.js +181 -30
  107. package/src/index.ts +12 -0
  108. package/src/models/index.ts +192 -341
  109. package/src/models/mappers.ts +353 -265
  110. package/src/models/parameters.ts +53 -9
  111. package/src/operations/index.ts +1 -2
  112. package/src/operations/operations.ts +64 -39
  113. package/{esm/models/index.js → src/operationsInterfaces/index.ts} +2 -1
  114. package/src/operationsInterfaces/operations.ts +22 -0
  115. package/src/resourceGraphClient.ts +111 -59
  116. package/tsconfig.json +5 -4
  117. package/types/arm-resourcegraph.d.ts +284 -0
  118. package/types/tsdoc-metadata.json +11 -0
  119. package/dist/arm-resourcegraph.js +0 -860
  120. package/dist/arm-resourcegraph.js.map +0 -1
  121. package/dist/arm-resourcegraph.min.js +0 -1
  122. package/dist/arm-resourcegraph.min.js.map +0 -1
  123. package/esm/models/index.d.ts +0 -375
  124. package/esm/models/index.d.ts.map +0 -1
  125. package/esm/models/index.js.map +0 -1
  126. package/esm/models/mappers.d.ts +0 -25
  127. package/esm/models/mappers.d.ts.map +0 -1
  128. package/esm/models/mappers.js.map +0 -1
  129. package/esm/models/operationsMappers.d.ts +0 -2
  130. package/esm/models/operationsMappers.d.ts.map +0 -1
  131. package/esm/models/operationsMappers.js.map +0 -1
  132. package/esm/models/parameters.d.ts +0 -4
  133. package/esm/models/parameters.d.ts.map +0 -1
  134. package/esm/models/parameters.js +0 -29
  135. package/esm/models/parameters.js.map +0 -1
  136. package/esm/operations/index.d.ts.map +0 -1
  137. package/esm/operations/index.js.map +0 -1
  138. package/esm/operations/operations.d.ts +0 -28
  139. package/esm/operations/operations.d.ts.map +0 -1
  140. package/esm/operations/operations.js +0 -50
  141. package/esm/operations/operations.js.map +0 -1
  142. package/esm/resourceGraphClient.d.ts +0 -35
  143. package/esm/resourceGraphClient.d.ts.map +0 -1
  144. package/esm/resourceGraphClient.js +0 -63
  145. package/esm/resourceGraphClient.js.map +0 -1
  146. package/esm/resourceGraphClientContext.d.ts +0 -14
  147. package/esm/resourceGraphClientContext.d.ts.map +0 -1
  148. package/esm/resourceGraphClientContext.js +0 -50
  149. package/esm/resourceGraphClientContext.js.map +0 -1
  150. package/src/resourceGraphClientContext.ts +0 -55
@@ -6,404 +6,255 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js";
10
- import * as msRest from "@azure/ms-rest-js";
9
+ import * as coreClient from "@azure/core-client";
11
10
 
12
- export { BaseResource, CloudError };
11
+ export type FacetUnion = Facet | FacetResult | FacetError;
13
12
 
14
- /**
15
- * The options for query evaluation
16
- */
13
+ /** Describes a query to be executed. */
14
+ export interface QueryRequest {
15
+ /** Azure subscriptions against which to execute the query. */
16
+ subscriptions?: string[];
17
+ /** Azure management groups against which to execute the query. Example: [ 'mg1', 'mg2' ] */
18
+ managementGroups?: string[];
19
+ /** The resources query. */
20
+ query: string;
21
+ /** The query evaluation options */
22
+ options?: QueryRequestOptions;
23
+ /** An array of facet requests to be computed against the query result. */
24
+ facets?: FacetRequest[];
25
+ }
26
+
27
+ /** The options for query evaluation */
17
28
  export interface QueryRequestOptions {
18
- /**
19
- * Continuation token for pagination, capturing the next page size and offset, as well as the
20
- * context of the query.
21
- */
29
+ /** Continuation token for pagination, capturing the next page size and offset, as well as the context of the query. */
22
30
  skipToken?: string;
23
- /**
24
- * The maximum number of rows that the query should return. Overrides the page size when
25
- * ```$skipToken``` property is present.
26
- */
31
+ /** The maximum number of rows that the query should return. Overrides the page size when ```$skipToken``` property is present. */
27
32
  top?: number;
28
- /**
29
- * The number of rows to skip from the beginning of the results. Overrides the next page offset
30
- * when ```$skipToken``` property is present.
31
- */
33
+ /** The number of rows to skip from the beginning of the results. Overrides the next page offset when ```$skipToken``` property is present. */
32
34
  skip?: number;
33
- /**
34
- * Defines in which format query result returned. Possible values include: 'table',
35
- * 'objectArray'. Default value: 'objectArray'.
36
- */
35
+ /** Defines in which format query result returned. */
37
36
  resultFormat?: ResultFormat;
38
- /**
39
- * Only applicable for tenant and management group level queries to decide whether to allow
40
- * partial scopes for result in case the number of subscriptions exceed allowed limits. Default
41
- * value: false.
42
- */
37
+ /** Only applicable for tenant and management group level queries to decide whether to allow partial scopes for result in case the number of subscriptions exceed allowed limits. */
43
38
  allowPartialScopes?: boolean;
39
+ /** Defines what level of authorization resources should be returned based on the which subscriptions and management groups are passed as scopes. */
40
+ authorizationScopeFilter?: AuthorizationScopeFilter;
44
41
  }
45
42
 
46
- /**
47
- * The options for facet evaluation
48
- */
49
- export interface FacetRequestOptions {
50
- /**
51
- * The column name or query expression to sort on. Defaults to count if not present.
52
- */
53
- sortBy?: string;
54
- /**
55
- * The sorting order by the selected column (count by default). Possible values include: 'asc',
56
- * 'desc'. Default value: 'desc'.
57
- */
58
- sortOrder?: FacetSortOrder;
59
- /**
60
- * Specifies the filter condition for the 'where' clause which will be run on main query's
61
- * result, just before the actual faceting.
62
- */
63
- filter?: string;
64
- /**
65
- * The maximum number of facet rows that should be returned.
66
- */
67
- top?: number;
68
- }
69
-
70
- /**
71
- * A request to compute additional statistics (facets) over the query results.
72
- */
43
+ /** A request to compute additional statistics (facets) over the query results. */
73
44
  export interface FacetRequest {
74
- /**
75
- * The column or list of columns to summarize by
76
- */
45
+ /** The column or list of columns to summarize by */
77
46
  expression: string;
78
- /**
79
- * The options for facet evaluation
80
- */
47
+ /** The options for facet evaluation */
81
48
  options?: FacetRequestOptions;
82
49
  }
83
50
 
84
- /**
85
- * Describes a query to be executed.
86
- */
87
- export interface QueryRequest {
88
- /**
89
- * Azure subscriptions against which to execute the query.
90
- */
91
- subscriptions?: string[];
92
- /**
93
- * Azure management groups against which to execute the query. Example: [ 'mg1', 'mg2' ]
94
- */
95
- managementGroups?: string[];
96
- /**
97
- * The resources query.
98
- */
99
- query: string;
100
- /**
101
- * The query evaluation options
102
- */
103
- options?: QueryRequestOptions;
104
- /**
105
- * An array of facet requests to be computed against the query result.
106
- */
107
- facets?: FacetRequest[];
108
- }
109
-
110
- /**
111
- * Contains the possible cases for Facet.
112
- */
113
- export type FacetUnion = Facet | FacetResult | FacetError;
114
-
115
- /**
116
- * A facet containing additional statistics on the response of a query. Can be either FacetResult
117
- * or FacetError.
118
- */
119
- export interface Facet {
120
- /**
121
- * Polymorphic Discriminator
122
- */
123
- resultType: "Facet";
124
- /**
125
- * Facet expression, same as in the corresponding facet request.
126
- */
127
- expression: string;
51
+ /** The options for facet evaluation */
52
+ export interface FacetRequestOptions {
53
+ /** The column name or query expression to sort on. Defaults to count if not present. */
54
+ sortBy?: string;
55
+ /** The sorting order by the selected column (count by default). */
56
+ sortOrder?: FacetSortOrder;
57
+ /** Specifies the filter condition for the 'where' clause which will be run on main query's result, just before the actual faceting. */
58
+ filter?: string;
59
+ /** The maximum number of facet rows that should be returned. */
60
+ top?: number;
128
61
  }
129
62
 
130
- /**
131
- * Query result.
132
- */
63
+ /** Query result. */
133
64
  export interface QueryResponse {
134
- /**
135
- * Number of total records matching the query.
136
- */
65
+ /** Number of total records matching the query. */
137
66
  totalRecords: number;
138
- /**
139
- * Number of records returned in the current response. In the case of paging, this is the number
140
- * of records in the current page.
141
- */
67
+ /** Number of records returned in the current response. In the case of paging, this is the number of records in the current page. */
142
68
  count: number;
143
- /**
144
- * Indicates whether the query results are truncated. Possible values include: 'true', 'false'
145
- */
69
+ /** Indicates whether the query results are truncated. */
146
70
  resultTruncated: ResultTruncated;
147
- /**
148
- * When present, the value can be passed to a subsequent query call (together with the same query
149
- * and scopes used in the current request) to retrieve the next page of data.
150
- */
71
+ /** When present, the value can be passed to a subsequent query call (together with the same query and scopes used in the current request) to retrieve the next page of data. */
151
72
  skipToken?: string;
152
- /**
153
- * Query output in JObject array or Table format.
154
- */
155
- data: any;
156
- /**
157
- * Query facets.
158
- */
73
+ /** Query output in JObject array or Table format. */
74
+ data: Record<string, unknown>;
75
+ /** Query facets. */
159
76
  facets?: FacetUnion[];
160
77
  }
161
78
 
162
- /**
163
- * Query result column descriptor.
164
- */
165
- export interface Column {
166
- /**
167
- * Column name.
168
- */
169
- name: string;
170
- /**
171
- * Column data type. Possible values include: 'string', 'integer', 'number', 'boolean', 'object'
172
- */
173
- type: ColumnDataType;
79
+ /** A facet containing additional statistics on the response of a query. Can be either FacetResult or FacetError. */
80
+ export interface Facet {
81
+ /** Polymorphic discriminator, which specifies the different types this object can be */
82
+ resultType: "FacetResult" | "FacetError";
83
+ /** Facet expression, same as in the corresponding facet request. */
84
+ expression: string;
174
85
  }
175
86
 
176
- /**
177
- * Query output in tabular format.
178
- */
179
- export interface Table {
180
- /**
181
- * Query result column descriptors.
182
- */
183
- columns: Column[];
184
- /**
185
- * Query result rows.
186
- */
187
- rows: any[][];
87
+ /** An error response from the API. */
88
+ export interface ErrorResponse {
89
+ /** Error information. */
90
+ error: ErrorModel;
188
91
  }
189
92
 
190
- /**
191
- * Successfully executed facet containing additional statistics on the response of a query.
192
- */
193
- export interface FacetResult {
194
- /**
195
- * Polymorphic Discriminator
196
- */
197
- resultType: "FacetResult";
198
- /**
199
- * Facet expression, same as in the corresponding facet request.
200
- */
201
- expression: string;
202
- /**
203
- * Number of total records in the facet results.
204
- */
205
- totalRecords: number;
206
- /**
207
- * Number of records returned in the facet response.
208
- */
209
- count: number;
210
- /**
211
- * A JObject array or Table containing the desired facets. Only present if the facet is valid.
212
- */
213
- data: any;
93
+ /** Error details. */
94
+ export interface ErrorModel {
95
+ /** Error code identifying the specific error. */
96
+ code: string;
97
+ /** A human readable error message. */
98
+ message: string;
99
+ /** Error details */
100
+ details?: ErrorDetails[];
214
101
  }
215
102
 
216
- /**
217
- * An interface representing ErrorDetails.
218
- * @summary Error details.
219
- */
103
+ /** Error details. */
220
104
  export interface ErrorDetails {
221
- /**
222
- * Error code identifying the specific error.
223
- */
105
+ /** Describes unknown properties. The value of an unknown property can be of "any" type. */
106
+ [property: string]: any;
107
+ /** Error code identifying the specific error. */
224
108
  code: string;
225
- /**
226
- * A human readable error message.
227
- */
109
+ /** A human readable error message. */
228
110
  message: string;
229
- /**
230
- * Describes unknown properties. The value of an unknown property can be of "any" type.
231
- */
232
- [property: string]: any;
233
111
  }
234
112
 
235
- /**
236
- * A facet whose execution resulted in an error.
237
- */
238
- export interface FacetError {
239
- /**
240
- * Polymorphic Discriminator
241
- */
242
- resultType: "FacetError";
243
- /**
244
- * Facet expression, same as in the corresponding facet request.
245
- */
246
- expression: string;
247
- /**
248
- * An array containing detected facet errors with details.
249
- */
250
- errors: ErrorDetails[];
113
+ /** Result of the request to list Resource Graph operations. It contains a list of operations and a URL link to get the next set of results. */
114
+ export interface OperationListResult {
115
+ /** List of Resource Graph operations supported by the Resource Graph resource provider. */
116
+ value?: Operation[];
251
117
  }
252
118
 
253
- /**
254
- * Error details.
255
- * @summary Error info.
256
- */
257
- export interface ErrorModel {
258
- /**
259
- * Error code identifying the specific error.
260
- */
261
- code: string;
262
- /**
263
- * A human readable error message.
264
- */
265
- message: string;
266
- /**
267
- * Error details
268
- */
269
- details?: ErrorDetails[];
270
- }
271
-
272
- /**
273
- * An error response from the API.
274
- * @summary Error response.
275
- */
276
- export interface ErrorResponse {
277
- /**
278
- * Error information.
279
- */
280
- error: ErrorModel;
119
+ /** Resource Graph REST API operation definition. */
120
+ export interface Operation {
121
+ /** Operation name: {provider}/{resource}/{operation} */
122
+ name?: string;
123
+ /** Display metadata associated with the operation. */
124
+ display?: OperationDisplay;
125
+ /** The origin of operations. */
126
+ origin?: string;
281
127
  }
282
128
 
283
- /**
284
- * Display metadata associated with the operation.
285
- */
129
+ /** Display metadata associated with the operation. */
286
130
  export interface OperationDisplay {
287
- /**
288
- * Service provider: Microsoft Resource Graph.
289
- */
131
+ /** Service provider: Microsoft Resource Graph. */
290
132
  provider?: string;
291
- /**
292
- * Resource on which the operation is performed etc.
293
- */
133
+ /** Resource on which the operation is performed etc. */
294
134
  resource?: string;
295
- /**
296
- * Type of operation: get, read, delete, etc.
297
- */
135
+ /** Type of operation: get, read, delete, etc. */
298
136
  operation?: string;
299
- /**
300
- * Description for the operation.
301
- */
137
+ /** Description for the operation. */
302
138
  description?: string;
303
139
  }
304
140
 
305
- /**
306
- * Resource Graph REST API operation definition.
307
- */
308
- export interface Operation {
309
- /**
310
- * Operation name: {provider}/{resource}/{operation}
311
- */
312
- name?: string;
313
- /**
314
- * Display metadata associated with the operation.
315
- */
316
- display?: OperationDisplay;
317
- /**
318
- * The origin of operations.
319
- */
320
- origin?: string;
141
+ /** Describes a history request to be executed. */
142
+ export interface ResourcesHistoryRequest {
143
+ /** Azure subscriptions against which to execute the query. */
144
+ subscriptions?: string[];
145
+ /** The resources query. */
146
+ query?: string;
147
+ /** The history request evaluation options */
148
+ options?: ResourcesHistoryRequestOptions;
149
+ /** Azure management groups against which to execute the query. Example: [ 'mg1', 'mg2' ] */
150
+ managementGroups?: string[];
321
151
  }
322
152
 
323
- /**
324
- * An interface representing ResourceGraphClientOptions.
325
- */
326
- export interface ResourceGraphClientOptions extends AzureServiceClientOptions {
327
- baseUri?: string;
153
+ /** The options for history request evaluation */
154
+ export interface ResourcesHistoryRequestOptions {
155
+ /** The time interval used to fetch history. */
156
+ interval?: DateTimeInterval;
157
+ /** The maximum number of rows that the query should return. Overrides the page size when ```$skipToken``` property is present. */
158
+ top?: number;
159
+ /** The number of rows to skip from the beginning of the results. Overrides the next page offset when ```$skipToken``` property is present. */
160
+ skip?: number;
161
+ /** Continuation token for pagination, capturing the next page size and offset, as well as the context of the query. */
162
+ skipToken?: string;
163
+ /** Defines in which format query result returned. */
164
+ resultFormat?: ResultFormat;
328
165
  }
329
166
 
330
- /**
331
- * @interface
332
- * Result of the request to list Resource Graph operations. It contains a list of operations and a
333
- * URL link to get the next set of results.
334
- * @extends Array<Operation>
335
- */
336
- export interface OperationListResult extends Array<Operation> {
167
+ /** An interval in time specifying the date and time for the inclusive start and exclusive end, i.e. `[start, end)`. */
168
+ export interface DateTimeInterval {
169
+ /** A datetime indicating the inclusive/closed start of the time interval, i.e. `[`**`start`**`, end)`. Specifying a `start` that occurs chronologically after `end` will result in an error. */
170
+ start: Date;
171
+ /** A datetime indicating the exclusive/open end of the time interval, i.e. `[start, `**`end`**`)`. Specifying an `end` that occurs chronologically before `start` will result in an error. */
172
+ end: Date;
337
173
  }
338
174
 
339
- /**
340
- * Defines values for ResultFormat.
341
- * Possible values include: 'table', 'objectArray'
342
- * @readonly
343
- * @enum {string}
344
- */
345
- export type ResultFormat = 'table' | 'objectArray';
175
+ /** Query output in tabular format. */
176
+ export interface Table {
177
+ /** Query result column descriptors. */
178
+ columns: Column[];
179
+ /** Query result rows. */
180
+ rows: Record<string, unknown>[][];
181
+ }
346
182
 
347
- /**
348
- * Defines values for FacetSortOrder.
349
- * Possible values include: 'asc', 'desc'
350
- * @readonly
351
- * @enum {string}
352
- */
353
- export type FacetSortOrder = 'asc' | 'desc';
183
+ /** Query result column descriptor. */
184
+ export interface Column {
185
+ /** Column name. */
186
+ name: string;
187
+ /** Column data type. */
188
+ type: ColumnDataType;
189
+ }
354
190
 
355
- /**
356
- * Defines values for ResultTruncated.
357
- * Possible values include: 'true', 'false'
358
- * @readonly
359
- * @enum {string}
360
- */
361
- export type ResultTruncated = 'true' | 'false';
191
+ /** Successfully executed facet containing additional statistics on the response of a query. */
192
+ export type FacetResult = Facet & {
193
+ /** Polymorphic discriminator, which specifies the different types this object can be */
194
+ resultType: "FacetResult";
195
+ /** Number of total records in the facet results. */
196
+ totalRecords: number;
197
+ /** Number of records returned in the facet response. */
198
+ count: number;
199
+ /** A JObject array or Table containing the desired facets. Only present if the facet is valid. */
200
+ data: Record<string, unknown>;
201
+ };
362
202
 
363
- /**
364
- * Defines values for ColumnDataType.
365
- * Possible values include: 'string', 'integer', 'number', 'boolean', 'object'
366
- * @readonly
367
- * @enum {string}
368
- */
369
- export type ColumnDataType = 'string' | 'integer' | 'number' | 'boolean' | 'object';
203
+ /** A facet whose execution resulted in an error. */
204
+ export type FacetError = Facet & {
205
+ /** Polymorphic discriminator, which specifies the different types this object can be */
206
+ resultType: "FacetError";
207
+ /** An array containing detected facet errors with details. */
208
+ errors: ErrorDetails[];
209
+ };
210
+ /** Defines values for ResultFormat. */
211
+ export type ResultFormat = "table" | "objectArray";
212
+ /** Defines values for AuthorizationScopeFilter. */
213
+ export type AuthorizationScopeFilter =
214
+ | "AtScopeAndBelow"
215
+ | "AtScopeAndAbove"
216
+ | "AtScopeExact"
217
+ | "AtScopeAboveAndBelow";
218
+ /** Defines values for FacetSortOrder. */
219
+ export type FacetSortOrder = "asc" | "desc";
220
+ /** Defines values for ResultTruncated. */
221
+ export type ResultTruncated = "true" | "false";
222
+ /** Defines values for ColumnDataType. */
223
+ export type ColumnDataType =
224
+ | "string"
225
+ | "integer"
226
+ | "number"
227
+ | "boolean"
228
+ | "object"
229
+ | "datetime";
370
230
 
371
- /**
372
- * Contains response data for the resources operation.
373
- */
374
- export type ResourcesResponse = QueryResponse & {
375
- /**
376
- * The underlying HTTP response.
377
- */
378
- _response: msRest.HttpResponse & {
379
- /**
380
- * The response body as text (string format)
381
- */
382
- bodyAsText: string;
231
+ /** Optional parameters. */
232
+ export interface ResourcesOptionalParams extends coreClient.OperationOptions {}
383
233
 
384
- /**
385
- * The response body as parsed JSON or XML
386
- */
387
- parsedBody: QueryResponse;
388
- };
389
- };
234
+ /** Contains response data for the resources operation. */
235
+ export type ResourcesResponse = QueryResponse;
390
236
 
391
- /**
392
- * Contains response data for the list operation.
393
- */
394
- export type OperationsListResponse = OperationListResult & {
395
- /**
396
- * The underlying HTTP response.
397
- */
398
- _response: msRest.HttpResponse & {
399
- /**
400
- * The response body as text (string format)
401
- */
402
- bodyAsText: string;
237
+ /** Optional parameters. */
238
+ export interface ResourcesHistoryOptionalParams
239
+ extends coreClient.OperationOptions {}
403
240
 
404
- /**
405
- * The response body as parsed JSON or XML
406
- */
407
- parsedBody: OperationListResult;
408
- };
409
- };
241
+ /** Contains response data for the resourcesHistory operation. */
242
+ export type ResourcesHistoryResponse = Record<string, unknown>;
243
+
244
+ /** Optional parameters. */
245
+ export interface OperationsListOptionalParams
246
+ extends coreClient.OperationOptions {}
247
+
248
+ /** Contains response data for the list operation. */
249
+ export type OperationsListResponse = OperationListResult;
250
+
251
+ /** Optional parameters. */
252
+ export interface ResourceGraphClientOptionalParams
253
+ extends coreClient.ServiceClientOptions {
254
+ /** server parameter */
255
+ $host?: string;
256
+ /** Api Version */
257
+ apiVersion?: string;
258
+ /** Overrides client endpoint. */
259
+ endpoint?: string;
260
+ }