Skip to content

Commit 98337a5

Browse files
author
SDKAuto
committed
CodeGen from PR 15864 in Azure/azure-rest-api-specs
Merge 7a3ef8b3787608dec68648704eab6a86ee266172 into 6223e02c7f87d0bd5878a0f79835860cb695c0c3
1 parent eb24323 commit 98337a5

File tree

6 files changed

+290
-5
lines changed

6 files changed

+290
-5
lines changed

sdk/signalr/arm-signalr/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"rollup-plugin-sourcemaps": "^0.4.2",
2828
"uglify-js": "^3.6.0"
2929
},
30-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/signalr/arm-signalr",
30+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/signalr/arm-signalr",
3131
"repository": {
3232
"type": "git",
3333
"url": "https://github.com/Azure/azure-sdk-for-js.git"

sdk/signalr/arm-signalr/src/models/index.ts

Lines changed: 105 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ export interface PrivateLinkResource extends ProxyResource {
454454
export interface RegenerateKeyParameters {
455455
/**
456456
* The keyType to regenerate. Must be either 'primary' or 'secondary'(case-insensitive). Possible
457-
* values include: 'Primary', 'Secondary'
457+
* values include: 'Primary', 'Secondary', 'Salt'
458458
*/
459459
keyType?: KeyType;
460460
}
@@ -768,6 +768,11 @@ export interface SignalRResource extends TrackedResource {
768768
* TLS settings.
769769
*/
770770
tls?: SignalRTlsSettings;
771+
/**
772+
* Deprecated.
773+
* **NOTE: This property will not be serialized. It can only be populated by the server.**
774+
*/
775+
readonly hostNamePrefix?: string;
771776
/**
772777
* List of the featureFlags.
773778
*
@@ -867,6 +872,75 @@ export interface SignalRUsage {
867872
unit?: string;
868873
}
869874

875+
/**
876+
* Describes scaling information of a sku.
877+
*/
878+
export interface SkuCapacity {
879+
/**
880+
* The lowest permitted capacity for this resource
881+
* **NOTE: This property will not be serialized. It can only be populated by the server.**
882+
*/
883+
readonly minimum?: number;
884+
/**
885+
* The highest permitted capacity for this resource
886+
* **NOTE: This property will not be serialized. It can only be populated by the server.**
887+
*/
888+
readonly maximum?: number;
889+
/**
890+
* The default capacity.
891+
* **NOTE: This property will not be serialized. It can only be populated by the server.**
892+
*/
893+
readonly default?: number;
894+
/**
895+
* Allows capacity value list.
896+
* **NOTE: This property will not be serialized. It can only be populated by the server.**
897+
*/
898+
readonly allowedValues?: number[];
899+
/**
900+
* The scale type applicable to the sku. Possible values include: 'None', 'Manual', 'Automatic'
901+
* **NOTE: This property will not be serialized. It can only be populated by the server.**
902+
*/
903+
readonly scaleType?: ScaleType;
904+
}
905+
906+
/**
907+
* Describes an available sku."
908+
*/
909+
export interface Sku {
910+
/**
911+
* The resource type that this object applies to
912+
* **NOTE: This property will not be serialized. It can only be populated by the server.**
913+
*/
914+
readonly resourceType?: string;
915+
/**
916+
* The exact set of keys that define this sku.
917+
* **NOTE: This property will not be serialized. It can only be populated by the server.**
918+
*/
919+
readonly sku?: ResourceSku;
920+
/**
921+
* Specifies the unit of the resource.
922+
* **NOTE: This property will not be serialized. It can only be populated by the server.**
923+
*/
924+
readonly capacity?: SkuCapacity;
925+
}
926+
927+
/**
928+
* The list skus operation response
929+
*/
930+
export interface SkuList {
931+
/**
932+
* The list of skus available for the resource.
933+
* **NOTE: This property will not be serialized. It can only be populated by the server.**
934+
*/
935+
readonly value?: Sku[];
936+
/**
937+
* The URL the client should use to fetch the next page (per server side paging).
938+
* It's null for now, added for future use.
939+
* **NOTE: This property will not be serialized. It can only be populated by the server.**
940+
*/
941+
readonly nextLink?: string;
942+
}
943+
870944
/**
871945
* The resource management error additional info.
872946
*/
@@ -1030,11 +1104,11 @@ export type FeatureFlags = 'ServiceMode' | 'EnableConnectivityLogs' | 'EnableMes
10301104

10311105
/**
10321106
* Defines values for KeyType.
1033-
* Possible values include: 'Primary', 'Secondary'
1107+
* Possible values include: 'Primary', 'Secondary', 'Salt'
10341108
* @readonly
10351109
* @enum {string}
10361110
*/
1037-
export type KeyType = 'Primary' | 'Secondary';
1111+
export type KeyType = 'Primary' | 'Secondary' | 'Salt';
10381112

10391113
/**
10401114
* Defines values for ManagedIdentityType.
@@ -1085,6 +1159,14 @@ export type PrivateLinkServiceConnectionStatus = 'Pending' | 'Approved' | 'Rejec
10851159
*/
10861160
export type SignalRSkuTier = 'Free' | 'Basic' | 'Standard' | 'Premium';
10871161

1162+
/**
1163+
* Defines values for ScaleType.
1164+
* Possible values include: 'None', 'Manual', 'Automatic'
1165+
* @readonly
1166+
* @enum {string}
1167+
*/
1168+
export type ScaleType = 'None' | 'Manual' | 'Automatic';
1169+
10881170
/**
10891171
* Defines values for UpstreamAuthType.
10901172
* Possible values include: 'None', 'ManagedIdentity'
@@ -1309,6 +1391,26 @@ export type SignalRRegenerateKeyResponse = SignalRKeys & {
13091391
};
13101392
};
13111393

1394+
/**
1395+
* Contains response data for the listSkus operation.
1396+
*/
1397+
export type SignalRListSkusResponse = SkuList & {
1398+
/**
1399+
* The underlying HTTP response.
1400+
*/
1401+
_response: msRest.HttpResponse & {
1402+
/**
1403+
* The response body as text (string format)
1404+
*/
1405+
bodyAsText: string;
1406+
1407+
/**
1408+
* The response body as parsed JSON or XML
1409+
*/
1410+
parsedBody: SkuList;
1411+
};
1412+
};
1413+
13121414
/**
13131415
* Contains response data for the beginCreateOrUpdate operation.
13141416
*/

sdk/signalr/arm-signalr/src/models/mappers.ts

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,6 +1179,13 @@ export const SignalRResource: msRest.CompositeMapper = {
11791179
className: "SignalRTlsSettings"
11801180
}
11811181
},
1182+
hostNamePrefix: {
1183+
readOnly: true,
1184+
serializedName: "properties.hostNamePrefix",
1185+
type: {
1186+
name: "String"
1187+
}
1188+
},
11821189
features: {
11831190
serializedName: "properties.features",
11841191
type: {
@@ -1321,6 +1328,119 @@ export const SignalRUsage: msRest.CompositeMapper = {
13211328
}
13221329
};
13231330

1331+
export const SkuCapacity: msRest.CompositeMapper = {
1332+
serializedName: "SkuCapacity",
1333+
type: {
1334+
name: "Composite",
1335+
className: "SkuCapacity",
1336+
modelProperties: {
1337+
minimum: {
1338+
readOnly: true,
1339+
serializedName: "minimum",
1340+
type: {
1341+
name: "Number"
1342+
}
1343+
},
1344+
maximum: {
1345+
readOnly: true,
1346+
serializedName: "maximum",
1347+
type: {
1348+
name: "Number"
1349+
}
1350+
},
1351+
default: {
1352+
readOnly: true,
1353+
serializedName: "default",
1354+
type: {
1355+
name: "Number"
1356+
}
1357+
},
1358+
allowedValues: {
1359+
readOnly: true,
1360+
serializedName: "allowedValues",
1361+
type: {
1362+
name: "Sequence",
1363+
element: {
1364+
type: {
1365+
name: "Number"
1366+
}
1367+
}
1368+
}
1369+
},
1370+
scaleType: {
1371+
readOnly: true,
1372+
serializedName: "scaleType",
1373+
type: {
1374+
name: "String"
1375+
}
1376+
}
1377+
}
1378+
}
1379+
};
1380+
1381+
export const Sku: msRest.CompositeMapper = {
1382+
serializedName: "Sku",
1383+
type: {
1384+
name: "Composite",
1385+
className: "Sku",
1386+
modelProperties: {
1387+
resourceType: {
1388+
readOnly: true,
1389+
serializedName: "resourceType",
1390+
type: {
1391+
name: "String"
1392+
}
1393+
},
1394+
sku: {
1395+
readOnly: true,
1396+
serializedName: "sku",
1397+
type: {
1398+
name: "Composite",
1399+
className: "ResourceSku"
1400+
}
1401+
},
1402+
capacity: {
1403+
readOnly: true,
1404+
serializedName: "capacity",
1405+
type: {
1406+
name: "Composite",
1407+
className: "SkuCapacity"
1408+
}
1409+
}
1410+
}
1411+
}
1412+
};
1413+
1414+
export const SkuList: msRest.CompositeMapper = {
1415+
serializedName: "SkuList",
1416+
type: {
1417+
name: "Composite",
1418+
className: "SkuList",
1419+
modelProperties: {
1420+
value: {
1421+
readOnly: true,
1422+
serializedName: "value",
1423+
type: {
1424+
name: "Sequence",
1425+
element: {
1426+
type: {
1427+
name: "Composite",
1428+
className: "Sku"
1429+
}
1430+
}
1431+
}
1432+
},
1433+
nextLink: {
1434+
readOnly: true,
1435+
serializedName: "nextLink",
1436+
type: {
1437+
name: "String"
1438+
}
1439+
}
1440+
}
1441+
}
1442+
};
1443+
13241444
export const ErrorAdditionalInfo: msRest.CompositeMapper = {
13251445
serializedName: "ErrorAdditionalInfo",
13261446
type: {

sdk/signalr/arm-signalr/src/models/signalRMappers.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ export {
3636
SignalRResource,
3737
SignalRResourceList,
3838
SignalRTlsSettings,
39+
Sku,
40+
SkuCapacity,
41+
SkuList,
3942
SystemData,
4043
TrackedResource,
4144
UpstreamAuthSettings,

sdk/signalr/arm-signalr/src/operations/signalR.ts

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,41 @@ export class SignalR {
252252
.then(lroPoller => lroPoller.pollUntilFinished());
253253
}
254254

255+
/**
256+
* List all available skus of the resource.
257+
* @param resourceGroupName The name of the resource group that contains the resource. You can
258+
* obtain this value from the Azure Resource Manager API or the portal.
259+
* @param resourceName The name of the resource.
260+
* @param [options] The optional parameters
261+
* @returns Promise<Models.SignalRListSkusResponse>
262+
*/
263+
listSkus(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise<Models.SignalRListSkusResponse>;
264+
/**
265+
* @param resourceGroupName The name of the resource group that contains the resource. You can
266+
* obtain this value from the Azure Resource Manager API or the portal.
267+
* @param resourceName The name of the resource.
268+
* @param callback The callback
269+
*/
270+
listSkus(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback<Models.SkuList>): void;
271+
/**
272+
* @param resourceGroupName The name of the resource group that contains the resource. You can
273+
* obtain this value from the Azure Resource Manager API or the portal.
274+
* @param resourceName The name of the resource.
275+
* @param options The optional parameters
276+
* @param callback The callback
277+
*/
278+
listSkus(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.SkuList>): void;
279+
listSkus(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.SkuList>, callback?: msRest.ServiceCallback<Models.SkuList>): Promise<Models.SignalRListSkusResponse> {
280+
return this.client.sendOperationRequest(
281+
{
282+
resourceGroupName,
283+
resourceName,
284+
options
285+
},
286+
listSkusOperationSpec,
287+
callback) as Promise<Models.SignalRListSkusResponse>;
288+
}
289+
255290
/**
256291
* Create or update a resource.
257292
* @param parameters Parameters for the create or update operation
@@ -541,6 +576,31 @@ const listKeysOperationSpec: msRest.OperationSpec = {
541576
serializer
542577
};
543578

579+
const listSkusOperationSpec: msRest.OperationSpec = {
580+
httpMethod: "GET",
581+
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/skus",
582+
urlParameters: [
583+
Parameters.subscriptionId,
584+
Parameters.resourceGroupName,
585+
Parameters.resourceName
586+
],
587+
queryParameters: [
588+
Parameters.apiVersion
589+
],
590+
headerParameters: [
591+
Parameters.acceptLanguage
592+
],
593+
responses: {
594+
200: {
595+
bodyMapper: Mappers.SkuList
596+
},
597+
default: {
598+
bodyMapper: Mappers.ErrorResponse
599+
}
600+
},
601+
serializer
602+
};
603+
544604
const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
545605
httpMethod: "PUT",
546606
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}",

sdk/signalr/arm-signalr/src/signalRManagementClientContext.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class SignalRManagementClientContext extends msRestAzure.AzureServiceClie
5050

5151
super(credentials, options);
5252

53-
this.apiVersion = '2021-06-01-preview';
53+
this.apiVersion = '2021-09-01-preview';
5454
this.acceptLanguage = 'en-US';
5555
this.longRunningOperationRetryTimeout = 30;
5656
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";

0 commit comments

Comments
 (0)