@azure/arm-managedapplications 1.1.0 → 2.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/{LICENSE.txt → LICENSE} +2 -2
  3. package/README.md +63 -80
  4. package/dist/index.js +2896 -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/esm/applicationClient.d.ts +50 -0
  9. package/esm/applicationClient.d.ts.map +1 -0
  10. package/esm/applicationClient.js +190 -0
  11. package/esm/applicationClient.js.map +1 -0
  12. package/esm/applicationClientContext.d.ts +16 -0
  13. package/esm/applicationClientContext.d.ts.map +1 -0
  14. package/esm/applicationClientContext.js +49 -0
  15. package/esm/applicationClientContext.js.map +1 -0
  16. package/esm/coreClientLro.d.ts +26 -0
  17. package/esm/coreClientLro.d.ts.map +1 -0
  18. package/esm/coreClientLro.js +186 -0
  19. package/esm/coreClientLro.js.map +1 -0
  20. package/esm/index.d.ts +770 -0
  21. package/esm/index.d.ts.map +1 -0
  22. package/esm/index.js +13 -0
  23. package/esm/index.js.map +1 -0
  24. package/esm/lro/azureAsyncPolling.d.ts +3 -0
  25. package/esm/lro/azureAsyncPolling.d.ts.map +1 -0
  26. package/esm/lro/azureAsyncPolling.js +67 -0
  27. package/esm/lro/azureAsyncPolling.js.map +1 -0
  28. package/esm/lro/bodyPolling.d.ts +8 -0
  29. package/esm/lro/bodyPolling.d.ts.map +1 -0
  30. package/esm/lro/bodyPolling.js +37 -0
  31. package/esm/lro/bodyPolling.js.map +1 -0
  32. package/esm/lro/index.d.ts +4 -0
  33. package/esm/lro/index.d.ts.map +1 -0
  34. package/esm/lro/index.js +12 -0
  35. package/esm/lro/index.js.map +1 -0
  36. package/esm/lro/locationPolling.d.ts +3 -0
  37. package/esm/lro/locationPolling.d.ts.map +1 -0
  38. package/esm/lro/locationPolling.js +19 -0
  39. package/esm/lro/locationPolling.js.map +1 -0
  40. package/esm/lro/lroEngine.d.ts +14 -0
  41. package/esm/lro/lroEngine.d.ts.map +1 -0
  42. package/esm/lro/lroEngine.js +41 -0
  43. package/esm/lro/lroEngine.js.map +1 -0
  44. package/esm/lro/models.d.ts +138 -0
  45. package/esm/lro/models.d.ts.map +1 -0
  46. package/esm/lro/models.js +14 -0
  47. package/esm/lro/models.js.map +1 -0
  48. package/esm/lro/operation.d.ts +36 -0
  49. package/esm/lro/operation.d.ts.map +1 -0
  50. package/esm/lro/operation.js +82 -0
  51. package/esm/lro/operation.js.map +1 -0
  52. package/esm/lro/passthrough.d.ts +3 -0
  53. package/esm/lro/passthrough.d.ts.map +1 -0
  54. package/esm/lro/passthrough.js +15 -0
  55. package/esm/lro/passthrough.js.map +1 -0
  56. package/esm/lro/requestUtils.d.ts +16 -0
  57. package/esm/lro/requestUtils.d.ts.map +1 -0
  58. package/esm/lro/requestUtils.js +73 -0
  59. package/esm/lro/requestUtils.js.map +1 -0
  60. package/esm/lro/stateMachine.d.ts +18 -0
  61. package/esm/lro/stateMachine.d.ts.map +1 -0
  62. package/esm/lro/stateMachine.js +84 -0
  63. package/esm/lro/stateMachine.js.map +1 -0
  64. package/esm/models/index.d.ts +360 -762
  65. package/esm/models/index.d.ts.map +1 -1
  66. package/esm/models/index.js +17 -2
  67. package/esm/models/index.js.map +1 -1
  68. package/esm/models/mappers.d.ts +18 -20
  69. package/esm/models/mappers.d.ts.map +1 -1
  70. package/esm/models/mappers.js +296 -318
  71. package/esm/models/mappers.js.map +1 -1
  72. package/esm/models/parameters.d.ts +15 -10
  73. package/esm/models/parameters.d.ts.map +1 -1
  74. package/esm/models/parameters.js +77 -49
  75. package/esm/models/parameters.js.map +1 -1
  76. package/esm/operations/applicationDefinitions.d.ts +128 -0
  77. package/esm/operations/applicationDefinitions.d.ts.map +1 -0
  78. package/esm/operations/applicationDefinitions.js +574 -0
  79. package/esm/operations/applicationDefinitions.js.map +1 -0
  80. package/esm/operations/applications.d.ts +182 -0
  81. package/esm/operations/applications.d.ts.map +1 -0
  82. package/esm/operations/applications.js +802 -0
  83. package/esm/operations/applications.js.map +1 -0
  84. package/esm/operations/index.d.ts +2 -2
  85. package/esm/operations/index.d.ts.map +1 -1
  86. package/esm/operations/index.js +5 -7
  87. package/esm/operations/index.js.map +1 -1
  88. package/esm/operationsInterfaces/applicationDefinitions.d.ts +95 -0
  89. package/esm/operationsInterfaces/applicationDefinitions.d.ts.map +1 -0
  90. package/esm/operationsInterfaces/applicationDefinitions.js +9 -0
  91. package/esm/operationsInterfaces/applicationDefinitions.js.map +1 -0
  92. package/esm/operationsInterfaces/applications.d.ts +128 -0
  93. package/esm/operationsInterfaces/applications.d.ts.map +1 -0
  94. package/esm/operationsInterfaces/applications.js +9 -0
  95. package/esm/operationsInterfaces/applications.js.map +1 -0
  96. package/esm/operationsInterfaces/index.d.ts +3 -0
  97. package/esm/operationsInterfaces/index.d.ts.map +1 -0
  98. package/esm/operationsInterfaces/index.js +10 -0
  99. package/esm/operationsInterfaces/index.js.map +1 -0
  100. package/package.json +55 -16
  101. package/review/arm-managedapplications.api.md +443 -0
  102. package/rollup.config.js +181 -30
  103. package/src/applicationClient.ts +222 -0
  104. package/src/applicationClientContext.ts +70 -0
  105. package/src/coreClientLro.ts +323 -0
  106. package/src/index.ts +13 -0
  107. package/src/lro/azureAsyncPolling.ts +96 -0
  108. package/src/lro/bodyPolling.ts +54 -0
  109. package/src/lro/index.ts +26 -0
  110. package/src/lro/locationPolling.ts +30 -0
  111. package/src/lro/lroEngine.ts +61 -0
  112. package/src/lro/models.ts +173 -0
  113. package/src/lro/operation.ts +120 -0
  114. package/src/lro/passthrough.ts +23 -0
  115. package/src/lro/requestUtils.ts +105 -0
  116. package/src/lro/stateMachine.ts +138 -0
  117. package/src/models/index.ts +402 -794
  118. package/src/models/mappers.ts +290 -311
  119. package/src/models/parameters.ts +99 -50
  120. package/src/operations/applicationDefinitions.ts +810 -0
  121. package/src/operations/applications.ts +1069 -0
  122. package/src/operations/index.ts +5 -7
  123. package/src/operationsInterfaces/applicationDefinitions.ts +179 -0
  124. package/src/operationsInterfaces/applications.ts +225 -0
  125. package/src/operationsInterfaces/index.ts +10 -0
  126. package/tsconfig.json +3 -2
  127. package/dist/arm-managedapplications.js +0 -1865
  128. package/dist/arm-managedapplications.js.map +0 -1
  129. package/dist/arm-managedapplications.min.js +0 -1
  130. package/dist/arm-managedapplications.min.js.map +0 -1
  131. package/esm/managedApplicationClient.d.ts +0 -58
  132. package/esm/managedApplicationClient.d.ts.map +0 -1
  133. package/esm/managedApplicationClient.js +0 -92
  134. package/esm/managedApplicationClient.js.map +0 -1
  135. package/esm/managedApplicationClientContext.d.ts +0 -22
  136. package/esm/managedApplicationClientContext.d.ts.map +0 -1
  137. package/esm/managedApplicationClientContext.js +0 -61
  138. package/esm/managedApplicationClientContext.js.map +0 -1
  139. package/esm/models/applianceDefinitionsMappers.d.ts +0 -2
  140. package/esm/models/applianceDefinitionsMappers.d.ts.map +0 -1
  141. package/esm/models/applianceDefinitionsMappers.js +0 -9
  142. package/esm/models/applianceDefinitionsMappers.js.map +0 -1
  143. package/esm/models/appliancesMappers.d.ts +0 -2
  144. package/esm/models/appliancesMappers.d.ts.map +0 -1
  145. package/esm/models/appliancesMappers.js +0 -9
  146. package/esm/models/appliancesMappers.js.map +0 -1
  147. package/esm/operations/applianceDefinitions.d.ts +0 -167
  148. package/esm/operations/applianceDefinitions.d.ts.map +0 -1
  149. package/esm/operations/applianceDefinitions.js +0 -358
  150. package/esm/operations/applianceDefinitions.js.map +0 -1
  151. package/esm/operations/appliances.d.ts +0 -247
  152. package/esm/operations/appliances.d.ts.map +0 -1
  153. package/esm/operations/appliances.js +0 -482
  154. package/esm/operations/appliances.js.map +0 -1
  155. package/src/managedApplicationClient.ts +0 -144
  156. package/src/managedApplicationClientContext.ts +0 -68
  157. package/src/models/applianceDefinitionsMappers.ts +0 -24
  158. package/src/models/appliancesMappers.ts +0 -24
  159. package/src/operations/applianceDefinitions.ts +0 -492
  160. package/src/operations/appliances.ts +0 -716
@@ -1,68 +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 Models from "./models";
12
- import * as msRest from "@azure/ms-rest-js";
13
- import { TokenCredential } from "@azure/core-auth";
14
- import * as msRestAzure from "@azure/ms-rest-azure-js";
15
-
16
- const packageName = "@azure/arm-managedapplications";
17
- const packageVersion = "1.1.0";
18
-
19
- export class ManagedApplicationClientContext extends msRestAzure.AzureServiceClient {
20
- credentials: msRest.ServiceClientCredentials | TokenCredential;
21
- subscriptionId: string;
22
- apiVersion?: string;
23
-
24
- /**
25
- * Initializes a new instance of the ManagedApplicationClient class.
26
- * @param credentials Credentials needed for the client to connect to Azure. Credentials
27
- * implementing the TokenCredential interface from the @azure/identity package are recommended. For
28
- * more information about these credentials, see
29
- * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
30
- * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
31
- * @azure/ms-rest-browserauth are also supported.
32
- * @param subscriptionId The ID of the target subscription.
33
- * @param [options] The parameter options
34
- */
35
- constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.ManagedApplicationClientOptions) {
36
- if (credentials == undefined) {
37
- throw new Error('\'credentials\' cannot be null.');
38
- }
39
- if (subscriptionId == undefined) {
40
- throw new Error('\'subscriptionId\' cannot be null.');
41
- }
42
-
43
- if (!options) {
44
- options = {};
45
- }
46
- if(!options.userAgent) {
47
- const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
48
- options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
49
- }
50
-
51
- super(credentials, options);
52
-
53
- this.apiVersion = '2016-09-01-preview';
54
- this.acceptLanguage = 'en-US';
55
- this.longRunningOperationRetryTimeout = 30;
56
- this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
57
- this.requestContentType = "application/json; charset=utf-8";
58
- this.credentials = credentials;
59
- this.subscriptionId = subscriptionId;
60
-
61
- if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
62
- this.acceptLanguage = options.acceptLanguage;
63
- }
64
- if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
65
- this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
66
- }
67
- }
68
- }
@@ -1,24 +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 license information.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
-
9
- export {
10
- Appliance,
11
- ApplianceArtifact,
12
- ApplianceDefinition,
13
- ApplianceDefinitionListResult,
14
- AppliancePatchable,
15
- ApplianceProviderAuthorization,
16
- BaseResource,
17
- ErrorResponse,
18
- GenericResource,
19
- Identity,
20
- Plan,
21
- PlanPatchable,
22
- Resource,
23
- Sku
24
- } from "../models/mappers";
@@ -1,24 +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 license information.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
-
9
- export {
10
- Appliance,
11
- ApplianceArtifact,
12
- ApplianceDefinition,
13
- ApplianceListResult,
14
- AppliancePatchable,
15
- ApplianceProviderAuthorization,
16
- BaseResource,
17
- ErrorResponse,
18
- GenericResource,
19
- Identity,
20
- Plan,
21
- PlanPatchable,
22
- Resource,
23
- Sku
24
- } from "../models/mappers";
@@ -1,492 +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 msRestAzure from "@azure/ms-rest-azure-js";
13
- import * as Models from "../models";
14
- import * as Mappers from "../models/applianceDefinitionsMappers";
15
- import * as Parameters from "../models/parameters";
16
- import { ManagedApplicationClientContext } from "../managedApplicationClientContext";
17
-
18
- /** Class representing a ApplianceDefinitions. */
19
- export class ApplianceDefinitions {
20
- private readonly client: ManagedApplicationClientContext;
21
-
22
- /**
23
- * Create a ApplianceDefinitions.
24
- * @param {ManagedApplicationClientContext} client Reference to the service client.
25
- */
26
- constructor(client: ManagedApplicationClientContext) {
27
- this.client = client;
28
- }
29
-
30
- /**
31
- * Gets the appliance definition.
32
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
33
- * @param applianceDefinitionName The name of the appliance definition.
34
- * @param [options] The optional parameters
35
- * @returns Promise<Models.ApplianceDefinitionsGetResponse>
36
- */
37
- get(resourceGroupName: string, applianceDefinitionName: string, options?: msRest.RequestOptionsBase): Promise<Models.ApplianceDefinitionsGetResponse>;
38
- /**
39
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
40
- * @param applianceDefinitionName The name of the appliance definition.
41
- * @param callback The callback
42
- */
43
- get(resourceGroupName: string, applianceDefinitionName: string, callback: msRest.ServiceCallback<Models.ApplianceDefinition>): void;
44
- /**
45
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
46
- * @param applianceDefinitionName The name of the appliance definition.
47
- * @param options The optional parameters
48
- * @param callback The callback
49
- */
50
- get(resourceGroupName: string, applianceDefinitionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ApplianceDefinition>): void;
51
- get(resourceGroupName: string, applianceDefinitionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ApplianceDefinition>, callback?: msRest.ServiceCallback<Models.ApplianceDefinition>): Promise<Models.ApplianceDefinitionsGetResponse> {
52
- return this.client.sendOperationRequest(
53
- {
54
- resourceGroupName,
55
- applianceDefinitionName,
56
- options
57
- },
58
- getOperationSpec,
59
- callback) as Promise<Models.ApplianceDefinitionsGetResponse>;
60
- }
61
-
62
- /**
63
- * Deletes the appliance definition.
64
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
65
- * @param applianceDefinitionName The name of the appliance definition to delete.
66
- * @param [options] The optional parameters
67
- * @returns Promise<msRest.RestResponse>
68
- */
69
- deleteMethod(resourceGroupName: string, applianceDefinitionName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse> {
70
- return this.beginDeleteMethod(resourceGroupName,applianceDefinitionName,options)
71
- .then(lroPoller => lroPoller.pollUntilFinished());
72
- }
73
-
74
- /**
75
- * Creates a new appliance definition.
76
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
77
- * @param applianceDefinitionName The name of the appliance definition.
78
- * @param parameters Parameters supplied to the create or update an appliance definition.
79
- * @param [options] The optional parameters
80
- * @returns Promise<Models.ApplianceDefinitionsCreateOrUpdateResponse>
81
- */
82
- createOrUpdate(resourceGroupName: string, applianceDefinitionName: string, parameters: Models.ApplianceDefinition, options?: msRest.RequestOptionsBase): Promise<Models.ApplianceDefinitionsCreateOrUpdateResponse> {
83
- return this.beginCreateOrUpdate(resourceGroupName,applianceDefinitionName,parameters,options)
84
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.ApplianceDefinitionsCreateOrUpdateResponse>;
85
- }
86
-
87
- /**
88
- * Lists the appliance definitions in a resource group.
89
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
90
- * @param [options] The optional parameters
91
- * @returns Promise<Models.ApplianceDefinitionsListByResourceGroupResponse>
92
- */
93
- listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise<Models.ApplianceDefinitionsListByResourceGroupResponse>;
94
- /**
95
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
96
- * @param callback The callback
97
- */
98
- listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback<Models.ApplianceDefinitionListResult>): void;
99
- /**
100
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
101
- * @param options The optional parameters
102
- * @param callback The callback
103
- */
104
- listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ApplianceDefinitionListResult>): void;
105
- listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ApplianceDefinitionListResult>, callback?: msRest.ServiceCallback<Models.ApplianceDefinitionListResult>): Promise<Models.ApplianceDefinitionsListByResourceGroupResponse> {
106
- return this.client.sendOperationRequest(
107
- {
108
- resourceGroupName,
109
- options
110
- },
111
- listByResourceGroupOperationSpec,
112
- callback) as Promise<Models.ApplianceDefinitionsListByResourceGroupResponse>;
113
- }
114
-
115
- /**
116
- * Gets the appliance definition.
117
- * @param applianceDefinitionId The fully qualified ID of the appliance definition, including the
118
- * appliance name and the appliance definition resource type. Use the format,
119
- * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applianceDefinitions/{applianceDefinition-name}
120
- * @param [options] The optional parameters
121
- * @returns Promise<Models.ApplianceDefinitionsGetByIdResponse>
122
- */
123
- getById(applianceDefinitionId: string, options?: msRest.RequestOptionsBase): Promise<Models.ApplianceDefinitionsGetByIdResponse>;
124
- /**
125
- * @param applianceDefinitionId The fully qualified ID of the appliance definition, including the
126
- * appliance name and the appliance definition resource type. Use the format,
127
- * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applianceDefinitions/{applianceDefinition-name}
128
- * @param callback The callback
129
- */
130
- getById(applianceDefinitionId: string, callback: msRest.ServiceCallback<Models.ApplianceDefinition>): void;
131
- /**
132
- * @param applianceDefinitionId The fully qualified ID of the appliance definition, including the
133
- * appliance name and the appliance definition resource type. Use the format,
134
- * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applianceDefinitions/{applianceDefinition-name}
135
- * @param options The optional parameters
136
- * @param callback The callback
137
- */
138
- getById(applianceDefinitionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ApplianceDefinition>): void;
139
- getById(applianceDefinitionId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ApplianceDefinition>, callback?: msRest.ServiceCallback<Models.ApplianceDefinition>): Promise<Models.ApplianceDefinitionsGetByIdResponse> {
140
- return this.client.sendOperationRequest(
141
- {
142
- applianceDefinitionId,
143
- options
144
- },
145
- getByIdOperationSpec,
146
- callback) as Promise<Models.ApplianceDefinitionsGetByIdResponse>;
147
- }
148
-
149
- /**
150
- * Deletes the appliance definition.
151
- * @param applianceDefinitionId The fully qualified ID of the appliance definition, including the
152
- * appliance name and the appliance definition resource type. Use the format,
153
- * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applianceDefinitions/{applianceDefinition-name}
154
- * @param [options] The optional parameters
155
- * @returns Promise<msRest.RestResponse>
156
- */
157
- deleteById(applianceDefinitionId: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse> {
158
- return this.beginDeleteById(applianceDefinitionId,options)
159
- .then(lroPoller => lroPoller.pollUntilFinished());
160
- }
161
-
162
- /**
163
- * Creates a new appliance definition.
164
- * @param applianceDefinitionId The fully qualified ID of the appliance definition, including the
165
- * appliance name and the appliance definition resource type. Use the format,
166
- * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applianceDefinitions/{applianceDefinition-name}
167
- * @param parameters Parameters supplied to the create or update an appliance definition.
168
- * @param [options] The optional parameters
169
- * @returns Promise<Models.ApplianceDefinitionsCreateOrUpdateByIdResponse>
170
- */
171
- createOrUpdateById(applianceDefinitionId: string, parameters: Models.ApplianceDefinition, options?: msRest.RequestOptionsBase): Promise<Models.ApplianceDefinitionsCreateOrUpdateByIdResponse> {
172
- return this.beginCreateOrUpdateById(applianceDefinitionId,parameters,options)
173
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.ApplianceDefinitionsCreateOrUpdateByIdResponse>;
174
- }
175
-
176
- /**
177
- * Deletes the appliance definition.
178
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
179
- * @param applianceDefinitionName The name of the appliance definition to delete.
180
- * @param [options] The optional parameters
181
- * @returns Promise<msRestAzure.LROPoller>
182
- */
183
- beginDeleteMethod(resourceGroupName: string, applianceDefinitionName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
184
- return this.client.sendLRORequest(
185
- {
186
- resourceGroupName,
187
- applianceDefinitionName,
188
- options
189
- },
190
- beginDeleteMethodOperationSpec,
191
- options);
192
- }
193
-
194
- /**
195
- * Creates a new appliance definition.
196
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
197
- * @param applianceDefinitionName The name of the appliance definition.
198
- * @param parameters Parameters supplied to the create or update an appliance definition.
199
- * @param [options] The optional parameters
200
- * @returns Promise<msRestAzure.LROPoller>
201
- */
202
- beginCreateOrUpdate(resourceGroupName: string, applianceDefinitionName: string, parameters: Models.ApplianceDefinition, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
203
- return this.client.sendLRORequest(
204
- {
205
- resourceGroupName,
206
- applianceDefinitionName,
207
- parameters,
208
- options
209
- },
210
- beginCreateOrUpdateOperationSpec,
211
- options);
212
- }
213
-
214
- /**
215
- * Deletes the appliance definition.
216
- * @param applianceDefinitionId The fully qualified ID of the appliance definition, including the
217
- * appliance name and the appliance definition resource type. Use the format,
218
- * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applianceDefinitions/{applianceDefinition-name}
219
- * @param [options] The optional parameters
220
- * @returns Promise<msRestAzure.LROPoller>
221
- */
222
- beginDeleteById(applianceDefinitionId: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
223
- return this.client.sendLRORequest(
224
- {
225
- applianceDefinitionId,
226
- options
227
- },
228
- beginDeleteByIdOperationSpec,
229
- options);
230
- }
231
-
232
- /**
233
- * Creates a new appliance definition.
234
- * @param applianceDefinitionId The fully qualified ID of the appliance definition, including the
235
- * appliance name and the appliance definition resource type. Use the format,
236
- * /subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.Solutions/applianceDefinitions/{applianceDefinition-name}
237
- * @param parameters Parameters supplied to the create or update an appliance definition.
238
- * @param [options] The optional parameters
239
- * @returns Promise<msRestAzure.LROPoller>
240
- */
241
- beginCreateOrUpdateById(applianceDefinitionId: string, parameters: Models.ApplianceDefinition, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
242
- return this.client.sendLRORequest(
243
- {
244
- applianceDefinitionId,
245
- parameters,
246
- options
247
- },
248
- beginCreateOrUpdateByIdOperationSpec,
249
- options);
250
- }
251
-
252
- /**
253
- * Lists the appliance definitions in a resource group.
254
- * @param nextPageLink The NextLink from the previous successful call to List operation.
255
- * @param [options] The optional parameters
256
- * @returns Promise<Models.ApplianceDefinitionsListByResourceGroupNextResponse>
257
- */
258
- listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.ApplianceDefinitionsListByResourceGroupNextResponse>;
259
- /**
260
- * @param nextPageLink The NextLink from the previous successful call to List operation.
261
- * @param callback The callback
262
- */
263
- listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.ApplianceDefinitionListResult>): void;
264
- /**
265
- * @param nextPageLink The NextLink from the previous successful call to List operation.
266
- * @param options The optional parameters
267
- * @param callback The callback
268
- */
269
- listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ApplianceDefinitionListResult>): void;
270
- listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ApplianceDefinitionListResult>, callback?: msRest.ServiceCallback<Models.ApplianceDefinitionListResult>): Promise<Models.ApplianceDefinitionsListByResourceGroupNextResponse> {
271
- return this.client.sendOperationRequest(
272
- {
273
- nextPageLink,
274
- options
275
- },
276
- listByResourceGroupNextOperationSpec,
277
- callback) as Promise<Models.ApplianceDefinitionsListByResourceGroupNextResponse>;
278
- }
279
- }
280
-
281
- // Operation Specifications
282
- const serializer = new msRest.Serializer(Mappers);
283
- const getOperationSpec: msRest.OperationSpec = {
284
- httpMethod: "GET",
285
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applianceDefinitions/{applianceDefinitionName}",
286
- urlParameters: [
287
- Parameters.resourceGroupName,
288
- Parameters.applianceDefinitionName,
289
- Parameters.subscriptionId
290
- ],
291
- queryParameters: [
292
- Parameters.apiVersion
293
- ],
294
- headerParameters: [
295
- Parameters.acceptLanguage
296
- ],
297
- responses: {
298
- 200: {
299
- bodyMapper: Mappers.ApplianceDefinition
300
- },
301
- 404: {},
302
- default: {
303
- bodyMapper: Mappers.ErrorResponse
304
- }
305
- },
306
- serializer
307
- };
308
-
309
- const listByResourceGroupOperationSpec: msRest.OperationSpec = {
310
- httpMethod: "GET",
311
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applianceDefinitions",
312
- urlParameters: [
313
- Parameters.resourceGroupName,
314
- Parameters.subscriptionId
315
- ],
316
- queryParameters: [
317
- Parameters.apiVersion
318
- ],
319
- headerParameters: [
320
- Parameters.acceptLanguage
321
- ],
322
- responses: {
323
- 200: {
324
- bodyMapper: Mappers.ApplianceDefinitionListResult
325
- },
326
- default: {
327
- bodyMapper: Mappers.ErrorResponse
328
- }
329
- },
330
- serializer
331
- };
332
-
333
- const getByIdOperationSpec: msRest.OperationSpec = {
334
- httpMethod: "GET",
335
- path: "{applianceDefinitionId}",
336
- urlParameters: [
337
- Parameters.applianceDefinitionId
338
- ],
339
- queryParameters: [
340
- Parameters.apiVersion
341
- ],
342
- headerParameters: [
343
- Parameters.acceptLanguage
344
- ],
345
- responses: {
346
- 200: {
347
- bodyMapper: Mappers.ApplianceDefinition
348
- },
349
- 404: {},
350
- default: {
351
- bodyMapper: Mappers.ErrorResponse
352
- }
353
- },
354
- serializer
355
- };
356
-
357
- const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
358
- httpMethod: "DELETE",
359
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applianceDefinitions/{applianceDefinitionName}",
360
- urlParameters: [
361
- Parameters.resourceGroupName,
362
- Parameters.applianceDefinitionName,
363
- Parameters.subscriptionId
364
- ],
365
- queryParameters: [
366
- Parameters.apiVersion
367
- ],
368
- headerParameters: [
369
- Parameters.acceptLanguage
370
- ],
371
- responses: {
372
- 200: {},
373
- 202: {},
374
- 204: {},
375
- default: {
376
- bodyMapper: Mappers.ErrorResponse
377
- }
378
- },
379
- serializer
380
- };
381
-
382
- const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
383
- httpMethod: "PUT",
384
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applianceDefinitions/{applianceDefinitionName}",
385
- urlParameters: [
386
- Parameters.resourceGroupName,
387
- Parameters.applianceDefinitionName,
388
- Parameters.subscriptionId
389
- ],
390
- queryParameters: [
391
- Parameters.apiVersion
392
- ],
393
- headerParameters: [
394
- Parameters.acceptLanguage
395
- ],
396
- requestBody: {
397
- parameterPath: "parameters",
398
- mapper: {
399
- ...Mappers.ApplianceDefinition,
400
- required: true
401
- }
402
- },
403
- responses: {
404
- 200: {
405
- bodyMapper: Mappers.ApplianceDefinition
406
- },
407
- 201: {
408
- bodyMapper: Mappers.ApplianceDefinition
409
- },
410
- default: {
411
- bodyMapper: Mappers.ErrorResponse
412
- }
413
- },
414
- serializer
415
- };
416
-
417
- const beginDeleteByIdOperationSpec: msRest.OperationSpec = {
418
- httpMethod: "DELETE",
419
- path: "{applianceDefinitionId}",
420
- urlParameters: [
421
- Parameters.applianceDefinitionId
422
- ],
423
- queryParameters: [
424
- Parameters.apiVersion
425
- ],
426
- headerParameters: [
427
- Parameters.acceptLanguage
428
- ],
429
- responses: {
430
- 200: {},
431
- 202: {},
432
- 204: {},
433
- default: {
434
- bodyMapper: Mappers.ErrorResponse
435
- }
436
- },
437
- serializer
438
- };
439
-
440
- const beginCreateOrUpdateByIdOperationSpec: msRest.OperationSpec = {
441
- httpMethod: "PUT",
442
- path: "{applianceDefinitionId}",
443
- urlParameters: [
444
- Parameters.applianceDefinitionId
445
- ],
446
- queryParameters: [
447
- Parameters.apiVersion
448
- ],
449
- headerParameters: [
450
- Parameters.acceptLanguage
451
- ],
452
- requestBody: {
453
- parameterPath: "parameters",
454
- mapper: {
455
- ...Mappers.ApplianceDefinition,
456
- required: true
457
- }
458
- },
459
- responses: {
460
- 200: {
461
- bodyMapper: Mappers.ApplianceDefinition
462
- },
463
- 201: {
464
- bodyMapper: Mappers.ApplianceDefinition
465
- },
466
- default: {
467
- bodyMapper: Mappers.ErrorResponse
468
- }
469
- },
470
- serializer
471
- };
472
-
473
- const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
474
- httpMethod: "GET",
475
- baseUrl: "https://management.azure.com",
476
- path: "{nextLink}",
477
- urlParameters: [
478
- Parameters.nextPageLink
479
- ],
480
- headerParameters: [
481
- Parameters.acceptLanguage
482
- ],
483
- responses: {
484
- 200: {
485
- bodyMapper: Mappers.ApplianceDefinitionListResult
486
- },
487
- default: {
488
- bodyMapper: Mappers.ErrorResponse
489
- }
490
- },
491
- serializer
492
- };