Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

[AutoPR network/resource-manager] Changes to add operation id for outbound rules #3951

Merged
merged 2 commits into from
Oct 29, 2018
Merged
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
12 changes: 12 additions & 0 deletions lib/services/networkManagement2/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10345,6 +10345,18 @@ export interface LoadBalancerLoadBalancingRuleListResult extends Array<LoadBalan
readonly nextLink?: string;
}

/**
* @class
* Initializes a new instance of the LoadBalancerOutboundRuleListResult class.
* @constructor
* Response for ListOutboundRule API service call.
*
* @member {string} [nextLink] The URL to get the next set of results.
*/
export interface LoadBalancerOutboundRuleListResult extends Array<OutboundRule> {
readonly nextLink?: string;
}

/**
* @class
* Initializes a new instance of the NetworkInterfaceListResult class.
Expand Down
1 change: 1 addition & 0 deletions lib/services/networkManagement2/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ exports.LoadBalancerBackendAddressPoolListResult = require('./loadBalancerBacken
exports.LoadBalancerFrontendIPConfigurationListResult = require('./loadBalancerFrontendIPConfigurationListResult');
exports.InboundNatRuleListResult = require('./inboundNatRuleListResult');
exports.LoadBalancerLoadBalancingRuleListResult = require('./loadBalancerLoadBalancingRuleListResult');
exports.LoadBalancerOutboundRuleListResult = require('./loadBalancerOutboundRuleListResult');
exports.NetworkInterfaceListResult = require('./networkInterfaceListResult');
exports.LoadBalancerProbeListResult = require('./loadBalancerProbeListResult');
exports.NetworkInterfaceIPConfigurationListResult = require('./networkInterfaceIPConfigurationListResult');
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

/**
* Response for ListOutboundRule API service call.
*/
class LoadBalancerOutboundRuleListResult extends Array {
/**
* Create a LoadBalancerOutboundRuleListResult.
* @member {string} [nextLink] The URL to get the next set of results.
*/
constructor() {
super();
}

/**
* Defines the metadata of LoadBalancerOutboundRuleListResult
*
* @returns {object} metadata of LoadBalancerOutboundRuleListResult
*
*/
mapper() {
return {
required: false,
serializedName: 'LoadBalancerOutboundRuleListResult',
type: {
name: 'Composite',
className: 'LoadBalancerOutboundRuleListResult',
modelProperties: {
value: {
required: false,
serializedName: '',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'OutboundRuleElementType',
type: {
name: 'Composite',
className: 'OutboundRule'
}
}
}
},
nextLink: {
required: false,
readOnly: true,
serializedName: 'nextLink',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = LoadBalancerOutboundRuleListResult;
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export default class NetworkManagementClient extends AzureServiceClient {
loadBalancerFrontendIPConfigurations: operations.LoadBalancerFrontendIPConfigurations;
inboundNatRules: operations.InboundNatRules;
loadBalancerLoadBalancingRules: operations.LoadBalancerLoadBalancingRules;
loadBalancerOutboundRules: operations.LoadBalancerOutboundRules;
loadBalancerNetworkInterfaces: operations.LoadBalancerNetworkInterfaces;
loadBalancerProbes: operations.LoadBalancerProbes;
networkInterfaces: operations.NetworkInterfaces;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ class NetworkManagementClient extends ServiceClient {
this.loadBalancerFrontendIPConfigurations = new operations.LoadBalancerFrontendIPConfigurations(this);
this.inboundNatRules = new operations.InboundNatRules(this);
this.loadBalancerLoadBalancingRules = new operations.LoadBalancerLoadBalancingRules(this);
this.loadBalancerOutboundRules = new operations.LoadBalancerOutboundRules(this);
this.loadBalancerNetworkInterfaces = new operations.LoadBalancerNetworkInterfaces(this);
this.loadBalancerProbes = new operations.LoadBalancerProbes(this);
this.networkInterfaces = new operations.NetworkInterfaces(this);
Expand Down
190 changes: 190 additions & 0 deletions lib/services/networkManagement2/lib/operations/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14977,6 +14977,196 @@ export interface LoadBalancerLoadBalancingRules {
listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.LoadBalancerLoadBalancingRuleListResult>): void;
}

/**
* @class
* LoadBalancerOutboundRules
* __NOTE__: An instance of this class is automatically created for an
* instance of the NetworkManagementClient.
*/
export interface LoadBalancerOutboundRules {


/**
* Gets all the outbound rules in a load balancer.
*
* @param {string} resourceGroupName The name of the resource group.
*
* @param {string} loadBalancerName The name of the load balancer.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @returns {Promise} A promise is returned
*
* @resolve {HttpOperationResponse<LoadBalancerOutboundRuleListResult>} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
listWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.LoadBalancerOutboundRuleListResult>>;

/**
* Gets all the outbound rules in a load balancer.
*
* @param {string} resourceGroupName The name of the resource group.
*
* @param {string} loadBalancerName The name of the load balancer.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @param {ServiceCallback} [optionalCallback] - The optional callback.
*
* @returns {ServiceCallback|Promise} If a callback was passed as the last
* parameter then it returns the callback else returns a Promise.
*
* {Promise} A promise is returned.
*
* @resolve {LoadBalancerOutboundRuleListResult} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
* {ServiceCallback} optionalCallback(err, result, request, response)
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
* {LoadBalancerOutboundRuleListResult} [result] - The deserialized result object if an error did not occur.
* See {@link LoadBalancerOutboundRuleListResult} for more
* information.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
list(resourceGroupName: string, loadBalancerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<models.LoadBalancerOutboundRuleListResult>;
list(resourceGroupName: string, loadBalancerName: string, callback: ServiceCallback<models.LoadBalancerOutboundRuleListResult>): void;
list(resourceGroupName: string, loadBalancerName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.LoadBalancerOutboundRuleListResult>): void;


/**
* Gets the specified load balancer outbound rule.
*
* @param {string} resourceGroupName The name of the resource group.
*
* @param {string} loadBalancerName The name of the load balancer.
*
* @param {string} outboundRuleName The name of the outbound rule.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @returns {Promise} A promise is returned
*
* @resolve {HttpOperationResponse<OutboundRule>} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
getWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, outboundRuleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.OutboundRule>>;

/**
* Gets the specified load balancer outbound rule.
*
* @param {string} resourceGroupName The name of the resource group.
*
* @param {string} loadBalancerName The name of the load balancer.
*
* @param {string} outboundRuleName The name of the outbound rule.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @param {ServiceCallback} [optionalCallback] - The optional callback.
*
* @returns {ServiceCallback|Promise} If a callback was passed as the last
* parameter then it returns the callback else returns a Promise.
*
* {Promise} A promise is returned.
*
* @resolve {OutboundRule} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
* {ServiceCallback} optionalCallback(err, result, request, response)
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
* {OutboundRule} [result] - The deserialized result object if an error did not occur.
* See {@link OutboundRule} for more information.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
get(resourceGroupName: string, loadBalancerName: string, outboundRuleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<models.OutboundRule>;
get(resourceGroupName: string, loadBalancerName: string, outboundRuleName: string, callback: ServiceCallback<models.OutboundRule>): void;
get(resourceGroupName: string, loadBalancerName: string, outboundRuleName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.OutboundRule>): void;


/**
* Gets all the outbound rules in a load balancer.
*
* @param {string} nextPageLink The NextLink from the previous successful call
* to List operation.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @returns {Promise} A promise is returned
*
* @resolve {HttpOperationResponse<LoadBalancerOutboundRuleListResult>} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.LoadBalancerOutboundRuleListResult>>;

/**
* Gets all the outbound rules in a load balancer.
*
* @param {string} nextPageLink The NextLink from the previous successful call
* to List operation.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @param {ServiceCallback} [optionalCallback] - The optional callback.
*
* @returns {ServiceCallback|Promise} If a callback was passed as the last
* parameter then it returns the callback else returns a Promise.
*
* {Promise} A promise is returned.
*
* @resolve {LoadBalancerOutboundRuleListResult} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
* {ServiceCallback} optionalCallback(err, result, request, response)
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
* {LoadBalancerOutboundRuleListResult} [result] - The deserialized result object if an error did not occur.
* See {@link LoadBalancerOutboundRuleListResult} for more
* information.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<models.LoadBalancerOutboundRuleListResult>;
listNext(nextPageLink: string, callback: ServiceCallback<models.LoadBalancerOutboundRuleListResult>): void;
listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.LoadBalancerOutboundRuleListResult>): void;
}

/**
* @class
* LoadBalancerNetworkInterfaces
Expand Down
1 change: 1 addition & 0 deletions lib/services/networkManagement2/lib/operations/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ exports.LoadBalancerBackendAddressPools = require('./loadBalancerBackendAddressP
exports.LoadBalancerFrontendIPConfigurations = require('./loadBalancerFrontendIPConfigurations');
exports.InboundNatRules = require('./inboundNatRules');
exports.LoadBalancerLoadBalancingRules = require('./loadBalancerLoadBalancingRules');
exports.LoadBalancerOutboundRules = require('./loadBalancerOutboundRules');
exports.LoadBalancerNetworkInterfaces = require('./loadBalancerNetworkInterfaces');
exports.LoadBalancerProbes = require('./loadBalancerProbes');
exports.NetworkInterfaces = require('./networkInterfaces');
Expand Down
Loading