From 91a11825744a192c8ce06adab388f97bf09aebcd Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Mon, 2 Apr 2018 21:06:44 +0000 Subject: [PATCH 1/2] Generated from 7ad48d8f71799eed22d68bc6052c27714794a3d8 fix the veresion for vmss public ip and nic --- .../network/mgmt/2018-02-01/network/client.go | 2 +- .../network/mgmt/2018-02-01/network/models.go | 101 +++++++++++++++--- 2 files changed, 90 insertions(+), 13 deletions(-) diff --git a/services/network/mgmt/2018-02-01/network/client.go b/services/network/mgmt/2018-02-01/network/client.go index d336d8b227aa..4c3f9c80d1fe 100644 --- a/services/network/mgmt/2018-02-01/network/client.go +++ b/services/network/mgmt/2018-02-01/network/client.go @@ -1,4 +1,4 @@ -// Package network implements the Azure ARM Network service API version 2018-02-01. +// Package network implements the Azure ARM Network service API version . // // Network Client package network diff --git a/services/network/mgmt/2018-02-01/network/models.go b/services/network/mgmt/2018-02-01/network/models.go index 60a27b8605f5..f293bfbc5b8e 100644 --- a/services/network/mgmt/2018-02-01/network/models.go +++ b/services/network/mgmt/2018-02-01/network/models.go @@ -391,6 +391,23 @@ func PossibleCircuitConnectionStatusValues() []CircuitConnectionStatus { return []CircuitConnectionStatus{Connected, Connecting, Disconnected} } +// ConnectionMonitorSourceStatus enumerates the values for connection monitor source status. +type ConnectionMonitorSourceStatus string + +const ( + // Active ... + Active ConnectionMonitorSourceStatus = "Active" + // Inactive ... + Inactive ConnectionMonitorSourceStatus = "Inactive" + // Uknown ... + Uknown ConnectionMonitorSourceStatus = "Uknown" +) + +// PossibleConnectionMonitorSourceStatusValues returns an array of possible values for the ConnectionMonitorSourceStatus const type. +func PossibleConnectionMonitorSourceStatusValues() []ConnectionMonitorSourceStatus { + return []ConnectionMonitorSourceStatus{Active, Inactive, Uknown} +} + // ConnectionState enumerates the values for connection state. type ConnectionState string @@ -492,15 +509,15 @@ func PossibleEffectiveRouteSourceValues() []EffectiveRouteSource { type EffectiveRouteState string const ( - // Active ... - Active EffectiveRouteState = "Active" - // Invalid ... - Invalid EffectiveRouteState = "Invalid" + // EffectiveRouteStateActive ... + EffectiveRouteStateActive EffectiveRouteState = "Active" + // EffectiveRouteStateInvalid ... + EffectiveRouteStateInvalid EffectiveRouteState = "Invalid" ) // PossibleEffectiveRouteStateValues returns an array of possible values for the EffectiveRouteState const type. func PossibleEffectiveRouteStateValues() []EffectiveRouteState { - return []EffectiveRouteState{Active, Invalid} + return []EffectiveRouteState{EffectiveRouteStateActive, EffectiveRouteStateInvalid} } // EffectiveSecurityRuleProtocol enumerates the values for effective security rule protocol. @@ -634,6 +651,19 @@ func PossibleExpressRoutePeeringTypeValues() []ExpressRoutePeeringType { return []ExpressRoutePeeringType{AzurePrivatePeering, AzurePublicPeering, MicrosoftPeering} } +// HTTPMethod enumerates the values for http method. +type HTTPMethod string + +const ( + // Get ... + Get HTTPMethod = "Get" +) + +// PossibleHTTPMethodValues returns an array of possible values for the HTTPMethod const type. +func PossibleHTTPMethodValues() []HTTPMethod { + return []HTTPMethod{Get} +} + // IkeEncryption enumerates the values for ike encryption. type IkeEncryption string @@ -697,6 +727,21 @@ func PossibleIPAllocationMethodValues() []IPAllocationMethod { return []IPAllocationMethod{Dynamic, Static} } +// IPFlowProtocol enumerates the values for ip flow protocol. +type IPFlowProtocol string + +const ( + // IPFlowProtocolTCP ... + IPFlowProtocolTCP IPFlowProtocol = "TCP" + // IPFlowProtocolUDP ... + IPFlowProtocolUDP IPFlowProtocol = "UDP" +) + +// PossibleIPFlowProtocolValues returns an array of possible values for the IPFlowProtocol const type. +func PossibleIPFlowProtocolValues() []IPFlowProtocol { + return []IPFlowProtocol{IPFlowProtocolTCP, IPFlowProtocolUDP} +} + // IpsecEncryption enumerates the values for ipsec encryption. type IpsecEncryption string @@ -1004,15 +1049,19 @@ func PossibleProcessorArchitectureValues() []ProcessorArchitecture { type Protocol string const ( + // ProtocolHTTP ... + ProtocolHTTP Protocol = "Http" + // ProtocolHTTPS ... + ProtocolHTTPS Protocol = "Https" + // ProtocolIcmp ... + ProtocolIcmp Protocol = "Icmp" // ProtocolTCP ... - ProtocolTCP Protocol = "TCP" - // ProtocolUDP ... - ProtocolUDP Protocol = "UDP" + ProtocolTCP Protocol = "Tcp" ) // PossibleProtocolValues returns an array of possible values for the Protocol const type. func PossibleProtocolValues() []Protocol { - return []Protocol{ProtocolTCP, ProtocolUDP} + return []Protocol{ProtocolHTTP, ProtocolHTTPS, ProtocolIcmp, ProtocolTCP} } // ProvisioningState enumerates the values for provisioning state. @@ -4897,6 +4946,8 @@ type ConnectionMonitorParameters struct { // ConnectionMonitorQueryResult list of connection states snaphots. type ConnectionMonitorQueryResult struct { autorest.Response `json:"-"` + // SourceStatus - Status of connection monitor source. Possible values include: 'Uknown', 'Active', 'Inactive' + SourceStatus ConnectionMonitorSourceStatus `json:"sourceStatus,omitempty"` // States - Information about connection states. States *[]ConnectionStateSnapshot `json:"states,omitempty"` } @@ -5381,6 +5432,9 @@ type ConnectivityIssue struct { type ConnectivityParameters struct { Source *ConnectivitySource `json:"source,omitempty"` Destination *ConnectivityDestination `json:"destination,omitempty"` + // Protocol - Network protocol. Possible values include: 'ProtocolTCP', 'ProtocolHTTP', 'ProtocolHTTPS', 'ProtocolIcmp' + Protocol Protocol `json:"protocol,omitempty"` + ProtocolConfiguration *ProtocolConfiguration `json:"protocolConfiguration,omitempty"` } // ConnectivitySource parameters that define the source of the connection. @@ -5836,7 +5890,7 @@ type EffectiveRoute struct { Name *string `json:"name,omitempty"` // Source - Who created the route. Possible values are: 'Unknown', 'User', 'VirtualNetworkGateway', and 'Default'. Possible values include: 'EffectiveRouteSourceUnknown', 'EffectiveRouteSourceUser', 'EffectiveRouteSourceVirtualNetworkGateway', 'EffectiveRouteSourceDefault' Source EffectiveRouteSource `json:"source,omitempty"` - // State - The value of effective route. Possible values are: 'Active' and 'Invalid'. Possible values include: 'Active', 'Invalid' + // State - The value of effective route. Possible values are: 'Active' and 'Invalid'. Possible values include: 'EffectiveRouteStateActive', 'EffectiveRouteStateInvalid' State EffectiveRouteState `json:"state,omitempty"` // AddressPrefix - The address prefixes of the effective routes in CIDR notation. AddressPrefix *[]string `json:"addressPrefix,omitempty"` @@ -8636,6 +8690,24 @@ type GatewayRouteListResult struct { Value *[]GatewayRoute `json:"value,omitempty"` } +// HTTPConfiguration HTTP configuration of the connectivity check. +type HTTPConfiguration struct { + // Method - HTTP method. Possible values include: 'Get' + Method HTTPMethod `json:"method,omitempty"` + // Headers - List of HTTP headers. + Headers *[]HTTPHeader `json:"headers,omitempty"` + // ValidStatusCodes - Valid status codes. + ValidStatusCodes *[]int32 `json:"validStatusCodes,omitempty"` +} + +// HTTPHeader describes the HTTP header. +type HTTPHeader struct { + // Name - The name in HTTP header. + Name *string `json:"name,omitempty"` + // Value - The value in HTTP header. + Value *string `json:"value,omitempty"` +} + // InboundNatPool inbound NAT pool of the load balancer. type InboundNatPool struct { // InboundNatPoolPropertiesFormat - Properties of load balancer inbound nat pool. @@ -12378,6 +12450,11 @@ type ProbePropertiesFormat struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// ProtocolConfiguration configuration of the protocol. +type ProtocolConfiguration struct { + HTTPConfiguration *HTTPConfiguration `json:"HTTPConfiguration,omitempty"` +} + // PublicIPAddress public IP address resource. type PublicIPAddress struct { autorest.Response `json:"-"` @@ -15736,8 +15813,8 @@ type VerificationIPFlowParameters struct { TargetResourceID *string `json:"targetResourceId,omitempty"` // Direction - The direction of the packet represented as a 5-tuple. Possible values include: 'Inbound', 'Outbound' Direction Direction `json:"direction,omitempty"` - // Protocol - Protocol to be verified on. Possible values include: 'ProtocolTCP', 'ProtocolUDP' - Protocol Protocol `json:"protocol,omitempty"` + // Protocol - Protocol to be verified on. Possible values include: 'IPFlowProtocolTCP', 'IPFlowProtocolUDP' + Protocol IPFlowProtocol `json:"protocol,omitempty"` // LocalPort - The local port. Acceptable values are a single integer in the range (0-65535). Support for * for the source port, which depends on the direction. LocalPort *string `json:"localPort,omitempty"` // RemotePort - The remote port. Acceptable values are a single integer in the range (0-65535). Support for * for the source port, which depends on the direction. From 7e691e9ecb6c9b6ad0cab1063c05e7a5624dc9f7 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Mon, 2 Apr 2018 21:43:06 +0000 Subject: [PATCH 2/2] Generated from 73c74aeee09b81dbe99d66c083439dc4ce62cf9d fix versions in other files --- services/network/mgmt/2018-02-01/network/interfaces.go | 10 +++++----- .../mgmt/2018-02-01/network/publicipaddresses.go | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/services/network/mgmt/2018-02-01/network/interfaces.go b/services/network/mgmt/2018-02-01/network/interfaces.go index 2f6e3c101791..58e635450e52 100644 --- a/services/network/mgmt/2018-02-01/network/interfaces.go +++ b/services/network/mgmt/2018-02-01/network/interfaces.go @@ -355,7 +355,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetIPConfigurationPreparer( "virtualMachineScaleSetName": autorest.Encode("path", virtualMachineScaleSetName), } - const APIVersion = "2018-02-01" + const APIVersion = "2017-03-30" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -428,7 +428,7 @@ func (client InterfacesClient) GetVirtualMachineScaleSetNetworkInterfacePreparer "virtualMachineScaleSetName": autorest.Encode("path", virtualMachineScaleSetName), } - const APIVersion = "2018-02-01" + const APIVersion = "2017-03-30" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -754,7 +754,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetIPConfigurationsPrepare "virtualMachineScaleSetName": autorest.Encode("path", virtualMachineScaleSetName), } - const APIVersion = "2018-02-01" + const APIVersion = "2017-03-30" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -852,7 +852,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetNetworkInterfacesPrepar "virtualMachineScaleSetName": autorest.Encode("path", virtualMachineScaleSetName), } - const APIVersion = "2018-02-01" + const APIVersion = "2017-03-30" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -949,7 +949,7 @@ func (client InterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfacesPrep "virtualMachineScaleSetName": autorest.Encode("path", virtualMachineScaleSetName), } - const APIVersion = "2018-02-01" + const APIVersion = "2017-03-30" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/services/network/mgmt/2018-02-01/network/publicipaddresses.go b/services/network/mgmt/2018-02-01/network/publicipaddresses.go index 67785df25fc3..a1323a88fb48 100644 --- a/services/network/mgmt/2018-02-01/network/publicipaddresses.go +++ b/services/network/mgmt/2018-02-01/network/publicipaddresses.go @@ -299,7 +299,7 @@ func (client PublicIPAddressesClient) GetVirtualMachineScaleSetPublicIPAddressPr "virtualMachineScaleSetName": autorest.Encode("path", virtualMachineScaleSetName), } - const APIVersion = "2018-02-01" + const APIVersion = "2017-03-30" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -554,7 +554,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetPublicIPAddresse "virtualMachineScaleSetName": autorest.Encode("path", virtualMachineScaleSetName), } - const APIVersion = "2018-02-01" + const APIVersion = "2017-03-30" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -654,7 +654,7 @@ func (client PublicIPAddressesClient) ListVirtualMachineScaleSetVMPublicIPAddres "virtualMachineScaleSetName": autorest.Encode("path", virtualMachineScaleSetName), } - const APIVersion = "2018-02-01" + const APIVersion = "2017-03-30" queryParameters := map[string]interface{}{ "api-version": APIVersion, }