@azure/arm-msi 0.1.0 → 2.0.0-alpha.20211217.3

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.
Files changed (135) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/{LICENSE.txt → LICENSE} +2 -2
  3. package/README.md +75 -73
  4. package/dist/index.js +1029 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/index.d.ts +5 -0
  9. package/dist-esm/src/index.d.ts.map +1 -0
  10. package/dist-esm/src/index.js +12 -0
  11. package/dist-esm/src/index.js.map +1 -0
  12. package/dist-esm/src/managedServiceIdentityClient.d.ts +20 -0
  13. package/dist-esm/src/managedServiceIdentityClient.d.ts.map +1 -0
  14. package/dist-esm/src/managedServiceIdentityClient.js +53 -0
  15. package/dist-esm/src/managedServiceIdentityClient.js.map +1 -0
  16. package/dist-esm/src/models/index.d.ts +212 -0
  17. package/dist-esm/src/models/index.d.ts.map +1 -0
  18. package/dist-esm/src/models/index.js +9 -0
  19. package/dist-esm/src/models/index.js.map +1 -0
  20. package/dist-esm/src/models/mappers.d.ts +14 -0
  21. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  22. package/dist-esm/src/models/mappers.js +325 -0
  23. package/dist-esm/src/models/mappers.js.map +1 -0
  24. package/dist-esm/src/models/parameters.d.ts +13 -0
  25. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  26. package/dist-esm/src/models/parameters.js +113 -0
  27. package/dist-esm/src/models/parameters.js.map +1 -0
  28. package/dist-esm/src/operations/index.d.ts +4 -0
  29. package/dist-esm/src/operations/index.d.ts.map +1 -0
  30. package/dist-esm/src/operations/index.js +11 -0
  31. package/dist-esm/src/operations/index.js.map +1 -0
  32. package/dist-esm/src/operations/operations.d.ts +32 -0
  33. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  34. package/dist-esm/src/operations/operations.js +120 -0
  35. package/dist-esm/src/operations/operations.js.map +1 -0
  36. package/dist-esm/src/operations/systemAssignedIdentities.d.ts +20 -0
  37. package/dist-esm/src/operations/systemAssignedIdentities.d.ts.map +1 -0
  38. package/dist-esm/src/operations/systemAssignedIdentities.js +48 -0
  39. package/dist-esm/src/operations/systemAssignedIdentities.js.map +1 -0
  40. package/dist-esm/src/operations/userAssignedIdentities.d.ts +83 -0
  41. package/dist-esm/src/operations/userAssignedIdentities.d.ts.map +1 -0
  42. package/dist-esm/src/operations/userAssignedIdentities.js +359 -0
  43. package/dist-esm/src/operations/userAssignedIdentities.js.map +1 -0
  44. package/dist-esm/src/operationsInterfaces/index.d.ts +4 -0
  45. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  46. package/dist-esm/src/operationsInterfaces/index.js +11 -0
  47. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  48. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  49. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  50. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  51. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  52. package/dist-esm/src/operationsInterfaces/systemAssignedIdentities.d.ts +12 -0
  53. package/dist-esm/src/operationsInterfaces/systemAssignedIdentities.d.ts.map +1 -0
  54. package/dist-esm/src/operationsInterfaces/systemAssignedIdentities.js +9 -0
  55. package/dist-esm/src/operationsInterfaces/systemAssignedIdentities.js.map +1 -0
  56. package/dist-esm/src/operationsInterfaces/userAssignedIdentities.d.ts +47 -0
  57. package/dist-esm/src/operationsInterfaces/userAssignedIdentities.d.ts.map +1 -0
  58. package/dist-esm/src/operationsInterfaces/userAssignedIdentities.js +9 -0
  59. package/dist-esm/src/operationsInterfaces/userAssignedIdentities.js.map +1 -0
  60. package/dist-esm/test/sampleTest.d.ts +2 -0
  61. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  62. package/dist-esm/test/sampleTest.js +40 -0
  63. package/dist-esm/test/sampleTest.js.map +1 -0
  64. package/package.json +70 -25
  65. package/review/arm-msi.api.md +218 -0
  66. package/rollup.config.js +184 -27
  67. package/src/index.ts +12 -0
  68. package/src/managedServiceIdentityClient.ts +87 -0
  69. package/src/models/index.ts +248 -0
  70. package/src/models/mappers.ts +364 -0
  71. package/src/models/parameters.ts +132 -0
  72. package/{lib → src}/operations/index.ts +4 -5
  73. package/src/operations/operations.ts +137 -0
  74. package/src/operations/systemAssignedIdentities.ts +65 -0
  75. package/src/operations/userAssignedIdentities.ts +450 -0
  76. package/src/operationsInterfaces/index.ts +11 -0
  77. package/src/operationsInterfaces/operations.ts +22 -0
  78. package/src/operationsInterfaces/systemAssignedIdentities.ts +26 -0
  79. package/src/operationsInterfaces/userAssignedIdentities.ts +91 -0
  80. package/tsconfig.json +4 -4
  81. package/types/arm-msi.d.ts +330 -0
  82. package/types/tsdoc-metadata.json +11 -0
  83. package/dist/arm-msi.js +0 -820
  84. package/dist/arm-msi.js.map +0 -1
  85. package/dist/arm-msi.min.js +0 -1
  86. package/dist/arm-msi.min.js.map +0 -1
  87. package/esm/managedServiceIdentityClient.d.ts +0 -19
  88. package/esm/managedServiceIdentityClient.d.ts.map +0 -1
  89. package/esm/managedServiceIdentityClient.js +0 -34
  90. package/esm/managedServiceIdentityClient.js.map +0 -1
  91. package/esm/managedServiceIdentityClientContext.d.ts +0 -16
  92. package/esm/managedServiceIdentityClientContext.d.ts.map +0 -1
  93. package/esm/managedServiceIdentityClientContext.js +0 -56
  94. package/esm/managedServiceIdentityClientContext.js.map +0 -1
  95. package/esm/models/index.d.ts +0 -332
  96. package/esm/models/index.d.ts.map +0 -1
  97. package/esm/models/index.js +0 -10
  98. package/esm/models/index.js.map +0 -1
  99. package/esm/models/mappers.d.ts +0 -9
  100. package/esm/models/mappers.d.ts.map +0 -1
  101. package/esm/models/mappers.js +0 -197
  102. package/esm/models/mappers.js.map +0 -1
  103. package/esm/models/operationsMappers.d.ts +0 -2
  104. package/esm/models/operationsMappers.d.ts.map +0 -1
  105. package/esm/models/operationsMappers.js +0 -11
  106. package/esm/models/operationsMappers.js.map +0 -1
  107. package/esm/models/parameters.d.ts +0 -8
  108. package/esm/models/parameters.d.ts.map +0 -1
  109. package/esm/models/parameters.js +0 -71
  110. package/esm/models/parameters.js.map +0 -1
  111. package/esm/models/userAssignedIdentitiesMappers.d.ts +0 -2
  112. package/esm/models/userAssignedIdentitiesMappers.d.ts.map +0 -1
  113. package/esm/models/userAssignedIdentitiesMappers.js +0 -11
  114. package/esm/models/userAssignedIdentitiesMappers.js.map +0 -1
  115. package/esm/operations/index.d.ts +0 -3
  116. package/esm/operations/index.d.ts.map +0 -1
  117. package/esm/operations/index.js +0 -12
  118. package/esm/operations/index.js.map +0 -1
  119. package/esm/operations/operations.d.ts +0 -46
  120. package/esm/operations/operations.d.ts.map +0 -1
  121. package/esm/operations/operations.js +0 -77
  122. package/esm/operations/operations.js.map +0 -1
  123. package/esm/operations/userAssignedIdentities.d.ts +0 -172
  124. package/esm/operations/userAssignedIdentities.d.ts.map +0 -1
  125. package/esm/operations/userAssignedIdentities.js +0 -272
  126. package/esm/operations/userAssignedIdentities.js.map +0 -1
  127. package/lib/managedServiceIdentityClient.ts +0 -44
  128. package/lib/managedServiceIdentityClientContext.ts +0 -62
  129. package/lib/models/index.ts +0 -358
  130. package/lib/models/mappers.ts +0 -204
  131. package/lib/models/operationsMappers.ts +0 -17
  132. package/lib/models/parameters.ts +0 -73
  133. package/lib/models/userAssignedIdentitiesMappers.ts +0 -17
  134. package/lib/operations/operations.ts +0 -123
  135. package/lib/operations/userAssignedIdentities.ts +0 -479
@@ -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
- };