Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR @azure/arm-eventhub] EventHub : corrected the Operations API version #1122

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sdk/eventhub/arm-eventhub/src/eventHubManagementClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand All @@ -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);
}
}
Expand Down
180 changes: 90 additions & 90 deletions sdk/eventhub/arm-eventhub/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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
*/
Expand Down Expand Up @@ -781,20 +781,6 @@ export interface AuthorizationRuleListResult extends Array<AuthorizationRule> {
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<Operation>
*/
export interface OperationListResult extends Array<Operation> {
/**
* 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.
Expand Down Expand Up @@ -833,6 +819,20 @@ export interface ConsumerGroupListResult extends Array<ConsumerGroup> {
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<Operation>
*/
export interface OperationListResult extends Array<Operation> {
/**
* 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.
Expand Down Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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.
*/
Expand Down
Loading