From ea77e131462233eedc88faeecd9a6d940695bff1 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Mon, 12 Nov 2018 08:41:19 +0000 Subject: [PATCH] Generated from 52981377b86caf85843799cd4294ec9101af0dcf Make NIC VM readOnly --- .../@azure/arm-network/lib/models/index.ts | 694 +++++++----------- .../@azure/arm-network/lib/models/mappers.ts | 79 +- .../lib/models/networkWatchersMappers.ts | 1 - .../arm-network/lib/models/parameters.ts | 38 +- .../lib/networkManagementClient.ts | 4 +- .../arm-network/lib/operations/index.ts | 2 +- .../lib/operations/virtualNetworks.ts | 4 - packages/@azure/arm-network/package.json | 2 +- 8 files changed, 323 insertions(+), 501 deletions(-) diff --git a/packages/@azure/arm-network/lib/models/index.ts b/packages/@azure/arm-network/lib/models/index.ts index dff26c7edf22..1c85e49607b6 100644 --- a/packages/@azure/arm-network/lib/models/index.ts +++ b/packages/@azure/arm-network/lib/models/index.ts @@ -361,8 +361,10 @@ export interface NetworkInterfaceDnsSettings { export interface NetworkInterface extends Resource { /** * @member {SubResource} [virtualMachine] The reference of a virtual machine. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - virtualMachine?: SubResource; + readonly virtualMachine?: SubResource; /** * @member {NetworkSecurityGroup} [networkSecurityGroup] The reference of the * NetworkSecurityGroup resource. @@ -6304,25 +6306,6 @@ export interface RetentionPolicyParameters { enabled?: boolean; } -/** - * @interface - * An interface representing FlowLogFormatParameters. - * Parameters that define the flow log format. - * - */ -export interface FlowLogFormatParameters { - /** - * @member {FlowLogFormatType} [type] The file type of flow log. Possible - * values include: 'JSON' - */ - type?: FlowLogFormatType; - /** - * @member {number} [version] The version (revision) of the flow log. Default - * value: 0 . - */ - version?: number; -} - /** * @interface * An interface representing FlowLogStatusParameters. @@ -6361,11 +6344,6 @@ export interface TrafficAnalyticsConfigurationProperties { * @member {string} workspaceResourceId Resource Id of the attached workspace */ workspaceResourceId: string; - /** - * @member {number} [trafficAnalyticsInterval] The interval in minutes which - * would decide how frequently TA service should do flow analytics - */ - trafficAnalyticsInterval?: number; } /** @@ -6408,10 +6386,6 @@ export interface FlowLogInformation { * @member {RetentionPolicyParameters} [retentionPolicy] */ retentionPolicy?: RetentionPolicyParameters; - /** - * @member {FlowLogFormatParameters} [format] - */ - format?: FlowLogFormatParameters; /** * @member {TrafficAnalyticsProperties} [flowAnalyticsConfiguration] */ @@ -10548,22 +10522,6 @@ export interface LoadBalancerOutboundRuleListResult extends Array readonly nextLink?: string; } -/** - * @interface - * An interface representing the NetworkInterfaceListResult. - * Response for the ListNetworkInterface API service call. - * - * @extends Array - */ -export interface LoadBalancerOutboundRuleListResult extends Array { - /** - * @member {string} [nextLink] The URL to get the next set of results. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly nextLink?: string; -} - /** * @interface * An interface representing the NetworkInterfaceListResult. @@ -10935,6 +10893,20 @@ export interface VirtualNetworkPeeringListResult extends Array + */ +export interface VirtualNetworkTapListResult extends Array { + /** + * @member {string} [nextLink] The URL to get the next set of results. + */ + nextLink?: string; +} + /** * @interface * An interface representing the VirtualNetworkGatewayListResult. @@ -10999,20 +10971,6 @@ export interface LocalNetworkGatewayListResult extends Array - */ -export interface VirtualNetworkTapListResult extends Array { - /** - * @member {string} [nextLink] The URL to get the next set of results. - */ - nextLink?: string; -} - /** * @interface * An interface representing the ListVirtualWANsResult. @@ -11302,22 +11260,6 @@ export type ApplicationGatewaySslCipherSuite = 'TLS_ECDHE_RSA_WITH_AES_256_CBC_S */ export type ApplicationGatewayCustomErrorStatusCode = 'HttpStatus403' | 'HttpStatus502'; -/** - * Defines values for ApplicationGatewayCustomErrorStatusCode. - * Possible values include: 'HttpStatus403', 'HttpStatus502' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ApplicationGatewayCustomErrorStatusCode = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} - */ -export enum ApplicationGatewayCustomErrorStatusCode { - HttpStatus403 = 'HttpStatus403', - HttpStatus502 = 'HttpStatus502', -} - /** * Defines values for ApplicationGatewayRequestRoutingRuleType. * Possible values include: 'Basic', 'PathBasedRouting' @@ -11494,54 +11436,6 @@ export type ExpressRouteLinkAdminState = 'Enabled' | 'Disabled'; */ export type ExpressRoutePortsEncapsulation = 'Dot1Q' | 'QinQ'; -/** - * Defines values for ExpressRouteLinkConnectorType. - * Possible values include: 'LC', 'SC' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ExpressRouteLinkConnectorType = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} - */ -export enum ExpressRouteLinkConnectorType { - LC = 'LC', - SC = 'SC', -} - -/** - * Defines values for ExpressRouteLinkAdminState. - * Possible values include: 'Enabled', 'Disabled' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ExpressRouteLinkAdminState = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} - */ -export enum ExpressRouteLinkAdminState { - Enabled = 'Enabled', - Disabled = 'Disabled', -} - -/** - * Defines values for ExpressRoutePortsEncapsulation. - * Possible values include: 'Dot1Q', 'QinQ' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ExpressRoutePortsEncapsulation = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} - */ -export enum ExpressRoutePortsEncapsulation { - Dot1Q = 'Dot1Q', - QinQ = 'QinQ', -} - /** * Defines values for LoadBalancerSkuName. * Possible values include: 'Basic', 'Standard' @@ -11656,21 +11550,6 @@ export type PcStatus = 'NotStarted' | 'Running' | 'Stopped' | 'Error' | 'Unknown */ export type PcError = 'InternalError' | 'AgentStopped' | 'CaptureFailed' | 'LocalFileFailed' | 'StorageFailed'; -/** - * Defines values for FlowLogFormatType. - * Possible values include: 'JSON' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: FlowLogFormatType = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} - */ -export enum FlowLogFormatType { - JSON = 'JSON', -} - /** * Defines values for Protocol. * Possible values include: 'Tcp', 'Http', 'Https', 'Icmp' @@ -11752,23 +11631,6 @@ export type EvaluationState = 'NotStarted' | 'InProgress' | 'Completed'; */ export type VerbosityLevel = 'Normal' | 'Minimum' | 'Full'; -/** - * Defines values for VerbosityLevel. - * Possible values include: 'Normal', 'Minimum', 'Full' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: VerbosityLevel = - * "someUnknownValueThatWillStillBeValid"; - * @readonly - * @enum {string} - */ -export enum VerbosityLevel { - Normal = 'Normal', - Minimum = 'Minimum', - Full = 'Full', -} - /** * Defines values for PublicIPPrefixSkuName. * Possible values include: 'Standard' @@ -14322,7 +14184,7 @@ export type ExpressRouteLinksListNextResponse = ExpressRouteLinkListResult & { /** * Contains response data for the get operation. */ -export type ExpressRoutePortsLocationsListResponse = ExpressRoutePortsLocationListResult & { +export type InterfaceEndpointsGetResponse = InterfaceEndpoint & { /** * The underlying HTTP response. */ @@ -14334,14 +14196,14 @@ export type ExpressRoutePortsLocationsListResponse = ExpressRoutePortsLocationLi /** * The response body as parsed JSON or XML */ - parsedBody: ExpressRoutePortsLocationListResult; + parsedBody: InterfaceEndpoint; }; }; /** - * Contains response data for the get operation. + * Contains response data for the createOrUpdate operation. */ -export type ExpressRoutePortsLocationsGetResponse = ExpressRoutePortsLocation & { +export type InterfaceEndpointsCreateOrUpdateResponse = InterfaceEndpoint & { /** * The underlying HTTP response. */ @@ -14353,14 +14215,14 @@ export type ExpressRoutePortsLocationsGetResponse = ExpressRoutePortsLocation & /** * The response body as parsed JSON or XML */ - parsedBody: ExpressRoutePortsLocation; + parsedBody: InterfaceEndpoint; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the list operation. */ -export type ExpressRoutePortsLocationsListNextResponse = ExpressRoutePortsLocationListResult & { +export type InterfaceEndpointsListResponse = InterfaceEndpointListResult & { /** * The underlying HTTP response. */ @@ -14372,14 +14234,14 @@ export type ExpressRoutePortsLocationsListNextResponse = ExpressRoutePortsLocati /** * The response body as parsed JSON or XML */ - parsedBody: ExpressRoutePortsLocationListResult; + parsedBody: InterfaceEndpointListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listBySubscription operation. */ -export type ExpressRoutePortsGetResponse = ExpressRoutePort & { +export type InterfaceEndpointsListBySubscriptionResponse = InterfaceEndpointListResult & { /** * The underlying HTTP response. */ @@ -14391,14 +14253,14 @@ export type ExpressRoutePortsGetResponse = ExpressRoutePort & { /** * The response body as parsed JSON or XML */ - parsedBody: ExpressRoutePort; + parsedBody: InterfaceEndpointListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type ExpressRoutePortsCreateOrUpdateResponse = ExpressRoutePort & { +export type InterfaceEndpointsBeginCreateOrUpdateResponse = InterfaceEndpoint & { /** * The underlying HTTP response. */ @@ -14410,14 +14272,14 @@ export type ExpressRoutePortsCreateOrUpdateResponse = ExpressRoutePort & { /** * The response body as parsed JSON or XML */ - parsedBody: ExpressRoutePort; + parsedBody: InterfaceEndpoint; }; }; /** - * Contains response data for the updateTags operation. + * Contains response data for the listNext operation. */ -export type ExpressRoutePortsUpdateTagsResponse = ExpressRoutePort & { +export type InterfaceEndpointsListNextResponse = InterfaceEndpointListResult & { /** * The underlying HTTP response. */ @@ -14429,14 +14291,14 @@ export type ExpressRoutePortsUpdateTagsResponse = ExpressRoutePort & { /** * The response body as parsed JSON or XML */ - parsedBody: ExpressRoutePort; + parsedBody: InterfaceEndpointListResult; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the listBySubscriptionNext operation. */ -export type ExpressRoutePortsListByResourceGroupResponse = ExpressRoutePortListResult & { +export type InterfaceEndpointsListBySubscriptionNextResponse = InterfaceEndpointListResult & { /** * The underlying HTTP response. */ @@ -14448,14 +14310,14 @@ export type ExpressRoutePortsListByResourceGroupResponse = ExpressRoutePortListR /** * The response body as parsed JSON or XML */ - parsedBody: ExpressRoutePortListResult; + parsedBody: InterfaceEndpointListResult; }; }; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type ExpressRoutePortsListResponse = ExpressRoutePortListResult & { +export type LoadBalancersGetResponse = LoadBalancer & { /** * The underlying HTTP response. */ @@ -14467,14 +14329,14 @@ export type ExpressRoutePortsListResponse = ExpressRoutePortListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ExpressRoutePortListResult; + parsedBody: LoadBalancer; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the createOrUpdate operation. */ -export type ExpressRoutePortsBeginCreateOrUpdateResponse = ExpressRoutePort & { +export type LoadBalancersCreateOrUpdateResponse = LoadBalancer & { /** * The underlying HTTP response. */ @@ -14486,14 +14348,14 @@ export type ExpressRoutePortsBeginCreateOrUpdateResponse = ExpressRoutePort & { /** * The response body as parsed JSON or XML */ - parsedBody: ExpressRoutePort; + parsedBody: LoadBalancer; }; }; /** - * Contains response data for the beginUpdateTags operation. + * Contains response data for the updateTags operation. */ -export type ExpressRoutePortsBeginUpdateTagsResponse = ExpressRoutePort & { +export type LoadBalancersUpdateTagsResponse = LoadBalancer & { /** * The underlying HTTP response. */ @@ -14505,14 +14367,14 @@ export type ExpressRoutePortsBeginUpdateTagsResponse = ExpressRoutePort & { /** * The response body as parsed JSON or XML */ - parsedBody: ExpressRoutePort; + parsedBody: LoadBalancer; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the listAll operation. */ -export type ExpressRoutePortsListByResourceGroupNextResponse = ExpressRoutePortListResult & { +export type LoadBalancersListAllResponse = LoadBalancerListResult & { /** * The underlying HTTP response. */ @@ -14524,14 +14386,14 @@ export type ExpressRoutePortsListByResourceGroupNextResponse = ExpressRoutePortL /** * The response body as parsed JSON or XML */ - parsedBody: ExpressRoutePortListResult; + parsedBody: LoadBalancerListResult; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the list operation. */ -export type ExpressRoutePortsListNextResponse = ExpressRoutePortListResult & { +export type LoadBalancersListResponse = LoadBalancerListResult & { /** * The underlying HTTP response. */ @@ -14543,14 +14405,14 @@ export type ExpressRoutePortsListNextResponse = ExpressRoutePortListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ExpressRoutePortListResult; + parsedBody: LoadBalancerListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type ExpressRouteLinksGetResponse = ExpressRouteLink & { +export type LoadBalancersBeginCreateOrUpdateResponse = LoadBalancer & { /** * The underlying HTTP response. */ @@ -14562,14 +14424,14 @@ export type ExpressRouteLinksGetResponse = ExpressRouteLink & { /** * The response body as parsed JSON or XML */ - parsedBody: ExpressRouteLink; + parsedBody: LoadBalancer; }; }; /** - * Contains response data for the list operation. + * Contains response data for the beginUpdateTags operation. */ -export type ExpressRouteLinksListResponse = ExpressRouteLinkListResult & { +export type LoadBalancersBeginUpdateTagsResponse = LoadBalancer & { /** * The underlying HTTP response. */ @@ -14581,14 +14443,14 @@ export type ExpressRouteLinksListResponse = ExpressRouteLinkListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ExpressRouteLinkListResult; + parsedBody: LoadBalancer; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listAllNext operation. */ -export type ExpressRouteLinksListNextResponse = ExpressRouteLinkListResult & { +export type LoadBalancersListAllNextResponse = LoadBalancerListResult & { /** * The underlying HTTP response. */ @@ -14600,14 +14462,14 @@ export type ExpressRouteLinksListNextResponse = ExpressRouteLinkListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ExpressRouteLinkListResult; + parsedBody: LoadBalancerListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listNext operation. */ -export type InterfaceEndpointsGetResponse = InterfaceEndpoint & { +export type LoadBalancersListNextResponse = LoadBalancerListResult & { /** * The underlying HTTP response. */ @@ -14619,14 +14481,14 @@ export type InterfaceEndpointsGetResponse = InterfaceEndpoint & { /** * The response body as parsed JSON or XML */ - parsedBody: InterfaceEndpoint; + parsedBody: LoadBalancerListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the list operation. */ -export type InterfaceEndpointsCreateOrUpdateResponse = InterfaceEndpoint & { +export type LoadBalancerBackendAddressPoolsListResponse = LoadBalancerBackendAddressPoolListResult & { /** * The underlying HTTP response. */ @@ -14638,14 +14500,14 @@ export type InterfaceEndpointsCreateOrUpdateResponse = InterfaceEndpoint & { /** * The response body as parsed JSON or XML */ - parsedBody: InterfaceEndpoint; + parsedBody: LoadBalancerBackendAddressPoolListResult; }; }; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type InterfaceEndpointsListResponse = InterfaceEndpointListResult & { +export type LoadBalancerBackendAddressPoolsGetResponse = BackendAddressPool & { /** * The underlying HTTP response. */ @@ -14657,14 +14519,14 @@ export type InterfaceEndpointsListResponse = InterfaceEndpointListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: InterfaceEndpointListResult; + parsedBody: BackendAddressPool; }; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the listNext operation. */ -export type InterfaceEndpointsListBySubscriptionResponse = InterfaceEndpointListResult & { +export type LoadBalancerBackendAddressPoolsListNextResponse = LoadBalancerBackendAddressPoolListResult & { /** * The underlying HTTP response. */ @@ -14676,14 +14538,14 @@ export type InterfaceEndpointsListBySubscriptionResponse = InterfaceEndpointList /** * The response body as parsed JSON or XML */ - parsedBody: InterfaceEndpointListResult; + parsedBody: LoadBalancerBackendAddressPoolListResult; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the list operation. */ -export type InterfaceEndpointsBeginCreateOrUpdateResponse = InterfaceEndpoint & { +export type LoadBalancerFrontendIPConfigurationsListResponse = LoadBalancerFrontendIPConfigurationListResult & { /** * The underlying HTTP response. */ @@ -14695,14 +14557,14 @@ export type InterfaceEndpointsBeginCreateOrUpdateResponse = InterfaceEndpoint & /** * The response body as parsed JSON or XML */ - parsedBody: InterfaceEndpoint; + parsedBody: LoadBalancerFrontendIPConfigurationListResult; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the get operation. */ -export type InterfaceEndpointsListNextResponse = InterfaceEndpointListResult & { +export type LoadBalancerFrontendIPConfigurationsGetResponse = FrontendIPConfiguration & { /** * The underlying HTTP response. */ @@ -14714,14 +14576,14 @@ export type InterfaceEndpointsListNextResponse = InterfaceEndpointListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: InterfaceEndpointListResult; + parsedBody: FrontendIPConfiguration; }; }; /** - * Contains response data for the listBySubscriptionNext operation. + * Contains response data for the listNext operation. */ -export type InterfaceEndpointsListBySubscriptionNextResponse = InterfaceEndpointListResult & { +export type LoadBalancerFrontendIPConfigurationsListNextResponse = LoadBalancerFrontendIPConfigurationListResult & { /** * The underlying HTTP response. */ @@ -14733,14 +14595,14 @@ export type InterfaceEndpointsListBySubscriptionNextResponse = InterfaceEndpoint /** * The response body as parsed JSON or XML */ - parsedBody: InterfaceEndpointListResult; + parsedBody: LoadBalancerFrontendIPConfigurationListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type LoadBalancersGetResponse = LoadBalancer & { +export type InboundNatRulesListResponse = InboundNatRuleListResult & { /** * The underlying HTTP response. */ @@ -14752,14 +14614,14 @@ export type LoadBalancersGetResponse = LoadBalancer & { /** * The response body as parsed JSON or XML */ - parsedBody: LoadBalancer; + parsedBody: InboundNatRuleListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the get operation. */ -export type LoadBalancersCreateOrUpdateResponse = LoadBalancer & { +export type InboundNatRulesGetResponse = InboundNatRule & { /** * The underlying HTTP response. */ @@ -14771,14 +14633,14 @@ export type LoadBalancersCreateOrUpdateResponse = LoadBalancer & { /** * The response body as parsed JSON or XML */ - parsedBody: LoadBalancer; + parsedBody: InboundNatRule; }; }; /** - * Contains response data for the updateTags operation. + * Contains response data for the createOrUpdate operation. */ -export type LoadBalancersUpdateTagsResponse = LoadBalancer & { +export type InboundNatRulesCreateOrUpdateResponse = InboundNatRule & { /** * The underlying HTTP response. */ @@ -14790,14 +14652,14 @@ export type LoadBalancersUpdateTagsResponse = LoadBalancer & { /** * The response body as parsed JSON or XML */ - parsedBody: LoadBalancer; + parsedBody: InboundNatRule; }; }; /** - * Contains response data for the listAll operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type LoadBalancersListAllResponse = LoadBalancerListResult & { +export type InboundNatRulesBeginCreateOrUpdateResponse = InboundNatRule & { /** * The underlying HTTP response. */ @@ -14809,14 +14671,14 @@ export type LoadBalancersListAllResponse = LoadBalancerListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: LoadBalancerListResult; + parsedBody: InboundNatRule; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listNext operation. */ -export type LoadBalancersListResponse = LoadBalancerListResult & { +export type InboundNatRulesListNextResponse = InboundNatRuleListResult & { /** * The underlying HTTP response. */ @@ -14828,14 +14690,14 @@ export type LoadBalancersListResponse = LoadBalancerListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: LoadBalancerListResult; + parsedBody: InboundNatRuleListResult; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the list operation. */ -export type LoadBalancersBeginCreateOrUpdateResponse = LoadBalancer & { +export type LoadBalancerLoadBalancingRulesListResponse = LoadBalancerLoadBalancingRuleListResult & { /** * The underlying HTTP response. */ @@ -14847,14 +14709,14 @@ export type LoadBalancersBeginCreateOrUpdateResponse = LoadBalancer & { /** * The response body as parsed JSON or XML */ - parsedBody: LoadBalancer; + parsedBody: LoadBalancerLoadBalancingRuleListResult; }; }; /** - * Contains response data for the beginUpdateTags operation. + * Contains response data for the get operation. */ -export type LoadBalancersBeginUpdateTagsResponse = LoadBalancer & { +export type LoadBalancerLoadBalancingRulesGetResponse = LoadBalancingRule & { /** * The underlying HTTP response. */ @@ -14866,14 +14728,14 @@ export type LoadBalancersBeginUpdateTagsResponse = LoadBalancer & { /** * The response body as parsed JSON or XML */ - parsedBody: LoadBalancer; + parsedBody: LoadBalancingRule; }; }; /** - * Contains response data for the listAllNext operation. + * Contains response data for the listNext operation. */ -export type LoadBalancersListAllNextResponse = LoadBalancerListResult & { +export type LoadBalancerLoadBalancingRulesListNextResponse = LoadBalancerLoadBalancingRuleListResult & { /** * The underlying HTTP response. */ @@ -14885,12 +14747,12 @@ export type LoadBalancersListAllNextResponse = LoadBalancerListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: LoadBalancerListResult; + parsedBody: LoadBalancerLoadBalancingRuleListResult; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the list operation. */ export type LoadBalancerOutboundRulesListResponse = LoadBalancerOutboundRuleListResult & { /** @@ -18651,6 +18513,177 @@ export type VirtualNetworkPeeringsListNextResponse = VirtualNetworkPeeringListRe }; }; +/** + * Contains response data for the get operation. + */ +export type VirtualNetworkTapsGetResponse = VirtualNetworkTap & { + /** + * 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: VirtualNetworkTap; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type VirtualNetworkTapsCreateOrUpdateResponse = VirtualNetworkTap & { + /** + * 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: VirtualNetworkTap; + }; +}; + +/** + * Contains response data for the updateTags operation. + */ +export type VirtualNetworkTapsUpdateTagsResponse = VirtualNetworkTap & { + /** + * 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: VirtualNetworkTap; + }; +}; + +/** + * Contains response data for the listAll operation. + */ +export type VirtualNetworkTapsListAllResponse = VirtualNetworkTapListResult & { + /** + * 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: VirtualNetworkTapListResult; + }; +}; + +/** + * Contains response data for the listByResourceGroup operation. + */ +export type VirtualNetworkTapsListByResourceGroupResponse = VirtualNetworkTapListResult & { + /** + * 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: VirtualNetworkTapListResult; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type VirtualNetworkTapsBeginCreateOrUpdateResponse = VirtualNetworkTap & { + /** + * 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: VirtualNetworkTap; + }; +}; + +/** + * Contains response data for the beginUpdateTags operation. + */ +export type VirtualNetworkTapsBeginUpdateTagsResponse = VirtualNetworkTap & { + /** + * 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: VirtualNetworkTap; + }; +}; + +/** + * Contains response data for the listAllNext operation. + */ +export type VirtualNetworkTapsListAllNextResponse = VirtualNetworkTapListResult & { + /** + * 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: VirtualNetworkTapListResult; + }; +}; + +/** + * Contains response data for the listByResourceGroupNext operation. + */ +export type VirtualNetworkTapsListByResourceGroupNextResponse = VirtualNetworkTapListResult & { + /** + * 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: VirtualNetworkTapListResult; + }; +}; + /** * Contains response data for the createOrUpdate operation. */ @@ -19595,177 +19628,6 @@ export type LocalNetworkGatewaysListNextResponse = LocalNetworkGatewayListResult }; }; -/** - * Contains response data for the get operation. - */ -export type VirtualNetworkTapsGetResponse = VirtualNetworkTap & { - /** - * 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: VirtualNetworkTap; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type VirtualNetworkTapsCreateOrUpdateResponse = VirtualNetworkTap & { - /** - * 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: VirtualNetworkTap; - }; -}; - -/** - * Contains response data for the updateTags operation. - */ -export type VirtualNetworkTapsUpdateTagsResponse = VirtualNetworkTap & { - /** - * 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: VirtualNetworkTap; - }; -}; - -/** - * Contains response data for the listAll operation. - */ -export type VirtualNetworkTapsListAllResponse = VirtualNetworkTapListResult & { - /** - * 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: VirtualNetworkTapListResult; - }; -}; - -/** - * Contains response data for the listByResourceGroup operation. - */ -export type VirtualNetworkTapsListByResourceGroupResponse = VirtualNetworkTapListResult & { - /** - * 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: VirtualNetworkTapListResult; - }; -}; - -/** - * Contains response data for the beginCreateOrUpdate operation. - */ -export type VirtualNetworkTapsBeginCreateOrUpdateResponse = VirtualNetworkTap & { - /** - * 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: VirtualNetworkTap; - }; -}; - -/** - * Contains response data for the beginUpdateTags operation. - */ -export type VirtualNetworkTapsBeginUpdateTagsResponse = VirtualNetworkTap & { - /** - * 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: VirtualNetworkTap; - }; -}; - -/** - * Contains response data for the listAllNext operation. - */ -export type VirtualNetworkTapsListAllNextResponse = VirtualNetworkTapListResult & { - /** - * 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: VirtualNetworkTapListResult; - }; -}; - -/** - * Contains response data for the listByResourceGroupNext operation. - */ -export type VirtualNetworkTapsListByResourceGroupNextResponse = VirtualNetworkTapListResult & { - /** - * 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: VirtualNetworkTapListResult; - }; -}; - /** * Contains response data for the get operation. */ diff --git a/packages/@azure/arm-network/lib/models/mappers.ts b/packages/@azure/arm-network/lib/models/mappers.ts index f15d14066c43..5aff60a095d2 100644 --- a/packages/@azure/arm-network/lib/models/mappers.ts +++ b/packages/@azure/arm-network/lib/models/mappers.ts @@ -445,6 +445,7 @@ export const NetworkInterface: msRest.CompositeMapper = { modelProperties: { ...Resource.type.modelProperties, virtualMachine: { + readOnly: true, serializedName: "properties.virtualMachine", type: { name: "Composite", @@ -8411,29 +8412,6 @@ export const RetentionPolicyParameters: msRest.CompositeMapper = { } }; -export const FlowLogFormatParameters: msRest.CompositeMapper = { - serializedName: "FlowLogFormatParameters", - type: { - name: "Composite", - className: "FlowLogFormatParameters", - modelProperties: { - type: { - serializedName: "type", - type: { - name: "String" - } - }, - version: { - serializedName: "version", - defaultValue: 0, - type: { - name: "Number" - } - } - } - } -}; - export const FlowLogStatusParameters: msRest.CompositeMapper = { serializedName: "FlowLogStatusParameters", type: { @@ -8484,12 +8462,6 @@ export const TrafficAnalyticsConfigurationProperties: msRest.CompositeMapper = { type: { name: "String" } - }, - trafficAnalyticsInterval: { - serializedName: "trafficAnalyticsInterval", - type: { - name: "Number" - } } } } @@ -8547,13 +8519,6 @@ export const FlowLogInformation: msRest.CompositeMapper = { className: "RetentionPolicyParameters" } }, - format: { - serializedName: "properties.format", - type: { - name: "Composite", - className: "FlowLogFormatParameters" - } - }, flowAnalyticsConfiguration: { serializedName: "flowAnalyticsConfiguration", type: { @@ -14505,11 +14470,11 @@ export const VirtualNetworkPeeringListResult: msRest.CompositeMapper = { } }; -export const VirtualNetworkGatewayListResult: msRest.CompositeMapper = { - serializedName: "VirtualNetworkGatewayListResult", +export const VirtualNetworkTapListResult: msRest.CompositeMapper = { + serializedName: "VirtualNetworkTapListResult", type: { name: "Composite", - className: "VirtualNetworkGatewayListResult", + className: "VirtualNetworkTapListResult", modelProperties: { value: { serializedName: "", @@ -14518,13 +14483,12 @@ export const VirtualNetworkGatewayListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualNetworkGateway" + className: "VirtualNetworkTap" } } } }, nextLink: { - readOnly: true, serializedName: "nextLink", type: { name: "String" @@ -14534,11 +14498,11 @@ export const VirtualNetworkGatewayListResult: msRest.CompositeMapper = { } }; -export const VirtualNetworkGatewayListConnectionsResult: msRest.CompositeMapper = { - serializedName: "VirtualNetworkGatewayListConnectionsResult", +export const VirtualNetworkGatewayListResult: msRest.CompositeMapper = { + serializedName: "VirtualNetworkGatewayListResult", type: { name: "Composite", - className: "VirtualNetworkGatewayListConnectionsResult", + className: "VirtualNetworkGatewayListResult", modelProperties: { value: { serializedName: "", @@ -14547,7 +14511,7 @@ export const VirtualNetworkGatewayListConnectionsResult: msRest.CompositeMapper element: { type: { name: "Composite", - className: "VirtualNetworkGatewayConnectionListEntity" + className: "VirtualNetworkGateway" } } } @@ -14563,11 +14527,11 @@ export const VirtualNetworkGatewayListConnectionsResult: msRest.CompositeMapper } }; -export const VirtualNetworkGatewayConnectionListResult: msRest.CompositeMapper = { - serializedName: "VirtualNetworkGatewayConnectionListResult", +export const VirtualNetworkGatewayListConnectionsResult: msRest.CompositeMapper = { + serializedName: "VirtualNetworkGatewayListConnectionsResult", type: { name: "Composite", - className: "VirtualNetworkGatewayConnectionListResult", + className: "VirtualNetworkGatewayListConnectionsResult", modelProperties: { value: { serializedName: "", @@ -14576,7 +14540,7 @@ export const VirtualNetworkGatewayConnectionListResult: msRest.CompositeMapper = element: { type: { name: "Composite", - className: "VirtualNetworkGatewayConnection" + className: "VirtualNetworkGatewayConnectionListEntity" } } } @@ -14592,11 +14556,11 @@ export const VirtualNetworkGatewayConnectionListResult: msRest.CompositeMapper = } }; -export const LocalNetworkGatewayListResult: msRest.CompositeMapper = { - serializedName: "LocalNetworkGatewayListResult", +export const VirtualNetworkGatewayConnectionListResult: msRest.CompositeMapper = { + serializedName: "VirtualNetworkGatewayConnectionListResult", type: { name: "Composite", - className: "LocalNetworkGatewayListResult", + className: "VirtualNetworkGatewayConnectionListResult", modelProperties: { value: { serializedName: "", @@ -14605,7 +14569,7 @@ export const LocalNetworkGatewayListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "LocalNetworkGateway" + className: "VirtualNetworkGatewayConnection" } } } @@ -14621,11 +14585,11 @@ export const LocalNetworkGatewayListResult: msRest.CompositeMapper = { } }; -export const VirtualNetworkTapListResult: msRest.CompositeMapper = { - serializedName: "VirtualNetworkTapListResult", +export const LocalNetworkGatewayListResult: msRest.CompositeMapper = { + serializedName: "LocalNetworkGatewayListResult", type: { name: "Composite", - className: "VirtualNetworkTapListResult", + className: "LocalNetworkGatewayListResult", modelProperties: { value: { serializedName: "", @@ -14634,12 +14598,13 @@ export const VirtualNetworkTapListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualNetworkTap" + className: "LocalNetworkGateway" } } } }, nextLink: { + readOnly: true, serializedName: "nextLink", type: { name: "String" diff --git a/packages/@azure/arm-network/lib/models/networkWatchersMappers.ts b/packages/@azure/arm-network/lib/models/networkWatchersMappers.ts index f99f3d075550..e231e7a36d4d 100644 --- a/packages/@azure/arm-network/lib/models/networkWatchersMappers.ts +++ b/packages/@azure/arm-network/lib/models/networkWatchersMappers.ts @@ -41,7 +41,6 @@ export { QueryTroubleshootingParameters, FlowLogInformation, RetentionPolicyParameters, - FlowLogFormatParameters, TrafficAnalyticsProperties, TrafficAnalyticsConfigurationProperties, FlowLogStatusParameters, diff --git a/packages/@azure/arm-network/lib/models/parameters.ts b/packages/@azure/arm-network/lib/models/parameters.ts index b2d589da6872..dc6b1a9c0513 100644 --- a/packages/@azure/arm-network/lib/models/parameters.ts +++ b/packages/@azure/arm-network/lib/models/parameters.ts @@ -26,7 +26,7 @@ export const apiVersion0: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '2018-10-01', + defaultValue: '2018-08-01', type: { name: "String" } @@ -637,6 +637,16 @@ export const virtualHubName: msRest.OperationURLParameter = { } } }; +export const virtualmachineIndex: msRest.OperationURLParameter = { + parameterPath: "virtualmachineIndex", + mapper: { + required: true, + serializedName: "virtualmachineIndex", + type: { + name: "String" + } + } +}; export const virtualMachineScaleSetName: msRest.OperationURLParameter = { parameterPath: "virtualMachineScaleSetName", mapper: { @@ -687,41 +697,31 @@ export const virtualNetworkPeeringName: msRest.OperationURLParameter = { } } }; -export const virtualWANName0: msRest.OperationURLParameter = { - parameterPath: "virtualWANName", +export const virtualWanName: msRest.OperationURLParameter = { + parameterPath: "virtualWanName", mapper: { required: true, - serializedName: "virtualWANName", + serializedName: "virtualWanName", type: { name: "String" } } }; -export const virtualWANName1: msRest.OperationURLParameter = { +export const virtualWANName0: msRest.OperationURLParameter = { parameterPath: "virtualWANName", mapper: { required: true, - serializedName: "VirtualWANName", - type: { - name: "String" - } - } -}; -export const virtualWanName: msRest.OperationURLParameter = { - parameterPath: "virtualWanName", - mapper: { - required: true, - serializedName: "virtualWanName", + serializedName: "virtualWANName", type: { name: "String" } } }; -export const virtualmachineIndex: msRest.OperationURLParameter = { - parameterPath: "virtualmachineIndex", +export const virtualWANName1: msRest.OperationURLParameter = { + parameterPath: "virtualWANName", mapper: { required: true, - serializedName: "virtualmachineIndex", + serializedName: "VirtualWANName", type: { name: "String" } diff --git a/packages/@azure/arm-network/lib/networkManagementClient.ts b/packages/@azure/arm-network/lib/networkManagementClient.ts index eea29bd25dea..809fe9c840ef 100644 --- a/packages/@azure/arm-network/lib/networkManagementClient.ts +++ b/packages/@azure/arm-network/lib/networkManagementClient.ts @@ -72,10 +72,10 @@ class NetworkManagementClient extends NetworkManagementClientContext { virtualNetworks: operations.VirtualNetworks; subnets: operations.Subnets; virtualNetworkPeerings: operations.VirtualNetworkPeerings; + virtualNetworkTaps: operations.VirtualNetworkTaps; virtualNetworkGateways: operations.VirtualNetworkGateways; virtualNetworkGatewayConnections: operations.VirtualNetworkGatewayConnections; localNetworkGateways: operations.LocalNetworkGateways; - virtualNetworkTaps: operations.VirtualNetworkTaps; virtualWans: operations.VirtualWans; vpnSites: operations.VpnSites; vpnSitesConfiguration: operations.VpnSitesConfiguration; @@ -149,10 +149,10 @@ class NetworkManagementClient extends NetworkManagementClientContext { this.virtualNetworks = new operations.VirtualNetworks(this); this.subnets = new operations.Subnets(this); this.virtualNetworkPeerings = new operations.VirtualNetworkPeerings(this); + this.virtualNetworkTaps = new operations.VirtualNetworkTaps(this); this.virtualNetworkGateways = new operations.VirtualNetworkGateways(this); this.virtualNetworkGatewayConnections = new operations.VirtualNetworkGatewayConnections(this); this.localNetworkGateways = new operations.LocalNetworkGateways(this); - this.virtualNetworkTaps = new operations.VirtualNetworkTaps(this); this.virtualWans = new operations.VirtualWans(this); this.vpnSites = new operations.VpnSites(this); this.vpnSitesConfiguration = new operations.VpnSitesConfiguration(this); diff --git a/packages/@azure/arm-network/lib/operations/index.ts b/packages/@azure/arm-network/lib/operations/index.ts index 988917538cb2..aac883cb909b 100644 --- a/packages/@azure/arm-network/lib/operations/index.ts +++ b/packages/@azure/arm-network/lib/operations/index.ts @@ -62,10 +62,10 @@ export * from "./usages"; export * from "./virtualNetworks"; export * from "./subnets"; export * from "./virtualNetworkPeerings"; +export * from "./virtualNetworkTaps"; export * from "./virtualNetworkGateways"; export * from "./virtualNetworkGatewayConnections"; export * from "./localNetworkGateways"; -export * from "./virtualNetworkTaps"; export * from "./virtualWans"; export * from "./vpnSites"; export * from "./vpnSitesConfiguration"; diff --git a/packages/@azure/arm-network/lib/operations/virtualNetworks.ts b/packages/@azure/arm-network/lib/operations/virtualNetworks.ts index 092ca5bb68cc..4601f03e1785 100644 --- a/packages/@azure/arm-network/lib/operations/virtualNetworks.ts +++ b/packages/@azure/arm-network/lib/operations/virtualNetworks.ts @@ -151,7 +151,6 @@ export class VirtualNetworks { /** * Checks whether a private IP address is available for use. - * @param ipAddress The private IP address to be verified. * @param resourceGroupName The name of the resource group. * @param virtualNetworkName The name of the virtual network. * @param ipAddress The private IP address to be verified. @@ -160,7 +159,6 @@ export class VirtualNetworks { */ checkIPAddressAvailability(resourceGroupName: string, virtualNetworkName: string, ipAddress: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param ipAddress The private IP address to be verified. * @param resourceGroupName The name of the resource group. * @param virtualNetworkName The name of the virtual network. * @param ipAddress The private IP address to be verified. @@ -168,7 +166,6 @@ export class VirtualNetworks { */ checkIPAddressAvailability(resourceGroupName: string, virtualNetworkName: string, ipAddress: string, callback: msRest.ServiceCallback): void; /** - * @param ipAddress The private IP address to be verified. * @param resourceGroupName The name of the resource group. * @param virtualNetworkName The name of the virtual network. * @param ipAddress The private IP address to be verified. @@ -179,7 +176,6 @@ export class VirtualNetworks { checkIPAddressAvailability(resourceGroupName: string, virtualNetworkName: string, ipAddress: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { - ipAddress, resourceGroupName, virtualNetworkName, ipAddress, diff --git a/packages/@azure/arm-network/package.json b/packages/@azure/arm-network/package.json index 2a1f71d2eb5e..b41e881501d0 100644 --- a/packages/@azure/arm-network/package.json +++ b/packages/@azure/arm-network/package.json @@ -5,7 +5,7 @@ "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.181", - "ms-rest-js": "^1.0.461", + "ms-rest-js": "^1.0.460", "tslib": "^1.9.3" }, "keywords": [