@azure/arm-msi 0.1.0 → 2.0.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 +11 -0
- package/{LICENSE.txt → LICENSE} +2 -2
- package/README.md +75 -73
- package/dist/index.js +1029 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/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/managedServiceIdentityClient.d.ts +20 -0
- package/dist-esm/src/managedServiceIdentityClient.d.ts.map +1 -0
- package/dist-esm/src/managedServiceIdentityClient.js +53 -0
- package/dist-esm/src/managedServiceIdentityClient.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +212 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +9 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +14 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +325 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +13 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +113 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +4 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +11 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/systemAssignedIdentities.d.ts +20 -0
- package/dist-esm/src/operations/systemAssignedIdentities.d.ts.map +1 -0
- package/dist-esm/src/operations/systemAssignedIdentities.js +48 -0
- package/dist-esm/src/operations/systemAssignedIdentities.js.map +1 -0
- package/dist-esm/src/operations/userAssignedIdentities.d.ts +83 -0
- package/dist-esm/src/operations/userAssignedIdentities.d.ts.map +1 -0
- package/dist-esm/src/operations/userAssignedIdentities.js +359 -0
- package/dist-esm/src/operations/userAssignedIdentities.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +4 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +11 -0
- 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/operationsInterfaces/systemAssignedIdentities.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/systemAssignedIdentities.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/systemAssignedIdentities.js +9 -0
- package/dist-esm/src/operationsInterfaces/systemAssignedIdentities.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/userAssignedIdentities.d.ts +47 -0
- package/dist-esm/src/operationsInterfaces/userAssignedIdentities.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/userAssignedIdentities.js +9 -0
- package/dist-esm/src/operationsInterfaces/userAssignedIdentities.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 +69 -34
- package/review/arm-msi.api.md +218 -0
- package/rollup.config.js +184 -27
- package/src/index.ts +12 -0
- package/src/managedServiceIdentityClient.ts +87 -0
- package/src/models/index.ts +248 -0
- package/src/models/mappers.ts +364 -0
- package/src/models/parameters.ts +132 -0
- package/{lib → src}/operations/index.ts +4 -5
- package/src/operations/operations.ts +137 -0
- package/src/operations/systemAssignedIdentities.ts +65 -0
- package/src/operations/userAssignedIdentities.ts +450 -0
- package/src/operationsInterfaces/index.ts +11 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/systemAssignedIdentities.ts +26 -0
- package/src/operationsInterfaces/userAssignedIdentities.ts +91 -0
- package/tsconfig.json +4 -4
- package/types/arm-msi.d.ts +330 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-msi.js +0 -820
- package/dist/arm-msi.js.map +0 -1
- package/dist/arm-msi.min.js +0 -1
- package/dist/arm-msi.min.js.map +0 -1
- package/esm/managedServiceIdentityClient.d.ts +0 -19
- package/esm/managedServiceIdentityClient.d.ts.map +0 -1
- package/esm/managedServiceIdentityClient.js +0 -34
- package/esm/managedServiceIdentityClient.js.map +0 -1
- package/esm/managedServiceIdentityClientContext.d.ts +0 -16
- package/esm/managedServiceIdentityClientContext.d.ts.map +0 -1
- package/esm/managedServiceIdentityClientContext.js +0 -56
- package/esm/managedServiceIdentityClientContext.js.map +0 -1
- package/esm/models/index.d.ts +0 -332
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -10
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -9
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js +0 -197
- 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 +0 -11
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -8
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -71
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/userAssignedIdentitiesMappers.d.ts +0 -2
- package/esm/models/userAssignedIdentitiesMappers.d.ts.map +0 -1
- package/esm/models/userAssignedIdentitiesMappers.js +0 -11
- package/esm/models/userAssignedIdentitiesMappers.js.map +0 -1
- package/esm/operations/index.d.ts +0 -3
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js +0 -12
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -46
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -77
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/userAssignedIdentities.d.ts +0 -172
- package/esm/operations/userAssignedIdentities.d.ts.map +0 -1
- package/esm/operations/userAssignedIdentities.js +0 -272
- package/esm/operations/userAssignedIdentities.js.map +0 -1
- package/lib/managedServiceIdentityClient.ts +0 -44
- package/lib/managedServiceIdentityClientContext.ts +0 -62
- package/lib/models/index.ts +0 -358
- package/lib/models/mappers.ts +0 -204
- package/lib/models/operationsMappers.ts +0 -17
- package/lib/models/parameters.ts +0 -73
- package/lib/models/userAssignedIdentitiesMappers.ts +0 -17
- package/lib/operations/operations.ts +0 -123
- package/lib/operations/userAssignedIdentities.ts +0 -479
package/lib/models/parameters.ts
DELETED
@@ -1,73 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
4
|
-
* license information.
|
5
|
-
*
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
8
|
-
* regenerated.
|
9
|
-
*/
|
10
|
-
|
11
|
-
import * as msRest from "@azure/ms-rest-js";
|
12
|
-
|
13
|
-
export const acceptLanguage: msRest.OperationParameter = {
|
14
|
-
parameterPath: "acceptLanguage",
|
15
|
-
mapper: {
|
16
|
-
serializedName: "accept-language",
|
17
|
-
defaultValue: 'en-US',
|
18
|
-
type: {
|
19
|
-
name: "String"
|
20
|
-
}
|
21
|
-
}
|
22
|
-
};
|
23
|
-
export const apiVersion: msRest.OperationQueryParameter = {
|
24
|
-
parameterPath: "apiVersion",
|
25
|
-
mapper: {
|
26
|
-
required: true,
|
27
|
-
serializedName: "api-version",
|
28
|
-
type: {
|
29
|
-
name: "String"
|
30
|
-
}
|
31
|
-
}
|
32
|
-
};
|
33
|
-
export const nextPageLink: msRest.OperationURLParameter = {
|
34
|
-
parameterPath: "nextPageLink",
|
35
|
-
mapper: {
|
36
|
-
required: true,
|
37
|
-
serializedName: "nextLink",
|
38
|
-
type: {
|
39
|
-
name: "String"
|
40
|
-
}
|
41
|
-
},
|
42
|
-
skipEncoding: true
|
43
|
-
};
|
44
|
-
export const resourceGroupName: msRest.OperationURLParameter = {
|
45
|
-
parameterPath: "resourceGroupName",
|
46
|
-
mapper: {
|
47
|
-
required: true,
|
48
|
-
serializedName: "resourceGroupName",
|
49
|
-
type: {
|
50
|
-
name: "String"
|
51
|
-
}
|
52
|
-
}
|
53
|
-
};
|
54
|
-
export const resourceName: msRest.OperationURLParameter = {
|
55
|
-
parameterPath: "resourceName",
|
56
|
-
mapper: {
|
57
|
-
required: true,
|
58
|
-
serializedName: "resourceName",
|
59
|
-
type: {
|
60
|
-
name: "String"
|
61
|
-
}
|
62
|
-
}
|
63
|
-
};
|
64
|
-
export const subscriptionId: msRest.OperationURLParameter = {
|
65
|
-
parameterPath: "subscriptionId",
|
66
|
-
mapper: {
|
67
|
-
required: true,
|
68
|
-
serializedName: "subscriptionId",
|
69
|
-
type: {
|
70
|
-
name: "String"
|
71
|
-
}
|
72
|
-
}
|
73
|
-
};
|
@@ -1,17 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
4
|
-
* license information.
|
5
|
-
*
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
8
|
-
* regenerated.
|
9
|
-
*/
|
10
|
-
|
11
|
-
export {
|
12
|
-
UserAssignedIdentitiesListResult,
|
13
|
-
Identity,
|
14
|
-
BaseResource,
|
15
|
-
CloudError
|
16
|
-
} from "../models/mappers";
|
17
|
-
|
@@ -1,123 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
4
|
-
* license information.
|
5
|
-
*
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
8
|
-
* regenerated.
|
9
|
-
*/
|
10
|
-
|
11
|
-
import * as msRest from "@azure/ms-rest-js";
|
12
|
-
import * as Models from "../models";
|
13
|
-
import * as Mappers from "../models/operationsMappers";
|
14
|
-
import * as Parameters from "../models/parameters";
|
15
|
-
import { ManagedServiceIdentityClientContext } from "../managedServiceIdentityClientContext";
|
16
|
-
|
17
|
-
/** Class representing a Operations. */
|
18
|
-
export class Operations {
|
19
|
-
private readonly client: ManagedServiceIdentityClientContext;
|
20
|
-
|
21
|
-
/**
|
22
|
-
* Create a Operations.
|
23
|
-
* @param {ManagedServiceIdentityClientContext} client Reference to the service client.
|
24
|
-
*/
|
25
|
-
constructor(client: ManagedServiceIdentityClientContext) {
|
26
|
-
this.client = client;
|
27
|
-
}
|
28
|
-
|
29
|
-
/**
|
30
|
-
* Lists available operations for the Microsoft.ManagedIdentity provider
|
31
|
-
* @param [options] The optional parameters
|
32
|
-
* @returns Promise<Models.OperationsListResponse>
|
33
|
-
*/
|
34
|
-
list(options?: msRest.RequestOptionsBase): Promise<Models.OperationsListResponse>;
|
35
|
-
/**
|
36
|
-
* @param callback The callback
|
37
|
-
*/
|
38
|
-
list(callback: msRest.ServiceCallback<Models.OperationListResult>): void;
|
39
|
-
/**
|
40
|
-
* @param options The optional parameters
|
41
|
-
* @param callback The callback
|
42
|
-
*/
|
43
|
-
list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.OperationListResult>): void;
|
44
|
-
list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.OperationListResult>, callback?: msRest.ServiceCallback<Models.OperationListResult>): Promise<Models.OperationsListResponse> {
|
45
|
-
return this.client.sendOperationRequest(
|
46
|
-
{
|
47
|
-
options
|
48
|
-
},
|
49
|
-
listOperationSpec,
|
50
|
-
callback) as Promise<Models.OperationsListResponse>;
|
51
|
-
}
|
52
|
-
|
53
|
-
/**
|
54
|
-
* Lists available operations for the Microsoft.ManagedIdentity provider
|
55
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
56
|
-
* @param [options] The optional parameters
|
57
|
-
* @returns Promise<Models.OperationsListNextResponse>
|
58
|
-
*/
|
59
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.OperationsListNextResponse>;
|
60
|
-
/**
|
61
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
62
|
-
* @param callback The callback
|
63
|
-
*/
|
64
|
-
listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.OperationListResult>): void;
|
65
|
-
/**
|
66
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
67
|
-
* @param options The optional parameters
|
68
|
-
* @param callback The callback
|
69
|
-
*/
|
70
|
-
listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.OperationListResult>): void;
|
71
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.OperationListResult>, callback?: msRest.ServiceCallback<Models.OperationListResult>): Promise<Models.OperationsListNextResponse> {
|
72
|
-
return this.client.sendOperationRequest(
|
73
|
-
{
|
74
|
-
nextPageLink,
|
75
|
-
options
|
76
|
-
},
|
77
|
-
listNextOperationSpec,
|
78
|
-
callback) as Promise<Models.OperationsListNextResponse>;
|
79
|
-
}
|
80
|
-
}
|
81
|
-
|
82
|
-
// Operation Specifications
|
83
|
-
const serializer = new msRest.Serializer(Mappers);
|
84
|
-
const listOperationSpec: msRest.OperationSpec = {
|
85
|
-
httpMethod: "GET",
|
86
|
-
path: "providers/Microsoft.ManagedIdentity/operations",
|
87
|
-
queryParameters: [
|
88
|
-
Parameters.apiVersion
|
89
|
-
],
|
90
|
-
headerParameters: [
|
91
|
-
Parameters.acceptLanguage
|
92
|
-
],
|
93
|
-
responses: {
|
94
|
-
200: {
|
95
|
-
bodyMapper: Mappers.OperationListResult
|
96
|
-
},
|
97
|
-
default: {
|
98
|
-
bodyMapper: Mappers.CloudError
|
99
|
-
}
|
100
|
-
},
|
101
|
-
serializer
|
102
|
-
};
|
103
|
-
|
104
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
105
|
-
httpMethod: "GET",
|
106
|
-
baseUrl: "https://management.azure.com",
|
107
|
-
path: "{nextLink}",
|
108
|
-
urlParameters: [
|
109
|
-
Parameters.nextPageLink
|
110
|
-
],
|
111
|
-
headerParameters: [
|
112
|
-
Parameters.acceptLanguage
|
113
|
-
],
|
114
|
-
responses: {
|
115
|
-
200: {
|
116
|
-
bodyMapper: Mappers.OperationListResult
|
117
|
-
},
|
118
|
-
default: {
|
119
|
-
bodyMapper: Mappers.CloudError
|
120
|
-
}
|
121
|
-
},
|
122
|
-
serializer
|
123
|
-
};
|
@@ -1,479 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for
|
4
|
-
* license information.
|
5
|
-
*
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
8
|
-
* regenerated.
|
9
|
-
*/
|
10
|
-
|
11
|
-
import * as msRest from "@azure/ms-rest-js";
|
12
|
-
import * as Models from "../models";
|
13
|
-
import * as Mappers from "../models/userAssignedIdentitiesMappers";
|
14
|
-
import * as Parameters from "../models/parameters";
|
15
|
-
import { ManagedServiceIdentityClientContext } from "../managedServiceIdentityClientContext";
|
16
|
-
|
17
|
-
/** Class representing a UserAssignedIdentities. */
|
18
|
-
export class UserAssignedIdentities {
|
19
|
-
private readonly client: ManagedServiceIdentityClientContext;
|
20
|
-
|
21
|
-
/**
|
22
|
-
* Create a UserAssignedIdentities.
|
23
|
-
* @param {ManagedServiceIdentityClientContext} client Reference to the service client.
|
24
|
-
*/
|
25
|
-
constructor(client: ManagedServiceIdentityClientContext) {
|
26
|
-
this.client = client;
|
27
|
-
}
|
28
|
-
|
29
|
-
/**
|
30
|
-
* Lists all the userAssignedIdentities available under the specified subscription.
|
31
|
-
* @param [options] The optional parameters
|
32
|
-
* @returns Promise<Models.UserAssignedIdentitiesListBySubscriptionResponse>
|
33
|
-
*/
|
34
|
-
listBySubscription(options?: msRest.RequestOptionsBase): Promise<Models.UserAssignedIdentitiesListBySubscriptionResponse>;
|
35
|
-
/**
|
36
|
-
* @param callback The callback
|
37
|
-
*/
|
38
|
-
listBySubscription(callback: msRest.ServiceCallback<Models.UserAssignedIdentitiesListResult>): void;
|
39
|
-
/**
|
40
|
-
* @param options The optional parameters
|
41
|
-
* @param callback The callback
|
42
|
-
*/
|
43
|
-
listBySubscription(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.UserAssignedIdentitiesListResult>): void;
|
44
|
-
listBySubscription(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.UserAssignedIdentitiesListResult>, callback?: msRest.ServiceCallback<Models.UserAssignedIdentitiesListResult>): Promise<Models.UserAssignedIdentitiesListBySubscriptionResponse> {
|
45
|
-
return this.client.sendOperationRequest(
|
46
|
-
{
|
47
|
-
options
|
48
|
-
},
|
49
|
-
listBySubscriptionOperationSpec,
|
50
|
-
callback) as Promise<Models.UserAssignedIdentitiesListBySubscriptionResponse>;
|
51
|
-
}
|
52
|
-
|
53
|
-
/**
|
54
|
-
* Lists all the userAssignedIdentities available under the specified ResourceGroup.
|
55
|
-
* @param resourceGroupName The name of the Resource Group to which the identity belongs.
|
56
|
-
* @param [options] The optional parameters
|
57
|
-
* @returns Promise<Models.UserAssignedIdentitiesListByResourceGroupResponse>
|
58
|
-
*/
|
59
|
-
listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise<Models.UserAssignedIdentitiesListByResourceGroupResponse>;
|
60
|
-
/**
|
61
|
-
* @param resourceGroupName The name of the Resource Group to which the identity belongs.
|
62
|
-
* @param callback The callback
|
63
|
-
*/
|
64
|
-
listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback<Models.UserAssignedIdentitiesListResult>): void;
|
65
|
-
/**
|
66
|
-
* @param resourceGroupName The name of the Resource Group to which the identity belongs.
|
67
|
-
* @param options The optional parameters
|
68
|
-
* @param callback The callback
|
69
|
-
*/
|
70
|
-
listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.UserAssignedIdentitiesListResult>): void;
|
71
|
-
listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.UserAssignedIdentitiesListResult>, callback?: msRest.ServiceCallback<Models.UserAssignedIdentitiesListResult>): Promise<Models.UserAssignedIdentitiesListByResourceGroupResponse> {
|
72
|
-
return this.client.sendOperationRequest(
|
73
|
-
{
|
74
|
-
resourceGroupName,
|
75
|
-
options
|
76
|
-
},
|
77
|
-
listByResourceGroupOperationSpec,
|
78
|
-
callback) as Promise<Models.UserAssignedIdentitiesListByResourceGroupResponse>;
|
79
|
-
}
|
80
|
-
|
81
|
-
/**
|
82
|
-
* Create or update an identity in the specified subscription and resource group.
|
83
|
-
* @param resourceGroupName The name of the Resource Group to which the identity belongs.
|
84
|
-
* @param resourceName The name of the identity resource.
|
85
|
-
* @param parameters Parameters to create or update the identity
|
86
|
-
* @param [options] The optional parameters
|
87
|
-
* @returns Promise<Models.UserAssignedIdentitiesCreateOrUpdateResponse>
|
88
|
-
*/
|
89
|
-
createOrUpdate(resourceGroupName: string, resourceName: string, parameters: Models.Identity, options?: msRest.RequestOptionsBase): Promise<Models.UserAssignedIdentitiesCreateOrUpdateResponse>;
|
90
|
-
/**
|
91
|
-
* @param resourceGroupName The name of the Resource Group to which the identity belongs.
|
92
|
-
* @param resourceName The name of the identity resource.
|
93
|
-
* @param parameters Parameters to create or update the identity
|
94
|
-
* @param callback The callback
|
95
|
-
*/
|
96
|
-
createOrUpdate(resourceGroupName: string, resourceName: string, parameters: Models.Identity, callback: msRest.ServiceCallback<Models.Identity>): void;
|
97
|
-
/**
|
98
|
-
* @param resourceGroupName The name of the Resource Group to which the identity belongs.
|
99
|
-
* @param resourceName The name of the identity resource.
|
100
|
-
* @param parameters Parameters to create or update the identity
|
101
|
-
* @param options The optional parameters
|
102
|
-
* @param callback The callback
|
103
|
-
*/
|
104
|
-
createOrUpdate(resourceGroupName: string, resourceName: string, parameters: Models.Identity, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Identity>): void;
|
105
|
-
createOrUpdate(resourceGroupName: string, resourceName: string, parameters: Models.Identity, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Identity>, callback?: msRest.ServiceCallback<Models.Identity>): Promise<Models.UserAssignedIdentitiesCreateOrUpdateResponse> {
|
106
|
-
return this.client.sendOperationRequest(
|
107
|
-
{
|
108
|
-
resourceGroupName,
|
109
|
-
resourceName,
|
110
|
-
parameters,
|
111
|
-
options
|
112
|
-
},
|
113
|
-
createOrUpdateOperationSpec,
|
114
|
-
callback) as Promise<Models.UserAssignedIdentitiesCreateOrUpdateResponse>;
|
115
|
-
}
|
116
|
-
|
117
|
-
/**
|
118
|
-
* Update an identity in the specified subscription and resource group.
|
119
|
-
* @param resourceGroupName The name of the Resource Group to which the identity belongs.
|
120
|
-
* @param resourceName The name of the identity resource.
|
121
|
-
* @param parameters Parameters to update the identity
|
122
|
-
* @param [options] The optional parameters
|
123
|
-
* @returns Promise<Models.UserAssignedIdentitiesUpdateResponse>
|
124
|
-
*/
|
125
|
-
update(resourceGroupName: string, resourceName: string, parameters: Models.Identity, options?: msRest.RequestOptionsBase): Promise<Models.UserAssignedIdentitiesUpdateResponse>;
|
126
|
-
/**
|
127
|
-
* @param resourceGroupName The name of the Resource Group to which the identity belongs.
|
128
|
-
* @param resourceName The name of the identity resource.
|
129
|
-
* @param parameters Parameters to update the identity
|
130
|
-
* @param callback The callback
|
131
|
-
*/
|
132
|
-
update(resourceGroupName: string, resourceName: string, parameters: Models.Identity, callback: msRest.ServiceCallback<Models.Identity>): void;
|
133
|
-
/**
|
134
|
-
* @param resourceGroupName The name of the Resource Group to which the identity belongs.
|
135
|
-
* @param resourceName The name of the identity resource.
|
136
|
-
* @param parameters Parameters to update the identity
|
137
|
-
* @param options The optional parameters
|
138
|
-
* @param callback The callback
|
139
|
-
*/
|
140
|
-
update(resourceGroupName: string, resourceName: string, parameters: Models.Identity, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Identity>): void;
|
141
|
-
update(resourceGroupName: string, resourceName: string, parameters: Models.Identity, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Identity>, callback?: msRest.ServiceCallback<Models.Identity>): Promise<Models.UserAssignedIdentitiesUpdateResponse> {
|
142
|
-
return this.client.sendOperationRequest(
|
143
|
-
{
|
144
|
-
resourceGroupName,
|
145
|
-
resourceName,
|
146
|
-
parameters,
|
147
|
-
options
|
148
|
-
},
|
149
|
-
updateOperationSpec,
|
150
|
-
callback) as Promise<Models.UserAssignedIdentitiesUpdateResponse>;
|
151
|
-
}
|
152
|
-
|
153
|
-
/**
|
154
|
-
* Gets the identity.
|
155
|
-
* @param resourceGroupName The name of the Resource Group to which the identity belongs.
|
156
|
-
* @param resourceName The name of the identity resource.
|
157
|
-
* @param [options] The optional parameters
|
158
|
-
* @returns Promise<Models.UserAssignedIdentitiesGetResponse>
|
159
|
-
*/
|
160
|
-
get(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise<Models.UserAssignedIdentitiesGetResponse>;
|
161
|
-
/**
|
162
|
-
* @param resourceGroupName The name of the Resource Group to which the identity belongs.
|
163
|
-
* @param resourceName The name of the identity resource.
|
164
|
-
* @param callback The callback
|
165
|
-
*/
|
166
|
-
get(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback<Models.Identity>): void;
|
167
|
-
/**
|
168
|
-
* @param resourceGroupName The name of the Resource Group to which the identity belongs.
|
169
|
-
* @param resourceName The name of the identity resource.
|
170
|
-
* @param options The optional parameters
|
171
|
-
* @param callback The callback
|
172
|
-
*/
|
173
|
-
get(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Identity>): void;
|
174
|
-
get(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Identity>, callback?: msRest.ServiceCallback<Models.Identity>): Promise<Models.UserAssignedIdentitiesGetResponse> {
|
175
|
-
return this.client.sendOperationRequest(
|
176
|
-
{
|
177
|
-
resourceGroupName,
|
178
|
-
resourceName,
|
179
|
-
options
|
180
|
-
},
|
181
|
-
getOperationSpec,
|
182
|
-
callback) as Promise<Models.UserAssignedIdentitiesGetResponse>;
|
183
|
-
}
|
184
|
-
|
185
|
-
/**
|
186
|
-
* Deletes the identity.
|
187
|
-
* @param resourceGroupName The name of the Resource Group to which the identity belongs.
|
188
|
-
* @param resourceName The name of the identity resource.
|
189
|
-
* @param [options] The optional parameters
|
190
|
-
* @returns Promise<msRest.RestResponse>
|
191
|
-
*/
|
192
|
-
deleteMethod(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
|
193
|
-
/**
|
194
|
-
* @param resourceGroupName The name of the Resource Group to which the identity belongs.
|
195
|
-
* @param resourceName The name of the identity resource.
|
196
|
-
* @param callback The callback
|
197
|
-
*/
|
198
|
-
deleteMethod(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback<void>): void;
|
199
|
-
/**
|
200
|
-
* @param resourceGroupName The name of the Resource Group to which the identity belongs.
|
201
|
-
* @param resourceName The name of the identity resource.
|
202
|
-
* @param options The optional parameters
|
203
|
-
* @param callback The callback
|
204
|
-
*/
|
205
|
-
deleteMethod(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
|
206
|
-
deleteMethod(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<void>, callback?: msRest.ServiceCallback<void>): Promise<msRest.RestResponse> {
|
207
|
-
return this.client.sendOperationRequest(
|
208
|
-
{
|
209
|
-
resourceGroupName,
|
210
|
-
resourceName,
|
211
|
-
options
|
212
|
-
},
|
213
|
-
deleteMethodOperationSpec,
|
214
|
-
callback);
|
215
|
-
}
|
216
|
-
|
217
|
-
/**
|
218
|
-
* Lists all the userAssignedIdentities available under the specified subscription.
|
219
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
220
|
-
* @param [options] The optional parameters
|
221
|
-
* @returns Promise<Models.UserAssignedIdentitiesListBySubscriptionNextResponse>
|
222
|
-
*/
|
223
|
-
listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.UserAssignedIdentitiesListBySubscriptionNextResponse>;
|
224
|
-
/**
|
225
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
226
|
-
* @param callback The callback
|
227
|
-
*/
|
228
|
-
listBySubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.UserAssignedIdentitiesListResult>): void;
|
229
|
-
/**
|
230
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
231
|
-
* @param options The optional parameters
|
232
|
-
* @param callback The callback
|
233
|
-
*/
|
234
|
-
listBySubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.UserAssignedIdentitiesListResult>): void;
|
235
|
-
listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.UserAssignedIdentitiesListResult>, callback?: msRest.ServiceCallback<Models.UserAssignedIdentitiesListResult>): Promise<Models.UserAssignedIdentitiesListBySubscriptionNextResponse> {
|
236
|
-
return this.client.sendOperationRequest(
|
237
|
-
{
|
238
|
-
nextPageLink,
|
239
|
-
options
|
240
|
-
},
|
241
|
-
listBySubscriptionNextOperationSpec,
|
242
|
-
callback) as Promise<Models.UserAssignedIdentitiesListBySubscriptionNextResponse>;
|
243
|
-
}
|
244
|
-
|
245
|
-
/**
|
246
|
-
* Lists all the userAssignedIdentities available under the specified ResourceGroup.
|
247
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
248
|
-
* @param [options] The optional parameters
|
249
|
-
* @returns Promise<Models.UserAssignedIdentitiesListByResourceGroupNextResponse>
|
250
|
-
*/
|
251
|
-
listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.UserAssignedIdentitiesListByResourceGroupNextResponse>;
|
252
|
-
/**
|
253
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
254
|
-
* @param callback The callback
|
255
|
-
*/
|
256
|
-
listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.UserAssignedIdentitiesListResult>): void;
|
257
|
-
/**
|
258
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
259
|
-
* @param options The optional parameters
|
260
|
-
* @param callback The callback
|
261
|
-
*/
|
262
|
-
listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.UserAssignedIdentitiesListResult>): void;
|
263
|
-
listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.UserAssignedIdentitiesListResult>, callback?: msRest.ServiceCallback<Models.UserAssignedIdentitiesListResult>): Promise<Models.UserAssignedIdentitiesListByResourceGroupNextResponse> {
|
264
|
-
return this.client.sendOperationRequest(
|
265
|
-
{
|
266
|
-
nextPageLink,
|
267
|
-
options
|
268
|
-
},
|
269
|
-
listByResourceGroupNextOperationSpec,
|
270
|
-
callback) as Promise<Models.UserAssignedIdentitiesListByResourceGroupNextResponse>;
|
271
|
-
}
|
272
|
-
}
|
273
|
-
|
274
|
-
// Operation Specifications
|
275
|
-
const serializer = new msRest.Serializer(Mappers);
|
276
|
-
const listBySubscriptionOperationSpec: msRest.OperationSpec = {
|
277
|
-
httpMethod: "GET",
|
278
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.ManagedIdentity/userAssignedIdentities",
|
279
|
-
urlParameters: [
|
280
|
-
Parameters.subscriptionId
|
281
|
-
],
|
282
|
-
queryParameters: [
|
283
|
-
Parameters.apiVersion
|
284
|
-
],
|
285
|
-
headerParameters: [
|
286
|
-
Parameters.acceptLanguage
|
287
|
-
],
|
288
|
-
responses: {
|
289
|
-
200: {
|
290
|
-
bodyMapper: Mappers.UserAssignedIdentitiesListResult
|
291
|
-
},
|
292
|
-
default: {
|
293
|
-
bodyMapper: Mappers.CloudError
|
294
|
-
}
|
295
|
-
},
|
296
|
-
serializer
|
297
|
-
};
|
298
|
-
|
299
|
-
const listByResourceGroupOperationSpec: msRest.OperationSpec = {
|
300
|
-
httpMethod: "GET",
|
301
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities",
|
302
|
-
urlParameters: [
|
303
|
-
Parameters.subscriptionId,
|
304
|
-
Parameters.resourceGroupName
|
305
|
-
],
|
306
|
-
queryParameters: [
|
307
|
-
Parameters.apiVersion
|
308
|
-
],
|
309
|
-
headerParameters: [
|
310
|
-
Parameters.acceptLanguage
|
311
|
-
],
|
312
|
-
responses: {
|
313
|
-
200: {
|
314
|
-
bodyMapper: Mappers.UserAssignedIdentitiesListResult
|
315
|
-
},
|
316
|
-
default: {
|
317
|
-
bodyMapper: Mappers.CloudError
|
318
|
-
}
|
319
|
-
},
|
320
|
-
serializer
|
321
|
-
};
|
322
|
-
|
323
|
-
const createOrUpdateOperationSpec: msRest.OperationSpec = {
|
324
|
-
httpMethod: "PUT",
|
325
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}",
|
326
|
-
urlParameters: [
|
327
|
-
Parameters.subscriptionId,
|
328
|
-
Parameters.resourceGroupName,
|
329
|
-
Parameters.resourceName
|
330
|
-
],
|
331
|
-
queryParameters: [
|
332
|
-
Parameters.apiVersion
|
333
|
-
],
|
334
|
-
headerParameters: [
|
335
|
-
Parameters.acceptLanguage
|
336
|
-
],
|
337
|
-
requestBody: {
|
338
|
-
parameterPath: "parameters",
|
339
|
-
mapper: {
|
340
|
-
...Mappers.Identity,
|
341
|
-
required: true
|
342
|
-
}
|
343
|
-
},
|
344
|
-
responses: {
|
345
|
-
200: {
|
346
|
-
bodyMapper: Mappers.Identity
|
347
|
-
},
|
348
|
-
201: {
|
349
|
-
bodyMapper: Mappers.Identity
|
350
|
-
},
|
351
|
-
default: {
|
352
|
-
bodyMapper: Mappers.CloudError
|
353
|
-
}
|
354
|
-
},
|
355
|
-
serializer
|
356
|
-
};
|
357
|
-
|
358
|
-
const updateOperationSpec: msRest.OperationSpec = {
|
359
|
-
httpMethod: "PATCH",
|
360
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}",
|
361
|
-
urlParameters: [
|
362
|
-
Parameters.subscriptionId,
|
363
|
-
Parameters.resourceGroupName,
|
364
|
-
Parameters.resourceName
|
365
|
-
],
|
366
|
-
queryParameters: [
|
367
|
-
Parameters.apiVersion
|
368
|
-
],
|
369
|
-
headerParameters: [
|
370
|
-
Parameters.acceptLanguage
|
371
|
-
],
|
372
|
-
requestBody: {
|
373
|
-
parameterPath: "parameters",
|
374
|
-
mapper: {
|
375
|
-
...Mappers.Identity,
|
376
|
-
required: true
|
377
|
-
}
|
378
|
-
},
|
379
|
-
responses: {
|
380
|
-
200: {
|
381
|
-
bodyMapper: Mappers.Identity
|
382
|
-
},
|
383
|
-
default: {
|
384
|
-
bodyMapper: Mappers.CloudError
|
385
|
-
}
|
386
|
-
},
|
387
|
-
serializer
|
388
|
-
};
|
389
|
-
|
390
|
-
const getOperationSpec: msRest.OperationSpec = {
|
391
|
-
httpMethod: "GET",
|
392
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}",
|
393
|
-
urlParameters: [
|
394
|
-
Parameters.subscriptionId,
|
395
|
-
Parameters.resourceGroupName,
|
396
|
-
Parameters.resourceName
|
397
|
-
],
|
398
|
-
queryParameters: [
|
399
|
-
Parameters.apiVersion
|
400
|
-
],
|
401
|
-
headerParameters: [
|
402
|
-
Parameters.acceptLanguage
|
403
|
-
],
|
404
|
-
responses: {
|
405
|
-
200: {
|
406
|
-
bodyMapper: Mappers.Identity
|
407
|
-
},
|
408
|
-
default: {
|
409
|
-
bodyMapper: Mappers.CloudError
|
410
|
-
}
|
411
|
-
},
|
412
|
-
serializer
|
413
|
-
};
|
414
|
-
|
415
|
-
const deleteMethodOperationSpec: msRest.OperationSpec = {
|
416
|
-
httpMethod: "DELETE",
|
417
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}",
|
418
|
-
urlParameters: [
|
419
|
-
Parameters.subscriptionId,
|
420
|
-
Parameters.resourceGroupName,
|
421
|
-
Parameters.resourceName
|
422
|
-
],
|
423
|
-
queryParameters: [
|
424
|
-
Parameters.apiVersion
|
425
|
-
],
|
426
|
-
headerParameters: [
|
427
|
-
Parameters.acceptLanguage
|
428
|
-
],
|
429
|
-
responses: {
|
430
|
-
200: {},
|
431
|
-
204: {},
|
432
|
-
default: {
|
433
|
-
bodyMapper: Mappers.CloudError
|
434
|
-
}
|
435
|
-
},
|
436
|
-
serializer
|
437
|
-
};
|
438
|
-
|
439
|
-
const listBySubscriptionNextOperationSpec: msRest.OperationSpec = {
|
440
|
-
httpMethod: "GET",
|
441
|
-
baseUrl: "https://management.azure.com",
|
442
|
-
path: "{nextLink}",
|
443
|
-
urlParameters: [
|
444
|
-
Parameters.nextPageLink
|
445
|
-
],
|
446
|
-
headerParameters: [
|
447
|
-
Parameters.acceptLanguage
|
448
|
-
],
|
449
|
-
responses: {
|
450
|
-
200: {
|
451
|
-
bodyMapper: Mappers.UserAssignedIdentitiesListResult
|
452
|
-
},
|
453
|
-
default: {
|
454
|
-
bodyMapper: Mappers.CloudError
|
455
|
-
}
|
456
|
-
},
|
457
|
-
serializer
|
458
|
-
};
|
459
|
-
|
460
|
-
const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
|
461
|
-
httpMethod: "GET",
|
462
|
-
baseUrl: "https://management.azure.com",
|
463
|
-
path: "{nextLink}",
|
464
|
-
urlParameters: [
|
465
|
-
Parameters.nextPageLink
|
466
|
-
],
|
467
|
-
headerParameters: [
|
468
|
-
Parameters.acceptLanguage
|
469
|
-
],
|
470
|
-
responses: {
|
471
|
-
200: {
|
472
|
-
bodyMapper: Mappers.UserAssignedIdentitiesListResult
|
473
|
-
},
|
474
|
-
default: {
|
475
|
-
bodyMapper: Mappers.CloudError
|
476
|
-
}
|
477
|
-
},
|
478
|
-
serializer
|
479
|
-
};
|