@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.
- package/CHANGELOG.md +11 -0
- package/LICENSE +21 -0
- package/README.md +70 -70
- package/dist/index.js +933 -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/samples-dev/accessAPropertiesField.d.ts +2 -0
- package/dist-esm/samples-dev/accessAPropertiesField.d.ts.map +1 -0
- package/dist-esm/samples-dev/accessAPropertiesField.js +32 -0
- package/dist-esm/samples-dev/accessAPropertiesField.js.map +1 -0
- package/dist-esm/samples-dev/basicManagementGroupQuery.d.ts +2 -0
- package/dist-esm/samples-dev/basicManagementGroupQuery.d.ts.map +1 -0
- package/dist-esm/samples-dev/basicManagementGroupQuery.js +32 -0
- package/dist-esm/samples-dev/basicManagementGroupQuery.js.map +1 -0
- package/dist-esm/samples-dev/basicQuery.d.ts +2 -0
- package/dist-esm/samples-dev/basicQuery.d.ts.map +1 -0
- package/dist-esm/samples-dev/basicQuery.js +32 -0
- package/dist-esm/samples-dev/basicQuery.js.map +1 -0
- package/dist-esm/samples-dev/basicTenantQuery.d.ts +2 -0
- package/dist-esm/samples-dev/basicTenantQuery.d.ts.map +1 -0
- package/dist-esm/samples-dev/basicTenantQuery.js +31 -0
- package/dist-esm/samples-dev/basicTenantQuery.js.map +1 -0
- package/dist-esm/samples-dev/complexQuery.d.ts +2 -0
- package/dist-esm/samples-dev/complexQuery.d.ts.map +1 -0
- package/dist-esm/samples-dev/complexQuery.js +32 -0
- package/dist-esm/samples-dev/complexQuery.js.map +1 -0
- package/dist-esm/samples-dev/filterResources.d.ts +2 -0
- package/dist-esm/samples-dev/filterResources.d.ts.map +1 -0
- package/dist-esm/samples-dev/filterResources.js +32 -0
- package/dist-esm/samples-dev/filterResources.js.map +1 -0
- package/dist-esm/samples-dev/firstPageQuery.d.ts +2 -0
- package/dist-esm/samples-dev/firstPageQuery.d.ts.map +1 -0
- package/dist-esm/samples-dev/firstPageQuery.js +33 -0
- package/dist-esm/samples-dev/firstPageQuery.js.map +1 -0
- package/dist-esm/samples-dev/nextPageQuery.d.ts +2 -0
- package/dist-esm/samples-dev/nextPageQuery.d.ts.map +1 -0
- package/dist-esm/samples-dev/nextPageQuery.js +35 -0
- package/dist-esm/samples-dev/nextPageQuery.js.map +1 -0
- package/dist-esm/samples-dev/operationsList.d.ts +2 -0
- package/dist-esm/samples-dev/operationsList.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsList.js +42 -0
- package/dist-esm/samples-dev/operationsList.js.map +1 -0
- package/dist-esm/samples-dev/queryWithAFacetRequest.d.ts +2 -0
- package/dist-esm/samples-dev/queryWithAFacetRequest.d.ts.map +1 -0
- package/dist-esm/samples-dev/queryWithAFacetRequest.js +51 -0
- package/dist-esm/samples-dev/queryWithAFacetRequest.js.map +1 -0
- package/dist-esm/samples-dev/randomPageQuery.d.ts +2 -0
- package/dist-esm/samples-dev/randomPageQuery.d.ts.map +1 -0
- package/dist-esm/samples-dev/randomPageQuery.js +33 -0
- package/dist-esm/samples-dev/randomPageQuery.js.map +1 -0
- package/dist-esm/samples-dev/resourceHistoryManagementGroupScopeQuery.d.ts +2 -0
- package/dist-esm/samples-dev/resourceHistoryManagementGroupScopeQuery.d.ts.map +1 -0
- package/dist-esm/samples-dev/resourceHistoryManagementGroupScopeQuery.js +38 -0
- package/dist-esm/samples-dev/resourceHistoryManagementGroupScopeQuery.js.map +1 -0
- package/dist-esm/samples-dev/resourceHistoryQuery.d.ts +2 -0
- package/dist-esm/samples-dev/resourceHistoryQuery.d.ts.map +1 -0
- package/dist-esm/samples-dev/resourceHistoryQuery.js +38 -0
- package/dist-esm/samples-dev/resourceHistoryQuery.js.map +1 -0
- package/dist-esm/samples-dev/summarizeResourcesByLocation.d.ts +2 -0
- package/dist-esm/samples-dev/summarizeResourcesByLocation.d.ts.map +1 -0
- package/dist-esm/samples-dev/summarizeResourcesByLocation.js +32 -0
- package/dist-esm/samples-dev/summarizeResourcesByLocation.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +216 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/{src/models/operationsMappers.ts → dist-esm/src/models/index.js} +2 -10
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +26 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +353 -267
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +8 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +61 -0
- package/dist-esm/src/models/parameters.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/operationsInterfaces/index.d.ts +2 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/{esm/models/operationsMappers.js → dist-esm/src/operationsInterfaces/index.js} +2 -2
- 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/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/resourceGraphClient.d.ts +28 -0
- package/dist-esm/src/resourceGraphClient.d.ts.map +1 -0
- package/dist-esm/src/resourceGraphClient.js +103 -0
- package/dist-esm/src/resourceGraphClient.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +75 -32
- package/review/arm-resourcegraph.api.md +214 -0
- package/rollup.config.js +181 -30
- package/src/index.ts +12 -0
- package/src/models/index.ts +192 -341
- package/src/models/mappers.ts +353 -265
- package/src/models/parameters.ts +53 -9
- package/src/operations/index.ts +1 -2
- package/src/operations/operations.ts +64 -39
- package/{esm/models/index.js → src/operationsInterfaces/index.ts} +2 -1
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/resourceGraphClient.ts +111 -59
- package/tsconfig.json +5 -4
- package/types/arm-resourcegraph.d.ts +284 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-resourcegraph.js +0 -860
- package/dist/arm-resourcegraph.js.map +0 -1
- package/dist/arm-resourcegraph.min.js +0 -1
- package/dist/arm-resourcegraph.min.js.map +0 -1
- package/esm/models/index.d.ts +0 -375
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -25
- 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.map +0 -1
- package/esm/models/parameters.d.ts +0 -4
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -29
- package/esm/models/parameters.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/resourceGraphClient.d.ts +0 -35
- package/esm/resourceGraphClient.d.ts.map +0 -1
- package/esm/resourceGraphClient.js +0 -63
- package/esm/resourceGraphClient.js.map +0 -1
- package/esm/resourceGraphClientContext.d.ts +0 -14
- package/esm/resourceGraphClientContext.d.ts.map +0 -1
- package/esm/resourceGraphClientContext.js +0 -50
- package/esm/resourceGraphClientContext.js.map +0 -1
- package/src/resourceGraphClientContext.ts +0 -55
package/src/models/index.ts
CHANGED
|
@@ -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
|
|
10
|
-
import * as msRest from "@azure/ms-rest-js";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
11
10
|
|
|
12
|
-
export
|
|
11
|
+
export type FacetUnion = Facet | FacetResult | FacetError;
|
|
13
12
|
|
|
14
|
-
/**
|
|
15
|
-
|
|
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
|
-
|
|
86
|
-
*/
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
|
|
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
|
-
|
|
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
|
-
|
|
164
|
-
*/
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
|
|
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
|
-
|
|
178
|
-
*/
|
|
179
|
-
|
|
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
|
-
|
|
192
|
-
*/
|
|
193
|
-
|
|
194
|
-
/**
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
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
|
-
|
|
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
|
-
|
|
237
|
-
*/
|
|
238
|
-
|
|
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
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
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
|
-
|
|
307
|
-
*/
|
|
308
|
-
|
|
309
|
-
/**
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
/**
|
|
314
|
-
|
|
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
|
-
|
|
325
|
-
*/
|
|
326
|
-
|
|
327
|
-
|
|
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
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
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
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
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
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
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
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
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
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
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
|
-
|
|
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
|
-
|
|
386
|
-
*/
|
|
387
|
-
parsedBody: QueryResponse;
|
|
388
|
-
};
|
|
389
|
-
};
|
|
234
|
+
/** Contains response data for the resources operation. */
|
|
235
|
+
export type ResourcesResponse = QueryResponse;
|
|
390
236
|
|
|
391
|
-
/**
|
|
392
|
-
|
|
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
|
-
|
|
406
|
-
|
|
407
|
-
|
|
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
|
+
}
|