@azure/arm-msi 2.1.0-beta.2 → 2.1.0
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 +6 -9
- package/LICENSE +1 -1
- package/README.md +2 -2
- package/dist/index.js +240 -321
- 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/federatedIdentityCredentialsCreateOrUpdateSample.js +13 -5
- package/dist-esm/samples-dev/federatedIdentityCredentialsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/federatedIdentityCredentialsDeleteSample.js +12 -4
- package/dist-esm/samples-dev/federatedIdentityCredentialsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/federatedIdentityCredentialsGetSample.js +12 -4
- package/dist-esm/samples-dev/federatedIdentityCredentialsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/federatedIdentityCredentialsListSample.js +12 -4
- package/dist-esm/samples-dev/federatedIdentityCredentialsListSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +11 -3
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/systemAssignedIdentitiesGetByScopeSample.js +11 -3
- package/dist-esm/samples-dev/systemAssignedIdentitiesGetByScopeSample.js.map +1 -1
- package/dist-esm/samples-dev/userAssignedIdentitiesCreateOrUpdateSample.js +11 -4
- package/dist-esm/samples-dev/userAssignedIdentitiesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/userAssignedIdentitiesDeleteSample.js +11 -4
- package/dist-esm/samples-dev/userAssignedIdentitiesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/userAssignedIdentitiesGetSample.js +11 -4
- package/dist-esm/samples-dev/userAssignedIdentitiesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/userAssignedIdentitiesListByResourceGroupSample.js +11 -4
- package/dist-esm/samples-dev/userAssignedIdentitiesListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/userAssignedIdentitiesListBySubscriptionSample.js +10 -3
- package/dist-esm/samples-dev/userAssignedIdentitiesListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/userAssignedIdentitiesUpdateSample.js +11 -4
- package/dist-esm/samples-dev/userAssignedIdentitiesUpdateSample.js.map +1 -1
- package/dist-esm/src/index.d.ts +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/managedServiceIdentityClient.d.ts.map +1 -1
- package/dist-esm/src/managedServiceIdentityClient.js +21 -16
- package/dist-esm/src/managedServiceIdentityClient.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +43 -86
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +12 -1
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +1 -2
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +51 -85
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +4 -6
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +29 -42
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/federatedIdentityCredentials.d.ts +6 -6
- package/dist-esm/src/operations/federatedIdentityCredentials.d.ts.map +1 -1
- package/dist-esm/src/operations/federatedIdentityCredentials.js +32 -25
- package/dist-esm/src/operations/federatedIdentityCredentials.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js +19 -8
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/userAssignedIdentities.d.ts +1 -26
- package/dist-esm/src/operations/userAssignedIdentities.d.ts.map +1 -1
- package/dist-esm/src/operations/userAssignedIdentities.js +37 -143
- package/dist-esm/src/operations/userAssignedIdentities.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/federatedIdentityCredentials.d.ts +4 -4
- package/dist-esm/src/operationsInterfaces/userAssignedIdentities.d.ts +1 -8
- package/dist-esm/src/operationsInterfaces/userAssignedIdentities.d.ts.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/package.json +8 -6
- package/review/arm-msi.api.md +25 -44
- package/src/index.ts +1 -0
- package/src/managedServiceIdentityClient.ts +27 -18
- package/src/models/index.ts +47 -96
- package/src/models/mappers.ts +52 -87
- package/src/models/parameters.ts +31 -46
- package/src/operations/federatedIdentityCredentials.ts +39 -26
- package/src/operations/operations.ts +21 -9
- package/src/operations/userAssignedIdentities.ts +46 -190
- package/src/operationsInterfaces/federatedIdentityCredentials.ts +4 -4
- package/src/operationsInterfaces/userAssignedIdentities.ts +0 -13
- package/src/pagingHelper.ts +39 -0
- package/types/arm-msi.d.ts +59 -103
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/samples-dev/userAssignedIdentitiesListAssociatedResourcesSample.d.ts +0 -2
- package/dist-esm/samples-dev/userAssignedIdentitiesListAssociatedResourcesSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/userAssignedIdentitiesListAssociatedResourcesSample.js +0 -55
- package/dist-esm/samples-dev/userAssignedIdentitiesListAssociatedResourcesSample.js.map +0 -1
package/review/arm-msi.api.md
CHANGED
@@ -8,23 +8,6 @@ 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
|
-
|
28
11
|
// @public
|
29
12
|
export interface CloudError {
|
30
13
|
error?: CloudErrorBody;
|
@@ -38,6 +21,9 @@ export interface CloudErrorBody {
|
|
38
21
|
target?: string;
|
39
22
|
}
|
40
23
|
|
24
|
+
// @public
|
25
|
+
export type CreatedByType = string;
|
26
|
+
|
41
27
|
// @public
|
42
28
|
export interface FederatedIdentityCredential extends ProxyResource {
|
43
29
|
audiences?: string[];
|
@@ -73,8 +59,6 @@ export type FederatedIdentityCredentialsGetResponse = FederatedIdentityCredentia
|
|
73
59
|
|
74
60
|
// @public
|
75
61
|
export interface FederatedIdentityCredentialsListNextOptionalParams extends coreClient.OperationOptions {
|
76
|
-
skiptoken?: string;
|
77
|
-
top?: number;
|
78
62
|
}
|
79
63
|
|
80
64
|
// @public
|
@@ -95,6 +79,9 @@ export interface FederatedIdentityCredentialsListResult {
|
|
95
79
|
value?: FederatedIdentityCredential[];
|
96
80
|
}
|
97
81
|
|
82
|
+
// @public
|
83
|
+
export function getContinuationToken(page: unknown): string | undefined;
|
84
|
+
|
98
85
|
// @public
|
99
86
|
export interface Identity extends TrackedResource {
|
100
87
|
readonly clientId?: string;
|
@@ -113,6 +100,14 @@ export interface IdentityUpdate extends Resource {
|
|
113
100
|
readonly tenantId?: string;
|
114
101
|
}
|
115
102
|
|
103
|
+
// @public
|
104
|
+
export enum KnownCreatedByType {
|
105
|
+
Application = "Application",
|
106
|
+
Key = "Key",
|
107
|
+
ManagedIdentity = "ManagedIdentity",
|
108
|
+
User = "User"
|
109
|
+
}
|
110
|
+
|
116
111
|
// @public (undocumented)
|
117
112
|
export class ManagedServiceIdentityClient extends coreClient.ServiceClient {
|
118
113
|
// (undocumented)
|
@@ -186,6 +181,7 @@ export interface ProxyResource extends Resource {
|
|
186
181
|
export interface Resource {
|
187
182
|
readonly id?: string;
|
188
183
|
readonly name?: string;
|
184
|
+
readonly systemData?: SystemData;
|
189
185
|
readonly type?: string;
|
190
186
|
}
|
191
187
|
|
@@ -213,6 +209,16 @@ export interface SystemAssignedIdentity extends ProxyResource {
|
|
213
209
|
readonly tenantId?: string;
|
214
210
|
}
|
215
211
|
|
212
|
+
// @public
|
213
|
+
export interface SystemData {
|
214
|
+
createdAt?: Date;
|
215
|
+
createdBy?: string;
|
216
|
+
createdByType?: CreatedByType;
|
217
|
+
lastModifiedAt?: Date;
|
218
|
+
lastModifiedBy?: string;
|
219
|
+
lastModifiedByType?: CreatedByType;
|
220
|
+
}
|
221
|
+
|
216
222
|
// @public
|
217
223
|
export interface TrackedResource extends Resource {
|
218
224
|
location: string;
|
@@ -226,7 +232,6 @@ export interface UserAssignedIdentities {
|
|
226
232
|
createOrUpdate(resourceGroupName: string, resourceName: string, parameters: Identity, options?: UserAssignedIdentitiesCreateOrUpdateOptionalParams): Promise<UserAssignedIdentitiesCreateOrUpdateResponse>;
|
227
233
|
delete(resourceGroupName: string, resourceName: string, options?: UserAssignedIdentitiesDeleteOptionalParams): Promise<void>;
|
228
234
|
get(resourceGroupName: string, resourceName: string, options?: UserAssignedIdentitiesGetOptionalParams): Promise<UserAssignedIdentitiesGetResponse>;
|
229
|
-
listAssociatedResources(resourceGroupName: string, resourceName: string, options?: UserAssignedIdentitiesListAssociatedResourcesOptionalParams): PagedAsyncIterableIterator<AzureResource>;
|
230
235
|
listByResourceGroup(resourceGroupName: string, options?: UserAssignedIdentitiesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Identity>;
|
231
236
|
listBySubscription(options?: UserAssignedIdentitiesListBySubscriptionOptionalParams): PagedAsyncIterableIterator<Identity>;
|
232
237
|
update(resourceGroupName: string, resourceName: string, parameters: IdentityUpdate, options?: UserAssignedIdentitiesUpdateOptionalParams): Promise<UserAssignedIdentitiesUpdateResponse>;
|
@@ -250,30 +255,6 @@ export interface UserAssignedIdentitiesGetOptionalParams extends coreClient.Oper
|
|
250
255
|
// @public
|
251
256
|
export type UserAssignedIdentitiesGetResponse = Identity;
|
252
257
|
|
253
|
-
// @public
|
254
|
-
export interface UserAssignedIdentitiesListAssociatedResourcesNextOptionalParams extends coreClient.OperationOptions {
|
255
|
-
filter?: string;
|
256
|
-
orderby?: string;
|
257
|
-
skip?: number;
|
258
|
-
skiptoken?: string;
|
259
|
-
top?: number;
|
260
|
-
}
|
261
|
-
|
262
|
-
// @public
|
263
|
-
export type UserAssignedIdentitiesListAssociatedResourcesNextResponse = AssociatedResourcesListResult;
|
264
|
-
|
265
|
-
// @public
|
266
|
-
export interface UserAssignedIdentitiesListAssociatedResourcesOptionalParams extends coreClient.OperationOptions {
|
267
|
-
filter?: string;
|
268
|
-
orderby?: string;
|
269
|
-
skip?: number;
|
270
|
-
skiptoken?: string;
|
271
|
-
top?: number;
|
272
|
-
}
|
273
|
-
|
274
|
-
// @public
|
275
|
-
export type UserAssignedIdentitiesListAssociatedResourcesResponse = AssociatedResourcesListResult;
|
276
|
-
|
277
258
|
// @public
|
278
259
|
export interface UserAssignedIdentitiesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
|
279
260
|
}
|
package/src/index.ts
CHANGED
@@ -60,7 +60,7 @@ export class ManagedServiceIdentityClient extends coreClient.ServiceClient {
|
|
60
60
|
credential: credentials
|
61
61
|
};
|
62
62
|
|
63
|
-
const packageDetails = `azsdk-js-arm-msi/2.1.0
|
63
|
+
const packageDetails = `azsdk-js-arm-msi/2.1.0`;
|
64
64
|
const userAgentPrefix =
|
65
65
|
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
66
66
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
@@ -72,39 +72,48 @@ export class ManagedServiceIdentityClient extends coreClient.ServiceClient {
|
|
72
72
|
userAgentOptions: {
|
73
73
|
userAgentPrefix
|
74
74
|
},
|
75
|
-
|
75
|
+
endpoint:
|
76
76
|
options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
77
77
|
};
|
78
78
|
super(optionsWithDefaults);
|
79
79
|
|
80
|
+
let bearerTokenAuthenticationPolicyFound: boolean = false;
|
80
81
|
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
81
82
|
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
|
82
|
-
|
83
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
|
83
84
|
(pipelinePolicy) =>
|
84
85
|
pipelinePolicy.name ===
|
85
86
|
coreRestPipeline.bearerTokenAuthenticationPolicyName
|
86
87
|
);
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
88
|
+
}
|
89
|
+
if (
|
90
|
+
!options ||
|
91
|
+
!options.pipeline ||
|
92
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
93
|
+
!bearerTokenAuthenticationPolicyFound
|
94
|
+
) {
|
95
|
+
this.pipeline.removePolicy({
|
96
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
97
|
+
});
|
98
|
+
this.pipeline.addPolicy(
|
99
|
+
coreRestPipeline.bearerTokenAuthenticationPolicy({
|
100
|
+
credential: credentials,
|
101
|
+
scopes:
|
102
|
+
optionsWithDefaults.credentialScopes ??
|
103
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
104
|
+
challengeCallbacks: {
|
105
|
+
authorizeRequestOnChallenge:
|
106
|
+
coreClient.authorizeRequestOnClaimChallenge
|
107
|
+
}
|
108
|
+
})
|
109
|
+
);
|
101
110
|
}
|
102
111
|
// Parameter assignments
|
103
112
|
this.subscriptionId = subscriptionId;
|
104
113
|
|
105
114
|
// Assigning values to Constant parameters
|
106
115
|
this.$host = options.$host || "https://management.azure.com";
|
107
|
-
this.apiVersion = options.apiVersion || "
|
116
|
+
this.apiVersion = options.apiVersion || "2023-01-31";
|
108
117
|
this.systemAssignedIdentities = new SystemAssignedIdentitiesImpl(this);
|
109
118
|
this.operations = new OperationsImpl(this);
|
110
119
|
this.userAssignedIdentities = new UserAssignedIdentitiesImpl(this);
|
package/src/models/index.ts
CHANGED
@@ -11,7 +11,7 @@ import * as coreClient from "@azure/core-client";
|
|
11
11
|
/** Common fields that are returned in the response for all Azure Resource Manager resources */
|
12
12
|
export interface Resource {
|
13
13
|
/**
|
14
|
-
* Fully qualified resource ID for the resource.
|
14
|
+
* Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
|
15
15
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
16
16
|
*/
|
17
17
|
readonly id?: string;
|
@@ -25,6 +25,27 @@ export interface Resource {
|
|
25
25
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
26
26
|
*/
|
27
27
|
readonly type?: string;
|
28
|
+
/**
|
29
|
+
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
|
30
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
31
|
+
*/
|
32
|
+
readonly systemData?: SystemData;
|
33
|
+
}
|
34
|
+
|
35
|
+
/** Metadata pertaining to creation and last modification of the resource. */
|
36
|
+
export interface SystemData {
|
37
|
+
/** The identity that created the resource. */
|
38
|
+
createdBy?: string;
|
39
|
+
/** The type of identity that created the resource. */
|
40
|
+
createdByType?: CreatedByType;
|
41
|
+
/** The timestamp of resource creation (UTC). */
|
42
|
+
createdAt?: Date;
|
43
|
+
/** The identity that last modified the resource. */
|
44
|
+
lastModifiedBy?: string;
|
45
|
+
/** The type of identity that last modified the resource. */
|
46
|
+
lastModifiedByType?: CreatedByType;
|
47
|
+
/** The timestamp of resource last modification (UTC) */
|
48
|
+
lastModifiedAt?: Date;
|
28
49
|
}
|
29
50
|
|
30
51
|
/** An error response from the ManagedServiceIdentity service. */
|
@@ -81,59 +102,6 @@ export interface UserAssignedIdentitiesListResult {
|
|
81
102
|
nextLink?: string;
|
82
103
|
}
|
83
104
|
|
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
|
-
|
137
105
|
/** Values returned by the List operation for federated identity credentials. */
|
138
106
|
export interface FederatedIdentityCredentialsListResult {
|
139
107
|
/** The collection of federated identity credentials returned by the listing operation. */
|
@@ -233,6 +201,30 @@ export interface Identity extends TrackedResource {
|
|
233
201
|
readonly clientId?: string;
|
234
202
|
}
|
235
203
|
|
204
|
+
/** Known values of {@link CreatedByType} that the service accepts. */
|
205
|
+
export enum KnownCreatedByType {
|
206
|
+
/** User */
|
207
|
+
User = "User",
|
208
|
+
/** Application */
|
209
|
+
Application = "Application",
|
210
|
+
/** ManagedIdentity */
|
211
|
+
ManagedIdentity = "ManagedIdentity",
|
212
|
+
/** Key */
|
213
|
+
Key = "Key"
|
214
|
+
}
|
215
|
+
|
216
|
+
/**
|
217
|
+
* Defines values for CreatedByType. \
|
218
|
+
* {@link KnownCreatedByType} can be used interchangeably with CreatedByType,
|
219
|
+
* this enum contains the known values that the service supports.
|
220
|
+
* ### Known values supported by the service
|
221
|
+
* **User** \
|
222
|
+
* **Application** \
|
223
|
+
* **ManagedIdentity** \
|
224
|
+
* **Key**
|
225
|
+
*/
|
226
|
+
export type CreatedByType = string;
|
227
|
+
|
236
228
|
/** Optional parameters. */
|
237
229
|
export interface SystemAssignedIdentitiesGetByScopeOptionalParams
|
238
230
|
extends coreClient.OperationOptions {}
|
@@ -268,24 +260,6 @@ export interface UserAssignedIdentitiesListByResourceGroupOptionalParams
|
|
268
260
|
/** Contains response data for the listByResourceGroup operation. */
|
269
261
|
export type UserAssignedIdentitiesListByResourceGroupResponse = UserAssignedIdentitiesListResult;
|
270
262
|
|
271
|
-
/** Optional parameters. */
|
272
|
-
export interface UserAssignedIdentitiesListAssociatedResourcesOptionalParams
|
273
|
-
extends coreClient.OperationOptions {
|
274
|
-
/** OData filter expression to apply to the query. */
|
275
|
-
filter?: string;
|
276
|
-
/** OData orderBy expression to apply to the query. */
|
277
|
-
orderby?: string;
|
278
|
-
/** Number of records to return. */
|
279
|
-
top?: number;
|
280
|
-
/** Number of records to skip. */
|
281
|
-
skip?: number;
|
282
|
-
/** 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. */
|
283
|
-
skiptoken?: string;
|
284
|
-
}
|
285
|
-
|
286
|
-
/** Contains response data for the listAssociatedResources operation. */
|
287
|
-
export type UserAssignedIdentitiesListAssociatedResourcesResponse = AssociatedResourcesListResult;
|
288
|
-
|
289
263
|
/** Optional parameters. */
|
290
264
|
export interface UserAssignedIdentitiesCreateOrUpdateOptionalParams
|
291
265
|
extends coreClient.OperationOptions {}
|
@@ -325,24 +299,6 @@ export interface UserAssignedIdentitiesListByResourceGroupNextOptionalParams
|
|
325
299
|
/** Contains response data for the listByResourceGroupNext operation. */
|
326
300
|
export type UserAssignedIdentitiesListByResourceGroupNextResponse = UserAssignedIdentitiesListResult;
|
327
301
|
|
328
|
-
/** Optional parameters. */
|
329
|
-
export interface UserAssignedIdentitiesListAssociatedResourcesNextOptionalParams
|
330
|
-
extends coreClient.OperationOptions {
|
331
|
-
/** OData filter expression to apply to the query. */
|
332
|
-
filter?: string;
|
333
|
-
/** OData orderBy expression to apply to the query. */
|
334
|
-
orderby?: string;
|
335
|
-
/** Number of records to return. */
|
336
|
-
top?: number;
|
337
|
-
/** Number of records to skip. */
|
338
|
-
skip?: number;
|
339
|
-
/** 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. */
|
340
|
-
skiptoken?: string;
|
341
|
-
}
|
342
|
-
|
343
|
-
/** Contains response data for the listAssociatedResourcesNext operation. */
|
344
|
-
export type UserAssignedIdentitiesListAssociatedResourcesNextResponse = AssociatedResourcesListResult;
|
345
|
-
|
346
302
|
/** Optional parameters. */
|
347
303
|
export interface FederatedIdentityCredentialsListOptionalParams
|
348
304
|
extends coreClient.OperationOptions {
|
@@ -375,12 +331,7 @@ export interface FederatedIdentityCredentialsDeleteOptionalParams
|
|
375
331
|
|
376
332
|
/** Optional parameters. */
|
377
333
|
export interface FederatedIdentityCredentialsListNextOptionalParams
|
378
|
-
extends coreClient.OperationOptions {
|
379
|
-
/** Number of records to return. */
|
380
|
-
top?: number;
|
381
|
-
/** 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. */
|
382
|
-
skiptoken?: string;
|
383
|
-
}
|
334
|
+
extends coreClient.OperationOptions {}
|
384
335
|
|
385
336
|
/** Contains response data for the listNext operation. */
|
386
337
|
export type FederatedIdentityCredentialsListNextResponse = FederatedIdentityCredentialsListResult;
|
package/src/models/mappers.ts
CHANGED
@@ -33,6 +33,58 @@ export const Resource: coreClient.CompositeMapper = {
|
|
33
33
|
type: {
|
34
34
|
name: "String"
|
35
35
|
}
|
36
|
+
},
|
37
|
+
systemData: {
|
38
|
+
serializedName: "systemData",
|
39
|
+
type: {
|
40
|
+
name: "Composite",
|
41
|
+
className: "SystemData"
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|
46
|
+
};
|
47
|
+
|
48
|
+
export const SystemData: coreClient.CompositeMapper = {
|
49
|
+
type: {
|
50
|
+
name: "Composite",
|
51
|
+
className: "SystemData",
|
52
|
+
modelProperties: {
|
53
|
+
createdBy: {
|
54
|
+
serializedName: "createdBy",
|
55
|
+
type: {
|
56
|
+
name: "String"
|
57
|
+
}
|
58
|
+
},
|
59
|
+
createdByType: {
|
60
|
+
serializedName: "createdByType",
|
61
|
+
type: {
|
62
|
+
name: "String"
|
63
|
+
}
|
64
|
+
},
|
65
|
+
createdAt: {
|
66
|
+
serializedName: "createdAt",
|
67
|
+
type: {
|
68
|
+
name: "DateTime"
|
69
|
+
}
|
70
|
+
},
|
71
|
+
lastModifiedBy: {
|
72
|
+
serializedName: "lastModifiedBy",
|
73
|
+
type: {
|
74
|
+
name: "String"
|
75
|
+
}
|
76
|
+
},
|
77
|
+
lastModifiedByType: {
|
78
|
+
serializedName: "lastModifiedByType",
|
79
|
+
type: {
|
80
|
+
name: "String"
|
81
|
+
}
|
82
|
+
},
|
83
|
+
lastModifiedAt: {
|
84
|
+
serializedName: "lastModifiedAt",
|
85
|
+
type: {
|
86
|
+
name: "DateTime"
|
87
|
+
}
|
36
88
|
}
|
37
89
|
}
|
38
90
|
}
|
@@ -202,93 +254,6 @@ export const UserAssignedIdentitiesListResult: coreClient.CompositeMapper = {
|
|
202
254
|
}
|
203
255
|
};
|
204
256
|
|
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
|
-
|
292
257
|
export const FederatedIdentityCredentialsListResult: coreClient.CompositeMapper = {
|
293
258
|
type: {
|
294
259
|
name: "Composite",
|
package/src/models/parameters.ts
CHANGED
@@ -56,7 +56,7 @@ export const scope: OperationURLParameter = {
|
|
56
56
|
export const apiVersion: OperationQueryParameter = {
|
57
57
|
parameterPath: "apiVersion",
|
58
58
|
mapper: {
|
59
|
-
defaultValue: "
|
59
|
+
defaultValue: "2023-01-31",
|
60
60
|
isConstant: true,
|
61
61
|
serializedName: "api-version",
|
62
62
|
type: {
|
@@ -99,57 +99,61 @@ export const resourceGroupName: OperationURLParameter = {
|
|
99
99
|
}
|
100
100
|
};
|
101
101
|
|
102
|
-
export const
|
103
|
-
parameterPath: "
|
102
|
+
export const contentType: OperationParameter = {
|
103
|
+
parameterPath: ["options", "contentType"],
|
104
104
|
mapper: {
|
105
|
-
|
106
|
-
|
105
|
+
defaultValue: "application/json",
|
106
|
+
isConstant: true,
|
107
|
+
serializedName: "Content-Type",
|
107
108
|
type: {
|
108
109
|
name: "String"
|
109
110
|
}
|
110
111
|
}
|
111
112
|
};
|
112
113
|
|
113
|
-
export const
|
114
|
-
parameterPath:
|
115
|
-
mapper:
|
116
|
-
serializedName: "$filter",
|
117
|
-
type: {
|
118
|
-
name: "String"
|
119
|
-
}
|
120
|
-
}
|
114
|
+
export const parameters: OperationParameter = {
|
115
|
+
parameterPath: "parameters",
|
116
|
+
mapper: IdentityMapper
|
121
117
|
};
|
122
118
|
|
123
|
-
export const
|
124
|
-
parameterPath:
|
119
|
+
export const resourceName: OperationURLParameter = {
|
120
|
+
parameterPath: "resourceName",
|
125
121
|
mapper: {
|
126
|
-
serializedName: "
|
122
|
+
serializedName: "resourceName",
|
123
|
+
required: true,
|
127
124
|
type: {
|
128
125
|
name: "String"
|
129
126
|
}
|
130
127
|
}
|
131
128
|
};
|
132
129
|
|
133
|
-
export const
|
134
|
-
parameterPath:
|
130
|
+
export const parameters1: OperationParameter = {
|
131
|
+
parameterPath: "parameters",
|
132
|
+
mapper: IdentityUpdateMapper
|
133
|
+
};
|
134
|
+
|
135
|
+
export const resourceGroupName1: OperationURLParameter = {
|
136
|
+
parameterPath: "resourceGroupName",
|
135
137
|
mapper: {
|
136
138
|
constraints: {
|
137
|
-
|
139
|
+
MaxLength: 90,
|
140
|
+
MinLength: 1
|
138
141
|
},
|
139
|
-
serializedName: "
|
142
|
+
serializedName: "resourceGroupName",
|
143
|
+
required: true,
|
140
144
|
type: {
|
141
|
-
name: "
|
145
|
+
name: "String"
|
142
146
|
}
|
143
147
|
}
|
144
148
|
};
|
145
149
|
|
146
|
-
export const
|
147
|
-
parameterPath: ["options", "
|
150
|
+
export const top: OperationQueryParameter = {
|
151
|
+
parameterPath: ["options", "top"],
|
148
152
|
mapper: {
|
149
153
|
constraints: {
|
150
154
|
InclusiveMinimum: 1
|
151
155
|
},
|
152
|
-
serializedName: "$
|
156
|
+
serializedName: "$top",
|
153
157
|
type: {
|
154
158
|
name: "Number"
|
155
159
|
}
|
@@ -166,28 +170,6 @@ export const skiptoken: OperationQueryParameter = {
|
|
166
170
|
}
|
167
171
|
};
|
168
172
|
|
169
|
-
export const contentType: OperationParameter = {
|
170
|
-
parameterPath: ["options", "contentType"],
|
171
|
-
mapper: {
|
172
|
-
defaultValue: "application/json",
|
173
|
-
isConstant: true,
|
174
|
-
serializedName: "Content-Type",
|
175
|
-
type: {
|
176
|
-
name: "String"
|
177
|
-
}
|
178
|
-
}
|
179
|
-
};
|
180
|
-
|
181
|
-
export const parameters: OperationParameter = {
|
182
|
-
parameterPath: "parameters",
|
183
|
-
mapper: IdentityMapper
|
184
|
-
};
|
185
|
-
|
186
|
-
export const parameters1: OperationParameter = {
|
187
|
-
parameterPath: "parameters",
|
188
|
-
mapper: IdentityUpdateMapper
|
189
|
-
};
|
190
|
-
|
191
173
|
export const parameters2: OperationParameter = {
|
192
174
|
parameterPath: "parameters",
|
193
175
|
mapper: FederatedIdentityCredentialMapper
|
@@ -196,6 +178,9 @@ export const parameters2: OperationParameter = {
|
|
196
178
|
export const federatedIdentityCredentialResourceName: OperationURLParameter = {
|
197
179
|
parameterPath: "federatedIdentityCredentialResourceName",
|
198
180
|
mapper: {
|
181
|
+
constraints: {
|
182
|
+
Pattern: new RegExp("^[a-zA-Z0-9]{1}[a-zA-Z0-9-_]{2,119}$")
|
183
|
+
},
|
199
184
|
serializedName: "federatedIdentityCredentialResourceName",
|
200
185
|
required: true,
|
201
186
|
type: {
|