From de4c66818e1484d5e19b950b920e705a1d28c410 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Fri, 24 Apr 2020 05:07:36 +0000 Subject: [PATCH] Generated from 4f7d5384821bb07ed8b13fadfa5dcf2f823643b9 corrected the Opeartions API version --- .../src/eventHubManagementClient.ts | 4 +- sdk/eventhub/arm-eventhub/src/models/index.ts | 180 +++++++++--------- .../arm-eventhub/src/models/mappers.ts | 146 +++++++------- .../arm-eventhub/src/operations/index.ts | 2 +- .../arm-eventhub/src/operations/operations.ts | 2 +- 5 files changed, 167 insertions(+), 167 deletions(-) diff --git a/sdk/eventhub/arm-eventhub/src/eventHubManagementClient.ts b/sdk/eventhub/arm-eventhub/src/eventHubManagementClient.ts index 13467fe0180e..d89e0c000ed6 100644 --- a/sdk/eventhub/arm-eventhub/src/eventHubManagementClient.ts +++ b/sdk/eventhub/arm-eventhub/src/eventHubManagementClient.ts @@ -19,11 +19,11 @@ class EventHubManagementClient extends EventHubManagementClientContext { // Operation groups clusters: operations.Clusters; namespaces: operations.Namespaces; - operations: operations.Operations; configuration: operations.Configuration; disasterRecoveryConfigs: operations.DisasterRecoveryConfigs; eventHubs: operations.EventHubs; consumerGroups: operations.ConsumerGroups; + operations: operations.Operations; regions: operations.Regions; /** @@ -37,11 +37,11 @@ class EventHubManagementClient extends EventHubManagementClientContext { super(credentials, subscriptionId, options); this.clusters = new operations.Clusters(this); this.namespaces = new operations.Namespaces(this); - this.operations = new operations.Operations(this); this.configuration = new operations.Configuration(this); this.disasterRecoveryConfigs = new operations.DisasterRecoveryConfigs(this); this.eventHubs = new operations.EventHubs(this); this.consumerGroups = new operations.ConsumerGroups(this); + this.operations = new operations.Operations(this); this.regions = new operations.Regions(this); } } diff --git a/sdk/eventhub/arm-eventhub/src/models/index.ts b/sdk/eventhub/arm-eventhub/src/models/index.ts index 89260ca225a4..f74fedeee79e 100644 --- a/sdk/eventhub/arm-eventhub/src/models/index.ts +++ b/sdk/eventhub/arm-eventhub/src/models/index.ts @@ -290,42 +290,6 @@ export interface EHNamespace extends TrackedResource { encryption?: Encryption; } -/** - * The object that represents the operation. - */ -export interface OperationDisplay { - /** - * Service provider: Microsoft.EventHub - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly provider?: string; - /** - * Resource on which the operation is performed: Invoice, etc. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly resource?: string; - /** - * Operation type: Read, write, delete, etc. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly operation?: string; -} - -/** - * A Event Hub REST API operation - */ -export interface Operation { - /** - * Operation name: {provider}/{resource}/{operation} - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * The object that represents the operation. - */ - display?: OperationDisplay; -} - /** * Contains all settings for the cluster. */ @@ -555,6 +519,42 @@ export interface ArmDisasterRecovery extends Resource { readonly pendingReplicationOperationsCount?: number; } +/** + * The object that represents the operation. + */ +export interface OperationDisplay { + /** + * Service provider: Microsoft.EventHub + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provider?: string; + /** + * Resource on which the operation is performed: Invoice, etc. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly resource?: string; + /** + * Operation type: Read, write, delete, etc. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly operation?: string; +} + +/** + * A Event Hub REST API operation + */ +export interface Operation { + /** + * Operation name: {provider}/{resource}/{operation} + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The object that represents the operation. + */ + display?: OperationDisplay; +} + /** * Capture storage details for capture description */ @@ -781,20 +781,6 @@ export interface AuthorizationRuleListResult extends Array { nextLink?: string; } -/** - * @interface - * Result of the request to list Event Hub operations. It contains a list of operations and a URL - * link to get the next set of results. - * @extends Array - */ -export interface OperationListResult extends Array { - /** - * URL to get the next set of operation list results if there are any. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly nextLink?: string; -} - /** * @interface * The result of the List Alias(Disaster Recovery configuration) operation. @@ -833,6 +819,20 @@ export interface ConsumerGroupListResult extends Array { nextLink?: string; } +/** + * @interface + * Result of the request to list Event Hub operations. It contains a list of operations and a URL + * link to get the next set of results. + * @extends Array + */ +export interface OperationListResult extends Array { + /** + * URL to get the next set of operation list results if there are any. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + /** * @interface * The response of the List MessagingRegions operation. @@ -1641,46 +1641,6 @@ export type NamespacesListAuthorizationRulesNextResponse = AuthorizationRuleList }; }; -/** - * Contains response data for the list operation. - */ -export type OperationsListResponse = OperationListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationListResult; - }; -}; - -/** - * Contains response data for the listNext operation. - */ -export type OperationsListNextResponse = OperationListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationListResult; - }; -}; - /** * Contains response data for the patch operation. */ @@ -2181,6 +2141,46 @@ export type ConsumerGroupsListByEventHubNextResponse = ConsumerGroupListResult & }; }; +/** + * Contains response data for the list operation. + */ +export type OperationsListResponse = OperationListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationListResult; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type OperationsListNextResponse = OperationListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationListResult; + }; +}; + /** * Contains response data for the listBySku operation. */ diff --git a/sdk/eventhub/arm-eventhub/src/models/mappers.ts b/sdk/eventhub/arm-eventhub/src/models/mappers.ts index 51182ad3e465..d5891124ba69 100644 --- a/sdk/eventhub/arm-eventhub/src/models/mappers.ts +++ b/sdk/eventhub/arm-eventhub/src/models/mappers.ts @@ -488,61 +488,6 @@ export const EHNamespace: msRest.CompositeMapper = { } }; -export const OperationDisplay: msRest.CompositeMapper = { - serializedName: "Operation_display", - type: { - name: "Composite", - className: "OperationDisplay", - modelProperties: { - provider: { - readOnly: true, - serializedName: "provider", - type: { - name: "String" - } - }, - resource: { - readOnly: true, - serializedName: "resource", - type: { - name: "String" - } - }, - operation: { - readOnly: true, - serializedName: "operation", - type: { - name: "String" - } - } - } - } -}; - -export const Operation: msRest.CompositeMapper = { - serializedName: "Operation", - type: { - name: "Composite", - className: "Operation", - modelProperties: { - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - display: { - serializedName: "display", - type: { - name: "Composite", - className: "OperationDisplay" - } - } - } - } -}; - export const ClusterQuotaConfigurationProperties: msRest.CompositeMapper = { serializedName: "ClusterQuotaConfigurationProperties", type: { @@ -931,6 +876,61 @@ export const ArmDisasterRecovery: msRest.CompositeMapper = { } }; +export const OperationDisplay: msRest.CompositeMapper = { + serializedName: "Operation_display", + type: { + name: "Composite", + className: "OperationDisplay", + modelProperties: { + provider: { + readOnly: true, + serializedName: "provider", + type: { + name: "String" + } + }, + resource: { + readOnly: true, + serializedName: "resource", + type: { + name: "String" + } + }, + operation: { + readOnly: true, + serializedName: "operation", + type: { + name: "String" + } + } + } + } +}; + +export const Operation: msRest.CompositeMapper = { + serializedName: "Operation", + type: { + name: "Composite", + className: "Operation", + modelProperties: { + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + display: { + serializedName: "display", + type: { + name: "Composite", + className: "OperationDisplay" + } + } + } + } +}; + export const Destination: msRest.CompositeMapper = { serializedName: "Destination", type: { @@ -1285,21 +1285,20 @@ export const AuthorizationRuleListResult: msRest.CompositeMapper = { } }; -export const OperationListResult: msRest.CompositeMapper = { - serializedName: "OperationListResult", +export const ArmDisasterRecoveryListResult: msRest.CompositeMapper = { + serializedName: "ArmDisasterRecoveryListResult", type: { name: "Composite", - className: "OperationListResult", + className: "ArmDisasterRecoveryListResult", modelProperties: { value: { - readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "Operation" + className: "ArmDisasterRecovery" } } } @@ -1315,11 +1314,11 @@ export const OperationListResult: msRest.CompositeMapper = { } }; -export const ArmDisasterRecoveryListResult: msRest.CompositeMapper = { - serializedName: "ArmDisasterRecoveryListResult", +export const EventHubListResult: msRest.CompositeMapper = { + serializedName: "EventHubListResult", type: { name: "Composite", - className: "ArmDisasterRecoveryListResult", + className: "EventHubListResult", modelProperties: { value: { serializedName: "", @@ -1328,13 +1327,12 @@ export const ArmDisasterRecoveryListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "ArmDisasterRecovery" + className: "Eventhub" } } } }, nextLink: { - readOnly: true, serializedName: "nextLink", type: { name: "String" @@ -1344,11 +1342,11 @@ export const ArmDisasterRecoveryListResult: msRest.CompositeMapper = { } }; -export const EventHubListResult: msRest.CompositeMapper = { - serializedName: "EventHubListResult", +export const ConsumerGroupListResult: msRest.CompositeMapper = { + serializedName: "ConsumerGroupListResult", type: { name: "Composite", - className: "EventHubListResult", + className: "ConsumerGroupListResult", modelProperties: { value: { serializedName: "", @@ -1357,7 +1355,7 @@ export const EventHubListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "Eventhub" + className: "ConsumerGroup" } } } @@ -1372,25 +1370,27 @@ export const EventHubListResult: msRest.CompositeMapper = { } }; -export const ConsumerGroupListResult: msRest.CompositeMapper = { - serializedName: "ConsumerGroupListResult", +export const OperationListResult: msRest.CompositeMapper = { + serializedName: "OperationListResult", type: { name: "Composite", - className: "ConsumerGroupListResult", + className: "OperationListResult", modelProperties: { value: { + readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ConsumerGroup" + className: "Operation" } } } }, nextLink: { + readOnly: true, serializedName: "nextLink", type: { name: "String" diff --git a/sdk/eventhub/arm-eventhub/src/operations/index.ts b/sdk/eventhub/arm-eventhub/src/operations/index.ts index 395de8d0e825..5c5b1324e550 100644 --- a/sdk/eventhub/arm-eventhub/src/operations/index.ts +++ b/sdk/eventhub/arm-eventhub/src/operations/index.ts @@ -10,9 +10,9 @@ export * from "./clusters"; export * from "./namespaces"; -export * from "./operations"; export * from "./configuration"; export * from "./disasterRecoveryConfigs"; export * from "./eventHubs"; export * from "./consumerGroups"; +export * from "./operations"; export * from "./regions"; diff --git a/sdk/eventhub/arm-eventhub/src/operations/operations.ts b/sdk/eventhub/arm-eventhub/src/operations/operations.ts index 3374ef5276f5..3771a25aeef7 100644 --- a/sdk/eventhub/arm-eventhub/src/operations/operations.ts +++ b/sdk/eventhub/arm-eventhub/src/operations/operations.ts @@ -85,7 +85,7 @@ const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "providers/Microsoft.EventHub/operations", queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion1 ], headerParameters: [ Parameters.acceptLanguage