From 3a7ff76c62679a30f2fd51501d83e8843c3b5b70 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Fri, 27 Jul 2018 21:46:44 +0000 Subject: [PATCH] Generated from 9108db7900be503fb18bc1886200380544caeb03 Python conf for Network 2018-06 --- .../network/mgmt/2016-03-30/network/models.go | 2 +- .../network/mgmt/2016-06-01/network/models.go | 2 +- .../network/mgmt/2018-04-01/network/models.go | 4 ++-- .../mgmt/2018-04-01/network/vpnconnections.go | 18 ++++++++++-------- .../mgmt/2015-05-01-preview/network/models.go | 2 +- 5 files changed, 15 insertions(+), 13 deletions(-) diff --git a/services/network/mgmt/2016-03-30/network/models.go b/services/network/mgmt/2016-03-30/network/models.go index b33d10cc9eda..12095405f4b2 100644 --- a/services/network/mgmt/2016-03-30/network/models.go +++ b/services/network/mgmt/2016-03-30/network/models.go @@ -2041,7 +2041,7 @@ type AuthorizationPropertiesFormat struct { // operation failed, the response body includes the HTTP status code for the failed request and error information // regarding the failure. type AzureAsyncOperationResult struct { - // Status - Status of the AzureAsuncOperation. Possible values include: 'InProgress', 'Succeeded', 'Failed' + // Status - Status of the AzureAsyncOperation. Possible values include: 'InProgress', 'Succeeded', 'Failed' Status OperationStatus `json:"status,omitempty"` Error *Error `json:"error,omitempty"` } diff --git a/services/network/mgmt/2016-06-01/network/models.go b/services/network/mgmt/2016-06-01/network/models.go index a674e8ad7add..94d00089124e 100644 --- a/services/network/mgmt/2016-06-01/network/models.go +++ b/services/network/mgmt/2016-06-01/network/models.go @@ -2214,7 +2214,7 @@ type AuthorizationPropertiesFormat struct { // operation failed, the response body includes the HTTP status code for the failed request and error information // regarding the failure. type AzureAsyncOperationResult struct { - // Status - Status of the AzureAsuncOperation. Possible values include: 'InProgress', 'Succeeded', 'Failed' + // Status - Status of the AzureAsyncOperation. Possible values include: 'InProgress', 'Succeeded', 'Failed' Status OperationStatus `json:"status,omitempty"` Error *Error `json:"error,omitempty"` } diff --git a/services/network/mgmt/2018-04-01/network/models.go b/services/network/mgmt/2018-04-01/network/models.go index f2488eb15c4e..968106a50691 100644 --- a/services/network/mgmt/2018-04-01/network/models.go +++ b/services/network/mgmt/2018-04-01/network/models.go @@ -18710,8 +18710,8 @@ type VpnConnectionProperties struct { IngressBytesTransferred *int64 `json:"ingressBytesTransferred,omitempty"` // EgressBytesTransferred - Egress bytes transferred. EgressBytesTransferred *int64 `json:"egressBytesTransferred,omitempty"` - // ConnectionBandwidthInMbps - Expected bandwidth in MBPS. - ConnectionBandwidthInMbps *int32 `json:"connectionBandwidthInMbps,omitempty"` + // ConnectionBandwidth - Expected bandwidth in MBPS. + ConnectionBandwidth *int32 `json:"connectionBandwidth,omitempty"` // SharedKey - SharedKey for the vpn connection. SharedKey *string `json:"sharedKey,omitempty"` // EnableBgp - EnableBgp flag diff --git a/services/network/mgmt/2018-04-01/network/vpnconnections.go b/services/network/mgmt/2018-04-01/network/vpnconnections.go index d63d33a82d27..16f2fe8c2b83 100644 --- a/services/network/mgmt/2018-04-01/network/vpnconnections.go +++ b/services/network/mgmt/2018-04-01/network/vpnconnections.go @@ -259,10 +259,11 @@ func (client VpnConnectionsClient) GetResponder(resp *http.Response) (result Vpn // ListByVpnGateway retrieves all vpn connections for a particular virtual wan vpn gateway. // Parameters: +// resourceGroupName - the resource group name of the VpnGateway. // gatewayName - the name of the gateway. -func (client VpnConnectionsClient) ListByVpnGateway(ctx context.Context, gatewayName string) (result ListVpnConnectionsResultPage, err error) { +func (client VpnConnectionsClient) ListByVpnGateway(ctx context.Context, resourceGroupName string, gatewayName string) (result ListVpnConnectionsResultPage, err error) { result.fn = client.listByVpnGatewayNextResults - req, err := client.ListByVpnGatewayPreparer(ctx, gatewayName) + req, err := client.ListByVpnGatewayPreparer(ctx, resourceGroupName, gatewayName) if err != nil { err = autorest.NewErrorWithError(err, "network.VpnConnectionsClient", "ListByVpnGateway", nil, "Failure preparing request") return @@ -284,10 +285,11 @@ func (client VpnConnectionsClient) ListByVpnGateway(ctx context.Context, gateway } // ListByVpnGatewayPreparer prepares the ListByVpnGateway request. -func (client VpnConnectionsClient) ListByVpnGatewayPreparer(ctx context.Context, gatewayName string) (*http.Request, error) { +func (client VpnConnectionsClient) ListByVpnGatewayPreparer(ctx context.Context, resourceGroupName string, gatewayName string) (*http.Request, error) { pathParameters := map[string]interface{}{ - "gatewayName": autorest.Encode("path", gatewayName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), + "gatewayName": autorest.Encode("path", gatewayName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), } const APIVersion = "2018-04-01" @@ -298,7 +300,7 @@ func (client VpnConnectionsClient) ListByVpnGatewayPreparer(ctx context.Context, preparer := autorest.CreatePreparer( autorest.AsGet(), autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections", pathParameters), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections", pathParameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare((&http.Request{}).WithContext(ctx)) } @@ -345,7 +347,7 @@ func (client VpnConnectionsClient) listByVpnGatewayNextResults(lastResults ListV } // ListByVpnGatewayComplete enumerates all values, automatically crossing page boundaries as required. -func (client VpnConnectionsClient) ListByVpnGatewayComplete(ctx context.Context, gatewayName string) (result ListVpnConnectionsResultIterator, err error) { - result.page, err = client.ListByVpnGateway(ctx, gatewayName) +func (client VpnConnectionsClient) ListByVpnGatewayComplete(ctx context.Context, resourceGroupName string, gatewayName string) (result ListVpnConnectionsResultIterator, err error) { + result.page, err = client.ListByVpnGateway(ctx, resourceGroupName, gatewayName) return } diff --git a/services/preview/network/mgmt/2015-05-01-preview/network/models.go b/services/preview/network/mgmt/2015-05-01-preview/network/models.go index 1dba23b8b84e..5c4113c3c9f3 100644 --- a/services/preview/network/mgmt/2015-05-01-preview/network/models.go +++ b/services/preview/network/mgmt/2015-05-01-preview/network/models.go @@ -1679,7 +1679,7 @@ type AuthorizationPropertiesFormat struct { // operation failed, the response body includes the HTTP status code for the failed request and error information // regarding the failure. type AzureAsyncOperationResult struct { - // Status - Status of the AzureAsuncOperation. Possible values include: 'InProgress', 'Succeeded', 'Failed' + // Status - Status of the AzureAsyncOperation. Possible values include: 'InProgress', 'Succeeded', 'Failed' Status OperationStatus `json:"status,omitempty"` Error *Error `json:"error,omitempty"` }