@azure/arm-azurestack 1.1.0 → 3.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.
- package/CHANGELOG.md +11 -0
- package/{LICENSE.txt → LICENSE} +2 -2
- package/README.md +75 -73
- package/dist/index.js +3000 -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/azureStackManagementClient.d.ts +24 -0
- package/dist-esm/src/azureStackManagementClient.d.ts.map +1 -0
- package/dist-esm/src/azureStackManagementClient.js +57 -0
- package/dist-esm/src/azureStackManagementClient.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/models/index.d.ts +854 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +55 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +37 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +779 -377
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +20 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +163 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/cloudManifestFile.d.ts +24 -0
- package/dist-esm/src/operations/cloudManifestFile.d.ts.map +1 -0
- package/dist-esm/src/operations/cloudManifestFile.js +70 -0
- package/dist-esm/src/operations/cloudManifestFile.js.map +1 -0
- package/dist-esm/src/operations/customerSubscriptions.d.ts +63 -0
- package/dist-esm/src/operations/customerSubscriptions.d.ts.map +1 -0
- package/dist-esm/src/operations/customerSubscriptions.js +241 -0
- package/dist-esm/src/operations/customerSubscriptions.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +3 -1
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +6 -6
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/linkedSubscriptions.d.ts +83 -0
- package/dist-esm/src/operations/linkedSubscriptions.d.ts.map +1 -0
- package/dist-esm/src/operations/linkedSubscriptions.js +359 -0
- package/dist-esm/src/operations/linkedSubscriptions.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/products.d.ts +78 -0
- package/dist-esm/src/operations/products.d.ts.map +1 -0
- package/dist-esm/src/operations/products.js +303 -0
- package/dist-esm/src/operations/products.js.map +1 -0
- package/dist-esm/src/operations/registrations.d.ts +97 -0
- package/dist-esm/src/operations/registrations.d.ts.map +1 -0
- package/dist-esm/src/operations/registrations.js +416 -0
- package/dist-esm/src/operations/registrations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/cloudManifestFile.d.ts +16 -0
- package/dist-esm/src/operationsInterfaces/cloudManifestFile.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/cloudManifestFile.js +9 -0
- package/dist-esm/src/operationsInterfaces/cloudManifestFile.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/customerSubscriptions.d.ts +38 -0
- package/dist-esm/src/operationsInterfaces/customerSubscriptions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/customerSubscriptions.js +9 -0
- package/dist-esm/src/operationsInterfaces/customerSubscriptions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +7 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +14 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/linkedSubscriptions.d.ts +47 -0
- package/dist-esm/src/operationsInterfaces/linkedSubscriptions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/linkedSubscriptions.js +9 -0
- package/dist-esm/src/operationsInterfaces/linkedSubscriptions.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/products.d.ts +53 -0
- package/dist-esm/src/operationsInterfaces/products.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/products.js +9 -0
- package/dist-esm/src/operationsInterfaces/products.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/registrations.d.ts +61 -0
- package/dist-esm/src/operationsInterfaces/registrations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/registrations.js +9 -0
- package/dist-esm/src/operationsInterfaces/registrations.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +4 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +43 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +68 -34
- package/review/arm-azurestack.api.md +695 -0
- package/rollup.config.js +184 -27
- package/src/azureStackManagementClient.ts +100 -0
- package/src/index.ts +12 -0
- package/src/models/index.ts +981 -0
- package/{lib → src}/models/mappers.ts +809 -377
- package/src/models/parameters.ts +192 -0
- package/src/operations/cloudManifestFile.ts +93 -0
- package/src/operations/customerSubscriptions.ts +317 -0
- package/{lib → src}/operations/index.ts +6 -6
- package/src/operations/linkedSubscriptions.ts +450 -0
- package/src/operations/operations.ts +137 -0
- package/src/operations/products.ts +403 -0
- package/src/operations/registrations.ts +521 -0
- package/src/operationsInterfaces/cloudManifestFile.ts +34 -0
- package/src/operationsInterfaces/customerSubscriptions.ts +75 -0
- package/src/operationsInterfaces/index.ts +14 -0
- package/src/operationsInterfaces/linkedSubscriptions.ts +91 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/products.ts +104 -0
- package/src/operationsInterfaces/registrations.ts +116 -0
- package/tsconfig.json +4 -4
- package/types/arm-azurestack.d.ts +1206 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-azurestack.js +0 -1844
- package/dist/arm-azurestack.js.map +0 -1
- package/dist/arm-azurestack.min.js +0 -1
- package/dist/arm-azurestack.min.js.map +0 -1
- package/esm/azureStackManagementClient.d.ts +0 -22
- package/esm/azureStackManagementClient.d.ts.map +0 -1
- package/esm/azureStackManagementClient.js +0 -37
- package/esm/azureStackManagementClient.js.map +0 -1
- package/esm/azureStackManagementClientContext.d.ts +0 -17
- package/esm/azureStackManagementClientContext.d.ts.map +0 -1
- package/esm/azureStackManagementClientContext.js +0 -57
- package/esm/azureStackManagementClientContext.js.map +0 -1
- package/esm/models/customerSubscriptionsMappers.d.ts +0 -2
- package/esm/models/customerSubscriptionsMappers.d.ts.map +0 -1
- package/esm/models/customerSubscriptionsMappers.js +0 -11
- package/esm/models/customerSubscriptionsMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -957
- 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 -27
- package/esm/models/mappers.d.ts.map +0 -1
- 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 -10
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -92
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/productsMappers.d.ts +0 -2
- package/esm/models/productsMappers.d.ts.map +0 -1
- package/esm/models/productsMappers.js +0 -11
- package/esm/models/productsMappers.js.map +0 -1
- package/esm/models/registrationsMappers.d.ts +0 -2
- package/esm/models/registrationsMappers.d.ts.map +0 -1
- package/esm/models/registrationsMappers.js +0 -11
- package/esm/models/registrationsMappers.js.map +0 -1
- package/esm/operations/customerSubscriptions.d.ts +0 -127
- package/esm/operations/customerSubscriptions.d.ts.map +0 -1
- package/esm/operations/customerSubscriptions.js +0 -188
- package/esm/operations/customerSubscriptions.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- 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/products.d.ts +0 -100
- package/esm/operations/products.d.ts.map +0 -1
- package/esm/operations/products.js +0 -150
- package/esm/operations/products.js.map +0 -1
- package/esm/operations/registrations.d.ts +0 -160
- package/esm/operations/registrations.d.ts.map +0 -1
- package/esm/operations/registrations.js +0 -250
- package/esm/operations/registrations.js.map +0 -1
- package/lib/azureStackManagementClient.ts +0 -49
- package/lib/azureStackManagementClientContext.ts +0 -63
- package/lib/models/customerSubscriptionsMappers.ts +0 -26
- package/lib/models/index.ts +0 -1011
- package/lib/models/operationsMappers.ts +0 -17
- package/lib/models/parameters.ts +0 -94
- package/lib/models/productsMappers.ts +0 -29
- package/lib/models/registrationsMappers.ts +0 -28
- package/lib/operations/customerSubscriptions.ts +0 -332
- package/lib/operations/operations.ts +0 -123
- package/lib/operations/products.ts +0 -260
- package/lib/operations/registrations.ts +0 -440
|
@@ -1,260 +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/productsMappers";
|
|
14
|
-
import * as Parameters from "../models/parameters";
|
|
15
|
-
import { AzureStackManagementClientContext } from "../azureStackManagementClientContext";
|
|
16
|
-
|
|
17
|
-
/** Class representing a Products. */
|
|
18
|
-
export class Products {
|
|
19
|
-
private readonly client: AzureStackManagementClientContext;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Create a Products.
|
|
23
|
-
* @param {AzureStackManagementClientContext} client Reference to the service client.
|
|
24
|
-
*/
|
|
25
|
-
constructor(client: AzureStackManagementClientContext) {
|
|
26
|
-
this.client = client;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Returns a list of products.
|
|
31
|
-
* @param resourceGroup Name of the resource group.
|
|
32
|
-
* @param registrationName Name of the Azure Stack registration.
|
|
33
|
-
* @param [options] The optional parameters
|
|
34
|
-
* @returns Promise<Models.ProductsListResponse>
|
|
35
|
-
*/
|
|
36
|
-
list(resourceGroup: string, registrationName: string, options?: msRest.RequestOptionsBase): Promise<Models.ProductsListResponse>;
|
|
37
|
-
/**
|
|
38
|
-
* @param resourceGroup Name of the resource group.
|
|
39
|
-
* @param registrationName Name of the Azure Stack registration.
|
|
40
|
-
* @param callback The callback
|
|
41
|
-
*/
|
|
42
|
-
list(resourceGroup: string, registrationName: string, callback: msRest.ServiceCallback<Models.ProductList>): void;
|
|
43
|
-
/**
|
|
44
|
-
* @param resourceGroup Name of the resource group.
|
|
45
|
-
* @param registrationName Name of the Azure Stack registration.
|
|
46
|
-
* @param options The optional parameters
|
|
47
|
-
* @param callback The callback
|
|
48
|
-
*/
|
|
49
|
-
list(resourceGroup: string, registrationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ProductList>): void;
|
|
50
|
-
list(resourceGroup: string, registrationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ProductList>, callback?: msRest.ServiceCallback<Models.ProductList>): Promise<Models.ProductsListResponse> {
|
|
51
|
-
return this.client.sendOperationRequest(
|
|
52
|
-
{
|
|
53
|
-
resourceGroup,
|
|
54
|
-
registrationName,
|
|
55
|
-
options
|
|
56
|
-
},
|
|
57
|
-
listOperationSpec,
|
|
58
|
-
callback) as Promise<Models.ProductsListResponse>;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Returns the specified product.
|
|
63
|
-
* @param resourceGroup Name of the resource group.
|
|
64
|
-
* @param registrationName Name of the Azure Stack registration.
|
|
65
|
-
* @param productName Name of the product.
|
|
66
|
-
* @param [options] The optional parameters
|
|
67
|
-
* @returns Promise<Models.ProductsGetResponse>
|
|
68
|
-
*/
|
|
69
|
-
get(resourceGroup: string, registrationName: string, productName: string, options?: msRest.RequestOptionsBase): Promise<Models.ProductsGetResponse>;
|
|
70
|
-
/**
|
|
71
|
-
* @param resourceGroup Name of the resource group.
|
|
72
|
-
* @param registrationName Name of the Azure Stack registration.
|
|
73
|
-
* @param productName Name of the product.
|
|
74
|
-
* @param callback The callback
|
|
75
|
-
*/
|
|
76
|
-
get(resourceGroup: string, registrationName: string, productName: string, callback: msRest.ServiceCallback<Models.Product>): void;
|
|
77
|
-
/**
|
|
78
|
-
* @param resourceGroup Name of the resource group.
|
|
79
|
-
* @param registrationName Name of the Azure Stack registration.
|
|
80
|
-
* @param productName Name of the product.
|
|
81
|
-
* @param options The optional parameters
|
|
82
|
-
* @param callback The callback
|
|
83
|
-
*/
|
|
84
|
-
get(resourceGroup: string, registrationName: string, productName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Product>): void;
|
|
85
|
-
get(resourceGroup: string, registrationName: string, productName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Product>, callback?: msRest.ServiceCallback<Models.Product>): Promise<Models.ProductsGetResponse> {
|
|
86
|
-
return this.client.sendOperationRequest(
|
|
87
|
-
{
|
|
88
|
-
resourceGroup,
|
|
89
|
-
registrationName,
|
|
90
|
-
productName,
|
|
91
|
-
options
|
|
92
|
-
},
|
|
93
|
-
getOperationSpec,
|
|
94
|
-
callback) as Promise<Models.ProductsGetResponse>;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* Returns the extended properties of a product.
|
|
99
|
-
* @param resourceGroup Name of the resource group.
|
|
100
|
-
* @param registrationName Name of the Azure Stack registration.
|
|
101
|
-
* @param productName Name of the product.
|
|
102
|
-
* @param [options] The optional parameters
|
|
103
|
-
* @returns Promise<Models.ProductsListDetailsResponse>
|
|
104
|
-
*/
|
|
105
|
-
listDetails(resourceGroup: string, registrationName: string, productName: string, options?: msRest.RequestOptionsBase): Promise<Models.ProductsListDetailsResponse>;
|
|
106
|
-
/**
|
|
107
|
-
* @param resourceGroup Name of the resource group.
|
|
108
|
-
* @param registrationName Name of the Azure Stack registration.
|
|
109
|
-
* @param productName Name of the product.
|
|
110
|
-
* @param callback The callback
|
|
111
|
-
*/
|
|
112
|
-
listDetails(resourceGroup: string, registrationName: string, productName: string, callback: msRest.ServiceCallback<Models.ExtendedProduct>): void;
|
|
113
|
-
/**
|
|
114
|
-
* @param resourceGroup Name of the resource group.
|
|
115
|
-
* @param registrationName Name of the Azure Stack registration.
|
|
116
|
-
* @param productName Name of the product.
|
|
117
|
-
* @param options The optional parameters
|
|
118
|
-
* @param callback The callback
|
|
119
|
-
*/
|
|
120
|
-
listDetails(resourceGroup: string, registrationName: string, productName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ExtendedProduct>): void;
|
|
121
|
-
listDetails(resourceGroup: string, registrationName: string, productName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ExtendedProduct>, callback?: msRest.ServiceCallback<Models.ExtendedProduct>): Promise<Models.ProductsListDetailsResponse> {
|
|
122
|
-
return this.client.sendOperationRequest(
|
|
123
|
-
{
|
|
124
|
-
resourceGroup,
|
|
125
|
-
registrationName,
|
|
126
|
-
productName,
|
|
127
|
-
options
|
|
128
|
-
},
|
|
129
|
-
listDetailsOperationSpec,
|
|
130
|
-
callback) as Promise<Models.ProductsListDetailsResponse>;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* Returns a list of products.
|
|
135
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
136
|
-
* @param [options] The optional parameters
|
|
137
|
-
* @returns Promise<Models.ProductsListNextResponse>
|
|
138
|
-
*/
|
|
139
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.ProductsListNextResponse>;
|
|
140
|
-
/**
|
|
141
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
142
|
-
* @param callback The callback
|
|
143
|
-
*/
|
|
144
|
-
listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.ProductList>): void;
|
|
145
|
-
/**
|
|
146
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
147
|
-
* @param options The optional parameters
|
|
148
|
-
* @param callback The callback
|
|
149
|
-
*/
|
|
150
|
-
listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ProductList>): void;
|
|
151
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ProductList>, callback?: msRest.ServiceCallback<Models.ProductList>): Promise<Models.ProductsListNextResponse> {
|
|
152
|
-
return this.client.sendOperationRequest(
|
|
153
|
-
{
|
|
154
|
-
nextPageLink,
|
|
155
|
-
options
|
|
156
|
-
},
|
|
157
|
-
listNextOperationSpec,
|
|
158
|
-
callback) as Promise<Models.ProductsListNextResponse>;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
// Operation Specifications
|
|
163
|
-
const serializer = new msRest.Serializer(Mappers);
|
|
164
|
-
const listOperationSpec: msRest.OperationSpec = {
|
|
165
|
-
httpMethod: "GET",
|
|
166
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products",
|
|
167
|
-
urlParameters: [
|
|
168
|
-
Parameters.subscriptionId,
|
|
169
|
-
Parameters.resourceGroup,
|
|
170
|
-
Parameters.registrationName
|
|
171
|
-
],
|
|
172
|
-
queryParameters: [
|
|
173
|
-
Parameters.apiVersion
|
|
174
|
-
],
|
|
175
|
-
headerParameters: [
|
|
176
|
-
Parameters.acceptLanguage
|
|
177
|
-
],
|
|
178
|
-
responses: {
|
|
179
|
-
200: {
|
|
180
|
-
bodyMapper: Mappers.ProductList
|
|
181
|
-
},
|
|
182
|
-
default: {
|
|
183
|
-
bodyMapper: Mappers.ErrorResponse
|
|
184
|
-
}
|
|
185
|
-
},
|
|
186
|
-
serializer
|
|
187
|
-
};
|
|
188
|
-
|
|
189
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
190
|
-
httpMethod: "GET",
|
|
191
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/{productName}",
|
|
192
|
-
urlParameters: [
|
|
193
|
-
Parameters.subscriptionId,
|
|
194
|
-
Parameters.resourceGroup,
|
|
195
|
-
Parameters.registrationName,
|
|
196
|
-
Parameters.productName
|
|
197
|
-
],
|
|
198
|
-
queryParameters: [
|
|
199
|
-
Parameters.apiVersion
|
|
200
|
-
],
|
|
201
|
-
headerParameters: [
|
|
202
|
-
Parameters.acceptLanguage
|
|
203
|
-
],
|
|
204
|
-
responses: {
|
|
205
|
-
200: {
|
|
206
|
-
bodyMapper: Mappers.Product
|
|
207
|
-
},
|
|
208
|
-
default: {
|
|
209
|
-
bodyMapper: Mappers.ErrorResponse
|
|
210
|
-
}
|
|
211
|
-
},
|
|
212
|
-
serializer
|
|
213
|
-
};
|
|
214
|
-
|
|
215
|
-
const listDetailsOperationSpec: msRest.OperationSpec = {
|
|
216
|
-
httpMethod: "POST",
|
|
217
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/{productName}/listDetails",
|
|
218
|
-
urlParameters: [
|
|
219
|
-
Parameters.subscriptionId,
|
|
220
|
-
Parameters.resourceGroup,
|
|
221
|
-
Parameters.registrationName,
|
|
222
|
-
Parameters.productName
|
|
223
|
-
],
|
|
224
|
-
queryParameters: [
|
|
225
|
-
Parameters.apiVersion
|
|
226
|
-
],
|
|
227
|
-
headerParameters: [
|
|
228
|
-
Parameters.acceptLanguage
|
|
229
|
-
],
|
|
230
|
-
responses: {
|
|
231
|
-
200: {
|
|
232
|
-
bodyMapper: Mappers.ExtendedProduct
|
|
233
|
-
},
|
|
234
|
-
default: {
|
|
235
|
-
bodyMapper: Mappers.CloudError
|
|
236
|
-
}
|
|
237
|
-
},
|
|
238
|
-
serializer
|
|
239
|
-
};
|
|
240
|
-
|
|
241
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
242
|
-
httpMethod: "GET",
|
|
243
|
-
baseUrl: "https://management.azure.com",
|
|
244
|
-
path: "{nextLink}",
|
|
245
|
-
urlParameters: [
|
|
246
|
-
Parameters.nextPageLink
|
|
247
|
-
],
|
|
248
|
-
headerParameters: [
|
|
249
|
-
Parameters.acceptLanguage
|
|
250
|
-
],
|
|
251
|
-
responses: {
|
|
252
|
-
200: {
|
|
253
|
-
bodyMapper: Mappers.ProductList
|
|
254
|
-
},
|
|
255
|
-
default: {
|
|
256
|
-
bodyMapper: Mappers.ErrorResponse
|
|
257
|
-
}
|
|
258
|
-
},
|
|
259
|
-
serializer
|
|
260
|
-
};
|
|
@@ -1,440 +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/registrationsMappers";
|
|
14
|
-
import * as Parameters from "../models/parameters";
|
|
15
|
-
import { AzureStackManagementClientContext } from "../azureStackManagementClientContext";
|
|
16
|
-
|
|
17
|
-
/** Class representing a Registrations. */
|
|
18
|
-
export class Registrations {
|
|
19
|
-
private readonly client: AzureStackManagementClientContext;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Create a Registrations.
|
|
23
|
-
* @param {AzureStackManagementClientContext} client Reference to the service client.
|
|
24
|
-
*/
|
|
25
|
-
constructor(client: AzureStackManagementClientContext) {
|
|
26
|
-
this.client = client;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Returns a list of all registrations.
|
|
31
|
-
* @param resourceGroup Name of the resource group.
|
|
32
|
-
* @param [options] The optional parameters
|
|
33
|
-
* @returns Promise<Models.RegistrationsListResponse>
|
|
34
|
-
*/
|
|
35
|
-
list(resourceGroup: string, options?: msRest.RequestOptionsBase): Promise<Models.RegistrationsListResponse>;
|
|
36
|
-
/**
|
|
37
|
-
* @param resourceGroup Name of the resource group.
|
|
38
|
-
* @param callback The callback
|
|
39
|
-
*/
|
|
40
|
-
list(resourceGroup: string, callback: msRest.ServiceCallback<Models.RegistrationList>): void;
|
|
41
|
-
/**
|
|
42
|
-
* @param resourceGroup Name of the resource group.
|
|
43
|
-
* @param options The optional parameters
|
|
44
|
-
* @param callback The callback
|
|
45
|
-
*/
|
|
46
|
-
list(resourceGroup: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.RegistrationList>): void;
|
|
47
|
-
list(resourceGroup: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.RegistrationList>, callback?: msRest.ServiceCallback<Models.RegistrationList>): Promise<Models.RegistrationsListResponse> {
|
|
48
|
-
return this.client.sendOperationRequest(
|
|
49
|
-
{
|
|
50
|
-
resourceGroup,
|
|
51
|
-
options
|
|
52
|
-
},
|
|
53
|
-
listOperationSpec,
|
|
54
|
-
callback) as Promise<Models.RegistrationsListResponse>;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Returns the properties of an Azure Stack registration.
|
|
59
|
-
* @param resourceGroup Name of the resource group.
|
|
60
|
-
* @param registrationName Name of the Azure Stack registration.
|
|
61
|
-
* @param [options] The optional parameters
|
|
62
|
-
* @returns Promise<Models.RegistrationsGetResponse>
|
|
63
|
-
*/
|
|
64
|
-
get(resourceGroup: string, registrationName: string, options?: msRest.RequestOptionsBase): Promise<Models.RegistrationsGetResponse>;
|
|
65
|
-
/**
|
|
66
|
-
* @param resourceGroup Name of the resource group.
|
|
67
|
-
* @param registrationName Name of the Azure Stack registration.
|
|
68
|
-
* @param callback The callback
|
|
69
|
-
*/
|
|
70
|
-
get(resourceGroup: string, registrationName: string, callback: msRest.ServiceCallback<Models.Registration>): void;
|
|
71
|
-
/**
|
|
72
|
-
* @param resourceGroup Name of the resource group.
|
|
73
|
-
* @param registrationName Name of the Azure Stack registration.
|
|
74
|
-
* @param options The optional parameters
|
|
75
|
-
* @param callback The callback
|
|
76
|
-
*/
|
|
77
|
-
get(resourceGroup: string, registrationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Registration>): void;
|
|
78
|
-
get(resourceGroup: string, registrationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Registration>, callback?: msRest.ServiceCallback<Models.Registration>): Promise<Models.RegistrationsGetResponse> {
|
|
79
|
-
return this.client.sendOperationRequest(
|
|
80
|
-
{
|
|
81
|
-
resourceGroup,
|
|
82
|
-
registrationName,
|
|
83
|
-
options
|
|
84
|
-
},
|
|
85
|
-
getOperationSpec,
|
|
86
|
-
callback) as Promise<Models.RegistrationsGetResponse>;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* Delete the requested Azure Stack registration.
|
|
91
|
-
* @param resourceGroup Name of the resource group.
|
|
92
|
-
* @param registrationName Name of the Azure Stack registration.
|
|
93
|
-
* @param [options] The optional parameters
|
|
94
|
-
* @returns Promise<msRest.RestResponse>
|
|
95
|
-
*/
|
|
96
|
-
deleteMethod(resourceGroup: string, registrationName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
|
|
97
|
-
/**
|
|
98
|
-
* @param resourceGroup Name of the resource group.
|
|
99
|
-
* @param registrationName Name of the Azure Stack registration.
|
|
100
|
-
* @param callback The callback
|
|
101
|
-
*/
|
|
102
|
-
deleteMethod(resourceGroup: string, registrationName: string, callback: msRest.ServiceCallback<void>): void;
|
|
103
|
-
/**
|
|
104
|
-
* @param resourceGroup Name of the resource group.
|
|
105
|
-
* @param registrationName Name of the Azure Stack registration.
|
|
106
|
-
* @param options The optional parameters
|
|
107
|
-
* @param callback The callback
|
|
108
|
-
*/
|
|
109
|
-
deleteMethod(resourceGroup: string, registrationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
|
|
110
|
-
deleteMethod(resourceGroup: string, registrationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<void>, callback?: msRest.ServiceCallback<void>): Promise<msRest.RestResponse> {
|
|
111
|
-
return this.client.sendOperationRequest(
|
|
112
|
-
{
|
|
113
|
-
resourceGroup,
|
|
114
|
-
registrationName,
|
|
115
|
-
options
|
|
116
|
-
},
|
|
117
|
-
deleteMethodOperationSpec,
|
|
118
|
-
callback);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* Create or update an Azure Stack registration.
|
|
123
|
-
* @param resourceGroup Name of the resource group.
|
|
124
|
-
* @param registrationName Name of the Azure Stack registration.
|
|
125
|
-
* @param token Registration token
|
|
126
|
-
* @param [options] The optional parameters
|
|
127
|
-
* @returns Promise<Models.RegistrationsCreateOrUpdateResponse>
|
|
128
|
-
*/
|
|
129
|
-
createOrUpdate(resourceGroup: string, registrationName: string, token: Models.RegistrationParameter, options?: msRest.RequestOptionsBase): Promise<Models.RegistrationsCreateOrUpdateResponse>;
|
|
130
|
-
/**
|
|
131
|
-
* @param resourceGroup Name of the resource group.
|
|
132
|
-
* @param registrationName Name of the Azure Stack registration.
|
|
133
|
-
* @param token Registration token
|
|
134
|
-
* @param callback The callback
|
|
135
|
-
*/
|
|
136
|
-
createOrUpdate(resourceGroup: string, registrationName: string, token: Models.RegistrationParameter, callback: msRest.ServiceCallback<Models.Registration>): void;
|
|
137
|
-
/**
|
|
138
|
-
* @param resourceGroup Name of the resource group.
|
|
139
|
-
* @param registrationName Name of the Azure Stack registration.
|
|
140
|
-
* @param token Registration token
|
|
141
|
-
* @param options The optional parameters
|
|
142
|
-
* @param callback The callback
|
|
143
|
-
*/
|
|
144
|
-
createOrUpdate(resourceGroup: string, registrationName: string, token: Models.RegistrationParameter, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Registration>): void;
|
|
145
|
-
createOrUpdate(resourceGroup: string, registrationName: string, token: Models.RegistrationParameter, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Registration>, callback?: msRest.ServiceCallback<Models.Registration>): Promise<Models.RegistrationsCreateOrUpdateResponse> {
|
|
146
|
-
return this.client.sendOperationRequest(
|
|
147
|
-
{
|
|
148
|
-
resourceGroup,
|
|
149
|
-
registrationName,
|
|
150
|
-
token,
|
|
151
|
-
options
|
|
152
|
-
},
|
|
153
|
-
createOrUpdateOperationSpec,
|
|
154
|
-
callback) as Promise<Models.RegistrationsCreateOrUpdateResponse>;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
/**
|
|
158
|
-
* Patch an Azure Stack registration.
|
|
159
|
-
* @param resourceGroup Name of the resource group.
|
|
160
|
-
* @param registrationName Name of the Azure Stack registration.
|
|
161
|
-
* @param token Registration token
|
|
162
|
-
* @param [options] The optional parameters
|
|
163
|
-
* @returns Promise<Models.RegistrationsUpdateResponse>
|
|
164
|
-
*/
|
|
165
|
-
update(resourceGroup: string, registrationName: string, token: Models.RegistrationParameter, options?: msRest.RequestOptionsBase): Promise<Models.RegistrationsUpdateResponse>;
|
|
166
|
-
/**
|
|
167
|
-
* @param resourceGroup Name of the resource group.
|
|
168
|
-
* @param registrationName Name of the Azure Stack registration.
|
|
169
|
-
* @param token Registration token
|
|
170
|
-
* @param callback The callback
|
|
171
|
-
*/
|
|
172
|
-
update(resourceGroup: string, registrationName: string, token: Models.RegistrationParameter, callback: msRest.ServiceCallback<Models.Registration>): void;
|
|
173
|
-
/**
|
|
174
|
-
* @param resourceGroup Name of the resource group.
|
|
175
|
-
* @param registrationName Name of the Azure Stack registration.
|
|
176
|
-
* @param token Registration token
|
|
177
|
-
* @param options The optional parameters
|
|
178
|
-
* @param callback The callback
|
|
179
|
-
*/
|
|
180
|
-
update(resourceGroup: string, registrationName: string, token: Models.RegistrationParameter, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Registration>): void;
|
|
181
|
-
update(resourceGroup: string, registrationName: string, token: Models.RegistrationParameter, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Registration>, callback?: msRest.ServiceCallback<Models.Registration>): Promise<Models.RegistrationsUpdateResponse> {
|
|
182
|
-
return this.client.sendOperationRequest(
|
|
183
|
-
{
|
|
184
|
-
resourceGroup,
|
|
185
|
-
registrationName,
|
|
186
|
-
token,
|
|
187
|
-
options
|
|
188
|
-
},
|
|
189
|
-
updateOperationSpec,
|
|
190
|
-
callback) as Promise<Models.RegistrationsUpdateResponse>;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* Returns Azure Stack Activation Key.
|
|
195
|
-
* @param resourceGroup Name of the resource group.
|
|
196
|
-
* @param registrationName Name of the Azure Stack registration.
|
|
197
|
-
* @param [options] The optional parameters
|
|
198
|
-
* @returns Promise<Models.RegistrationsGetActivationKeyResponse>
|
|
199
|
-
*/
|
|
200
|
-
getActivationKey(resourceGroup: string, registrationName: string, options?: msRest.RequestOptionsBase): Promise<Models.RegistrationsGetActivationKeyResponse>;
|
|
201
|
-
/**
|
|
202
|
-
* @param resourceGroup Name of the resource group.
|
|
203
|
-
* @param registrationName Name of the Azure Stack registration.
|
|
204
|
-
* @param callback The callback
|
|
205
|
-
*/
|
|
206
|
-
getActivationKey(resourceGroup: string, registrationName: string, callback: msRest.ServiceCallback<Models.ActivationKeyResult>): void;
|
|
207
|
-
/**
|
|
208
|
-
* @param resourceGroup Name of the resource group.
|
|
209
|
-
* @param registrationName Name of the Azure Stack registration.
|
|
210
|
-
* @param options The optional parameters
|
|
211
|
-
* @param callback The callback
|
|
212
|
-
*/
|
|
213
|
-
getActivationKey(resourceGroup: string, registrationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ActivationKeyResult>): void;
|
|
214
|
-
getActivationKey(resourceGroup: string, registrationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ActivationKeyResult>, callback?: msRest.ServiceCallback<Models.ActivationKeyResult>): Promise<Models.RegistrationsGetActivationKeyResponse> {
|
|
215
|
-
return this.client.sendOperationRequest(
|
|
216
|
-
{
|
|
217
|
-
resourceGroup,
|
|
218
|
-
registrationName,
|
|
219
|
-
options
|
|
220
|
-
},
|
|
221
|
-
getActivationKeyOperationSpec,
|
|
222
|
-
callback) as Promise<Models.RegistrationsGetActivationKeyResponse>;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
/**
|
|
226
|
-
* Returns a list of all registrations.
|
|
227
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
228
|
-
* @param [options] The optional parameters
|
|
229
|
-
* @returns Promise<Models.RegistrationsListNextResponse>
|
|
230
|
-
*/
|
|
231
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.RegistrationsListNextResponse>;
|
|
232
|
-
/**
|
|
233
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
234
|
-
* @param callback The callback
|
|
235
|
-
*/
|
|
236
|
-
listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.RegistrationList>): void;
|
|
237
|
-
/**
|
|
238
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
239
|
-
* @param options The optional parameters
|
|
240
|
-
* @param callback The callback
|
|
241
|
-
*/
|
|
242
|
-
listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.RegistrationList>): void;
|
|
243
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.RegistrationList>, callback?: msRest.ServiceCallback<Models.RegistrationList>): Promise<Models.RegistrationsListNextResponse> {
|
|
244
|
-
return this.client.sendOperationRequest(
|
|
245
|
-
{
|
|
246
|
-
nextPageLink,
|
|
247
|
-
options
|
|
248
|
-
},
|
|
249
|
-
listNextOperationSpec,
|
|
250
|
-
callback) as Promise<Models.RegistrationsListNextResponse>;
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
// Operation Specifications
|
|
255
|
-
const serializer = new msRest.Serializer(Mappers);
|
|
256
|
-
const listOperationSpec: msRest.OperationSpec = {
|
|
257
|
-
httpMethod: "GET",
|
|
258
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations",
|
|
259
|
-
urlParameters: [
|
|
260
|
-
Parameters.subscriptionId,
|
|
261
|
-
Parameters.resourceGroup
|
|
262
|
-
],
|
|
263
|
-
queryParameters: [
|
|
264
|
-
Parameters.apiVersion
|
|
265
|
-
],
|
|
266
|
-
headerParameters: [
|
|
267
|
-
Parameters.acceptLanguage
|
|
268
|
-
],
|
|
269
|
-
responses: {
|
|
270
|
-
200: {
|
|
271
|
-
bodyMapper: Mappers.RegistrationList
|
|
272
|
-
},
|
|
273
|
-
default: {
|
|
274
|
-
bodyMapper: Mappers.ErrorResponse
|
|
275
|
-
}
|
|
276
|
-
},
|
|
277
|
-
serializer
|
|
278
|
-
};
|
|
279
|
-
|
|
280
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
281
|
-
httpMethod: "GET",
|
|
282
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}",
|
|
283
|
-
urlParameters: [
|
|
284
|
-
Parameters.subscriptionId,
|
|
285
|
-
Parameters.resourceGroup,
|
|
286
|
-
Parameters.registrationName
|
|
287
|
-
],
|
|
288
|
-
queryParameters: [
|
|
289
|
-
Parameters.apiVersion
|
|
290
|
-
],
|
|
291
|
-
headerParameters: [
|
|
292
|
-
Parameters.acceptLanguage
|
|
293
|
-
],
|
|
294
|
-
responses: {
|
|
295
|
-
200: {
|
|
296
|
-
bodyMapper: Mappers.Registration
|
|
297
|
-
},
|
|
298
|
-
default: {
|
|
299
|
-
bodyMapper: Mappers.ErrorResponse
|
|
300
|
-
}
|
|
301
|
-
},
|
|
302
|
-
serializer
|
|
303
|
-
};
|
|
304
|
-
|
|
305
|
-
const deleteMethodOperationSpec: msRest.OperationSpec = {
|
|
306
|
-
httpMethod: "DELETE",
|
|
307
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}",
|
|
308
|
-
urlParameters: [
|
|
309
|
-
Parameters.subscriptionId,
|
|
310
|
-
Parameters.resourceGroup,
|
|
311
|
-
Parameters.registrationName
|
|
312
|
-
],
|
|
313
|
-
queryParameters: [
|
|
314
|
-
Parameters.apiVersion
|
|
315
|
-
],
|
|
316
|
-
headerParameters: [
|
|
317
|
-
Parameters.acceptLanguage
|
|
318
|
-
],
|
|
319
|
-
responses: {
|
|
320
|
-
200: {},
|
|
321
|
-
204: {},
|
|
322
|
-
default: {
|
|
323
|
-
bodyMapper: Mappers.ErrorResponse
|
|
324
|
-
}
|
|
325
|
-
},
|
|
326
|
-
serializer
|
|
327
|
-
};
|
|
328
|
-
|
|
329
|
-
const createOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
330
|
-
httpMethod: "PUT",
|
|
331
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}",
|
|
332
|
-
urlParameters: [
|
|
333
|
-
Parameters.subscriptionId,
|
|
334
|
-
Parameters.resourceGroup,
|
|
335
|
-
Parameters.registrationName
|
|
336
|
-
],
|
|
337
|
-
queryParameters: [
|
|
338
|
-
Parameters.apiVersion
|
|
339
|
-
],
|
|
340
|
-
headerParameters: [
|
|
341
|
-
Parameters.acceptLanguage
|
|
342
|
-
],
|
|
343
|
-
requestBody: {
|
|
344
|
-
parameterPath: "token",
|
|
345
|
-
mapper: {
|
|
346
|
-
...Mappers.RegistrationParameter,
|
|
347
|
-
required: true
|
|
348
|
-
}
|
|
349
|
-
},
|
|
350
|
-
responses: {
|
|
351
|
-
200: {
|
|
352
|
-
bodyMapper: Mappers.Registration
|
|
353
|
-
},
|
|
354
|
-
201: {
|
|
355
|
-
bodyMapper: Mappers.Registration
|
|
356
|
-
},
|
|
357
|
-
default: {
|
|
358
|
-
bodyMapper: Mappers.CloudError
|
|
359
|
-
}
|
|
360
|
-
},
|
|
361
|
-
serializer
|
|
362
|
-
};
|
|
363
|
-
|
|
364
|
-
const updateOperationSpec: msRest.OperationSpec = {
|
|
365
|
-
httpMethod: "PATCH",
|
|
366
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}",
|
|
367
|
-
urlParameters: [
|
|
368
|
-
Parameters.subscriptionId,
|
|
369
|
-
Parameters.resourceGroup,
|
|
370
|
-
Parameters.registrationName
|
|
371
|
-
],
|
|
372
|
-
queryParameters: [
|
|
373
|
-
Parameters.apiVersion
|
|
374
|
-
],
|
|
375
|
-
headerParameters: [
|
|
376
|
-
Parameters.acceptLanguage
|
|
377
|
-
],
|
|
378
|
-
requestBody: {
|
|
379
|
-
parameterPath: "token",
|
|
380
|
-
mapper: {
|
|
381
|
-
...Mappers.RegistrationParameter,
|
|
382
|
-
required: true
|
|
383
|
-
}
|
|
384
|
-
},
|
|
385
|
-
responses: {
|
|
386
|
-
200: {
|
|
387
|
-
bodyMapper: Mappers.Registration
|
|
388
|
-
},
|
|
389
|
-
default: {
|
|
390
|
-
bodyMapper: Mappers.ErrorResponse
|
|
391
|
-
}
|
|
392
|
-
},
|
|
393
|
-
serializer
|
|
394
|
-
};
|
|
395
|
-
|
|
396
|
-
const getActivationKeyOperationSpec: msRest.OperationSpec = {
|
|
397
|
-
httpMethod: "POST",
|
|
398
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/getactivationkey",
|
|
399
|
-
urlParameters: [
|
|
400
|
-
Parameters.subscriptionId,
|
|
401
|
-
Parameters.resourceGroup,
|
|
402
|
-
Parameters.registrationName
|
|
403
|
-
],
|
|
404
|
-
queryParameters: [
|
|
405
|
-
Parameters.apiVersion
|
|
406
|
-
],
|
|
407
|
-
headerParameters: [
|
|
408
|
-
Parameters.acceptLanguage
|
|
409
|
-
],
|
|
410
|
-
responses: {
|
|
411
|
-
200: {
|
|
412
|
-
bodyMapper: Mappers.ActivationKeyResult
|
|
413
|
-
},
|
|
414
|
-
default: {
|
|
415
|
-
bodyMapper: Mappers.CloudError
|
|
416
|
-
}
|
|
417
|
-
},
|
|
418
|
-
serializer
|
|
419
|
-
};
|
|
420
|
-
|
|
421
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
422
|
-
httpMethod: "GET",
|
|
423
|
-
baseUrl: "https://management.azure.com",
|
|
424
|
-
path: "{nextLink}",
|
|
425
|
-
urlParameters: [
|
|
426
|
-
Parameters.nextPageLink
|
|
427
|
-
],
|
|
428
|
-
headerParameters: [
|
|
429
|
-
Parameters.acceptLanguage
|
|
430
|
-
],
|
|
431
|
-
responses: {
|
|
432
|
-
200: {
|
|
433
|
-
bodyMapper: Mappers.RegistrationList
|
|
434
|
-
},
|
|
435
|
-
default: {
|
|
436
|
-
bodyMapper: Mappers.ErrorResponse
|
|
437
|
-
}
|
|
438
|
-
},
|
|
439
|
-
serializer
|
|
440
|
-
};
|