@azure/arm-msi 2.0.1-alpha.20220208.1 → 2.1.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -11
- package/LICENSE +1 -1
- package/README.md +12 -1
- package/dist/index.js +313 -27
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +43 -0
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
- package/dist-esm/samples-dev/systemAssignedIdentitiesGetByScopeSample.d.ts +2 -0
- package/dist-esm/samples-dev/systemAssignedIdentitiesGetByScopeSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/systemAssignedIdentitiesGetByScopeSample.js +30 -0
- package/dist-esm/samples-dev/systemAssignedIdentitiesGetByScopeSample.js.map +1 -0
- package/dist-esm/samples-dev/userAssignedIdentitiesCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/userAssignedIdentitiesCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/userAssignedIdentitiesCreateOrUpdateSample.js +35 -0
- package/dist-esm/samples-dev/userAssignedIdentitiesCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/userAssignedIdentitiesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/userAssignedIdentitiesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/userAssignedIdentitiesDeleteSample.js +31 -0
- package/dist-esm/samples-dev/userAssignedIdentitiesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/userAssignedIdentitiesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/userAssignedIdentitiesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/userAssignedIdentitiesGetSample.js +31 -0
- package/dist-esm/samples-dev/userAssignedIdentitiesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/userAssignedIdentitiesListAssociatedResourcesSample.d.ts +2 -0
- package/dist-esm/samples-dev/userAssignedIdentitiesListAssociatedResourcesSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/userAssignedIdentitiesListAssociatedResourcesSample.js +55 -0
- package/dist-esm/samples-dev/userAssignedIdentitiesListAssociatedResourcesSample.js.map +1 -0
- package/dist-esm/samples-dev/userAssignedIdentitiesListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/userAssignedIdentitiesListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/userAssignedIdentitiesListByResourceGroupSample.js +44 -0
- package/dist-esm/samples-dev/userAssignedIdentitiesListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/userAssignedIdentitiesListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/userAssignedIdentitiesListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/userAssignedIdentitiesListBySubscriptionSample.js +43 -0
- package/dist-esm/samples-dev/userAssignedIdentitiesListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/userAssignedIdentitiesUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/userAssignedIdentitiesUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/userAssignedIdentitiesUpdateSample.js +35 -0
- package/dist-esm/samples-dev/userAssignedIdentitiesUpdateSample.js.map +1 -0
- package/dist-esm/src/managedServiceIdentityClient.d.ts.map +1 -1
- package/dist-esm/src/managedServiceIdentityClient.js +4 -3
- package/dist-esm/src/managedServiceIdentityClient.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +81 -0
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +2 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +85 -0
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +6 -1
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +62 -11
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/userAssignedIdentities.d.ts +26 -1
- package/dist-esm/src/operations/userAssignedIdentities.d.ts.map +1 -1
- package/dist-esm/src/operations/userAssignedIdentities.js +127 -0
- package/dist-esm/src/operations/userAssignedIdentities.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/userAssignedIdentities.d.ts +8 -1
- package/dist-esm/src/operationsInterfaces/userAssignedIdentities.d.ts.map +1 -1
- package/package.json +25 -9
- package/review/arm-msi.api.md +42 -0
- package/rollup.config.js +6 -72
- package/src/managedServiceIdentityClient.ts +4 -3
- package/src/models/index.ts +89 -0
- package/src/models/mappers.ts +87 -0
- package/src/models/parameters.ts +68 -12
- package/src/operations/userAssignedIdentities.ts +172 -1
- package/src/operationsInterfaces/userAssignedIdentities.ts +13 -0
- package/tsconfig.json +19 -5
- package/types/arm-msi.d.ts +94 -0
package/review/arm-msi.api.md
CHANGED
@@ -8,6 +8,23 @@ import * as coreAuth from '@azure/core-auth';
|
|
8
8
|
import * as coreClient from '@azure/core-client';
|
9
9
|
import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
10
10
|
|
11
|
+
// @public
|
12
|
+
export interface AssociatedResourcesListResult {
|
13
|
+
readonly nextLink?: string;
|
14
|
+
readonly totalCount?: number;
|
15
|
+
readonly value?: AzureResource[];
|
16
|
+
}
|
17
|
+
|
18
|
+
// @public
|
19
|
+
export interface AzureResource {
|
20
|
+
readonly id?: string;
|
21
|
+
readonly name?: string;
|
22
|
+
readonly resourceGroup?: string;
|
23
|
+
readonly subscriptionDisplayName?: string;
|
24
|
+
readonly subscriptionId?: string;
|
25
|
+
readonly type?: string;
|
26
|
+
}
|
27
|
+
|
11
28
|
// @public
|
12
29
|
export interface CloudError {
|
13
30
|
error?: CloudErrorBody;
|
@@ -149,6 +166,7 @@ export interface UserAssignedIdentities {
|
|
149
166
|
createOrUpdate(resourceGroupName: string, resourceName: string, parameters: Identity, options?: UserAssignedIdentitiesCreateOrUpdateOptionalParams): Promise<UserAssignedIdentitiesCreateOrUpdateResponse>;
|
150
167
|
delete(resourceGroupName: string, resourceName: string, options?: UserAssignedIdentitiesDeleteOptionalParams): Promise<void>;
|
151
168
|
get(resourceGroupName: string, resourceName: string, options?: UserAssignedIdentitiesGetOptionalParams): Promise<UserAssignedIdentitiesGetResponse>;
|
169
|
+
listAssociatedResources(resourceGroupName: string, resourceName: string, options?: UserAssignedIdentitiesListAssociatedResourcesOptionalParams): PagedAsyncIterableIterator<AzureResource>;
|
152
170
|
listByResourceGroup(resourceGroupName: string, options?: UserAssignedIdentitiesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Identity>;
|
153
171
|
listBySubscription(options?: UserAssignedIdentitiesListBySubscriptionOptionalParams): PagedAsyncIterableIterator<Identity>;
|
154
172
|
update(resourceGroupName: string, resourceName: string, parameters: IdentityUpdate, options?: UserAssignedIdentitiesUpdateOptionalParams): Promise<UserAssignedIdentitiesUpdateResponse>;
|
@@ -172,6 +190,30 @@ export interface UserAssignedIdentitiesGetOptionalParams extends coreClient.Oper
|
|
172
190
|
// @public
|
173
191
|
export type UserAssignedIdentitiesGetResponse = Identity;
|
174
192
|
|
193
|
+
// @public
|
194
|
+
export interface UserAssignedIdentitiesListAssociatedResourcesNextOptionalParams extends coreClient.OperationOptions {
|
195
|
+
filter?: string;
|
196
|
+
orderby?: string;
|
197
|
+
skip?: number;
|
198
|
+
skiptoken?: string;
|
199
|
+
top?: number;
|
200
|
+
}
|
201
|
+
|
202
|
+
// @public
|
203
|
+
export type UserAssignedIdentitiesListAssociatedResourcesNextResponse = AssociatedResourcesListResult;
|
204
|
+
|
205
|
+
// @public
|
206
|
+
export interface UserAssignedIdentitiesListAssociatedResourcesOptionalParams extends coreClient.OperationOptions {
|
207
|
+
filter?: string;
|
208
|
+
orderby?: string;
|
209
|
+
skip?: number;
|
210
|
+
skiptoken?: string;
|
211
|
+
top?: number;
|
212
|
+
}
|
213
|
+
|
214
|
+
// @public
|
215
|
+
export type UserAssignedIdentitiesListAssociatedResourcesResponse = AssociatedResourcesListResult;
|
216
|
+
|
175
217
|
// @public
|
176
218
|
export interface UserAssignedIdentitiesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
|
177
219
|
}
|
package/rollup.config.js
CHANGED
@@ -14,62 +14,14 @@ import json from "@rollup/plugin-json";
|
|
14
14
|
|
15
15
|
import nodeBuiltins from "builtin-modules";
|
16
16
|
|
17
|
-
/**
|
18
|
-
* Gets the proper configuration needed for rollup's commonJS plugin for @opentelemetry/api.
|
19
|
-
*
|
20
|
-
* NOTE: this manual configuration is only needed because OpenTelemetry uses an
|
21
|
-
* __exportStar downleveled helper function to declare its exports which confuses
|
22
|
-
* rollup's automatic discovery mechanism.
|
23
|
-
*
|
24
|
-
* @returns an object reference that can be `...`'d into your cjs() configuration.
|
25
|
-
*/
|
26
|
-
export function openTelemetryCommonJs() {
|
27
|
-
const namedExports = {};
|
28
|
-
|
29
|
-
for (const key of [
|
30
|
-
"@opentelemetry/api",
|
31
|
-
"@azure/core-tracing/node_modules/@opentelemetry/api"
|
32
|
-
]) {
|
33
|
-
namedExports[key] = [
|
34
|
-
"SpanKind",
|
35
|
-
"TraceFlags",
|
36
|
-
"getSpan",
|
37
|
-
"setSpan",
|
38
|
-
"SpanStatusCode",
|
39
|
-
"getSpanContext",
|
40
|
-
"setSpanContext"
|
41
|
-
];
|
42
|
-
}
|
43
|
-
|
44
|
-
const releasedOpenTelemetryVersions = ["0.10.2", "1.0.0-rc.0"];
|
45
|
-
|
46
|
-
for (const version of releasedOpenTelemetryVersions) {
|
47
|
-
namedExports[
|
48
|
-
// working around a limitation in the rollup common.js plugin - it's not able to resolve these modules so the named exports listed above will not get applied. We have to drill down to the actual path.
|
49
|
-
`../../../common/temp/node_modules/.pnpm/@opentelemetry/api@${version}/node_modules/@opentelemetry/api/build/src/index.js`
|
50
|
-
] = [
|
51
|
-
"SpanKind",
|
52
|
-
"TraceFlags",
|
53
|
-
"getSpan",
|
54
|
-
"setSpan",
|
55
|
-
"StatusCode",
|
56
|
-
"CanonicalCode",
|
57
|
-
"getSpanContext",
|
58
|
-
"setSpanContext"
|
59
|
-
];
|
60
|
-
}
|
61
|
-
|
62
|
-
return namedExports;
|
63
|
-
}
|
64
|
-
|
65
17
|
// #region Warning Handler
|
66
18
|
|
67
19
|
/**
|
68
|
-
* A function that can determine whether a
|
20
|
+
* A function that can determine whether a rollup warning should be ignored. If
|
69
21
|
* the function returns `true`, then the warning will not be displayed.
|
70
22
|
*/
|
71
23
|
|
72
|
-
function
|
24
|
+
function ignoreNiseSinonEval(warning) {
|
73
25
|
return (
|
74
26
|
warning.code === "EVAL" &&
|
75
27
|
warning.id &&
|
@@ -78,17 +30,14 @@ function ignoreNiseSinonEvalWarnings(warning) {
|
|
78
30
|
);
|
79
31
|
}
|
80
32
|
|
81
|
-
function
|
33
|
+
function ignoreChaiCircularDependency(warning) {
|
82
34
|
return (
|
83
35
|
warning.code === "CIRCULAR_DEPENDENCY" &&
|
84
36
|
warning.importer && warning.importer.includes("node_modules/chai") === true
|
85
37
|
);
|
86
38
|
}
|
87
39
|
|
88
|
-
const warningInhibitors = [
|
89
|
-
ignoreChaiCircularDependencyWarnings,
|
90
|
-
ignoreNiseSinonEvalWarnings
|
91
|
-
];
|
40
|
+
const warningInhibitors = [ignoreChaiCircularDependency, ignoreNiseSinonEval];
|
92
41
|
|
93
42
|
/**
|
94
43
|
* Construct a warning handler for the shared rollup configuration
|
@@ -122,22 +71,7 @@ function makeBrowserTestConfig() {
|
|
122
71
|
nodeResolve({
|
123
72
|
mainFields: ["module", "browser"]
|
124
73
|
}),
|
125
|
-
cjs(
|
126
|
-
namedExports: {
|
127
|
-
// Chai's strange internal architecture makes it impossible to statically
|
128
|
-
// analyze its exports.
|
129
|
-
chai: [
|
130
|
-
"version",
|
131
|
-
"use",
|
132
|
-
"util",
|
133
|
-
"config",
|
134
|
-
"expect",
|
135
|
-
"should",
|
136
|
-
"assert"
|
137
|
-
],
|
138
|
-
...openTelemetryCommonJs()
|
139
|
-
}
|
140
|
-
}),
|
74
|
+
cjs(),
|
141
75
|
json(),
|
142
76
|
sourcemaps()
|
143
77
|
//viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
|
@@ -173,7 +107,7 @@ export function makeConfig(pkg, options) {
|
|
173
107
|
],
|
174
108
|
output: { file: "dist/index.js", format: "cjs", sourcemap: true },
|
175
109
|
preserveSymlinks: false,
|
176
|
-
plugins: [sourcemaps(), nodeResolve()
|
110
|
+
plugins: [sourcemaps(), nodeResolve()]
|
177
111
|
};
|
178
112
|
|
179
113
|
const config = [baseConfig];
|
@@ -52,7 +52,7 @@ export class ManagedServiceIdentityClient extends coreClient.ServiceClient {
|
|
52
52
|
credential: credentials
|
53
53
|
};
|
54
54
|
|
55
|
-
const packageDetails = `azsdk-js-arm-msi/2.0.
|
55
|
+
const packageDetails = `azsdk-js-arm-msi/2.1.0-beta.1`;
|
56
56
|
const userAgentPrefix =
|
57
57
|
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
58
58
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
@@ -67,7 +67,8 @@ export class ManagedServiceIdentityClient extends coreClient.ServiceClient {
|
|
67
67
|
userAgentOptions: {
|
68
68
|
userAgentPrefix
|
69
69
|
},
|
70
|
-
baseUri:
|
70
|
+
baseUri:
|
71
|
+
options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
71
72
|
};
|
72
73
|
super(optionsWithDefaults);
|
73
74
|
// Parameter assignments
|
@@ -75,7 +76,7 @@ export class ManagedServiceIdentityClient extends coreClient.ServiceClient {
|
|
75
76
|
|
76
77
|
// Assigning values to Constant parameters
|
77
78
|
this.$host = options.$host || "https://management.azure.com";
|
78
|
-
this.apiVersion = options.apiVersion || "
|
79
|
+
this.apiVersion = options.apiVersion || "2021-09-30-preview";
|
79
80
|
this.systemAssignedIdentities = new SystemAssignedIdentitiesImpl(this);
|
80
81
|
this.operations = new OperationsImpl(this);
|
81
82
|
this.userAssignedIdentities = new UserAssignedIdentitiesImpl(this);
|
package/src/models/index.ts
CHANGED
@@ -81,6 +81,59 @@ export interface UserAssignedIdentitiesListResult {
|
|
81
81
|
nextLink?: string;
|
82
82
|
}
|
83
83
|
|
84
|
+
/** Azure resources returned by the resource action to get a list of assigned resources. */
|
85
|
+
export interface AssociatedResourcesListResult {
|
86
|
+
/**
|
87
|
+
* Total number of Azure resources assigned to the identity.
|
88
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
89
|
+
*/
|
90
|
+
readonly totalCount?: number;
|
91
|
+
/**
|
92
|
+
* The collection of Azure resources returned by the resource action to get a list of assigned resources.
|
93
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
94
|
+
*/
|
95
|
+
readonly value?: AzureResource[];
|
96
|
+
/**
|
97
|
+
* The url to get the next page of results, if any.
|
98
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
99
|
+
*/
|
100
|
+
readonly nextLink?: string;
|
101
|
+
}
|
102
|
+
|
103
|
+
/** Describes an Azure resource that is attached to an identity. */
|
104
|
+
export interface AzureResource {
|
105
|
+
/**
|
106
|
+
* The ID of this resource.
|
107
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
108
|
+
*/
|
109
|
+
readonly id?: string;
|
110
|
+
/**
|
111
|
+
* The name of this resource.
|
112
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
113
|
+
*/
|
114
|
+
readonly name?: string;
|
115
|
+
/**
|
116
|
+
* The type of this resource.
|
117
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
118
|
+
*/
|
119
|
+
readonly type?: string;
|
120
|
+
/**
|
121
|
+
* The name of the resource group this resource belongs to.
|
122
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
123
|
+
*/
|
124
|
+
readonly resourceGroup?: string;
|
125
|
+
/**
|
126
|
+
* The ID of the subscription this resource belongs to.
|
127
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
128
|
+
*/
|
129
|
+
readonly subscriptionId?: string;
|
130
|
+
/**
|
131
|
+
* The name of the subscription this resource belongs to.
|
132
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
133
|
+
*/
|
134
|
+
readonly subscriptionDisplayName?: string;
|
135
|
+
}
|
136
|
+
|
84
137
|
/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */
|
85
138
|
export type ProxyResource = Resource & {};
|
86
139
|
|
@@ -197,6 +250,24 @@ export interface UserAssignedIdentitiesListByResourceGroupOptionalParams
|
|
197
250
|
/** Contains response data for the listByResourceGroup operation. */
|
198
251
|
export type UserAssignedIdentitiesListByResourceGroupResponse = UserAssignedIdentitiesListResult;
|
199
252
|
|
253
|
+
/** Optional parameters. */
|
254
|
+
export interface UserAssignedIdentitiesListAssociatedResourcesOptionalParams
|
255
|
+
extends coreClient.OperationOptions {
|
256
|
+
/** OData filter expression to apply to the query. */
|
257
|
+
filter?: string;
|
258
|
+
/** OData orderBy expression to apply to the query. */
|
259
|
+
orderby?: string;
|
260
|
+
/** Number of records to return. */
|
261
|
+
top?: number;
|
262
|
+
/** Number of records to skip. */
|
263
|
+
skip?: number;
|
264
|
+
/** A skip token is used to continue retrieving items after an operation returns a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. */
|
265
|
+
skiptoken?: string;
|
266
|
+
}
|
267
|
+
|
268
|
+
/** Contains response data for the listAssociatedResources operation. */
|
269
|
+
export type UserAssignedIdentitiesListAssociatedResourcesResponse = AssociatedResourcesListResult;
|
270
|
+
|
200
271
|
/** Optional parameters. */
|
201
272
|
export interface UserAssignedIdentitiesCreateOrUpdateOptionalParams
|
202
273
|
extends coreClient.OperationOptions {}
|
@@ -236,6 +307,24 @@ export interface UserAssignedIdentitiesListByResourceGroupNextOptionalParams
|
|
236
307
|
/** Contains response data for the listByResourceGroupNext operation. */
|
237
308
|
export type UserAssignedIdentitiesListByResourceGroupNextResponse = UserAssignedIdentitiesListResult;
|
238
309
|
|
310
|
+
/** Optional parameters. */
|
311
|
+
export interface UserAssignedIdentitiesListAssociatedResourcesNextOptionalParams
|
312
|
+
extends coreClient.OperationOptions {
|
313
|
+
/** OData filter expression to apply to the query. */
|
314
|
+
filter?: string;
|
315
|
+
/** OData orderBy expression to apply to the query. */
|
316
|
+
orderby?: string;
|
317
|
+
/** Number of records to return. */
|
318
|
+
top?: number;
|
319
|
+
/** Number of records to skip. */
|
320
|
+
skip?: number;
|
321
|
+
/** A skip token is used to continue retrieving items after an operation returns a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. */
|
322
|
+
skiptoken?: string;
|
323
|
+
}
|
324
|
+
|
325
|
+
/** Contains response data for the listAssociatedResourcesNext operation. */
|
326
|
+
export type UserAssignedIdentitiesListAssociatedResourcesNextResponse = AssociatedResourcesListResult;
|
327
|
+
|
239
328
|
/** Optional parameters. */
|
240
329
|
export interface ManagedServiceIdentityClientOptionalParams
|
241
330
|
extends coreClient.ServiceClientOptions {
|
package/src/models/mappers.ts
CHANGED
@@ -202,6 +202,93 @@ export const UserAssignedIdentitiesListResult: coreClient.CompositeMapper = {
|
|
202
202
|
}
|
203
203
|
};
|
204
204
|
|
205
|
+
export const AssociatedResourcesListResult: coreClient.CompositeMapper = {
|
206
|
+
type: {
|
207
|
+
name: "Composite",
|
208
|
+
className: "AssociatedResourcesListResult",
|
209
|
+
modelProperties: {
|
210
|
+
totalCount: {
|
211
|
+
serializedName: "totalCount",
|
212
|
+
readOnly: true,
|
213
|
+
type: {
|
214
|
+
name: "Number"
|
215
|
+
}
|
216
|
+
},
|
217
|
+
value: {
|
218
|
+
serializedName: "value",
|
219
|
+
readOnly: true,
|
220
|
+
type: {
|
221
|
+
name: "Sequence",
|
222
|
+
element: {
|
223
|
+
type: {
|
224
|
+
name: "Composite",
|
225
|
+
className: "AzureResource"
|
226
|
+
}
|
227
|
+
}
|
228
|
+
}
|
229
|
+
},
|
230
|
+
nextLink: {
|
231
|
+
serializedName: "nextLink",
|
232
|
+
readOnly: true,
|
233
|
+
type: {
|
234
|
+
name: "String"
|
235
|
+
}
|
236
|
+
}
|
237
|
+
}
|
238
|
+
}
|
239
|
+
};
|
240
|
+
|
241
|
+
export const AzureResource: coreClient.CompositeMapper = {
|
242
|
+
type: {
|
243
|
+
name: "Composite",
|
244
|
+
className: "AzureResource",
|
245
|
+
modelProperties: {
|
246
|
+
id: {
|
247
|
+
serializedName: "id",
|
248
|
+
readOnly: true,
|
249
|
+
type: {
|
250
|
+
name: "String"
|
251
|
+
}
|
252
|
+
},
|
253
|
+
name: {
|
254
|
+
serializedName: "name",
|
255
|
+
readOnly: true,
|
256
|
+
type: {
|
257
|
+
name: "String"
|
258
|
+
}
|
259
|
+
},
|
260
|
+
type: {
|
261
|
+
serializedName: "type",
|
262
|
+
readOnly: true,
|
263
|
+
type: {
|
264
|
+
name: "String"
|
265
|
+
}
|
266
|
+
},
|
267
|
+
resourceGroup: {
|
268
|
+
serializedName: "resourceGroup",
|
269
|
+
readOnly: true,
|
270
|
+
type: {
|
271
|
+
name: "String"
|
272
|
+
}
|
273
|
+
},
|
274
|
+
subscriptionId: {
|
275
|
+
serializedName: "subscriptionId",
|
276
|
+
readOnly: true,
|
277
|
+
type: {
|
278
|
+
name: "String"
|
279
|
+
}
|
280
|
+
},
|
281
|
+
subscriptionDisplayName: {
|
282
|
+
serializedName: "subscriptionDisplayName",
|
283
|
+
readOnly: true,
|
284
|
+
type: {
|
285
|
+
name: "String"
|
286
|
+
}
|
287
|
+
}
|
288
|
+
}
|
289
|
+
}
|
290
|
+
};
|
291
|
+
|
205
292
|
export const ProxyResource: coreClient.CompositeMapper = {
|
206
293
|
type: {
|
207
294
|
name: "Composite",
|
package/src/models/parameters.ts
CHANGED
@@ -55,7 +55,7 @@ export const scope: OperationURLParameter = {
|
|
55
55
|
export const apiVersion: OperationQueryParameter = {
|
56
56
|
parameterPath: "apiVersion",
|
57
57
|
mapper: {
|
58
|
-
defaultValue: "
|
58
|
+
defaultValue: "2021-09-30-preview",
|
59
59
|
isConstant: true,
|
60
60
|
serializedName: "api-version",
|
61
61
|
type: {
|
@@ -98,6 +98,73 @@ export const resourceGroupName: OperationURLParameter = {
|
|
98
98
|
}
|
99
99
|
};
|
100
100
|
|
101
|
+
export const resourceName: OperationURLParameter = {
|
102
|
+
parameterPath: "resourceName",
|
103
|
+
mapper: {
|
104
|
+
serializedName: "resourceName",
|
105
|
+
required: true,
|
106
|
+
type: {
|
107
|
+
name: "String"
|
108
|
+
}
|
109
|
+
}
|
110
|
+
};
|
111
|
+
|
112
|
+
export const filter: OperationQueryParameter = {
|
113
|
+
parameterPath: ["options", "filter"],
|
114
|
+
mapper: {
|
115
|
+
serializedName: "$filter",
|
116
|
+
type: {
|
117
|
+
name: "String"
|
118
|
+
}
|
119
|
+
}
|
120
|
+
};
|
121
|
+
|
122
|
+
export const orderby: OperationQueryParameter = {
|
123
|
+
parameterPath: ["options", "orderby"],
|
124
|
+
mapper: {
|
125
|
+
serializedName: "$orderby",
|
126
|
+
type: {
|
127
|
+
name: "String"
|
128
|
+
}
|
129
|
+
}
|
130
|
+
};
|
131
|
+
|
132
|
+
export const top: OperationQueryParameter = {
|
133
|
+
parameterPath: ["options", "top"],
|
134
|
+
mapper: {
|
135
|
+
constraints: {
|
136
|
+
InclusiveMinimum: 1
|
137
|
+
},
|
138
|
+
serializedName: "$top",
|
139
|
+
type: {
|
140
|
+
name: "Number"
|
141
|
+
}
|
142
|
+
}
|
143
|
+
};
|
144
|
+
|
145
|
+
export const skip: OperationQueryParameter = {
|
146
|
+
parameterPath: ["options", "skip"],
|
147
|
+
mapper: {
|
148
|
+
constraints: {
|
149
|
+
InclusiveMinimum: 1
|
150
|
+
},
|
151
|
+
serializedName: "$skip",
|
152
|
+
type: {
|
153
|
+
name: "Number"
|
154
|
+
}
|
155
|
+
}
|
156
|
+
};
|
157
|
+
|
158
|
+
export const skiptoken: OperationQueryParameter = {
|
159
|
+
parameterPath: ["options", "skiptoken"],
|
160
|
+
mapper: {
|
161
|
+
serializedName: "$skiptoken",
|
162
|
+
type: {
|
163
|
+
name: "String"
|
164
|
+
}
|
165
|
+
}
|
166
|
+
};
|
167
|
+
|
101
168
|
export const contentType: OperationParameter = {
|
102
169
|
parameterPath: ["options", "contentType"],
|
103
170
|
mapper: {
|
@@ -115,17 +182,6 @@ export const parameters: OperationParameter = {
|
|
115
182
|
mapper: IdentityMapper
|
116
183
|
};
|
117
184
|
|
118
|
-
export const resourceName: OperationURLParameter = {
|
119
|
-
parameterPath: "resourceName",
|
120
|
-
mapper: {
|
121
|
-
serializedName: "resourceName",
|
122
|
-
required: true,
|
123
|
-
type: {
|
124
|
-
name: "String"
|
125
|
-
}
|
126
|
-
}
|
127
|
-
};
|
128
|
-
|
129
185
|
export const parameters1: OperationParameter = {
|
130
186
|
parameterPath: "parameters",
|
131
187
|
mapper: IdentityUpdateMapper
|