@azure/arm-resourcegraph 4.2.1 → 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 +69 -80
- package/{esm/models/mappers.js → dist/index.js} +544 -548
- 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/dist-esm/src/models/mappers.js +655 -0
- 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 -33
- 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 -644
- package/src/models/mappers.ts +276 -573
- package/src/models/parameters.ts +39 -21
- package/src/operations/index.ts +1 -2
- package/src/operations/operations.ts +64 -42
- package/{esm/models/index.js → src/operationsInterfaces/index.ts} +2 -1
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/resourceGraphClient.ts +88 -269
- 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 -1359
- 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 -659
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -37
- 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 -6
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -55
- 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 -46
- package/esm/operations/operations.js.map +0 -1
- package/esm/resourceGraphClient.d.ts +0 -95
- package/esm/resourceGraphClient.d.ts.map +0 -1
- package/esm/resourceGraphClient.js +0 -155
- package/esm/resourceGraphClient.js.map +0 -1
- package/esm/resourceGraphClientContext.d.ts +0 -19
- package/esm/resourceGraphClientContext.d.ts.map +0 -1
- package/esm/resourceGraphClientContext.js +0 -55
- package/esm/resourceGraphClientContext.js.map +0 -1
- package/src/resourceGraphClientContext.ts +0 -65
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var coreClient = require('@azure/core-client');
|
|
6
|
+
var tslib = require('tslib');
|
|
7
|
+
|
|
1
8
|
/*
|
|
2
9
|
* Copyright (c) Microsoft Corporation.
|
|
3
10
|
* Licensed under the MIT License.
|
|
@@ -5,49 +12,24 @@
|
|
|
5
12
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
13
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
14
|
*/
|
|
8
|
-
|
|
9
|
-
import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js";
|
|
10
|
-
export var CloudError = CloudErrorMapper;
|
|
11
|
-
export var BaseResource = BaseResourceMapper;
|
|
12
|
-
export var DateTimeInterval = {
|
|
13
|
-
serializedName: "DateTimeInterval",
|
|
15
|
+
const QueryRequest = {
|
|
14
16
|
type: {
|
|
15
17
|
name: "Composite",
|
|
16
|
-
className: "
|
|
18
|
+
className: "QueryRequest",
|
|
17
19
|
modelProperties: {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
serializedName: "start",
|
|
20
|
+
subscriptions: {
|
|
21
|
+
serializedName: "subscriptions",
|
|
21
22
|
type: {
|
|
22
|
-
name: "
|
|
23
|
+
name: "Sequence",
|
|
24
|
+
element: {
|
|
25
|
+
type: {
|
|
26
|
+
name: "String"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
23
29
|
}
|
|
24
30
|
},
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
serializedName: "end",
|
|
28
|
-
type: {
|
|
29
|
-
name: "DateTime"
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
export var ResourceChangesRequestParametersInterval = {
|
|
36
|
-
serializedName: "ResourceChangesRequestParameters_interval",
|
|
37
|
-
type: {
|
|
38
|
-
name: "Composite",
|
|
39
|
-
className: "ResourceChangesRequestParametersInterval",
|
|
40
|
-
modelProperties: __assign({}, DateTimeInterval.type.modelProperties)
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
export var ResourceChangesRequestParameters = {
|
|
44
|
-
serializedName: "ResourceChangesRequestParameters",
|
|
45
|
-
type: {
|
|
46
|
-
name: "Composite",
|
|
47
|
-
className: "ResourceChangesRequestParameters",
|
|
48
|
-
modelProperties: {
|
|
49
|
-
resourceIds: {
|
|
50
|
-
serializedName: "resourceIds",
|
|
31
|
+
managementGroups: {
|
|
32
|
+
serializedName: "managementGroups",
|
|
51
33
|
type: {
|
|
52
34
|
name: "Sequence",
|
|
53
35
|
element: {
|
|
@@ -57,20 +39,40 @@ export var ResourceChangesRequestParameters = {
|
|
|
57
39
|
}
|
|
58
40
|
}
|
|
59
41
|
},
|
|
60
|
-
|
|
61
|
-
serializedName: "
|
|
42
|
+
query: {
|
|
43
|
+
serializedName: "query",
|
|
44
|
+
required: true,
|
|
62
45
|
type: {
|
|
63
46
|
name: "String"
|
|
64
47
|
}
|
|
65
48
|
},
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
serializedName: "interval",
|
|
49
|
+
options: {
|
|
50
|
+
serializedName: "options",
|
|
69
51
|
type: {
|
|
70
52
|
name: "Composite",
|
|
71
|
-
className: "
|
|
53
|
+
className: "QueryRequestOptions"
|
|
72
54
|
}
|
|
73
55
|
},
|
|
56
|
+
facets: {
|
|
57
|
+
serializedName: "facets",
|
|
58
|
+
type: {
|
|
59
|
+
name: "Sequence",
|
|
60
|
+
element: {
|
|
61
|
+
type: {
|
|
62
|
+
name: "Composite",
|
|
63
|
+
className: "FacetRequest"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
const QueryRequestOptions = {
|
|
72
|
+
type: {
|
|
73
|
+
name: "Composite",
|
|
74
|
+
className: "QueryRequestOptions",
|
|
75
|
+
modelProperties: {
|
|
74
76
|
skipToken: {
|
|
75
77
|
serializedName: "$skipToken",
|
|
76
78
|
type: {
|
|
@@ -78,174 +80,163 @@ export var ResourceChangesRequestParameters = {
|
|
|
78
80
|
}
|
|
79
81
|
},
|
|
80
82
|
top: {
|
|
81
|
-
serializedName: "$top",
|
|
82
83
|
constraints: {
|
|
83
84
|
InclusiveMaximum: 1000,
|
|
84
85
|
InclusiveMinimum: 1
|
|
85
86
|
},
|
|
87
|
+
serializedName: "$top",
|
|
88
|
+
type: {
|
|
89
|
+
name: "Number"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
skip: {
|
|
93
|
+
constraints: {
|
|
94
|
+
InclusiveMinimum: 0
|
|
95
|
+
},
|
|
96
|
+
serializedName: "$skip",
|
|
86
97
|
type: {
|
|
87
98
|
name: "Number"
|
|
88
99
|
}
|
|
89
100
|
},
|
|
90
|
-
|
|
91
|
-
serializedName: "
|
|
101
|
+
resultFormat: {
|
|
102
|
+
serializedName: "resultFormat",
|
|
92
103
|
type: {
|
|
93
|
-
name: "
|
|
104
|
+
name: "Enum",
|
|
105
|
+
allowedValues: ["table", "objectArray"]
|
|
94
106
|
}
|
|
95
107
|
},
|
|
96
|
-
|
|
97
|
-
|
|
108
|
+
allowPartialScopes: {
|
|
109
|
+
defaultValue: false,
|
|
110
|
+
serializedName: "allowPartialScopes",
|
|
98
111
|
type: {
|
|
99
112
|
name: "Boolean"
|
|
100
113
|
}
|
|
101
114
|
},
|
|
102
|
-
|
|
103
|
-
|
|
115
|
+
authorizationScopeFilter: {
|
|
116
|
+
defaultValue: "AtScopeAndBelow",
|
|
117
|
+
serializedName: "authorizationScopeFilter",
|
|
104
118
|
type: {
|
|
105
|
-
name: "
|
|
119
|
+
name: "Enum",
|
|
120
|
+
allowedValues: [
|
|
121
|
+
"AtScopeAndBelow",
|
|
122
|
+
"AtScopeAndAbove",
|
|
123
|
+
"AtScopeExact",
|
|
124
|
+
"AtScopeAboveAndBelow"
|
|
125
|
+
]
|
|
106
126
|
}
|
|
107
127
|
}
|
|
108
128
|
}
|
|
109
129
|
}
|
|
110
130
|
};
|
|
111
|
-
|
|
112
|
-
serializedName: "ResourceSnapshotData",
|
|
131
|
+
const FacetRequest = {
|
|
113
132
|
type: {
|
|
114
133
|
name: "Composite",
|
|
115
|
-
className: "
|
|
134
|
+
className: "FacetRequest",
|
|
116
135
|
modelProperties: {
|
|
117
|
-
|
|
118
|
-
serializedName: "
|
|
119
|
-
type: {
|
|
120
|
-
name: "String"
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
timestamp: {
|
|
136
|
+
expression: {
|
|
137
|
+
serializedName: "expression",
|
|
124
138
|
required: true,
|
|
125
|
-
serializedName: "timestamp",
|
|
126
139
|
type: {
|
|
127
|
-
name: "
|
|
140
|
+
name: "String"
|
|
128
141
|
}
|
|
129
142
|
},
|
|
130
|
-
|
|
131
|
-
serializedName: "
|
|
143
|
+
options: {
|
|
144
|
+
serializedName: "options",
|
|
132
145
|
type: {
|
|
133
|
-
name: "
|
|
146
|
+
name: "Composite",
|
|
147
|
+
className: "FacetRequestOptions"
|
|
134
148
|
}
|
|
135
149
|
}
|
|
136
150
|
}
|
|
137
151
|
}
|
|
138
152
|
};
|
|
139
|
-
|
|
140
|
-
serializedName: "ResourceChangeData_beforeSnapshot",
|
|
141
|
-
type: {
|
|
142
|
-
name: "Composite",
|
|
143
|
-
className: "ResourceChangeDataBeforeSnapshot",
|
|
144
|
-
modelProperties: __assign({}, ResourceSnapshotData.type.modelProperties)
|
|
145
|
-
}
|
|
146
|
-
};
|
|
147
|
-
export var ResourceChangeDataAfterSnapshot = {
|
|
148
|
-
serializedName: "ResourceChangeData_afterSnapshot",
|
|
149
|
-
type: {
|
|
150
|
-
name: "Composite",
|
|
151
|
-
className: "ResourceChangeDataAfterSnapshot",
|
|
152
|
-
modelProperties: __assign({}, ResourceSnapshotData.type.modelProperties)
|
|
153
|
-
}
|
|
154
|
-
};
|
|
155
|
-
export var ResourcePropertyChange = {
|
|
156
|
-
serializedName: "ResourcePropertyChange",
|
|
153
|
+
const FacetRequestOptions = {
|
|
157
154
|
type: {
|
|
158
155
|
name: "Composite",
|
|
159
|
-
className: "
|
|
156
|
+
className: "FacetRequestOptions",
|
|
160
157
|
modelProperties: {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
serializedName: "propertyName",
|
|
158
|
+
sortBy: {
|
|
159
|
+
serializedName: "sortBy",
|
|
164
160
|
type: {
|
|
165
161
|
name: "String"
|
|
166
162
|
}
|
|
167
163
|
},
|
|
168
|
-
|
|
169
|
-
|
|
164
|
+
sortOrder: {
|
|
165
|
+
defaultValue: "desc",
|
|
166
|
+
serializedName: "sortOrder",
|
|
170
167
|
type: {
|
|
171
|
-
name: "
|
|
168
|
+
name: "Enum",
|
|
169
|
+
allowedValues: ["asc", "desc"]
|
|
172
170
|
}
|
|
173
171
|
},
|
|
174
|
-
|
|
175
|
-
serializedName: "
|
|
172
|
+
filter: {
|
|
173
|
+
serializedName: "filter",
|
|
176
174
|
type: {
|
|
177
175
|
name: "String"
|
|
178
176
|
}
|
|
179
177
|
},
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
}
|
|
187
|
-
},
|
|
188
|
-
propertyChangeType: {
|
|
189
|
-
required: true,
|
|
190
|
-
serializedName: "propertyChangeType",
|
|
178
|
+
top: {
|
|
179
|
+
constraints: {
|
|
180
|
+
InclusiveMaximum: 1000,
|
|
181
|
+
InclusiveMinimum: 1
|
|
182
|
+
},
|
|
183
|
+
serializedName: "$top",
|
|
191
184
|
type: {
|
|
192
|
-
name: "
|
|
193
|
-
allowedValues: ["Insert", "Update", "Remove"]
|
|
185
|
+
name: "Number"
|
|
194
186
|
}
|
|
195
187
|
}
|
|
196
188
|
}
|
|
197
189
|
}
|
|
198
190
|
};
|
|
199
|
-
|
|
200
|
-
serializedName: "ResourceChangeData",
|
|
191
|
+
const QueryResponse = {
|
|
201
192
|
type: {
|
|
202
193
|
name: "Composite",
|
|
203
|
-
className: "
|
|
194
|
+
className: "QueryResponse",
|
|
204
195
|
modelProperties: {
|
|
205
|
-
|
|
206
|
-
serializedName: "
|
|
196
|
+
totalRecords: {
|
|
197
|
+
serializedName: "totalRecords",
|
|
198
|
+
required: true,
|
|
207
199
|
type: {
|
|
208
|
-
name: "
|
|
200
|
+
name: "Number"
|
|
209
201
|
}
|
|
210
202
|
},
|
|
211
|
-
|
|
203
|
+
count: {
|
|
204
|
+
serializedName: "count",
|
|
212
205
|
required: true,
|
|
213
|
-
serializedName: "changeId",
|
|
214
206
|
type: {
|
|
215
|
-
name: "
|
|
207
|
+
name: "Number"
|
|
216
208
|
}
|
|
217
209
|
},
|
|
218
|
-
|
|
210
|
+
resultTruncated: {
|
|
211
|
+
serializedName: "resultTruncated",
|
|
219
212
|
required: true,
|
|
220
|
-
serializedName: "beforeSnapshot",
|
|
221
213
|
type: {
|
|
222
|
-
name: "
|
|
223
|
-
|
|
214
|
+
name: "Enum",
|
|
215
|
+
allowedValues: ["true", "false"]
|
|
224
216
|
}
|
|
225
217
|
},
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
serializedName: "afterSnapshot",
|
|
218
|
+
skipToken: {
|
|
219
|
+
serializedName: "$skipToken",
|
|
229
220
|
type: {
|
|
230
|
-
name: "
|
|
231
|
-
className: "ResourceChangeDataAfterSnapshot"
|
|
221
|
+
name: "String"
|
|
232
222
|
}
|
|
233
223
|
},
|
|
234
|
-
|
|
235
|
-
serializedName: "
|
|
224
|
+
data: {
|
|
225
|
+
serializedName: "data",
|
|
226
|
+
required: true,
|
|
236
227
|
type: {
|
|
237
|
-
name: "
|
|
238
|
-
|
|
228
|
+
name: "Dictionary",
|
|
229
|
+
value: { type: { name: "any" } }
|
|
239
230
|
}
|
|
240
231
|
},
|
|
241
|
-
|
|
242
|
-
serializedName: "
|
|
232
|
+
facets: {
|
|
233
|
+
serializedName: "facets",
|
|
243
234
|
type: {
|
|
244
235
|
name: "Sequence",
|
|
245
236
|
element: {
|
|
246
237
|
type: {
|
|
247
238
|
name: "Composite",
|
|
248
|
-
className: "
|
|
239
|
+
className: "Facet"
|
|
249
240
|
}
|
|
250
241
|
}
|
|
251
242
|
}
|
|
@@ -253,127 +244,118 @@ export var ResourceChangeData = {
|
|
|
253
244
|
}
|
|
254
245
|
}
|
|
255
246
|
};
|
|
256
|
-
|
|
257
|
-
serializedName: "ResourceChangeList",
|
|
247
|
+
const Facet = {
|
|
258
248
|
type: {
|
|
259
249
|
name: "Composite",
|
|
260
|
-
className: "
|
|
250
|
+
className: "Facet",
|
|
251
|
+
uberParent: "Facet",
|
|
252
|
+
polymorphicDiscriminator: {
|
|
253
|
+
serializedName: "resultType",
|
|
254
|
+
clientName: "resultType"
|
|
255
|
+
},
|
|
261
256
|
modelProperties: {
|
|
262
|
-
|
|
263
|
-
serializedName: "
|
|
257
|
+
expression: {
|
|
258
|
+
serializedName: "expression",
|
|
259
|
+
required: true,
|
|
264
260
|
type: {
|
|
265
|
-
name: "
|
|
266
|
-
element: {
|
|
267
|
-
type: {
|
|
268
|
-
name: "Composite",
|
|
269
|
-
className: "ResourceChangeData"
|
|
270
|
-
}
|
|
271
|
-
}
|
|
261
|
+
name: "String"
|
|
272
262
|
}
|
|
273
263
|
},
|
|
274
|
-
|
|
275
|
-
serializedName: "
|
|
264
|
+
resultType: {
|
|
265
|
+
serializedName: "resultType",
|
|
266
|
+
required: true,
|
|
276
267
|
type: {
|
|
277
|
-
name: "
|
|
268
|
+
name: "String"
|
|
278
269
|
}
|
|
279
270
|
}
|
|
280
271
|
}
|
|
281
272
|
}
|
|
282
273
|
};
|
|
283
|
-
|
|
284
|
-
serializedName: "ResourceChangeDetailsRequestParameters",
|
|
274
|
+
const ErrorResponse = {
|
|
285
275
|
type: {
|
|
286
276
|
name: "Composite",
|
|
287
|
-
className: "
|
|
277
|
+
className: "ErrorResponse",
|
|
288
278
|
modelProperties: {
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
serializedName: "resourceIds",
|
|
292
|
-
type: {
|
|
293
|
-
name: "Sequence",
|
|
294
|
-
element: {
|
|
295
|
-
type: {
|
|
296
|
-
name: "String"
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
},
|
|
301
|
-
changeIds: {
|
|
302
|
-
required: true,
|
|
303
|
-
serializedName: "changeIds",
|
|
279
|
+
error: {
|
|
280
|
+
serializedName: "error",
|
|
304
281
|
type: {
|
|
305
|
-
name: "
|
|
306
|
-
|
|
307
|
-
type: {
|
|
308
|
-
name: "String"
|
|
309
|
-
}
|
|
310
|
-
}
|
|
282
|
+
name: "Composite",
|
|
283
|
+
className: "ErrorModel"
|
|
311
284
|
}
|
|
312
285
|
}
|
|
313
286
|
}
|
|
314
287
|
}
|
|
315
288
|
};
|
|
316
|
-
|
|
317
|
-
serializedName: "ErrorDetails",
|
|
289
|
+
const ErrorModel = {
|
|
318
290
|
type: {
|
|
319
291
|
name: "Composite",
|
|
320
|
-
className: "
|
|
292
|
+
className: "ErrorModel",
|
|
321
293
|
modelProperties: {
|
|
322
294
|
code: {
|
|
323
|
-
required: true,
|
|
324
295
|
serializedName: "code",
|
|
296
|
+
required: true,
|
|
325
297
|
type: {
|
|
326
298
|
name: "String"
|
|
327
299
|
}
|
|
328
300
|
},
|
|
329
301
|
message: {
|
|
330
|
-
required: true,
|
|
331
302
|
serializedName: "message",
|
|
303
|
+
required: true,
|
|
332
304
|
type: {
|
|
333
305
|
name: "String"
|
|
334
306
|
}
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
307
|
+
},
|
|
308
|
+
details: {
|
|
309
|
+
serializedName: "details",
|
|
310
|
+
type: {
|
|
311
|
+
name: "Sequence",
|
|
312
|
+
element: {
|
|
313
|
+
type: {
|
|
314
|
+
name: "Composite",
|
|
315
|
+
className: "ErrorDetails"
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
}
|
|
340
319
|
}
|
|
341
320
|
}
|
|
342
321
|
}
|
|
343
322
|
};
|
|
344
|
-
|
|
345
|
-
serializedName: "Error",
|
|
323
|
+
const ErrorDetails = {
|
|
346
324
|
type: {
|
|
347
325
|
name: "Composite",
|
|
348
|
-
className: "
|
|
326
|
+
className: "ErrorDetails",
|
|
327
|
+
additionalProperties: { type: { name: "Object" } },
|
|
349
328
|
modelProperties: {
|
|
350
329
|
code: {
|
|
351
|
-
required: true,
|
|
352
330
|
serializedName: "code",
|
|
331
|
+
required: true,
|
|
353
332
|
type: {
|
|
354
333
|
name: "String"
|
|
355
334
|
}
|
|
356
335
|
},
|
|
357
336
|
message: {
|
|
358
|
-
required: true,
|
|
359
337
|
serializedName: "message",
|
|
338
|
+
required: true,
|
|
360
339
|
type: {
|
|
361
340
|
name: "String"
|
|
362
341
|
}
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
};
|
|
346
|
+
const OperationListResult = {
|
|
347
|
+
type: {
|
|
348
|
+
name: "Composite",
|
|
349
|
+
className: "OperationListResult",
|
|
350
|
+
modelProperties: {
|
|
351
|
+
value: {
|
|
352
|
+
serializedName: "value",
|
|
366
353
|
type: {
|
|
367
354
|
name: "Sequence",
|
|
368
355
|
element: {
|
|
369
356
|
type: {
|
|
370
357
|
name: "Composite",
|
|
371
|
-
className: "
|
|
372
|
-
additionalProperties: {
|
|
373
|
-
type: {
|
|
374
|
-
name: "Object"
|
|
375
|
-
}
|
|
376
|
-
}
|
|
358
|
+
className: "Operation"
|
|
377
359
|
}
|
|
378
360
|
}
|
|
379
361
|
}
|
|
@@ -381,139 +363,69 @@ export var ErrorModel = {
|
|
|
381
363
|
}
|
|
382
364
|
}
|
|
383
365
|
};
|
|
384
|
-
|
|
385
|
-
serializedName: "ErrorResponse",
|
|
366
|
+
const Operation = {
|
|
386
367
|
type: {
|
|
387
368
|
name: "Composite",
|
|
388
|
-
className: "
|
|
369
|
+
className: "Operation",
|
|
389
370
|
modelProperties: {
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
serializedName: "error",
|
|
371
|
+
name: {
|
|
372
|
+
serializedName: "name",
|
|
393
373
|
type: {
|
|
394
|
-
name: "
|
|
395
|
-
className: "ErrorModel"
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
};
|
|
401
|
-
export var QueryRequestOptions = {
|
|
402
|
-
serializedName: "QueryRequestOptions",
|
|
403
|
-
type: {
|
|
404
|
-
name: "Composite",
|
|
405
|
-
className: "QueryRequestOptions",
|
|
406
|
-
modelProperties: {
|
|
407
|
-
skipToken: {
|
|
408
|
-
serializedName: "$skipToken",
|
|
409
|
-
type: {
|
|
410
|
-
name: "String"
|
|
411
|
-
}
|
|
412
|
-
},
|
|
413
|
-
top: {
|
|
414
|
-
serializedName: "$top",
|
|
415
|
-
constraints: {
|
|
416
|
-
InclusiveMaximum: 1000,
|
|
417
|
-
InclusiveMinimum: 1
|
|
418
|
-
},
|
|
419
|
-
type: {
|
|
420
|
-
name: "Number"
|
|
421
|
-
}
|
|
422
|
-
},
|
|
423
|
-
skip: {
|
|
424
|
-
serializedName: "$skip",
|
|
425
|
-
constraints: {
|
|
426
|
-
InclusiveMinimum: 0
|
|
427
|
-
},
|
|
428
|
-
type: {
|
|
429
|
-
name: "Number"
|
|
374
|
+
name: "String"
|
|
430
375
|
}
|
|
431
376
|
},
|
|
432
|
-
|
|
433
|
-
serializedName: "
|
|
434
|
-
defaultValue: "objectArray",
|
|
377
|
+
display: {
|
|
378
|
+
serializedName: "display",
|
|
435
379
|
type: {
|
|
436
|
-
name: "
|
|
437
|
-
|
|
380
|
+
name: "Composite",
|
|
381
|
+
className: "OperationDisplay"
|
|
438
382
|
}
|
|
439
383
|
},
|
|
440
|
-
|
|
441
|
-
serializedName: "
|
|
442
|
-
defaultValue: false,
|
|
384
|
+
origin: {
|
|
385
|
+
serializedName: "origin",
|
|
443
386
|
type: {
|
|
444
|
-
name: "
|
|
387
|
+
name: "String"
|
|
445
388
|
}
|
|
446
389
|
}
|
|
447
390
|
}
|
|
448
391
|
}
|
|
449
392
|
};
|
|
450
|
-
|
|
451
|
-
serializedName: "FacetRequestOptions",
|
|
393
|
+
const OperationDisplay = {
|
|
452
394
|
type: {
|
|
453
395
|
name: "Composite",
|
|
454
|
-
className: "
|
|
396
|
+
className: "OperationDisplay",
|
|
455
397
|
modelProperties: {
|
|
456
|
-
|
|
457
|
-
serializedName: "
|
|
398
|
+
provider: {
|
|
399
|
+
serializedName: "provider",
|
|
458
400
|
type: {
|
|
459
401
|
name: "String"
|
|
460
402
|
}
|
|
461
403
|
},
|
|
462
|
-
|
|
463
|
-
serializedName: "
|
|
464
|
-
defaultValue: "desc",
|
|
465
|
-
type: {
|
|
466
|
-
name: "Enum",
|
|
467
|
-
allowedValues: ["asc", "desc"]
|
|
468
|
-
}
|
|
469
|
-
},
|
|
470
|
-
filter: {
|
|
471
|
-
serializedName: "filter",
|
|
404
|
+
resource: {
|
|
405
|
+
serializedName: "resource",
|
|
472
406
|
type: {
|
|
473
407
|
name: "String"
|
|
474
408
|
}
|
|
475
409
|
},
|
|
476
|
-
|
|
477
|
-
serializedName: "
|
|
478
|
-
constraints: {
|
|
479
|
-
InclusiveMaximum: 1000,
|
|
480
|
-
InclusiveMinimum: 1
|
|
481
|
-
},
|
|
482
|
-
type: {
|
|
483
|
-
name: "Number"
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
};
|
|
489
|
-
export var FacetRequest = {
|
|
490
|
-
serializedName: "FacetRequest",
|
|
491
|
-
type: {
|
|
492
|
-
name: "Composite",
|
|
493
|
-
className: "FacetRequest",
|
|
494
|
-
modelProperties: {
|
|
495
|
-
expression: {
|
|
496
|
-
required: true,
|
|
497
|
-
serializedName: "expression",
|
|
410
|
+
operation: {
|
|
411
|
+
serializedName: "operation",
|
|
498
412
|
type: {
|
|
499
413
|
name: "String"
|
|
500
414
|
}
|
|
501
415
|
},
|
|
502
|
-
|
|
503
|
-
serializedName: "
|
|
416
|
+
description: {
|
|
417
|
+
serializedName: "description",
|
|
504
418
|
type: {
|
|
505
|
-
name: "
|
|
506
|
-
className: "FacetRequestOptions"
|
|
419
|
+
name: "String"
|
|
507
420
|
}
|
|
508
421
|
}
|
|
509
422
|
}
|
|
510
423
|
}
|
|
511
424
|
};
|
|
512
|
-
|
|
513
|
-
serializedName: "QueryRequest",
|
|
425
|
+
const ResourcesHistoryRequest = {
|
|
514
426
|
type: {
|
|
515
427
|
name: "Composite",
|
|
516
|
-
className: "
|
|
428
|
+
className: "ResourcesHistoryRequest",
|
|
517
429
|
modelProperties: {
|
|
518
430
|
subscriptions: {
|
|
519
431
|
serializedName: "subscriptions",
|
|
@@ -526,19 +438,7 @@ export var QueryRequest = {
|
|
|
526
438
|
}
|
|
527
439
|
}
|
|
528
440
|
},
|
|
529
|
-
managementGroups: {
|
|
530
|
-
serializedName: "managementGroups",
|
|
531
|
-
type: {
|
|
532
|
-
name: "Sequence",
|
|
533
|
-
element: {
|
|
534
|
-
type: {
|
|
535
|
-
name: "String"
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
},
|
|
540
441
|
query: {
|
|
541
|
-
required: true,
|
|
542
442
|
serializedName: "query",
|
|
543
443
|
type: {
|
|
544
444
|
name: "String"
|
|
@@ -548,17 +448,16 @@ export var QueryRequest = {
|
|
|
548
448
|
serializedName: "options",
|
|
549
449
|
type: {
|
|
550
450
|
name: "Composite",
|
|
551
|
-
className: "
|
|
451
|
+
className: "ResourcesHistoryRequestOptions"
|
|
552
452
|
}
|
|
553
453
|
},
|
|
554
|
-
|
|
555
|
-
serializedName: "
|
|
454
|
+
managementGroups: {
|
|
455
|
+
serializedName: "managementGroups",
|
|
556
456
|
type: {
|
|
557
457
|
name: "Sequence",
|
|
558
458
|
element: {
|
|
559
459
|
type: {
|
|
560
|
-
name: "
|
|
561
|
-
className: "FacetRequest"
|
|
460
|
+
name: "String"
|
|
562
461
|
}
|
|
563
462
|
}
|
|
564
463
|
}
|
|
@@ -566,123 +465,83 @@ export var QueryRequest = {
|
|
|
566
465
|
}
|
|
567
466
|
}
|
|
568
467
|
};
|
|
569
|
-
|
|
570
|
-
serializedName: "Facet",
|
|
468
|
+
const ResourcesHistoryRequestOptions = {
|
|
571
469
|
type: {
|
|
572
470
|
name: "Composite",
|
|
573
|
-
|
|
574
|
-
serializedName: "resultType",
|
|
575
|
-
clientName: "resultType"
|
|
576
|
-
},
|
|
577
|
-
uberParent: "Facet",
|
|
578
|
-
className: "Facet",
|
|
471
|
+
className: "ResourcesHistoryRequestOptions",
|
|
579
472
|
modelProperties: {
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
serializedName: "expression",
|
|
473
|
+
interval: {
|
|
474
|
+
serializedName: "interval",
|
|
583
475
|
type: {
|
|
584
|
-
name: "
|
|
476
|
+
name: "Composite",
|
|
477
|
+
className: "DateTimeInterval"
|
|
585
478
|
}
|
|
586
479
|
},
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
}
|
|
594
|
-
}
|
|
595
|
-
}
|
|
596
|
-
};
|
|
597
|
-
export var QueryResponse = {
|
|
598
|
-
serializedName: "QueryResponse",
|
|
599
|
-
type: {
|
|
600
|
-
name: "Composite",
|
|
601
|
-
className: "QueryResponse",
|
|
602
|
-
modelProperties: {
|
|
603
|
-
totalRecords: {
|
|
604
|
-
required: true,
|
|
605
|
-
serializedName: "totalRecords",
|
|
480
|
+
top: {
|
|
481
|
+
constraints: {
|
|
482
|
+
InclusiveMaximum: 1000,
|
|
483
|
+
InclusiveMinimum: 1
|
|
484
|
+
},
|
|
485
|
+
serializedName: "$top",
|
|
606
486
|
type: {
|
|
607
487
|
name: "Number"
|
|
608
488
|
}
|
|
609
489
|
},
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
490
|
+
skip: {
|
|
491
|
+
constraints: {
|
|
492
|
+
InclusiveMinimum: 0
|
|
493
|
+
},
|
|
494
|
+
serializedName: "$skip",
|
|
613
495
|
type: {
|
|
614
496
|
name: "Number"
|
|
615
497
|
}
|
|
616
498
|
},
|
|
617
|
-
resultTruncated: {
|
|
618
|
-
required: true,
|
|
619
|
-
serializedName: "resultTruncated",
|
|
620
|
-
type: {
|
|
621
|
-
name: "Enum",
|
|
622
|
-
allowedValues: ["true", "false"]
|
|
623
|
-
}
|
|
624
|
-
},
|
|
625
499
|
skipToken: {
|
|
626
500
|
serializedName: "$skipToken",
|
|
627
501
|
type: {
|
|
628
502
|
name: "String"
|
|
629
503
|
}
|
|
630
504
|
},
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
serializedName: "data",
|
|
634
|
-
type: {
|
|
635
|
-
name: "Object"
|
|
636
|
-
}
|
|
637
|
-
},
|
|
638
|
-
facets: {
|
|
639
|
-
serializedName: "facets",
|
|
505
|
+
resultFormat: {
|
|
506
|
+
serializedName: "resultFormat",
|
|
640
507
|
type: {
|
|
641
|
-
name: "
|
|
642
|
-
|
|
643
|
-
type: {
|
|
644
|
-
name: "Composite",
|
|
645
|
-
className: "Facet"
|
|
646
|
-
}
|
|
647
|
-
}
|
|
508
|
+
name: "Enum",
|
|
509
|
+
allowedValues: ["table", "objectArray"]
|
|
648
510
|
}
|
|
649
511
|
}
|
|
650
512
|
}
|
|
651
513
|
}
|
|
652
514
|
};
|
|
653
|
-
|
|
654
|
-
serializedName: "Column",
|
|
515
|
+
const DateTimeInterval = {
|
|
655
516
|
type: {
|
|
656
517
|
name: "Composite",
|
|
657
|
-
className: "
|
|
518
|
+
className: "DateTimeInterval",
|
|
658
519
|
modelProperties: {
|
|
659
|
-
|
|
520
|
+
start: {
|
|
521
|
+
serializedName: "start",
|
|
660
522
|
required: true,
|
|
661
|
-
serializedName: "name",
|
|
662
523
|
type: {
|
|
663
|
-
name: "
|
|
524
|
+
name: "DateTime"
|
|
664
525
|
}
|
|
665
526
|
},
|
|
666
|
-
|
|
527
|
+
end: {
|
|
528
|
+
serializedName: "end",
|
|
667
529
|
required: true,
|
|
668
|
-
serializedName: "type",
|
|
669
530
|
type: {
|
|
670
|
-
name: "
|
|
671
|
-
allowedValues: ["string", "integer", "number", "boolean", "object"]
|
|
531
|
+
name: "DateTime"
|
|
672
532
|
}
|
|
673
533
|
}
|
|
674
534
|
}
|
|
675
535
|
}
|
|
676
536
|
};
|
|
677
|
-
|
|
678
|
-
serializedName: "Table",
|
|
537
|
+
const Table = {
|
|
679
538
|
type: {
|
|
680
539
|
name: "Composite",
|
|
681
540
|
className: "Table",
|
|
682
541
|
modelProperties: {
|
|
683
542
|
columns: {
|
|
684
|
-
required: true,
|
|
685
543
|
serializedName: "columns",
|
|
544
|
+
required: true,
|
|
686
545
|
type: {
|
|
687
546
|
name: "Sequence",
|
|
688
547
|
element: {
|
|
@@ -694,8 +553,8 @@ export var Table = {
|
|
|
694
553
|
}
|
|
695
554
|
},
|
|
696
555
|
rows: {
|
|
697
|
-
required: true,
|
|
698
556
|
serializedName: "rows",
|
|
557
|
+
required: true,
|
|
699
558
|
type: {
|
|
700
559
|
name: "Sequence",
|
|
701
560
|
element: {
|
|
@@ -703,7 +562,8 @@ export var Table = {
|
|
|
703
562
|
name: "Sequence",
|
|
704
563
|
element: {
|
|
705
564
|
type: {
|
|
706
|
-
name: "
|
|
565
|
+
name: "Dictionary",
|
|
566
|
+
value: { type: { name: "any" } }
|
|
707
567
|
}
|
|
708
568
|
}
|
|
709
569
|
}
|
|
@@ -713,225 +573,361 @@ export var Table = {
|
|
|
713
573
|
}
|
|
714
574
|
}
|
|
715
575
|
};
|
|
716
|
-
|
|
576
|
+
const Column = {
|
|
577
|
+
type: {
|
|
578
|
+
name: "Composite",
|
|
579
|
+
className: "Column",
|
|
580
|
+
modelProperties: {
|
|
581
|
+
name: {
|
|
582
|
+
serializedName: "name",
|
|
583
|
+
required: true,
|
|
584
|
+
type: {
|
|
585
|
+
name: "String"
|
|
586
|
+
}
|
|
587
|
+
},
|
|
588
|
+
type: {
|
|
589
|
+
serializedName: "type",
|
|
590
|
+
required: true,
|
|
591
|
+
type: {
|
|
592
|
+
name: "Enum",
|
|
593
|
+
allowedValues: [
|
|
594
|
+
"string",
|
|
595
|
+
"integer",
|
|
596
|
+
"number",
|
|
597
|
+
"boolean",
|
|
598
|
+
"object",
|
|
599
|
+
"datetime"
|
|
600
|
+
]
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
};
|
|
606
|
+
const FacetResult = {
|
|
717
607
|
serializedName: "FacetResult",
|
|
718
608
|
type: {
|
|
719
609
|
name: "Composite",
|
|
720
|
-
polymorphicDiscriminator: Facet.type.polymorphicDiscriminator,
|
|
721
|
-
uberParent: "Facet",
|
|
722
610
|
className: "FacetResult",
|
|
723
|
-
|
|
724
|
-
|
|
611
|
+
uberParent: "Facet",
|
|
612
|
+
polymorphicDiscriminator: Facet.type.polymorphicDiscriminator,
|
|
613
|
+
modelProperties: Object.assign(Object.assign({}, Facet.type.modelProperties), { totalRecords: {
|
|
725
614
|
serializedName: "totalRecords",
|
|
615
|
+
required: true,
|
|
726
616
|
type: {
|
|
727
617
|
name: "Number"
|
|
728
618
|
}
|
|
729
619
|
}, count: {
|
|
730
|
-
required: true,
|
|
731
620
|
serializedName: "count",
|
|
621
|
+
required: true,
|
|
732
622
|
type: {
|
|
733
623
|
name: "Number"
|
|
734
624
|
}
|
|
735
625
|
}, data: {
|
|
736
|
-
required: true,
|
|
737
626
|
serializedName: "data",
|
|
627
|
+
required: true,
|
|
738
628
|
type: {
|
|
739
|
-
name: "
|
|
629
|
+
name: "Dictionary",
|
|
630
|
+
value: { type: { name: "any" } }
|
|
740
631
|
}
|
|
741
632
|
} })
|
|
742
633
|
}
|
|
743
634
|
};
|
|
744
|
-
|
|
635
|
+
const FacetError = {
|
|
745
636
|
serializedName: "FacetError",
|
|
746
637
|
type: {
|
|
747
638
|
name: "Composite",
|
|
748
|
-
polymorphicDiscriminator: Facet.type.polymorphicDiscriminator,
|
|
749
|
-
uberParent: "Facet",
|
|
750
639
|
className: "FacetError",
|
|
751
|
-
|
|
752
|
-
|
|
640
|
+
uberParent: "Facet",
|
|
641
|
+
polymorphicDiscriminator: Facet.type.polymorphicDiscriminator,
|
|
642
|
+
modelProperties: Object.assign(Object.assign({}, Facet.type.modelProperties), { errors: {
|
|
753
643
|
serializedName: "errors",
|
|
644
|
+
required: true,
|
|
754
645
|
type: {
|
|
755
646
|
name: "Sequence",
|
|
756
647
|
element: {
|
|
757
648
|
type: {
|
|
758
649
|
name: "Composite",
|
|
759
|
-
className: "ErrorDetails"
|
|
760
|
-
additionalProperties: {
|
|
761
|
-
type: {
|
|
762
|
-
name: "Object"
|
|
763
|
-
}
|
|
764
|
-
}
|
|
650
|
+
className: "ErrorDetails"
|
|
765
651
|
}
|
|
766
652
|
}
|
|
767
653
|
}
|
|
768
654
|
} })
|
|
769
655
|
}
|
|
770
656
|
};
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
657
|
+
let discriminators = {
|
|
658
|
+
Facet: Facet,
|
|
659
|
+
"Facet.FacetResult": FacetResult,
|
|
660
|
+
"Facet.FacetError": FacetError
|
|
661
|
+
};
|
|
662
|
+
|
|
663
|
+
var Mappers = /*#__PURE__*/Object.freeze({
|
|
664
|
+
__proto__: null,
|
|
665
|
+
QueryRequest: QueryRequest,
|
|
666
|
+
QueryRequestOptions: QueryRequestOptions,
|
|
667
|
+
FacetRequest: FacetRequest,
|
|
668
|
+
FacetRequestOptions: FacetRequestOptions,
|
|
669
|
+
QueryResponse: QueryResponse,
|
|
670
|
+
Facet: Facet,
|
|
671
|
+
ErrorResponse: ErrorResponse,
|
|
672
|
+
ErrorModel: ErrorModel,
|
|
673
|
+
ErrorDetails: ErrorDetails,
|
|
674
|
+
OperationListResult: OperationListResult,
|
|
675
|
+
Operation: Operation,
|
|
676
|
+
OperationDisplay: OperationDisplay,
|
|
677
|
+
ResourcesHistoryRequest: ResourcesHistoryRequest,
|
|
678
|
+
ResourcesHistoryRequestOptions: ResourcesHistoryRequestOptions,
|
|
679
|
+
DateTimeInterval: DateTimeInterval,
|
|
680
|
+
Table: Table,
|
|
681
|
+
Column: Column,
|
|
682
|
+
FacetResult: FacetResult,
|
|
683
|
+
FacetError: FacetError,
|
|
684
|
+
discriminators: discriminators
|
|
685
|
+
});
|
|
686
|
+
|
|
687
|
+
/*
|
|
688
|
+
* Copyright (c) Microsoft Corporation.
|
|
689
|
+
* Licensed under the MIT License.
|
|
690
|
+
*
|
|
691
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
692
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
693
|
+
*/
|
|
694
|
+
const contentType = {
|
|
695
|
+
parameterPath: ["options", "contentType"],
|
|
696
|
+
mapper: {
|
|
697
|
+
defaultValue: "application/json",
|
|
698
|
+
isConstant: true,
|
|
699
|
+
serializedName: "Content-Type",
|
|
700
|
+
type: {
|
|
701
|
+
name: "String"
|
|
801
702
|
}
|
|
802
703
|
}
|
|
803
704
|
};
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
display: {
|
|
817
|
-
serializedName: "display",
|
|
818
|
-
type: {
|
|
819
|
-
name: "Composite",
|
|
820
|
-
className: "OperationDisplay"
|
|
821
|
-
}
|
|
822
|
-
},
|
|
823
|
-
origin: {
|
|
824
|
-
serializedName: "origin",
|
|
825
|
-
type: {
|
|
826
|
-
name: "String"
|
|
827
|
-
}
|
|
828
|
-
}
|
|
705
|
+
const query = {
|
|
706
|
+
parameterPath: "query",
|
|
707
|
+
mapper: QueryRequest
|
|
708
|
+
};
|
|
709
|
+
const accept = {
|
|
710
|
+
parameterPath: "accept",
|
|
711
|
+
mapper: {
|
|
712
|
+
defaultValue: "application/json",
|
|
713
|
+
isConstant: true,
|
|
714
|
+
serializedName: "Accept",
|
|
715
|
+
type: {
|
|
716
|
+
name: "String"
|
|
829
717
|
}
|
|
830
718
|
}
|
|
831
719
|
};
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
skip: {
|
|
852
|
-
serializedName: "$skip",
|
|
853
|
-
type: {
|
|
854
|
-
name: "Number"
|
|
855
|
-
}
|
|
856
|
-
},
|
|
857
|
-
skipToken: {
|
|
858
|
-
serializedName: "$skipToken",
|
|
859
|
-
type: {
|
|
860
|
-
name: "String"
|
|
861
|
-
}
|
|
862
|
-
},
|
|
863
|
-
resultFormat: {
|
|
864
|
-
serializedName: "resultFormat",
|
|
865
|
-
type: {
|
|
866
|
-
name: "String"
|
|
867
|
-
}
|
|
868
|
-
}
|
|
720
|
+
const $host = {
|
|
721
|
+
parameterPath: "$host",
|
|
722
|
+
mapper: {
|
|
723
|
+
serializedName: "$host",
|
|
724
|
+
required: true,
|
|
725
|
+
type: {
|
|
726
|
+
name: "String"
|
|
727
|
+
}
|
|
728
|
+
},
|
|
729
|
+
skipEncoding: true
|
|
730
|
+
};
|
|
731
|
+
const apiVersion = {
|
|
732
|
+
parameterPath: "apiVersion",
|
|
733
|
+
mapper: {
|
|
734
|
+
defaultValue: "2021-06-01-preview",
|
|
735
|
+
isConstant: true,
|
|
736
|
+
serializedName: "api-version",
|
|
737
|
+
type: {
|
|
738
|
+
name: "String"
|
|
869
739
|
}
|
|
870
740
|
}
|
|
871
741
|
};
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
742
|
+
const request = {
|
|
743
|
+
parameterPath: "request",
|
|
744
|
+
mapper: ResourcesHistoryRequest
|
|
745
|
+
};
|
|
746
|
+
|
|
747
|
+
/*
|
|
748
|
+
* Copyright (c) Microsoft Corporation.
|
|
749
|
+
* Licensed under the MIT License.
|
|
750
|
+
*
|
|
751
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
752
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
753
|
+
*/
|
|
754
|
+
/// <reference lib="esnext.asynciterable" />
|
|
755
|
+
/** Class containing Operations operations. */
|
|
756
|
+
class OperationsImpl {
|
|
757
|
+
/**
|
|
758
|
+
* Initialize a new instance of the class Operations class.
|
|
759
|
+
* @param client Reference to the service client
|
|
760
|
+
*/
|
|
761
|
+
constructor(client) {
|
|
762
|
+
this.client = client;
|
|
763
|
+
}
|
|
764
|
+
/**
|
|
765
|
+
* Lists all of the available REST API operations.
|
|
766
|
+
* @param options The options parameters.
|
|
767
|
+
*/
|
|
768
|
+
list(options) {
|
|
769
|
+
const iter = this.listPagingAll(options);
|
|
770
|
+
return {
|
|
771
|
+
next() {
|
|
772
|
+
return iter.next();
|
|
773
|
+
},
|
|
774
|
+
[Symbol.asyncIterator]() {
|
|
775
|
+
return this;
|
|
776
|
+
},
|
|
777
|
+
byPage: () => {
|
|
778
|
+
return this.listPagingPage(options);
|
|
779
|
+
}
|
|
780
|
+
};
|
|
781
|
+
}
|
|
782
|
+
listPagingPage(options) {
|
|
783
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
784
|
+
let result = yield tslib.__await(this._list(options));
|
|
785
|
+
yield yield tslib.__await(result.value || []);
|
|
786
|
+
});
|
|
787
|
+
}
|
|
788
|
+
listPagingAll(options) {
|
|
789
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
790
|
+
var e_1, _a;
|
|
791
|
+
try {
|
|
792
|
+
for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
793
|
+
const page = _c.value;
|
|
794
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
900
795
|
}
|
|
901
|
-
}
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
796
|
+
}
|
|
797
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
798
|
+
finally {
|
|
799
|
+
try {
|
|
800
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
906
801
|
}
|
|
802
|
+
finally { if (e_1) throw e_1.error; }
|
|
907
803
|
}
|
|
908
|
-
}
|
|
804
|
+
});
|
|
909
805
|
}
|
|
806
|
+
/**
|
|
807
|
+
* Lists all of the available REST API operations.
|
|
808
|
+
* @param options The options parameters.
|
|
809
|
+
*/
|
|
810
|
+
_list(options) {
|
|
811
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
// Operation Specifications
|
|
815
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
816
|
+
const listOperationSpec = {
|
|
817
|
+
path: "/providers/Microsoft.ResourceGraph/operations",
|
|
818
|
+
httpMethod: "GET",
|
|
819
|
+
responses: {
|
|
820
|
+
200: {
|
|
821
|
+
bodyMapper: OperationListResult
|
|
822
|
+
},
|
|
823
|
+
default: {
|
|
824
|
+
bodyMapper: ErrorResponse
|
|
825
|
+
}
|
|
826
|
+
},
|
|
827
|
+
queryParameters: [apiVersion],
|
|
828
|
+
urlParameters: [$host],
|
|
829
|
+
headerParameters: [accept],
|
|
830
|
+
serializer
|
|
910
831
|
};
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
832
|
+
|
|
833
|
+
/*
|
|
834
|
+
* Copyright (c) Microsoft Corporation.
|
|
835
|
+
* Licensed under the MIT License.
|
|
836
|
+
*
|
|
837
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
838
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
839
|
+
*/
|
|
840
|
+
class ResourceGraphClient extends coreClient.ServiceClient {
|
|
841
|
+
/**
|
|
842
|
+
* Initializes a new instance of the ResourceGraphClient class.
|
|
843
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
844
|
+
* @param options The parameter options
|
|
845
|
+
*/
|
|
846
|
+
constructor(credentials, options) {
|
|
847
|
+
if (credentials === undefined) {
|
|
848
|
+
throw new Error("'credentials' cannot be null");
|
|
849
|
+
}
|
|
850
|
+
// Initializing default values for options
|
|
851
|
+
if (!options) {
|
|
852
|
+
options = {};
|
|
929
853
|
}
|
|
854
|
+
const defaults = {
|
|
855
|
+
requestContentType: "application/json; charset=utf-8",
|
|
856
|
+
credential: credentials
|
|
857
|
+
};
|
|
858
|
+
const packageDetails = `azsdk-js-arm-resourcegraph/5.0.0-beta.1`;
|
|
859
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
860
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
861
|
+
: `${packageDetails}`;
|
|
862
|
+
if (!options.credentialScopes) {
|
|
863
|
+
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
864
|
+
}
|
|
865
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
866
|
+
userAgentPrefix
|
|
867
|
+
}, baseUri: options.endpoint || "https://management.azure.com" });
|
|
868
|
+
super(optionsWithDefaults);
|
|
869
|
+
// Assigning values to Constant parameters
|
|
870
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
871
|
+
this.apiVersion = options.apiVersion || "2021-06-01-preview";
|
|
872
|
+
this.operations = new OperationsImpl(this);
|
|
873
|
+
}
|
|
874
|
+
/**
|
|
875
|
+
* Queries the resources managed by Azure Resource Manager for scopes specified in the request.
|
|
876
|
+
* @param query Request specifying query and its options.
|
|
877
|
+
* @param options The options parameters.
|
|
878
|
+
*/
|
|
879
|
+
resources(query, options) {
|
|
880
|
+
return this.sendOperationRequest({ query, options }, resourcesOperationSpec);
|
|
930
881
|
}
|
|
882
|
+
/**
|
|
883
|
+
* List all snapshots of a resource for a given time interval.
|
|
884
|
+
* @param request Request specifying the query and its options.
|
|
885
|
+
* @param options The options parameters.
|
|
886
|
+
*/
|
|
887
|
+
resourcesHistory(request, options) {
|
|
888
|
+
return this.sendOperationRequest({ request, options }, resourcesHistoryOperationSpec);
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
// Operation Specifications
|
|
892
|
+
const serializer$1 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
893
|
+
const resourcesOperationSpec = {
|
|
894
|
+
path: "/providers/Microsoft.ResourceGraph/resources",
|
|
895
|
+
httpMethod: "POST",
|
|
896
|
+
responses: {
|
|
897
|
+
200: {
|
|
898
|
+
bodyMapper: QueryResponse
|
|
899
|
+
},
|
|
900
|
+
default: {
|
|
901
|
+
bodyMapper: ErrorResponse
|
|
902
|
+
}
|
|
903
|
+
},
|
|
904
|
+
requestBody: query,
|
|
905
|
+
queryParameters: [apiVersion],
|
|
906
|
+
urlParameters: [$host],
|
|
907
|
+
headerParameters: [contentType, accept],
|
|
908
|
+
mediaType: "json",
|
|
909
|
+
serializer: serializer$1
|
|
931
910
|
};
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
"
|
|
935
|
-
|
|
911
|
+
const resourcesHistoryOperationSpec = {
|
|
912
|
+
path: "/providers/Microsoft.ResourceGraph/resourcesHistory",
|
|
913
|
+
httpMethod: "POST",
|
|
914
|
+
responses: {
|
|
915
|
+
200: {
|
|
916
|
+
bodyMapper: {
|
|
917
|
+
type: { name: "Dictionary", value: { type: { name: "any" } } }
|
|
918
|
+
}
|
|
919
|
+
},
|
|
920
|
+
default: {
|
|
921
|
+
bodyMapper: ErrorResponse
|
|
922
|
+
}
|
|
923
|
+
},
|
|
924
|
+
requestBody: request,
|
|
925
|
+
queryParameters: [apiVersion],
|
|
926
|
+
urlParameters: [$host],
|
|
927
|
+
headerParameters: [contentType, accept],
|
|
928
|
+
mediaType: "json",
|
|
929
|
+
serializer: serializer$1
|
|
936
930
|
};
|
|
937
|
-
|
|
931
|
+
|
|
932
|
+
exports.ResourceGraphClient = ResourceGraphClient;
|
|
933
|
+
//# sourceMappingURL=index.js.map
|