diff --git a/sdk/eventhub/arm-eventhub/LICENSE b/sdk/eventhub/arm-eventhub/LICENSE index 3a1d9b6f24f7..7d5934740965 100644 --- a/sdk/eventhub/arm-eventhub/LICENSE +++ b/sdk/eventhub/arm-eventhub/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2023 Microsoft +Copyright (c) 2024 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/eventhub/arm-eventhub/_meta.json b/sdk/eventhub/arm-eventhub/_meta.json index be640e951bb2..66e00098a2f8 100644 --- a/sdk/eventhub/arm-eventhub/_meta.json +++ b/sdk/eventhub/arm-eventhub/_meta.json @@ -1,8 +1,8 @@ { - "commit": "7561be58288fad1433038db3f1ccd9794773a03e", + "commit": "4f3da4120e56c0d0e954cf6c471f956bf715d635", "readme": "specification/eventhub/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\eventhub\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.10 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/eventhub/resource-manager/readme.md --use=@autorest/typescript@^6.0.12", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.6.2", - "use": "@autorest/typescript@6.0.0-rc.10" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.5", + "use": "@autorest/typescript@^6.0.12" } \ No newline at end of file diff --git a/sdk/eventhub/arm-eventhub/package.json b/sdk/eventhub/arm-eventhub/package.json index b9c30e69376c..d58044de77ff 100644 --- a/sdk/eventhub/arm-eventhub/package.json +++ b/sdk/eventhub/arm-eventhub/package.json @@ -3,17 +3,17 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for EventHubManagementClient.", - "version": "5.2.0-beta.2", + "version": "1.0.0-beta.1", "engines": { "node": ">=18.0.0" }, "dependencies": { - "@azure/core-lro": "^2.5.0", + "@azure/core-lro": "^2.5.4", "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.7.0", - "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.8.0", + "@azure/core-auth": "^1.6.0", + "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, "keywords": [ @@ -32,21 +32,20 @@ "mkdirp": "^2.1.2", "typescript": "~5.3.3", "uglify-js": "^3.4.9", - "rimraf": "^5.0.5", + "rimraf": "^5.0.0", "dotenv": "^16.0.0", + "@azure/dev-tool": "^1.0.0", "@azure/identity": "^4.0.1", "@azure-tools/test-recorder": "^3.0.0", "@azure-tools/test-credential": "^1.0.0", "mocha": "^10.0.0", + "@types/mocha": "^10.0.0", + "esm": "^3.2.18", "@types/chai": "^4.2.8", "chai": "^4.2.0", "cross-env": "^7.0.2", - "@azure/arm-network": "^32.2.0", - "@azure/arm-storage": "^18.0.0", "@types/node": "^18.0.0", - "@azure/dev-tool": "^1.0.0", - "ts-node": "^10.0.0", - "@types/mocha": "^10.0.0" + "ts-node": "^10.0.0" }, "repository": { "type": "git", @@ -79,7 +78,6 @@ "pack": "npm pack 2>&1", "extract-api": "api-extractor run --local", "lint": "echo skipped", - "audit": "echo skipped", "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", @@ -108,13 +106,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/eventhub/arm-eventhub", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-eventhub?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/eventhub/arm-eventhub" +} \ No newline at end of file diff --git a/sdk/eventhub/arm-eventhub/src/eventHubManagementClient.ts b/sdk/eventhub/arm-eventhub/src/eventHubManagementClient.ts index 913b57d5aa2d..f700f0933bf2 100644 --- a/sdk/eventhub/arm-eventhub/src/eventHubManagementClient.ts +++ b/sdk/eventhub/arm-eventhub/src/eventHubManagementClient.ts @@ -11,7 +11,7 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline"; import { PipelineRequest, PipelineResponse, - SendRequest + SendRequest, } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { @@ -27,7 +27,7 @@ import { ConsumerGroupsImpl, OperationsImpl, SchemaRegistryImpl, - ApplicationGroupOperationsImpl + ApplicationGroupOperationsImpl, } from "./operations"; import { Clusters, @@ -42,7 +42,7 @@ import { ConsumerGroups, Operations, SchemaRegistry, - ApplicationGroupOperations + ApplicationGroupOperations, } from "./operationsInterfaces"; import { EventHubManagementClientOptionalParams } from "./models"; @@ -61,7 +61,7 @@ export class EventHubManagementClient extends coreClient.ServiceClient { constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: EventHubManagementClientOptionalParams + options?: EventHubManagementClientOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); @@ -76,10 +76,10 @@ export class EventHubManagementClient extends coreClient.ServiceClient { } const defaults: EventHubManagementClientOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; - const packageDetails = `azsdk-js-arm-eventhub/5.2.0-beta.2`; + const packageDetails = `azsdk-js-arm-eventhub/1.0.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -89,20 +89,21 @@ export class EventHubManagementClient extends coreClient.ServiceClient { ...defaults, ...options, userAgentOptions: { - userAgentPrefix + userAgentPrefix, }, endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com" + options.endpoint ?? options.baseUri ?? "https://management.azure.com", }; super(optionsWithDefaults); let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { - const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); + const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = + options.pipeline.getOrderedPolicies(); bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName + coreRestPipeline.bearerTokenAuthenticationPolicyName, ); } if ( @@ -112,7 +113,7 @@ export class EventHubManagementClient extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -122,9 +123,9 @@ export class EventHubManagementClient extends coreClient.ServiceClient { `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -132,17 +133,15 @@ export class EventHubManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2022-10-01-preview"; + this.apiVersion = options.apiVersion || "2024-05-01-preview"; this.clusters = new ClustersImpl(this); this.namespaces = new NamespacesImpl(this); this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this); this.privateLinkResources = new PrivateLinkResourcesImpl(this); - this.networkSecurityPerimeterConfigurationOperations = new NetworkSecurityPerimeterConfigurationOperationsImpl( - this - ); - this.networkSecurityPerimeterConfigurations = new NetworkSecurityPerimeterConfigurationsImpl( - this - ); + this.networkSecurityPerimeterConfigurationOperations = + new NetworkSecurityPerimeterConfigurationOperationsImpl(this); + this.networkSecurityPerimeterConfigurations = + new NetworkSecurityPerimeterConfigurationsImpl(this); this.configuration = new ConfigurationImpl(this); this.disasterRecoveryConfigs = new DisasterRecoveryConfigsImpl(this); this.eventHubs = new EventHubsImpl(this); @@ -162,7 +161,7 @@ export class EventHubManagementClient extends coreClient.ServiceClient { name: "CustomApiVersionPolicy", async sendRequest( request: PipelineRequest, - next: SendRequest + next: SendRequest, ): Promise { const param = request.url.split("?"); if (param.length > 1) { @@ -176,7 +175,7 @@ export class EventHubManagementClient extends coreClient.ServiceClient { request.url = param[0] + "?" + newParams.join("&"); } return next(request); - } + }, }; this.pipeline.addPolicy(apiVersionPolicy); } diff --git a/sdk/eventhub/arm-eventhub/src/lroImpl.ts b/sdk/eventhub/arm-eventhub/src/lroImpl.ts index dd803cd5e28c..b27f5ac7209b 100644 --- a/sdk/eventhub/arm-eventhub/src/lroImpl.ts +++ b/sdk/eventhub/arm-eventhub/src/lroImpl.ts @@ -28,15 +28,15 @@ export function createLroSpec(inputs: { sendInitialRequest: () => sendOperationFn(args, spec), sendPollRequest: ( path: string, - options?: { abortSignal?: AbortSignalLike } + options?: { abortSignal?: AbortSignalLike }, ) => { const { requestBody, ...restSpec } = spec; return sendOperationFn(args, { ...restSpec, httpMethod: "GET", path, - abortSignal: options?.abortSignal + abortSignal: options?.abortSignal, }); - } + }, }; } diff --git a/sdk/eventhub/arm-eventhub/src/models/index.ts b/sdk/eventhub/arm-eventhub/src/models/index.ts index edd4ca0bd74d..c7d5c9903166 100644 --- a/sdk/eventhub/arm-eventhub/src/models/index.ts +++ b/sdk/eventhub/arm-eventhub/src/models/index.ts @@ -250,6 +250,71 @@ export interface ProxyResource { readonly location?: string; } +/** GeoDR Replication properties */ +export interface GeoDataReplicationProperties { + /** The maximum acceptable lag for data replication operations from the primary replica to a quorum of secondary replicas. When the lag exceeds the configured amount, operations on the primary replica will be failed. The allowed values are 0 and 5 minutes to 1 day. */ + maxReplicationLagDurationInSeconds?: number; + /** A list of regions where replicas of the namespace are maintained. */ + locations?: NamespaceReplicaLocation[]; +} + +/** Namespace replication properties */ +export interface NamespaceReplicaLocation { + /** Azure regions where a replica of the namespace is maintained */ + locationName?: string; + /** GeoDR Role Types */ + roleType?: GeoDRRoleType; + /** + * state of Namespace replica. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly replicaState?: string; + /** Optional property that denotes the ARM ID of the Cluster. This is required, if a namespace replica should be placed in a Dedicated Event Hub Cluster */ + clusterArmId?: string; +} + +export interface FailOver { + /** Query parameter for the new primary location after failover. */ + primaryLocation?: string; + /** Maximum time duration allowed complete data replication from primary to secondary. Use maximumGracePeriodInMins = 0: For Unplanned Geo-Failover, which switches the role between primary and secondary immediately. The data that is not being replicated yet will be discarded. Use maximumGracePeriodInMins > 0: For Planned Geo-Failover/DR Drill, continue replicating data until grace period expires. Any data that is not replicated during the grace period will be discarded. During the replication the namespace stops accepting any new publishing requests */ + maximumGracePeriodInMins?: number; +} + +/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ +export interface ErrorResponseAutoGenerated { + /** The error object. */ + error?: ErrorDetailAutoGenerated; +} + +/** The error detail. */ +export interface ErrorDetailAutoGenerated { + /** + * The error code. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly code?: string; + /** + * The error message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly message?: string; + /** + * The error target. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly target?: string; + /** + * The error details. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly details?: ErrorDetailAutoGenerated[]; + /** + * The error additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly additionalInfo?: ErrorAdditionalInfo[]; +} + /** Result of the list of all private endpoint connections operation. */ export interface PrivateEndpointConnectionListResult { /** A collection of private endpoint connection resources. */ @@ -591,6 +656,8 @@ export interface CaptureDescription { export interface Destination { /** Name for capture destination */ name?: string; + /** A value that indicates whether capture description is enabled. */ + identity?: CaptureIdentity; /** Resource id of the storage account to be used to create the blobs */ storageAccountResourceId?: string; /** Blob container Name */ @@ -605,13 +672,23 @@ export interface Destination { dataLakeFolderPath?: string; } +/** A value that indicates whether capture description is enabled. */ +export interface CaptureIdentity { + /** Type of Azure Active Directory Managed Identity. */ + type?: CaptureIdentityType; + /** ARM ID of Managed User Identity. This property is required is the type is UserAssignedIdentity. If type is SystemAssigned, then the System Assigned Identity Associated with the namespace will be used. */ + userAssignedIdentity?: string; +} + /** Properties to configure retention settings for the eventhub */ export interface RetentionDescription { /** Enumerates the possible values for cleanup policy */ cleanupPolicy?: CleanupPolicyRetentionDescription; - /** Number of hours to retain the events for this Event Hub. This value is only used when cleanupPolicy is Delete. If cleanupPolicy is Compaction the returned value of this property is Long.MaxValue */ + /** Number of hours to retain the events for this Event Hub. If cleanupPolicy is Compact the returned value of this property is Long.MaxValue */ retentionTimeInHours?: number; - /** Number of hours to retain the tombstone markers of a compacted Event Hub. This value is only used when cleanupPolicy is Compaction. Consumer must complete reading the tombstone marker within this specified amount of time if consumer begins from starting offset to ensure they get a valid snapshot for the specific key described by the tombstone marker within the compacted Event Hub */ + /** The minimum time a message will remain ineligible for compaction in the log. Only applicable for logs that are being compacted. */ + minCompactionLagInMins?: number; + /** Number of hours to retain the tombstone markers of a compacted Event Hub. This value is only used when cleanupPolicy is Compact. Consumer must complete reading the tombstone marker within this specified amount of time if consumer begins from starting offset to ensure they get a valid snapshot for the specific key described by the tombstone marker within the compacted Event Hub */ tombstoneRetentionTimeInHours?: number; } @@ -650,8 +727,23 @@ export interface TrackedResource extends Resource { tags?: { [propertyName: string]: string }; } +/** Properties of the PrivateEndpointConnection. */ +export interface PrivateEndpointConnection extends ProxyResource { + /** + * The system meta data relating to this resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** The Private Endpoint resource for this Connection. */ + privateEndpoint?: PrivateEndpoint; + /** Details about the state of the connection. */ + privateLinkServiceConnectionState?: ConnectionState; + /** Provisioning state of the Private Endpoint Connection. */ + provisioningState?: EndPointProvisioningState; +} + /** Network Security Perimeter related configurations of a given namespace */ -export interface NetworkSecurityPerimeterConfiguration extends Resource { +export interface NetworkSecurityPerimeterConfiguration extends ProxyResource { /** Provisioning state of NetworkSecurityPerimeter configuration propagation */ provisioningState?: NetworkSecurityPerimeterConfigurationProvisioningState; /** List of Provisioning Issues if any */ @@ -671,21 +763,26 @@ export interface NetworkSecurityPerimeterConfiguration extends Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly profile?: NetworkSecurityPerimeterConfigurationPropertiesProfile; -} - -/** Properties of the PrivateEndpointConnection. */ -export interface PrivateEndpointConnection extends ProxyResource { /** - * The system meta data relating to this resource. + * True if the EventHub namespace is backed by another Azure resource and not visible to end users. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; - /** The Private Endpoint resource for this Connection. */ - privateEndpoint?: PrivateEndpoint; - /** Details about the state of the connection. */ - privateLinkServiceConnectionState?: ConnectionState; - /** Provisioning state of the Private Endpoint Connection. */ - provisioningState?: EndPointProvisioningState; + readonly isBackingResource?: boolean; + /** + * Indicates that the NSP controls related to backing association are only applicable to a specific feature in backing resource's data plane. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly applicableFeatures?: string[]; + /** + * Source Resource Association name + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly parentAssociationName?: string; + /** + * ARM Id of source resource + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly sourceResourceId?: string; } /** Description of topic resource. */ @@ -799,6 +896,15 @@ export interface Eventhub extends ProxyResource { captureDescription?: CaptureDescription; /** Event Hub retention settings */ retentionDescription?: RetentionDescription; + /** Denotes the type of timestamp the message will hold. Two types of timestamp types AppendTime, CreateTime. AppendTime refers the time in which message got appended inside broker log. CreateTime refers to the time in which the message was generated on source side and producers can set this timestamp while sending the message. Default value is AppendTime. If you are using AMQP protocol, CreateTime equals AppendTime for now and will full have runtime support later. */ + messageTimestampType?: TimestampType; + /** + * Denotes the unique identifier for event hub and is generated by service while creating topic. This identifier can be used in kafka runtime apis wherever a UUID is required e.g Fetch & Delete Topic. This identifier is not supported in AMQP runtime operations yet. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly identifier?: string; + /** Gets and Sets Metadata of User. */ + userMetadata?: string; } /** Single item in List or Get Schema Group operation */ @@ -868,6 +974,11 @@ export interface Cluster extends TrackedResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly createdAt?: string; + /** + * Provisioning state of the Cluster. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; /** * The UTC time when the Event Hubs Cluster was last updated. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -950,12 +1061,22 @@ export interface EHNamespace extends TrackedResource { disableLocalAuth?: boolean; /** Alternate name specified when alias and namespace names are same. */ alternateName?: string; + /** Geo Data Replication settings for the namespace */ + geoDataReplication?: GeoDataReplicationProperties; +} + +/** Defines headers for Namespaces_failover operation. */ +export interface NamespacesFailoverHeaders { + /** URI to poll for completion status. */ + azureAsyncOperation?: string; + /** URI to poll for completion status. */ + location?: string; } /** Known values of {@link ClusterSkuName} that the service accepts. */ export enum KnownClusterSkuName { /** Dedicated */ - Dedicated = "Dedicated" + Dedicated = "Dedicated", } /** @@ -976,7 +1097,7 @@ export enum KnownCreatedByType { /** ManagedIdentity */ ManagedIdentity = "ManagedIdentity", /** Key */ - Key = "Key" + Key = "Key", } /** @@ -991,6 +1112,42 @@ export enum KnownCreatedByType { */ export type CreatedByType = string; +/** Known values of {@link ProvisioningState} that the service accepts. */ +export enum KnownProvisioningState { + /** Unknown */ + Unknown = "Unknown", + /** Creating */ + Creating = "Creating", + /** Deleting */ + Deleting = "Deleting", + /** Scaling */ + Scaling = "Scaling", + /** Active */ + Active = "Active", + /** Failed */ + Failed = "Failed", + /** Succeeded */ + Succeeded = "Succeeded", + /** Canceled */ + Canceled = "Canceled", +} + +/** + * Defines values for ProvisioningState. \ + * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Unknown** \ + * **Creating** \ + * **Deleting** \ + * **Scaling** \ + * **Active** \ + * **Failed** \ + * **Succeeded** \ + * **Canceled** + */ +export type ProvisioningState = string; + /** Known values of {@link SkuName} that the service accepts. */ export enum KnownSkuName { /** Basic */ @@ -998,7 +1155,7 @@ export enum KnownSkuName { /** Standard */ Standard = "Standard", /** Premium */ - Premium = "Premium" + Premium = "Premium", } /** @@ -1019,7 +1176,7 @@ export enum KnownSkuTier { /** Standard */ Standard = "Standard", /** Premium */ - Premium = "Premium" + Premium = "Premium", } /** @@ -1040,7 +1197,7 @@ export enum KnownTlsVersion { /** One1 */ One1 = "1.1", /** One2 */ - One2 = "1.2" + One2 = "1.2", } /** @@ -1061,7 +1218,7 @@ export enum KnownPublicNetworkAccess { /** Disabled */ Disabled = "Disabled", /** SecuredByPerimeter */ - SecuredByPerimeter = "SecuredByPerimeter" + SecuredByPerimeter = "SecuredByPerimeter", } /** @@ -1084,7 +1241,7 @@ export enum KnownPrivateLinkConnectionStatus { /** Rejected */ Rejected = "Rejected", /** Disconnected */ - Disconnected = "Disconnected" + Disconnected = "Disconnected", } /** @@ -1112,7 +1269,7 @@ export enum KnownEndPointProvisioningState { /** Canceled */ Canceled = "Canceled", /** Failed */ - Failed = "Failed" + Failed = "Failed", } /** @@ -1129,6 +1286,24 @@ export enum KnownEndPointProvisioningState { */ export type EndPointProvisioningState = string; +/** Known values of {@link GeoDRRoleType} that the service accepts. */ +export enum KnownGeoDRRoleType { + /** Primary */ + Primary = "Primary", + /** Secondary */ + Secondary = "Secondary", +} + +/** + * Defines values for GeoDRRoleType. \ + * {@link KnownGeoDRRoleType} can be used interchangeably with GeoDRRoleType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Primary** \ + * **Secondary** + */ +export type GeoDRRoleType = string; + /** Known values of {@link NetworkSecurityPerimeterConfigurationProvisioningState} that the service accepts. */ export enum KnownNetworkSecurityPerimeterConfigurationProvisioningState { /** Unknown */ @@ -1152,7 +1327,7 @@ export enum KnownNetworkSecurityPerimeterConfigurationProvisioningState { /** Deleted */ Deleted = "Deleted", /** Canceled */ - Canceled = "Canceled" + Canceled = "Canceled", } /** @@ -1185,7 +1360,7 @@ export enum KnownResourceAssociationAccessMode { /** AuditMode */ AuditMode = "AuditMode", /** UnspecifiedMode */ - UnspecifiedMode = "UnspecifiedMode" + UnspecifiedMode = "UnspecifiedMode", } /** @@ -1206,7 +1381,7 @@ export enum KnownNspAccessRuleDirection { /** Inbound */ Inbound = "Inbound", /** Outbound */ - Outbound = "Outbound" + Outbound = "Outbound", } /** @@ -1224,7 +1399,7 @@ export enum KnownDefaultAction { /** Allow */ Allow = "Allow", /** Deny */ - Deny = "Deny" + Deny = "Deny", } /** @@ -1240,7 +1415,7 @@ export type DefaultAction = string; /** Known values of {@link NetworkRuleIPAction} that the service accepts. */ export enum KnownNetworkRuleIPAction { /** Allow */ - Allow = "Allow" + Allow = "Allow", } /** @@ -1259,7 +1434,7 @@ export enum KnownPublicNetworkAccessFlag { /** Disabled */ Disabled = "Disabled", /** SecuredByPerimeter */ - SecuredByPerimeter = "SecuredByPerimeter" + SecuredByPerimeter = "SecuredByPerimeter", } /** @@ -1280,7 +1455,7 @@ export enum KnownAccessRights { /** Send */ Send = "Send", /** Listen */ - Listen = "Listen" + Listen = "Listen", } /** @@ -1299,7 +1474,7 @@ export enum KnownKeyType { /** PrimaryKey */ PrimaryKey = "PrimaryKey", /** SecondaryKey */ - SecondaryKey = "SecondaryKey" + SecondaryKey = "SecondaryKey", } /** @@ -1316,8 +1491,10 @@ export type KeyType = string; export enum KnownCleanupPolicyRetentionDescription { /** Delete */ Delete = "Delete", - /** Compaction */ - Compaction = "Compaction" + /** Compact */ + Compact = "Compact", + /** DeleteCompact */ + DeleteCompact = "Delete,Compact", } /** @@ -1326,10 +1503,29 @@ export enum KnownCleanupPolicyRetentionDescription { * this enum contains the known values that the service supports. * ### Known values supported by the service * **Delete** \ - * **Compaction** + * **Compact** \ + * **Delete,Compact** */ export type CleanupPolicyRetentionDescription = string; +/** Known values of {@link TimestampType} that the service accepts. */ +export enum KnownTimestampType { + /** AppendTime */ + AppendTime = "AppendTime", + /** CreateTime */ + CreateTime = "CreateTime", +} + +/** + * Defines values for TimestampType. \ + * {@link KnownTimestampType} can be used interchangeably with TimestampType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AppendTime** \ + * **CreateTime** + */ +export type TimestampType = string; + /** Known values of {@link SchemaCompatibility} that the service accepts. */ export enum KnownSchemaCompatibility { /** None */ @@ -1337,7 +1533,7 @@ export enum KnownSchemaCompatibility { /** Backward */ Backward = "Backward", /** Forward */ - Forward = "Forward" + Forward = "Forward", } /** @@ -1356,7 +1552,11 @@ export enum KnownSchemaType { /** Unknown */ Unknown = "Unknown", /** Avro */ - Avro = "Avro" + Avro = "Avro", + /** ProtoBuf */ + ProtoBuf = "ProtoBuf", + /** Json */ + Json = "Json", } /** @@ -1365,14 +1565,16 @@ export enum KnownSchemaType { * this enum contains the known values that the service supports. * ### Known values supported by the service * **Unknown** \ - * **Avro** + * **Avro** \ + * **ProtoBuf** \ + * **Json** */ export type SchemaType = string; /** Known values of {@link ApplicationGroupPolicyType} that the service accepts. */ export enum KnownApplicationGroupPolicyType { /** ThrottlingPolicy */ - ThrottlingPolicy = "ThrottlingPolicy" + ThrottlingPolicy = "ThrottlingPolicy", } /** @@ -1393,7 +1595,7 @@ export enum KnownMetricId { /** IncomingMessages */ IncomingMessages = "IncomingMessages", /** OutgoingMessages */ - OutgoingMessages = "OutgoingMessages" + OutgoingMessages = "OutgoingMessages", } /** @@ -1441,6 +1643,8 @@ export type EntityStatus = | "Unknown"; /** Defines values for EncodingCaptureDescription. */ export type EncodingCaptureDescription = "Avro" | "AvroDeflate"; +/** Defines values for CaptureIdentityType. */ +export type CaptureIdentityType = "SystemAssigned" | "UserAssigned"; /** Optional parameters. */ export interface ClustersListAvailableClusterRegionOptionalParams @@ -1573,6 +1777,18 @@ export interface NamespacesUpdateOptionalParams /** Contains response data for the update operation. */ export type NamespacesUpdateResponse = EHNamespace; +/** Optional parameters. */ +export interface NamespacesFailoverOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the failover operation. */ +export type NamespacesFailoverResponse = NamespacesFailoverHeaders; + /** Optional parameters. */ export interface NamespacesCreateOrUpdateNetworkRuleSetOptionalParams extends coreClient.OperationOptions {} @@ -1599,14 +1815,16 @@ export interface NamespacesListAuthorizationRulesOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAuthorizationRules operation. */ -export type NamespacesListAuthorizationRulesResponse = AuthorizationRuleListResult; +export type NamespacesListAuthorizationRulesResponse = + AuthorizationRuleListResult; /** Optional parameters. */ export interface NamespacesCreateOrUpdateAuthorizationRuleOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdateAuthorizationRule operation. */ -export type NamespacesCreateOrUpdateAuthorizationRuleResponse = AuthorizationRule; +export type NamespacesCreateOrUpdateAuthorizationRuleResponse = + AuthorizationRule; /** Optional parameters. */ export interface NamespacesDeleteAuthorizationRuleOptionalParams @@ -1638,7 +1856,8 @@ export interface NamespacesCheckNameAvailabilityOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the checkNameAvailability operation. */ -export type NamespacesCheckNameAvailabilityResponse = CheckNameAvailabilityResult; +export type NamespacesCheckNameAvailabilityResponse = + CheckNameAvailabilityResult; /** Optional parameters. */ export interface NamespacesListNextOptionalParams @@ -1659,21 +1878,24 @@ export interface NamespacesListAuthorizationRulesNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAuthorizationRulesNext operation. */ -export type NamespacesListAuthorizationRulesNextResponse = AuthorizationRuleListResult; +export type NamespacesListAuthorizationRulesNextResponse = + AuthorizationRuleListResult; /** Optional parameters. */ export interface PrivateEndpointConnectionsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionListResult; +export type PrivateEndpointConnectionsListResponse = + PrivateEndpointConnectionListResult; /** Optional parameters. */ export interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection; +export type PrivateEndpointConnectionsCreateOrUpdateResponse = + PrivateEndpointConnection; /** Optional parameters. */ export interface PrivateEndpointConnectionsDeleteOptionalParams @@ -1696,7 +1918,8 @@ export interface PrivateEndpointConnectionsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type PrivateEndpointConnectionsListNextResponse = PrivateEndpointConnectionListResult; +export type PrivateEndpointConnectionsListNextResponse = + PrivateEndpointConnectionListResult; /** Optional parameters. */ export interface PrivateLinkResourcesGetOptionalParams @@ -1710,7 +1933,8 @@ export interface NetworkSecurityPerimeterConfigurationListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type NetworkSecurityPerimeterConfigurationListResponse = NetworkSecurityPerimeterConfigurationList; +export type NetworkSecurityPerimeterConfigurationListResponse = + NetworkSecurityPerimeterConfigurationList; /** Optional parameters. */ export interface NetworkSecurityPerimeterConfigurationsCreateOrUpdateOptionalParams @@ -1740,14 +1964,16 @@ export interface DisasterRecoveryConfigsListAuthorizationRulesOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAuthorizationRules operation. */ -export type DisasterRecoveryConfigsListAuthorizationRulesResponse = AuthorizationRuleListResult; +export type DisasterRecoveryConfigsListAuthorizationRulesResponse = + AuthorizationRuleListResult; /** Optional parameters. */ export interface DisasterRecoveryConfigsGetAuthorizationRuleOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getAuthorizationRule operation. */ -export type DisasterRecoveryConfigsGetAuthorizationRuleResponse = AuthorizationRule; +export type DisasterRecoveryConfigsGetAuthorizationRuleResponse = + AuthorizationRule; /** Optional parameters. */ export interface DisasterRecoveryConfigsListKeysOptionalParams @@ -1761,7 +1987,8 @@ export interface DisasterRecoveryConfigsCheckNameAvailabilityOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the checkNameAvailability operation. */ -export type DisasterRecoveryConfigsCheckNameAvailabilityResponse = CheckNameAvailabilityResult; +export type DisasterRecoveryConfigsCheckNameAvailabilityResponse = + CheckNameAvailabilityResult; /** Optional parameters. */ export interface DisasterRecoveryConfigsListOptionalParams @@ -1801,28 +2028,32 @@ export interface DisasterRecoveryConfigsListAuthorizationRulesNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAuthorizationRulesNext operation. */ -export type DisasterRecoveryConfigsListAuthorizationRulesNextResponse = AuthorizationRuleListResult; +export type DisasterRecoveryConfigsListAuthorizationRulesNextResponse = + AuthorizationRuleListResult; /** Optional parameters. */ export interface DisasterRecoveryConfigsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type DisasterRecoveryConfigsListNextResponse = ArmDisasterRecoveryListResult; +export type DisasterRecoveryConfigsListNextResponse = + ArmDisasterRecoveryListResult; /** Optional parameters. */ export interface EventHubsListAuthorizationRulesOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAuthorizationRules operation. */ -export type EventHubsListAuthorizationRulesResponse = AuthorizationRuleListResult; +export type EventHubsListAuthorizationRulesResponse = + AuthorizationRuleListResult; /** Optional parameters. */ export interface EventHubsCreateOrUpdateAuthorizationRuleOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdateAuthorizationRule operation. */ -export type EventHubsCreateOrUpdateAuthorizationRuleResponse = AuthorizationRule; +export type EventHubsCreateOrUpdateAuthorizationRuleResponse = + AuthorizationRule; /** Optional parameters. */ export interface EventHubsGetAuthorizationRuleOptionalParams @@ -1884,7 +2115,8 @@ export interface EventHubsListAuthorizationRulesNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAuthorizationRulesNext operation. */ -export type EventHubsListAuthorizationRulesNextResponse = AuthorizationRuleListResult; +export type EventHubsListAuthorizationRulesNextResponse = + AuthorizationRuleListResult; /** Optional parameters. */ export interface EventHubsListByNamespaceNextOptionalParams @@ -1986,14 +2218,16 @@ export interface ApplicationGroupListByNamespaceOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByNamespace operation. */ -export type ApplicationGroupListByNamespaceResponse = ApplicationGroupListResult; +export type ApplicationGroupListByNamespaceResponse = + ApplicationGroupListResult; /** Optional parameters. */ export interface ApplicationGroupCreateOrUpdateApplicationGroupOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdateApplicationGroup operation. */ -export type ApplicationGroupCreateOrUpdateApplicationGroupResponse = ApplicationGroup; +export type ApplicationGroupCreateOrUpdateApplicationGroupResponse = + ApplicationGroup; /** Optional parameters. */ export interface ApplicationGroupDeleteOptionalParams @@ -2011,7 +2245,8 @@ export interface ApplicationGroupListByNamespaceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByNamespaceNext operation. */ -export type ApplicationGroupListByNamespaceNextResponse = ApplicationGroupListResult; +export type ApplicationGroupListByNamespaceNextResponse = + ApplicationGroupListResult; /** Optional parameters. */ export interface EventHubManagementClientOptionalParams diff --git a/sdk/eventhub/arm-eventhub/src/models/mappers.ts b/sdk/eventhub/arm-eventhub/src/models/mappers.ts index d8536df8f3b4..ba73e5d90d5b 100644 --- a/sdk/eventhub/arm-eventhub/src/models/mappers.ts +++ b/sdk/eventhub/arm-eventhub/src/models/mappers.ts @@ -20,13 +20,13 @@ export const AvailableClustersList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AvailableCluster" - } - } - } - } - } - } + className: "AvailableCluster", + }, + }, + }, + }, + }, + }, }; export const AvailableCluster: coreClient.CompositeMapper = { @@ -37,11 +37,11 @@ export const AvailableCluster: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ErrorResponse: coreClient.CompositeMapper = { @@ -53,11 +53,11 @@ export const ErrorResponse: coreClient.CompositeMapper = { serializedName: "error", type: { name: "Composite", - className: "ErrorDetail" - } - } - } - } + className: "ErrorDetail", + }, + }, + }, + }, }; export const ErrorDetail: coreClient.CompositeMapper = { @@ -69,22 +69,22 @@ export const ErrorDetail: coreClient.CompositeMapper = { serializedName: "code", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, target: { serializedName: "target", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", @@ -94,10 +94,10 @@ export const ErrorDetail: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorDetail" - } - } - } + className: "ErrorDetail", + }, + }, + }, }, additionalInfo: { serializedName: "additionalInfo", @@ -107,13 +107,13 @@ export const ErrorDetail: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorAdditionalInfo" - } - } - } - } - } - } + className: "ErrorAdditionalInfo", + }, + }, + }, + }, + }, + }, }; export const ErrorAdditionalInfo: coreClient.CompositeMapper = { @@ -125,19 +125,19 @@ export const ErrorAdditionalInfo: coreClient.CompositeMapper = { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, info: { serializedName: "info", readOnly: true, type: { name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + value: { type: { name: "any" } }, + }, + }, + }, + }, }; export const ClusterListResult: coreClient.CompositeMapper = { @@ -152,19 +152,19 @@ export const ClusterListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Cluster" - } - } - } + className: "Cluster", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ClusterSku: coreClient.CompositeMapper = { @@ -176,20 +176,20 @@ export const ClusterSku: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, capacity: { constraints: { - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "capacity", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const SystemData: coreClient.CompositeMapper = { @@ -200,41 +200,41 @@ export const SystemData: coreClient.CompositeMapper = { createdBy: { serializedName: "createdBy", type: { - name: "String" - } + name: "String", + }, }, createdByType: { serializedName: "createdByType", type: { - name: "String" - } + name: "String", + }, }, createdAt: { serializedName: "createdAt", type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastModifiedBy: { serializedName: "lastModifiedBy", type: { - name: "String" - } + name: "String", + }, }, lastModifiedByType: { serializedName: "lastModifiedByType", type: { - name: "String" - } + name: "String", + }, }, lastModifiedAt: { serializedName: "lastModifiedAt", type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const Resource: coreClient.CompositeMapper = { @@ -246,25 +246,25 @@ export const Resource: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const EHNamespaceIdListResult: coreClient.CompositeMapper = { @@ -279,13 +279,13 @@ export const EHNamespaceIdListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "EHNamespaceIdContainer" - } - } - } - } - } - } + className: "EHNamespaceIdContainer", + }, + }, + }, + }, + }, + }, }; export const EHNamespaceIdContainer: coreClient.CompositeMapper = { @@ -296,11 +296,11 @@ export const EHNamespaceIdContainer: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const EHNamespaceListResult: coreClient.CompositeMapper = { @@ -315,19 +315,19 @@ export const EHNamespaceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "EHNamespace" - } - } - } + className: "EHNamespace", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Sku: coreClient.CompositeMapper = { @@ -339,26 +339,26 @@ export const Sku: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, tier: { serializedName: "tier", type: { - name: "String" - } + name: "String", + }, }, capacity: { constraints: { - InclusiveMinimum: 0 + InclusiveMinimum: 0, }, serializedName: "capacity", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const Identity: coreClient.CompositeMapper = { @@ -370,15 +370,15 @@ export const Identity: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tenantId: { serializedName: "tenantId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", @@ -388,21 +388,21 @@ export const Identity: coreClient.CompositeMapper = { "SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned", - "None" - ] - } + "None", + ], + }, }, userAssignedIdentities: { serializedName: "userAssignedIdentities", type: { name: "Dictionary", value: { - type: { name: "Composite", className: "UserAssignedIdentity" } - } - } - } - } - } + type: { name: "Composite", className: "UserAssignedIdentity" }, + }, + }, + }, + }, + }, }; export const UserAssignedIdentity: coreClient.CompositeMapper = { @@ -414,18 +414,18 @@ export const UserAssignedIdentity: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, clientId: { serializedName: "clientId", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Encryption: coreClient.CompositeMapper = { @@ -440,27 +440,27 @@ export const Encryption: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "KeyVaultProperties" - } - } - } + className: "KeyVaultProperties", + }, + }, + }, }, keySource: { defaultValue: "Microsoft.KeyVault", isConstant: true, serializedName: "keySource", type: { - name: "String" - } + name: "String", + }, }, requireInfrastructureEncryption: { serializedName: "requireInfrastructureEncryption", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const KeyVaultProperties: coreClient.CompositeMapper = { @@ -471,30 +471,30 @@ export const KeyVaultProperties: coreClient.CompositeMapper = { keyName: { serializedName: "keyName", type: { - name: "String" - } + name: "String", + }, }, keyVaultUri: { serializedName: "keyVaultUri", type: { - name: "String" - } + name: "String", + }, }, keyVersion: { serializedName: "keyVersion", type: { - name: "String" - } + name: "String", + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "UserAssignedIdentityProperties" - } - } - } - } + className: "UserAssignedIdentityProperties", + }, + }, + }, + }, }; export const UserAssignedIdentityProperties: coreClient.CompositeMapper = { @@ -505,11 +505,11 @@ export const UserAssignedIdentityProperties: coreClient.CompositeMapper = { userAssignedIdentity: { serializedName: "userAssignedIdentity", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateEndpoint: coreClient.CompositeMapper = { @@ -520,11 +520,11 @@ export const PrivateEndpoint: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ConnectionState: coreClient.CompositeMapper = { @@ -535,17 +535,17 @@ export const ConnectionState: coreClient.CompositeMapper = { status: { serializedName: "status", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ProxyResource: coreClient.CompositeMapper = { @@ -557,32 +557,186 @@ export const ProxyResource: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const GeoDataReplicationProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GeoDataReplicationProperties", + modelProperties: { + maxReplicationLagDurationInSeconds: { + serializedName: "maxReplicationLagDurationInSeconds", + type: { + name: "Number", + }, + }, + locations: { + serializedName: "locations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NamespaceReplicaLocation", + }, + }, + }, + }, + }, + }, +}; + +export const NamespaceReplicaLocation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NamespaceReplicaLocation", + modelProperties: { + locationName: { + serializedName: "locationName", + type: { + name: "String", + }, + }, + roleType: { + serializedName: "roleType", + type: { + name: "String", + }, + }, + replicaState: { + serializedName: "replicaState", + readOnly: true, + type: { + name: "String", + }, + }, + clusterArmId: { + serializedName: "clusterArmId", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const FailOver: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FailOver", + modelProperties: { + primaryLocation: { + serializedName: "properties.primaryLocation", + type: { + name: "String", + }, + }, + maximumGracePeriodInMins: { + serializedName: "properties.maximumGracePeriodInMins", + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const ErrorResponseAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorResponseAutoGenerated", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorDetailAutoGenerated", + }, + }, + }, + }, +}; + +export const ErrorDetailAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorDetailAutoGenerated", + modelProperties: { + code: { + serializedName: "code", + readOnly: true, + type: { + name: "String", + }, + }, + message: { + serializedName: "message", + readOnly: true, + type: { + name: "String", + }, + }, + target: { + serializedName: "target", + readOnly: true, + type: { + name: "String", + }, + }, + details: { + serializedName: "details", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorDetailAutoGenerated", + }, + }, + }, + }, + additionalInfo: { + serializedName: "additionalInfo", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo", + }, + }, + }, + }, + }, + }, }; export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { @@ -597,19 +751,19 @@ export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateEndpointConnection" - } - } - } + className: "PrivateEndpointConnection", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateLinkResourcesListResult: coreClient.CompositeMapper = { @@ -624,19 +778,19 @@ export const PrivateLinkResourcesListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateLinkResource" - } - } - } + className: "PrivateLinkResource", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateLinkResource: coreClient.CompositeMapper = { @@ -647,26 +801,26 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", type: { - name: "String" - } + name: "String", + }, }, groupId: { serializedName: "properties.groupId", type: { - name: "String" - } + name: "String", + }, }, requiredMembers: { serializedName: "properties.requiredMembers", @@ -674,10 +828,10 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, requiredZoneNames: { serializedName: "properties.requiredZoneNames", @@ -685,36 +839,37 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } -}; - -export const NetworkSecurityPerimeterConfigurationList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NetworkSecurityPerimeterConfigurationList", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NetworkSecurityPerimeterConfiguration" - } - } - } - } - } - } -}; + name: "String", + }, + }, + }, + }, + }, + }, +}; + +export const NetworkSecurityPerimeterConfigurationList: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "NetworkSecurityPerimeterConfigurationList", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkSecurityPerimeterConfiguration", + }, + }, + }, + }, + }, + }, + }; export const ProvisioningIssue: coreClient.CompositeMapper = { type: { @@ -724,18 +879,18 @@ export const ProvisioningIssue: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "ProvisioningIssueProperties" - } - } - } - } + className: "ProvisioningIssueProperties", + }, + }, + }, + }, }; export const ProvisioningIssueProperties: coreClient.CompositeMapper = { @@ -746,17 +901,17 @@ export const ProvisioningIssueProperties: coreClient.CompositeMapper = { issueType: { serializedName: "issueType", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NetworkSecurityPerimeter: coreClient.CompositeMapper = { @@ -767,79 +922,81 @@ export const NetworkSecurityPerimeter: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, perimeterGuid: { serializedName: "perimeterGuid", type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", type: { - name: "String" - } - } - } - } -}; - -export const NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: - "NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } + name: "String", + }, }, - accessMode: { - serializedName: "accessMode", - type: { - name: "String" - } - } - } - } -}; - -export const NetworkSecurityPerimeterConfigurationPropertiesProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NetworkSecurityPerimeterConfigurationPropertiesProfile", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } + }, + }, +}; + +export const NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: + "NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + accessMode: { + serializedName: "accessMode", + type: { + name: "String", + }, + }, }, - accessRulesVersion: { - serializedName: "accessRulesVersion", - type: { - name: "String" - } + }, + }; + +export const NetworkSecurityPerimeterConfigurationPropertiesProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "NetworkSecurityPerimeterConfigurationPropertiesProfile", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + accessRulesVersion: { + serializedName: "accessRulesVersion", + type: { + name: "String", + }, + }, + accessRules: { + serializedName: "accessRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NspAccessRule", + }, + }, + }, + }, }, - accessRules: { - serializedName: "accessRules", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NspAccessRule" - } - } - } - } - } - } -}; + }, + }; export const NspAccessRule: coreClient.CompositeMapper = { type: { @@ -849,30 +1006,30 @@ export const NspAccessRule: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "NspAccessRuleProperties" - } - } - } - } + className: "NspAccessRuleProperties", + }, + }, + }, + }, }; export const NspAccessRuleProperties: coreClient.CompositeMapper = { @@ -883,8 +1040,8 @@ export const NspAccessRuleProperties: coreClient.CompositeMapper = { direction: { serializedName: "direction", type: { - name: "String" - } + name: "String", + }, }, addressPrefixes: { serializedName: "addressPrefixes", @@ -892,10 +1049,10 @@ export const NspAccessRuleProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, subscriptions: { serializedName: "subscriptions", @@ -904,10 +1061,10 @@ export const NspAccessRuleProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "NspAccessRulePropertiesSubscriptionsItem" - } - } - } + className: "NspAccessRulePropertiesSubscriptionsItem", + }, + }, + }, }, networkSecurityPerimeters: { serializedName: "networkSecurityPerimeters", @@ -917,10 +1074,10 @@ export const NspAccessRuleProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "NetworkSecurityPerimeter" - } - } - } + className: "NetworkSecurityPerimeter", + }, + }, + }, }, fullyQualifiedDomainNames: { serializedName: "fullyQualifiedDomainNames", @@ -929,29 +1086,30 @@ export const NspAccessRuleProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } -}; - -export const NspAccessRulePropertiesSubscriptionsItem: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NspAccessRulePropertiesSubscriptionsItem", - modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, + }, + }, +}; + +export const NspAccessRulePropertiesSubscriptionsItem: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "NspAccessRulePropertiesSubscriptionsItem", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + }, + }, + }; export const ClusterQuotaConfigurationProperties: coreClient.CompositeMapper = { type: { @@ -962,11 +1120,11 @@ export const ClusterQuotaConfigurationProperties: coreClient.CompositeMapper = { serializedName: "settings", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const NWRuleSetVirtualNetworkRules: coreClient.CompositeMapper = { @@ -978,17 +1136,17 @@ export const NWRuleSetVirtualNetworkRules: coreClient.CompositeMapper = { serializedName: "subnet", type: { name: "Composite", - className: "Subnet" - } + className: "Subnet", + }, }, ignoreMissingVnetServiceEndpoint: { serializedName: "ignoreMissingVnetServiceEndpoint", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const Subnet: coreClient.CompositeMapper = { @@ -999,11 +1157,11 @@ export const Subnet: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NWRuleSetIpRules: coreClient.CompositeMapper = { @@ -1014,17 +1172,17 @@ export const NWRuleSetIpRules: coreClient.CompositeMapper = { ipMask: { serializedName: "ipMask", type: { - name: "String" - } + name: "String", + }, }, action: { serializedName: "action", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NetworkRuleSetListResult: coreClient.CompositeMapper = { @@ -1039,19 +1197,19 @@ export const NetworkRuleSetListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "NetworkRuleSet" - } - } - } + className: "NetworkRuleSet", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AuthorizationRuleListResult: coreClient.CompositeMapper = { @@ -1066,19 +1224,19 @@ export const AuthorizationRuleListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AuthorizationRule" - } - } - } + className: "AuthorizationRule", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AccessKeys: coreClient.CompositeMapper = { @@ -1090,53 +1248,53 @@ export const AccessKeys: coreClient.CompositeMapper = { serializedName: "primaryConnectionString", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, secondaryConnectionString: { serializedName: "secondaryConnectionString", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, aliasPrimaryConnectionString: { serializedName: "aliasPrimaryConnectionString", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, aliasSecondaryConnectionString: { serializedName: "aliasSecondaryConnectionString", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, primaryKey: { serializedName: "primaryKey", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, secondaryKey: { serializedName: "secondaryKey", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, keyName: { serializedName: "keyName", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RegenerateAccessKeyParameters: coreClient.CompositeMapper = { @@ -1148,17 +1306,17 @@ export const RegenerateAccessKeyParameters: coreClient.CompositeMapper = { serializedName: "keyType", required: true, type: { - name: "String" - } + name: "String", + }, }, key: { serializedName: "key", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CheckNameAvailabilityParameter: coreClient.CompositeMapper = { @@ -1170,11 +1328,11 @@ export const CheckNameAvailabilityParameter: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CheckNameAvailabilityResult: coreClient.CompositeMapper = { @@ -1186,14 +1344,14 @@ export const CheckNameAvailabilityResult: coreClient.CompositeMapper = { serializedName: "message", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, nameAvailable: { serializedName: "nameAvailable", type: { - name: "Boolean" - } + name: "Boolean", + }, }, reason: { serializedName: "reason", @@ -1205,12 +1363,12 @@ export const CheckNameAvailabilityResult: coreClient.CompositeMapper = { "SubscriptionIsDisabled", "NameInUse", "NameInLockdown", - "TooManyNamespaceInCurrentSubscription" - ] - } - } - } - } + "TooManyNamespaceInCurrentSubscription", + ], + }, + }, + }, + }, }; export const ConsumerGroupListResult: coreClient.CompositeMapper = { @@ -1225,19 +1383,19 @@ export const ConsumerGroupListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ConsumerGroup" - } - } - } + className: "ConsumerGroup", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ArmDisasterRecoveryListResult: coreClient.CompositeMapper = { @@ -1252,20 +1410,20 @@ export const ArmDisasterRecoveryListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ArmDisasterRecovery" - } - } - } + className: "ArmDisasterRecovery", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OperationListResult: coreClient.CompositeMapper = { @@ -1281,20 +1439,20 @@ export const OperationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Operation" - } - } - } + className: "Operation", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Operation: coreClient.CompositeMapper = { @@ -1306,37 +1464,37 @@ export const Operation: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, isDataAction: { serializedName: "isDataAction", type: { - name: "Boolean" - } + name: "Boolean", + }, }, display: { serializedName: "display", type: { name: "Composite", - className: "OperationDisplay" - } + className: "OperationDisplay", + }, }, origin: { serializedName: "origin", type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + value: { type: { name: "any" } }, + }, + }, + }, + }, }; export const OperationDisplay: coreClient.CompositeMapper = { @@ -1348,32 +1506,32 @@ export const OperationDisplay: coreClient.CompositeMapper = { serializedName: "provider", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, resource: { serializedName: "resource", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, operation: { serializedName: "operation", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const EventHubListResult: coreClient.CompositeMapper = { @@ -1388,19 +1546,19 @@ export const EventHubListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Eventhub" - } - } - } + className: "Eventhub", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CaptureDescription: coreClient.CompositeMapper = { @@ -1411,43 +1569,43 @@ export const CaptureDescription: coreClient.CompositeMapper = { enabled: { serializedName: "enabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, encoding: { serializedName: "encoding", type: { name: "Enum", - allowedValues: ["Avro", "AvroDeflate"] - } + allowedValues: ["Avro", "AvroDeflate"], + }, }, intervalInSeconds: { serializedName: "intervalInSeconds", type: { - name: "Number" - } + name: "Number", + }, }, sizeLimitInBytes: { serializedName: "sizeLimitInBytes", type: { - name: "Number" - } + name: "Number", + }, }, destination: { serializedName: "destination", type: { name: "Composite", - className: "Destination" - } + className: "Destination", + }, }, skipEmptyArchives: { serializedName: "skipEmptyArchives", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const Destination: coreClient.CompositeMapper = { @@ -1458,47 +1616,76 @@ export const Destination: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "CaptureIdentity", + }, }, storageAccountResourceId: { serializedName: "properties.storageAccountResourceId", type: { - name: "String" - } + name: "String", + }, }, blobContainer: { serializedName: "properties.blobContainer", type: { - name: "String" - } + name: "String", + }, }, archiveNameFormat: { serializedName: "properties.archiveNameFormat", type: { - name: "String" - } + name: "String", + }, }, dataLakeSubscriptionId: { serializedName: "properties.dataLakeSubscriptionId", type: { - name: "Uuid" - } + name: "Uuid", + }, }, dataLakeAccountName: { serializedName: "properties.dataLakeAccountName", type: { - name: "String" - } + name: "String", + }, }, dataLakeFolderPath: { serializedName: "properties.dataLakeFolderPath", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const CaptureIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CaptureIdentity", + modelProperties: { + type: { + serializedName: "type", + type: { + name: "Enum", + allowedValues: ["SystemAssigned", "UserAssigned"], + }, + }, + userAssignedIdentity: { + serializedName: "userAssignedIdentity", + type: { + name: "String", + }, + }, + }, + }, }; export const RetentionDescription: coreClient.CompositeMapper = { @@ -1509,23 +1696,29 @@ export const RetentionDescription: coreClient.CompositeMapper = { cleanupPolicy: { serializedName: "cleanupPolicy", type: { - name: "String" - } + name: "String", + }, }, retentionTimeInHours: { serializedName: "retentionTimeInHours", type: { - name: "Number" - } + name: "Number", + }, + }, + minCompactionLagInMins: { + serializedName: "minCompactionLagInMins", + type: { + name: "Number", + }, }, tombstoneRetentionTimeInHours: { serializedName: "tombstoneRetentionTimeInHours", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const SchemaGroupListResult: coreClient.CompositeMapper = { @@ -1540,19 +1733,19 @@ export const SchemaGroupListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SchemaGroup" - } - } - } + className: "SchemaGroup", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ApplicationGroupListResult: coreClient.CompositeMapper = { @@ -1567,20 +1760,20 @@ export const ApplicationGroupListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApplicationGroup" - } - } - } + className: "ApplicationGroup", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ApplicationGroupPolicy: coreClient.CompositeMapper = { @@ -1590,25 +1783,25 @@ export const ApplicationGroupPolicy: coreClient.CompositeMapper = { uberParent: "ApplicationGroupPolicy", polymorphicDiscriminator: { serializedName: "type", - clientName: "type" + clientName: "type", }, modelProperties: { name: { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const TrackedResource: coreClient.CompositeMapper = { @@ -1620,68 +1813,18 @@ export const TrackedResource: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } -}; - -export const NetworkSecurityPerimeterConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NetworkSecurityPerimeterConfiguration", - modelProperties: { - ...Resource.type.modelProperties, - provisioningState: { - serializedName: "properties.provisioningState", - type: { - name: "String" - } - }, - provisioningIssues: { - serializedName: "properties.provisioningIssues", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ProvisioningIssue" - } - } - } - }, - networkSecurityPerimeter: { - serializedName: "properties.networkSecurityPerimeter", - type: { - name: "Composite", - className: "NetworkSecurityPerimeter" - } - }, - resourceAssociation: { - serializedName: "properties.resourceAssociation", - type: { - name: "Composite", - className: - "NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation" - } + value: { type: { name: "String" } }, + }, }, - profile: { - serializedName: "properties.profile", - type: { - name: "Composite", - className: "NetworkSecurityPerimeterConfigurationPropertiesProfile" - } - } - } - } + }, + }, }; export const PrivateEndpointConnection: coreClient.CompositeMapper = { @@ -1694,32 +1837,116 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } + className: "SystemData", + }, }, privateEndpoint: { serializedName: "properties.privateEndpoint", type: { name: "Composite", - className: "PrivateEndpoint" - } + className: "PrivateEndpoint", + }, }, privateLinkServiceConnectionState: { serializedName: "properties.privateLinkServiceConnectionState", type: { name: "Composite", - className: "ConnectionState" - } + className: "ConnectionState", + }, }, provisioningState: { serializedName: "properties.provisioningState", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const NetworkSecurityPerimeterConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "NetworkSecurityPerimeterConfiguration", + modelProperties: { + ...ProxyResource.type.modelProperties, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String", + }, + }, + provisioningIssues: { + serializedName: "properties.provisioningIssues", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ProvisioningIssue", + }, + }, + }, + }, + networkSecurityPerimeter: { + serializedName: "properties.networkSecurityPerimeter", + type: { + name: "Composite", + className: "NetworkSecurityPerimeter", + }, + }, + resourceAssociation: { + serializedName: "properties.resourceAssociation", + type: { + name: "Composite", + className: + "NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation", + }, + }, + profile: { + serializedName: "properties.profile", + type: { + name: "Composite", + className: "NetworkSecurityPerimeterConfigurationPropertiesProfile", + }, + }, + isBackingResource: { + serializedName: "properties.isBackingResource", + readOnly: true, + type: { + name: "Boolean", + }, + }, + applicableFeatures: { + serializedName: "properties.applicableFeatures", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + parentAssociationName: { + serializedName: "properties.parentAssociationName", + readOnly: true, + type: { + name: "String", + }, + }, + sourceResourceId: { + serializedName: "properties.sourceResourceId", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, + }; export const NetworkRuleSet: coreClient.CompositeMapper = { type: { @@ -1731,20 +1958,20 @@ export const NetworkRuleSet: coreClient.CompositeMapper = { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } + className: "SystemData", + }, }, trustedServiceAccessEnabled: { serializedName: "properties.trustedServiceAccessEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, defaultAction: { serializedName: "properties.defaultAction", type: { - name: "String" - } + name: "String", + }, }, virtualNetworkRules: { serializedName: "properties.virtualNetworkRules", @@ -1753,10 +1980,10 @@ export const NetworkRuleSet: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "NWRuleSetVirtualNetworkRules" - } - } - } + className: "NWRuleSetVirtualNetworkRules", + }, + }, + }, }, ipRules: { serializedName: "properties.ipRules", @@ -1765,20 +1992,20 @@ export const NetworkRuleSet: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "NWRuleSetIpRules" - } - } - } + className: "NWRuleSetIpRules", + }, + }, + }, }, publicNetworkAccess: { defaultValue: "Enabled", serializedName: "properties.publicNetworkAccess", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AuthorizationRule: coreClient.CompositeMapper = { @@ -1791,8 +2018,8 @@ export const AuthorizationRule: coreClient.CompositeMapper = { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } + className: "SystemData", + }, }, rights: { serializedName: "properties.rights", @@ -1800,13 +2027,13 @@ export const AuthorizationRule: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const ConsumerGroup: coreClient.CompositeMapper = { @@ -1819,31 +2046,31 @@ export const ConsumerGroup: coreClient.CompositeMapper = { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } + className: "SystemData", + }, }, createdAt: { serializedName: "properties.createdAt", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, updatedAt: { serializedName: "properties.updatedAt", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, userMetadata: { serializedName: "properties.userMetadata", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ArmDisasterRecovery: coreClient.CompositeMapper = { @@ -1856,46 +2083,46 @@ export const ArmDisasterRecovery: coreClient.CompositeMapper = { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } + className: "SystemData", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { name: "Enum", - allowedValues: ["Accepted", "Succeeded", "Failed"] - } + allowedValues: ["Accepted", "Succeeded", "Failed"], + }, }, partnerNamespace: { serializedName: "properties.partnerNamespace", type: { - name: "String" - } + name: "String", + }, }, alternateName: { serializedName: "properties.alternateName", type: { - name: "String" - } + name: "String", + }, }, role: { serializedName: "properties.role", readOnly: true, type: { name: "Enum", - allowedValues: ["Primary", "PrimaryNotReplicating", "Secondary"] - } + allowedValues: ["Primary", "PrimaryNotReplicating", "Secondary"], + }, }, pendingReplicationOperationsCount: { serializedName: "properties.pendingReplicationOperationsCount", readOnly: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const Eventhub: coreClient.CompositeMapper = { @@ -1908,8 +2135,8 @@ export const Eventhub: coreClient.CompositeMapper = { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } + className: "SystemData", + }, }, partitionIds: { serializedName: "properties.partitionIds", @@ -1918,42 +2145,42 @@ export const Eventhub: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, createdAt: { serializedName: "properties.createdAt", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, updatedAt: { serializedName: "properties.updatedAt", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, messageRetentionInDays: { constraints: { - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "properties.messageRetentionInDays", type: { - name: "Number" - } + name: "Number", + }, }, partitionCount: { constraints: { - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "properties.partitionCount", type: { - name: "Number" - } + name: "Number", + }, }, status: { serializedName: "properties.status", @@ -1968,26 +2195,45 @@ export const Eventhub: coreClient.CompositeMapper = { "Creating", "Deleting", "Renaming", - "Unknown" - ] - } + "Unknown", + ], + }, }, captureDescription: { serializedName: "properties.captureDescription", type: { name: "Composite", - className: "CaptureDescription" - } + className: "CaptureDescription", + }, }, retentionDescription: { serializedName: "properties.retentionDescription", type: { name: "Composite", - className: "RetentionDescription" - } - } - } - } + className: "RetentionDescription", + }, + }, + messageTimestampType: { + serializedName: "properties.messageTimestampType", + type: { + name: "String", + }, + }, + identifier: { + serializedName: "properties.identifier", + readOnly: true, + type: { + name: "String", + }, + }, + userMetadata: { + serializedName: "properties.userMetadata", + type: { + name: "String", + }, + }, + }, + }, }; export const SchemaGroup: coreClient.CompositeMapper = { @@ -2000,51 +2246,51 @@ export const SchemaGroup: coreClient.CompositeMapper = { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } + className: "SystemData", + }, }, updatedAtUtc: { serializedName: "properties.updatedAtUtc", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, createdAtUtc: { serializedName: "properties.createdAtUtc", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, eTag: { serializedName: "properties.eTag", readOnly: true, type: { - name: "Uuid" - } + name: "Uuid", + }, }, groupProperties: { serializedName: "properties.groupProperties", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, schemaCompatibility: { serializedName: "properties.schemaCompatibility", type: { - name: "String" - } + name: "String", + }, }, schemaType: { serializedName: "properties.schemaType", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ApplicationGroup: coreClient.CompositeMapper = { @@ -2057,20 +2303,20 @@ export const ApplicationGroup: coreClient.CompositeMapper = { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } + className: "SystemData", + }, }, isEnabled: { serializedName: "properties.isEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, clientAppGroupIdentifier: { serializedName: "properties.clientAppGroupIdentifier", type: { - name: "String" - } + name: "String", + }, }, policies: { serializedName: "properties.policies", @@ -2079,13 +2325,13 @@ export const ApplicationGroup: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApplicationGroupPolicy" - } - } - } - } - } - } + className: "ApplicationGroupPolicy", + }, + }, + }, + }, + }, + }, }; export const ThrottlingPolicy: coreClient.CompositeMapper = { @@ -2102,18 +2348,18 @@ export const ThrottlingPolicy: coreClient.CompositeMapper = { serializedName: "rateLimitThreshold", required: true, type: { - name: "Number" - } + name: "Number", + }, }, metricId: { serializedName: "metricId", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Cluster: coreClient.CompositeMapper = { @@ -2126,52 +2372,59 @@ export const Cluster: coreClient.CompositeMapper = { serializedName: "sku", type: { name: "Composite", - className: "ClusterSku" - } + className: "ClusterSku", + }, }, systemData: { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } + className: "SystemData", + }, }, createdAt: { serializedName: "properties.createdAt", readOnly: true, type: { - name: "String" - } + name: "String", + }, + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String", + }, }, updatedAt: { serializedName: "properties.updatedAt", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, metricId: { serializedName: "properties.metricId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "properties.status", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, supportsScaling: { serializedName: "properties.supportsScaling", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const EHNamespace: coreClient.CompositeMapper = { @@ -2184,114 +2437,117 @@ export const EHNamespace: coreClient.CompositeMapper = { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } + className: "Sku", + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "Identity" - } + className: "Identity", + }, }, systemData: { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } + className: "SystemData", + }, }, minimumTlsVersion: { serializedName: "properties.minimumTlsVersion", type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "properties.status", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, createdAt: { serializedName: "properties.createdAt", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, updatedAt: { serializedName: "properties.updatedAt", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, serviceBusEndpoint: { serializedName: "properties.serviceBusEndpoint", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, clusterArmId: { serializedName: "properties.clusterArmId", type: { - name: "String" - } + name: "String", + }, }, metricId: { serializedName: "properties.metricId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, isAutoInflateEnabled: { serializedName: "properties.isAutoInflateEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, publicNetworkAccess: { defaultValue: "Enabled", serializedName: "properties.publicNetworkAccess", type: { - name: "String" - } + name: "String", + }, }, maximumThroughputUnits: { + constraints: { + InclusiveMinimum: 0, + }, serializedName: "properties.maximumThroughputUnits", type: { - name: "Number" - } + name: "Number", + }, }, kafkaEnabled: { serializedName: "properties.kafkaEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, zoneRedundant: { serializedName: "properties.zoneRedundant", type: { - name: "Boolean" - } + name: "Boolean", + }, }, encryption: { serializedName: "properties.encryption", type: { name: "Composite", - className: "Encryption" - } + className: "Encryption", + }, }, privateEndpointConnections: { serializedName: "properties.privateEndpointConnections", @@ -2300,28 +2556,56 @@ export const EHNamespace: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateEndpointConnection" - } - } - } + className: "PrivateEndpointConnection", + }, + }, + }, }, disableLocalAuth: { serializedName: "properties.disableLocalAuth", type: { - name: "Boolean" - } + name: "Boolean", + }, }, alternateName: { serializedName: "properties.alternateName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + geoDataReplication: { + serializedName: "properties.geoDataReplication", + type: { + name: "Composite", + className: "GeoDataReplicationProperties", + }, + }, + }, + }, +}; + +export const NamespacesFailoverHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NamespacesFailoverHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, }; export let discriminators = { ApplicationGroupPolicy: ApplicationGroupPolicy, - "ApplicationGroupPolicy.ThrottlingPolicy": ThrottlingPolicy + "ApplicationGroupPolicy.ThrottlingPolicy": ThrottlingPolicy, }; diff --git a/sdk/eventhub/arm-eventhub/src/models/parameters.ts b/sdk/eventhub/arm-eventhub/src/models/parameters.ts index 42b2cd4bfa38..d65a8239ecde 100644 --- a/sdk/eventhub/arm-eventhub/src/models/parameters.ts +++ b/sdk/eventhub/arm-eventhub/src/models/parameters.ts @@ -9,11 +9,12 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { Cluster as ClusterMapper, EHNamespace as EHNamespaceMapper, + FailOver as FailOverMapper, NetworkRuleSet as NetworkRuleSetMapper, AuthorizationRule as AuthorizationRuleMapper, RegenerateAccessKeyParameters as RegenerateAccessKeyParametersMapper, @@ -24,7 +25,7 @@ import { Eventhub as EventhubMapper, ConsumerGroup as ConsumerGroupMapper, SchemaGroup as SchemaGroupMapper, - ApplicationGroup as ApplicationGroupMapper + ApplicationGroup as ApplicationGroupMapper, } from "../models/mappers"; export const accept: OperationParameter = { @@ -34,9 +35,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -45,10 +46,10 @@ export const $host: OperationURLParameter = { serializedName: "$host", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const subscriptionId: OperationURLParameter = { @@ -57,21 +58,21 @@ export const subscriptionId: OperationURLParameter = { serializedName: "subscriptionId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2022-10-01-preview", + defaultValue: "2024-05-01-preview", isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const resourceGroupName: OperationURLParameter = { @@ -79,14 +80,14 @@ export const resourceGroupName: OperationURLParameter = { mapper: { constraints: { MaxLength: 90, - MinLength: 1 + MinLength: 1, }, serializedName: "resourceGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const clusterName: OperationURLParameter = { @@ -94,14 +95,14 @@ export const clusterName: OperationURLParameter = { mapper: { constraints: { MaxLength: 50, - MinLength: 6 + MinLength: 6, }, serializedName: "clusterName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const contentType: OperationParameter = { @@ -111,14 +112,14 @@ export const contentType: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters: OperationParameter = { parameterPath: "parameters", - mapper: ClusterMapper + mapper: ClusterMapper, }; export const nextLink: OperationURLParameter = { @@ -127,69 +128,75 @@ export const nextLink: OperationURLParameter = { serializedName: "nextLink", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const parameters1: OperationParameter = { parameterPath: "parameters", - mapper: EHNamespaceMapper + mapper: EHNamespaceMapper, }; export const namespaceName: OperationURLParameter = { parameterPath: "namespaceName", mapper: { constraints: { + Pattern: new RegExp("^[a-zA-Z][a-zA-Z0-9-]{6,50}[a-zA-Z0-9]$"), MaxLength: 50, - MinLength: 6 + MinLength: 6, }, serializedName: "namespaceName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters2: OperationParameter = { parameterPath: "parameters", - mapper: NetworkRuleSetMapper + mapper: FailOverMapper, }; export const parameters3: OperationParameter = { parameterPath: "parameters", - mapper: AuthorizationRuleMapper + mapper: NetworkRuleSetMapper, +}; + +export const parameters4: OperationParameter = { + parameterPath: "parameters", + mapper: AuthorizationRuleMapper, }; export const authorizationRuleName: OperationURLParameter = { parameterPath: "authorizationRuleName", mapper: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "authorizationRuleName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters4: OperationParameter = { +export const parameters5: OperationParameter = { parameterPath: "parameters", - mapper: RegenerateAccessKeyParametersMapper + mapper: RegenerateAccessKeyParametersMapper, }; -export const parameters5: OperationParameter = { +export const parameters6: OperationParameter = { parameterPath: "parameters", - mapper: CheckNameAvailabilityParameterMapper + mapper: CheckNameAvailabilityParameterMapper, }; -export const parameters6: OperationParameter = { +export const parameters7: OperationParameter = { parameterPath: "parameters", - mapper: PrivateEndpointConnectionMapper + mapper: PrivateEndpointConnectionMapper, }; export const privateEndpointConnectionName: OperationURLParameter = { @@ -198,9 +205,9 @@ export const privateEndpointConnectionName: OperationURLParameter = { serializedName: "privateEndpointConnectionName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const resourceAssociationName: OperationURLParameter = { @@ -209,14 +216,14 @@ export const resourceAssociationName: OperationURLParameter = { serializedName: "resourceAssociationName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters7: OperationParameter = { +export const parameters8: OperationParameter = { parameterPath: "parameters", - mapper: ClusterQuotaConfigurationPropertiesMapper + mapper: ClusterQuotaConfigurationPropertiesMapper, }; export const alias: OperationURLParameter = { @@ -224,19 +231,19 @@ export const alias: OperationURLParameter = { mapper: { constraints: { MaxLength: 50, - MinLength: 1 + MinLength: 1, }, serializedName: "alias", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters8: OperationParameter = { +export const parameters9: OperationParameter = { parameterPath: "parameters", - mapper: ArmDisasterRecoveryMapper + mapper: ArmDisasterRecoveryMapper, }; export const eventHubName: OperationURLParameter = { @@ -244,14 +251,14 @@ export const eventHubName: OperationURLParameter = { mapper: { constraints: { MaxLength: 256, - MinLength: 1 + MinLength: 1, }, serializedName: "eventHubName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const skip: OperationQueryParameter = { @@ -259,13 +266,13 @@ export const skip: OperationQueryParameter = { mapper: { constraints: { InclusiveMaximum: 1000, - InclusiveMinimum: 0 + InclusiveMinimum: 0, }, serializedName: "$skip", type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const top: OperationQueryParameter = { @@ -273,23 +280,23 @@ export const top: OperationQueryParameter = { mapper: { constraints: { InclusiveMaximum: 1000, - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "$top", type: { - name: "Number" - } - } + name: "Number", + }, + }, }; -export const parameters9: OperationParameter = { +export const parameters10: OperationParameter = { parameterPath: "parameters", - mapper: EventhubMapper + mapper: EventhubMapper, }; -export const parameters10: OperationParameter = { +export const parameters11: OperationParameter = { parameterPath: "parameters", - mapper: ConsumerGroupMapper + mapper: ConsumerGroupMapper, }; export const consumerGroupName: OperationURLParameter = { @@ -297,19 +304,19 @@ export const consumerGroupName: OperationURLParameter = { mapper: { constraints: { MaxLength: 50, - MinLength: 1 + MinLength: 1, }, serializedName: "consumerGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters11: OperationParameter = { +export const parameters12: OperationParameter = { parameterPath: "parameters", - mapper: SchemaGroupMapper + mapper: SchemaGroupMapper, }; export const schemaGroupName: OperationURLParameter = { @@ -317,19 +324,19 @@ export const schemaGroupName: OperationURLParameter = { mapper: { constraints: { MaxLength: 256, - MinLength: 1 + MinLength: 1, }, serializedName: "schemaGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters12: OperationParameter = { +export const parameters13: OperationParameter = { parameterPath: "parameters", - mapper: ApplicationGroupMapper + mapper: ApplicationGroupMapper, }; export const applicationGroupName: OperationURLParameter = { @@ -337,12 +344,12 @@ export const applicationGroupName: OperationURLParameter = { mapper: { constraints: { MaxLength: 256, - MinLength: 1 + MinLength: 1, }, serializedName: "applicationGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; diff --git a/sdk/eventhub/arm-eventhub/src/operations/applicationGroupOperations.ts b/sdk/eventhub/arm-eventhub/src/operations/applicationGroupOperations.ts index 061b6d441c39..4458425d207a 100644 --- a/sdk/eventhub/arm-eventhub/src/operations/applicationGroupOperations.ts +++ b/sdk/eventhub/arm-eventhub/src/operations/applicationGroupOperations.ts @@ -23,13 +23,14 @@ import { ApplicationGroupDeleteOptionalParams, ApplicationGroupGetOptionalParams, ApplicationGroupGetResponse, - ApplicationGroupListByNamespaceNextResponse + ApplicationGroupListByNamespaceNextResponse, } from "../models"; /// /** Class containing ApplicationGroupOperations operations. */ export class ApplicationGroupOperationsImpl - implements ApplicationGroupOperations { + implements ApplicationGroupOperations +{ private readonly client: EventHubManagementClient; /** @@ -49,12 +50,12 @@ export class ApplicationGroupOperationsImpl public listByNamespace( resourceGroupName: string, namespaceName: string, - options?: ApplicationGroupListByNamespaceOptionalParams + options?: ApplicationGroupListByNamespaceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByNamespacePagingAll( resourceGroupName, namespaceName, - options + options, ); return { next() { @@ -71,9 +72,9 @@ export class ApplicationGroupOperationsImpl resourceGroupName, namespaceName, options, - settings + settings, ); - } + }, }; } @@ -81,7 +82,7 @@ export class ApplicationGroupOperationsImpl resourceGroupName: string, namespaceName: string, options?: ApplicationGroupListByNamespaceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApplicationGroupListByNamespaceResponse; let continuationToken = settings?.continuationToken; @@ -89,7 +90,7 @@ export class ApplicationGroupOperationsImpl result = await this._listByNamespace( resourceGroupName, namespaceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -101,7 +102,7 @@ export class ApplicationGroupOperationsImpl resourceGroupName, namespaceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -113,12 +114,12 @@ export class ApplicationGroupOperationsImpl private async *listByNamespacePagingAll( resourceGroupName: string, namespaceName: string, - options?: ApplicationGroupListByNamespaceOptionalParams + options?: ApplicationGroupListByNamespaceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByNamespacePagingPage( resourceGroupName, namespaceName, - options + options, )) { yield* page; } @@ -133,11 +134,11 @@ export class ApplicationGroupOperationsImpl private _listByNamespace( resourceGroupName: string, namespaceName: string, - options?: ApplicationGroupListByNamespaceOptionalParams + options?: ApplicationGroupListByNamespaceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, options }, - listByNamespaceOperationSpec + listByNamespaceOperationSpec, ); } @@ -154,7 +155,7 @@ export class ApplicationGroupOperationsImpl namespaceName: string, applicationGroupName: string, parameters: ApplicationGroup, - options?: ApplicationGroupCreateOrUpdateApplicationGroupOptionalParams + options?: ApplicationGroupCreateOrUpdateApplicationGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -162,9 +163,9 @@ export class ApplicationGroupOperationsImpl namespaceName, applicationGroupName, parameters, - options + options, }, - createOrUpdateApplicationGroupOperationSpec + createOrUpdateApplicationGroupOperationSpec, ); } @@ -179,11 +180,11 @@ export class ApplicationGroupOperationsImpl resourceGroupName: string, namespaceName: string, applicationGroupName: string, - options?: ApplicationGroupDeleteOptionalParams + options?: ApplicationGroupDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, applicationGroupName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -198,11 +199,11 @@ export class ApplicationGroupOperationsImpl resourceGroupName: string, namespaceName: string, applicationGroupName: string, - options?: ApplicationGroupGetOptionalParams + options?: ApplicationGroupGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, applicationGroupName, options }, - getOperationSpec + getOperationSpec, ); } @@ -217,11 +218,11 @@ export class ApplicationGroupOperationsImpl resourceGroupName: string, namespaceName: string, nextLink: string, - options?: ApplicationGroupListByNamespaceNextOptionalParams + options?: ApplicationGroupListByNamespaceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, nextLink, options }, - listByNamespaceNextOperationSpec + listByNamespaceNextOperationSpec, ); } } @@ -229,62 +230,59 @@ export class ApplicationGroupOperationsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByNamespaceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/applicationGroups", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/applicationGroups", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApplicationGroupListResult + bodyMapper: Mappers.ApplicationGroupListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.namespaceName + Parameters.namespaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateApplicationGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/applicationGroups/{applicationGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/applicationGroups/{applicationGroupName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ApplicationGroup + bodyMapper: Mappers.ApplicationGroup, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters12, + requestBody: Parameters.parameters13, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.applicationGroupName + Parameters.applicationGroupName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/applicationGroups/{applicationGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/applicationGroups/{applicationGroupName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -292,22 +290,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.applicationGroupName + Parameters.applicationGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/applicationGroups/{applicationGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/applicationGroups/{applicationGroupName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApplicationGroup + bodyMapper: Mappers.ApplicationGroup, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -315,29 +312,29 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.applicationGroupName + Parameters.applicationGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByNamespaceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApplicationGroupListResult + bodyMapper: Mappers.ApplicationGroupListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.nextLink, - Parameters.namespaceName + Parameters.namespaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/eventhub/arm-eventhub/src/operations/clusters.ts b/sdk/eventhub/arm-eventhub/src/operations/clusters.ts index 5581a350b34b..dd92b69b7bda 100644 --- a/sdk/eventhub/arm-eventhub/src/operations/clusters.ts +++ b/sdk/eventhub/arm-eventhub/src/operations/clusters.ts @@ -16,7 +16,7 @@ import { EventHubManagementClient } from "../eventHubManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -39,7 +39,7 @@ import { ClustersListNamespacesOptionalParams, ClustersListNamespacesResponse, ClustersListBySubscriptionNextResponse, - ClustersListByResourceGroupNextResponse + ClustersListByResourceGroupNextResponse, } from "../models"; /// @@ -60,7 +60,7 @@ export class ClustersImpl implements Clusters { * @param options The options parameters. */ public listBySubscription( - options?: ClustersListBySubscriptionOptionalParams + options?: ClustersListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -75,13 +75,13 @@ export class ClustersImpl implements Clusters { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: ClustersListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ClustersListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -102,7 +102,7 @@ export class ClustersImpl implements Clusters { } private async *listBySubscriptionPagingAll( - options?: ClustersListBySubscriptionOptionalParams + options?: ClustersListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -116,7 +116,7 @@ export class ClustersImpl implements Clusters { */ public listByResourceGroup( resourceGroupName: string, - options?: ClustersListByResourceGroupOptionalParams + options?: ClustersListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -133,16 +133,16 @@ export class ClustersImpl implements Clusters { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: ClustersListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ClustersListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -157,7 +157,7 @@ export class ClustersImpl implements Clusters { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -168,11 +168,11 @@ export class ClustersImpl implements Clusters { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: ClustersListByResourceGroupOptionalParams + options?: ClustersListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -183,11 +183,11 @@ export class ClustersImpl implements Clusters { * @param options The options parameters. */ listAvailableClusterRegion( - options?: ClustersListAvailableClusterRegionOptionalParams + options?: ClustersListAvailableClusterRegionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listAvailableClusterRegionOperationSpec + listAvailableClusterRegionOperationSpec, ); } @@ -196,11 +196,11 @@ export class ClustersImpl implements Clusters { * @param options The options parameters. */ private _listBySubscription( - options?: ClustersListBySubscriptionOptionalParams + options?: ClustersListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -211,11 +211,11 @@ export class ClustersImpl implements Clusters { */ private _listByResourceGroup( resourceGroupName: string, - options?: ClustersListByResourceGroupOptionalParams + options?: ClustersListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -228,11 +228,11 @@ export class ClustersImpl implements Clusters { get( resourceGroupName: string, clusterName: string, - options?: ClustersGetOptionalParams + options?: ClustersGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, clusterName, options }, - getOperationSpec + getOperationSpec, ); } @@ -247,7 +247,7 @@ export class ClustersImpl implements Clusters { resourceGroupName: string, clusterName: string, parameters: Cluster, - options?: ClustersCreateOrUpdateOptionalParams + options?: ClustersCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -256,21 +256,20 @@ export class ClustersImpl implements Clusters { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -279,8 +278,8 @@ export class ClustersImpl implements Clusters { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -288,22 +287,22 @@ export class ClustersImpl implements Clusters { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, clusterName, parameters, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< ClustersCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -320,13 +319,13 @@ export class ClustersImpl implements Clusters { resourceGroupName: string, clusterName: string, parameters: Cluster, - options?: ClustersCreateOrUpdateOptionalParams + options?: ClustersCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, clusterName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -342,7 +341,7 @@ export class ClustersImpl implements Clusters { resourceGroupName: string, clusterName: string, parameters: Cluster, - options?: ClustersUpdateOptionalParams + options?: ClustersUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -351,21 +350,20 @@ export class ClustersImpl implements Clusters { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -374,8 +372,8 @@ export class ClustersImpl implements Clusters { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -383,22 +381,22 @@ export class ClustersImpl implements Clusters { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, clusterName, parameters, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< ClustersUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -415,13 +413,13 @@ export class ClustersImpl implements Clusters { resourceGroupName: string, clusterName: string, parameters: Cluster, - options?: ClustersUpdateOptionalParams + options?: ClustersUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, clusterName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -435,25 +433,24 @@ export class ClustersImpl implements Clusters { async beginDelete( resourceGroupName: string, clusterName: string, - options?: ClustersDeleteOptionalParams + options?: ClustersDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -462,8 +459,8 @@ export class ClustersImpl implements Clusters { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -471,19 +468,19 @@ export class ClustersImpl implements Clusters { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, clusterName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -498,12 +495,12 @@ export class ClustersImpl implements Clusters { async beginDeleteAndWait( resourceGroupName: string, clusterName: string, - options?: ClustersDeleteOptionalParams + options?: ClustersDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, clusterName, - options + options, ); return poller.pollUntilDone(); } @@ -517,11 +514,11 @@ export class ClustersImpl implements Clusters { listNamespaces( resourceGroupName: string, clusterName: string, - options?: ClustersListNamespacesOptionalParams + options?: ClustersListNamespacesOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, clusterName, options }, - listNamespacesOperationSpec + listNamespacesOperationSpec, ); } @@ -532,11 +529,11 @@ export class ClustersImpl implements Clusters { */ private _listBySubscriptionNext( nextLink: string, - options?: ClustersListBySubscriptionNextOptionalParams + options?: ClustersListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } @@ -549,11 +546,11 @@ export class ClustersImpl implements Clusters { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: ClustersListByResourceGroupNextOptionalParams + options?: ClustersListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } } @@ -561,101 +558,97 @@ export class ClustersImpl implements Clusters { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listAvailableClusterRegionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.EventHub/availableClusterRegions", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.EventHub/availableClusterRegions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AvailableClustersList + bodyMapper: Mappers.AvailableClustersList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/providers/Microsoft.EventHub/clusters", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ClusterListResult + bodyMapper: Mappers.ClusterListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/clusters", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/clusters", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ClusterListResult + bodyMapper: Mappers.ClusterListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/clusters/{clusterName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/clusters/{clusterName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Cluster + bodyMapper: Mappers.Cluster, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.clusterName + Parameters.clusterName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/clusters/{clusterName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/clusters/{clusterName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Cluster + bodyMapper: Mappers.Cluster, }, 201: { - bodyMapper: Mappers.Cluster + bodyMapper: Mappers.Cluster, }, 202: { - bodyMapper: Mappers.Cluster + bodyMapper: Mappers.Cluster, }, 204: { - bodyMapper: Mappers.Cluster + bodyMapper: Mappers.Cluster, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion], @@ -663,32 +656,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.clusterName + Parameters.clusterName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/clusters/{clusterName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/clusters/{clusterName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.Cluster + bodyMapper: Mappers.Cluster, }, 201: { - bodyMapper: Mappers.Cluster + bodyMapper: Mappers.Cluster, }, 202: { - bodyMapper: Mappers.Cluster + bodyMapper: Mappers.Cluster, }, 204: { - bodyMapper: Mappers.Cluster + bodyMapper: Mappers.Cluster, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion], @@ -696,15 +688,14 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.clusterName + Parameters.clusterName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/clusters/{clusterName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/clusters/{clusterName}", httpMethod: "DELETE", responses: { 200: {}, @@ -712,77 +703,76 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.clusterName + Parameters.clusterName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNamespacesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/clusters/{clusterName}/namespaces", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/clusters/{clusterName}/namespaces", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.EHNamespaceIdListResult + bodyMapper: Mappers.EHNamespaceIdListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.clusterName + Parameters.clusterName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ClusterListResult + bodyMapper: Mappers.ClusterListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ClusterListResult + bodyMapper: Mappers.ClusterListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/eventhub/arm-eventhub/src/operations/configuration.ts b/sdk/eventhub/arm-eventhub/src/operations/configuration.ts index dfcd64703aa2..d151b3992d2f 100644 --- a/sdk/eventhub/arm-eventhub/src/operations/configuration.ts +++ b/sdk/eventhub/arm-eventhub/src/operations/configuration.ts @@ -16,7 +16,7 @@ import { ConfigurationPatchOptionalParams, ConfigurationPatchResponse, ConfigurationGetOptionalParams, - ConfigurationGetResponse + ConfigurationGetResponse, } from "../models"; /** Class containing Configuration operations. */ @@ -43,11 +43,11 @@ export class ConfigurationImpl implements Configuration { resourceGroupName: string, clusterName: string, parameters: ClusterQuotaConfigurationProperties, - options?: ConfigurationPatchOptionalParams + options?: ConfigurationPatchOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, clusterName, parameters, options }, - patchOperationSpec + patchOperationSpec, ); } @@ -61,11 +61,11 @@ export class ConfigurationImpl implements Configuration { get( resourceGroupName: string, clusterName: string, - options?: ConfigurationGetOptionalParams + options?: ConfigurationGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, clusterName, options }, - getOperationSpec + getOperationSpec, ); } } @@ -73,52 +73,50 @@ export class ConfigurationImpl implements Configuration { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const patchOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/clusters/{clusterName}/quotaConfiguration/default", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/clusters/{clusterName}/quotaConfiguration/default", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.ClusterQuotaConfigurationProperties + bodyMapper: Mappers.ClusterQuotaConfigurationProperties, }, 201: { - bodyMapper: Mappers.ClusterQuotaConfigurationProperties + bodyMapper: Mappers.ClusterQuotaConfigurationProperties, }, 202: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters7, + requestBody: Parameters.parameters8, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.clusterName + Parameters.clusterName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/clusters/{clusterName}/quotaConfiguration/default", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/clusters/{clusterName}/quotaConfiguration/default", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ClusterQuotaConfigurationProperties + bodyMapper: Mappers.ClusterQuotaConfigurationProperties, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.clusterName + Parameters.clusterName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/eventhub/arm-eventhub/src/operations/consumerGroups.ts b/sdk/eventhub/arm-eventhub/src/operations/consumerGroups.ts index 5fe6ade61dcb..06ade787e952 100644 --- a/sdk/eventhub/arm-eventhub/src/operations/consumerGroups.ts +++ b/sdk/eventhub/arm-eventhub/src/operations/consumerGroups.ts @@ -23,7 +23,7 @@ import { ConsumerGroupsDeleteOptionalParams, ConsumerGroupsGetOptionalParams, ConsumerGroupsGetResponse, - ConsumerGroupsListByEventHubNextResponse + ConsumerGroupsListByEventHubNextResponse, } from "../models"; /// @@ -51,13 +51,13 @@ export class ConsumerGroupsImpl implements ConsumerGroups { resourceGroupName: string, namespaceName: string, eventHubName: string, - options?: ConsumerGroupsListByEventHubOptionalParams + options?: ConsumerGroupsListByEventHubOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByEventHubPagingAll( resourceGroupName, namespaceName, eventHubName, - options + options, ); return { next() { @@ -75,9 +75,9 @@ export class ConsumerGroupsImpl implements ConsumerGroups { namespaceName, eventHubName, options, - settings + settings, ); - } + }, }; } @@ -86,7 +86,7 @@ export class ConsumerGroupsImpl implements ConsumerGroups { namespaceName: string, eventHubName: string, options?: ConsumerGroupsListByEventHubOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ConsumerGroupsListByEventHubResponse; let continuationToken = settings?.continuationToken; @@ -95,7 +95,7 @@ export class ConsumerGroupsImpl implements ConsumerGroups { resourceGroupName, namespaceName, eventHubName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -108,7 +108,7 @@ export class ConsumerGroupsImpl implements ConsumerGroups { namespaceName, eventHubName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -121,13 +121,13 @@ export class ConsumerGroupsImpl implements ConsumerGroups { resourceGroupName: string, namespaceName: string, eventHubName: string, - options?: ConsumerGroupsListByEventHubOptionalParams + options?: ConsumerGroupsListByEventHubOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByEventHubPagingPage( resourceGroupName, namespaceName, eventHubName, - options + options, )) { yield* page; } @@ -148,7 +148,7 @@ export class ConsumerGroupsImpl implements ConsumerGroups { eventHubName: string, consumerGroupName: string, parameters: ConsumerGroup, - options?: ConsumerGroupsCreateOrUpdateOptionalParams + options?: ConsumerGroupsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -157,9 +157,9 @@ export class ConsumerGroupsImpl implements ConsumerGroups { eventHubName, consumerGroupName, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -176,7 +176,7 @@ export class ConsumerGroupsImpl implements ConsumerGroups { namespaceName: string, eventHubName: string, consumerGroupName: string, - options?: ConsumerGroupsDeleteOptionalParams + options?: ConsumerGroupsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -184,9 +184,9 @@ export class ConsumerGroupsImpl implements ConsumerGroups { namespaceName, eventHubName, consumerGroupName, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -203,7 +203,7 @@ export class ConsumerGroupsImpl implements ConsumerGroups { namespaceName: string, eventHubName: string, consumerGroupName: string, - options?: ConsumerGroupsGetOptionalParams + options?: ConsumerGroupsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -211,9 +211,9 @@ export class ConsumerGroupsImpl implements ConsumerGroups { namespaceName, eventHubName, consumerGroupName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -229,11 +229,11 @@ export class ConsumerGroupsImpl implements ConsumerGroups { resourceGroupName: string, namespaceName: string, eventHubName: string, - options?: ConsumerGroupsListByEventHubOptionalParams + options?: ConsumerGroupsListByEventHubOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, eventHubName, options }, - listByEventHubOperationSpec + listByEventHubOperationSpec, ); } @@ -250,11 +250,11 @@ export class ConsumerGroupsImpl implements ConsumerGroups { namespaceName: string, eventHubName: string, nextLink: string, - options?: ConsumerGroupsListByEventHubNextOptionalParams + options?: ConsumerGroupsListByEventHubNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, eventHubName, nextLink, options }, - listByEventHubNextOperationSpec + listByEventHubNextOperationSpec, ); } } @@ -262,18 +262,17 @@ export class ConsumerGroupsImpl implements ConsumerGroups { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/consumergroups/{consumerGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/consumergroups/{consumerGroupName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ConsumerGroup + bodyMapper: Mappers.ConsumerGroup, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters10, + requestBody: Parameters.parameters11, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -281,22 +280,21 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.namespaceName, Parameters.eventHubName, - Parameters.consumerGroupName + Parameters.consumerGroupName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/consumergroups/{consumerGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/consumergroups/{consumerGroupName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -305,22 +303,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.namespaceName, Parameters.eventHubName, - Parameters.consumerGroupName + Parameters.consumerGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/consumergroups/{consumerGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/consumergroups/{consumerGroupName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ConsumerGroup + bodyMapper: Mappers.ConsumerGroup, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -329,22 +326,21 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.namespaceName, Parameters.eventHubName, - Parameters.consumerGroupName + Parameters.consumerGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByEventHubOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/consumergroups", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/consumergroups", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ConsumerGroupListResult + bodyMapper: Mappers.ConsumerGroupListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.top], urlParameters: [ @@ -352,21 +348,21 @@ const listByEventHubOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.eventHubName + Parameters.eventHubName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByEventHubNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ConsumerGroupListResult + bodyMapper: Mappers.ConsumerGroupListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -374,8 +370,8 @@ const listByEventHubNextOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.nextLink, Parameters.namespaceName, - Parameters.eventHubName + Parameters.eventHubName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/eventhub/arm-eventhub/src/operations/disasterRecoveryConfigs.ts b/sdk/eventhub/arm-eventhub/src/operations/disasterRecoveryConfigs.ts index 8cee5fbb1e9c..3270df68aa00 100644 --- a/sdk/eventhub/arm-eventhub/src/operations/disasterRecoveryConfigs.ts +++ b/sdk/eventhub/arm-eventhub/src/operations/disasterRecoveryConfigs.ts @@ -37,7 +37,7 @@ import { DisasterRecoveryConfigsBreakPairingOptionalParams, DisasterRecoveryConfigsFailOverOptionalParams, DisasterRecoveryConfigsListAuthorizationRulesNextResponse, - DisasterRecoveryConfigsListNextResponse + DisasterRecoveryConfigsListNextResponse, } from "../models"; /// @@ -64,13 +64,13 @@ export class DisasterRecoveryConfigsImpl implements DisasterRecoveryConfigs { resourceGroupName: string, namespaceName: string, alias: string, - options?: DisasterRecoveryConfigsListAuthorizationRulesOptionalParams + options?: DisasterRecoveryConfigsListAuthorizationRulesOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAuthorizationRulesPagingAll( resourceGroupName, namespaceName, alias, - options + options, ); return { next() { @@ -88,9 +88,9 @@ export class DisasterRecoveryConfigsImpl implements DisasterRecoveryConfigs { namespaceName, alias, options, - settings + settings, ); - } + }, }; } @@ -99,7 +99,7 @@ export class DisasterRecoveryConfigsImpl implements DisasterRecoveryConfigs { namespaceName: string, alias: string, options?: DisasterRecoveryConfigsListAuthorizationRulesOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DisasterRecoveryConfigsListAuthorizationRulesResponse; let continuationToken = settings?.continuationToken; @@ -108,7 +108,7 @@ export class DisasterRecoveryConfigsImpl implements DisasterRecoveryConfigs { resourceGroupName, namespaceName, alias, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -121,7 +121,7 @@ export class DisasterRecoveryConfigsImpl implements DisasterRecoveryConfigs { namespaceName, alias, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -134,13 +134,13 @@ export class DisasterRecoveryConfigsImpl implements DisasterRecoveryConfigs { resourceGroupName: string, namespaceName: string, alias: string, - options?: DisasterRecoveryConfigsListAuthorizationRulesOptionalParams + options?: DisasterRecoveryConfigsListAuthorizationRulesOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAuthorizationRulesPagingPage( resourceGroupName, namespaceName, alias, - options + options, )) { yield* page; } @@ -155,7 +155,7 @@ export class DisasterRecoveryConfigsImpl implements DisasterRecoveryConfigs { public list( resourceGroupName: string, namespaceName: string, - options?: DisasterRecoveryConfigsListOptionalParams + options?: DisasterRecoveryConfigsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, namespaceName, options); return { @@ -173,9 +173,9 @@ export class DisasterRecoveryConfigsImpl implements DisasterRecoveryConfigs { resourceGroupName, namespaceName, options, - settings + settings, ); - } + }, }; } @@ -183,7 +183,7 @@ export class DisasterRecoveryConfigsImpl implements DisasterRecoveryConfigs { resourceGroupName: string, namespaceName: string, options?: DisasterRecoveryConfigsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DisasterRecoveryConfigsListResponse; let continuationToken = settings?.continuationToken; @@ -199,7 +199,7 @@ export class DisasterRecoveryConfigsImpl implements DisasterRecoveryConfigs { resourceGroupName, namespaceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -211,12 +211,12 @@ export class DisasterRecoveryConfigsImpl implements DisasterRecoveryConfigs { private async *listPagingAll( resourceGroupName: string, namespaceName: string, - options?: DisasterRecoveryConfigsListOptionalParams + options?: DisasterRecoveryConfigsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, namespaceName, - options + options, )) { yield* page; } @@ -233,11 +233,11 @@ export class DisasterRecoveryConfigsImpl implements DisasterRecoveryConfigs { resourceGroupName: string, namespaceName: string, alias: string, - options?: DisasterRecoveryConfigsListAuthorizationRulesOptionalParams + options?: DisasterRecoveryConfigsListAuthorizationRulesOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, alias, options }, - listAuthorizationRulesOperationSpec + listAuthorizationRulesOperationSpec, ); } @@ -254,7 +254,7 @@ export class DisasterRecoveryConfigsImpl implements DisasterRecoveryConfigs { namespaceName: string, alias: string, authorizationRuleName: string, - options?: DisasterRecoveryConfigsGetAuthorizationRuleOptionalParams + options?: DisasterRecoveryConfigsGetAuthorizationRuleOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -262,9 +262,9 @@ export class DisasterRecoveryConfigsImpl implements DisasterRecoveryConfigs { namespaceName, alias, authorizationRuleName, - options + options, }, - getAuthorizationRuleOperationSpec + getAuthorizationRuleOperationSpec, ); } @@ -281,7 +281,7 @@ export class DisasterRecoveryConfigsImpl implements DisasterRecoveryConfigs { namespaceName: string, alias: string, authorizationRuleName: string, - options?: DisasterRecoveryConfigsListKeysOptionalParams + options?: DisasterRecoveryConfigsListKeysOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -289,9 +289,9 @@ export class DisasterRecoveryConfigsImpl implements DisasterRecoveryConfigs { namespaceName, alias, authorizationRuleName, - options + options, }, - listKeysOperationSpec + listKeysOperationSpec, ); } @@ -306,11 +306,11 @@ export class DisasterRecoveryConfigsImpl implements DisasterRecoveryConfigs { resourceGroupName: string, namespaceName: string, parameters: CheckNameAvailabilityParameter, - options?: DisasterRecoveryConfigsCheckNameAvailabilityOptionalParams + options?: DisasterRecoveryConfigsCheckNameAvailabilityOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, parameters, options }, - checkNameAvailabilityOperationSpec + checkNameAvailabilityOperationSpec, ); } @@ -323,11 +323,11 @@ export class DisasterRecoveryConfigsImpl implements DisasterRecoveryConfigs { private _list( resourceGroupName: string, namespaceName: string, - options?: DisasterRecoveryConfigsListOptionalParams + options?: DisasterRecoveryConfigsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -344,11 +344,11 @@ export class DisasterRecoveryConfigsImpl implements DisasterRecoveryConfigs { namespaceName: string, alias: string, parameters: ArmDisasterRecovery, - options?: DisasterRecoveryConfigsCreateOrUpdateOptionalParams + options?: DisasterRecoveryConfigsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, alias, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -363,11 +363,11 @@ export class DisasterRecoveryConfigsImpl implements DisasterRecoveryConfigs { resourceGroupName: string, namespaceName: string, alias: string, - options?: DisasterRecoveryConfigsDeleteOptionalParams + options?: DisasterRecoveryConfigsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, alias, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -382,11 +382,11 @@ export class DisasterRecoveryConfigsImpl implements DisasterRecoveryConfigs { resourceGroupName: string, namespaceName: string, alias: string, - options?: DisasterRecoveryConfigsGetOptionalParams + options?: DisasterRecoveryConfigsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, alias, options }, - getOperationSpec + getOperationSpec, ); } @@ -402,11 +402,11 @@ export class DisasterRecoveryConfigsImpl implements DisasterRecoveryConfigs { resourceGroupName: string, namespaceName: string, alias: string, - options?: DisasterRecoveryConfigsBreakPairingOptionalParams + options?: DisasterRecoveryConfigsBreakPairingOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, alias, options }, - breakPairingOperationSpec + breakPairingOperationSpec, ); } @@ -421,11 +421,11 @@ export class DisasterRecoveryConfigsImpl implements DisasterRecoveryConfigs { resourceGroupName: string, namespaceName: string, alias: string, - options?: DisasterRecoveryConfigsFailOverOptionalParams + options?: DisasterRecoveryConfigsFailOverOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, alias, options }, - failOverOperationSpec + failOverOperationSpec, ); } @@ -442,11 +442,11 @@ export class DisasterRecoveryConfigsImpl implements DisasterRecoveryConfigs { namespaceName: string, alias: string, nextLink: string, - options?: DisasterRecoveryConfigsListAuthorizationRulesNextOptionalParams + options?: DisasterRecoveryConfigsListAuthorizationRulesNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, alias, nextLink, options }, - listAuthorizationRulesNextOperationSpec + listAuthorizationRulesNextOperationSpec, ); } @@ -461,11 +461,11 @@ export class DisasterRecoveryConfigsImpl implements DisasterRecoveryConfigs { resourceGroupName: string, namespaceName: string, nextLink: string, - options?: DisasterRecoveryConfigsListNextOptionalParams + options?: DisasterRecoveryConfigsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -473,16 +473,15 @@ export class DisasterRecoveryConfigsImpl implements DisasterRecoveryConfigs { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listAuthorizationRulesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/authorizationRules", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/authorizationRules", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AuthorizationRuleListResult + bodyMapper: Mappers.AuthorizationRuleListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -490,22 +489,21 @@ const listAuthorizationRulesOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.alias + Parameters.alias, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getAuthorizationRuleOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/authorizationRules/{authorizationRuleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/authorizationRules/{authorizationRuleName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AuthorizationRule + bodyMapper: Mappers.AuthorizationRule, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -514,22 +512,21 @@ const getAuthorizationRuleOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.namespaceName, Parameters.authorizationRuleName, - Parameters.alias + Parameters.alias, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listKeysOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/authorizationRules/{authorizationRuleName}/listKeys", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/authorizationRules/{authorizationRuleName}/listKeys", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.AccessKeys + bodyMapper: Mappers.AccessKeys, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -538,93 +535,91 @@ const listKeysOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.namespaceName, Parameters.authorizationRuleName, - Parameters.alias + Parameters.alias, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/checkNameAvailability", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/checkNameAvailability", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.CheckNameAvailabilityResult + bodyMapper: Mappers.CheckNameAvailabilityResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters5, + requestBody: Parameters.parameters6, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.namespaceName + Parameters.namespaceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ArmDisasterRecoveryListResult + bodyMapper: Mappers.ArmDisasterRecoveryListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.namespaceName + Parameters.namespaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ArmDisasterRecovery + bodyMapper: Mappers.ArmDisasterRecovery, + }, + 201: { + bodyMapper: Mappers.ArmDisasterRecovery, }, - 201: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters8, + requestBody: Parameters.parameters9, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.alias + Parameters.alias, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -632,22 +627,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.alias + Parameters.alias, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ArmDisasterRecovery + bodyMapper: Mappers.ArmDisasterRecovery, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -655,20 +649,19 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.alias + Parameters.alias, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const breakPairingOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/breakPairing", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/breakPairing", httpMethod: "POST", responses: { 200: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -676,20 +669,19 @@ const breakPairingOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.alias + Parameters.alias, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const failOverOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/failover", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/failover", httpMethod: "POST", responses: { 200: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -697,21 +689,21 @@ const failOverOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.alias + Parameters.alias, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAuthorizationRulesNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AuthorizationRuleListResult + bodyMapper: Mappers.AuthorizationRuleListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -719,29 +711,29 @@ const listAuthorizationRulesNextOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.nextLink, Parameters.namespaceName, - Parameters.alias + Parameters.alias, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ArmDisasterRecoveryListResult + bodyMapper: Mappers.ArmDisasterRecoveryListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.nextLink, - Parameters.namespaceName + Parameters.namespaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/eventhub/arm-eventhub/src/operations/eventHubs.ts b/sdk/eventhub/arm-eventhub/src/operations/eventHubs.ts index 342dc65bcc35..ef4830575482 100644 --- a/sdk/eventhub/arm-eventhub/src/operations/eventHubs.ts +++ b/sdk/eventhub/arm-eventhub/src/operations/eventHubs.ts @@ -38,7 +38,7 @@ import { EventHubsGetOptionalParams, EventHubsGetResponse, EventHubsListAuthorizationRulesNextResponse, - EventHubsListByNamespaceNextResponse + EventHubsListByNamespaceNextResponse, } from "../models"; /// @@ -65,13 +65,13 @@ export class EventHubsImpl implements EventHubs { resourceGroupName: string, namespaceName: string, eventHubName: string, - options?: EventHubsListAuthorizationRulesOptionalParams + options?: EventHubsListAuthorizationRulesOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAuthorizationRulesPagingAll( resourceGroupName, namespaceName, eventHubName, - options + options, ); return { next() { @@ -89,9 +89,9 @@ export class EventHubsImpl implements EventHubs { namespaceName, eventHubName, options, - settings + settings, ); - } + }, }; } @@ -100,7 +100,7 @@ export class EventHubsImpl implements EventHubs { namespaceName: string, eventHubName: string, options?: EventHubsListAuthorizationRulesOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: EventHubsListAuthorizationRulesResponse; let continuationToken = settings?.continuationToken; @@ -109,7 +109,7 @@ export class EventHubsImpl implements EventHubs { resourceGroupName, namespaceName, eventHubName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -122,7 +122,7 @@ export class EventHubsImpl implements EventHubs { namespaceName, eventHubName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -135,13 +135,13 @@ export class EventHubsImpl implements EventHubs { resourceGroupName: string, namespaceName: string, eventHubName: string, - options?: EventHubsListAuthorizationRulesOptionalParams + options?: EventHubsListAuthorizationRulesOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAuthorizationRulesPagingPage( resourceGroupName, namespaceName, eventHubName, - options + options, )) { yield* page; } @@ -156,12 +156,12 @@ export class EventHubsImpl implements EventHubs { public listByNamespace( resourceGroupName: string, namespaceName: string, - options?: EventHubsListByNamespaceOptionalParams + options?: EventHubsListByNamespaceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByNamespacePagingAll( resourceGroupName, namespaceName, - options + options, ); return { next() { @@ -178,9 +178,9 @@ export class EventHubsImpl implements EventHubs { resourceGroupName, namespaceName, options, - settings + settings, ); - } + }, }; } @@ -188,7 +188,7 @@ export class EventHubsImpl implements EventHubs { resourceGroupName: string, namespaceName: string, options?: EventHubsListByNamespaceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: EventHubsListByNamespaceResponse; let continuationToken = settings?.continuationToken; @@ -196,7 +196,7 @@ export class EventHubsImpl implements EventHubs { result = await this._listByNamespace( resourceGroupName, namespaceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -208,7 +208,7 @@ export class EventHubsImpl implements EventHubs { resourceGroupName, namespaceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -220,12 +220,12 @@ export class EventHubsImpl implements EventHubs { private async *listByNamespacePagingAll( resourceGroupName: string, namespaceName: string, - options?: EventHubsListByNamespaceOptionalParams + options?: EventHubsListByNamespaceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByNamespacePagingPage( resourceGroupName, namespaceName, - options + options, )) { yield* page; } @@ -242,11 +242,11 @@ export class EventHubsImpl implements EventHubs { resourceGroupName: string, namespaceName: string, eventHubName: string, - options?: EventHubsListAuthorizationRulesOptionalParams + options?: EventHubsListAuthorizationRulesOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, eventHubName, options }, - listAuthorizationRulesOperationSpec + listAuthorizationRulesOperationSpec, ); } @@ -266,7 +266,7 @@ export class EventHubsImpl implements EventHubs { eventHubName: string, authorizationRuleName: string, parameters: AuthorizationRule, - options?: EventHubsCreateOrUpdateAuthorizationRuleOptionalParams + options?: EventHubsCreateOrUpdateAuthorizationRuleOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -275,9 +275,9 @@ export class EventHubsImpl implements EventHubs { eventHubName, authorizationRuleName, parameters, - options + options, }, - createOrUpdateAuthorizationRuleOperationSpec + createOrUpdateAuthorizationRuleOperationSpec, ); } @@ -294,7 +294,7 @@ export class EventHubsImpl implements EventHubs { namespaceName: string, eventHubName: string, authorizationRuleName: string, - options?: EventHubsGetAuthorizationRuleOptionalParams + options?: EventHubsGetAuthorizationRuleOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -302,9 +302,9 @@ export class EventHubsImpl implements EventHubs { namespaceName, eventHubName, authorizationRuleName, - options + options, }, - getAuthorizationRuleOperationSpec + getAuthorizationRuleOperationSpec, ); } @@ -321,7 +321,7 @@ export class EventHubsImpl implements EventHubs { namespaceName: string, eventHubName: string, authorizationRuleName: string, - options?: EventHubsDeleteAuthorizationRuleOptionalParams + options?: EventHubsDeleteAuthorizationRuleOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -329,9 +329,9 @@ export class EventHubsImpl implements EventHubs { namespaceName, eventHubName, authorizationRuleName, - options + options, }, - deleteAuthorizationRuleOperationSpec + deleteAuthorizationRuleOperationSpec, ); } @@ -348,7 +348,7 @@ export class EventHubsImpl implements EventHubs { namespaceName: string, eventHubName: string, authorizationRuleName: string, - options?: EventHubsListKeysOptionalParams + options?: EventHubsListKeysOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -356,9 +356,9 @@ export class EventHubsImpl implements EventHubs { namespaceName, eventHubName, authorizationRuleName, - options + options, }, - listKeysOperationSpec + listKeysOperationSpec, ); } @@ -378,7 +378,7 @@ export class EventHubsImpl implements EventHubs { eventHubName: string, authorizationRuleName: string, parameters: RegenerateAccessKeyParameters, - options?: EventHubsRegenerateKeysOptionalParams + options?: EventHubsRegenerateKeysOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -387,9 +387,9 @@ export class EventHubsImpl implements EventHubs { eventHubName, authorizationRuleName, parameters, - options + options, }, - regenerateKeysOperationSpec + regenerateKeysOperationSpec, ); } @@ -402,11 +402,11 @@ export class EventHubsImpl implements EventHubs { private _listByNamespace( resourceGroupName: string, namespaceName: string, - options?: EventHubsListByNamespaceOptionalParams + options?: EventHubsListByNamespaceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, options }, - listByNamespaceOperationSpec + listByNamespaceOperationSpec, ); } @@ -423,11 +423,11 @@ export class EventHubsImpl implements EventHubs { namespaceName: string, eventHubName: string, parameters: Eventhub, - options?: EventHubsCreateOrUpdateOptionalParams + options?: EventHubsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, eventHubName, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -442,11 +442,11 @@ export class EventHubsImpl implements EventHubs { resourceGroupName: string, namespaceName: string, eventHubName: string, - options?: EventHubsDeleteOptionalParams + options?: EventHubsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, eventHubName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -461,11 +461,11 @@ export class EventHubsImpl implements EventHubs { resourceGroupName: string, namespaceName: string, eventHubName: string, - options?: EventHubsGetOptionalParams + options?: EventHubsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, eventHubName, options }, - getOperationSpec + getOperationSpec, ); } @@ -482,11 +482,11 @@ export class EventHubsImpl implements EventHubs { namespaceName: string, eventHubName: string, nextLink: string, - options?: EventHubsListAuthorizationRulesNextOptionalParams + options?: EventHubsListAuthorizationRulesNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, eventHubName, nextLink, options }, - listAuthorizationRulesNextOperationSpec + listAuthorizationRulesNextOperationSpec, ); } @@ -501,11 +501,11 @@ export class EventHubsImpl implements EventHubs { resourceGroupName: string, namespaceName: string, nextLink: string, - options?: EventHubsListByNamespaceNextOptionalParams + options?: EventHubsListByNamespaceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, nextLink, options }, - listByNamespaceNextOperationSpec + listByNamespaceNextOperationSpec, ); } } @@ -513,16 +513,15 @@ export class EventHubsImpl implements EventHubs { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listAuthorizationRulesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AuthorizationRuleListResult + bodyMapper: Mappers.AuthorizationRuleListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -530,24 +529,23 @@ const listAuthorizationRulesOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.eventHubName + Parameters.eventHubName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateAuthorizationRuleOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.AuthorizationRule + bodyMapper: Mappers.AuthorizationRule, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters3, + requestBody: Parameters.parameters4, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -555,23 +553,22 @@ const createOrUpdateAuthorizationRuleOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.namespaceName, Parameters.authorizationRuleName, - Parameters.eventHubName + Parameters.eventHubName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getAuthorizationRuleOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AuthorizationRule + bodyMapper: Mappers.AuthorizationRule, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -580,21 +577,20 @@ const getAuthorizationRuleOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.namespaceName, Parameters.authorizationRuleName, - Parameters.eventHubName + Parameters.eventHubName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteAuthorizationRuleOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -603,22 +599,21 @@ const deleteAuthorizationRuleOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.namespaceName, Parameters.authorizationRuleName, - Parameters.eventHubName + Parameters.eventHubName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listKeysOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}/listKeys", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}/listKeys", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.AccessKeys + bodyMapper: Mappers.AccessKeys, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -627,24 +622,23 @@ const listKeysOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.namespaceName, Parameters.authorizationRuleName, - Parameters.eventHubName + Parameters.eventHubName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const regenerateKeysOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}/regenerateKeys", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}/regenerateKeys", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.AccessKeys + bodyMapper: Mappers.AccessKeys, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters4, + requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -652,69 +646,66 @@ const regenerateKeysOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.namespaceName, Parameters.authorizationRuleName, - Parameters.eventHubName + Parameters.eventHubName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listByNamespaceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.EventHubListResult + bodyMapper: Mappers.EventHubListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.top], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.namespaceName + Parameters.namespaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Eventhub + bodyMapper: Mappers.Eventhub, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters9, + requestBody: Parameters.parameters10, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.eventHubName + Parameters.eventHubName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -722,22 +713,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.eventHubName + Parameters.eventHubName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Eventhub + bodyMapper: Mappers.Eventhub, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -745,21 +735,21 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.eventHubName + Parameters.eventHubName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAuthorizationRulesNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AuthorizationRuleListResult + bodyMapper: Mappers.AuthorizationRuleListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -767,29 +757,29 @@ const listAuthorizationRulesNextOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.nextLink, Parameters.namespaceName, - Parameters.eventHubName + Parameters.eventHubName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByNamespaceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.EventHubListResult + bodyMapper: Mappers.EventHubListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.nextLink, - Parameters.namespaceName + Parameters.namespaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/eventhub/arm-eventhub/src/operations/namespaces.ts b/sdk/eventhub/arm-eventhub/src/operations/namespaces.ts index 86a5a8b17a84..d102e3427c1b 100644 --- a/sdk/eventhub/arm-eventhub/src/operations/namespaces.ts +++ b/sdk/eventhub/arm-eventhub/src/operations/namespaces.ts @@ -16,7 +16,7 @@ import { EventHubManagementClient } from "../eventHubManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -38,6 +38,9 @@ import { NamespacesGetResponse, NamespacesUpdateOptionalParams, NamespacesUpdateResponse, + FailOver, + NamespacesFailoverOptionalParams, + NamespacesFailoverResponse, NetworkRuleSet, NamespacesCreateOrUpdateNetworkRuleSetOptionalParams, NamespacesCreateOrUpdateNetworkRuleSetResponse, @@ -60,7 +63,7 @@ import { NamespacesCheckNameAvailabilityResponse, NamespacesListNextResponse, NamespacesListByResourceGroupNextResponse, - NamespacesListAuthorizationRulesNextResponse + NamespacesListAuthorizationRulesNextResponse, } from "../models"; /// @@ -81,7 +84,7 @@ export class NamespacesImpl implements Namespaces { * @param options The options parameters. */ public list( - options?: NamespacesListOptionalParams + options?: NamespacesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -96,13 +99,13 @@ export class NamespacesImpl implements Namespaces { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: NamespacesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: NamespacesListResponse; let continuationToken = settings?.continuationToken; @@ -123,7 +126,7 @@ export class NamespacesImpl implements Namespaces { } private async *listPagingAll( - options?: NamespacesListOptionalParams + options?: NamespacesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -137,7 +140,7 @@ export class NamespacesImpl implements Namespaces { */ public listByResourceGroup( resourceGroupName: string, - options?: NamespacesListByResourceGroupOptionalParams + options?: NamespacesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -154,16 +157,16 @@ export class NamespacesImpl implements Namespaces { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: NamespacesListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: NamespacesListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -178,7 +181,7 @@ export class NamespacesImpl implements Namespaces { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -189,11 +192,11 @@ export class NamespacesImpl implements Namespaces { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: NamespacesListByResourceGroupOptionalParams + options?: NamespacesListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -208,12 +211,12 @@ export class NamespacesImpl implements Namespaces { public listAuthorizationRules( resourceGroupName: string, namespaceName: string, - options?: NamespacesListAuthorizationRulesOptionalParams + options?: NamespacesListAuthorizationRulesOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAuthorizationRulesPagingAll( resourceGroupName, namespaceName, - options + options, ); return { next() { @@ -230,9 +233,9 @@ export class NamespacesImpl implements Namespaces { resourceGroupName, namespaceName, options, - settings + settings, ); - } + }, }; } @@ -240,7 +243,7 @@ export class NamespacesImpl implements Namespaces { resourceGroupName: string, namespaceName: string, options?: NamespacesListAuthorizationRulesOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: NamespacesListAuthorizationRulesResponse; let continuationToken = settings?.continuationToken; @@ -248,7 +251,7 @@ export class NamespacesImpl implements Namespaces { result = await this._listAuthorizationRules( resourceGroupName, namespaceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -260,7 +263,7 @@ export class NamespacesImpl implements Namespaces { resourceGroupName, namespaceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -272,12 +275,12 @@ export class NamespacesImpl implements Namespaces { private async *listAuthorizationRulesPagingAll( resourceGroupName: string, namespaceName: string, - options?: NamespacesListAuthorizationRulesOptionalParams + options?: NamespacesListAuthorizationRulesOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAuthorizationRulesPagingPage( resourceGroupName, namespaceName, - options + options, )) { yield* page; } @@ -288,7 +291,7 @@ export class NamespacesImpl implements Namespaces { * @param options The options parameters. */ private _list( - options?: NamespacesListOptionalParams + options?: NamespacesListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -300,11 +303,11 @@ export class NamespacesImpl implements Namespaces { */ private _listByResourceGroup( resourceGroupName: string, - options?: NamespacesListByResourceGroupOptionalParams + options?: NamespacesListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -320,7 +323,7 @@ export class NamespacesImpl implements Namespaces { resourceGroupName: string, namespaceName: string, parameters: EHNamespace, - options?: NamespacesCreateOrUpdateOptionalParams + options?: NamespacesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -329,21 +332,20 @@ export class NamespacesImpl implements Namespaces { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -352,8 +354,8 @@ export class NamespacesImpl implements Namespaces { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -361,22 +363,23 @@ export class NamespacesImpl implements Namespaces { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, namespaceName, parameters, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< NamespacesCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -394,13 +397,13 @@ export class NamespacesImpl implements Namespaces { resourceGroupName: string, namespaceName: string, parameters: EHNamespace, - options?: NamespacesCreateOrUpdateOptionalParams + options?: NamespacesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, namespaceName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -415,25 +418,24 @@ export class NamespacesImpl implements Namespaces { async beginDelete( resourceGroupName: string, namespaceName: string, - options?: NamespacesDeleteOptionalParams + options?: NamespacesDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -442,8 +444,8 @@ export class NamespacesImpl implements Namespaces { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -451,19 +453,20 @@ export class NamespacesImpl implements Namespaces { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, namespaceName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -479,12 +482,12 @@ export class NamespacesImpl implements Namespaces { async beginDeleteAndWait( resourceGroupName: string, namespaceName: string, - options?: NamespacesDeleteOptionalParams + options?: NamespacesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, namespaceName, - options + options, ); return poller.pollUntilDone(); } @@ -498,11 +501,11 @@ export class NamespacesImpl implements Namespaces { get( resourceGroupName: string, namespaceName: string, - options?: NamespacesGetOptionalParams + options?: NamespacesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -518,12 +521,107 @@ export class NamespacesImpl implements Namespaces { resourceGroupName: string, namespaceName: string, parameters: EHNamespace, - options?: NamespacesUpdateOptionalParams + options?: NamespacesUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, parameters, options }, - updateOperationSpec + updateOperationSpec, + ); + } + + /** + * GeoDR Failover + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name + * @param parameters Parameters for updating a namespace resource. + * @param options The options parameters. + */ + async beginFailover( + resourceGroupName: string, + namespaceName: string, + parameters: FailOver, + options?: NamespacesFailoverOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + NamespacesFailoverResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, namespaceName, parameters, options }, + spec: failoverOperationSpec, + }); + const poller = await createHttpPoller< + NamespacesFailoverResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation", + }); + await poller.poll(); + return poller; + } + + /** + * GeoDR Failover + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name + * @param parameters Parameters for updating a namespace resource. + * @param options The options parameters. + */ + async beginFailoverAndWait( + resourceGroupName: string, + namespaceName: string, + parameters: FailOver, + options?: NamespacesFailoverOptionalParams, + ): Promise { + const poller = await this.beginFailover( + resourceGroupName, + namespaceName, + parameters, + options, ); + return poller.pollUntilDone(); } /** @@ -537,11 +635,11 @@ export class NamespacesImpl implements Namespaces { resourceGroupName: string, namespaceName: string, parameters: NetworkRuleSet, - options?: NamespacesCreateOrUpdateNetworkRuleSetOptionalParams + options?: NamespacesCreateOrUpdateNetworkRuleSetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, parameters, options }, - createOrUpdateNetworkRuleSetOperationSpec + createOrUpdateNetworkRuleSetOperationSpec, ); } @@ -554,11 +652,11 @@ export class NamespacesImpl implements Namespaces { getNetworkRuleSet( resourceGroupName: string, namespaceName: string, - options?: NamespacesGetNetworkRuleSetOptionalParams + options?: NamespacesGetNetworkRuleSetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, options }, - getNetworkRuleSetOperationSpec + getNetworkRuleSetOperationSpec, ); } @@ -571,11 +669,11 @@ export class NamespacesImpl implements Namespaces { listNetworkRuleSet( resourceGroupName: string, namespaceName: string, - options?: NamespacesListNetworkRuleSetOptionalParams + options?: NamespacesListNetworkRuleSetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, options }, - listNetworkRuleSetOperationSpec + listNetworkRuleSetOperationSpec, ); } @@ -588,11 +686,11 @@ export class NamespacesImpl implements Namespaces { private _listAuthorizationRules( resourceGroupName: string, namespaceName: string, - options?: NamespacesListAuthorizationRulesOptionalParams + options?: NamespacesListAuthorizationRulesOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, options }, - listAuthorizationRulesOperationSpec + listAuthorizationRulesOperationSpec, ); } @@ -609,7 +707,7 @@ export class NamespacesImpl implements Namespaces { namespaceName: string, authorizationRuleName: string, parameters: AuthorizationRule, - options?: NamespacesCreateOrUpdateAuthorizationRuleOptionalParams + options?: NamespacesCreateOrUpdateAuthorizationRuleOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -617,9 +715,9 @@ export class NamespacesImpl implements Namespaces { namespaceName, authorizationRuleName, parameters, - options + options, }, - createOrUpdateAuthorizationRuleOperationSpec + createOrUpdateAuthorizationRuleOperationSpec, ); } @@ -634,11 +732,11 @@ export class NamespacesImpl implements Namespaces { resourceGroupName: string, namespaceName: string, authorizationRuleName: string, - options?: NamespacesDeleteAuthorizationRuleOptionalParams + options?: NamespacesDeleteAuthorizationRuleOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, authorizationRuleName, options }, - deleteAuthorizationRuleOperationSpec + deleteAuthorizationRuleOperationSpec, ); } @@ -653,11 +751,11 @@ export class NamespacesImpl implements Namespaces { resourceGroupName: string, namespaceName: string, authorizationRuleName: string, - options?: NamespacesGetAuthorizationRuleOptionalParams + options?: NamespacesGetAuthorizationRuleOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, authorizationRuleName, options }, - getAuthorizationRuleOperationSpec + getAuthorizationRuleOperationSpec, ); } @@ -672,11 +770,11 @@ export class NamespacesImpl implements Namespaces { resourceGroupName: string, namespaceName: string, authorizationRuleName: string, - options?: NamespacesListKeysOptionalParams + options?: NamespacesListKeysOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, authorizationRuleName, options }, - listKeysOperationSpec + listKeysOperationSpec, ); } @@ -693,7 +791,7 @@ export class NamespacesImpl implements Namespaces { namespaceName: string, authorizationRuleName: string, parameters: RegenerateAccessKeyParameters, - options?: NamespacesRegenerateKeysOptionalParams + options?: NamespacesRegenerateKeysOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -701,9 +799,9 @@ export class NamespacesImpl implements Namespaces { namespaceName, authorizationRuleName, parameters, - options + options, }, - regenerateKeysOperationSpec + regenerateKeysOperationSpec, ); } @@ -714,11 +812,11 @@ export class NamespacesImpl implements Namespaces { */ checkNameAvailability( parameters: CheckNameAvailabilityParameter, - options?: NamespacesCheckNameAvailabilityOptionalParams + options?: NamespacesCheckNameAvailabilityOptionalParams, ): Promise { return this.client.sendOperationRequest( { parameters, options }, - checkNameAvailabilityOperationSpec + checkNameAvailabilityOperationSpec, ); } @@ -729,11 +827,11 @@ export class NamespacesImpl implements Namespaces { */ private _listNext( nextLink: string, - options?: NamespacesListNextOptionalParams + options?: NamespacesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } @@ -746,11 +844,11 @@ export class NamespacesImpl implements Namespaces { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: NamespacesListByResourceGroupNextOptionalParams + options?: NamespacesListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } @@ -765,11 +863,11 @@ export class NamespacesImpl implements Namespaces { resourceGroupName: string, namespaceName: string, nextLink: string, - options?: NamespacesListAuthorizationRulesNextOptionalParams + options?: NamespacesListAuthorizationRulesNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, nextLink, options }, - listAuthorizationRulesNextOperationSpec + listAuthorizationRulesNextOperationSpec, ); } } @@ -777,63 +875,60 @@ export class NamespacesImpl implements Namespaces { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.EventHub/namespaces", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.EventHub/namespaces", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.EHNamespaceListResult + bodyMapper: Mappers.EHNamespaceListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.EHNamespaceListResult + bodyMapper: Mappers.EHNamespaceListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.EHNamespace + bodyMapper: Mappers.EHNamespace, }, 201: { - bodyMapper: Mappers.EHNamespace + bodyMapper: Mappers.EHNamespace, }, 202: { - bodyMapper: Mappers.EHNamespace + bodyMapper: Mappers.EHNamespace, }, 204: { - bodyMapper: Mappers.EHNamespace + bodyMapper: Mappers.EHNamespace, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters1, queryParameters: [Parameters.apiVersion], @@ -841,15 +936,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.namespaceName + Parameters.namespaceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}", httpMethod: "DELETE", responses: { 200: {}, @@ -857,56 +951,54 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.namespaceName + Parameters.namespaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.EHNamespace + bodyMapper: Mappers.EHNamespace, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.namespaceName + Parameters.namespaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.EHNamespace + bodyMapper: Mappers.EHNamespace, }, 201: { - bodyMapper: Mappers.EHNamespace + bodyMapper: Mappers.EHNamespace, }, 202: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters1, queryParameters: [Parameters.apiVersion], @@ -914,137 +1006,163 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.namespaceName + Parameters.namespaceName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const failoverOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/failover", + httpMethod: "POST", + responses: { + 200: { + headersMapper: Mappers.NamespacesFailoverHeaders, + }, + 201: { + headersMapper: Mappers.NamespacesFailoverHeaders, + }, + 202: { + headersMapper: Mappers.NamespacesFailoverHeaders, + }, + 204: { + headersMapper: Mappers.NamespacesFailoverHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated, + }, + }, + requestBody: Parameters.parameters2, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.namespaceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const createOrUpdateNetworkRuleSetOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/networkRuleSets/default", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/networkRuleSets/default", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.NetworkRuleSet + bodyMapper: Mappers.NetworkRuleSet, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters2, + requestBody: Parameters.parameters3, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.namespaceName + Parameters.namespaceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getNetworkRuleSetOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/networkRuleSets/default", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/networkRuleSets/default", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NetworkRuleSet + bodyMapper: Mappers.NetworkRuleSet, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.namespaceName + Parameters.namespaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNetworkRuleSetOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/networkRuleSets", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/networkRuleSets", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NetworkRuleSetListResult + bodyMapper: Mappers.NetworkRuleSetListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.namespaceName + Parameters.namespaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAuthorizationRulesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/authorizationRules", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/authorizationRules", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AuthorizationRuleListResult + bodyMapper: Mappers.AuthorizationRuleListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.namespaceName + Parameters.namespaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateAuthorizationRuleOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.AuthorizationRule + bodyMapper: Mappers.AuthorizationRule, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters3, + requestBody: Parameters.parameters4, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.authorizationRuleName + Parameters.authorizationRuleName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteAuthorizationRuleOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1052,22 +1170,21 @@ const deleteAuthorizationRuleOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.authorizationRuleName + Parameters.authorizationRuleName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getAuthorizationRuleOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AuthorizationRule + bodyMapper: Mappers.AuthorizationRule, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1075,22 +1192,21 @@ const getAuthorizationRuleOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.authorizationRuleName + Parameters.authorizationRuleName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listKeysOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}/listKeys", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}/listKeys", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.AccessKeys + bodyMapper: Mappers.AccessKeys, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1098,112 +1214,110 @@ const listKeysOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.authorizationRuleName + Parameters.authorizationRuleName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const regenerateKeysOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}/regenerateKeys", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}/regenerateKeys", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.AccessKeys + bodyMapper: Mappers.AccessKeys, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters4, + requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.authorizationRuleName + Parameters.authorizationRuleName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.EventHub/checkNameAvailability", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.EventHub/checkNameAvailability", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.CheckNameAvailabilityResult + bodyMapper: Mappers.CheckNameAvailabilityResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters5, + requestBody: Parameters.parameters6, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.EHNamespaceListResult + bodyMapper: Mappers.EHNamespaceListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.EHNamespaceListResult + bodyMapper: Mappers.EHNamespaceListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAuthorizationRulesNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AuthorizationRuleListResult + bodyMapper: Mappers.AuthorizationRuleListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.nextLink, - Parameters.namespaceName + Parameters.namespaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/eventhub/arm-eventhub/src/operations/networkSecurityPerimeterConfigurationOperations.ts b/sdk/eventhub/arm-eventhub/src/operations/networkSecurityPerimeterConfigurationOperations.ts index 1edcaf24e20c..a4aa703d2337 100644 --- a/sdk/eventhub/arm-eventhub/src/operations/networkSecurityPerimeterConfigurationOperations.ts +++ b/sdk/eventhub/arm-eventhub/src/operations/networkSecurityPerimeterConfigurationOperations.ts @@ -13,12 +13,13 @@ import * as Parameters from "../models/parameters"; import { EventHubManagementClient } from "../eventHubManagementClient"; import { NetworkSecurityPerimeterConfigurationListOptionalParams, - NetworkSecurityPerimeterConfigurationListResponse + NetworkSecurityPerimeterConfigurationListResponse, } from "../models"; /** Class containing NetworkSecurityPerimeterConfigurationOperations operations. */ export class NetworkSecurityPerimeterConfigurationOperationsImpl - implements NetworkSecurityPerimeterConfigurationOperations { + implements NetworkSecurityPerimeterConfigurationOperations +{ private readonly client: EventHubManagementClient; /** @@ -38,11 +39,11 @@ export class NetworkSecurityPerimeterConfigurationOperationsImpl list( resourceGroupName: string, namespaceName: string, - options?: NetworkSecurityPerimeterConfigurationListOptionalParams + options?: NetworkSecurityPerimeterConfigurationListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, options }, - listOperationSpec + listOperationSpec, ); } } @@ -50,24 +51,23 @@ export class NetworkSecurityPerimeterConfigurationOperationsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/networkSecurityPerimeterConfigurations", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/networkSecurityPerimeterConfigurations", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NetworkSecurityPerimeterConfigurationList + bodyMapper: Mappers.NetworkSecurityPerimeterConfigurationList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.namespaceName + Parameters.namespaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/eventhub/arm-eventhub/src/operations/networkSecurityPerimeterConfigurations.ts b/sdk/eventhub/arm-eventhub/src/operations/networkSecurityPerimeterConfigurations.ts index 9a71cabee532..0a893ff62af4 100644 --- a/sdk/eventhub/arm-eventhub/src/operations/networkSecurityPerimeterConfigurations.ts +++ b/sdk/eventhub/arm-eventhub/src/operations/networkSecurityPerimeterConfigurations.ts @@ -14,14 +14,15 @@ import { EventHubManagementClient } from "../eventHubManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { NetworkSecurityPerimeterConfigurationsCreateOrUpdateOptionalParams } from "../models"; /** Class containing NetworkSecurityPerimeterConfigurations operations. */ export class NetworkSecurityPerimeterConfigurationsImpl - implements NetworkSecurityPerimeterConfigurations { + implements NetworkSecurityPerimeterConfigurations +{ private readonly client: EventHubManagementClient; /** @@ -43,25 +44,24 @@ export class NetworkSecurityPerimeterConfigurationsImpl resourceGroupName: string, namespaceName: string, resourceAssociationName: string, - options?: NetworkSecurityPerimeterConfigurationsCreateOrUpdateOptionalParams + options?: NetworkSecurityPerimeterConfigurationsCreateOrUpdateOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -70,8 +70,8 @@ export class NetworkSecurityPerimeterConfigurationsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -79,8 +79,8 @@ export class NetworkSecurityPerimeterConfigurationsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -90,13 +90,14 @@ export class NetworkSecurityPerimeterConfigurationsImpl resourceGroupName, namespaceName, resourceAssociationName, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -113,13 +114,13 @@ export class NetworkSecurityPerimeterConfigurationsImpl resourceGroupName: string, namespaceName: string, resourceAssociationName: string, - options?: NetworkSecurityPerimeterConfigurationsCreateOrUpdateOptionalParams + options?: NetworkSecurityPerimeterConfigurationsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, namespaceName, resourceAssociationName, - options + options, ); return poller.pollUntilDone(); } @@ -128,8 +129,7 @@ export class NetworkSecurityPerimeterConfigurationsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/networkSecurityPerimeterConfigurations/{resourceAssociationName}/reconcile", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/networkSecurityPerimeterConfigurations/{resourceAssociationName}/reconcile", httpMethod: "POST", responses: { 200: {}, @@ -137,8 +137,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -146,8 +146,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.resourceAssociationName + Parameters.resourceAssociationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/eventhub/arm-eventhub/src/operations/operations.ts b/sdk/eventhub/arm-eventhub/src/operations/operations.ts index 7603a2868b80..c7ff7017ffca 100644 --- a/sdk/eventhub/arm-eventhub/src/operations/operations.ts +++ b/sdk/eventhub/arm-eventhub/src/operations/operations.ts @@ -18,7 +18,7 @@ import { OperationsListNextOptionalParams, OperationsListOptionalParams, OperationsListResponse, - OperationsListNextResponse + OperationsListNextResponse, } from "../models"; /// @@ -39,7 +39,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ public list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -54,13 +54,13 @@ export class OperationsImpl implements Operations { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: OperationsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: OperationsListResponse; let continuationToken = settings?.continuationToken; @@ -81,7 +81,7 @@ export class OperationsImpl implements Operations { } private async *listPagingAll( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -93,7 +93,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ private _list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -105,11 +105,11 @@ export class OperationsImpl implements Operations { */ private _listNext( nextLink: string, - options?: OperationsListNextOptionalParams + options?: OperationsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -121,29 +121,29 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/eventhub/arm-eventhub/src/operations/privateEndpointConnections.ts b/sdk/eventhub/arm-eventhub/src/operations/privateEndpointConnections.ts index 53ab761dea5f..3c2a25fce8fe 100644 --- a/sdk/eventhub/arm-eventhub/src/operations/privateEndpointConnections.ts +++ b/sdk/eventhub/arm-eventhub/src/operations/privateEndpointConnections.ts @@ -16,7 +16,7 @@ import { EventHubManagementClient } from "../eventHubManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -29,13 +29,14 @@ import { PrivateEndpointConnectionsDeleteOptionalParams, PrivateEndpointConnectionsGetOptionalParams, PrivateEndpointConnectionsGetResponse, - PrivateEndpointConnectionsListNextResponse + PrivateEndpointConnectionsListNextResponse, } from "../models"; /// /** Class containing PrivateEndpointConnections operations. */ export class PrivateEndpointConnectionsImpl - implements PrivateEndpointConnections { + implements PrivateEndpointConnections +{ private readonly client: EventHubManagementClient; /** @@ -55,7 +56,7 @@ export class PrivateEndpointConnectionsImpl public list( resourceGroupName: string, namespaceName: string, - options?: PrivateEndpointConnectionsListOptionalParams + options?: PrivateEndpointConnectionsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, namespaceName, options); return { @@ -73,9 +74,9 @@ export class PrivateEndpointConnectionsImpl resourceGroupName, namespaceName, options, - settings + settings, ); - } + }, }; } @@ -83,7 +84,7 @@ export class PrivateEndpointConnectionsImpl resourceGroupName: string, namespaceName: string, options?: PrivateEndpointConnectionsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PrivateEndpointConnectionsListResponse; let continuationToken = settings?.continuationToken; @@ -99,7 +100,7 @@ export class PrivateEndpointConnectionsImpl resourceGroupName, namespaceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -111,12 +112,12 @@ export class PrivateEndpointConnectionsImpl private async *listPagingAll( resourceGroupName: string, namespaceName: string, - options?: PrivateEndpointConnectionsListOptionalParams + options?: PrivateEndpointConnectionsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, namespaceName, - options + options, )) { yield* page; } @@ -131,11 +132,11 @@ export class PrivateEndpointConnectionsImpl private _list( resourceGroupName: string, namespaceName: string, - options?: PrivateEndpointConnectionsListOptionalParams + options?: PrivateEndpointConnectionsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -153,7 +154,7 @@ export class PrivateEndpointConnectionsImpl namespaceName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, - options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams + options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -161,9 +162,9 @@ export class PrivateEndpointConnectionsImpl namespaceName, privateEndpointConnectionName, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -179,25 +180,24 @@ export class PrivateEndpointConnectionsImpl resourceGroupName: string, namespaceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsDeleteOptionalParams + options?: PrivateEndpointConnectionsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -206,8 +206,8 @@ export class PrivateEndpointConnectionsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -215,8 +215,8 @@ export class PrivateEndpointConnectionsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -226,13 +226,14 @@ export class PrivateEndpointConnectionsImpl resourceGroupName, namespaceName, privateEndpointConnectionName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -250,13 +251,13 @@ export class PrivateEndpointConnectionsImpl resourceGroupName: string, namespaceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsDeleteOptionalParams + options?: PrivateEndpointConnectionsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, namespaceName, privateEndpointConnectionName, - options + options, ); return poller.pollUntilDone(); } @@ -272,16 +273,16 @@ export class PrivateEndpointConnectionsImpl resourceGroupName: string, namespaceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsGetOptionalParams + options?: PrivateEndpointConnectionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, privateEndpointConnectionName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -296,11 +297,11 @@ export class PrivateEndpointConnectionsImpl resourceGroupName: string, namespaceName: string, nextLink: string, - options?: PrivateEndpointConnectionsListNextOptionalParams + options?: PrivateEndpointConnectionsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -308,61 +309,58 @@ export class PrivateEndpointConnectionsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/privateEndpointConnections", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/privateEndpointConnections", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnectionListResult + bodyMapper: Mappers.PrivateEndpointConnectionListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.namespaceName + Parameters.namespaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, 201: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, 202: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters6, + requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "DELETE", responses: { 200: {}, @@ -370,8 +368,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -379,22 +377,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -402,29 +399,29 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnectionListResult + bodyMapper: Mappers.PrivateEndpointConnectionListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.nextLink, - Parameters.namespaceName + Parameters.namespaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/eventhub/arm-eventhub/src/operations/privateLinkResources.ts b/sdk/eventhub/arm-eventhub/src/operations/privateLinkResources.ts index 115bafb567c4..57dcc407078e 100644 --- a/sdk/eventhub/arm-eventhub/src/operations/privateLinkResources.ts +++ b/sdk/eventhub/arm-eventhub/src/operations/privateLinkResources.ts @@ -13,7 +13,7 @@ import * as Parameters from "../models/parameters"; import { EventHubManagementClient } from "../eventHubManagementClient"; import { PrivateLinkResourcesGetOptionalParams, - PrivateLinkResourcesGetResponse + PrivateLinkResourcesGetResponse, } from "../models"; /** Class containing PrivateLinkResources operations. */ @@ -37,11 +37,11 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources { get( resourceGroupName: string, namespaceName: string, - options?: PrivateLinkResourcesGetOptionalParams + options?: PrivateLinkResourcesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, options }, - getOperationSpec + getOperationSpec, ); } } @@ -49,24 +49,23 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/privateLinkResources", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/privateLinkResources", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateLinkResourcesListResult + bodyMapper: Mappers.PrivateLinkResourcesListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.namespaceName + Parameters.namespaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/eventhub/arm-eventhub/src/operations/schemaRegistry.ts b/sdk/eventhub/arm-eventhub/src/operations/schemaRegistry.ts index e480b82b809d..f8bea4b24600 100644 --- a/sdk/eventhub/arm-eventhub/src/operations/schemaRegistry.ts +++ b/sdk/eventhub/arm-eventhub/src/operations/schemaRegistry.ts @@ -23,7 +23,7 @@ import { SchemaRegistryDeleteOptionalParams, SchemaRegistryGetOptionalParams, SchemaRegistryGetResponse, - SchemaRegistryListByNamespaceNextResponse + SchemaRegistryListByNamespaceNextResponse, } from "../models"; /// @@ -48,12 +48,12 @@ export class SchemaRegistryImpl implements SchemaRegistry { public listByNamespace( resourceGroupName: string, namespaceName: string, - options?: SchemaRegistryListByNamespaceOptionalParams + options?: SchemaRegistryListByNamespaceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByNamespacePagingAll( resourceGroupName, namespaceName, - options + options, ); return { next() { @@ -70,9 +70,9 @@ export class SchemaRegistryImpl implements SchemaRegistry { resourceGroupName, namespaceName, options, - settings + settings, ); - } + }, }; } @@ -80,7 +80,7 @@ export class SchemaRegistryImpl implements SchemaRegistry { resourceGroupName: string, namespaceName: string, options?: SchemaRegistryListByNamespaceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SchemaRegistryListByNamespaceResponse; let continuationToken = settings?.continuationToken; @@ -88,7 +88,7 @@ export class SchemaRegistryImpl implements SchemaRegistry { result = await this._listByNamespace( resourceGroupName, namespaceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -100,7 +100,7 @@ export class SchemaRegistryImpl implements SchemaRegistry { resourceGroupName, namespaceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -112,12 +112,12 @@ export class SchemaRegistryImpl implements SchemaRegistry { private async *listByNamespacePagingAll( resourceGroupName: string, namespaceName: string, - options?: SchemaRegistryListByNamespaceOptionalParams + options?: SchemaRegistryListByNamespaceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByNamespacePagingPage( resourceGroupName, namespaceName, - options + options, )) { yield* page; } @@ -132,15 +132,16 @@ export class SchemaRegistryImpl implements SchemaRegistry { private _listByNamespace( resourceGroupName: string, namespaceName: string, - options?: SchemaRegistryListByNamespaceOptionalParams + options?: SchemaRegistryListByNamespaceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, options }, - listByNamespaceOperationSpec + listByNamespaceOperationSpec, ); } /** + * Creates or Updates an EventHub schema group. * @param resourceGroupName Name of the resource group within the azure subscription. * @param namespaceName The Namespace name * @param schemaGroupName The Schema Group name @@ -152,7 +153,7 @@ export class SchemaRegistryImpl implements SchemaRegistry { namespaceName: string, schemaGroupName: string, parameters: SchemaGroup, - options?: SchemaRegistryCreateOrUpdateOptionalParams + options?: SchemaRegistryCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -160,13 +161,14 @@ export class SchemaRegistryImpl implements SchemaRegistry { namespaceName, schemaGroupName, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } /** + * Deletes an EventHub schema group. * @param resourceGroupName Name of the resource group within the azure subscription. * @param namespaceName The Namespace name * @param schemaGroupName The Schema Group name @@ -176,15 +178,16 @@ export class SchemaRegistryImpl implements SchemaRegistry { resourceGroupName: string, namespaceName: string, schemaGroupName: string, - options?: SchemaRegistryDeleteOptionalParams + options?: SchemaRegistryDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, schemaGroupName, options }, - deleteOperationSpec + deleteOperationSpec, ); } /** + * Gets the details of an EventHub schema group. * @param resourceGroupName Name of the resource group within the azure subscription. * @param namespaceName The Namespace name * @param schemaGroupName The Schema Group name @@ -194,11 +197,11 @@ export class SchemaRegistryImpl implements SchemaRegistry { resourceGroupName: string, namespaceName: string, schemaGroupName: string, - options?: SchemaRegistryGetOptionalParams + options?: SchemaRegistryGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, schemaGroupName, options }, - getOperationSpec + getOperationSpec, ); } @@ -213,11 +216,11 @@ export class SchemaRegistryImpl implements SchemaRegistry { resourceGroupName: string, namespaceName: string, nextLink: string, - options?: SchemaRegistryListByNamespaceNextOptionalParams + options?: SchemaRegistryListByNamespaceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, namespaceName, nextLink, options }, - listByNamespaceNextOperationSpec + listByNamespaceNextOperationSpec, ); } } @@ -225,62 +228,59 @@ export class SchemaRegistryImpl implements SchemaRegistry { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByNamespaceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/schemagroups", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/schemagroups", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SchemaGroupListResult + bodyMapper: Mappers.SchemaGroupListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.top], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.namespaceName + Parameters.namespaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/schemagroups/{schemaGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/schemagroups/{schemaGroupName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.SchemaGroup + bodyMapper: Mappers.SchemaGroup, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters11, + requestBody: Parameters.parameters12, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.schemaGroupName + Parameters.schemaGroupName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/schemagroups/{schemaGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/schemagroups/{schemaGroupName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -288,22 +288,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.schemaGroupName + Parameters.schemaGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/schemagroups/{schemaGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/schemagroups/{schemaGroupName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SchemaGroup + bodyMapper: Mappers.SchemaGroup, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -311,29 +310,29 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.namespaceName, - Parameters.schemaGroupName + Parameters.schemaGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByNamespaceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SchemaGroupListResult + bodyMapper: Mappers.SchemaGroupListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.nextLink, - Parameters.namespaceName + Parameters.namespaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/eventhub/arm-eventhub/src/operationsInterfaces/applicationGroupOperations.ts b/sdk/eventhub/arm-eventhub/src/operationsInterfaces/applicationGroupOperations.ts index d0169847b7fd..543bfffcb3e2 100644 --- a/sdk/eventhub/arm-eventhub/src/operationsInterfaces/applicationGroupOperations.ts +++ b/sdk/eventhub/arm-eventhub/src/operationsInterfaces/applicationGroupOperations.ts @@ -14,7 +14,7 @@ import { ApplicationGroupCreateOrUpdateApplicationGroupResponse, ApplicationGroupDeleteOptionalParams, ApplicationGroupGetOptionalParams, - ApplicationGroupGetResponse + ApplicationGroupGetResponse, } from "../models"; /// @@ -29,7 +29,7 @@ export interface ApplicationGroupOperations { listByNamespace( resourceGroupName: string, namespaceName: string, - options?: ApplicationGroupListByNamespaceOptionalParams + options?: ApplicationGroupListByNamespaceOptionalParams, ): PagedAsyncIterableIterator; /** * Creates or updates an ApplicationGroup for a Namespace. @@ -44,7 +44,7 @@ export interface ApplicationGroupOperations { namespaceName: string, applicationGroupName: string, parameters: ApplicationGroup, - options?: ApplicationGroupCreateOrUpdateApplicationGroupOptionalParams + options?: ApplicationGroupCreateOrUpdateApplicationGroupOptionalParams, ): Promise; /** * Deletes an ApplicationGroup for a Namespace. @@ -57,7 +57,7 @@ export interface ApplicationGroupOperations { resourceGroupName: string, namespaceName: string, applicationGroupName: string, - options?: ApplicationGroupDeleteOptionalParams + options?: ApplicationGroupDeleteOptionalParams, ): Promise; /** * Gets an ApplicationGroup for a Namespace. @@ -70,6 +70,6 @@ export interface ApplicationGroupOperations { resourceGroupName: string, namespaceName: string, applicationGroupName: string, - options?: ApplicationGroupGetOptionalParams + options?: ApplicationGroupGetOptionalParams, ): Promise; } diff --git a/sdk/eventhub/arm-eventhub/src/operationsInterfaces/clusters.ts b/sdk/eventhub/arm-eventhub/src/operationsInterfaces/clusters.ts index 468c81b6ed11..a85286be218b 100644 --- a/sdk/eventhub/arm-eventhub/src/operationsInterfaces/clusters.ts +++ b/sdk/eventhub/arm-eventhub/src/operationsInterfaces/clusters.ts @@ -22,7 +22,7 @@ import { ClustersUpdateResponse, ClustersDeleteOptionalParams, ClustersListNamespacesOptionalParams, - ClustersListNamespacesResponse + ClustersListNamespacesResponse, } from "../models"; /// @@ -33,7 +33,7 @@ export interface Clusters { * @param options The options parameters. */ listBySubscription( - options?: ClustersListBySubscriptionOptionalParams + options?: ClustersListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Lists the available Event Hubs Clusters within an ARM resource group @@ -42,14 +42,14 @@ export interface Clusters { */ listByResourceGroup( resourceGroupName: string, - options?: ClustersListByResourceGroupOptionalParams + options?: ClustersListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * List the quantity of available pre-provisioned Event Hubs Clusters, indexed by Azure region. * @param options The options parameters. */ listAvailableClusterRegion( - options?: ClustersListAvailableClusterRegionOptionalParams + options?: ClustersListAvailableClusterRegionOptionalParams, ): Promise; /** * Gets the resource description of the specified Event Hubs Cluster. @@ -60,7 +60,7 @@ export interface Clusters { get( resourceGroupName: string, clusterName: string, - options?: ClustersGetOptionalParams + options?: ClustersGetOptionalParams, ): Promise; /** * Creates or updates an instance of an Event Hubs Cluster. @@ -73,7 +73,7 @@ export interface Clusters { resourceGroupName: string, clusterName: string, parameters: Cluster, - options?: ClustersCreateOrUpdateOptionalParams + options?: ClustersCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -91,7 +91,7 @@ export interface Clusters { resourceGroupName: string, clusterName: string, parameters: Cluster, - options?: ClustersCreateOrUpdateOptionalParams + options?: ClustersCreateOrUpdateOptionalParams, ): Promise; /** * Modifies mutable properties on the Event Hubs Cluster. This operation is idempotent. @@ -104,7 +104,7 @@ export interface Clusters { resourceGroupName: string, clusterName: string, parameters: Cluster, - options?: ClustersUpdateOptionalParams + options?: ClustersUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -122,7 +122,7 @@ export interface Clusters { resourceGroupName: string, clusterName: string, parameters: Cluster, - options?: ClustersUpdateOptionalParams + options?: ClustersUpdateOptionalParams, ): Promise; /** * Deletes an existing Event Hubs Cluster. This operation is idempotent. @@ -133,7 +133,7 @@ export interface Clusters { beginDelete( resourceGroupName: string, clusterName: string, - options?: ClustersDeleteOptionalParams + options?: ClustersDeleteOptionalParams, ): Promise, void>>; /** * Deletes an existing Event Hubs Cluster. This operation is idempotent. @@ -144,7 +144,7 @@ export interface Clusters { beginDeleteAndWait( resourceGroupName: string, clusterName: string, - options?: ClustersDeleteOptionalParams + options?: ClustersDeleteOptionalParams, ): Promise; /** * List all Event Hubs Namespace IDs in an Event Hubs Dedicated Cluster. @@ -155,6 +155,6 @@ export interface Clusters { listNamespaces( resourceGroupName: string, clusterName: string, - options?: ClustersListNamespacesOptionalParams + options?: ClustersListNamespacesOptionalParams, ): Promise; } diff --git a/sdk/eventhub/arm-eventhub/src/operationsInterfaces/configuration.ts b/sdk/eventhub/arm-eventhub/src/operationsInterfaces/configuration.ts index 024da8b7a85d..2cf6f91a3288 100644 --- a/sdk/eventhub/arm-eventhub/src/operationsInterfaces/configuration.ts +++ b/sdk/eventhub/arm-eventhub/src/operationsInterfaces/configuration.ts @@ -11,7 +11,7 @@ import { ConfigurationPatchOptionalParams, ConfigurationPatchResponse, ConfigurationGetOptionalParams, - ConfigurationGetResponse + ConfigurationGetResponse, } from "../models"; /** Interface representing a Configuration. */ @@ -28,7 +28,7 @@ export interface Configuration { resourceGroupName: string, clusterName: string, parameters: ClusterQuotaConfigurationProperties, - options?: ConfigurationPatchOptionalParams + options?: ConfigurationPatchOptionalParams, ): Promise; /** * Get all Event Hubs Cluster settings - a collection of key/value pairs which represent the quotas and @@ -40,6 +40,6 @@ export interface Configuration { get( resourceGroupName: string, clusterName: string, - options?: ConfigurationGetOptionalParams + options?: ConfigurationGetOptionalParams, ): Promise; } diff --git a/sdk/eventhub/arm-eventhub/src/operationsInterfaces/consumerGroups.ts b/sdk/eventhub/arm-eventhub/src/operationsInterfaces/consumerGroups.ts index d0ee2f0c893f..f1152cb3730c 100644 --- a/sdk/eventhub/arm-eventhub/src/operationsInterfaces/consumerGroups.ts +++ b/sdk/eventhub/arm-eventhub/src/operationsInterfaces/consumerGroups.ts @@ -14,7 +14,7 @@ import { ConsumerGroupsCreateOrUpdateResponse, ConsumerGroupsDeleteOptionalParams, ConsumerGroupsGetOptionalParams, - ConsumerGroupsGetResponse + ConsumerGroupsGetResponse, } from "../models"; /// @@ -32,7 +32,7 @@ export interface ConsumerGroups { resourceGroupName: string, namespaceName: string, eventHubName: string, - options?: ConsumerGroupsListByEventHubOptionalParams + options?: ConsumerGroupsListByEventHubOptionalParams, ): PagedAsyncIterableIterator; /** * Creates or updates an Event Hubs consumer group as a nested resource within a Namespace. @@ -49,7 +49,7 @@ export interface ConsumerGroups { eventHubName: string, consumerGroupName: string, parameters: ConsumerGroup, - options?: ConsumerGroupsCreateOrUpdateOptionalParams + options?: ConsumerGroupsCreateOrUpdateOptionalParams, ): Promise; /** * Deletes a consumer group from the specified Event Hub and resource group. @@ -64,7 +64,7 @@ export interface ConsumerGroups { namespaceName: string, eventHubName: string, consumerGroupName: string, - options?: ConsumerGroupsDeleteOptionalParams + options?: ConsumerGroupsDeleteOptionalParams, ): Promise; /** * Gets a description for the specified consumer group. @@ -79,6 +79,6 @@ export interface ConsumerGroups { namespaceName: string, eventHubName: string, consumerGroupName: string, - options?: ConsumerGroupsGetOptionalParams + options?: ConsumerGroupsGetOptionalParams, ): Promise; } diff --git a/sdk/eventhub/arm-eventhub/src/operationsInterfaces/disasterRecoveryConfigs.ts b/sdk/eventhub/arm-eventhub/src/operationsInterfaces/disasterRecoveryConfigs.ts index c7a03e36cf06..18425114e133 100644 --- a/sdk/eventhub/arm-eventhub/src/operationsInterfaces/disasterRecoveryConfigs.ts +++ b/sdk/eventhub/arm-eventhub/src/operationsInterfaces/disasterRecoveryConfigs.ts @@ -25,7 +25,7 @@ import { DisasterRecoveryConfigsGetOptionalParams, DisasterRecoveryConfigsGetResponse, DisasterRecoveryConfigsBreakPairingOptionalParams, - DisasterRecoveryConfigsFailOverOptionalParams + DisasterRecoveryConfigsFailOverOptionalParams, } from "../models"; /// @@ -42,7 +42,7 @@ export interface DisasterRecoveryConfigs { resourceGroupName: string, namespaceName: string, alias: string, - options?: DisasterRecoveryConfigsListAuthorizationRulesOptionalParams + options?: DisasterRecoveryConfigsListAuthorizationRulesOptionalParams, ): PagedAsyncIterableIterator; /** * Gets all Alias(Disaster Recovery configurations) @@ -53,7 +53,7 @@ export interface DisasterRecoveryConfigs { list( resourceGroupName: string, namespaceName: string, - options?: DisasterRecoveryConfigsListOptionalParams + options?: DisasterRecoveryConfigsListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets an AuthorizationRule for a Namespace by rule name. @@ -68,7 +68,7 @@ export interface DisasterRecoveryConfigs { namespaceName: string, alias: string, authorizationRuleName: string, - options?: DisasterRecoveryConfigsGetAuthorizationRuleOptionalParams + options?: DisasterRecoveryConfigsGetAuthorizationRuleOptionalParams, ): Promise; /** * Gets the primary and secondary connection strings for the Namespace. @@ -83,7 +83,7 @@ export interface DisasterRecoveryConfigs { namespaceName: string, alias: string, authorizationRuleName: string, - options?: DisasterRecoveryConfigsListKeysOptionalParams + options?: DisasterRecoveryConfigsListKeysOptionalParams, ): Promise; /** * Check the give Namespace name availability. @@ -96,7 +96,7 @@ export interface DisasterRecoveryConfigs { resourceGroupName: string, namespaceName: string, parameters: CheckNameAvailabilityParameter, - options?: DisasterRecoveryConfigsCheckNameAvailabilityOptionalParams + options?: DisasterRecoveryConfigsCheckNameAvailabilityOptionalParams, ): Promise; /** * Creates or updates a new Alias(Disaster Recovery configuration) @@ -111,7 +111,7 @@ export interface DisasterRecoveryConfigs { namespaceName: string, alias: string, parameters: ArmDisasterRecovery, - options?: DisasterRecoveryConfigsCreateOrUpdateOptionalParams + options?: DisasterRecoveryConfigsCreateOrUpdateOptionalParams, ): Promise; /** * Deletes an Alias(Disaster Recovery configuration) @@ -124,7 +124,7 @@ export interface DisasterRecoveryConfigs { resourceGroupName: string, namespaceName: string, alias: string, - options?: DisasterRecoveryConfigsDeleteOptionalParams + options?: DisasterRecoveryConfigsDeleteOptionalParams, ): Promise; /** * Retrieves Alias(Disaster Recovery configuration) for primary or secondary namespace @@ -137,7 +137,7 @@ export interface DisasterRecoveryConfigs { resourceGroupName: string, namespaceName: string, alias: string, - options?: DisasterRecoveryConfigsGetOptionalParams + options?: DisasterRecoveryConfigsGetOptionalParams, ): Promise; /** * This operation disables the Disaster Recovery and stops replicating changes from primary to @@ -151,7 +151,7 @@ export interface DisasterRecoveryConfigs { resourceGroupName: string, namespaceName: string, alias: string, - options?: DisasterRecoveryConfigsBreakPairingOptionalParams + options?: DisasterRecoveryConfigsBreakPairingOptionalParams, ): Promise; /** * Invokes GEO DR failover and reconfigure the alias to point to the secondary namespace @@ -164,6 +164,6 @@ export interface DisasterRecoveryConfigs { resourceGroupName: string, namespaceName: string, alias: string, - options?: DisasterRecoveryConfigsFailOverOptionalParams + options?: DisasterRecoveryConfigsFailOverOptionalParams, ): Promise; } diff --git a/sdk/eventhub/arm-eventhub/src/operationsInterfaces/eventHubs.ts b/sdk/eventhub/arm-eventhub/src/operationsInterfaces/eventHubs.ts index 07f6d801c161..20389a5d4a9b 100644 --- a/sdk/eventhub/arm-eventhub/src/operationsInterfaces/eventHubs.ts +++ b/sdk/eventhub/arm-eventhub/src/operationsInterfaces/eventHubs.ts @@ -26,7 +26,7 @@ import { EventHubsCreateOrUpdateResponse, EventHubsDeleteOptionalParams, EventHubsGetOptionalParams, - EventHubsGetResponse + EventHubsGetResponse, } from "../models"; /// @@ -43,7 +43,7 @@ export interface EventHubs { resourceGroupName: string, namespaceName: string, eventHubName: string, - options?: EventHubsListAuthorizationRulesOptionalParams + options?: EventHubsListAuthorizationRulesOptionalParams, ): PagedAsyncIterableIterator; /** * Gets all the Event Hubs in a Namespace. @@ -54,7 +54,7 @@ export interface EventHubs { listByNamespace( resourceGroupName: string, namespaceName: string, - options?: EventHubsListByNamespaceOptionalParams + options?: EventHubsListByNamespaceOptionalParams, ): PagedAsyncIterableIterator; /** * Creates or updates an AuthorizationRule for the specified Event Hub. Creation/update of the @@ -72,7 +72,7 @@ export interface EventHubs { eventHubName: string, authorizationRuleName: string, parameters: AuthorizationRule, - options?: EventHubsCreateOrUpdateAuthorizationRuleOptionalParams + options?: EventHubsCreateOrUpdateAuthorizationRuleOptionalParams, ): Promise; /** * Gets an AuthorizationRule for an Event Hub by rule name. @@ -87,7 +87,7 @@ export interface EventHubs { namespaceName: string, eventHubName: string, authorizationRuleName: string, - options?: EventHubsGetAuthorizationRuleOptionalParams + options?: EventHubsGetAuthorizationRuleOptionalParams, ): Promise; /** * Deletes an Event Hub AuthorizationRule. @@ -102,7 +102,7 @@ export interface EventHubs { namespaceName: string, eventHubName: string, authorizationRuleName: string, - options?: EventHubsDeleteAuthorizationRuleOptionalParams + options?: EventHubsDeleteAuthorizationRuleOptionalParams, ): Promise; /** * Gets the ACS and SAS connection strings for the Event Hub. @@ -117,7 +117,7 @@ export interface EventHubs { namespaceName: string, eventHubName: string, authorizationRuleName: string, - options?: EventHubsListKeysOptionalParams + options?: EventHubsListKeysOptionalParams, ): Promise; /** * Regenerates the ACS and SAS connection strings for the Event Hub. @@ -135,7 +135,7 @@ export interface EventHubs { eventHubName: string, authorizationRuleName: string, parameters: RegenerateAccessKeyParameters, - options?: EventHubsRegenerateKeysOptionalParams + options?: EventHubsRegenerateKeysOptionalParams, ): Promise; /** * Creates or updates a new Event Hub as a nested resource within a Namespace. @@ -150,7 +150,7 @@ export interface EventHubs { namespaceName: string, eventHubName: string, parameters: Eventhub, - options?: EventHubsCreateOrUpdateOptionalParams + options?: EventHubsCreateOrUpdateOptionalParams, ): Promise; /** * Deletes an Event Hub from the specified Namespace and resource group. @@ -163,7 +163,7 @@ export interface EventHubs { resourceGroupName: string, namespaceName: string, eventHubName: string, - options?: EventHubsDeleteOptionalParams + options?: EventHubsDeleteOptionalParams, ): Promise; /** * Gets an Event Hubs description for the specified Event Hub. @@ -176,6 +176,6 @@ export interface EventHubs { resourceGroupName: string, namespaceName: string, eventHubName: string, - options?: EventHubsGetOptionalParams + options?: EventHubsGetOptionalParams, ): Promise; } diff --git a/sdk/eventhub/arm-eventhub/src/operationsInterfaces/namespaces.ts b/sdk/eventhub/arm-eventhub/src/operationsInterfaces/namespaces.ts index 572584311f3e..cc7610a9e5b8 100644 --- a/sdk/eventhub/arm-eventhub/src/operationsInterfaces/namespaces.ts +++ b/sdk/eventhub/arm-eventhub/src/operationsInterfaces/namespaces.ts @@ -21,6 +21,9 @@ import { NamespacesGetResponse, NamespacesUpdateOptionalParams, NamespacesUpdateResponse, + FailOver, + NamespacesFailoverOptionalParams, + NamespacesFailoverResponse, NetworkRuleSet, NamespacesCreateOrUpdateNetworkRuleSetOptionalParams, NamespacesCreateOrUpdateNetworkRuleSetResponse, @@ -40,7 +43,7 @@ import { NamespacesRegenerateKeysResponse, CheckNameAvailabilityParameter, NamespacesCheckNameAvailabilityOptionalParams, - NamespacesCheckNameAvailabilityResponse + NamespacesCheckNameAvailabilityResponse, } from "../models"; /// @@ -51,7 +54,7 @@ export interface Namespaces { * @param options The options parameters. */ list( - options?: NamespacesListOptionalParams + options?: NamespacesListOptionalParams, ): PagedAsyncIterableIterator; /** * Lists the available Namespaces within a resource group. @@ -60,7 +63,7 @@ export interface Namespaces { */ listByResourceGroup( resourceGroupName: string, - options?: NamespacesListByResourceGroupOptionalParams + options?: NamespacesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Gets a list of authorization rules for a Namespace. @@ -71,7 +74,7 @@ export interface Namespaces { listAuthorizationRules( resourceGroupName: string, namespaceName: string, - options?: NamespacesListAuthorizationRulesOptionalParams + options?: NamespacesListAuthorizationRulesOptionalParams, ): PagedAsyncIterableIterator; /** * Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This @@ -85,7 +88,7 @@ export interface Namespaces { resourceGroupName: string, namespaceName: string, parameters: EHNamespace, - options?: NamespacesCreateOrUpdateOptionalParams + options?: NamespacesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -104,7 +107,7 @@ export interface Namespaces { resourceGroupName: string, namespaceName: string, parameters: EHNamespace, - options?: NamespacesCreateOrUpdateOptionalParams + options?: NamespacesCreateOrUpdateOptionalParams, ): Promise; /** * Deletes an existing namespace. This operation also removes all associated resources under the @@ -116,7 +119,7 @@ export interface Namespaces { beginDelete( resourceGroupName: string, namespaceName: string, - options?: NamespacesDeleteOptionalParams + options?: NamespacesDeleteOptionalParams, ): Promise, void>>; /** * Deletes an existing namespace. This operation also removes all associated resources under the @@ -128,7 +131,7 @@ export interface Namespaces { beginDeleteAndWait( resourceGroupName: string, namespaceName: string, - options?: NamespacesDeleteOptionalParams + options?: NamespacesDeleteOptionalParams, ): Promise; /** * Gets the description of the specified namespace. @@ -139,7 +142,7 @@ export interface Namespaces { get( resourceGroupName: string, namespaceName: string, - options?: NamespacesGetOptionalParams + options?: NamespacesGetOptionalParams, ): Promise; /** * Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This @@ -153,8 +156,39 @@ export interface Namespaces { resourceGroupName: string, namespaceName: string, parameters: EHNamespace, - options?: NamespacesUpdateOptionalParams + options?: NamespacesUpdateOptionalParams, ): Promise; + /** + * GeoDR Failover + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name + * @param parameters Parameters for updating a namespace resource. + * @param options The options parameters. + */ + beginFailover( + resourceGroupName: string, + namespaceName: string, + parameters: FailOver, + options?: NamespacesFailoverOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + NamespacesFailoverResponse + > + >; + /** + * GeoDR Failover + * @param resourceGroupName Name of the resource group within the azure subscription. + * @param namespaceName The Namespace name + * @param parameters Parameters for updating a namespace resource. + * @param options The options parameters. + */ + beginFailoverAndWait( + resourceGroupName: string, + namespaceName: string, + parameters: FailOver, + options?: NamespacesFailoverOptionalParams, + ): Promise; /** * Create or update NetworkRuleSet for a Namespace. * @param resourceGroupName Name of the resource group within the azure subscription. @@ -166,7 +200,7 @@ export interface Namespaces { resourceGroupName: string, namespaceName: string, parameters: NetworkRuleSet, - options?: NamespacesCreateOrUpdateNetworkRuleSetOptionalParams + options?: NamespacesCreateOrUpdateNetworkRuleSetOptionalParams, ): Promise; /** * Gets NetworkRuleSet for a Namespace. @@ -177,7 +211,7 @@ export interface Namespaces { getNetworkRuleSet( resourceGroupName: string, namespaceName: string, - options?: NamespacesGetNetworkRuleSetOptionalParams + options?: NamespacesGetNetworkRuleSetOptionalParams, ): Promise; /** * Gets NetworkRuleSet for a Namespace. @@ -188,7 +222,7 @@ export interface Namespaces { listNetworkRuleSet( resourceGroupName: string, namespaceName: string, - options?: NamespacesListNetworkRuleSetOptionalParams + options?: NamespacesListNetworkRuleSetOptionalParams, ): Promise; /** * Creates or updates an AuthorizationRule for a Namespace. @@ -203,7 +237,7 @@ export interface Namespaces { namespaceName: string, authorizationRuleName: string, parameters: AuthorizationRule, - options?: NamespacesCreateOrUpdateAuthorizationRuleOptionalParams + options?: NamespacesCreateOrUpdateAuthorizationRuleOptionalParams, ): Promise; /** * Deletes an AuthorizationRule for a Namespace. @@ -216,7 +250,7 @@ export interface Namespaces { resourceGroupName: string, namespaceName: string, authorizationRuleName: string, - options?: NamespacesDeleteAuthorizationRuleOptionalParams + options?: NamespacesDeleteAuthorizationRuleOptionalParams, ): Promise; /** * Gets an AuthorizationRule for a Namespace by rule name. @@ -229,7 +263,7 @@ export interface Namespaces { resourceGroupName: string, namespaceName: string, authorizationRuleName: string, - options?: NamespacesGetAuthorizationRuleOptionalParams + options?: NamespacesGetAuthorizationRuleOptionalParams, ): Promise; /** * Gets the primary and secondary connection strings for the Namespace. @@ -242,7 +276,7 @@ export interface Namespaces { resourceGroupName: string, namespaceName: string, authorizationRuleName: string, - options?: NamespacesListKeysOptionalParams + options?: NamespacesListKeysOptionalParams, ): Promise; /** * Regenerates the primary or secondary connection strings for the specified Namespace. @@ -257,7 +291,7 @@ export interface Namespaces { namespaceName: string, authorizationRuleName: string, parameters: RegenerateAccessKeyParameters, - options?: NamespacesRegenerateKeysOptionalParams + options?: NamespacesRegenerateKeysOptionalParams, ): Promise; /** * Check the give Namespace name availability. @@ -266,6 +300,6 @@ export interface Namespaces { */ checkNameAvailability( parameters: CheckNameAvailabilityParameter, - options?: NamespacesCheckNameAvailabilityOptionalParams + options?: NamespacesCheckNameAvailabilityOptionalParams, ): Promise; } diff --git a/sdk/eventhub/arm-eventhub/src/operationsInterfaces/networkSecurityPerimeterConfigurationOperations.ts b/sdk/eventhub/arm-eventhub/src/operationsInterfaces/networkSecurityPerimeterConfigurationOperations.ts index 6a1c7df4d5fd..67b5190e7ccf 100644 --- a/sdk/eventhub/arm-eventhub/src/operationsInterfaces/networkSecurityPerimeterConfigurationOperations.ts +++ b/sdk/eventhub/arm-eventhub/src/operationsInterfaces/networkSecurityPerimeterConfigurationOperations.ts @@ -8,7 +8,7 @@ import { NetworkSecurityPerimeterConfigurationListOptionalParams, - NetworkSecurityPerimeterConfigurationListResponse + NetworkSecurityPerimeterConfigurationListResponse, } from "../models"; /** Interface representing a NetworkSecurityPerimeterConfigurationOperations. */ @@ -22,6 +22,6 @@ export interface NetworkSecurityPerimeterConfigurationOperations { list( resourceGroupName: string, namespaceName: string, - options?: NetworkSecurityPerimeterConfigurationListOptionalParams + options?: NetworkSecurityPerimeterConfigurationListOptionalParams, ): Promise; } diff --git a/sdk/eventhub/arm-eventhub/src/operationsInterfaces/networkSecurityPerimeterConfigurations.ts b/sdk/eventhub/arm-eventhub/src/operationsInterfaces/networkSecurityPerimeterConfigurations.ts index d9afd4fd48a2..8091013150e1 100644 --- a/sdk/eventhub/arm-eventhub/src/operationsInterfaces/networkSecurityPerimeterConfigurations.ts +++ b/sdk/eventhub/arm-eventhub/src/operationsInterfaces/networkSecurityPerimeterConfigurations.ts @@ -22,7 +22,7 @@ export interface NetworkSecurityPerimeterConfigurations { resourceGroupName: string, namespaceName: string, resourceAssociationName: string, - options?: NetworkSecurityPerimeterConfigurationsCreateOrUpdateOptionalParams + options?: NetworkSecurityPerimeterConfigurationsCreateOrUpdateOptionalParams, ): Promise, void>>; /** * Refreshes any information about the association. @@ -35,6 +35,6 @@ export interface NetworkSecurityPerimeterConfigurations { resourceGroupName: string, namespaceName: string, resourceAssociationName: string, - options?: NetworkSecurityPerimeterConfigurationsCreateOrUpdateOptionalParams + options?: NetworkSecurityPerimeterConfigurationsCreateOrUpdateOptionalParams, ): Promise; } diff --git a/sdk/eventhub/arm-eventhub/src/operationsInterfaces/operations.ts b/sdk/eventhub/arm-eventhub/src/operationsInterfaces/operations.ts index d17b96f02fe7..19f24765117a 100644 --- a/sdk/eventhub/arm-eventhub/src/operationsInterfaces/operations.ts +++ b/sdk/eventhub/arm-eventhub/src/operationsInterfaces/operations.ts @@ -17,6 +17,6 @@ export interface Operations { * @param options The options parameters. */ list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/eventhub/arm-eventhub/src/operationsInterfaces/privateEndpointConnections.ts b/sdk/eventhub/arm-eventhub/src/operationsInterfaces/privateEndpointConnections.ts index 11af5fe868d6..8eaf7b9472a8 100644 --- a/sdk/eventhub/arm-eventhub/src/operationsInterfaces/privateEndpointConnections.ts +++ b/sdk/eventhub/arm-eventhub/src/operationsInterfaces/privateEndpointConnections.ts @@ -15,7 +15,7 @@ import { PrivateEndpointConnectionsCreateOrUpdateResponse, PrivateEndpointConnectionsDeleteOptionalParams, PrivateEndpointConnectionsGetOptionalParams, - PrivateEndpointConnectionsGetResponse + PrivateEndpointConnectionsGetResponse, } from "../models"; /// @@ -30,7 +30,7 @@ export interface PrivateEndpointConnections { list( resourceGroupName: string, namespaceName: string, - options?: PrivateEndpointConnectionsListOptionalParams + options?: PrivateEndpointConnectionsListOptionalParams, ): PagedAsyncIterableIterator; /** * Creates or updates PrivateEndpointConnections of service namespace. @@ -46,7 +46,7 @@ export interface PrivateEndpointConnections { namespaceName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, - options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams + options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams, ): Promise; /** * Deletes an existing namespace. This operation also removes all associated resources under the @@ -60,7 +60,7 @@ export interface PrivateEndpointConnections { resourceGroupName: string, namespaceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsDeleteOptionalParams + options?: PrivateEndpointConnectionsDeleteOptionalParams, ): Promise, void>>; /** * Deletes an existing namespace. This operation also removes all associated resources under the @@ -74,7 +74,7 @@ export interface PrivateEndpointConnections { resourceGroupName: string, namespaceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsDeleteOptionalParams + options?: PrivateEndpointConnectionsDeleteOptionalParams, ): Promise; /** * Gets a description for the specified Private Endpoint Connection name. @@ -87,6 +87,6 @@ export interface PrivateEndpointConnections { resourceGroupName: string, namespaceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsGetOptionalParams + options?: PrivateEndpointConnectionsGetOptionalParams, ): Promise; } diff --git a/sdk/eventhub/arm-eventhub/src/operationsInterfaces/privateLinkResources.ts b/sdk/eventhub/arm-eventhub/src/operationsInterfaces/privateLinkResources.ts index b1092fad65fb..999c1a2a79c2 100644 --- a/sdk/eventhub/arm-eventhub/src/operationsInterfaces/privateLinkResources.ts +++ b/sdk/eventhub/arm-eventhub/src/operationsInterfaces/privateLinkResources.ts @@ -8,7 +8,7 @@ import { PrivateLinkResourcesGetOptionalParams, - PrivateLinkResourcesGetResponse + PrivateLinkResourcesGetResponse, } from "../models"; /** Interface representing a PrivateLinkResources. */ @@ -22,6 +22,6 @@ export interface PrivateLinkResources { get( resourceGroupName: string, namespaceName: string, - options?: PrivateLinkResourcesGetOptionalParams + options?: PrivateLinkResourcesGetOptionalParams, ): Promise; } diff --git a/sdk/eventhub/arm-eventhub/src/operationsInterfaces/schemaRegistry.ts b/sdk/eventhub/arm-eventhub/src/operationsInterfaces/schemaRegistry.ts index a3d0a0b7f400..6b048574b105 100644 --- a/sdk/eventhub/arm-eventhub/src/operationsInterfaces/schemaRegistry.ts +++ b/sdk/eventhub/arm-eventhub/src/operationsInterfaces/schemaRegistry.ts @@ -14,7 +14,7 @@ import { SchemaRegistryCreateOrUpdateResponse, SchemaRegistryDeleteOptionalParams, SchemaRegistryGetOptionalParams, - SchemaRegistryGetResponse + SchemaRegistryGetResponse, } from "../models"; /// @@ -29,9 +29,10 @@ export interface SchemaRegistry { listByNamespace( resourceGroupName: string, namespaceName: string, - options?: SchemaRegistryListByNamespaceOptionalParams + options?: SchemaRegistryListByNamespaceOptionalParams, ): PagedAsyncIterableIterator; /** + * Creates or Updates an EventHub schema group. * @param resourceGroupName Name of the resource group within the azure subscription. * @param namespaceName The Namespace name * @param schemaGroupName The Schema Group name @@ -43,9 +44,10 @@ export interface SchemaRegistry { namespaceName: string, schemaGroupName: string, parameters: SchemaGroup, - options?: SchemaRegistryCreateOrUpdateOptionalParams + options?: SchemaRegistryCreateOrUpdateOptionalParams, ): Promise; /** + * Deletes an EventHub schema group. * @param resourceGroupName Name of the resource group within the azure subscription. * @param namespaceName The Namespace name * @param schemaGroupName The Schema Group name @@ -55,9 +57,10 @@ export interface SchemaRegistry { resourceGroupName: string, namespaceName: string, schemaGroupName: string, - options?: SchemaRegistryDeleteOptionalParams + options?: SchemaRegistryDeleteOptionalParams, ): Promise; /** + * Gets the details of an EventHub schema group. * @param resourceGroupName Name of the resource group within the azure subscription. * @param namespaceName The Namespace name * @param schemaGroupName The Schema Group name @@ -67,6 +70,6 @@ export interface SchemaRegistry { resourceGroupName: string, namespaceName: string, schemaGroupName: string, - options?: SchemaRegistryGetOptionalParams + options?: SchemaRegistryGetOptionalParams, ): Promise; } diff --git a/sdk/eventhub/arm-eventhub/src/pagingHelper.ts b/sdk/eventhub/arm-eventhub/src/pagingHelper.ts index 269a2b9814b5..205cccc26592 100644 --- a/sdk/eventhub/arm-eventhub/src/pagingHelper.ts +++ b/sdk/eventhub/arm-eventhub/src/pagingHelper.ts @@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined { export function setContinuationToken( page: unknown, - continuationToken: string | undefined + continuationToken: string | undefined, ): void { if (typeof page !== "object" || page === null || !continuationToken) { return; diff --git a/sdk/eventhub/arm-eventhub/test/sampleTest.ts b/sdk/eventhub/arm-eventhub/test/sampleTest.ts new file mode 100644 index 000000000000..d64be981b694 --- /dev/null +++ b/sdk/eventhub/arm-eventhub/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + Recorder, + RecorderStartOptions, + env, +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id", +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables, +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function (this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function () { + await recorder.stop(); + }); + + it("sample test", async function () { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/eventhub/arm-eventhub/tsconfig.json b/sdk/eventhub/arm-eventhub/tsconfig.json index f1fddb077683..3e6ae96443f3 100644 --- a/sdk/eventhub/arm-eventhub/tsconfig.json +++ b/sdk/eventhub/arm-eventhub/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-eventhub": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"