From ed4353e182dae68a00d5761212c9531dcf86e627 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 30 Nov 2021 06:56:34 +0000 Subject: [PATCH] CodeGen from PR 16906 in Azure/azure-rest-api-specs Merge da655edb55978fde7dfcb59ebafd97e111a1361f into cea6492a1e41b3f3b4f8b4f69bdcc10431e79c0e --- sdk/signalr/arm-signalr/package.json | 2 +- sdk/signalr/arm-signalr/src/models/index.ts | 241 +++++++++++------- sdk/signalr/arm-signalr/src/models/mappers.ts | 183 +++++++++++++ .../arm-signalr/src/models/signalRMappers.ts | 5 + ...ignalRPrivateEndpointConnectionsMappers.ts | 2 + .../signalRPrivateLinkResourcesMappers.ts | 2 + ...ignalRSharedPrivateLinkResourcesMappers.ts | 2 + .../arm-signalr/src/operations/signalR.ts | 60 +++++ .../src/signalRManagementClientContext.ts | 2 +- 9 files changed, 406 insertions(+), 93 deletions(-) diff --git a/sdk/signalr/arm-signalr/package.json b/sdk/signalr/arm-signalr/package.json index 11f4fda185f6..30cb259172ee 100644 --- a/sdk/signalr/arm-signalr/package.json +++ b/sdk/signalr/arm-signalr/package.json @@ -27,7 +27,7 @@ "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/signalr/arm-signalr", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/signalr/arm-signalr", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" diff --git a/sdk/signalr/arm-signalr/src/models/index.ts b/sdk/signalr/arm-signalr/src/models/index.ts index 9e953f655da4..63af54f48ade 100644 --- a/sdk/signalr/arm-signalr/src/models/index.ts +++ b/sdk/signalr/arm-signalr/src/models/index.ts @@ -69,8 +69,7 @@ export interface UserAssignedIdentityProperty { */ export interface ManagedIdentity { /** - * Represent the identity type: systemAssigned, userAssigned, None. Possible values include: - * 'None', 'SystemAssigned', 'UserAssigned' + * Possible values include: 'None', 'SystemAssigned', 'UserAssigned' */ type?: ManagedIdentityType; /** @@ -236,9 +235,6 @@ export interface ServiceSpecification { * Extra Operation properties. */ export interface OperationProperties { - /** - * The service specifications. - */ serviceSpecification?: ServiceSpecification; } @@ -254,18 +250,12 @@ export interface Operation { * If the operation is a data action. (for data plane rbac) */ isDataAction?: boolean; - /** - * The object that describes the operation. - */ display?: OperationDisplay; /** * Optional. The intended executor of the operation; governs the display of the operation in the * RBAC UX and the audit logs UX. */ origin?: string; - /** - * Extra properties for the operation. - */ properties?: OperationProperties; } @@ -326,8 +316,7 @@ export interface SystemData { */ export interface PrivateLinkServiceConnectionState { /** - * Indicates whether the connection has been Approved/Rejected/Removed by the owner of the - * service. Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected' + * Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected' */ status?: PrivateLinkServiceConnectionStatus; /** @@ -373,23 +362,21 @@ export interface ProxyResource extends Resource { */ export interface PrivateEndpointConnection extends ProxyResource { /** - * Metadata pertaining to creation and last modification of the resource. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly systemData?: SystemData; /** - * Provisioning state of the private endpoint connection. Possible values include: 'Unknown', - * 'Succeeded', 'Failed', 'Canceled', 'Running', 'Creating', 'Updating', 'Deleting', 'Moving' + * Possible values include: 'Unknown', 'Succeeded', 'Failed', 'Canceled', 'Running', 'Creating', + * 'Updating', 'Deleting', 'Moving' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: ProvisioningState; - /** - * Private endpoint associated with the private endpoint connection - */ privateEndpoint?: PrivateEndpoint; /** - * Connection state + * Group IDs + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ + readonly groupIds?: string[]; privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; } @@ -420,9 +407,6 @@ export interface ShareablePrivateLinkResourceType { * The name of the resource type that has been onboarded to private link service */ name?: string; - /** - * Describes the properties of a resource type that has been onboarded to private link service - */ properties?: ShareablePrivateLinkResourceProperties; } @@ -453,12 +437,39 @@ export interface PrivateLinkResource extends ProxyResource { */ export interface RegenerateKeyParameters { /** - * The keyType to regenerate. Must be either 'primary' or 'secondary'(case-insensitive). Possible - * values include: 'Primary', 'Secondary' + * Possible values include: 'Primary', 'Secondary', 'Salt' */ keyType?: KeyType; } +/** + * Resource log category configuration of a Microsoft.SignalRService resource. + */ +export interface ResourceLogCategory { + /** + * Gets or sets the resource log category's name. + * Available values: ConnectivityLogs, MessagingLogs. + * Case insensitive. + */ + name?: string; + /** + * Indicates whether or the resource log category is enabled. + * Available values: true, false. + * Case insensitive. + */ + enabled?: string; +} + +/** + * Resource log configuration of a Microsoft.SignalRService resource. + */ +export interface ResourceLogConfiguration { + /** + * Gets or sets the list of category configurations. + */ + categories?: ResourceLogCategory[]; +} + /** * The billing information of the resource. */ @@ -470,10 +481,7 @@ export interface ResourceSku { */ name: string; /** - * Optional tier of this particular SKU. 'Standard' or 'Free'. - * - * `Basic` is deprecated, use `Standard` instead. Possible values include: 'Free', 'Basic', - * 'Standard', 'Premium' + * Possible values include: 'Free', 'Basic', 'Standard', 'Premium' */ tier?: SignalRSkuTier; /** @@ -497,18 +505,13 @@ export interface ResourceSku { } /** - * Upstream auth settings. + * Upstream auth settings. If not set, no auth is used for upstream messages. */ export interface UpstreamAuthSettings { /** - * Gets or sets the type of auth. None or ManagedIdentity is supported now. Possible values - * include: 'None', 'ManagedIdentity' + * Possible values include: 'None', 'ManagedIdentity' */ type?: UpstreamAuthType; - /** - * Gets or sets the managed identity settings. It's required if the auth type is set to - * ManagedIdentity. - */ managedIdentity?: ManagedIdentitySettings; } @@ -553,10 +556,6 @@ export interface UpstreamTemplate { * `http://example.com/chat/api/connect`. */ urlTemplate: string; - /** - * Gets or sets the auth settings for an upstream. If not set, no auth is used for upstream - * messages. - */ auth?: UpstreamAuthSettings; } @@ -576,7 +575,6 @@ export interface ServerlessUpstreamSettings { */ export interface SharedPrivateLinkResource extends ProxyResource { /** - * Metadata pertaining to creation and last modification of the resource. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly systemData?: SystemData; @@ -589,8 +587,8 @@ export interface SharedPrivateLinkResource extends ProxyResource { */ privateLinkResourceId: string; /** - * Provisioning state of the shared private link resource. Possible values include: 'Unknown', - * 'Succeeded', 'Failed', 'Canceled', 'Running', 'Creating', 'Updating', 'Deleting', 'Moving' + * Possible values include: 'Unknown', 'Succeeded', 'Failed', 'Canceled', 'Running', 'Creating', + * 'Updating', 'Deleting', 'Moving' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: ProvisioningState; @@ -599,8 +597,7 @@ export interface SharedPrivateLinkResource extends ProxyResource { */ requestMessage?: string; /** - * Status of the shared private link resource. Possible values include: 'Pending', 'Approved', - * 'Rejected', 'Disconnected', 'Timeout' + * Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected', 'Timeout' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly status?: SharedPrivateLinkResourceStatus; @@ -622,21 +619,8 @@ export interface SignalRCorsSettings { */ export interface SignalRFeature { /** - * FeatureFlags is the supported features of Azure SignalR service. - * - ServiceMode: Flag for backend server for SignalR service. Values allowed: "Default": have - * your own backend server; "Serverless": your application doesn't have a backend server; - * "Classic": for backward compatibility. Support both Default and Serverless mode but not - * recommended; "PredefinedOnly": for future use. - * - EnableConnectivityLogs: "true"/"false", to enable/disable the connectivity log category - * respectively. - * - EnableMessagingLogs: "true"/"false", to enable/disable the connectivity log category - * respectively. - * - EnableLiveTrace: Live Trace allows you to know what's happening inside Azure SignalR - * service, it will give you live traces in real time, it will be helpful when you developing - * your own Azure SignalR based web application or self-troubleshooting some issues. Please note - * that live traces are counted as outbound messages that will be charged. Values allowed: - * "true"/"false", to enable/disable live trace feature. Possible values include: 'ServiceMode', - * 'EnableConnectivityLogs', 'EnableMessagingLogs', 'EnableLiveTrace' + * Possible values include: 'ServiceMode', 'EnableConnectivityLogs', 'EnableMessagingLogs', + * 'EnableLiveTrace' */ flag: FeatureFlags; /** @@ -677,12 +661,9 @@ export interface SignalRKeys { */ export interface SignalRNetworkACLs { /** - * Default action when no other rule matches. Possible values include: 'Allow', 'Deny' + * Possible values include: 'Allow', 'Deny' */ defaultAction?: ACLAction; - /** - * ACL for requests from public network - */ publicNetwork?: NetworkACL; /** * ACLs for requests from private endpoints @@ -719,13 +700,10 @@ export interface TrackedResource extends Resource { * A class represent a resource. */ export interface SignalRResource extends TrackedResource { - /** - * The billing information of the resource.(e.g. Free, Standard) - */ sku?: ResourceSku; /** - * Provisioning state of the resource. Possible values include: 'Unknown', 'Succeeded', 'Failed', - * 'Canceled', 'Running', 'Creating', 'Updating', 'Deleting', 'Moving' + * Possible values include: 'Unknown', 'Succeeded', 'Failed', 'Canceled', 'Running', 'Creating', + * 'Updating', 'Deleting', 'Moving' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: ProvisioningState; @@ -764,10 +742,12 @@ export interface SignalRResource extends TrackedResource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly sharedPrivateLinkResources?: SharedPrivateLinkResource[]; + tls?: SignalRTlsSettings; /** - * TLS settings. + * Deprecated. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - tls?: SignalRTlsSettings; + readonly hostNamePrefix?: string; /** * List of the featureFlags. * @@ -779,17 +759,9 @@ export interface SignalRResource extends TrackedResource { * FeatureFlags. */ features?: SignalRFeature[]; - /** - * Cross-Origin Resource Sharing (CORS) settings. - */ + resourceLogConfiguration?: ResourceLogConfiguration; cors?: SignalRCorsSettings; - /** - * Upstream settings when the service is in server-less mode. - */ upstream?: ServerlessUpstreamSettings; - /** - * Network ACLs - */ networkACLs?: SignalRNetworkACLs; /** * Enable or disable public network access. Default to "Enabled". @@ -811,16 +783,11 @@ export interface SignalRResource extends TrackedResource { */ disableAadAuth?: boolean; /** - * The kind of the service - e.g. "SignalR" for "Microsoft.SignalRService/SignalR". Possible - * values include: 'SignalR', 'RawWebSockets' + * Possible values include: 'SignalR', 'RawWebSockets' */ kind?: ServiceKind; - /** - * The managed identity response - */ identity?: ManagedIdentity; /** - * Metadata pertaining to creation and last modification of the resource. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly systemData?: SystemData; @@ -856,9 +823,6 @@ export interface SignalRUsage { * The maximum permitted value for the usage quota. If there is no limit, this value will be -1. */ limit?: number; - /** - * Localizable String object containing the name and a localized value. - */ name?: SignalRUsageName; /** * Representing the units of the usage quota. Possible values are: Count, Bytes, Seconds, @@ -867,6 +831,73 @@ export interface SignalRUsage { unit?: string; } +/** + * Describes scaling information of a sku. + */ +export interface SkuCapacity { + /** + * The lowest permitted capacity for this resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly minimum?: number; + /** + * The highest permitted capacity for this resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly maximum?: number; + /** + * The default capacity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly default?: number; + /** + * Allows capacity value list. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly allowedValues?: number[]; + /** + * Possible values include: 'None', 'Manual', 'Automatic' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly scaleType?: ScaleType; +} + +/** + * Describes an available sku." + */ +export interface Sku { + /** + * The resource type that this object applies to + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly resourceType?: string; + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly sku?: ResourceSku; + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly capacity?: SkuCapacity; +} + +/** + * The list skus operation response + */ +export interface SkuList { + /** + * The list of skus available for the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly value?: Sku[]; + /** + * The URL the client should use to fetch the next page (per server side paging). + * It's null for now, added for future use. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + /** * The resource management error additional info. */ @@ -1030,11 +1061,11 @@ export type FeatureFlags = 'ServiceMode' | 'EnableConnectivityLogs' | 'EnableMes /** * Defines values for KeyType. - * Possible values include: 'Primary', 'Secondary' + * Possible values include: 'Primary', 'Secondary', 'Salt' * @readonly * @enum {string} */ -export type KeyType = 'Primary' | 'Secondary'; +export type KeyType = 'Primary' | 'Secondary' | 'Salt'; /** * Defines values for ManagedIdentityType. @@ -1085,6 +1116,14 @@ export type PrivateLinkServiceConnectionStatus = 'Pending' | 'Approved' | 'Rejec */ export type SignalRSkuTier = 'Free' | 'Basic' | 'Standard' | 'Premium'; +/** + * Defines values for ScaleType. + * Possible values include: 'None', 'Manual', 'Automatic' + * @readonly + * @enum {string} + */ +export type ScaleType = 'None' | 'Manual' | 'Automatic'; + /** * Defines values for UpstreamAuthType. * Possible values include: 'None', 'ManagedIdentity' @@ -1309,6 +1348,26 @@ export type SignalRRegenerateKeyResponse = SignalRKeys & { }; }; +/** + * Contains response data for the listSkus operation. + */ +export type SignalRListSkusResponse = SkuList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SkuList; + }; +}; + /** * Contains response data for the beginCreateOrUpdate operation. */ diff --git a/sdk/signalr/arm-signalr/src/models/mappers.ts b/sdk/signalr/arm-signalr/src/models/mappers.ts index df732de5189d..dc53f6da2656 100644 --- a/sdk/signalr/arm-signalr/src/models/mappers.ts +++ b/sdk/signalr/arm-signalr/src/models/mappers.ts @@ -604,6 +604,18 @@ export const PrivateEndpointConnection: msRest.CompositeMapper = { className: "PrivateEndpoint" } }, + groupIds: { + readOnly: true, + serializedName: "properties.groupIds", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, privateLinkServiceConnectionState: { serializedName: "properties.privateLinkServiceConnectionState", type: { @@ -733,6 +745,50 @@ export const RegenerateKeyParameters: msRest.CompositeMapper = { } }; +export const ResourceLogCategory: msRest.CompositeMapper = { + serializedName: "ResourceLogCategory", + type: { + name: "Composite", + className: "ResourceLogCategory", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + enabled: { + serializedName: "enabled", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceLogConfiguration: msRest.CompositeMapper = { + serializedName: "ResourceLogConfiguration", + type: { + name: "Composite", + className: "ResourceLogConfiguration", + modelProperties: { + categories: { + serializedName: "categories", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceLogCategory" + } + } + } + } + } + } +}; + export const ResourceSku: msRest.CompositeMapper = { serializedName: "ResourceSku", type: { @@ -1179,6 +1235,13 @@ export const SignalRResource: msRest.CompositeMapper = { className: "SignalRTlsSettings" } }, + hostNamePrefix: { + readOnly: true, + serializedName: "properties.hostNamePrefix", + type: { + name: "String" + } + }, features: { serializedName: "properties.features", type: { @@ -1191,6 +1254,13 @@ export const SignalRResource: msRest.CompositeMapper = { } } }, + resourceLogConfiguration: { + serializedName: "properties.resourceLogConfiguration", + type: { + name: "Composite", + className: "ResourceLogConfiguration" + } + }, cors: { serializedName: "properties.cors", type: { @@ -1321,6 +1391,119 @@ export const SignalRUsage: msRest.CompositeMapper = { } }; +export const SkuCapacity: msRest.CompositeMapper = { + serializedName: "SkuCapacity", + type: { + name: "Composite", + className: "SkuCapacity", + modelProperties: { + minimum: { + readOnly: true, + serializedName: "minimum", + type: { + name: "Number" + } + }, + maximum: { + readOnly: true, + serializedName: "maximum", + type: { + name: "Number" + } + }, + default: { + readOnly: true, + serializedName: "default", + type: { + name: "Number" + } + }, + allowedValues: { + readOnly: true, + serializedName: "allowedValues", + type: { + name: "Sequence", + element: { + type: { + name: "Number" + } + } + } + }, + scaleType: { + readOnly: true, + serializedName: "scaleType", + type: { + name: "String" + } + } + } + } +}; + +export const Sku: msRest.CompositeMapper = { + serializedName: "Sku", + type: { + name: "Composite", + className: "Sku", + modelProperties: { + resourceType: { + readOnly: true, + serializedName: "resourceType", + type: { + name: "String" + } + }, + sku: { + readOnly: true, + serializedName: "sku", + type: { + name: "Composite", + className: "ResourceSku" + } + }, + capacity: { + readOnly: true, + serializedName: "capacity", + type: { + name: "Composite", + className: "SkuCapacity" + } + } + } + } +}; + +export const SkuList: msRest.CompositeMapper = { + serializedName: "SkuList", + type: { + name: "Composite", + className: "SkuList", + modelProperties: { + value: { + readOnly: true, + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Sku" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const ErrorAdditionalInfo: msRest.CompositeMapper = { serializedName: "ErrorAdditionalInfo", type: { diff --git a/sdk/signalr/arm-signalr/src/models/signalRMappers.ts b/sdk/signalr/arm-signalr/src/models/signalRMappers.ts index 7e65f46d8d64..c40a87f60d14 100644 --- a/sdk/signalr/arm-signalr/src/models/signalRMappers.ts +++ b/sdk/signalr/arm-signalr/src/models/signalRMappers.ts @@ -24,6 +24,8 @@ export { ProxyResource, RegenerateKeyParameters, Resource, + ResourceLogCategory, + ResourceLogConfiguration, ResourceSku, ServerlessUpstreamSettings, ShareablePrivateLinkResourceProperties, @@ -36,6 +38,9 @@ export { SignalRResource, SignalRResourceList, SignalRTlsSettings, + Sku, + SkuCapacity, + SkuList, SystemData, TrackedResource, UpstreamAuthSettings, diff --git a/sdk/signalr/arm-signalr/src/models/signalRPrivateEndpointConnectionsMappers.ts b/sdk/signalr/arm-signalr/src/models/signalRPrivateEndpointConnectionsMappers.ts index 1e5d3f1d968b..2b79caa72ebb 100644 --- a/sdk/signalr/arm-signalr/src/models/signalRPrivateEndpointConnectionsMappers.ts +++ b/sdk/signalr/arm-signalr/src/models/signalRPrivateEndpointConnectionsMappers.ts @@ -22,6 +22,8 @@ export { PrivateLinkServiceConnectionState, ProxyResource, Resource, + ResourceLogCategory, + ResourceLogConfiguration, ResourceSku, ServerlessUpstreamSettings, ShareablePrivateLinkResourceProperties, diff --git a/sdk/signalr/arm-signalr/src/models/signalRPrivateLinkResourcesMappers.ts b/sdk/signalr/arm-signalr/src/models/signalRPrivateLinkResourcesMappers.ts index b8d807dabdd5..dcdc3465ac55 100644 --- a/sdk/signalr/arm-signalr/src/models/signalRPrivateLinkResourcesMappers.ts +++ b/sdk/signalr/arm-signalr/src/models/signalRPrivateLinkResourcesMappers.ts @@ -22,6 +22,8 @@ export { PrivateLinkServiceConnectionState, ProxyResource, Resource, + ResourceLogCategory, + ResourceLogConfiguration, ResourceSku, ServerlessUpstreamSettings, ShareablePrivateLinkResourceProperties, diff --git a/sdk/signalr/arm-signalr/src/models/signalRSharedPrivateLinkResourcesMappers.ts b/sdk/signalr/arm-signalr/src/models/signalRSharedPrivateLinkResourcesMappers.ts index ee95de56fb01..782203ca4afa 100644 --- a/sdk/signalr/arm-signalr/src/models/signalRSharedPrivateLinkResourcesMappers.ts +++ b/sdk/signalr/arm-signalr/src/models/signalRSharedPrivateLinkResourcesMappers.ts @@ -21,6 +21,8 @@ export { PrivateLinkServiceConnectionState, ProxyResource, Resource, + ResourceLogCategory, + ResourceLogConfiguration, ResourceSku, ServerlessUpstreamSettings, ShareablePrivateLinkResourceProperties, diff --git a/sdk/signalr/arm-signalr/src/operations/signalR.ts b/sdk/signalr/arm-signalr/src/operations/signalR.ts index 033f63a676d2..cd429e3a32ad 100644 --- a/sdk/signalr/arm-signalr/src/operations/signalR.ts +++ b/sdk/signalr/arm-signalr/src/operations/signalR.ts @@ -252,6 +252,41 @@ export class SignalR { .then(lroPoller => lroPoller.pollUntilFinished()); } + /** + * List all available skus of the resource. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceName The name of the resource. + * @param [options] The optional parameters + * @returns Promise + */ + listSkus(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceName The name of the resource. + * @param callback The callback + */ + listSkus(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceName The name of the resource. + * @param options The optional parameters + * @param callback The callback + */ + listSkus(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSkus(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + resourceName, + options + }, + listSkusOperationSpec, + callback) as Promise; + } + /** * Create or update a resource. * @param parameters Parameters for the create or update operation @@ -541,6 +576,31 @@ const listKeysOperationSpec: msRest.OperationSpec = { serializer }; +const listSkusOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/skus", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SkuList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}", diff --git a/sdk/signalr/arm-signalr/src/signalRManagementClientContext.ts b/sdk/signalr/arm-signalr/src/signalRManagementClientContext.ts index 02ccc1d28438..9e3bf1d6b7a1 100644 --- a/sdk/signalr/arm-signalr/src/signalRManagementClientContext.ts +++ b/sdk/signalr/arm-signalr/src/signalRManagementClientContext.ts @@ -50,7 +50,7 @@ export class SignalRManagementClientContext extends msRestAzure.AzureServiceClie super(credentials, options); - this.apiVersion = '2021-06-01-preview'; + this.apiVersion = '2021-10-01'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";