From 9aaa48cd114e52fa748060ad25edc2fb303d8003 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Fri, 8 Jun 2018 23:39:38 +0000 Subject: [PATCH 1/3] Generated from 72d5eb2c513bd8cdd1a3761203b04324e29c4848 Adding VirtualWan Swagger --- .../management/network/AddressSpace.java | 4 +- .../ApplicationGatewayAutoscaleBounds.java | 70 + ...licationGatewayAutoscaleConfiguration.java | 43 + .../ApplicationGatewayBackendAddress.java | 8 +- ...ationGatewayBackendHealthHttpSettings.java | 8 +- .../ApplicationGatewayBackendHealthPool.java | 8 +- ...ApplicationGatewayBackendHealthServer.java | 12 +- .../ApplicationGatewayConnectionDraining.java | 8 +- ...ationGatewayFirewallDisabledRuleGroup.java | 8 +- .../ApplicationGatewayFirewallRule.java | 8 +- .../ApplicationGatewayFirewallRuleGroup.java | 12 +- ...cationGatewayProbeHealthResponseMatch.java | 8 +- .../network/ApplicationGatewaySku.java | 16 +- .../network/ApplicationGatewaySkuName.java | 6 + .../network/ApplicationGatewaySslPolicy.java | 20 +- .../network/ApplicationGatewayTier.java | 6 + ...ayWebApplicationFirewallConfiguration.java | 28 +- .../management/network/Availability.java | 12 +- .../network/AvailableProvidersListCity.java | 8 +- .../AvailableProvidersListCountry.java | 12 +- .../AvailableProvidersListParameters.java | 16 +- .../network/AvailableProvidersListState.java | 12 +- .../network/AzureAsyncOperationResult.java | 4 +- .../network/AzureReachabilityReportItem.java | 12 +- .../AzureReachabilityReportLatencyInfo.java | 8 +- .../AzureReachabilityReportLocation.java | 12 +- .../AzureReachabilityReportParameters.java | 16 +- .../management/network/BGPCommunity.java | 24 +- .../management/network/BgpPeerStatus.java | 16 +- .../azure/management/network/BgpSettings.java | 12 +- .../network/ConnectionMonitorDestination.java | 12 +- .../network/ConnectionMonitorParameters.java | 8 +- .../network/ConnectionMonitorSource.java | 8 +- .../network/ConnectionStateSnapshot.java | 18 +- .../network/ConnectivityDestination.java | 12 +- .../management/network/ConnectivityHop.java | 12 +- .../management/network/ConnectivityIssue.java | 8 +- .../network/ConnectivityParameters.java | 4 +- .../network/ConnectivitySource.java | 8 +- .../management/network/DeviceProperties.java | 95 ++ .../azure/management/network/DhcpOptions.java | 4 +- .../azure/management/network/Dimension.java | 12 +- .../EffectiveNetworkSecurityGroup.java | 16 +- ...ectiveNetworkSecurityGroupAssociation.java | 8 +- .../network/EffectiveNetworkSecurityRule.java | 60 +- .../management/network/EffectiveRoute.java | 24 +- .../management/network/ErrorException.java | 44 + .../network/ExpressRouteCircuitArpTable.java | 16 +- .../ExpressRouteCircuitPeeringConfig.java | 24 +- .../network/ExpressRouteCircuitReference.java | 4 +- .../ExpressRouteCircuitRoutesTable.java | 20 +- ...ExpressRouteCircuitRoutesTableSummary.java | 20 +- ...RouteCircuitServiceProviderProperties.java | 12 +- .../network/ExpressRouteCircuitSku.java | 12 +- ...outeCrossConnectionRoutesTableSummary.java | 16 +- ...RouteServiceProviderBandwidthsOffered.java | 8 +- .../network/FlowLogStatusParameters.java | 4 +- .../management/network/GatewayRoute.java | 14 +- .../GetVpnSitesConfigurationRequest.java | 72 + .../management/network/HTTPConfiguration.java | 12 +- .../azure/management/network/HTTPHeader.java | 8 +- .../HubVirtualNetworkConnectionStatus.java | 47 + .../azure/management/network/IpTag.java | 8 +- .../azure/management/network/IpsecPolicy.java | 32 +- .../Ipv6ExpressRouteCircuitPeeringConfig.java | 20 +- .../management/network/LoadBalancerSku.java | 4 +- .../management/network/LogSpecification.java | 12 +- .../network/MetricSpecification.java | 56 +- .../network/NetworkInterfaceAssociation.java | 6 +- .../network/NetworkInterfaceDnsSettings.java | 20 +- .../management/network/NextHopParameters.java | 16 +- .../management/network/OperationDisplay.java | 16 +- ...nPropertiesFormatServiceSpecification.java | 8 +- .../network/PacketCaptureFilter.java | 20 +- .../network/PacketCaptureParameters.java | 16 +- .../network/PacketCaptureStorageLocation.java | 12 +- .../network/PublicIPAddressDnsSettings.java | 12 +- .../network/PublicIPAddressSku.java | 4 +- .../QueryTroubleshootingParameters.java | 4 +- .../network/RetentionPolicyParameters.java | 8 +- .../SecurityGroupNetworkInterface.java | 4 +- .../network/SecurityGroupViewParameters.java | 4 +- .../network/SecurityRuleAssociations.java | 8 +- .../ServiceEndpointPropertiesFormat.java | 12 +- .../management/network/SubnetAssociation.java | 6 +- .../azure/management/network/TagsObject.java | 4 +- .../network/TopologyAssociation.java | 12 +- .../network/TopologyParameters.java | 12 +- .../management/network/TopologyResource.java | 16 +- ...afficAnalyticsConfigurationProperties.java | 16 +- .../network/TroubleshootingDetails.java | 20 +- .../network/TroubleshootingParameters.java | 12 +- .../TroubleshootingRecommendedActions.java | 16 +- .../network/TunnelConnectionHealth.java | 10 +- .../network/TunnelConnectionStatus.java | 47 + .../azure/management/network/UsageName.java | 8 +- .../network/VerificationIPFlowParameters.java | 32 +- ...tualNetworkConnectionGatewayReference.java | 4 +- .../network/VirtualNetworkGatewaySku.java | 12 +- .../network/VirtualNetworkUsageName.java | 4 +- .../network/VpnClientConfiguration.java | 28 +- .../network/VpnClientIPsecParameters.java | 32 +- .../network/VpnClientParameters.java | 16 +- .../network/VpnConnectionStatus.java | 47 + .../network/VpnDeviceScriptParameters.java | 12 +- .../azure/management/network/VpnSiteId.java | 32 + ...GatewayAuthenticationCertificateInner.java | 20 +- ...cationGatewayAvailableSslOptionsInner.java | 20 +- ...atewayAvailableWafRuleSetsResultInner.java | 4 +- ...icationGatewayBackendAddressPoolInner.java | 24 +- ...cationGatewayBackendHttpSettingsInner.java | 64 +- ...pplicationGatewayFirewallRuleSetInner.java | 20 +- ...onGatewayFrontendIPConfigurationInner.java | 32 +- .../ApplicationGatewayFrontendPortInner.java | 20 +- .../ApplicationGatewayHttpListenerInner.java | 40 +- ...pplicationGatewayIPConfigurationInner.java | 20 +- .../ApplicationGatewayInner.java | 136 +- .../ApplicationGatewayPathRuleInner.java | 32 +- .../ApplicationGatewayProbeInner.java | 52 +- ...tionGatewayRedirectConfigurationInner.java | 44 +- ...icationGatewayRequestRoutingRuleInner.java | 40 +- ...ApplicationGatewaySslCertificateInner.java | 28 +- ...cationGatewaySslPredefinedPolicyInner.java | 12 +- .../ApplicationGatewayUrlPathMapInner.java | 32 +- .../ApplicationSecurityGroupInner.java | 10 +- .../AvailableProvidersListInner.java | 4 +- .../AzureReachabilityReportInner.java | 8 +- .../BackendAddressPoolInner.java | 18 +- .../BgpPeerStatusListResultInner.java | 4 +- .../BgpServiceCommunityInner.java | 12 +- .../ConnectionMonitorInner.java | 16 +- .../ConnectionMonitorQueryResultInner.java | 8 +- .../ConnectionMonitorResultInner.java | 34 +- .../ConnectionResetSharedKeyInner.java | 4 +- .../ConnectionSharedKeyInner.java | 4 +- .../ConnectivityInformationInner.java | 14 +- .../DdosProtectionPlanInner.java | 22 +- .../DnsNameAvailabilityResultInner.java | 4 +- ...veNetworkSecurityGroupListResultInner.java | 6 +- .../EffectiveRouteListResultInner.java | 6 +- .../EndpointServiceResultInner.java | 4 +- ...ExpressRouteCircuitAuthorizationInner.java | 18 +- .../ExpressRouteCircuitConnectionInner.java | 26 +- .../ExpressRouteCircuitInner.java | 50 +- .../ExpressRouteCircuitPeeringInner.java | 78 +- .../ExpressRouteCircuitPeeringsInner.java | 8 +- .../ExpressRouteCircuitStatsInner.java | 16 +- ...sRouteCircuitsArpTableListResultInner.java | 8 +- ...uteCircuitsRoutesTableListResultInner.java | 8 +- ...uitsRoutesTableSummaryListResultInner.java | 8 +- .../ExpressRouteCrossConnectionInner.java | 38 +- ...pressRouteCrossConnectionPeeringInner.java | 58 +- ...ionsRoutesTableSummaryListResultInner.java | 6 +- .../ExpressRouteServiceProviderInner.java | 16 +- .../FlowLogInformationInner.java | 12 +- .../FrontendIPConfigurationInner.java | 40 +- .../GatewayRouteListResultInner.java | 4 +- .../HubVirtualNetworkConnectionInner.java | 171 +++ .../HubVirtualNetworkConnectionsInner.java | 397 +++++ .../IPAddressAvailabilityResultInner.java | 8 +- .../implementation/IPConfigurationInner.java | 28 +- .../implementation/InboundNatPoolInner.java | 40 +- .../implementation/InboundNatRuleInner.java | 38 +- .../implementation/LoadBalancerInner.java | 48 +- .../LoadBalancingRuleInner.java | 52 +- .../LocalNetworkGatewayInner.java | 26 +- .../NetworkInterfaceIPConfigurationInner.java | 52 +- .../implementation/NetworkInterfaceInner.java | 46 +- .../NetworkManagementClientImpl.java | 98 ++ .../NetworkSecurityGroupInner.java | 28 +- .../implementation/NetworkWatcherInner.java | 10 +- .../implementation/NextHopResultInner.java | 12 +- .../implementation/OperationInner.java | 16 +- .../implementation/OutboundNatRuleInner.java | 24 +- .../implementation/PacketCaptureInner.java | 16 +- .../PacketCaptureQueryStatusResultInner.java | 24 +- .../PacketCaptureResultInner.java | 24 +- .../implementation/PatchRouteFilterInner.java | 20 +- .../PatchRouteFilterRuleInner.java | 20 +- .../network/implementation/ProbeInner.java | 34 +- .../implementation/PublicIPAddressInner.java | 50 +- .../ResourceNavigationLinkInner.java | 16 +- .../implementation/RouteFilterInner.java | 16 +- .../implementation/RouteFilterRuleInner.java | 26 +- .../network/implementation/RouteInner.java | 24 +- .../implementation/RouteTableInner.java | 22 +- .../SecurityGroupViewResultInner.java | 4 +- .../implementation/SecurityRuleInner.java | 72 +- .../network/implementation/SubnetInner.java | 34 +- .../network/implementation/TopologyInner.java | 6 +- .../TroubleshootingResultInner.java | 16 +- .../network/implementation/UsageInner.java | 21 +- .../VerificationIPFlowResultInner.java | 8 +- .../implementation/VirtualHubInner.java | 172 +++ .../implementation/VirtualHubsInner.java | 1274 +++++++++++++++++ .../VirtualNetworkGatewayConnectionInner.java | 66 +- ...tworkGatewayConnectionListEntityInner.java | 66 +- ...ualNetworkGatewayIPConfigurationInner.java | 22 +- .../VirtualNetworkGatewayInner.java | 50 +- .../implementation/VirtualNetworkInner.java | 44 +- .../VirtualNetworkPeeringInner.java | 40 +- .../VirtualNetworkUsageInner.java | 10 +- .../implementation/VirtualWANInner.java | 150 ++ .../implementation/VirtualWANsInner.java | 1274 +++++++++++++++++ .../VpnClientRevokedCertificateInner.java | 14 +- .../VpnClientRootCertificateInner.java | 14 +- .../implementation/VpnConnectionInner.java | 298 ++++ .../implementation/VpnConnectionsInner.java | 389 +++++ .../implementation/VpnGatewayInner.java | 173 +++ .../implementation/VpnGatewaysInner.java | 1274 +++++++++++++++++ .../network/implementation/VpnSiteInner.java | 252 ++++ .../VpnSitesConfigurationsInner.java | 233 +++ .../network/implementation/VpnSitesInner.java | 1274 +++++++++++++++++ 213 files changed, 9813 insertions(+), 1814 deletions(-) create mode 100644 azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewayAutoscaleBounds.java create mode 100644 azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewayAutoscaleConfiguration.java create mode 100644 azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/DeviceProperties.java create mode 100644 azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ErrorException.java create mode 100644 azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/GetVpnSitesConfigurationRequest.java create mode 100644 azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/HubVirtualNetworkConnectionStatus.java create mode 100644 azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/TunnelConnectionStatus.java create mode 100644 azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/VpnConnectionStatus.java create mode 100644 azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/VpnSiteId.java create mode 100644 azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/HubVirtualNetworkConnectionInner.java create mode 100644 azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/HubVirtualNetworkConnectionsInner.java create mode 100644 azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VirtualHubInner.java create mode 100644 azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VirtualHubsInner.java create mode 100644 azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VirtualWANInner.java create mode 100644 azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VirtualWANsInner.java create mode 100644 azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnConnectionInner.java create mode 100644 azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnConnectionsInner.java create mode 100644 azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnGatewayInner.java create mode 100644 azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnGatewaysInner.java create mode 100644 azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnSiteInner.java create mode 100644 azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnSitesConfigurationsInner.java create mode 100644 azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnSitesInner.java diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/AddressSpace.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/AddressSpace.java index bff623ea33a..43486a61b40 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/AddressSpace.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/AddressSpace.java @@ -24,7 +24,7 @@ public class AddressSpace { private List addressPrefixes; /** - * Get the addressPrefixes value. + * Get a list of address blocks reserved for this virtual network in CIDR notation. * * @return the addressPrefixes value */ @@ -33,7 +33,7 @@ public List addressPrefixes() { } /** - * Set the addressPrefixes value. + * Set a list of address blocks reserved for this virtual network in CIDR notation. * * @param addressPrefixes the addressPrefixes value to set * @return the AddressSpace object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewayAutoscaleBounds.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewayAutoscaleBounds.java new file mode 100644 index 00000000000..3eaebecc8ef --- /dev/null +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewayAutoscaleBounds.java @@ -0,0 +1,70 @@ +/** + * 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. + */ + +package com.microsoft.azure.management.network; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Application Gateway autoscale bounds on number of Application Gateway + * instance. + */ +public class ApplicationGatewayAutoscaleBounds { + /** + * Lower bound on number of Application Gateway instances. + */ + @JsonProperty(value = "min", required = true) + private int min; + + /** + * Upper bound on number of Application Gateway instances. + */ + @JsonProperty(value = "max", required = true) + private int max; + + /** + * Get lower bound on number of Application Gateway instances. + * + * @return the min value + */ + public int min() { + return this.min; + } + + /** + * Set lower bound on number of Application Gateway instances. + * + * @param min the min value to set + * @return the ApplicationGatewayAutoscaleBounds object itself. + */ + public ApplicationGatewayAutoscaleBounds withMin(int min) { + this.min = min; + return this; + } + + /** + * Get upper bound on number of Application Gateway instances. + * + * @return the max value + */ + public int max() { + return this.max; + } + + /** + * Set upper bound on number of Application Gateway instances. + * + * @param max the max value to set + * @return the ApplicationGatewayAutoscaleBounds object itself. + */ + public ApplicationGatewayAutoscaleBounds withMax(int max) { + this.max = max; + return this; + } + +} diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewayAutoscaleConfiguration.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewayAutoscaleConfiguration.java new file mode 100644 index 00000000000..ae7a5a1a894 --- /dev/null +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewayAutoscaleConfiguration.java @@ -0,0 +1,43 @@ +/** + * 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. + */ + +package com.microsoft.azure.management.network; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Application Gateway autoscale configuration. + */ +public class ApplicationGatewayAutoscaleConfiguration { + /** + * Autoscale bounds. + */ + @JsonProperty(value = "bounds", required = true) + private ApplicationGatewayAutoscaleBounds bounds; + + /** + * Get autoscale bounds. + * + * @return the bounds value + */ + public ApplicationGatewayAutoscaleBounds bounds() { + return this.bounds; + } + + /** + * Set autoscale bounds. + * + * @param bounds the bounds value to set + * @return the ApplicationGatewayAutoscaleConfiguration object itself. + */ + public ApplicationGatewayAutoscaleConfiguration withBounds(ApplicationGatewayAutoscaleBounds bounds) { + this.bounds = bounds; + return this; + } + +} diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewayBackendAddress.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewayBackendAddress.java index 5c78996a255..a906f925409 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewayBackendAddress.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewayBackendAddress.java @@ -27,7 +27,7 @@ public class ApplicationGatewayBackendAddress { private String ipAddress; /** - * Get the fqdn value. + * Get fully qualified domain name (FQDN). * * @return the fqdn value */ @@ -36,7 +36,7 @@ public String fqdn() { } /** - * Set the fqdn value. + * Set fully qualified domain name (FQDN). * * @param fqdn the fqdn value to set * @return the ApplicationGatewayBackendAddress object itself. @@ -47,7 +47,7 @@ public ApplicationGatewayBackendAddress withFqdn(String fqdn) { } /** - * Get the ipAddress value. + * Get iP address. * * @return the ipAddress value */ @@ -56,7 +56,7 @@ public String ipAddress() { } /** - * Set the ipAddress value. + * Set iP address. * * @param ipAddress the ipAddress value to set * @return the ApplicationGatewayBackendAddress object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewayBackendHealthHttpSettings.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewayBackendHealthHttpSettings.java index 910b6c01975..fef8bc9b04a 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewayBackendHealthHttpSettings.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewayBackendHealthHttpSettings.java @@ -29,7 +29,7 @@ public class ApplicationGatewayBackendHealthHttpSettings { private List servers; /** - * Get the backendHttpSettings value. + * Get reference of an ApplicationGatewayBackendHttpSettings resource. * * @return the backendHttpSettings value */ @@ -38,7 +38,7 @@ public ApplicationGatewayBackendHttpSettingsInner backendHttpSettings() { } /** - * Set the backendHttpSettings value. + * Set reference of an ApplicationGatewayBackendHttpSettings resource. * * @param backendHttpSettings the backendHttpSettings value to set * @return the ApplicationGatewayBackendHealthHttpSettings object itself. @@ -49,7 +49,7 @@ public ApplicationGatewayBackendHealthHttpSettings withBackendHttpSettings(Appli } /** - * Get the servers value. + * Get list of ApplicationGatewayBackendHealthServer resources. * * @return the servers value */ @@ -58,7 +58,7 @@ public List servers() { } /** - * Set the servers value. + * Set list of ApplicationGatewayBackendHealthServer resources. * * @param servers the servers value to set * @return the ApplicationGatewayBackendHealthHttpSettings object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewayBackendHealthPool.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewayBackendHealthPool.java index 538a1333fba..6833cd21cdb 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewayBackendHealthPool.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewayBackendHealthPool.java @@ -29,7 +29,7 @@ public class ApplicationGatewayBackendHealthPool { private List backendHttpSettingsCollection; /** - * Get the backendAddressPool value. + * Get reference of an ApplicationGatewayBackendAddressPool resource. * * @return the backendAddressPool value */ @@ -38,7 +38,7 @@ public ApplicationGatewayBackendAddressPoolInner backendAddressPool() { } /** - * Set the backendAddressPool value. + * Set reference of an ApplicationGatewayBackendAddressPool resource. * * @param backendAddressPool the backendAddressPool value to set * @return the ApplicationGatewayBackendHealthPool object itself. @@ -49,7 +49,7 @@ public ApplicationGatewayBackendHealthPool withBackendAddressPool(ApplicationGat } /** - * Get the backendHttpSettingsCollection value. + * Get list of ApplicationGatewayBackendHealthHttpSettings resources. * * @return the backendHttpSettingsCollection value */ @@ -58,7 +58,7 @@ public List backendHttpSettingsColl } /** - * Set the backendHttpSettingsCollection value. + * Set list of ApplicationGatewayBackendHealthHttpSettings resources. * * @param backendHttpSettingsCollection the backendHttpSettingsCollection value to set * @return the ApplicationGatewayBackendHealthPool object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewayBackendHealthServer.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewayBackendHealthServer.java index f73c09c9c4f..507b3db2328 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewayBackendHealthServer.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewayBackendHealthServer.java @@ -35,7 +35,7 @@ public class ApplicationGatewayBackendHealthServer { private ApplicationGatewayBackendHealthServerHealth health; /** - * Get the address value. + * Get iP address or FQDN of backend server. * * @return the address value */ @@ -44,7 +44,7 @@ public String address() { } /** - * Set the address value. + * Set iP address or FQDN of backend server. * * @param address the address value to set * @return the ApplicationGatewayBackendHealthServer object itself. @@ -55,7 +55,7 @@ public ApplicationGatewayBackendHealthServer withAddress(String address) { } /** - * Get the ipConfiguration value. + * Get reference of IP configuration of backend server. * * @return the ipConfiguration value */ @@ -64,7 +64,7 @@ public NetworkInterfaceIPConfigurationInner ipConfiguration() { } /** - * Set the ipConfiguration value. + * Set reference of IP configuration of backend server. * * @param ipConfiguration the ipConfiguration value to set * @return the ApplicationGatewayBackendHealthServer object itself. @@ -75,7 +75,7 @@ public ApplicationGatewayBackendHealthServer withIpConfiguration(NetworkInterfac } /** - * Get the health value. + * Get health of backend server. Possible values include: 'Unknown', 'Up', 'Down', 'Partial', 'Draining'. * * @return the health value */ @@ -84,7 +84,7 @@ public ApplicationGatewayBackendHealthServerHealth health() { } /** - * Set the health value. + * Set health of backend server. Possible values include: 'Unknown', 'Up', 'Down', 'Partial', 'Draining'. * * @param health the health value to set * @return the ApplicationGatewayBackendHealthServer object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewayConnectionDraining.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewayConnectionDraining.java index c9efdbc1178..500fe928366 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewayConnectionDraining.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewayConnectionDraining.java @@ -30,7 +30,7 @@ public class ApplicationGatewayConnectionDraining { private int drainTimeoutInSec; /** - * Get the enabled value. + * Get whether connection draining is enabled or not. * * @return the enabled value */ @@ -39,7 +39,7 @@ public boolean enabled() { } /** - * Set the enabled value. + * Set whether connection draining is enabled or not. * * @param enabled the enabled value to set * @return the ApplicationGatewayConnectionDraining object itself. @@ -50,7 +50,7 @@ public ApplicationGatewayConnectionDraining withEnabled(boolean enabled) { } /** - * Get the drainTimeoutInSec value. + * Get the number of seconds connection draining is active. Acceptable values are from 1 second to 3600 seconds. * * @return the drainTimeoutInSec value */ @@ -59,7 +59,7 @@ public int drainTimeoutInSec() { } /** - * Set the drainTimeoutInSec value. + * Set the number of seconds connection draining is active. Acceptable values are from 1 second to 3600 seconds. * * @param drainTimeoutInSec the drainTimeoutInSec value to set * @return the ApplicationGatewayConnectionDraining object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewayFirewallDisabledRuleGroup.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewayFirewallDisabledRuleGroup.java index 41da4be5802..5a876ab0acf 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewayFirewallDisabledRuleGroup.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewayFirewallDisabledRuleGroup.java @@ -29,7 +29,7 @@ public class ApplicationGatewayFirewallDisabledRuleGroup { private List rules; /** - * Get the ruleGroupName value. + * Get the name of the rule group that will be disabled. * * @return the ruleGroupName value */ @@ -38,7 +38,7 @@ public String ruleGroupName() { } /** - * Set the ruleGroupName value. + * Set the name of the rule group that will be disabled. * * @param ruleGroupName the ruleGroupName value to set * @return the ApplicationGatewayFirewallDisabledRuleGroup object itself. @@ -49,7 +49,7 @@ public ApplicationGatewayFirewallDisabledRuleGroup withRuleGroupName(String rule } /** - * Get the rules value. + * Get the list of rules that will be disabled. If null, all rules of the rule group will be disabled. * * @return the rules value */ @@ -58,7 +58,7 @@ public List rules() { } /** - * Set the rules value. + * Set the list of rules that will be disabled. If null, all rules of the rule group will be disabled. * * @param rules the rules value to set * @return the ApplicationGatewayFirewallDisabledRuleGroup object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewayFirewallRule.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewayFirewallRule.java index 96aa1f38256..28f7454ebd7 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewayFirewallRule.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewayFirewallRule.java @@ -27,7 +27,7 @@ public class ApplicationGatewayFirewallRule { private String description; /** - * Get the ruleId value. + * Get the identifier of the web application firewall rule. * * @return the ruleId value */ @@ -36,7 +36,7 @@ public int ruleId() { } /** - * Set the ruleId value. + * Set the identifier of the web application firewall rule. * * @param ruleId the ruleId value to set * @return the ApplicationGatewayFirewallRule object itself. @@ -47,7 +47,7 @@ public ApplicationGatewayFirewallRule withRuleId(int ruleId) { } /** - * Get the description value. + * Get the description of the web application firewall rule. * * @return the description value */ @@ -56,7 +56,7 @@ public String description() { } /** - * Set the description value. + * Set the description of the web application firewall rule. * * @param description the description value to set * @return the ApplicationGatewayFirewallRule object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewayFirewallRuleGroup.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewayFirewallRuleGroup.java index cd9aa0676d0..9f6a90d478a 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewayFirewallRuleGroup.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewayFirewallRuleGroup.java @@ -34,7 +34,7 @@ public class ApplicationGatewayFirewallRuleGroup { private List rules; /** - * Get the ruleGroupName value. + * Get the name of the web application firewall rule group. * * @return the ruleGroupName value */ @@ -43,7 +43,7 @@ public String ruleGroupName() { } /** - * Set the ruleGroupName value. + * Set the name of the web application firewall rule group. * * @param ruleGroupName the ruleGroupName value to set * @return the ApplicationGatewayFirewallRuleGroup object itself. @@ -54,7 +54,7 @@ public ApplicationGatewayFirewallRuleGroup withRuleGroupName(String ruleGroupNam } /** - * Get the description value. + * Get the description of the web application firewall rule group. * * @return the description value */ @@ -63,7 +63,7 @@ public String description() { } /** - * Set the description value. + * Set the description of the web application firewall rule group. * * @param description the description value to set * @return the ApplicationGatewayFirewallRuleGroup object itself. @@ -74,7 +74,7 @@ public ApplicationGatewayFirewallRuleGroup withDescription(String description) { } /** - * Get the rules value. + * Get the rules of the web application firewall rule group. * * @return the rules value */ @@ -83,7 +83,7 @@ public List rules() { } /** - * Set the rules value. + * Set the rules of the web application firewall rule group. * * @param rules the rules value to set * @return the ApplicationGatewayFirewallRuleGroup object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewayProbeHealthResponseMatch.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewayProbeHealthResponseMatch.java index e6cd9c55978..1da6efca3ad 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewayProbeHealthResponseMatch.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewayProbeHealthResponseMatch.java @@ -30,7 +30,7 @@ public class ApplicationGatewayProbeHealthResponseMatch { private List statusCodes; /** - * Get the body value. + * Get body that must be contained in the health response. Default value is empty. * * @return the body value */ @@ -39,7 +39,7 @@ public String body() { } /** - * Set the body value. + * Set body that must be contained in the health response. Default value is empty. * * @param body the body value to set * @return the ApplicationGatewayProbeHealthResponseMatch object itself. @@ -50,7 +50,7 @@ public ApplicationGatewayProbeHealthResponseMatch withBody(String body) { } /** - * Get the statusCodes value. + * Get allowed ranges of healthy status codes. Default range of healthy status codes is 200-399. * * @return the statusCodes value */ @@ -59,7 +59,7 @@ public List statusCodes() { } /** - * Set the statusCodes value. + * Set allowed ranges of healthy status codes. Default range of healthy status codes is 200-399. * * @param statusCodes the statusCodes value to set * @return the ApplicationGatewayProbeHealthResponseMatch object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewaySku.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewaySku.java index edef3480328..29e63fce457 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewaySku.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewaySku.java @@ -17,14 +17,14 @@ public class ApplicationGatewaySku { /** * Name of an application gateway SKU. Possible values include: * 'Standard_Small', 'Standard_Medium', 'Standard_Large', 'WAF_Medium', - * 'WAF_Large'. + * 'WAF_Large', 'Standard_v2', 'WAF_v2'. */ @JsonProperty(value = "name") private ApplicationGatewaySkuName name; /** * Tier of an application gateway. Possible values include: 'Standard', - * 'WAF'. + * 'WAF', 'Standard_v2', 'WAF_v2'. */ @JsonProperty(value = "tier") private ApplicationGatewayTier tier; @@ -36,7 +36,7 @@ public class ApplicationGatewaySku { private Integer capacity; /** - * Get the name value. + * Get name of an application gateway SKU. Possible values include: 'Standard_Small', 'Standard_Medium', 'Standard_Large', 'WAF_Medium', 'WAF_Large', 'Standard_v2', 'WAF_v2'. * * @return the name value */ @@ -45,7 +45,7 @@ public ApplicationGatewaySkuName name() { } /** - * Set the name value. + * Set name of an application gateway SKU. Possible values include: 'Standard_Small', 'Standard_Medium', 'Standard_Large', 'WAF_Medium', 'WAF_Large', 'Standard_v2', 'WAF_v2'. * * @param name the name value to set * @return the ApplicationGatewaySku object itself. @@ -56,7 +56,7 @@ public ApplicationGatewaySku withName(ApplicationGatewaySkuName name) { } /** - * Get the tier value. + * Get tier of an application gateway. Possible values include: 'Standard', 'WAF', 'Standard_v2', 'WAF_v2'. * * @return the tier value */ @@ -65,7 +65,7 @@ public ApplicationGatewayTier tier() { } /** - * Set the tier value. + * Set tier of an application gateway. Possible values include: 'Standard', 'WAF', 'Standard_v2', 'WAF_v2'. * * @param tier the tier value to set * @return the ApplicationGatewaySku object itself. @@ -76,7 +76,7 @@ public ApplicationGatewaySku withTier(ApplicationGatewayTier tier) { } /** - * Get the capacity value. + * Get capacity (instance count) of an application gateway. * * @return the capacity value */ @@ -85,7 +85,7 @@ public Integer capacity() { } /** - * Set the capacity value. + * Set capacity (instance count) of an application gateway. * * @param capacity the capacity value to set * @return the ApplicationGatewaySku object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewaySkuName.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewaySkuName.java index 54575f5185d..ff8cd8ef8b4 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewaySkuName.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ApplicationGatewaySkuName.java @@ -31,6 +31,12 @@ public final class ApplicationGatewaySkuName extends ExpandableStringEnum disabledSslProtocols() { } /** - * Set the disabledSslProtocols value. + * Set ssl protocols to be disabled on application gateway. * * @param disabledSslProtocols the disabledSslProtocols value to set * @return the ApplicationGatewaySslPolicy object itself. @@ -70,7 +70,7 @@ public ApplicationGatewaySslPolicy withDisabledSslProtocols(List cipherSuites() { } /** - * Set the cipherSuites value. + * Set ssl cipher suites to be enabled in the specified order to application gateway. * * @param cipherSuites the cipherSuites value to set * @return the ApplicationGatewaySslPolicy object itself. @@ -130,7 +130,7 @@ public ApplicationGatewaySslPolicy withCipherSuites(List disabledRuleGroups() { } /** - * Set the disabledRuleGroups value. + * Set the disabled rule groups. * * @param disabledRuleGroups the disabledRuleGroups value to set * @return the ApplicationGatewayWebApplicationFirewallConfiguration object itself. @@ -160,7 +160,7 @@ public ApplicationGatewayWebApplicationFirewallConfiguration withDisabledRuleGro } /** - * Get the requestBodyCheck value. + * Get whether allow WAF to check request Body. * * @return the requestBodyCheck value */ @@ -169,7 +169,7 @@ public Boolean requestBodyCheck() { } /** - * Set the requestBodyCheck value. + * Set whether allow WAF to check request Body. * * @param requestBodyCheck the requestBodyCheck value to set * @return the ApplicationGatewayWebApplicationFirewallConfiguration object itself. @@ -180,7 +180,7 @@ public ApplicationGatewayWebApplicationFirewallConfiguration withRequestBodyChec } /** - * Get the maxRequestBodySize value. + * Get maxium request body size for WAF. * * @return the maxRequestBodySize value */ @@ -189,7 +189,7 @@ public Integer maxRequestBodySize() { } /** - * Set the maxRequestBodySize value. + * Set maxium request body size for WAF. * * @param maxRequestBodySize the maxRequestBodySize value to set * @return the ApplicationGatewayWebApplicationFirewallConfiguration object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/Availability.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/Availability.java index f668bf0aa8b..9ce472b7606 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/Availability.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/Availability.java @@ -33,7 +33,7 @@ public class Availability { private String blobDuration; /** - * Get the timeGrain value. + * Get the time grain of the availability. * * @return the timeGrain value */ @@ -42,7 +42,7 @@ public String timeGrain() { } /** - * Set the timeGrain value. + * Set the time grain of the availability. * * @param timeGrain the timeGrain value to set * @return the Availability object itself. @@ -53,7 +53,7 @@ public Availability withTimeGrain(String timeGrain) { } /** - * Get the retention value. + * Get the retention of the availability. * * @return the retention value */ @@ -62,7 +62,7 @@ public String retention() { } /** - * Set the retention value. + * Set the retention of the availability. * * @param retention the retention value to set * @return the Availability object itself. @@ -73,7 +73,7 @@ public Availability withRetention(String retention) { } /** - * Get the blobDuration value. + * Get duration of the availability blob. * * @return the blobDuration value */ @@ -82,7 +82,7 @@ public String blobDuration() { } /** - * Set the blobDuration value. + * Set duration of the availability blob. * * @param blobDuration the blobDuration value to set * @return the Availability object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/AvailableProvidersListCity.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/AvailableProvidersListCity.java index 31d51196111..ef6fc28e9a3 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/AvailableProvidersListCity.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/AvailableProvidersListCity.java @@ -28,7 +28,7 @@ public class AvailableProvidersListCity { private List providers; /** - * Get the cityName value. + * Get the city or town name. * * @return the cityName value */ @@ -37,7 +37,7 @@ public String cityName() { } /** - * Set the cityName value. + * Set the city or town name. * * @param cityName the cityName value to set * @return the AvailableProvidersListCity object itself. @@ -48,7 +48,7 @@ public AvailableProvidersListCity withCityName(String cityName) { } /** - * Get the providers value. + * Get a list of Internet service providers. * * @return the providers value */ @@ -57,7 +57,7 @@ public List providers() { } /** - * Set the providers value. + * Set a list of Internet service providers. * * @param providers the providers value to set * @return the AvailableProvidersListCity object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/AvailableProvidersListCountry.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/AvailableProvidersListCountry.java index 3d91fbfcd46..d336a8c0dda 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/AvailableProvidersListCountry.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/AvailableProvidersListCountry.java @@ -34,7 +34,7 @@ public class AvailableProvidersListCountry { private List states; /** - * Get the countryName value. + * Get the country name. * * @return the countryName value */ @@ -43,7 +43,7 @@ public String countryName() { } /** - * Set the countryName value. + * Set the country name. * * @param countryName the countryName value to set * @return the AvailableProvidersListCountry object itself. @@ -54,7 +54,7 @@ public AvailableProvidersListCountry withCountryName(String countryName) { } /** - * Get the providers value. + * Get a list of Internet service providers. * * @return the providers value */ @@ -63,7 +63,7 @@ public List providers() { } /** - * Set the providers value. + * Set a list of Internet service providers. * * @param providers the providers value to set * @return the AvailableProvidersListCountry object itself. @@ -74,7 +74,7 @@ public AvailableProvidersListCountry withProviders(List providers) { } /** - * Get the states value. + * Get list of available states in the country. * * @return the states value */ @@ -83,7 +83,7 @@ public List states() { } /** - * Set the states value. + * Set list of available states in the country. * * @param states the states value to set * @return the AvailableProvidersListCountry object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/AvailableProvidersListParameters.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/AvailableProvidersListParameters.java index 3efcaefd8be..29a9546bd2c 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/AvailableProvidersListParameters.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/AvailableProvidersListParameters.java @@ -40,7 +40,7 @@ public class AvailableProvidersListParameters { private String city; /** - * Get the azureLocations value. + * Get a list of Azure regions. * * @return the azureLocations value */ @@ -49,7 +49,7 @@ public List azureLocations() { } /** - * Set the azureLocations value. + * Set a list of Azure regions. * * @param azureLocations the azureLocations value to set * @return the AvailableProvidersListParameters object itself. @@ -60,7 +60,7 @@ public AvailableProvidersListParameters withAzureLocations(List azureLoc } /** - * Get the country value. + * Get the country for available providers list. * * @return the country value */ @@ -69,7 +69,7 @@ public String country() { } /** - * Set the country value. + * Set the country for available providers list. * * @param country the country value to set * @return the AvailableProvidersListParameters object itself. @@ -80,7 +80,7 @@ public AvailableProvidersListParameters withCountry(String country) { } /** - * Get the state value. + * Get the state for available providers list. * * @return the state value */ @@ -89,7 +89,7 @@ public String state() { } /** - * Set the state value. + * Set the state for available providers list. * * @param state the state value to set * @return the AvailableProvidersListParameters object itself. @@ -100,7 +100,7 @@ public AvailableProvidersListParameters withState(String state) { } /** - * Get the city value. + * Get the city or town for available providers list. * * @return the city value */ @@ -109,7 +109,7 @@ public String city() { } /** - * Set the city value. + * Set the city or town for available providers list. * * @param city the city value to set * @return the AvailableProvidersListParameters object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/AvailableProvidersListState.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/AvailableProvidersListState.java index 6815fc824eb..b7cc1151d92 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/AvailableProvidersListState.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/AvailableProvidersListState.java @@ -34,7 +34,7 @@ public class AvailableProvidersListState { private List cities; /** - * Get the stateName value. + * Get the state name. * * @return the stateName value */ @@ -43,7 +43,7 @@ public String stateName() { } /** - * Set the stateName value. + * Set the state name. * * @param stateName the stateName value to set * @return the AvailableProvidersListState object itself. @@ -54,7 +54,7 @@ public AvailableProvidersListState withStateName(String stateName) { } /** - * Get the providers value. + * Get a list of Internet service providers. * * @return the providers value */ @@ -63,7 +63,7 @@ public List providers() { } /** - * Set the providers value. + * Set a list of Internet service providers. * * @param providers the providers value to set * @return the AvailableProvidersListState object itself. @@ -74,7 +74,7 @@ public AvailableProvidersListState withProviders(List providers) { } /** - * Get the cities value. + * Get list of available cities or towns in the state. * * @return the cities value */ @@ -83,7 +83,7 @@ public List cities() { } /** - * Set the cities value. + * Set list of available cities or towns in the state. * * @param cities the cities value to set * @return the AvailableProvidersListState object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/AzureAsyncOperationResult.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/AzureAsyncOperationResult.java index 3ee2cfed6a8..483d1254ee0 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/AzureAsyncOperationResult.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/AzureAsyncOperationResult.java @@ -36,7 +36,7 @@ public class AzureAsyncOperationResult { private Error error; /** - * Get the status value. + * Get status of the Azure async operation. Possible values are: 'InProgress', 'Succeeded', and 'Failed'. Possible values include: 'InProgress', 'Succeeded', 'Failed'. * * @return the status value */ @@ -45,7 +45,7 @@ public NetworkOperationStatus status() { } /** - * Set the status value. + * Set status of the Azure async operation. Possible values are: 'InProgress', 'Succeeded', and 'Failed'. Possible values include: 'InProgress', 'Succeeded', 'Failed'. * * @param status the status value to set * @return the AzureAsyncOperationResult object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/AzureReachabilityReportItem.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/AzureReachabilityReportItem.java index a79899fa397..e5be4d158c0 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/AzureReachabilityReportItem.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/AzureReachabilityReportItem.java @@ -34,7 +34,7 @@ public class AzureReachabilityReportItem { private List latencies; /** - * Get the provider value. + * Get the Internet service provider. * * @return the provider value */ @@ -43,7 +43,7 @@ public String provider() { } /** - * Set the provider value. + * Set the Internet service provider. * * @param provider the provider value to set * @return the AzureReachabilityReportItem object itself. @@ -54,7 +54,7 @@ public AzureReachabilityReportItem withProvider(String provider) { } /** - * Get the azureLocation value. + * Get the Azure region. * * @return the azureLocation value */ @@ -63,7 +63,7 @@ public String azureLocation() { } /** - * Set the azureLocation value. + * Set the Azure region. * * @param azureLocation the azureLocation value to set * @return the AzureReachabilityReportItem object itself. @@ -74,7 +74,7 @@ public AzureReachabilityReportItem withAzureLocation(String azureLocation) { } /** - * Get the latencies value. + * Get list of latency details for each of the time series. * * @return the latencies value */ @@ -83,7 +83,7 @@ public List latencies() { } /** - * Set the latencies value. + * Set list of latency details for each of the time series. * * @param latencies the latencies value to set * @return the AzureReachabilityReportItem object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/AzureReachabilityReportLatencyInfo.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/AzureReachabilityReportLatencyInfo.java index b30967befb6..e774a9fcd67 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/AzureReachabilityReportLatencyInfo.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/AzureReachabilityReportLatencyInfo.java @@ -29,7 +29,7 @@ public class AzureReachabilityReportLatencyInfo { private Integer score; /** - * Get the timeStamp value. + * Get the time stamp. * * @return the timeStamp value */ @@ -38,7 +38,7 @@ public DateTime timeStamp() { } /** - * Set the timeStamp value. + * Set the time stamp. * * @param timeStamp the timeStamp value to set * @return the AzureReachabilityReportLatencyInfo object itself. @@ -49,7 +49,7 @@ public AzureReachabilityReportLatencyInfo withTimeStamp(DateTime timeStamp) { } /** - * Get the score value. + * Get the relative latency score between 1 and 100, higher values indicating a faster connection. * * @return the score value */ @@ -58,7 +58,7 @@ public Integer score() { } /** - * Set the score value. + * Set the relative latency score between 1 and 100, higher values indicating a faster connection. * * @param score the score value to set * @return the AzureReachabilityReportLatencyInfo object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/AzureReachabilityReportLocation.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/AzureReachabilityReportLocation.java index 30907387de8..07e0907fcec 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/AzureReachabilityReportLocation.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/AzureReachabilityReportLocation.java @@ -33,7 +33,7 @@ public class AzureReachabilityReportLocation { private String city; /** - * Get the country value. + * Get the name of the country. * * @return the country value */ @@ -42,7 +42,7 @@ public String country() { } /** - * Set the country value. + * Set the name of the country. * * @param country the country value to set * @return the AzureReachabilityReportLocation object itself. @@ -53,7 +53,7 @@ public AzureReachabilityReportLocation withCountry(String country) { } /** - * Get the state value. + * Get the name of the state. * * @return the state value */ @@ -62,7 +62,7 @@ public String state() { } /** - * Set the state value. + * Set the name of the state. * * @param state the state value to set * @return the AzureReachabilityReportLocation object itself. @@ -73,7 +73,7 @@ public AzureReachabilityReportLocation withState(String state) { } /** - * Get the city value. + * Get the name of the city or town. * * @return the city value */ @@ -82,7 +82,7 @@ public String city() { } /** - * Set the city value. + * Set the name of the city or town. * * @param city the city value to set * @return the AzureReachabilityReportLocation object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/AzureReachabilityReportParameters.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/AzureReachabilityReportParameters.java index aebd160ea01..7de16b7a1ca 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/AzureReachabilityReportParameters.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/AzureReachabilityReportParameters.java @@ -67,7 +67,7 @@ public AzureReachabilityReportParameters withProviderLocation(AzureReachabilityR } /** - * Get the providers value. + * Get list of Internet service providers. * * @return the providers value */ @@ -76,7 +76,7 @@ public List providers() { } /** - * Set the providers value. + * Set list of Internet service providers. * * @param providers the providers value to set * @return the AzureReachabilityReportParameters object itself. @@ -87,7 +87,7 @@ public AzureReachabilityReportParameters withProviders(List providers) { } /** - * Get the azureLocations value. + * Get optional Azure regions to scope the query to. * * @return the azureLocations value */ @@ -96,7 +96,7 @@ public List azureLocations() { } /** - * Set the azureLocations value. + * Set optional Azure regions to scope the query to. * * @param azureLocations the azureLocations value to set * @return the AzureReachabilityReportParameters object itself. @@ -107,7 +107,7 @@ public AzureReachabilityReportParameters withAzureLocations(List azureLo } /** - * Get the startTime value. + * Get the start time for the Azure reachability report. * * @return the startTime value */ @@ -116,7 +116,7 @@ public DateTime startTime() { } /** - * Set the startTime value. + * Set the start time for the Azure reachability report. * * @param startTime the startTime value to set * @return the AzureReachabilityReportParameters object itself. @@ -127,7 +127,7 @@ public AzureReachabilityReportParameters withStartTime(DateTime startTime) { } /** - * Get the endTime value. + * Get the end time for the Azure reachability report. * * @return the endTime value */ @@ -136,7 +136,7 @@ public DateTime endTime() { } /** - * Set the endTime value. + * Set the end time for the Azure reachability report. * * @param endTime the endTime value to set * @return the AzureReachabilityReportParameters object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/BGPCommunity.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/BGPCommunity.java index 0124f01d91c..94ad89df188 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/BGPCommunity.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/BGPCommunity.java @@ -53,7 +53,7 @@ public class BGPCommunity { private String serviceGroup; /** - * Get the serviceSupportedRegion value. + * Get the region which the service support. e.g. For O365, region is Global. * * @return the serviceSupportedRegion value */ @@ -62,7 +62,7 @@ public String serviceSupportedRegion() { } /** - * Set the serviceSupportedRegion value. + * Set the region which the service support. e.g. For O365, region is Global. * * @param serviceSupportedRegion the serviceSupportedRegion value to set * @return the BGPCommunity object itself. @@ -73,7 +73,7 @@ public BGPCommunity withServiceSupportedRegion(String serviceSupportedRegion) { } /** - * Get the communityName value. + * Get the name of the bgp community. e.g. Skype. * * @return the communityName value */ @@ -82,7 +82,7 @@ public String communityName() { } /** - * Set the communityName value. + * Set the name of the bgp community. e.g. Skype. * * @param communityName the communityName value to set * @return the BGPCommunity object itself. @@ -93,7 +93,7 @@ public BGPCommunity withCommunityName(String communityName) { } /** - * Get the communityValue value. + * Get the value of the bgp community. For more information: https://docs.microsoft.com/en-us/azure/expressroute/expressroute-routing. * * @return the communityValue value */ @@ -102,7 +102,7 @@ public String communityValue() { } /** - * Set the communityValue value. + * Set the value of the bgp community. For more information: https://docs.microsoft.com/en-us/azure/expressroute/expressroute-routing. * * @param communityValue the communityValue value to set * @return the BGPCommunity object itself. @@ -113,7 +113,7 @@ public BGPCommunity withCommunityValue(String communityValue) { } /** - * Get the communityPrefixes value. + * Get the prefixes that the bgp community contains. * * @return the communityPrefixes value */ @@ -122,7 +122,7 @@ public List communityPrefixes() { } /** - * Set the communityPrefixes value. + * Set the prefixes that the bgp community contains. * * @param communityPrefixes the communityPrefixes value to set * @return the BGPCommunity object itself. @@ -133,7 +133,7 @@ public BGPCommunity withCommunityPrefixes(List communityPrefixes) { } /** - * Get the isAuthorizedToUse value. + * Get customer is authorized to use bgp community or not. * * @return the isAuthorizedToUse value */ @@ -142,7 +142,7 @@ public Boolean isAuthorizedToUse() { } /** - * Set the isAuthorizedToUse value. + * Set customer is authorized to use bgp community or not. * * @param isAuthorizedToUse the isAuthorizedToUse value to set * @return the BGPCommunity object itself. @@ -153,7 +153,7 @@ public BGPCommunity withIsAuthorizedToUse(Boolean isAuthorizedToUse) { } /** - * Get the serviceGroup value. + * Get the service group of the bgp community contains. * * @return the serviceGroup value */ @@ -162,7 +162,7 @@ public String serviceGroup() { } /** - * Set the serviceGroup value. + * Set the service group of the bgp community contains. * * @param serviceGroup the serviceGroup value to set * @return the BGPCommunity object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/BgpPeerStatus.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/BgpPeerStatus.java index 85d9dc73eec..46f5954dd01 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/BgpPeerStatus.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/BgpPeerStatus.java @@ -64,7 +64,7 @@ public class BgpPeerStatus { private Long messagesReceived; /** - * Get the localAddress value. + * Get the virtual network gateway's local address. * * @return the localAddress value */ @@ -73,7 +73,7 @@ public String localAddress() { } /** - * Get the neighbor value. + * Get the remote BGP peer. * * @return the neighbor value */ @@ -82,7 +82,7 @@ public String neighbor() { } /** - * Get the asn value. + * Get the autonomous system number of the remote BGP peer. * * @return the asn value */ @@ -91,7 +91,7 @@ public Integer asn() { } /** - * Get the state value. + * Get the BGP peer state. Possible values include: 'Unknown', 'Stopped', 'Idle', 'Connecting', 'Connected'. * * @return the state value */ @@ -100,7 +100,7 @@ public BgpPeerState state() { } /** - * Get the connectedDuration value. + * Get for how long the peering has been up. * * @return the connectedDuration value */ @@ -109,7 +109,7 @@ public String connectedDuration() { } /** - * Get the routesReceived value. + * Get the number of routes learned from this peer. * * @return the routesReceived value */ @@ -118,7 +118,7 @@ public Long routesReceived() { } /** - * Get the messagesSent value. + * Get the number of BGP messages sent. * * @return the messagesSent value */ @@ -127,7 +127,7 @@ public Long messagesSent() { } /** - * Get the messagesReceived value. + * Get the number of BGP messages received. * * @return the messagesReceived value */ diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/BgpSettings.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/BgpSettings.java index 998f17f9dd2..c3cd11d9583 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/BgpSettings.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/BgpSettings.java @@ -33,7 +33,7 @@ public class BgpSettings { private Integer peerWeight; /** - * Get the asn value. + * Get the BGP speaker's ASN. * * @return the asn value */ @@ -42,7 +42,7 @@ public Long asn() { } /** - * Set the asn value. + * Set the BGP speaker's ASN. * * @param asn the asn value to set * @return the BgpSettings object itself. @@ -53,7 +53,7 @@ public BgpSettings withAsn(Long asn) { } /** - * Get the bgpPeeringAddress value. + * Get the BGP peering address and BGP identifier of this BGP speaker. * * @return the bgpPeeringAddress value */ @@ -62,7 +62,7 @@ public String bgpPeeringAddress() { } /** - * Set the bgpPeeringAddress value. + * Set the BGP peering address and BGP identifier of this BGP speaker. * * @param bgpPeeringAddress the bgpPeeringAddress value to set * @return the BgpSettings object itself. @@ -73,7 +73,7 @@ public BgpSettings withBgpPeeringAddress(String bgpPeeringAddress) { } /** - * Get the peerWeight value. + * Get the weight added to routes learned from this BGP speaker. * * @return the peerWeight value */ @@ -82,7 +82,7 @@ public Integer peerWeight() { } /** - * Set the peerWeight value. + * Set the weight added to routes learned from this BGP speaker. * * @param peerWeight the peerWeight value to set * @return the BgpSettings object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ConnectionMonitorDestination.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ConnectionMonitorDestination.java index ccc96f6d7f2..3555242f922 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ConnectionMonitorDestination.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ConnectionMonitorDestination.java @@ -33,7 +33,7 @@ public class ConnectionMonitorDestination { private Integer port; /** - * Get the resourceId value. + * Get the ID of the resource used as the destination by connection monitor. * * @return the resourceId value */ @@ -42,7 +42,7 @@ public String resourceId() { } /** - * Set the resourceId value. + * Set the ID of the resource used as the destination by connection monitor. * * @param resourceId the resourceId value to set * @return the ConnectionMonitorDestination object itself. @@ -53,7 +53,7 @@ public ConnectionMonitorDestination withResourceId(String resourceId) { } /** - * Get the address value. + * Get address of the connection monitor destination (IP or domain name). * * @return the address value */ @@ -62,7 +62,7 @@ public String address() { } /** - * Set the address value. + * Set address of the connection monitor destination (IP or domain name). * * @param address the address value to set * @return the ConnectionMonitorDestination object itself. @@ -73,7 +73,7 @@ public ConnectionMonitorDestination withAddress(String address) { } /** - * Get the port value. + * Get the destination port used by connection monitor. * * @return the port value */ @@ -82,7 +82,7 @@ public Integer port() { } /** - * Set the port value. + * Set the destination port used by connection monitor. * * @param port the port value to set * @return the ConnectionMonitorDestination object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ConnectionMonitorParameters.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ConnectionMonitorParameters.java index 21eb6852101..caade1050d9 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ConnectionMonitorParameters.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ConnectionMonitorParameters.java @@ -80,7 +80,7 @@ public ConnectionMonitorParameters withDestination(ConnectionMonitorDestination } /** - * Get the autoStart value. + * Get determines if the connection monitor will start automatically once created. * * @return the autoStart value */ @@ -89,7 +89,7 @@ public Boolean autoStart() { } /** - * Set the autoStart value. + * Set determines if the connection monitor will start automatically once created. * * @param autoStart the autoStart value to set * @return the ConnectionMonitorParameters object itself. @@ -100,7 +100,7 @@ public ConnectionMonitorParameters withAutoStart(Boolean autoStart) { } /** - * Get the monitoringIntervalInSeconds value. + * Get monitoring interval in seconds. * * @return the monitoringIntervalInSeconds value */ @@ -109,7 +109,7 @@ public Integer monitoringIntervalInSeconds() { } /** - * Set the monitoringIntervalInSeconds value. + * Set monitoring interval in seconds. * * @param monitoringIntervalInSeconds the monitoringIntervalInSeconds value to set * @return the ConnectionMonitorParameters object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ConnectionMonitorSource.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ConnectionMonitorSource.java index 894858c8444..a3a2fb24abe 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ConnectionMonitorSource.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ConnectionMonitorSource.java @@ -27,7 +27,7 @@ public class ConnectionMonitorSource { private Integer port; /** - * Get the resourceId value. + * Get the ID of the resource used as the source by connection monitor. * * @return the resourceId value */ @@ -36,7 +36,7 @@ public String resourceId() { } /** - * Set the resourceId value. + * Set the ID of the resource used as the source by connection monitor. * * @param resourceId the resourceId value to set * @return the ConnectionMonitorSource object itself. @@ -47,7 +47,7 @@ public ConnectionMonitorSource withResourceId(String resourceId) { } /** - * Get the port value. + * Get the source port used by connection monitor. * * @return the port value */ @@ -56,7 +56,7 @@ public Integer port() { } /** - * Set the port value. + * Set the source port used by connection monitor. * * @param port the port value to set * @return the ConnectionMonitorSource object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ConnectionStateSnapshot.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ConnectionStateSnapshot.java index 11ab5864d0a..986a3b30715 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ConnectionStateSnapshot.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ConnectionStateSnapshot.java @@ -49,7 +49,7 @@ public class ConnectionStateSnapshot { private List hops; /** - * Get the connectionState value. + * Get the connection state. Possible values include: 'Reachable', 'Unreachable', 'Unknown'. * * @return the connectionState value */ @@ -58,7 +58,7 @@ public ConnectionState connectionState() { } /** - * Set the connectionState value. + * Set the connection state. Possible values include: 'Reachable', 'Unreachable', 'Unknown'. * * @param connectionState the connectionState value to set * @return the ConnectionStateSnapshot object itself. @@ -69,7 +69,7 @@ public ConnectionStateSnapshot withConnectionState(ConnectionState connectionSta } /** - * Get the startTime value. + * Get the start time of the connection snapshot. * * @return the startTime value */ @@ -78,7 +78,7 @@ public DateTime startTime() { } /** - * Set the startTime value. + * Set the start time of the connection snapshot. * * @param startTime the startTime value to set * @return the ConnectionStateSnapshot object itself. @@ -89,7 +89,7 @@ public ConnectionStateSnapshot withStartTime(DateTime startTime) { } /** - * Get the endTime value. + * Get the end time of the connection snapshot. * * @return the endTime value */ @@ -98,7 +98,7 @@ public DateTime endTime() { } /** - * Set the endTime value. + * Set the end time of the connection snapshot. * * @param endTime the endTime value to set * @return the ConnectionStateSnapshot object itself. @@ -109,7 +109,7 @@ public ConnectionStateSnapshot withEndTime(DateTime endTime) { } /** - * Get the evaluationState value. + * Get connectivity analysis evaluation state. Possible values include: 'NotStarted', 'InProgress', 'Completed'. * * @return the evaluationState value */ @@ -118,7 +118,7 @@ public EvaluationState evaluationState() { } /** - * Set the evaluationState value. + * Set connectivity analysis evaluation state. Possible values include: 'NotStarted', 'InProgress', 'Completed'. * * @param evaluationState the evaluationState value to set * @return the ConnectionStateSnapshot object itself. @@ -129,7 +129,7 @@ public ConnectionStateSnapshot withEvaluationState(EvaluationState evaluationSta } /** - * Get the hops value. + * Get list of hops between the source and the destination. * * @return the hops value */ diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ConnectivityDestination.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ConnectivityDestination.java index 085b7ae9f61..7384023d8aa 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ConnectivityDestination.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ConnectivityDestination.java @@ -34,7 +34,7 @@ public class ConnectivityDestination { private Integer port; /** - * Get the resourceId value. + * Get the ID of the resource to which a connection attempt will be made. * * @return the resourceId value */ @@ -43,7 +43,7 @@ public String resourceId() { } /** - * Set the resourceId value. + * Set the ID of the resource to which a connection attempt will be made. * * @param resourceId the resourceId value to set * @return the ConnectivityDestination object itself. @@ -54,7 +54,7 @@ public ConnectivityDestination withResourceId(String resourceId) { } /** - * Get the address value. + * Get the IP address or URI the resource to which a connection attempt will be made. * * @return the address value */ @@ -63,7 +63,7 @@ public String address() { } /** - * Set the address value. + * Set the IP address or URI the resource to which a connection attempt will be made. * * @param address the address value to set * @return the ConnectivityDestination object itself. @@ -74,7 +74,7 @@ public ConnectivityDestination withAddress(String address) { } /** - * Get the port value. + * Get port on which check connectivity will be performed. * * @return the port value */ @@ -83,7 +83,7 @@ public Integer port() { } /** - * Set the port value. + * Set port on which check connectivity will be performed. * * @param port the port value to set * @return the ConnectivityDestination object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ConnectivityHop.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ConnectivityHop.java index 9103e1faca1..4bb72b00667 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ConnectivityHop.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ConnectivityHop.java @@ -52,7 +52,7 @@ public class ConnectivityHop { private List issues; /** - * Get the type value. + * Get the type of the hop. * * @return the type value */ @@ -61,7 +61,7 @@ public String type() { } /** - * Get the id value. + * Get the ID of the hop. * * @return the id value */ @@ -70,7 +70,7 @@ public String id() { } /** - * Get the address value. + * Get the IP address of the hop. * * @return the address value */ @@ -79,7 +79,7 @@ public String address() { } /** - * Get the resourceId value. + * Get the ID of the resource corresponding to this hop. * * @return the resourceId value */ @@ -88,7 +88,7 @@ public String resourceId() { } /** - * Get the nextHopIds value. + * Get list of next hop identifiers. * * @return the nextHopIds value */ @@ -97,7 +97,7 @@ public List nextHopIds() { } /** - * Get the issues value. + * Get list of issues. * * @return the issues value */ diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ConnectivityIssue.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ConnectivityIssue.java index d38de1af65d..dec1df8b9cf 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ConnectivityIssue.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ConnectivityIssue.java @@ -45,7 +45,7 @@ public class ConnectivityIssue { private List> context; /** - * Get the origin value. + * Get the origin of the issue. Possible values include: 'Local', 'Inbound', 'Outbound'. * * @return the origin value */ @@ -54,7 +54,7 @@ public Origin origin() { } /** - * Get the severity value. + * Get the severity of the issue. Possible values include: 'Error', 'Warning'. * * @return the severity value */ @@ -63,7 +63,7 @@ public Severity severity() { } /** - * Get the type value. + * Get the type of issue. Possible values include: 'Unknown', 'AgentStopped', 'GuestFirewall', 'DnsResolution', 'SocketBind', 'NetworkSecurityRule', 'UserDefinedRoute', 'PortThrottled', 'Platform'. * * @return the type value */ @@ -72,7 +72,7 @@ public IssueType type() { } /** - * Get the context value. + * Get provides additional context on the issue. * * @return the context value */ diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ConnectivityParameters.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ConnectivityParameters.java index ae6ae4a3c7a..3ed485bfbb4 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ConnectivityParameters.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ConnectivityParameters.java @@ -80,7 +80,7 @@ public ConnectivityParameters withDestination(ConnectivityDestination destinatio } /** - * Get the protocol value. + * Get network protocol. Possible values include: 'Tcp', 'Http', 'Https', 'Icmp'. * * @return the protocol value */ @@ -89,7 +89,7 @@ public Protocol protocol() { } /** - * Set the protocol value. + * Set network protocol. Possible values include: 'Tcp', 'Http', 'Https', 'Icmp'. * * @param protocol the protocol value to set * @return the ConnectivityParameters object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ConnectivitySource.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ConnectivitySource.java index 665c96c02ad..d9c66e23c90 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ConnectivitySource.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ConnectivitySource.java @@ -28,7 +28,7 @@ public class ConnectivitySource { private Integer port; /** - * Get the resourceId value. + * Get the ID of the resource from which a connectivity check will be initiated. * * @return the resourceId value */ @@ -37,7 +37,7 @@ public String resourceId() { } /** - * Set the resourceId value. + * Set the ID of the resource from which a connectivity check will be initiated. * * @param resourceId the resourceId value to set * @return the ConnectivitySource object itself. @@ -48,7 +48,7 @@ public ConnectivitySource withResourceId(String resourceId) { } /** - * Get the port value. + * Get the source port from which a connectivity check will be performed. * * @return the port value */ @@ -57,7 +57,7 @@ public Integer port() { } /** - * Set the port value. + * Set the source port from which a connectivity check will be performed. * * @param port the port value to set * @return the ConnectivitySource object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/DeviceProperties.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/DeviceProperties.java new file mode 100644 index 00000000000..8f9fc0b2439 --- /dev/null +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/DeviceProperties.java @@ -0,0 +1,95 @@ +/** + * 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. + */ + +package com.microsoft.azure.management.network; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * List of properties of the device. + */ +public class DeviceProperties { + /** + * Name of the device Vendor. + */ + @JsonProperty(value = "deviceVendor") + private String deviceVendor; + + /** + * Model of the device. + */ + @JsonProperty(value = "deviceModel") + private String deviceModel; + + /** + * Link speed. + */ + @JsonProperty(value = "linkSpeedInMbps") + private Integer linkSpeedInMbps; + + /** + * Get name of the device Vendor. + * + * @return the deviceVendor value + */ + public String deviceVendor() { + return this.deviceVendor; + } + + /** + * Set name of the device Vendor. + * + * @param deviceVendor the deviceVendor value to set + * @return the DeviceProperties object itself. + */ + public DeviceProperties withDeviceVendor(String deviceVendor) { + this.deviceVendor = deviceVendor; + return this; + } + + /** + * Get model of the device. + * + * @return the deviceModel value + */ + public String deviceModel() { + return this.deviceModel; + } + + /** + * Set model of the device. + * + * @param deviceModel the deviceModel value to set + * @return the DeviceProperties object itself. + */ + public DeviceProperties withDeviceModel(String deviceModel) { + this.deviceModel = deviceModel; + return this; + } + + /** + * Get link speed. + * + * @return the linkSpeedInMbps value + */ + public Integer linkSpeedInMbps() { + return this.linkSpeedInMbps; + } + + /** + * Set link speed. + * + * @param linkSpeedInMbps the linkSpeedInMbps value to set + * @return the DeviceProperties object itself. + */ + public DeviceProperties withLinkSpeedInMbps(Integer linkSpeedInMbps) { + this.linkSpeedInMbps = linkSpeedInMbps; + return this; + } + +} diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/DhcpOptions.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/DhcpOptions.java index 11c9763802c..9a7465644cc 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/DhcpOptions.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/DhcpOptions.java @@ -24,7 +24,7 @@ public class DhcpOptions { private List dnsServers; /** - * Get the dnsServers value. + * Get the list of DNS servers IP addresses. * * @return the dnsServers value */ @@ -33,7 +33,7 @@ public List dnsServers() { } /** - * Set the dnsServers value. + * Set the list of DNS servers IP addresses. * * @param dnsServers the dnsServers value to set * @return the DhcpOptions object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/Dimension.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/Dimension.java index dc600f491d8..58a66b45ae3 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/Dimension.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/Dimension.java @@ -33,7 +33,7 @@ public class Dimension { private String internalName; /** - * Get the name value. + * Get the name of the dimension. * * @return the name value */ @@ -42,7 +42,7 @@ public String name() { } /** - * Set the name value. + * Set the name of the dimension. * * @param name the name value to set * @return the Dimension object itself. @@ -53,7 +53,7 @@ public Dimension withName(String name) { } /** - * Get the displayName value. + * Get the display name of the dimension. * * @return the displayName value */ @@ -62,7 +62,7 @@ public String displayName() { } /** - * Set the displayName value. + * Set the display name of the dimension. * * @param displayName the displayName value to set * @return the Dimension object itself. @@ -73,7 +73,7 @@ public Dimension withDisplayName(String displayName) { } /** - * Get the internalName value. + * Get the internal name of the dimension. * * @return the internalName value */ @@ -82,7 +82,7 @@ public String internalName() { } /** - * Set the internalName value. + * Set the internal name of the dimension. * * @param internalName the internalName value to set * @return the Dimension object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/EffectiveNetworkSecurityGroup.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/EffectiveNetworkSecurityGroup.java index 403dda8d3bd..4f81ffee4da 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/EffectiveNetworkSecurityGroup.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/EffectiveNetworkSecurityGroup.java @@ -42,7 +42,7 @@ public class EffectiveNetworkSecurityGroup { private Map> tagMap; /** - * Get the networkSecurityGroup value. + * Get the ID of network security group that is applied. * * @return the networkSecurityGroup value */ @@ -51,7 +51,7 @@ public SubResource networkSecurityGroup() { } /** - * Set the networkSecurityGroup value. + * Set the ID of network security group that is applied. * * @param networkSecurityGroup the networkSecurityGroup value to set * @return the EffectiveNetworkSecurityGroup object itself. @@ -62,7 +62,7 @@ public EffectiveNetworkSecurityGroup withNetworkSecurityGroup(SubResource networ } /** - * Get the association value. + * Get associated resources. * * @return the association value */ @@ -71,7 +71,7 @@ public EffectiveNetworkSecurityGroupAssociation association() { } /** - * Set the association value. + * Set associated resources. * * @param association the association value to set * @return the EffectiveNetworkSecurityGroup object itself. @@ -82,7 +82,7 @@ public EffectiveNetworkSecurityGroup withAssociation(EffectiveNetworkSecurityGro } /** - * Get the effectiveSecurityRules value. + * Get a collection of effective security rules. * * @return the effectiveSecurityRules value */ @@ -91,7 +91,7 @@ public List effectiveSecurityRules() { } /** - * Set the effectiveSecurityRules value. + * Set a collection of effective security rules. * * @param effectiveSecurityRules the effectiveSecurityRules value to set * @return the EffectiveNetworkSecurityGroup object itself. @@ -102,7 +102,7 @@ public EffectiveNetworkSecurityGroup withEffectiveSecurityRules(List> tagMap() { } /** - * Set the tagMap value. + * Set mapping of tags to list of IP Addresses included within the tag. * * @param tagMap the tagMap value to set * @return the EffectiveNetworkSecurityGroup object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/EffectiveNetworkSecurityGroupAssociation.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/EffectiveNetworkSecurityGroupAssociation.java index 5fc7e0b03a5..e154cda8f8a 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/EffectiveNetworkSecurityGroupAssociation.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/EffectiveNetworkSecurityGroupAssociation.java @@ -28,7 +28,7 @@ public class EffectiveNetworkSecurityGroupAssociation { private SubResource networkInterface; /** - * Get the subnet value. + * Get the ID of the subnet if assigned. * * @return the subnet value */ @@ -37,7 +37,7 @@ public SubResource subnet() { } /** - * Set the subnet value. + * Set the ID of the subnet if assigned. * * @param subnet the subnet value to set * @return the EffectiveNetworkSecurityGroupAssociation object itself. @@ -48,7 +48,7 @@ public EffectiveNetworkSecurityGroupAssociation withSubnet(SubResource subnet) { } /** - * Get the networkInterface value. + * Get the ID of the network interface if assigned. * * @return the networkInterface value */ @@ -57,7 +57,7 @@ public SubResource networkInterface() { } /** - * Set the networkInterface value. + * Set the ID of the network interface if assigned. * * @param networkInterface the networkInterface value to set * @return the EffectiveNetworkSecurityGroupAssociation object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/EffectiveNetworkSecurityRule.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/EffectiveNetworkSecurityRule.java index e8274a2f151..35ccfefa9ae 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/EffectiveNetworkSecurityRule.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/EffectiveNetworkSecurityRule.java @@ -118,7 +118,7 @@ public class EffectiveNetworkSecurityRule { private SecurityRuleDirection direction; /** - * Get the name value. + * Get the name of the security rule specified by the user (if created by the user). * * @return the name value */ @@ -127,7 +127,7 @@ public String name() { } /** - * Set the name value. + * Set the name of the security rule specified by the user (if created by the user). * * @param name the name value to set * @return the EffectiveNetworkSecurityRule object itself. @@ -138,7 +138,7 @@ public EffectiveNetworkSecurityRule withName(String name) { } /** - * Get the protocol value. + * Get the network protocol this rule applies to. Possible values are: 'Tcp', 'Udp', and 'All'. Possible values include: 'Tcp', 'Udp', 'All'. * * @return the protocol value */ @@ -147,7 +147,7 @@ public EffectiveSecurityRuleProtocol protocol() { } /** - * Set the protocol value. + * Set the network protocol this rule applies to. Possible values are: 'Tcp', 'Udp', and 'All'. Possible values include: 'Tcp', 'Udp', 'All'. * * @param protocol the protocol value to set * @return the EffectiveNetworkSecurityRule object itself. @@ -158,7 +158,7 @@ public EffectiveNetworkSecurityRule withProtocol(EffectiveSecurityRuleProtocol p } /** - * Get the sourcePortRange value. + * Get the source port or range. * * @return the sourcePortRange value */ @@ -167,7 +167,7 @@ public String sourcePortRange() { } /** - * Set the sourcePortRange value. + * Set the source port or range. * * @param sourcePortRange the sourcePortRange value to set * @return the EffectiveNetworkSecurityRule object itself. @@ -178,7 +178,7 @@ public EffectiveNetworkSecurityRule withSourcePortRange(String sourcePortRange) } /** - * Get the destinationPortRange value. + * Get the destination port or range. * * @return the destinationPortRange value */ @@ -187,7 +187,7 @@ public String destinationPortRange() { } /** - * Set the destinationPortRange value. + * Set the destination port or range. * * @param destinationPortRange the destinationPortRange value to set * @return the EffectiveNetworkSecurityRule object itself. @@ -198,7 +198,7 @@ public EffectiveNetworkSecurityRule withDestinationPortRange(String destinationP } /** - * Get the sourcePortRanges value. + * Get the source port ranges. Expected values include a single integer between 0 and 65535, a range using '-' as seperator (e.g. 100-400), or an asterix (*). * * @return the sourcePortRanges value */ @@ -207,7 +207,7 @@ public List sourcePortRanges() { } /** - * Set the sourcePortRanges value. + * Set the source port ranges. Expected values include a single integer between 0 and 65535, a range using '-' as seperator (e.g. 100-400), or an asterix (*). * * @param sourcePortRanges the sourcePortRanges value to set * @return the EffectiveNetworkSecurityRule object itself. @@ -218,7 +218,7 @@ public EffectiveNetworkSecurityRule withSourcePortRanges(List sourcePort } /** - * Get the destinationPortRanges value. + * Get the destination port ranges. Expected values include a single integer between 0 and 65535, a range using '-' as seperator (e.g. 100-400), or an asterix (*). * * @return the destinationPortRanges value */ @@ -227,7 +227,7 @@ public List destinationPortRanges() { } /** - * Set the destinationPortRanges value. + * Set the destination port ranges. Expected values include a single integer between 0 and 65535, a range using '-' as seperator (e.g. 100-400), or an asterix (*). * * @param destinationPortRanges the destinationPortRanges value to set * @return the EffectiveNetworkSecurityRule object itself. @@ -238,7 +238,7 @@ public EffectiveNetworkSecurityRule withDestinationPortRanges(List desti } /** - * Get the sourceAddressPrefix value. + * Get the source address prefix. * * @return the sourceAddressPrefix value */ @@ -247,7 +247,7 @@ public String sourceAddressPrefix() { } /** - * Set the sourceAddressPrefix value. + * Set the source address prefix. * * @param sourceAddressPrefix the sourceAddressPrefix value to set * @return the EffectiveNetworkSecurityRule object itself. @@ -258,7 +258,7 @@ public EffectiveNetworkSecurityRule withSourceAddressPrefix(String sourceAddress } /** - * Get the destinationAddressPrefix value. + * Get the destination address prefix. * * @return the destinationAddressPrefix value */ @@ -267,7 +267,7 @@ public String destinationAddressPrefix() { } /** - * Set the destinationAddressPrefix value. + * Set the destination address prefix. * * @param destinationAddressPrefix the destinationAddressPrefix value to set * @return the EffectiveNetworkSecurityRule object itself. @@ -278,7 +278,7 @@ public EffectiveNetworkSecurityRule withDestinationAddressPrefix(String destinat } /** - * Get the sourceAddressPrefixes value. + * Get the source address prefixes. Expected values include CIDR IP ranges, Default Tags (VirtualNetwork, AureLoadBalancer, Internet), System Tags, and the asterix (*). * * @return the sourceAddressPrefixes value */ @@ -287,7 +287,7 @@ public List sourceAddressPrefixes() { } /** - * Set the sourceAddressPrefixes value. + * Set the source address prefixes. Expected values include CIDR IP ranges, Default Tags (VirtualNetwork, AureLoadBalancer, Internet), System Tags, and the asterix (*). * * @param sourceAddressPrefixes the sourceAddressPrefixes value to set * @return the EffectiveNetworkSecurityRule object itself. @@ -298,7 +298,7 @@ public EffectiveNetworkSecurityRule withSourceAddressPrefixes(List sourc } /** - * Get the destinationAddressPrefixes value. + * Get the destination address prefixes. Expected values include CIDR IP ranges, Default Tags (VirtualNetwork, AureLoadBalancer, Internet), System Tags, and the asterix (*). * * @return the destinationAddressPrefixes value */ @@ -307,7 +307,7 @@ public List destinationAddressPrefixes() { } /** - * Set the destinationAddressPrefixes value. + * Set the destination address prefixes. Expected values include CIDR IP ranges, Default Tags (VirtualNetwork, AureLoadBalancer, Internet), System Tags, and the asterix (*). * * @param destinationAddressPrefixes the destinationAddressPrefixes value to set * @return the EffectiveNetworkSecurityRule object itself. @@ -318,7 +318,7 @@ public EffectiveNetworkSecurityRule withDestinationAddressPrefixes(List } /** - * Get the expandedSourceAddressPrefix value. + * Get the expanded source address prefix. * * @return the expandedSourceAddressPrefix value */ @@ -327,7 +327,7 @@ public List expandedSourceAddressPrefix() { } /** - * Set the expandedSourceAddressPrefix value. + * Set the expanded source address prefix. * * @param expandedSourceAddressPrefix the expandedSourceAddressPrefix value to set * @return the EffectiveNetworkSecurityRule object itself. @@ -338,7 +338,7 @@ public EffectiveNetworkSecurityRule withExpandedSourceAddressPrefix(List } /** - * Get the expandedDestinationAddressPrefix value. + * Get expanded destination address prefix. * * @return the expandedDestinationAddressPrefix value */ @@ -347,7 +347,7 @@ public List expandedDestinationAddressPrefix() { } /** - * Set the expandedDestinationAddressPrefix value. + * Set expanded destination address prefix. * * @param expandedDestinationAddressPrefix the expandedDestinationAddressPrefix value to set * @return the EffectiveNetworkSecurityRule object itself. @@ -358,7 +358,7 @@ public EffectiveNetworkSecurityRule withExpandedDestinationAddressPrefix(List addressPrefix() { } /** - * Set the addressPrefix value. + * Set the address prefixes of the effective routes in CIDR notation. * * @param addressPrefix the addressPrefix value to set * @return the EffectiveRoute object itself. @@ -138,7 +138,7 @@ public EffectiveRoute withAddressPrefix(List addressPrefix) { } /** - * Get the nextHopIpAddress value. + * Get the IP address of the next hop of the effective route. * * @return the nextHopIpAddress value */ @@ -147,7 +147,7 @@ public List nextHopIpAddress() { } /** - * Set the nextHopIpAddress value. + * Set the IP address of the next hop of the effective route. * * @param nextHopIpAddress the nextHopIpAddress value to set * @return the EffectiveRoute object itself. @@ -158,7 +158,7 @@ public EffectiveRoute withNextHopIpAddress(List nextHopIpAddress) { } /** - * Get the nextHopType value. + * Get the type of Azure hop the packet should be sent to. Possible values are: 'VirtualNetworkGateway', 'VnetLocal', 'Internet', 'VirtualAppliance', and 'None'. Possible values include: 'VirtualNetworkGateway', 'VnetLocal', 'Internet', 'VirtualAppliance', 'None'. * * @return the nextHopType value */ @@ -167,7 +167,7 @@ public RouteNextHopType nextHopType() { } /** - * Set the nextHopType value. + * Set the type of Azure hop the packet should be sent to. Possible values are: 'VirtualNetworkGateway', 'VnetLocal', 'Internet', 'VirtualAppliance', and 'None'. Possible values include: 'VirtualNetworkGateway', 'VnetLocal', 'Internet', 'VirtualAppliance', 'None'. * * @param nextHopType the nextHopType value to set * @return the EffectiveRoute object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ErrorException.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ErrorException.java new file mode 100644 index 00000000000..b5c463df066 --- /dev/null +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ErrorException.java @@ -0,0 +1,44 @@ +/** + * 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. + */ + +package com.microsoft.azure.management.network; + +import com.microsoft.rest.RestException; +import okhttp3.ResponseBody; +import retrofit2.Response; + +/** + * Exception thrown for an invalid response with Error information. + */ +public class ErrorException extends RestException { + /** + * Initializes a new instance of the ErrorException class. + * + * @param message the exception message or the response content if a message is not available + * @param response the HTTP response + */ + public ErrorException(final String message, final Response response) { + super(message, response); + } + + /** + * Initializes a new instance of the ErrorException class. + * + * @param message the exception message or the response content if a message is not available + * @param response the HTTP response + * @param body the deserialized response body + */ + public ErrorException(final String message, final Response response, final Error body) { + super(message, response, body); + } + + @Override + public Error body() { + return (Error) super.body(); + } +} diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ExpressRouteCircuitArpTable.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ExpressRouteCircuitArpTable.java index f62c9c6535b..118e3f4b5b7 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ExpressRouteCircuitArpTable.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ExpressRouteCircuitArpTable.java @@ -39,7 +39,7 @@ public class ExpressRouteCircuitArpTable { private String macAddress; /** - * Get the age value. + * Get entry age in minutes. * * @return the age value */ @@ -48,7 +48,7 @@ public Integer age() { } /** - * Set the age value. + * Set entry age in minutes. * * @param age the age value to set * @return the ExpressRouteCircuitArpTable object itself. @@ -59,7 +59,7 @@ public ExpressRouteCircuitArpTable withAge(Integer age) { } /** - * Get the interfaceProperty value. + * Get interface address. * * @return the interfaceProperty value */ @@ -68,7 +68,7 @@ public String interfaceProperty() { } /** - * Set the interfaceProperty value. + * Set interface address. * * @param interfaceProperty the interfaceProperty value to set * @return the ExpressRouteCircuitArpTable object itself. @@ -79,7 +79,7 @@ public ExpressRouteCircuitArpTable withInterfaceProperty(String interfacePropert } /** - * Get the ipAddress value. + * Get the IP address. * * @return the ipAddress value */ @@ -88,7 +88,7 @@ public String ipAddress() { } /** - * Set the ipAddress value. + * Set the IP address. * * @param ipAddress the ipAddress value to set * @return the ExpressRouteCircuitArpTable object itself. @@ -99,7 +99,7 @@ public ExpressRouteCircuitArpTable withIpAddress(String ipAddress) { } /** - * Get the macAddress value. + * Get the MAC address. * * @return the macAddress value */ @@ -108,7 +108,7 @@ public String macAddress() { } /** - * Set the macAddress value. + * Set the MAC address. * * @param macAddress the macAddress value to set * @return the ExpressRouteCircuitArpTable object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ExpressRouteCircuitPeeringConfig.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ExpressRouteCircuitPeeringConfig.java index ccb7effc4e4..b33af6d8322 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ExpressRouteCircuitPeeringConfig.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ExpressRouteCircuitPeeringConfig.java @@ -55,7 +55,7 @@ public class ExpressRouteCircuitPeeringConfig { private String routingRegistryName; /** - * Get the advertisedPublicPrefixes value. + * Get the reference of AdvertisedPublicPrefixes. * * @return the advertisedPublicPrefixes value */ @@ -64,7 +64,7 @@ public List advertisedPublicPrefixes() { } /** - * Set the advertisedPublicPrefixes value. + * Set the reference of AdvertisedPublicPrefixes. * * @param advertisedPublicPrefixes the advertisedPublicPrefixes value to set * @return the ExpressRouteCircuitPeeringConfig object itself. @@ -75,7 +75,7 @@ public ExpressRouteCircuitPeeringConfig withAdvertisedPublicPrefixes(List advertisedCommunities() { } /** - * Set the advertisedCommunities value. + * Set the communities of bgp peering. Spepcified for microsoft peering. * * @param advertisedCommunities the advertisedCommunities value to set * @return the ExpressRouteCircuitPeeringConfig object itself. @@ -95,7 +95,7 @@ public ExpressRouteCircuitPeeringConfig withAdvertisedCommunities(List a } /** - * Get the advertisedPublicPrefixesState value. + * Get advertisedPublicPrefixState of the Peering resource. Possible values are 'NotConfigured', 'Configuring', 'Configured', and 'ValidationNeeded'. Possible values include: 'NotConfigured', 'Configuring', 'Configured', 'ValidationNeeded'. * * @return the advertisedPublicPrefixesState value */ @@ -104,7 +104,7 @@ public ExpressRouteCircuitPeeringAdvertisedPublicPrefixState advertisedPublicPre } /** - * Set the advertisedPublicPrefixesState value. + * Set advertisedPublicPrefixState of the Peering resource. Possible values are 'NotConfigured', 'Configuring', 'Configured', and 'ValidationNeeded'. Possible values include: 'NotConfigured', 'Configuring', 'Configured', 'ValidationNeeded'. * * @param advertisedPublicPrefixesState the advertisedPublicPrefixesState value to set * @return the ExpressRouteCircuitPeeringConfig object itself. @@ -115,7 +115,7 @@ public ExpressRouteCircuitPeeringConfig withAdvertisedPublicPrefixesState(Expres } /** - * Get the legacyMode value. + * Get the legacy mode of the peering. * * @return the legacyMode value */ @@ -124,7 +124,7 @@ public Integer legacyMode() { } /** - * Set the legacyMode value. + * Set the legacy mode of the peering. * * @param legacyMode the legacyMode value to set * @return the ExpressRouteCircuitPeeringConfig object itself. @@ -135,7 +135,7 @@ public ExpressRouteCircuitPeeringConfig withLegacyMode(Integer legacyMode) { } /** - * Get the customerASN value. + * Get the CustomerASN of the peering. * * @return the customerASN value */ @@ -144,7 +144,7 @@ public Integer customerASN() { } /** - * Set the customerASN value. + * Set the CustomerASN of the peering. * * @param customerASN the customerASN value to set * @return the ExpressRouteCircuitPeeringConfig object itself. @@ -155,7 +155,7 @@ public ExpressRouteCircuitPeeringConfig withCustomerASN(Integer customerASN) { } /** - * Get the routingRegistryName value. + * Get the RoutingRegistryName of the configuration. * * @return the routingRegistryName value */ @@ -164,7 +164,7 @@ public String routingRegistryName() { } /** - * Set the routingRegistryName value. + * Set the RoutingRegistryName of the configuration. * * @param routingRegistryName the routingRegistryName value to set * @return the ExpressRouteCircuitPeeringConfig object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ExpressRouteCircuitReference.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ExpressRouteCircuitReference.java index 522751abe45..ff9383fc473 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ExpressRouteCircuitReference.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ExpressRouteCircuitReference.java @@ -21,7 +21,7 @@ public class ExpressRouteCircuitReference { private String id; /** - * Get the id value. + * Get corresponding Express Route Circuit Id. * * @return the id value */ @@ -30,7 +30,7 @@ public String id() { } /** - * Set the id value. + * Set corresponding Express Route Circuit Id. * * @param id the id value to set * @return the ExpressRouteCircuitReference object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ExpressRouteCircuitRoutesTable.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ExpressRouteCircuitRoutesTable.java index e99d00e990d..343f971532d 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ExpressRouteCircuitRoutesTable.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ExpressRouteCircuitRoutesTable.java @@ -46,7 +46,7 @@ public class ExpressRouteCircuitRoutesTable { private String path; /** - * Get the network value. + * Get iP address of a network entity. * * @return the network value */ @@ -55,7 +55,7 @@ public String network() { } /** - * Set the network value. + * Set iP address of a network entity. * * @param network the network value to set * @return the ExpressRouteCircuitRoutesTable object itself. @@ -66,7 +66,7 @@ public ExpressRouteCircuitRoutesTable withNetwork(String network) { } /** - * Get the nextHop value. + * Get nextHop address. * * @return the nextHop value */ @@ -75,7 +75,7 @@ public String nextHop() { } /** - * Set the nextHop value. + * Set nextHop address. * * @param nextHop the nextHop value to set * @return the ExpressRouteCircuitRoutesTable object itself. @@ -86,7 +86,7 @@ public ExpressRouteCircuitRoutesTable withNextHop(String nextHop) { } /** - * Get the locPrf value. + * Get local preference value as set with the set local-preference route-map configuration command. * * @return the locPrf value */ @@ -95,7 +95,7 @@ public String locPrf() { } /** - * Set the locPrf value. + * Set local preference value as set with the set local-preference route-map configuration command. * * @param locPrf the locPrf value to set * @return the ExpressRouteCircuitRoutesTable object itself. @@ -106,7 +106,7 @@ public ExpressRouteCircuitRoutesTable withLocPrf(String locPrf) { } /** - * Get the weight value. + * Get route Weight. * * @return the weight value */ @@ -115,7 +115,7 @@ public Integer weight() { } /** - * Set the weight value. + * Set route Weight. * * @param weight the weight value to set * @return the ExpressRouteCircuitRoutesTable object itself. @@ -126,7 +126,7 @@ public ExpressRouteCircuitRoutesTable withWeight(Integer weight) { } /** - * Get the path value. + * Get autonomous system paths to the destination network. * * @return the path value */ @@ -135,7 +135,7 @@ public String path() { } /** - * Set the path value. + * Set autonomous system paths to the destination network. * * @param path the path value to set * @return the ExpressRouteCircuitRoutesTable object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ExpressRouteCircuitRoutesTableSummary.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ExpressRouteCircuitRoutesTableSummary.java index debff57df5b..8d4770d2ab0 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ExpressRouteCircuitRoutesTableSummary.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ExpressRouteCircuitRoutesTableSummary.java @@ -47,7 +47,7 @@ public class ExpressRouteCircuitRoutesTableSummary { private String statePfxRcd; /** - * Get the neighbor value. + * Get iP address of the neighbor. * * @return the neighbor value */ @@ -56,7 +56,7 @@ public String neighbor() { } /** - * Set the neighbor value. + * Set iP address of the neighbor. * * @param neighbor the neighbor value to set * @return the ExpressRouteCircuitRoutesTableSummary object itself. @@ -67,7 +67,7 @@ public ExpressRouteCircuitRoutesTableSummary withNeighbor(String neighbor) { } /** - * Get the v value. + * Get bGP version number spoken to the neighbor. * * @return the v value */ @@ -76,7 +76,7 @@ public Integer v() { } /** - * Set the v value. + * Set bGP version number spoken to the neighbor. * * @param v the v value to set * @return the ExpressRouteCircuitRoutesTableSummary object itself. @@ -87,7 +87,7 @@ public ExpressRouteCircuitRoutesTableSummary withV(Integer v) { } /** - * Get the as value. + * Get autonomous system number. * * @return the as value */ @@ -96,7 +96,7 @@ public Integer as() { } /** - * Set the as value. + * Set autonomous system number. * * @param as the as value to set * @return the ExpressRouteCircuitRoutesTableSummary object itself. @@ -107,7 +107,7 @@ public ExpressRouteCircuitRoutesTableSummary withAs(Integer as) { } /** - * Get the upDown value. + * Get the length of time that the BGP session has been in the Established state, or the current status if not in the Established state. * * @return the upDown value */ @@ -116,7 +116,7 @@ public String upDown() { } /** - * Set the upDown value. + * Set the length of time that the BGP session has been in the Established state, or the current status if not in the Established state. * * @param upDown the upDown value to set * @return the ExpressRouteCircuitRoutesTableSummary object itself. @@ -127,7 +127,7 @@ public ExpressRouteCircuitRoutesTableSummary withUpDown(String upDown) { } /** - * Get the statePfxRcd value. + * Get current state of the BGP session, and the number of prefixes that have been received from a neighbor or peer group. * * @return the statePfxRcd value */ @@ -136,7 +136,7 @@ public String statePfxRcd() { } /** - * Set the statePfxRcd value. + * Set current state of the BGP session, and the number of prefixes that have been received from a neighbor or peer group. * * @param statePfxRcd the statePfxRcd value to set * @return the ExpressRouteCircuitRoutesTableSummary object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ExpressRouteCircuitServiceProviderProperties.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ExpressRouteCircuitServiceProviderProperties.java index ae9e73f972d..1379232b293 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ExpressRouteCircuitServiceProviderProperties.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ExpressRouteCircuitServiceProviderProperties.java @@ -33,7 +33,7 @@ public class ExpressRouteCircuitServiceProviderProperties { private Integer bandwidthInMbps; /** - * Get the serviceProviderName value. + * Get the serviceProviderName. * * @return the serviceProviderName value */ @@ -42,7 +42,7 @@ public String serviceProviderName() { } /** - * Set the serviceProviderName value. + * Set the serviceProviderName. * * @param serviceProviderName the serviceProviderName value to set * @return the ExpressRouteCircuitServiceProviderProperties object itself. @@ -53,7 +53,7 @@ public ExpressRouteCircuitServiceProviderProperties withServiceProviderName(Stri } /** - * Get the peeringLocation value. + * Get the peering location. * * @return the peeringLocation value */ @@ -62,7 +62,7 @@ public String peeringLocation() { } /** - * Set the peeringLocation value. + * Set the peering location. * * @param peeringLocation the peeringLocation value to set * @return the ExpressRouteCircuitServiceProviderProperties object itself. @@ -73,7 +73,7 @@ public ExpressRouteCircuitServiceProviderProperties withPeeringLocation(String p } /** - * Get the bandwidthInMbps value. + * Get the BandwidthInMbps. * * @return the bandwidthInMbps value */ @@ -82,7 +82,7 @@ public Integer bandwidthInMbps() { } /** - * Set the bandwidthInMbps value. + * Set the BandwidthInMbps. * * @param bandwidthInMbps the bandwidthInMbps value to set * @return the ExpressRouteCircuitServiceProviderProperties object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ExpressRouteCircuitSku.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ExpressRouteCircuitSku.java index 75a8a3eaa19..853ee7b30e1 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ExpressRouteCircuitSku.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ExpressRouteCircuitSku.java @@ -35,7 +35,7 @@ public class ExpressRouteCircuitSku { private ExpressRouteCircuitSkuFamily family; /** - * Get the name value. + * Get the name of the SKU. * * @return the name value */ @@ -44,7 +44,7 @@ public String name() { } /** - * Set the name value. + * Set the name of the SKU. * * @param name the name value to set * @return the ExpressRouteCircuitSku object itself. @@ -55,7 +55,7 @@ public ExpressRouteCircuitSku withName(String name) { } /** - * Get the tier value. + * Get the tier of the SKU. Possible values are 'Standard' and 'Premium'. Possible values include: 'Standard', 'Premium'. * * @return the tier value */ @@ -64,7 +64,7 @@ public ExpressRouteCircuitSkuTier tier() { } /** - * Set the tier value. + * Set the tier of the SKU. Possible values are 'Standard' and 'Premium'. Possible values include: 'Standard', 'Premium'. * * @param tier the tier value to set * @return the ExpressRouteCircuitSku object itself. @@ -75,7 +75,7 @@ public ExpressRouteCircuitSku withTier(ExpressRouteCircuitSkuTier tier) { } /** - * Get the family value. + * Get the family of the SKU. Possible values are: 'UnlimitedData' and 'MeteredData'. Possible values include: 'UnlimitedData', 'MeteredData'. * * @return the family value */ @@ -84,7 +84,7 @@ public ExpressRouteCircuitSkuFamily family() { } /** - * Set the family value. + * Set the family of the SKU. Possible values are: 'UnlimitedData' and 'MeteredData'. Possible values include: 'UnlimitedData', 'MeteredData'. * * @param family the family value to set * @return the ExpressRouteCircuitSku object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ExpressRouteCrossConnectionRoutesTableSummary.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ExpressRouteCrossConnectionRoutesTableSummary.java index c2969b7a376..319de7e16e1 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ExpressRouteCrossConnectionRoutesTableSummary.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ExpressRouteCrossConnectionRoutesTableSummary.java @@ -41,7 +41,7 @@ public class ExpressRouteCrossConnectionRoutesTableSummary { private String stateOrPrefixesReceived; /** - * Get the neighbor value. + * Get iP address of Neighbor router. * * @return the neighbor value */ @@ -50,7 +50,7 @@ public String neighbor() { } /** - * Set the neighbor value. + * Set iP address of Neighbor router. * * @param neighbor the neighbor value to set * @return the ExpressRouteCrossConnectionRoutesTableSummary object itself. @@ -61,7 +61,7 @@ public ExpressRouteCrossConnectionRoutesTableSummary withNeighbor(String neighbo } /** - * Get the asn value. + * Get autonomous system number. * * @return the asn value */ @@ -70,7 +70,7 @@ public Integer asn() { } /** - * Set the asn value. + * Set autonomous system number. * * @param asn the asn value to set * @return the ExpressRouteCrossConnectionRoutesTableSummary object itself. @@ -81,7 +81,7 @@ public ExpressRouteCrossConnectionRoutesTableSummary withAsn(Integer asn) { } /** - * Get the upDown value. + * Get the length of time that the BGP session has been in the Established state, or the current status if not in the Established state. * * @return the upDown value */ @@ -90,7 +90,7 @@ public String upDown() { } /** - * Set the upDown value. + * Set the length of time that the BGP session has been in the Established state, or the current status if not in the Established state. * * @param upDown the upDown value to set * @return the ExpressRouteCrossConnectionRoutesTableSummary object itself. @@ -101,7 +101,7 @@ public ExpressRouteCrossConnectionRoutesTableSummary withUpDown(String upDown) { } /** - * Get the stateOrPrefixesReceived value. + * Get current state of the BGP session, and the number of prefixes that have been received from a neighbor or peer group. * * @return the stateOrPrefixesReceived value */ @@ -110,7 +110,7 @@ public String stateOrPrefixesReceived() { } /** - * Set the stateOrPrefixesReceived value. + * Set current state of the BGP session, and the number of prefixes that have been received from a neighbor or peer group. * * @param stateOrPrefixesReceived the stateOrPrefixesReceived value to set * @return the ExpressRouteCrossConnectionRoutesTableSummary object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ExpressRouteServiceProviderBandwidthsOffered.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ExpressRouteServiceProviderBandwidthsOffered.java index 2476515c467..109a2759c0b 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ExpressRouteServiceProviderBandwidthsOffered.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ExpressRouteServiceProviderBandwidthsOffered.java @@ -27,7 +27,7 @@ public class ExpressRouteServiceProviderBandwidthsOffered { private Integer valueInMbps; /** - * Get the offerName value. + * Get the OfferName. * * @return the offerName value */ @@ -36,7 +36,7 @@ public String offerName() { } /** - * Set the offerName value. + * Set the OfferName. * * @param offerName the offerName value to set * @return the ExpressRouteServiceProviderBandwidthsOffered object itself. @@ -47,7 +47,7 @@ public ExpressRouteServiceProviderBandwidthsOffered withOfferName(String offerNa } /** - * Get the valueInMbps value. + * Get the ValueInMbps. * * @return the valueInMbps value */ @@ -56,7 +56,7 @@ public Integer valueInMbps() { } /** - * Set the valueInMbps value. + * Set the ValueInMbps. * * @param valueInMbps the valueInMbps value to set * @return the ExpressRouteServiceProviderBandwidthsOffered object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/FlowLogStatusParameters.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/FlowLogStatusParameters.java index 3cc2fd6e78d..be18a812ee7 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/FlowLogStatusParameters.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/FlowLogStatusParameters.java @@ -23,7 +23,7 @@ public class FlowLogStatusParameters { private String targetResourceId; /** - * Get the targetResourceId value. + * Get the target resource where getting the flow log and traffic analytics (optional) status. * * @return the targetResourceId value */ @@ -32,7 +32,7 @@ public String targetResourceId() { } /** - * Set the targetResourceId value. + * Set the target resource where getting the flow log and traffic analytics (optional) status. * * @param targetResourceId the targetResourceId value to set * @return the FlowLogStatusParameters object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/GatewayRoute.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/GatewayRoute.java index 49e8d72fb82..c3f17d83982 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/GatewayRoute.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/GatewayRoute.java @@ -57,7 +57,7 @@ public class GatewayRoute { private Integer weight; /** - * Get the localAddress value. + * Get the gateway's local address. * * @return the localAddress value */ @@ -66,7 +66,7 @@ public String localAddress() { } /** - * Get the network value. + * Get the route's network prefix. * * @return the network value */ @@ -75,7 +75,7 @@ public String network() { } /** - * Get the nextHop value. + * Get the route's next hop. * * @return the nextHop value */ @@ -84,7 +84,7 @@ public String nextHop() { } /** - * Get the sourcePeer value. + * Get the peer this route was learned from. * * @return the sourcePeer value */ @@ -93,7 +93,7 @@ public String sourcePeer() { } /** - * Get the origin value. + * Get the source this route was learned from. * * @return the origin value */ @@ -102,7 +102,7 @@ public String origin() { } /** - * Get the asPath value. + * Get the route's AS path sequence. * * @return the asPath value */ @@ -111,7 +111,7 @@ public String asPath() { } /** - * Get the weight value. + * Get the route's weight. * * @return the weight value */ diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/GetVpnSitesConfigurationRequest.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/GetVpnSitesConfigurationRequest.java new file mode 100644 index 00000000000..40d5cbf0a1c --- /dev/null +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/GetVpnSitesConfigurationRequest.java @@ -0,0 +1,72 @@ +/** + * 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. + */ + +package com.microsoft.azure.management.network; + +import java.util.List; +import com.microsoft.azure.SubResource; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * List of Vpn-Sites. + */ +public class GetVpnSitesConfigurationRequest { + /** + * List of resource-ids of the vpn-sites for which config is to be + * downloaded. + */ + @JsonProperty(value = "vpnSites") + private List vpnSites; + + /** + * The sas-url to download the configurations for vpn-sites. + */ + @JsonProperty(value = "outputBlobSasUrl") + private String outputBlobSasUrl; + + /** + * Get list of resource-ids of the vpn-sites for which config is to be downloaded. + * + * @return the vpnSites value + */ + public List vpnSites() { + return this.vpnSites; + } + + /** + * Set list of resource-ids of the vpn-sites for which config is to be downloaded. + * + * @param vpnSites the vpnSites value to set + * @return the GetVpnSitesConfigurationRequest object itself. + */ + public GetVpnSitesConfigurationRequest withVpnSites(List vpnSites) { + this.vpnSites = vpnSites; + return this; + } + + /** + * Get the sas-url to download the configurations for vpn-sites. + * + * @return the outputBlobSasUrl value + */ + public String outputBlobSasUrl() { + return this.outputBlobSasUrl; + } + + /** + * Set the sas-url to download the configurations for vpn-sites. + * + * @param outputBlobSasUrl the outputBlobSasUrl value to set + * @return the GetVpnSitesConfigurationRequest object itself. + */ + public GetVpnSitesConfigurationRequest withOutputBlobSasUrl(String outputBlobSasUrl) { + this.outputBlobSasUrl = outputBlobSasUrl; + return this; + } + +} diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/HTTPConfiguration.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/HTTPConfiguration.java index 1375da6b3cc..7566bc6cd03 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/HTTPConfiguration.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/HTTPConfiguration.java @@ -34,7 +34,7 @@ public class HTTPConfiguration { private List validStatusCodes; /** - * Get the method value. + * Get hTTP method. Possible values include: 'Get'. * * @return the method value */ @@ -43,7 +43,7 @@ public HTTPMethod method() { } /** - * Set the method value. + * Set hTTP method. Possible values include: 'Get'. * * @param method the method value to set * @return the HTTPConfiguration object itself. @@ -54,7 +54,7 @@ public HTTPConfiguration withMethod(HTTPMethod method) { } /** - * Get the headers value. + * Get list of HTTP headers. * * @return the headers value */ @@ -63,7 +63,7 @@ public List headers() { } /** - * Set the headers value. + * Set list of HTTP headers. * * @param headers the headers value to set * @return the HTTPConfiguration object itself. @@ -74,7 +74,7 @@ public HTTPConfiguration withHeaders(List headers) { } /** - * Get the validStatusCodes value. + * Get valid status codes. * * @return the validStatusCodes value */ @@ -83,7 +83,7 @@ public List validStatusCodes() { } /** - * Set the validStatusCodes value. + * Set valid status codes. * * @param validStatusCodes the validStatusCodes value to set * @return the HTTPConfiguration object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/HTTPHeader.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/HTTPHeader.java index f9a835552eb..ad4f438b5ad 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/HTTPHeader.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/HTTPHeader.java @@ -27,7 +27,7 @@ public class HTTPHeader { private String value; /** - * Get the name value. + * Get the name in HTTP header. * * @return the name value */ @@ -36,7 +36,7 @@ public String name() { } /** - * Set the name value. + * Set the name in HTTP header. * * @param name the name value to set * @return the HTTPHeader object itself. @@ -47,7 +47,7 @@ public HTTPHeader withName(String name) { } /** - * Get the value value. + * Get the value in HTTP header. * * @return the value value */ @@ -56,7 +56,7 @@ public String value() { } /** - * Set the value value. + * Set the value in HTTP header. * * @param value the value value to set * @return the HTTPHeader object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/HubVirtualNetworkConnectionStatus.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/HubVirtualNetworkConnectionStatus.java new file mode 100644 index 00000000000..47effb03f39 --- /dev/null +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/HubVirtualNetworkConnectionStatus.java @@ -0,0 +1,47 @@ +/** + * 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. + */ + +package com.microsoft.azure.management.network; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for HubVirtualNetworkConnectionStatus. + */ +public final class HubVirtualNetworkConnectionStatus extends ExpandableStringEnum { + /** Static value Unknown for HubVirtualNetworkConnectionStatus. */ + public static final HubVirtualNetworkConnectionStatus UNKNOWN = fromString("Unknown"); + + /** Static value Connecting for HubVirtualNetworkConnectionStatus. */ + public static final HubVirtualNetworkConnectionStatus CONNECTING = fromString("Connecting"); + + /** Static value Connected for HubVirtualNetworkConnectionStatus. */ + public static final HubVirtualNetworkConnectionStatus CONNECTED = fromString("Connected"); + + /** Static value NotConnected for HubVirtualNetworkConnectionStatus. */ + public static final HubVirtualNetworkConnectionStatus NOT_CONNECTED = fromString("NotConnected"); + + /** + * Creates or finds a HubVirtualNetworkConnectionStatus from its string representation. + * @param name a name to look for + * @return the corresponding HubVirtualNetworkConnectionStatus + */ + @JsonCreator + public static HubVirtualNetworkConnectionStatus fromString(String name) { + return fromString(name, HubVirtualNetworkConnectionStatus.class); + } + + /** + * @return known HubVirtualNetworkConnectionStatus values + */ + public static Collection values() { + return values(HubVirtualNetworkConnectionStatus.class); + } +} diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/IpTag.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/IpTag.java index cf44b31c8ee..fc835c2d0c8 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/IpTag.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/IpTag.java @@ -28,7 +28,7 @@ public class IpTag { private String tag; /** - * Get the ipTagType value. + * Get gets or sets the ipTag type: Example FirstPartyUsage. * * @return the ipTagType value */ @@ -37,7 +37,7 @@ public String ipTagType() { } /** - * Set the ipTagType value. + * Set gets or sets the ipTag type: Example FirstPartyUsage. * * @param ipTagType the ipTagType value to set * @return the IpTag object itself. @@ -48,7 +48,7 @@ public IpTag withIpTagType(String ipTagType) { } /** - * Get the tag value. + * Get gets or sets value of the IpTag associated with the public IP. Example SQL, Storage etc. * * @return the tag value */ @@ -57,7 +57,7 @@ public String tag() { } /** - * Set the tag value. + * Set gets or sets value of the IpTag associated with the public IP. Example SQL, Storage etc. * * @param tag the tag value to set * @return the IpTag object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/IpsecPolicy.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/IpsecPolicy.java index db764e329fa..b7cfa51f4a0 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/IpsecPolicy.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/IpsecPolicy.java @@ -74,7 +74,7 @@ public class IpsecPolicy { private PfsGroup pfsGroup; /** - * Get the saLifeTimeSeconds value. + * Get the IPSec Security Association (also called Quick Mode or Phase 2 SA) lifetime in seconds for a site to site VPN tunnel. * * @return the saLifeTimeSeconds value */ @@ -83,7 +83,7 @@ public int saLifeTimeSeconds() { } /** - * Set the saLifeTimeSeconds value. + * Set the IPSec Security Association (also called Quick Mode or Phase 2 SA) lifetime in seconds for a site to site VPN tunnel. * * @param saLifeTimeSeconds the saLifeTimeSeconds value to set * @return the IpsecPolicy object itself. @@ -94,7 +94,7 @@ public IpsecPolicy withSaLifeTimeSeconds(int saLifeTimeSeconds) { } /** - * Get the saDataSizeKilobytes value. + * Get the IPSec Security Association (also called Quick Mode or Phase 2 SA) payload size in KB for a site to site VPN tunnel. * * @return the saDataSizeKilobytes value */ @@ -103,7 +103,7 @@ public int saDataSizeKilobytes() { } /** - * Set the saDataSizeKilobytes value. + * Set the IPSec Security Association (also called Quick Mode or Phase 2 SA) payload size in KB for a site to site VPN tunnel. * * @param saDataSizeKilobytes the saDataSizeKilobytes value to set * @return the IpsecPolicy object itself. @@ -114,7 +114,7 @@ public IpsecPolicy withSaDataSizeKilobytes(int saDataSizeKilobytes) { } /** - * Get the ipsecEncryption value. + * Get the IPSec encryption algorithm (IKE phase 1). Possible values include: 'None', 'DES', 'DES3', 'AES128', 'AES192', 'AES256', 'GCMAES128', 'GCMAES192', 'GCMAES256'. * * @return the ipsecEncryption value */ @@ -123,7 +123,7 @@ public IpsecEncryption ipsecEncryption() { } /** - * Set the ipsecEncryption value. + * Set the IPSec encryption algorithm (IKE phase 1). Possible values include: 'None', 'DES', 'DES3', 'AES128', 'AES192', 'AES256', 'GCMAES128', 'GCMAES192', 'GCMAES256'. * * @param ipsecEncryption the ipsecEncryption value to set * @return the IpsecPolicy object itself. @@ -134,7 +134,7 @@ public IpsecPolicy withIpsecEncryption(IpsecEncryption ipsecEncryption) { } /** - * Get the ipsecIntegrity value. + * Get the IPSec integrity algorithm (IKE phase 1). Possible values include: 'MD5', 'SHA1', 'SHA256', 'GCMAES128', 'GCMAES192', 'GCMAES256'. * * @return the ipsecIntegrity value */ @@ -143,7 +143,7 @@ public IpsecIntegrity ipsecIntegrity() { } /** - * Set the ipsecIntegrity value. + * Set the IPSec integrity algorithm (IKE phase 1). Possible values include: 'MD5', 'SHA1', 'SHA256', 'GCMAES128', 'GCMAES192', 'GCMAES256'. * * @param ipsecIntegrity the ipsecIntegrity value to set * @return the IpsecPolicy object itself. @@ -154,7 +154,7 @@ public IpsecPolicy withIpsecIntegrity(IpsecIntegrity ipsecIntegrity) { } /** - * Get the ikeEncryption value. + * Get the IKE encryption algorithm (IKE phase 2). Possible values include: 'DES', 'DES3', 'AES128', 'AES192', 'AES256', 'GCMAES256', 'GCMAES128'. * * @return the ikeEncryption value */ @@ -163,7 +163,7 @@ public IkeEncryption ikeEncryption() { } /** - * Set the ikeEncryption value. + * Set the IKE encryption algorithm (IKE phase 2). Possible values include: 'DES', 'DES3', 'AES128', 'AES192', 'AES256', 'GCMAES256', 'GCMAES128'. * * @param ikeEncryption the ikeEncryption value to set * @return the IpsecPolicy object itself. @@ -174,7 +174,7 @@ public IpsecPolicy withIkeEncryption(IkeEncryption ikeEncryption) { } /** - * Get the ikeIntegrity value. + * Get the IKE integrity algorithm (IKE phase 2). Possible values include: 'MD5', 'SHA1', 'SHA256', 'SHA384', 'GCMAES256', 'GCMAES128'. * * @return the ikeIntegrity value */ @@ -183,7 +183,7 @@ public IkeIntegrity ikeIntegrity() { } /** - * Set the ikeIntegrity value. + * Set the IKE integrity algorithm (IKE phase 2). Possible values include: 'MD5', 'SHA1', 'SHA256', 'SHA384', 'GCMAES256', 'GCMAES128'. * * @param ikeIntegrity the ikeIntegrity value to set * @return the IpsecPolicy object itself. @@ -194,7 +194,7 @@ public IpsecPolicy withIkeIntegrity(IkeIntegrity ikeIntegrity) { } /** - * Get the dhGroup value. + * Get the DH Groups used in IKE Phase 1 for initial SA. Possible values include: 'None', 'DHGroup1', 'DHGroup2', 'DHGroup14', 'DHGroup2048', 'ECP256', 'ECP384', 'DHGroup24'. * * @return the dhGroup value */ @@ -203,7 +203,7 @@ public DhGroup dhGroup() { } /** - * Set the dhGroup value. + * Set the DH Groups used in IKE Phase 1 for initial SA. Possible values include: 'None', 'DHGroup1', 'DHGroup2', 'DHGroup14', 'DHGroup2048', 'ECP256', 'ECP384', 'DHGroup24'. * * @param dhGroup the dhGroup value to set * @return the IpsecPolicy object itself. @@ -214,7 +214,7 @@ public IpsecPolicy withDhGroup(DhGroup dhGroup) { } /** - * Get the pfsGroup value. + * Get the Pfs Groups used in IKE Phase 2 for new child SA. Possible values include: 'None', 'PFS1', 'PFS2', 'PFS2048', 'ECP256', 'ECP384', 'PFS24', 'PFS14', 'PFSMM'. * * @return the pfsGroup value */ @@ -223,7 +223,7 @@ public PfsGroup pfsGroup() { } /** - * Set the pfsGroup value. + * Set the Pfs Groups used in IKE Phase 2 for new child SA. Possible values include: 'None', 'PFS1', 'PFS2', 'PFS2048', 'ECP256', 'ECP384', 'PFS24', 'PFS14', 'PFSMM'. * * @param pfsGroup the pfsGroup value to set * @return the IpsecPolicy object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/Ipv6ExpressRouteCircuitPeeringConfig.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/Ipv6ExpressRouteCircuitPeeringConfig.java index 3b54a3f5533..e907f3f98c6 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/Ipv6ExpressRouteCircuitPeeringConfig.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/Ipv6ExpressRouteCircuitPeeringConfig.java @@ -47,7 +47,7 @@ public class Ipv6ExpressRouteCircuitPeeringConfig { private ExpressRouteCircuitPeeringState state; /** - * Get the primaryPeerAddressPrefix value. + * Get the primary address prefix. * * @return the primaryPeerAddressPrefix value */ @@ -56,7 +56,7 @@ public String primaryPeerAddressPrefix() { } /** - * Set the primaryPeerAddressPrefix value. + * Set the primary address prefix. * * @param primaryPeerAddressPrefix the primaryPeerAddressPrefix value to set * @return the Ipv6ExpressRouteCircuitPeeringConfig object itself. @@ -67,7 +67,7 @@ public Ipv6ExpressRouteCircuitPeeringConfig withPrimaryPeerAddressPrefix(String } /** - * Get the secondaryPeerAddressPrefix value. + * Get the secondary address prefix. * * @return the secondaryPeerAddressPrefix value */ @@ -76,7 +76,7 @@ public String secondaryPeerAddressPrefix() { } /** - * Set the secondaryPeerAddressPrefix value. + * Set the secondary address prefix. * * @param secondaryPeerAddressPrefix the secondaryPeerAddressPrefix value to set * @return the Ipv6ExpressRouteCircuitPeeringConfig object itself. @@ -87,7 +87,7 @@ public Ipv6ExpressRouteCircuitPeeringConfig withSecondaryPeerAddressPrefix(Strin } /** - * Get the microsoftPeeringConfig value. + * Get the Microsoft peering configuration. * * @return the microsoftPeeringConfig value */ @@ -96,7 +96,7 @@ public ExpressRouteCircuitPeeringConfig microsoftPeeringConfig() { } /** - * Set the microsoftPeeringConfig value. + * Set the Microsoft peering configuration. * * @param microsoftPeeringConfig the microsoftPeeringConfig value to set * @return the Ipv6ExpressRouteCircuitPeeringConfig object itself. @@ -107,7 +107,7 @@ public Ipv6ExpressRouteCircuitPeeringConfig withMicrosoftPeeringConfig(ExpressRo } /** - * Get the routeFilter value. + * Get the reference of the RouteFilter resource. * * @return the routeFilter value */ @@ -116,7 +116,7 @@ public RouteFilterInner routeFilter() { } /** - * Set the routeFilter value. + * Set the reference of the RouteFilter resource. * * @param routeFilter the routeFilter value to set * @return the Ipv6ExpressRouteCircuitPeeringConfig object itself. @@ -127,7 +127,7 @@ public Ipv6ExpressRouteCircuitPeeringConfig withRouteFilter(RouteFilterInner rou } /** - * Get the state value. + * Get the state of peering. Possible values are: 'Disabled' and 'Enabled'. Possible values include: 'Disabled', 'Enabled'. * * @return the state value */ @@ -136,7 +136,7 @@ public ExpressRouteCircuitPeeringState state() { } /** - * Set the state value. + * Set the state of peering. Possible values are: 'Disabled' and 'Enabled'. Possible values include: 'Disabled', 'Enabled'. * * @param state the state value to set * @return the Ipv6ExpressRouteCircuitPeeringConfig object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/LoadBalancerSku.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/LoadBalancerSku.java index 639c83dad64..532dceb853a 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/LoadBalancerSku.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/LoadBalancerSku.java @@ -22,7 +22,7 @@ public class LoadBalancerSku { private LoadBalancerSkuName name; /** - * Get the name value. + * Get name of a load balancer SKU. Possible values include: 'Basic', 'Standard'. * * @return the name value */ @@ -31,7 +31,7 @@ public LoadBalancerSkuName name() { } /** - * Set the name value. + * Set name of a load balancer SKU. Possible values include: 'Basic', 'Standard'. * * @param name the name value to set * @return the LoadBalancerSku object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/LogSpecification.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/LogSpecification.java index da14968066d..6fbef6fa66b 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/LogSpecification.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/LogSpecification.java @@ -33,7 +33,7 @@ public class LogSpecification { private String blobDuration; /** - * Get the name value. + * Get the name of the specification. * * @return the name value */ @@ -42,7 +42,7 @@ public String name() { } /** - * Set the name value. + * Set the name of the specification. * * @param name the name value to set * @return the LogSpecification object itself. @@ -53,7 +53,7 @@ public LogSpecification withName(String name) { } /** - * Get the displayName value. + * Get the display name of the specification. * * @return the displayName value */ @@ -62,7 +62,7 @@ public String displayName() { } /** - * Set the displayName value. + * Set the display name of the specification. * * @param displayName the displayName value to set * @return the LogSpecification object itself. @@ -73,7 +73,7 @@ public LogSpecification withDisplayName(String displayName) { } /** - * Get the blobDuration value. + * Get duration of the blob. * * @return the blobDuration value */ @@ -82,7 +82,7 @@ public String blobDuration() { } /** - * Set the blobDuration value. + * Set duration of the blob. * * @param blobDuration the blobDuration value to set * @return the LogSpecification object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/MetricSpecification.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/MetricSpecification.java index 01c4d449ae4..af88220d12a 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/MetricSpecification.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/MetricSpecification.java @@ -100,7 +100,7 @@ public class MetricSpecification { private String resourceIdDimensionNameOverride; /** - * Get the name value. + * Get the name of the metric. * * @return the name value */ @@ -109,7 +109,7 @@ public String name() { } /** - * Set the name value. + * Set the name of the metric. * * @param name the name value to set * @return the MetricSpecification object itself. @@ -120,7 +120,7 @@ public MetricSpecification withName(String name) { } /** - * Get the displayName value. + * Get the display name of the metric. * * @return the displayName value */ @@ -129,7 +129,7 @@ public String displayName() { } /** - * Set the displayName value. + * Set the display name of the metric. * * @param displayName the displayName value to set * @return the MetricSpecification object itself. @@ -140,7 +140,7 @@ public MetricSpecification withDisplayName(String displayName) { } /** - * Get the displayDescription value. + * Get the description of the metric. * * @return the displayDescription value */ @@ -149,7 +149,7 @@ public String displayDescription() { } /** - * Set the displayDescription value. + * Set the description of the metric. * * @param displayDescription the displayDescription value to set * @return the MetricSpecification object itself. @@ -160,7 +160,7 @@ public MetricSpecification withDisplayDescription(String displayDescription) { } /** - * Get the unit value. + * Get units the metric to be displayed in. * * @return the unit value */ @@ -169,7 +169,7 @@ public String unit() { } /** - * Set the unit value. + * Set units the metric to be displayed in. * * @param unit the unit value to set * @return the MetricSpecification object itself. @@ -180,7 +180,7 @@ public MetricSpecification withUnit(String unit) { } /** - * Get the aggregationType value. + * Get the aggregation type. * * @return the aggregationType value */ @@ -189,7 +189,7 @@ public String aggregationType() { } /** - * Set the aggregationType value. + * Set the aggregation type. * * @param aggregationType the aggregationType value to set * @return the MetricSpecification object itself. @@ -200,7 +200,7 @@ public MetricSpecification withAggregationType(String aggregationType) { } /** - * Get the availabilities value. + * Get list of availability. * * @return the availabilities value */ @@ -209,7 +209,7 @@ public List availabilities() { } /** - * Set the availabilities value. + * Set list of availability. * * @param availabilities the availabilities value to set * @return the MetricSpecification object itself. @@ -220,7 +220,7 @@ public MetricSpecification withAvailabilities(List availabilities) } /** - * Get the enableRegionalMdmAccount value. + * Get whether regional MDM account enabled. * * @return the enableRegionalMdmAccount value */ @@ -229,7 +229,7 @@ public Boolean enableRegionalMdmAccount() { } /** - * Set the enableRegionalMdmAccount value. + * Set whether regional MDM account enabled. * * @param enableRegionalMdmAccount the enableRegionalMdmAccount value to set * @return the MetricSpecification object itself. @@ -240,7 +240,7 @@ public MetricSpecification withEnableRegionalMdmAccount(Boolean enableRegionalMd } /** - * Get the fillGapWithZero value. + * Get whether gaps would be filled with zeros. * * @return the fillGapWithZero value */ @@ -249,7 +249,7 @@ public Boolean fillGapWithZero() { } /** - * Set the fillGapWithZero value. + * Set whether gaps would be filled with zeros. * * @param fillGapWithZero the fillGapWithZero value to set * @return the MetricSpecification object itself. @@ -260,7 +260,7 @@ public MetricSpecification withFillGapWithZero(Boolean fillGapWithZero) { } /** - * Get the metricFilterPattern value. + * Get pattern for the filter of the metric. * * @return the metricFilterPattern value */ @@ -269,7 +269,7 @@ public String metricFilterPattern() { } /** - * Set the metricFilterPattern value. + * Set pattern for the filter of the metric. * * @param metricFilterPattern the metricFilterPattern value to set * @return the MetricSpecification object itself. @@ -280,7 +280,7 @@ public MetricSpecification withMetricFilterPattern(String metricFilterPattern) { } /** - * Get the dimensions value. + * Get list of dimensions. * * @return the dimensions value */ @@ -289,7 +289,7 @@ public List dimensions() { } /** - * Set the dimensions value. + * Set list of dimensions. * * @param dimensions the dimensions value to set * @return the MetricSpecification object itself. @@ -300,7 +300,7 @@ public MetricSpecification withDimensions(List dimensions) { } /** - * Get the isInternal value. + * Get whether the metric is internal. * * @return the isInternal value */ @@ -309,7 +309,7 @@ public Boolean isInternal() { } /** - * Set the isInternal value. + * Set whether the metric is internal. * * @param isInternal the isInternal value to set * @return the MetricSpecification object itself. @@ -320,7 +320,7 @@ public MetricSpecification withIsInternal(Boolean isInternal) { } /** - * Get the sourceMdmAccount value. + * Get the source MDM account. * * @return the sourceMdmAccount value */ @@ -329,7 +329,7 @@ public String sourceMdmAccount() { } /** - * Set the sourceMdmAccount value. + * Set the source MDM account. * * @param sourceMdmAccount the sourceMdmAccount value to set * @return the MetricSpecification object itself. @@ -340,7 +340,7 @@ public MetricSpecification withSourceMdmAccount(String sourceMdmAccount) { } /** - * Get the sourceMdmNamespace value. + * Get the source MDM namespace. * * @return the sourceMdmNamespace value */ @@ -349,7 +349,7 @@ public String sourceMdmNamespace() { } /** - * Set the sourceMdmNamespace value. + * Set the source MDM namespace. * * @param sourceMdmNamespace the sourceMdmNamespace value to set * @return the MetricSpecification object itself. @@ -360,7 +360,7 @@ public MetricSpecification withSourceMdmNamespace(String sourceMdmNamespace) { } /** - * Get the resourceIdDimensionNameOverride value. + * Get the resource Id dimension name override. * * @return the resourceIdDimensionNameOverride value */ @@ -369,7 +369,7 @@ public String resourceIdDimensionNameOverride() { } /** - * Set the resourceIdDimensionNameOverride value. + * Set the resource Id dimension name override. * * @param resourceIdDimensionNameOverride the resourceIdDimensionNameOverride value to set * @return the MetricSpecification object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/NetworkInterfaceAssociation.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/NetworkInterfaceAssociation.java index d2bdf3cf684..752383655e8 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/NetworkInterfaceAssociation.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/NetworkInterfaceAssociation.java @@ -29,7 +29,7 @@ public class NetworkInterfaceAssociation { private List securityRules; /** - * Get the id value. + * Get network interface ID. * * @return the id value */ @@ -38,7 +38,7 @@ public String id() { } /** - * Get the securityRules value. + * Get collection of custom security rules. * * @return the securityRules value */ @@ -47,7 +47,7 @@ public List securityRules() { } /** - * Set the securityRules value. + * Set collection of custom security rules. * * @param securityRules the securityRules value to set * @return the NetworkInterfaceAssociation object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/NetworkInterfaceDnsSettings.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/NetworkInterfaceDnsSettings.java index fe8a1e6fc3e..954ff8c0e67 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/NetworkInterfaceDnsSettings.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/NetworkInterfaceDnsSettings.java @@ -56,7 +56,7 @@ public class NetworkInterfaceDnsSettings { private String internalDomainNameSuffix; /** - * Get the dnsServers value. + * Get list of DNS servers IP addresses. Use 'AzureProvidedDNS' to switch to azure provided DNS resolution. 'AzureProvidedDNS' value cannot be combined with other IPs, it must be the only value in dnsServers collection. * * @return the dnsServers value */ @@ -65,7 +65,7 @@ public List dnsServers() { } /** - * Set the dnsServers value. + * Set list of DNS servers IP addresses. Use 'AzureProvidedDNS' to switch to azure provided DNS resolution. 'AzureProvidedDNS' value cannot be combined with other IPs, it must be the only value in dnsServers collection. * * @param dnsServers the dnsServers value to set * @return the NetworkInterfaceDnsSettings object itself. @@ -76,7 +76,7 @@ public NetworkInterfaceDnsSettings withDnsServers(List dnsServers) { } /** - * Get the appliedDnsServers value. + * Get if the VM that uses this NIC is part of an Availability Set, then this list will have the union of all DNS servers from all NICs that are part of the Availability Set. This property is what is configured on each of those VMs. * * @return the appliedDnsServers value */ @@ -85,7 +85,7 @@ public List appliedDnsServers() { } /** - * Set the appliedDnsServers value. + * Set if the VM that uses this NIC is part of an Availability Set, then this list will have the union of all DNS servers from all NICs that are part of the Availability Set. This property is what is configured on each of those VMs. * * @param appliedDnsServers the appliedDnsServers value to set * @return the NetworkInterfaceDnsSettings object itself. @@ -96,7 +96,7 @@ public NetworkInterfaceDnsSettings withAppliedDnsServers(List appliedDns } /** - * Get the internalDnsNameLabel value. + * Get relative DNS name for this NIC used for internal communications between VMs in the same virtual network. * * @return the internalDnsNameLabel value */ @@ -105,7 +105,7 @@ public String internalDnsNameLabel() { } /** - * Set the internalDnsNameLabel value. + * Set relative DNS name for this NIC used for internal communications between VMs in the same virtual network. * * @param internalDnsNameLabel the internalDnsNameLabel value to set * @return the NetworkInterfaceDnsSettings object itself. @@ -116,7 +116,7 @@ public NetworkInterfaceDnsSettings withInternalDnsNameLabel(String internalDnsNa } /** - * Get the internalFqdn value. + * Get fully qualified DNS name supporting internal communications between VMs in the same virtual network. * * @return the internalFqdn value */ @@ -125,7 +125,7 @@ public String internalFqdn() { } /** - * Set the internalFqdn value. + * Set fully qualified DNS name supporting internal communications between VMs in the same virtual network. * * @param internalFqdn the internalFqdn value to set * @return the NetworkInterfaceDnsSettings object itself. @@ -136,7 +136,7 @@ public NetworkInterfaceDnsSettings withInternalFqdn(String internalFqdn) { } /** - * Get the internalDomainNameSuffix value. + * Get even if internalDnsNameLabel is not specified, a DNS entry is created for the primary NIC of the VM. This DNS name can be constructed by concatenating the VM name with the value of internalDomainNameSuffix. * * @return the internalDomainNameSuffix value */ @@ -145,7 +145,7 @@ public String internalDomainNameSuffix() { } /** - * Set the internalDomainNameSuffix value. + * Set even if internalDnsNameLabel is not specified, a DNS entry is created for the primary NIC of the VM. This DNS name can be constructed by concatenating the VM name with the value of internalDomainNameSuffix. * * @param internalDomainNameSuffix the internalDomainNameSuffix value to set * @return the NetworkInterfaceDnsSettings object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/NextHopParameters.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/NextHopParameters.java index fb32d83a201..4605d92644d 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/NextHopParameters.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/NextHopParameters.java @@ -41,7 +41,7 @@ public class NextHopParameters { private String targetNicResourceId; /** - * Get the targetResourceId value. + * Get the resource identifier of the target resource against which the action is to be performed. * * @return the targetResourceId value */ @@ -50,7 +50,7 @@ public String targetResourceId() { } /** - * Set the targetResourceId value. + * Set the resource identifier of the target resource against which the action is to be performed. * * @param targetResourceId the targetResourceId value to set * @return the NextHopParameters object itself. @@ -61,7 +61,7 @@ public NextHopParameters withTargetResourceId(String targetResourceId) { } /** - * Get the sourceIPAddress value. + * Get the source IP address. * * @return the sourceIPAddress value */ @@ -70,7 +70,7 @@ public String sourceIPAddress() { } /** - * Set the sourceIPAddress value. + * Set the source IP address. * * @param sourceIPAddress the sourceIPAddress value to set * @return the NextHopParameters object itself. @@ -81,7 +81,7 @@ public NextHopParameters withSourceIPAddress(String sourceIPAddress) { } /** - * Get the destinationIPAddress value. + * Get the destination IP address. * * @return the destinationIPAddress value */ @@ -90,7 +90,7 @@ public String destinationIPAddress() { } /** - * Set the destinationIPAddress value. + * Set the destination IP address. * * @param destinationIPAddress the destinationIPAddress value to set * @return the NextHopParameters object itself. @@ -101,7 +101,7 @@ public NextHopParameters withDestinationIPAddress(String destinationIPAddress) { } /** - * Get the targetNicResourceId value. + * Get the NIC ID. (If VM has multiple NICs and IP forwarding is enabled on any of the nics, then this parameter must be specified. Otherwise optional). * * @return the targetNicResourceId value */ @@ -110,7 +110,7 @@ public String targetNicResourceId() { } /** - * Set the targetNicResourceId value. + * Set the NIC ID. (If VM has multiple NICs and IP forwarding is enabled on any of the nics, then this parameter must be specified. Otherwise optional). * * @param targetNicResourceId the targetNicResourceId value to set * @return the NextHopParameters object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/OperationDisplay.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/OperationDisplay.java index 91e8fba4da6..4f29ce2c521 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/OperationDisplay.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/OperationDisplay.java @@ -39,7 +39,7 @@ public class OperationDisplay { private String description; /** - * Get the provider value. + * Get service provider: Microsoft Network. * * @return the provider value */ @@ -48,7 +48,7 @@ public String provider() { } /** - * Set the provider value. + * Set service provider: Microsoft Network. * * @param provider the provider value to set * @return the OperationDisplay object itself. @@ -59,7 +59,7 @@ public OperationDisplay withProvider(String provider) { } /** - * Get the resource value. + * Get resource on which the operation is performed. * * @return the resource value */ @@ -68,7 +68,7 @@ public String resource() { } /** - * Set the resource value. + * Set resource on which the operation is performed. * * @param resource the resource value to set * @return the OperationDisplay object itself. @@ -79,7 +79,7 @@ public OperationDisplay withResource(String resource) { } /** - * Get the operation value. + * Get type of the operation: get, read, delete, etc. * * @return the operation value */ @@ -88,7 +88,7 @@ public String operation() { } /** - * Set the operation value. + * Set type of the operation: get, read, delete, etc. * * @param operation the operation value to set * @return the OperationDisplay object itself. @@ -99,7 +99,7 @@ public OperationDisplay withOperation(String operation) { } /** - * Get the description value. + * Get description of the operation. * * @return the description value */ @@ -108,7 +108,7 @@ public String description() { } /** - * Set the description value. + * Set description of the operation. * * @param description the description value to set * @return the OperationDisplay object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/OperationPropertiesFormatServiceSpecification.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/OperationPropertiesFormatServiceSpecification.java index 097a2cb2db4..5a9d95b5f8e 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/OperationPropertiesFormatServiceSpecification.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/OperationPropertiesFormatServiceSpecification.java @@ -28,7 +28,7 @@ public class OperationPropertiesFormatServiceSpecification { private List logSpecifications; /** - * Get the metricSpecifications value. + * Get operation service specification. * * @return the metricSpecifications value */ @@ -37,7 +37,7 @@ public List metricSpecifications() { } /** - * Set the metricSpecifications value. + * Set operation service specification. * * @param metricSpecifications the metricSpecifications value to set * @return the OperationPropertiesFormatServiceSpecification object itself. @@ -48,7 +48,7 @@ public OperationPropertiesFormatServiceSpecification withMetricSpecifications(Li } /** - * Get the logSpecifications value. + * Get operation log specification. * * @return the logSpecifications value */ @@ -57,7 +57,7 @@ public List logSpecifications() { } /** - * Set the logSpecifications value. + * Set operation log specification. * * @param logSpecifications the logSpecifications value to set * @return the OperationPropertiesFormatServiceSpecification object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/PacketCaptureFilter.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/PacketCaptureFilter.java index 7aee8fcfab3..a6e890eb655 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/PacketCaptureFilter.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/PacketCaptureFilter.java @@ -59,7 +59,7 @@ public class PacketCaptureFilter { private String remotePort; /** - * Get the protocol value. + * Get protocol to be filtered on. Possible values include: 'TCP', 'UDP', 'Any'. * * @return the protocol value */ @@ -68,7 +68,7 @@ public PcProtocol protocol() { } /** - * Set the protocol value. + * Set protocol to be filtered on. Possible values include: 'TCP', 'UDP', 'Any'. * * @param protocol the protocol value to set * @return the PacketCaptureFilter object itself. @@ -79,7 +79,7 @@ public PacketCaptureFilter withProtocol(PcProtocol protocol) { } /** - * Get the localIPAddress value. + * Get local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5"? for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null. * * @return the localIPAddress value */ @@ -88,7 +88,7 @@ public String localIPAddress() { } /** - * Set the localIPAddress value. + * Set local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5"? for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null. * * @param localIPAddress the localIPAddress value to set * @return the PacketCaptureFilter object itself. @@ -99,7 +99,7 @@ public PacketCaptureFilter withLocalIPAddress(String localIPAddress) { } /** - * Get the remoteIPAddress value. + * Get local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null. * * @return the remoteIPAddress value */ @@ -108,7 +108,7 @@ public String remoteIPAddress() { } /** - * Set the remoteIPAddress value. + * Set local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null. * * @param remoteIPAddress the remoteIPAddress value to set * @return the PacketCaptureFilter object itself. @@ -119,7 +119,7 @@ public PacketCaptureFilter withRemoteIPAddress(String remoteIPAddress) { } /** - * Get the localPort value. + * Get local port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null. * * @return the localPort value */ @@ -128,7 +128,7 @@ public String localPort() { } /** - * Set the localPort value. + * Set local port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null. * * @param localPort the localPort value to set * @return the PacketCaptureFilter object itself. @@ -139,7 +139,7 @@ public PacketCaptureFilter withLocalPort(String localPort) { } /** - * Get the remotePort value. + * Get remote port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null. * * @return the remotePort value */ @@ -148,7 +148,7 @@ public String remotePort() { } /** - * Set the remotePort value. + * Set remote port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null. * * @param remotePort the remotePort value to set * @return the PacketCaptureFilter object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/PacketCaptureParameters.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/PacketCaptureParameters.java index 1c67eb3be56..b337fbab0d1 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/PacketCaptureParameters.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/PacketCaptureParameters.java @@ -52,7 +52,7 @@ public class PacketCaptureParameters { private List filters; /** - * Get the target value. + * Get the ID of the targeted resource, only VM is currently supported. * * @return the target value */ @@ -61,7 +61,7 @@ public String target() { } /** - * Set the target value. + * Set the ID of the targeted resource, only VM is currently supported. * * @param target the target value to set * @return the PacketCaptureParameters object itself. @@ -72,7 +72,7 @@ public PacketCaptureParameters withTarget(String target) { } /** - * Get the bytesToCapturePerPacket value. + * Get number of bytes captured per packet, the remaining bytes are truncated. * * @return the bytesToCapturePerPacket value */ @@ -81,7 +81,7 @@ public Integer bytesToCapturePerPacket() { } /** - * Set the bytesToCapturePerPacket value. + * Set number of bytes captured per packet, the remaining bytes are truncated. * * @param bytesToCapturePerPacket the bytesToCapturePerPacket value to set * @return the PacketCaptureParameters object itself. @@ -92,7 +92,7 @@ public PacketCaptureParameters withBytesToCapturePerPacket(Integer bytesToCaptur } /** - * Get the totalBytesPerSession value. + * Get maximum size of the capture output. * * @return the totalBytesPerSession value */ @@ -101,7 +101,7 @@ public Integer totalBytesPerSession() { } /** - * Set the totalBytesPerSession value. + * Set maximum size of the capture output. * * @param totalBytesPerSession the totalBytesPerSession value to set * @return the PacketCaptureParameters object itself. @@ -112,7 +112,7 @@ public PacketCaptureParameters withTotalBytesPerSession(Integer totalBytesPerSes } /** - * Get the timeLimitInSeconds value. + * Get maximum duration of the capture session in seconds. * * @return the timeLimitInSeconds value */ @@ -121,7 +121,7 @@ public Integer timeLimitInSeconds() { } /** - * Set the timeLimitInSeconds value. + * Set maximum duration of the capture session in seconds. * * @param timeLimitInSeconds the timeLimitInSeconds value to set * @return the PacketCaptureParameters object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/PacketCaptureStorageLocation.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/PacketCaptureStorageLocation.java index e9eee0b0bb0..4704e252fc1 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/PacketCaptureStorageLocation.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/PacketCaptureStorageLocation.java @@ -38,7 +38,7 @@ public class PacketCaptureStorageLocation { private String filePath; /** - * Get the storageId value. + * Get the ID of the storage account to save the packet capture session. Required if no local file path is provided. * * @return the storageId value */ @@ -47,7 +47,7 @@ public String storageId() { } /** - * Set the storageId value. + * Set the ID of the storage account to save the packet capture session. Required if no local file path is provided. * * @param storageId the storageId value to set * @return the PacketCaptureStorageLocation object itself. @@ -58,7 +58,7 @@ public PacketCaptureStorageLocation withStorageId(String storageId) { } /** - * Get the storagePath value. + * Get the URI of the storage path to save the packet capture. Must be a well-formed URI describing the location to save the packet capture. * * @return the storagePath value */ @@ -67,7 +67,7 @@ public String storagePath() { } /** - * Set the storagePath value. + * Set the URI of the storage path to save the packet capture. Must be a well-formed URI describing the location to save the packet capture. * * @param storagePath the storagePath value to set * @return the PacketCaptureStorageLocation object itself. @@ -78,7 +78,7 @@ public PacketCaptureStorageLocation withStoragePath(String storagePath) { } /** - * Get the filePath value. + * Get a valid local path on the targeting VM. Must include the name of the capture file (*.cap). For linux virtual machine it must start with /var/captures. Required if no storage ID is provided, otherwise optional. * * @return the filePath value */ @@ -87,7 +87,7 @@ public String filePath() { } /** - * Set the filePath value. + * Set a valid local path on the targeting VM. Must include the name of the capture file (*.cap). For linux virtual machine it must start with /var/captures. Required if no storage ID is provided, otherwise optional. * * @param filePath the filePath value to set * @return the PacketCaptureStorageLocation object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/PublicIPAddressDnsSettings.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/PublicIPAddressDnsSettings.java index 7bf715833e0..4a0cb3e5877 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/PublicIPAddressDnsSettings.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/PublicIPAddressDnsSettings.java @@ -42,7 +42,7 @@ public class PublicIPAddressDnsSettings { private String reverseFqdn; /** - * Get the domainNameLabel value. + * Get gets or sets the Domain name label.The concatenation of the domain name label and the regionalized DNS zone make up the fully qualified domain name associated with the public IP address. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system. * * @return the domainNameLabel value */ @@ -51,7 +51,7 @@ public String domainNameLabel() { } /** - * Set the domainNameLabel value. + * Set gets or sets the Domain name label.The concatenation of the domain name label and the regionalized DNS zone make up the fully qualified domain name associated with the public IP address. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system. * * @param domainNameLabel the domainNameLabel value to set * @return the PublicIPAddressDnsSettings object itself. @@ -62,7 +62,7 @@ public PublicIPAddressDnsSettings withDomainNameLabel(String domainNameLabel) { } /** - * Get the fqdn value. + * Get gets the FQDN, Fully qualified domain name of the A DNS record associated with the public IP. This is the concatenation of the domainNameLabel and the regionalized DNS zone. * * @return the fqdn value */ @@ -71,7 +71,7 @@ public String fqdn() { } /** - * Set the fqdn value. + * Set gets the FQDN, Fully qualified domain name of the A DNS record associated with the public IP. This is the concatenation of the domainNameLabel and the regionalized DNS zone. * * @param fqdn the fqdn value to set * @return the PublicIPAddressDnsSettings object itself. @@ -82,7 +82,7 @@ public PublicIPAddressDnsSettings withFqdn(String fqdn) { } /** - * Get the reverseFqdn value. + * Get gets or Sets the Reverse FQDN. A user-visible, fully qualified domain name that resolves to this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address in the in-addr.arpa domain to the reverse FQDN. * * @return the reverseFqdn value */ @@ -91,7 +91,7 @@ public String reverseFqdn() { } /** - * Set the reverseFqdn value. + * Set gets or Sets the Reverse FQDN. A user-visible, fully qualified domain name that resolves to this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address in the in-addr.arpa domain to the reverse FQDN. * * @param reverseFqdn the reverseFqdn value to set * @return the PublicIPAddressDnsSettings object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/PublicIPAddressSku.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/PublicIPAddressSku.java index 7b845ec09dd..559ac2782f7 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/PublicIPAddressSku.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/PublicIPAddressSku.java @@ -22,7 +22,7 @@ public class PublicIPAddressSku { private PublicIPAddressSkuName name; /** - * Get the name value. + * Get name of a public IP address SKU. Possible values include: 'Basic', 'Standard'. * * @return the name value */ @@ -31,7 +31,7 @@ public PublicIPAddressSkuName name() { } /** - * Set the name value. + * Set name of a public IP address SKU. Possible values include: 'Basic', 'Standard'. * * @param name the name value to set * @return the PublicIPAddressSku object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/QueryTroubleshootingParameters.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/QueryTroubleshootingParameters.java index de8ae7c1dff..d50291ebabb 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/QueryTroubleshootingParameters.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/QueryTroubleshootingParameters.java @@ -21,7 +21,7 @@ public class QueryTroubleshootingParameters { private String targetResourceId; /** - * Get the targetResourceId value. + * Get the target resource ID to query the troubleshooting result. * * @return the targetResourceId value */ @@ -30,7 +30,7 @@ public String targetResourceId() { } /** - * Set the targetResourceId value. + * Set the target resource ID to query the troubleshooting result. * * @param targetResourceId the targetResourceId value to set * @return the QueryTroubleshootingParameters object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/RetentionPolicyParameters.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/RetentionPolicyParameters.java index 793427b79aa..263fb89cab5 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/RetentionPolicyParameters.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/RetentionPolicyParameters.java @@ -27,7 +27,7 @@ public class RetentionPolicyParameters { private Boolean enabled; /** - * Get the days value. + * Get number of days to retain flow log records. * * @return the days value */ @@ -36,7 +36,7 @@ public Integer days() { } /** - * Set the days value. + * Set number of days to retain flow log records. * * @param days the days value to set * @return the RetentionPolicyParameters object itself. @@ -47,7 +47,7 @@ public RetentionPolicyParameters withDays(Integer days) { } /** - * Get the enabled value. + * Get flag to enable/disable retention. * * @return the enabled value */ @@ -56,7 +56,7 @@ public Boolean enabled() { } /** - * Set the enabled value. + * Set flag to enable/disable retention. * * @param enabled the enabled value to set * @return the RetentionPolicyParameters object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/SecurityGroupNetworkInterface.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/SecurityGroupNetworkInterface.java index 66cd2447dcd..e38a5c25586 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/SecurityGroupNetworkInterface.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/SecurityGroupNetworkInterface.java @@ -27,7 +27,7 @@ public class SecurityGroupNetworkInterface { private SecurityRuleAssociations securityRuleAssociations; /** - * Get the id value. + * Get iD of the network interface. * * @return the id value */ @@ -36,7 +36,7 @@ public String id() { } /** - * Set the id value. + * Set iD of the network interface. * * @param id the id value to set * @return the SecurityGroupNetworkInterface object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/SecurityGroupViewParameters.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/SecurityGroupViewParameters.java index e018e706b02..db02ddb3bc2 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/SecurityGroupViewParameters.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/SecurityGroupViewParameters.java @@ -21,7 +21,7 @@ public class SecurityGroupViewParameters { private String targetResourceId; /** - * Get the targetResourceId value. + * Get iD of the target VM. * * @return the targetResourceId value */ @@ -30,7 +30,7 @@ public String targetResourceId() { } /** - * Set the targetResourceId value. + * Set iD of the target VM. * * @param targetResourceId the targetResourceId value to set * @return the SecurityGroupViewParameters object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/SecurityRuleAssociations.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/SecurityRuleAssociations.java index 226424e71f4..03e145f932e 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/SecurityRuleAssociations.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/SecurityRuleAssociations.java @@ -81,7 +81,7 @@ public SecurityRuleAssociations withSubnetAssociation(SubnetAssociation subnetAs } /** - * Get the defaultSecurityRules value. + * Get collection of default security rules of the network security group. * * @return the defaultSecurityRules value */ @@ -90,7 +90,7 @@ public List defaultSecurityRules() { } /** - * Set the defaultSecurityRules value. + * Set collection of default security rules of the network security group. * * @param defaultSecurityRules the defaultSecurityRules value to set * @return the SecurityRuleAssociations object itself. @@ -101,7 +101,7 @@ public SecurityRuleAssociations withDefaultSecurityRules(List } /** - * Get the effectiveSecurityRules value. + * Get collection of effective security rules. * * @return the effectiveSecurityRules value */ @@ -110,7 +110,7 @@ public List effectiveSecurityRules() { } /** - * Set the effectiveSecurityRules value. + * Set collection of effective security rules. * * @param effectiveSecurityRules the effectiveSecurityRules value to set * @return the SecurityRuleAssociations object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ServiceEndpointPropertiesFormat.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ServiceEndpointPropertiesFormat.java index 9dfc9b816a3..7e2d1a3d80c 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ServiceEndpointPropertiesFormat.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/ServiceEndpointPropertiesFormat.java @@ -34,7 +34,7 @@ public class ServiceEndpointPropertiesFormat { private String provisioningState; /** - * Get the service value. + * Get the type of the endpoint service. * * @return the service value */ @@ -43,7 +43,7 @@ public String service() { } /** - * Set the service value. + * Set the type of the endpoint service. * * @param service the service value to set * @return the ServiceEndpointPropertiesFormat object itself. @@ -54,7 +54,7 @@ public ServiceEndpointPropertiesFormat withService(String service) { } /** - * Get the locations value. + * Get a list of locations. * * @return the locations value */ @@ -63,7 +63,7 @@ public List locations() { } /** - * Set the locations value. + * Set a list of locations. * * @param locations the locations value to set * @return the ServiceEndpointPropertiesFormat object itself. @@ -74,7 +74,7 @@ public ServiceEndpointPropertiesFormat withLocations(List locations) { } /** - * Get the provisioningState value. + * Get the provisioning state of the resource. * * @return the provisioningState value */ @@ -83,7 +83,7 @@ public String provisioningState() { } /** - * Set the provisioningState value. + * Set the provisioning state of the resource. * * @param provisioningState the provisioningState value to set * @return the ServiceEndpointPropertiesFormat object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/SubnetAssociation.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/SubnetAssociation.java index 23039b958e0..5d452fc93d0 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/SubnetAssociation.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/SubnetAssociation.java @@ -29,7 +29,7 @@ public class SubnetAssociation { private List securityRules; /** - * Get the id value. + * Get subnet ID. * * @return the id value */ @@ -38,7 +38,7 @@ public String id() { } /** - * Get the securityRules value. + * Get collection of custom security rules. * * @return the securityRules value */ @@ -47,7 +47,7 @@ public List securityRules() { } /** - * Set the securityRules value. + * Set collection of custom security rules. * * @param securityRules the securityRules value to set * @return the SubnetAssociation object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/TagsObject.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/TagsObject.java index a22d58580db..9dc40d069b9 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/TagsObject.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/TagsObject.java @@ -22,7 +22,7 @@ public class TagsObject { private Map tags; /** - * Get the tags value. + * Get resource tags. * * @return the tags value */ @@ -31,7 +31,7 @@ public Map tags() { } /** - * Set the tags value. + * Set resource tags. * * @param tags the tags value to set * @return the TagsObject object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/TopologyAssociation.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/TopologyAssociation.java index 345b8bc5abf..86014a8353f 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/TopologyAssociation.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/TopologyAssociation.java @@ -34,7 +34,7 @@ public class TopologyAssociation { private AssociationType associationType; /** - * Get the name value. + * Get the name of the resource that is associated with the parent resource. * * @return the name value */ @@ -43,7 +43,7 @@ public String name() { } /** - * Set the name value. + * Set the name of the resource that is associated with the parent resource. * * @param name the name value to set * @return the TopologyAssociation object itself. @@ -54,7 +54,7 @@ public TopologyAssociation withName(String name) { } /** - * Get the resourceId value. + * Get the ID of the resource that is associated with the parent resource. * * @return the resourceId value */ @@ -63,7 +63,7 @@ public String resourceId() { } /** - * Set the resourceId value. + * Set the ID of the resource that is associated with the parent resource. * * @param resourceId the resourceId value to set * @return the TopologyAssociation object itself. @@ -74,7 +74,7 @@ public TopologyAssociation withResourceId(String resourceId) { } /** - * Get the associationType value. + * Get the association type of the child resource to the parent resource. Possible values include: 'Associated', 'Contains'. * * @return the associationType value */ @@ -83,7 +83,7 @@ public AssociationType associationType() { } /** - * Set the associationType value. + * Set the association type of the child resource to the parent resource. Possible values include: 'Associated', 'Contains'. * * @param associationType the associationType value to set * @return the TopologyAssociation object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/TopologyParameters.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/TopologyParameters.java index 722ac169e8a..a477dd1ed00 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/TopologyParameters.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/TopologyParameters.java @@ -34,7 +34,7 @@ public class TopologyParameters { private SubResource targetSubnet; /** - * Get the targetResourceGroupName value. + * Get the name of the target resource group to perform topology on. * * @return the targetResourceGroupName value */ @@ -43,7 +43,7 @@ public String targetResourceGroupName() { } /** - * Set the targetResourceGroupName value. + * Set the name of the target resource group to perform topology on. * * @param targetResourceGroupName the targetResourceGroupName value to set * @return the TopologyParameters object itself. @@ -54,7 +54,7 @@ public TopologyParameters withTargetResourceGroupName(String targetResourceGroup } /** - * Get the targetVirtualNetwork value. + * Get the reference of the Virtual Network resource. * * @return the targetVirtualNetwork value */ @@ -63,7 +63,7 @@ public SubResource targetVirtualNetwork() { } /** - * Set the targetVirtualNetwork value. + * Set the reference of the Virtual Network resource. * * @param targetVirtualNetwork the targetVirtualNetwork value to set * @return the TopologyParameters object itself. @@ -74,7 +74,7 @@ public TopologyParameters withTargetVirtualNetwork(SubResource targetVirtualNetw } /** - * Get the targetSubnet value. + * Get the reference of the Subnet resource. * * @return the targetSubnet value */ @@ -83,7 +83,7 @@ public SubResource targetSubnet() { } /** - * Set the targetSubnet value. + * Set the reference of the Subnet resource. * * @param targetSubnet the targetSubnet value to set * @return the TopologyParameters object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/TopologyResource.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/TopologyResource.java index d14f06868e0..4bd8d44c2a0 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/TopologyResource.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/TopologyResource.java @@ -41,7 +41,7 @@ public class TopologyResource { private List associations; /** - * Get the name value. + * Get name of the resource. * * @return the name value */ @@ -50,7 +50,7 @@ public String name() { } /** - * Set the name value. + * Set name of the resource. * * @param name the name value to set * @return the TopologyResource object itself. @@ -61,7 +61,7 @@ public TopologyResource withName(String name) { } /** - * Get the id value. + * Get iD of the resource. * * @return the id value */ @@ -70,7 +70,7 @@ public String id() { } /** - * Set the id value. + * Set iD of the resource. * * @param id the id value to set * @return the TopologyResource object itself. @@ -81,7 +81,7 @@ public TopologyResource withId(String id) { } /** - * Get the location value. + * Get resource location. * * @return the location value */ @@ -90,7 +90,7 @@ public String location() { } /** - * Set the location value. + * Set resource location. * * @param location the location value to set * @return the TopologyResource object itself. @@ -101,7 +101,7 @@ public TopologyResource withLocation(String location) { } /** - * Get the associations value. + * Get holds the associations the resource has with other resources in the resource group. * * @return the associations value */ @@ -110,7 +110,7 @@ public List associations() { } /** - * Set the associations value. + * Set holds the associations the resource has with other resources in the resource group. * * @param associations the associations value to set * @return the TopologyResource object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/TrafficAnalyticsConfigurationProperties.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/TrafficAnalyticsConfigurationProperties.java index 4ffb0881eb6..65b4396f213 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/TrafficAnalyticsConfigurationProperties.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/TrafficAnalyticsConfigurationProperties.java @@ -39,7 +39,7 @@ public class TrafficAnalyticsConfigurationProperties { private String workspaceResourceId; /** - * Get the enabled value. + * Get flag to enable/disable traffic analytics. * * @return the enabled value */ @@ -48,7 +48,7 @@ public boolean enabled() { } /** - * Set the enabled value. + * Set flag to enable/disable traffic analytics. * * @param enabled the enabled value to set * @return the TrafficAnalyticsConfigurationProperties object itself. @@ -59,7 +59,7 @@ public TrafficAnalyticsConfigurationProperties withEnabled(boolean enabled) { } /** - * Get the workspaceId value. + * Get the resource guid of the attached workspace. * * @return the workspaceId value */ @@ -68,7 +68,7 @@ public String workspaceId() { } /** - * Set the workspaceId value. + * Set the resource guid of the attached workspace. * * @param workspaceId the workspaceId value to set * @return the TrafficAnalyticsConfigurationProperties object itself. @@ -79,7 +79,7 @@ public TrafficAnalyticsConfigurationProperties withWorkspaceId(String workspaceI } /** - * Get the workspaceRegion value. + * Get the location of the attached workspace. * * @return the workspaceRegion value */ @@ -88,7 +88,7 @@ public String workspaceRegion() { } /** - * Set the workspaceRegion value. + * Set the location of the attached workspace. * * @param workspaceRegion the workspaceRegion value to set * @return the TrafficAnalyticsConfigurationProperties object itself. @@ -99,7 +99,7 @@ public TrafficAnalyticsConfigurationProperties withWorkspaceRegion(String worksp } /** - * Get the workspaceResourceId value. + * Get resource Id of the attached workspace. * * @return the workspaceResourceId value */ @@ -108,7 +108,7 @@ public String workspaceResourceId() { } /** - * Set the workspaceResourceId value. + * Set resource Id of the attached workspace. * * @param workspaceResourceId the workspaceResourceId value to set * @return the TrafficAnalyticsConfigurationProperties object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/TroubleshootingDetails.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/TroubleshootingDetails.java index 0b4b2544fbe..ed34663d524 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/TroubleshootingDetails.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/TroubleshootingDetails.java @@ -46,7 +46,7 @@ public class TroubleshootingDetails { private List recommendedActions; /** - * Get the id value. + * Get the id of the get troubleshoot operation. * * @return the id value */ @@ -55,7 +55,7 @@ public String id() { } /** - * Set the id value. + * Set the id of the get troubleshoot operation. * * @param id the id value to set * @return the TroubleshootingDetails object itself. @@ -66,7 +66,7 @@ public TroubleshootingDetails withId(String id) { } /** - * Get the reasonType value. + * Get reason type of failure. * * @return the reasonType value */ @@ -75,7 +75,7 @@ public String reasonType() { } /** - * Set the reasonType value. + * Set reason type of failure. * * @param reasonType the reasonType value to set * @return the TroubleshootingDetails object itself. @@ -86,7 +86,7 @@ public TroubleshootingDetails withReasonType(String reasonType) { } /** - * Get the summary value. + * Get a summary of troubleshooting. * * @return the summary value */ @@ -95,7 +95,7 @@ public String summary() { } /** - * Set the summary value. + * Set a summary of troubleshooting. * * @param summary the summary value to set * @return the TroubleshootingDetails object itself. @@ -106,7 +106,7 @@ public TroubleshootingDetails withSummary(String summary) { } /** - * Get the detail value. + * Get details on troubleshooting results. * * @return the detail value */ @@ -115,7 +115,7 @@ public String detail() { } /** - * Set the detail value. + * Set details on troubleshooting results. * * @param detail the detail value to set * @return the TroubleshootingDetails object itself. @@ -126,7 +126,7 @@ public TroubleshootingDetails withDetail(String detail) { } /** - * Get the recommendedActions value. + * Get list of recommended actions. * * @return the recommendedActions value */ @@ -135,7 +135,7 @@ public List recommendedActions() { } /** - * Set the recommendedActions value. + * Set list of recommended actions. * * @param recommendedActions the recommendedActions value to set * @return the TroubleshootingDetails object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/TroubleshootingParameters.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/TroubleshootingParameters.java index 1c75c3274e7..7d25f52a520 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/TroubleshootingParameters.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/TroubleshootingParameters.java @@ -35,7 +35,7 @@ public class TroubleshootingParameters { private String storagePath; /** - * Get the targetResourceId value. + * Get the target resource to troubleshoot. * * @return the targetResourceId value */ @@ -44,7 +44,7 @@ public String targetResourceId() { } /** - * Set the targetResourceId value. + * Set the target resource to troubleshoot. * * @param targetResourceId the targetResourceId value to set * @return the TroubleshootingParameters object itself. @@ -55,7 +55,7 @@ public TroubleshootingParameters withTargetResourceId(String targetResourceId) { } /** - * Get the storageId value. + * Get the ID for the storage account to save the troubleshoot result. * * @return the storageId value */ @@ -64,7 +64,7 @@ public String storageId() { } /** - * Set the storageId value. + * Set the ID for the storage account to save the troubleshoot result. * * @param storageId the storageId value to set * @return the TroubleshootingParameters object itself. @@ -75,7 +75,7 @@ public TroubleshootingParameters withStorageId(String storageId) { } /** - * Get the storagePath value. + * Get the path to the blob to save the troubleshoot result in. * * @return the storagePath value */ @@ -84,7 +84,7 @@ public String storagePath() { } /** - * Set the storagePath value. + * Set the path to the blob to save the troubleshoot result in. * * @param storagePath the storagePath value to set * @return the TroubleshootingParameters object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/TroubleshootingRecommendedActions.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/TroubleshootingRecommendedActions.java index 1c84f7ee24c..e3d47357e05 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/TroubleshootingRecommendedActions.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/TroubleshootingRecommendedActions.java @@ -41,7 +41,7 @@ public class TroubleshootingRecommendedActions { private String actionUriText; /** - * Get the actionId value. + * Get iD of the recommended action. * * @return the actionId value */ @@ -50,7 +50,7 @@ public String actionId() { } /** - * Set the actionId value. + * Set iD of the recommended action. * * @param actionId the actionId value to set * @return the TroubleshootingRecommendedActions object itself. @@ -61,7 +61,7 @@ public TroubleshootingRecommendedActions withActionId(String actionId) { } /** - * Get the actionText value. + * Get description of recommended actions. * * @return the actionText value */ @@ -70,7 +70,7 @@ public String actionText() { } /** - * Set the actionText value. + * Set description of recommended actions. * * @param actionText the actionText value to set * @return the TroubleshootingRecommendedActions object itself. @@ -81,7 +81,7 @@ public TroubleshootingRecommendedActions withActionText(String actionText) { } /** - * Get the actionUri value. + * Get the uri linking to a documentation for the recommended troubleshooting actions. * * @return the actionUri value */ @@ -90,7 +90,7 @@ public String actionUri() { } /** - * Set the actionUri value. + * Set the uri linking to a documentation for the recommended troubleshooting actions. * * @param actionUri the actionUri value to set * @return the TroubleshootingRecommendedActions object itself. @@ -101,7 +101,7 @@ public TroubleshootingRecommendedActions withActionUri(String actionUri) { } /** - * Get the actionUriText value. + * Get the information from the URI for the recommended troubleshooting actions. * * @return the actionUriText value */ @@ -110,7 +110,7 @@ public String actionUriText() { } /** - * Set the actionUriText value. + * Set the information from the URI for the recommended troubleshooting actions. * * @param actionUriText the actionUriText value to set * @return the TroubleshootingRecommendedActions object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/TunnelConnectionHealth.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/TunnelConnectionHealth.java index 9a9925b3f40..aa27f1b28eb 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/TunnelConnectionHealth.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/TunnelConnectionHealth.java @@ -46,7 +46,7 @@ public class TunnelConnectionHealth { private String lastConnectionEstablishedUtcTime; /** - * Get the tunnel value. + * Get tunnel name. * * @return the tunnel value */ @@ -55,7 +55,7 @@ public String tunnel() { } /** - * Get the connectionStatus value. + * Get virtual network Gateway connection status. Possible values include: 'Unknown', 'Connecting', 'Connected', 'NotConnected'. * * @return the connectionStatus value */ @@ -64,7 +64,7 @@ public VirtualNetworkGatewayConnectionStatus connectionStatus() { } /** - * Get the ingressBytesTransferred value. + * Get the Ingress Bytes Transferred in this connection. * * @return the ingressBytesTransferred value */ @@ -73,7 +73,7 @@ public Long ingressBytesTransferred() { } /** - * Get the egressBytesTransferred value. + * Get the Egress Bytes Transferred in this connection. * * @return the egressBytesTransferred value */ @@ -82,7 +82,7 @@ public Long egressBytesTransferred() { } /** - * Get the lastConnectionEstablishedUtcTime value. + * Get the time at which connection was established in Utc format. * * @return the lastConnectionEstablishedUtcTime value */ diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/TunnelConnectionStatus.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/TunnelConnectionStatus.java new file mode 100644 index 00000000000..405fa3e81e0 --- /dev/null +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/TunnelConnectionStatus.java @@ -0,0 +1,47 @@ +/** + * 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. + */ + +package com.microsoft.azure.management.network; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for TunnelConnectionStatus. + */ +public final class TunnelConnectionStatus extends ExpandableStringEnum { + /** Static value Unknown for TunnelConnectionStatus. */ + public static final TunnelConnectionStatus UNKNOWN = fromString("Unknown"); + + /** Static value Connecting for TunnelConnectionStatus. */ + public static final TunnelConnectionStatus CONNECTING = fromString("Connecting"); + + /** Static value Connected for TunnelConnectionStatus. */ + public static final TunnelConnectionStatus CONNECTED = fromString("Connected"); + + /** Static value NotConnected for TunnelConnectionStatus. */ + public static final TunnelConnectionStatus NOT_CONNECTED = fromString("NotConnected"); + + /** + * Creates or finds a TunnelConnectionStatus from its string representation. + * @param name a name to look for + * @return the corresponding TunnelConnectionStatus + */ + @JsonCreator + public static TunnelConnectionStatus fromString(String name) { + return fromString(name, TunnelConnectionStatus.class); + } + + /** + * @return known TunnelConnectionStatus values + */ + public static Collection values() { + return values(TunnelConnectionStatus.class); + } +} diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/UsageName.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/UsageName.java index 6c7b98d04f1..3ef74868b9e 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/UsageName.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/UsageName.java @@ -27,7 +27,7 @@ public class UsageName { private String localizedValue; /** - * Get the value value. + * Get a string describing the resource name. * * @return the value value */ @@ -36,7 +36,7 @@ public String value() { } /** - * Set the value value. + * Set a string describing the resource name. * * @param value the value value to set * @return the UsageName object itself. @@ -47,7 +47,7 @@ public UsageName withValue(String value) { } /** - * Get the localizedValue value. + * Get a localized string describing the resource name. * * @return the localizedValue value */ @@ -56,7 +56,7 @@ public String localizedValue() { } /** - * Set the localizedValue value. + * Set a localized string describing the resource name. * * @param localizedValue the localizedValue value to set * @return the UsageName object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/VerificationIPFlowParameters.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/VerificationIPFlowParameters.java index 494c8e35ad3..95023bc310c 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/VerificationIPFlowParameters.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/VerificationIPFlowParameters.java @@ -69,7 +69,7 @@ public class VerificationIPFlowParameters { private String targetNicResourceId; /** - * Get the targetResourceId value. + * Get the ID of the target resource to perform next-hop on. * * @return the targetResourceId value */ @@ -78,7 +78,7 @@ public String targetResourceId() { } /** - * Set the targetResourceId value. + * Set the ID of the target resource to perform next-hop on. * * @param targetResourceId the targetResourceId value to set * @return the VerificationIPFlowParameters object itself. @@ -89,7 +89,7 @@ public VerificationIPFlowParameters withTargetResourceId(String targetResourceId } /** - * Get the direction value. + * Get the direction of the packet represented as a 5-tuple. Possible values include: 'Inbound', 'Outbound'. * * @return the direction value */ @@ -98,7 +98,7 @@ public Direction direction() { } /** - * Set the direction value. + * Set the direction of the packet represented as a 5-tuple. Possible values include: 'Inbound', 'Outbound'. * * @param direction the direction value to set * @return the VerificationIPFlowParameters object itself. @@ -109,7 +109,7 @@ public VerificationIPFlowParameters withDirection(Direction direction) { } /** - * Get the protocol value. + * Get protocol to be verified on. Possible values include: 'TCP', 'UDP'. * * @return the protocol value */ @@ -118,7 +118,7 @@ public IpFlowProtocol protocol() { } /** - * Set the protocol value. + * Set protocol to be verified on. Possible values include: 'TCP', 'UDP'. * * @param protocol the protocol value to set * @return the VerificationIPFlowParameters object itself. @@ -129,7 +129,7 @@ public VerificationIPFlowParameters withProtocol(IpFlowProtocol protocol) { } /** - * Get the localPort value. + * Get 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. * * @return the localPort value */ @@ -138,7 +138,7 @@ public String localPort() { } /** - * Set the localPort value. + * Set 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. * * @param localPort the localPort value to set * @return the VerificationIPFlowParameters object itself. @@ -149,7 +149,7 @@ public VerificationIPFlowParameters withLocalPort(String localPort) { } /** - * Get the remotePort value. + * Get 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. * * @return the remotePort value */ @@ -158,7 +158,7 @@ public String remotePort() { } /** - * Set the remotePort value. + * Set 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. * * @param remotePort the remotePort value to set * @return the VerificationIPFlowParameters object itself. @@ -169,7 +169,7 @@ public VerificationIPFlowParameters withRemotePort(String remotePort) { } /** - * Get the localIPAddress value. + * Get the local IP address. Acceptable values are valid IPv4 addresses. * * @return the localIPAddress value */ @@ -178,7 +178,7 @@ public String localIPAddress() { } /** - * Set the localIPAddress value. + * Set the local IP address. Acceptable values are valid IPv4 addresses. * * @param localIPAddress the localIPAddress value to set * @return the VerificationIPFlowParameters object itself. @@ -189,7 +189,7 @@ public VerificationIPFlowParameters withLocalIPAddress(String localIPAddress) { } /** - * Get the remoteIPAddress value. + * Get the remote IP address. Acceptable values are valid IPv4 addresses. * * @return the remoteIPAddress value */ @@ -198,7 +198,7 @@ public String remoteIPAddress() { } /** - * Set the remoteIPAddress value. + * Set the remote IP address. Acceptable values are valid IPv4 addresses. * * @param remoteIPAddress the remoteIPAddress value to set * @return the VerificationIPFlowParameters object itself. @@ -209,7 +209,7 @@ public VerificationIPFlowParameters withRemoteIPAddress(String remoteIPAddress) } /** - * Get the targetNicResourceId value. + * Get the NIC ID. (If VM has multiple NICs and IP forwarding is enabled on any of them, then this parameter must be specified. Otherwise optional). * * @return the targetNicResourceId value */ @@ -218,7 +218,7 @@ public String targetNicResourceId() { } /** - * Set the targetNicResourceId value. + * Set the NIC ID. (If VM has multiple NICs and IP forwarding is enabled on any of them, then this parameter must be specified. Otherwise optional). * * @param targetNicResourceId the targetNicResourceId value to set * @return the VerificationIPFlowParameters object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/VirtualNetworkConnectionGatewayReference.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/VirtualNetworkConnectionGatewayReference.java index 4b4e0addd99..c5e72e91483 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/VirtualNetworkConnectionGatewayReference.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/VirtualNetworkConnectionGatewayReference.java @@ -21,7 +21,7 @@ public class VirtualNetworkConnectionGatewayReference { private String id; /** - * Get the id value. + * Get the ID of VirtualNetworkGateway or LocalNetworkGateway resource. * * @return the id value */ @@ -30,7 +30,7 @@ public String id() { } /** - * Set the id value. + * Set the ID of VirtualNetworkGateway or LocalNetworkGateway resource. * * @param id the id value to set * @return the VirtualNetworkConnectionGatewayReference object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/VirtualNetworkGatewaySku.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/VirtualNetworkGatewaySku.java index 4495c691ec4..6ca5d861e9c 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/VirtualNetworkGatewaySku.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/VirtualNetworkGatewaySku.java @@ -37,7 +37,7 @@ public class VirtualNetworkGatewaySku { private Integer capacity; /** - * Get the name value. + * Get gateway SKU name. Possible values include: 'Basic', 'HighPerformance', 'Standard', 'UltraPerformance', 'VpnGw1', 'VpnGw2', 'VpnGw3', 'VpnGw1AZ', 'VpnGw2AZ', 'VpnGw3AZ', 'ErGw1AZ', 'ErGw2AZ', 'ErGw3AZ'. * * @return the name value */ @@ -46,7 +46,7 @@ public VirtualNetworkGatewaySkuName name() { } /** - * Set the name value. + * Set gateway SKU name. Possible values include: 'Basic', 'HighPerformance', 'Standard', 'UltraPerformance', 'VpnGw1', 'VpnGw2', 'VpnGw3', 'VpnGw1AZ', 'VpnGw2AZ', 'VpnGw3AZ', 'ErGw1AZ', 'ErGw2AZ', 'ErGw3AZ'. * * @param name the name value to set * @return the VirtualNetworkGatewaySku object itself. @@ -57,7 +57,7 @@ public VirtualNetworkGatewaySku withName(VirtualNetworkGatewaySkuName name) { } /** - * Get the tier value. + * Get gateway SKU tier. Possible values include: 'Basic', 'HighPerformance', 'Standard', 'UltraPerformance', 'VpnGw1', 'VpnGw2', 'VpnGw3', 'VpnGw1AZ', 'VpnGw2AZ', 'VpnGw3AZ', 'ErGw1AZ', 'ErGw2AZ', 'ErGw3AZ'. * * @return the tier value */ @@ -66,7 +66,7 @@ public VirtualNetworkGatewaySkuTier tier() { } /** - * Set the tier value. + * Set gateway SKU tier. Possible values include: 'Basic', 'HighPerformance', 'Standard', 'UltraPerformance', 'VpnGw1', 'VpnGw2', 'VpnGw3', 'VpnGw1AZ', 'VpnGw2AZ', 'VpnGw3AZ', 'ErGw1AZ', 'ErGw2AZ', 'ErGw3AZ'. * * @param tier the tier value to set * @return the VirtualNetworkGatewaySku object itself. @@ -77,7 +77,7 @@ public VirtualNetworkGatewaySku withTier(VirtualNetworkGatewaySkuTier tier) { } /** - * Get the capacity value. + * Get the capacity. * * @return the capacity value */ @@ -86,7 +86,7 @@ public Integer capacity() { } /** - * Set the capacity value. + * Set the capacity. * * @param capacity the capacity value to set * @return the VirtualNetworkGatewaySku object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/VirtualNetworkUsageName.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/VirtualNetworkUsageName.java index 28c55195a0b..89d79521ecc 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/VirtualNetworkUsageName.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/VirtualNetworkUsageName.java @@ -27,7 +27,7 @@ public class VirtualNetworkUsageName { private String value; /** - * Get the localizedValue value. + * Get localized subnet size and usage string. * * @return the localizedValue value */ @@ -36,7 +36,7 @@ public String localizedValue() { } /** - * Get the value value. + * Get subnet size and usage string. * * @return the value value */ diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/VpnClientConfiguration.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/VpnClientConfiguration.java index 0c6f95e17a6..e53e88f6219 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/VpnClientConfiguration.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/VpnClientConfiguration.java @@ -63,7 +63,7 @@ public class VpnClientConfiguration { private String radiusServerSecret; /** - * Get the vpnClientAddressPool value. + * Get the reference of the address space resource which represents Address space for P2S VpnClient. * * @return the vpnClientAddressPool value */ @@ -72,7 +72,7 @@ public AddressSpace vpnClientAddressPool() { } /** - * Set the vpnClientAddressPool value. + * Set the reference of the address space resource which represents Address space for P2S VpnClient. * * @param vpnClientAddressPool the vpnClientAddressPool value to set * @return the VpnClientConfiguration object itself. @@ -83,7 +83,7 @@ public VpnClientConfiguration withVpnClientAddressPool(AddressSpace vpnClientAdd } /** - * Get the vpnClientRootCertificates value. + * Get vpnClientRootCertificate for virtual network gateway. * * @return the vpnClientRootCertificates value */ @@ -92,7 +92,7 @@ public List vpnClientRootCertificates() { } /** - * Set the vpnClientRootCertificates value. + * Set vpnClientRootCertificate for virtual network gateway. * * @param vpnClientRootCertificates the vpnClientRootCertificates value to set * @return the VpnClientConfiguration object itself. @@ -103,7 +103,7 @@ public VpnClientConfiguration withVpnClientRootCertificates(List vpnClientRevokedCertificates() { } /** - * Set the vpnClientRevokedCertificates value. + * Set vpnClientRevokedCertificate for Virtual network gateway. * * @param vpnClientRevokedCertificates the vpnClientRevokedCertificates value to set * @return the VpnClientConfiguration object itself. @@ -123,7 +123,7 @@ public VpnClientConfiguration withVpnClientRevokedCertificates(List vpnClientProtocols() { } /** - * Set the vpnClientProtocols value. + * Set vpnClientProtocols for Virtual network gateway. * * @param vpnClientProtocols the vpnClientProtocols value to set * @return the VpnClientConfiguration object itself. @@ -143,7 +143,7 @@ public VpnClientConfiguration withVpnClientProtocols(List vpn } /** - * Get the vpnClientIpsecPolicies value. + * Get vpnClientIpsecPolicies for virtual network gateway P2S client. * * @return the vpnClientIpsecPolicies value */ @@ -152,7 +152,7 @@ public List vpnClientIpsecPolicies() { } /** - * Set the vpnClientIpsecPolicies value. + * Set vpnClientIpsecPolicies for virtual network gateway P2S client. * * @param vpnClientIpsecPolicies the vpnClientIpsecPolicies value to set * @return the VpnClientConfiguration object itself. @@ -163,7 +163,7 @@ public VpnClientConfiguration withVpnClientIpsecPolicies(List vpnCl } /** - * Get the radiusServerAddress value. + * Get the radius server address property of the VirtualNetworkGateway resource for vpn client connection. * * @return the radiusServerAddress value */ @@ -172,7 +172,7 @@ public String radiusServerAddress() { } /** - * Set the radiusServerAddress value. + * Set the radius server address property of the VirtualNetworkGateway resource for vpn client connection. * * @param radiusServerAddress the radiusServerAddress value to set * @return the VpnClientConfiguration object itself. @@ -183,7 +183,7 @@ public VpnClientConfiguration withRadiusServerAddress(String radiusServerAddress } /** - * Get the radiusServerSecret value. + * Get the radius secret property of the VirtualNetworkGateway resource for vpn client connection. * * @return the radiusServerSecret value */ @@ -192,7 +192,7 @@ public String radiusServerSecret() { } /** - * Set the radiusServerSecret value. + * Set the radius secret property of the VirtualNetworkGateway resource for vpn client connection. * * @param radiusServerSecret the radiusServerSecret value to set * @return the VpnClientConfiguration object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/VpnClientIPsecParameters.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/VpnClientIPsecParameters.java index 0ae7957f015..4305cfe2384 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/VpnClientIPsecParameters.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/VpnClientIPsecParameters.java @@ -74,7 +74,7 @@ public class VpnClientIPsecParameters { private PfsGroup pfsGroup; /** - * Get the saLifeTimeSeconds value. + * Get the IPSec Security Association (also called Quick Mode or Phase 2 SA) lifetime in seconds for P2S client. * * @return the saLifeTimeSeconds value */ @@ -83,7 +83,7 @@ public int saLifeTimeSeconds() { } /** - * Set the saLifeTimeSeconds value. + * Set the IPSec Security Association (also called Quick Mode or Phase 2 SA) lifetime in seconds for P2S client. * * @param saLifeTimeSeconds the saLifeTimeSeconds value to set * @return the VpnClientIPsecParameters object itself. @@ -94,7 +94,7 @@ public VpnClientIPsecParameters withSaLifeTimeSeconds(int saLifeTimeSeconds) { } /** - * Get the saDataSizeKilobytes value. + * Get the IPSec Security Association (also called Quick Mode or Phase 2 SA) payload size in KB for P2S client.. * * @return the saDataSizeKilobytes value */ @@ -103,7 +103,7 @@ public int saDataSizeKilobytes() { } /** - * Set the saDataSizeKilobytes value. + * Set the IPSec Security Association (also called Quick Mode or Phase 2 SA) payload size in KB for P2S client.. * * @param saDataSizeKilobytes the saDataSizeKilobytes value to set * @return the VpnClientIPsecParameters object itself. @@ -114,7 +114,7 @@ public VpnClientIPsecParameters withSaDataSizeKilobytes(int saDataSizeKilobytes) } /** - * Get the ipsecEncryption value. + * Get the IPSec encryption algorithm (IKE phase 1). Possible values include: 'None', 'DES', 'DES3', 'AES128', 'AES192', 'AES256', 'GCMAES128', 'GCMAES192', 'GCMAES256'. * * @return the ipsecEncryption value */ @@ -123,7 +123,7 @@ public IpsecEncryption ipsecEncryption() { } /** - * Set the ipsecEncryption value. + * Set the IPSec encryption algorithm (IKE phase 1). Possible values include: 'None', 'DES', 'DES3', 'AES128', 'AES192', 'AES256', 'GCMAES128', 'GCMAES192', 'GCMAES256'. * * @param ipsecEncryption the ipsecEncryption value to set * @return the VpnClientIPsecParameters object itself. @@ -134,7 +134,7 @@ public VpnClientIPsecParameters withIpsecEncryption(IpsecEncryption ipsecEncrypt } /** - * Get the ipsecIntegrity value. + * Get the IPSec integrity algorithm (IKE phase 1). Possible values include: 'MD5', 'SHA1', 'SHA256', 'GCMAES128', 'GCMAES192', 'GCMAES256'. * * @return the ipsecIntegrity value */ @@ -143,7 +143,7 @@ public IpsecIntegrity ipsecIntegrity() { } /** - * Set the ipsecIntegrity value. + * Set the IPSec integrity algorithm (IKE phase 1). Possible values include: 'MD5', 'SHA1', 'SHA256', 'GCMAES128', 'GCMAES192', 'GCMAES256'. * * @param ipsecIntegrity the ipsecIntegrity value to set * @return the VpnClientIPsecParameters object itself. @@ -154,7 +154,7 @@ public VpnClientIPsecParameters withIpsecIntegrity(IpsecIntegrity ipsecIntegrity } /** - * Get the ikeEncryption value. + * Get the IKE encryption algorithm (IKE phase 2). Possible values include: 'DES', 'DES3', 'AES128', 'AES192', 'AES256', 'GCMAES256', 'GCMAES128'. * * @return the ikeEncryption value */ @@ -163,7 +163,7 @@ public IkeEncryption ikeEncryption() { } /** - * Set the ikeEncryption value. + * Set the IKE encryption algorithm (IKE phase 2). Possible values include: 'DES', 'DES3', 'AES128', 'AES192', 'AES256', 'GCMAES256', 'GCMAES128'. * * @param ikeEncryption the ikeEncryption value to set * @return the VpnClientIPsecParameters object itself. @@ -174,7 +174,7 @@ public VpnClientIPsecParameters withIkeEncryption(IkeEncryption ikeEncryption) { } /** - * Get the ikeIntegrity value. + * Get the IKE integrity algorithm (IKE phase 2). Possible values include: 'MD5', 'SHA1', 'SHA256', 'SHA384', 'GCMAES256', 'GCMAES128'. * * @return the ikeIntegrity value */ @@ -183,7 +183,7 @@ public IkeIntegrity ikeIntegrity() { } /** - * Set the ikeIntegrity value. + * Set the IKE integrity algorithm (IKE phase 2). Possible values include: 'MD5', 'SHA1', 'SHA256', 'SHA384', 'GCMAES256', 'GCMAES128'. * * @param ikeIntegrity the ikeIntegrity value to set * @return the VpnClientIPsecParameters object itself. @@ -194,7 +194,7 @@ public VpnClientIPsecParameters withIkeIntegrity(IkeIntegrity ikeIntegrity) { } /** - * Get the dhGroup value. + * Get the DH Groups used in IKE Phase 1 for initial SA. Possible values include: 'None', 'DHGroup1', 'DHGroup2', 'DHGroup14', 'DHGroup2048', 'ECP256', 'ECP384', 'DHGroup24'. * * @return the dhGroup value */ @@ -203,7 +203,7 @@ public DhGroup dhGroup() { } /** - * Set the dhGroup value. + * Set the DH Groups used in IKE Phase 1 for initial SA. Possible values include: 'None', 'DHGroup1', 'DHGroup2', 'DHGroup14', 'DHGroup2048', 'ECP256', 'ECP384', 'DHGroup24'. * * @param dhGroup the dhGroup value to set * @return the VpnClientIPsecParameters object itself. @@ -214,7 +214,7 @@ public VpnClientIPsecParameters withDhGroup(DhGroup dhGroup) { } /** - * Get the pfsGroup value. + * Get the Pfs Groups used in IKE Phase 2 for new child SA. Possible values include: 'None', 'PFS1', 'PFS2', 'PFS2048', 'ECP256', 'ECP384', 'PFS24', 'PFS14', 'PFSMM'. * * @return the pfsGroup value */ @@ -223,7 +223,7 @@ public PfsGroup pfsGroup() { } /** - * Set the pfsGroup value. + * Set the Pfs Groups used in IKE Phase 2 for new child SA. Possible values include: 'None', 'PFS1', 'PFS2', 'PFS2048', 'ECP256', 'ECP384', 'PFS24', 'PFS14', 'PFSMM'. * * @param pfsGroup the pfsGroup value to set * @return the VpnClientIPsecParameters object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/VpnClientParameters.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/VpnClientParameters.java index c0fba85173a..6f1c499240c 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/VpnClientParameters.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/VpnClientParameters.java @@ -46,7 +46,7 @@ public class VpnClientParameters { private List clientRootCertificates; /** - * Get the processorArchitecture value. + * Get vPN client Processor Architecture. Possible values are: 'AMD64' and 'X86'. Possible values include: 'Amd64', 'X86'. * * @return the processorArchitecture value */ @@ -55,7 +55,7 @@ public ProcessorArchitecture processorArchitecture() { } /** - * Set the processorArchitecture value. + * Set vPN client Processor Architecture. Possible values are: 'AMD64' and 'X86'. Possible values include: 'Amd64', 'X86'. * * @param processorArchitecture the processorArchitecture value to set * @return the VpnClientParameters object itself. @@ -66,7 +66,7 @@ public VpnClientParameters withProcessorArchitecture(ProcessorArchitecture proce } /** - * Get the authenticationMethod value. + * Get vPN client Authentication Method. Possible values are: 'EAPTLS' and 'EAPMSCHAPv2'. Possible values include: 'EAPTLS', 'EAPMSCHAPv2'. * * @return the authenticationMethod value */ @@ -75,7 +75,7 @@ public AuthenticationMethod authenticationMethod() { } /** - * Set the authenticationMethod value. + * Set vPN client Authentication Method. Possible values are: 'EAPTLS' and 'EAPMSCHAPv2'. Possible values include: 'EAPTLS', 'EAPMSCHAPv2'. * * @param authenticationMethod the authenticationMethod value to set * @return the VpnClientParameters object itself. @@ -86,7 +86,7 @@ public VpnClientParameters withAuthenticationMethod(AuthenticationMethod authent } /** - * Get the radiusServerAuthCertificate value. + * Get the public certificate data for the radius server authentication certificate as a Base-64 encoded string. Required only if external radius authentication has been configured with EAPTLS authentication. * * @return the radiusServerAuthCertificate value */ @@ -95,7 +95,7 @@ public String radiusServerAuthCertificate() { } /** - * Set the radiusServerAuthCertificate value. + * Set the public certificate data for the radius server authentication certificate as a Base-64 encoded string. Required only if external radius authentication has been configured with EAPTLS authentication. * * @param radiusServerAuthCertificate the radiusServerAuthCertificate value to set * @return the VpnClientParameters object itself. @@ -106,7 +106,7 @@ public VpnClientParameters withRadiusServerAuthCertificate(String radiusServerAu } /** - * Get the clientRootCertificates value. + * Get a list of client root certificates public certificate data encoded as Base-64 strings. Optional parameter for external radius based authentication with EAPTLS. * * @return the clientRootCertificates value */ @@ -115,7 +115,7 @@ public List clientRootCertificates() { } /** - * Set the clientRootCertificates value. + * Set a list of client root certificates public certificate data encoded as Base-64 strings. Optional parameter for external radius based authentication with EAPTLS. * * @param clientRootCertificates the clientRootCertificates value to set * @return the VpnClientParameters object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/VpnConnectionStatus.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/VpnConnectionStatus.java new file mode 100644 index 00000000000..6e263891436 --- /dev/null +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/VpnConnectionStatus.java @@ -0,0 +1,47 @@ +/** + * 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. + */ + +package com.microsoft.azure.management.network; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for VpnConnectionStatus. + */ +public final class VpnConnectionStatus extends ExpandableStringEnum { + /** Static value Unknown for VpnConnectionStatus. */ + public static final VpnConnectionStatus UNKNOWN = fromString("Unknown"); + + /** Static value Connecting for VpnConnectionStatus. */ + public static final VpnConnectionStatus CONNECTING = fromString("Connecting"); + + /** Static value Connected for VpnConnectionStatus. */ + public static final VpnConnectionStatus CONNECTED = fromString("Connected"); + + /** Static value NotConnected for VpnConnectionStatus. */ + public static final VpnConnectionStatus NOT_CONNECTED = fromString("NotConnected"); + + /** + * Creates or finds a VpnConnectionStatus from its string representation. + * @param name a name to look for + * @return the corresponding VpnConnectionStatus + */ + @JsonCreator + public static VpnConnectionStatus fromString(String name) { + return fromString(name, VpnConnectionStatus.class); + } + + /** + * @return known VpnConnectionStatus values + */ + public static Collection values() { + return values(VpnConnectionStatus.class); + } +} diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/VpnDeviceScriptParameters.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/VpnDeviceScriptParameters.java index 2353c4cebdb..8abab5b27cc 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/VpnDeviceScriptParameters.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/VpnDeviceScriptParameters.java @@ -33,7 +33,7 @@ public class VpnDeviceScriptParameters { private String firmwareVersion; /** - * Get the vendor value. + * Get the vendor for the vpn device. * * @return the vendor value */ @@ -42,7 +42,7 @@ public String vendor() { } /** - * Set the vendor value. + * Set the vendor for the vpn device. * * @param vendor the vendor value to set * @return the VpnDeviceScriptParameters object itself. @@ -53,7 +53,7 @@ public VpnDeviceScriptParameters withVendor(String vendor) { } /** - * Get the deviceFamily value. + * Get the device family for the vpn device. * * @return the deviceFamily value */ @@ -62,7 +62,7 @@ public String deviceFamily() { } /** - * Set the deviceFamily value. + * Set the device family for the vpn device. * * @param deviceFamily the deviceFamily value to set * @return the VpnDeviceScriptParameters object itself. @@ -73,7 +73,7 @@ public VpnDeviceScriptParameters withDeviceFamily(String deviceFamily) { } /** - * Get the firmwareVersion value. + * Get the firmware version for the vpn device. * * @return the firmwareVersion value */ @@ -82,7 +82,7 @@ public String firmwareVersion() { } /** - * Set the firmwareVersion value. + * Set the firmware version for the vpn device. * * @param firmwareVersion the firmwareVersion value to set * @return the VpnDeviceScriptParameters object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/VpnSiteId.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/VpnSiteId.java new file mode 100644 index 00000000000..dc8434be6e6 --- /dev/null +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/VpnSiteId.java @@ -0,0 +1,32 @@ +/** + * 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. + */ + +package com.microsoft.azure.management.network; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * VpnSite Resource. + */ +public class VpnSiteId { + /** + * The resource-uri of the vpn-site for which config is to be fetched. + */ + @JsonProperty(value = "vpnSite", access = JsonProperty.Access.WRITE_ONLY) + private String vpnSite; + + /** + * Get the resource-uri of the vpn-site for which config is to be fetched. + * + * @return the vpnSite value + */ + public String vpnSite() { + return this.vpnSite; + } + +} diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ApplicationGatewayAuthenticationCertificateInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ApplicationGatewayAuthenticationCertificateInner.java index f0c2d5b9d23..f5263c9069a 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ApplicationGatewayAuthenticationCertificateInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ApplicationGatewayAuthenticationCertificateInner.java @@ -50,7 +50,7 @@ public class ApplicationGatewayAuthenticationCertificateInner extends SubResourc private String type; /** - * Get the data value. + * Get certificate public data. * * @return the data value */ @@ -59,7 +59,7 @@ public String data() { } /** - * Set the data value. + * Set certificate public data. * * @param data the data value to set * @return the ApplicationGatewayAuthenticationCertificateInner object itself. @@ -70,7 +70,7 @@ public ApplicationGatewayAuthenticationCertificateInner withData(String data) { } /** - * Get the provisioningState value. + * Get provisioning state of the authentication certificate resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @return the provisioningState value */ @@ -79,7 +79,7 @@ public String provisioningState() { } /** - * Set the provisioningState value. + * Set provisioning state of the authentication certificate resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @param provisioningState the provisioningState value to set * @return the ApplicationGatewayAuthenticationCertificateInner object itself. @@ -90,7 +90,7 @@ public ApplicationGatewayAuthenticationCertificateInner withProvisioningState(St } /** - * Get the name value. + * Get name of the authentication certificate that is unique within an Application Gateway. * * @return the name value */ @@ -99,7 +99,7 @@ public String name() { } /** - * Set the name value. + * Set name of the authentication certificate that is unique within an Application Gateway. * * @param name the name value to set * @return the ApplicationGatewayAuthenticationCertificateInner object itself. @@ -110,7 +110,7 @@ public ApplicationGatewayAuthenticationCertificateInner withName(String name) { } /** - * Get the etag value. + * Get a unique read-only string that changes whenever the resource is updated. * * @return the etag value */ @@ -119,7 +119,7 @@ public String etag() { } /** - * Set the etag value. + * Set a unique read-only string that changes whenever the resource is updated. * * @param etag the etag value to set * @return the ApplicationGatewayAuthenticationCertificateInner object itself. @@ -130,7 +130,7 @@ public ApplicationGatewayAuthenticationCertificateInner withEtag(String etag) { } /** - * Get the type value. + * Get type of the resource. * * @return the type value */ @@ -139,7 +139,7 @@ public String type() { } /** - * Set the type value. + * Set type of the resource. * * @param type the type value to set * @return the ApplicationGatewayAuthenticationCertificateInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ApplicationGatewayAvailableSslOptionsInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ApplicationGatewayAvailableSslOptionsInner.java index 8dcbff3dc4f..20eb1de3aa8 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ApplicationGatewayAvailableSslOptionsInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ApplicationGatewayAvailableSslOptionsInner.java @@ -57,7 +57,7 @@ public class ApplicationGatewayAvailableSslOptionsInner extends Resource { private String id; /** - * Get the predefinedPolicies value. + * Get list of available Ssl predefined policy. * * @return the predefinedPolicies value */ @@ -66,7 +66,7 @@ public List predefinedPolicies() { } /** - * Set the predefinedPolicies value. + * Set list of available Ssl predefined policy. * * @param predefinedPolicies the predefinedPolicies value to set * @return the ApplicationGatewayAvailableSslOptionsInner object itself. @@ -77,7 +77,7 @@ public ApplicationGatewayAvailableSslOptionsInner withPredefinedPolicies(List availableCipherSuites() { } /** - * Set the availableCipherSuites value. + * Set list of available Ssl cipher suites. * * @param availableCipherSuites the availableCipherSuites value to set * @return the ApplicationGatewayAvailableSslOptionsInner object itself. @@ -117,7 +117,7 @@ public ApplicationGatewayAvailableSslOptionsInner withAvailableCipherSuites(List } /** - * Get the availableProtocols value. + * Get list of available Ssl protocols. * * @return the availableProtocols value */ @@ -126,7 +126,7 @@ public List availableProtocols() { } /** - * Set the availableProtocols value. + * Set list of available Ssl protocols. * * @param availableProtocols the availableProtocols value to set * @return the ApplicationGatewayAvailableSslOptionsInner object itself. @@ -137,7 +137,7 @@ public ApplicationGatewayAvailableSslOptionsInner withAvailableProtocols(List value; /** - * Get the value value. + * Get the list of application gateway rule sets. * * @return the value value */ @@ -31,7 +31,7 @@ public List value() { } /** - * Set the value value. + * Set the list of application gateway rule sets. * * @param value the value value to set * @return the ApplicationGatewayAvailableWafRuleSetsResultInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ApplicationGatewayBackendAddressPoolInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ApplicationGatewayBackendAddressPoolInner.java index 1764697186b..54fbd06388b 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ApplicationGatewayBackendAddressPoolInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ApplicationGatewayBackendAddressPoolInner.java @@ -58,7 +58,7 @@ public class ApplicationGatewayBackendAddressPoolInner extends SubResource { private String type; /** - * Get the backendIPConfigurations value. + * Get collection of references to IPs defined in network interfaces. * * @return the backendIPConfigurations value */ @@ -67,7 +67,7 @@ public List backendIPConfigurations() { } /** - * Set the backendIPConfigurations value. + * Set collection of references to IPs defined in network interfaces. * * @param backendIPConfigurations the backendIPConfigurations value to set * @return the ApplicationGatewayBackendAddressPoolInner object itself. @@ -78,7 +78,7 @@ public ApplicationGatewayBackendAddressPoolInner withBackendIPConfigurations(Lis } /** - * Get the backendAddresses value. + * Get backend addresses. * * @return the backendAddresses value */ @@ -87,7 +87,7 @@ public List backendAddresses() { } /** - * Set the backendAddresses value. + * Set backend addresses. * * @param backendAddresses the backendAddresses value to set * @return the ApplicationGatewayBackendAddressPoolInner object itself. @@ -98,7 +98,7 @@ public ApplicationGatewayBackendAddressPoolInner withBackendAddresses(List authenticationCertificates() { } /** - * Set the authenticationCertificates value. + * Set array of references to application gateway authentication certificates. * * @param authenticationCertificates the authenticationCertificates value to set * @return the ApplicationGatewayBackendHttpSettingsInner object itself. @@ -245,7 +245,7 @@ public ApplicationGatewayBackendHttpSettingsInner withAuthenticationCertificates } /** - * Get the connectionDraining value. + * Get connection draining of the backend http settings resource. * * @return the connectionDraining value */ @@ -254,7 +254,7 @@ public ApplicationGatewayConnectionDraining connectionDraining() { } /** - * Set the connectionDraining value. + * Set connection draining of the backend http settings resource. * * @param connectionDraining the connectionDraining value to set * @return the ApplicationGatewayBackendHttpSettingsInner object itself. @@ -265,7 +265,7 @@ public ApplicationGatewayBackendHttpSettingsInner withConnectionDraining(Applica } /** - * Get the hostName value. + * Get host header to be sent to the backend servers. * * @return the hostName value */ @@ -274,7 +274,7 @@ public String hostName() { } /** - * Set the hostName value. + * Set host header to be sent to the backend servers. * * @param hostName the hostName value to set * @return the ApplicationGatewayBackendHttpSettingsInner object itself. @@ -285,7 +285,7 @@ public ApplicationGatewayBackendHttpSettingsInner withHostName(String hostName) } /** - * Get the pickHostNameFromBackendAddress value. + * Get whether to pick host header should be picked from the host name of the backend server. Default value is false. * * @return the pickHostNameFromBackendAddress value */ @@ -294,7 +294,7 @@ public Boolean pickHostNameFromBackendAddress() { } /** - * Set the pickHostNameFromBackendAddress value. + * Set whether to pick host header should be picked from the host name of the backend server. Default value is false. * * @param pickHostNameFromBackendAddress the pickHostNameFromBackendAddress value to set * @return the ApplicationGatewayBackendHttpSettingsInner object itself. @@ -305,7 +305,7 @@ public ApplicationGatewayBackendHttpSettingsInner withPickHostNameFromBackendAdd } /** - * Get the affinityCookieName value. + * Get cookie name to use for the affinity cookie. * * @return the affinityCookieName value */ @@ -314,7 +314,7 @@ public String affinityCookieName() { } /** - * Set the affinityCookieName value. + * Set cookie name to use for the affinity cookie. * * @param affinityCookieName the affinityCookieName value to set * @return the ApplicationGatewayBackendHttpSettingsInner object itself. @@ -325,7 +325,7 @@ public ApplicationGatewayBackendHttpSettingsInner withAffinityCookieName(String } /** - * Get the probeEnabled value. + * Get whether the probe is enabled. Default value is false. * * @return the probeEnabled value */ @@ -334,7 +334,7 @@ public Boolean probeEnabled() { } /** - * Set the probeEnabled value. + * Set whether the probe is enabled. Default value is false. * * @param probeEnabled the probeEnabled value to set * @return the ApplicationGatewayBackendHttpSettingsInner object itself. @@ -345,7 +345,7 @@ public ApplicationGatewayBackendHttpSettingsInner withProbeEnabled(Boolean probe } /** - * Get the path value. + * Get path which should be used as a prefix for all HTTP requests. Null means no path will be prefixed. Default value is null. * * @return the path value */ @@ -354,7 +354,7 @@ public String path() { } /** - * Set the path value. + * Set path which should be used as a prefix for all HTTP requests. Null means no path will be prefixed. Default value is null. * * @param path the path value to set * @return the ApplicationGatewayBackendHttpSettingsInner object itself. @@ -365,7 +365,7 @@ public ApplicationGatewayBackendHttpSettingsInner withPath(String path) { } /** - * Get the provisioningState value. + * Get provisioning state of the backend http settings resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @return the provisioningState value */ @@ -374,7 +374,7 @@ public String provisioningState() { } /** - * Set the provisioningState value. + * Set provisioning state of the backend http settings resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @param provisioningState the provisioningState value to set * @return the ApplicationGatewayBackendHttpSettingsInner object itself. @@ -385,7 +385,7 @@ public ApplicationGatewayBackendHttpSettingsInner withProvisioningState(String p } /** - * Get the name value. + * Get name of the backend http settings that is unique within an Application Gateway. * * @return the name value */ @@ -394,7 +394,7 @@ public String name() { } /** - * Set the name value. + * Set name of the backend http settings that is unique within an Application Gateway. * * @param name the name value to set * @return the ApplicationGatewayBackendHttpSettingsInner object itself. @@ -405,7 +405,7 @@ public ApplicationGatewayBackendHttpSettingsInner withName(String name) { } /** - * Get the etag value. + * Get a unique read-only string that changes whenever the resource is updated. * * @return the etag value */ @@ -414,7 +414,7 @@ public String etag() { } /** - * Set the etag value. + * Set a unique read-only string that changes whenever the resource is updated. * * @param etag the etag value to set * @return the ApplicationGatewayBackendHttpSettingsInner object itself. @@ -425,7 +425,7 @@ public ApplicationGatewayBackendHttpSettingsInner withEtag(String etag) { } /** - * Get the type value. + * Get type of the resource. * * @return the type value */ @@ -434,7 +434,7 @@ public String type() { } /** - * Set the type value. + * Set type of the resource. * * @param type the type value to set * @return the ApplicationGatewayBackendHttpSettingsInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ApplicationGatewayFirewallRuleSetInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ApplicationGatewayFirewallRuleSetInner.java index f74ced2a9f1..656a94d53bb 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ApplicationGatewayFirewallRuleSetInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ApplicationGatewayFirewallRuleSetInner.java @@ -52,7 +52,7 @@ public class ApplicationGatewayFirewallRuleSetInner extends Resource { private String id; /** - * Get the provisioningState value. + * Get the provisioning state of the web application firewall rule set. * * @return the provisioningState value */ @@ -61,7 +61,7 @@ public String provisioningState() { } /** - * Set the provisioningState value. + * Set the provisioning state of the web application firewall rule set. * * @param provisioningState the provisioningState value to set * @return the ApplicationGatewayFirewallRuleSetInner object itself. @@ -72,7 +72,7 @@ public ApplicationGatewayFirewallRuleSetInner withProvisioningState(String provi } /** - * Get the ruleSetType value. + * Get the type of the web application firewall rule set. * * @return the ruleSetType value */ @@ -81,7 +81,7 @@ public String ruleSetType() { } /** - * Set the ruleSetType value. + * Set the type of the web application firewall rule set. * * @param ruleSetType the ruleSetType value to set * @return the ApplicationGatewayFirewallRuleSetInner object itself. @@ -92,7 +92,7 @@ public ApplicationGatewayFirewallRuleSetInner withRuleSetType(String ruleSetType } /** - * Get the ruleSetVersion value. + * Get the version of the web application firewall rule set type. * * @return the ruleSetVersion value */ @@ -101,7 +101,7 @@ public String ruleSetVersion() { } /** - * Set the ruleSetVersion value. + * Set the version of the web application firewall rule set type. * * @param ruleSetVersion the ruleSetVersion value to set * @return the ApplicationGatewayFirewallRuleSetInner object itself. @@ -112,7 +112,7 @@ public ApplicationGatewayFirewallRuleSetInner withRuleSetVersion(String ruleSetV } /** - * Get the ruleGroups value. + * Get the rule groups of the web application firewall rule set. * * @return the ruleGroups value */ @@ -121,7 +121,7 @@ public List ruleGroups() { } /** - * Set the ruleGroups value. + * Set the rule groups of the web application firewall rule set. * * @param ruleGroups the ruleGroups value to set * @return the ApplicationGatewayFirewallRuleSetInner object itself. @@ -132,7 +132,7 @@ public ApplicationGatewayFirewallRuleSetInner withRuleGroups(List zones; + /** * Resource ID. */ @@ -153,7 +167,7 @@ public class ApplicationGatewayInner extends Resource { private String id; /** - * Get the sku value. + * Get sKU of the application gateway resource. * * @return the sku value */ @@ -162,7 +176,7 @@ public ApplicationGatewaySku sku() { } /** - * Set the sku value. + * Set sKU of the application gateway resource. * * @param sku the sku value to set * @return the ApplicationGatewayInner object itself. @@ -173,7 +187,7 @@ public ApplicationGatewayInner withSku(ApplicationGatewaySku sku) { } /** - * Get the sslPolicy value. + * Get sSL policy of the application gateway resource. * * @return the sslPolicy value */ @@ -182,7 +196,7 @@ public ApplicationGatewaySslPolicy sslPolicy() { } /** - * Set the sslPolicy value. + * Set sSL policy of the application gateway resource. * * @param sslPolicy the sslPolicy value to set * @return the ApplicationGatewayInner object itself. @@ -193,7 +207,7 @@ public ApplicationGatewayInner withSslPolicy(ApplicationGatewaySslPolicy sslPoli } /** - * Get the operationalState value. + * Get operational state of the application gateway resource. Possible values include: 'Stopped', 'Starting', 'Running', 'Stopping'. * * @return the operationalState value */ @@ -202,7 +216,7 @@ public ApplicationGatewayOperationalState operationalState() { } /** - * Get the gatewayIPConfigurations value. + * Get subnets of application the gateway resource. * * @return the gatewayIPConfigurations value */ @@ -211,7 +225,7 @@ public List gatewayIPConfigurations() { } /** - * Set the gatewayIPConfigurations value. + * Set subnets of application the gateway resource. * * @param gatewayIPConfigurations the gatewayIPConfigurations value to set * @return the ApplicationGatewayInner object itself. @@ -222,7 +236,7 @@ public ApplicationGatewayInner withGatewayIPConfigurations(List authenticationCert } /** - * Set the authenticationCertificates value. + * Set authentication certificates of the application gateway resource. * * @param authenticationCertificates the authenticationCertificates value to set * @return the ApplicationGatewayInner object itself. @@ -242,7 +256,7 @@ public ApplicationGatewayInner withAuthenticationCertificates(List sslCertificates() { } /** - * Set the sslCertificates value. + * Set sSL certificates of the application gateway resource. * * @param sslCertificates the sslCertificates value to set * @return the ApplicationGatewayInner object itself. @@ -262,7 +276,7 @@ public ApplicationGatewayInner withSslCertificates(List frontendIPConfigurat } /** - * Set the frontendIPConfigurations value. + * Set frontend IP addresses of the application gateway resource. * * @param frontendIPConfigurations the frontendIPConfigurations value to set * @return the ApplicationGatewayInner object itself. @@ -282,7 +296,7 @@ public ApplicationGatewayInner withFrontendIPConfigurations(List frontendPorts() { } /** - * Set the frontendPorts value. + * Set frontend ports of the application gateway resource. * * @param frontendPorts the frontendPorts value to set * @return the ApplicationGatewayInner object itself. @@ -302,7 +316,7 @@ public ApplicationGatewayInner withFrontendPorts(List probes() { } /** - * Set the probes value. + * Set probes of the application gateway resource. * * @param probes the probes value to set * @return the ApplicationGatewayInner object itself. @@ -322,7 +336,7 @@ public ApplicationGatewayInner withProbes(List pro } /** - * Get the backendAddressPools value. + * Get backend address pool of the application gateway resource. * * @return the backendAddressPools value */ @@ -331,7 +345,7 @@ public List backendAddressPools() { } /** - * Set the backendAddressPools value. + * Set backend address pool of the application gateway resource. * * @param backendAddressPools the backendAddressPools value to set * @return the ApplicationGatewayInner object itself. @@ -342,7 +356,7 @@ public ApplicationGatewayInner withBackendAddressPools(List backendHttpSettingsColle } /** - * Set the backendHttpSettingsCollection value. + * Set backend http settings of the application gateway resource. * * @param backendHttpSettingsCollection the backendHttpSettingsCollection value to set * @return the ApplicationGatewayInner object itself. @@ -362,7 +376,7 @@ public ApplicationGatewayInner withBackendHttpSettingsCollection(List httpListeners() { } /** - * Set the httpListeners value. + * Set http listeners of the application gateway resource. * * @param httpListeners the httpListeners value to set * @return the ApplicationGatewayInner object itself. @@ -382,7 +396,7 @@ public ApplicationGatewayInner withHttpListeners(List urlPathMaps() { } /** - * Set the urlPathMaps value. + * Set uRL path map of the application gateway resource. * * @param urlPathMaps the urlPathMaps value to set * @return the ApplicationGatewayInner object itself. @@ -402,7 +416,7 @@ public ApplicationGatewayInner withUrlPathMaps(List requestRoutingRules() { } /** - * Set the requestRoutingRules value. + * Set request routing rules of the application gateway resource. * * @param requestRoutingRules the requestRoutingRules value to set * @return the ApplicationGatewayInner object itself. @@ -422,7 +436,7 @@ public ApplicationGatewayInner withRequestRoutingRules(List redirectConfigurations } /** - * Set the redirectConfigurations value. + * Set redirect configurations of the application gateway resource. * * @param redirectConfigurations the redirectConfigurations value to set * @return the ApplicationGatewayInner object itself. @@ -442,7 +456,7 @@ public ApplicationGatewayInner withRedirectConfigurations(List zones() { + return this.zones; + } + + /** + * Set a list of availability zones denoting where the resource needs to come from. + * + * @param zones the zones value to set + * @return the ApplicationGatewayInner object itself. + */ + public ApplicationGatewayInner withZones(List zones) { + this.zones = zones; + return this; + } + + /** + * Get resource ID. * * @return the id value */ @@ -551,7 +605,7 @@ public String id() { } /** - * Set the id value. + * Set resource ID. * * @param id the id value to set * @return the ApplicationGatewayInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ApplicationGatewayPathRuleInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ApplicationGatewayPathRuleInner.java index 4aed6c715e5..9283ae8e971 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ApplicationGatewayPathRuleInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ApplicationGatewayPathRuleInner.java @@ -68,7 +68,7 @@ public class ApplicationGatewayPathRuleInner extends SubResource { private String type; /** - * Get the paths value. + * Get path rules of URL path map. * * @return the paths value */ @@ -77,7 +77,7 @@ public List paths() { } /** - * Set the paths value. + * Set path rules of URL path map. * * @param paths the paths value to set * @return the ApplicationGatewayPathRuleInner object itself. @@ -88,7 +88,7 @@ public ApplicationGatewayPathRuleInner withPaths(List paths) { } /** - * Get the backendAddressPool value. + * Get backend address pool resource of URL path map path rule. * * @return the backendAddressPool value */ @@ -97,7 +97,7 @@ public SubResource backendAddressPool() { } /** - * Set the backendAddressPool value. + * Set backend address pool resource of URL path map path rule. * * @param backendAddressPool the backendAddressPool value to set * @return the ApplicationGatewayPathRuleInner object itself. @@ -108,7 +108,7 @@ public ApplicationGatewayPathRuleInner withBackendAddressPool(SubResource backen } /** - * Get the backendHttpSettings value. + * Get backend http settings resource of URL path map path rule. * * @return the backendHttpSettings value */ @@ -117,7 +117,7 @@ public SubResource backendHttpSettings() { } /** - * Set the backendHttpSettings value. + * Set backend http settings resource of URL path map path rule. * * @param backendHttpSettings the backendHttpSettings value to set * @return the ApplicationGatewayPathRuleInner object itself. @@ -128,7 +128,7 @@ public ApplicationGatewayPathRuleInner withBackendHttpSettings(SubResource backe } /** - * Get the redirectConfiguration value. + * Get redirect configuration resource of URL path map path rule. * * @return the redirectConfiguration value */ @@ -137,7 +137,7 @@ public SubResource redirectConfiguration() { } /** - * Set the redirectConfiguration value. + * Set redirect configuration resource of URL path map path rule. * * @param redirectConfiguration the redirectConfiguration value to set * @return the ApplicationGatewayPathRuleInner object itself. @@ -148,7 +148,7 @@ public ApplicationGatewayPathRuleInner withRedirectConfiguration(SubResource red } /** - * Get the provisioningState value. + * Get path rule of URL path map resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @return the provisioningState value */ @@ -157,7 +157,7 @@ public String provisioningState() { } /** - * Set the provisioningState value. + * Set path rule of URL path map resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @param provisioningState the provisioningState value to set * @return the ApplicationGatewayPathRuleInner object itself. @@ -168,7 +168,7 @@ public ApplicationGatewayPathRuleInner withProvisioningState(String provisioning } /** - * Get the name value. + * Get name of the path rule that is unique within an Application Gateway. * * @return the name value */ @@ -177,7 +177,7 @@ public String name() { } /** - * Set the name value. + * Set name of the path rule that is unique within an Application Gateway. * * @param name the name value to set * @return the ApplicationGatewayPathRuleInner object itself. @@ -188,7 +188,7 @@ public ApplicationGatewayPathRuleInner withName(String name) { } /** - * Get the etag value. + * Get a unique read-only string that changes whenever the resource is updated. * * @return the etag value */ @@ -197,7 +197,7 @@ public String etag() { } /** - * Set the etag value. + * Set a unique read-only string that changes whenever the resource is updated. * * @param etag the etag value to set * @return the ApplicationGatewayPathRuleInner object itself. @@ -208,7 +208,7 @@ public ApplicationGatewayPathRuleInner withEtag(String etag) { } /** - * Get the type value. + * Get type of the resource. * * @return the type value */ @@ -217,7 +217,7 @@ public String type() { } /** - * Set the type value. + * Set type of the resource. * * @param type the type value to set * @return the ApplicationGatewayPathRuleInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ApplicationGatewayProbeInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ApplicationGatewayProbeInner.java index 1fabfc527ec..4a47fcc5453 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ApplicationGatewayProbeInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ApplicationGatewayProbeInner.java @@ -109,7 +109,7 @@ public class ApplicationGatewayProbeInner extends SubResource { private String type; /** - * Get the protocol value. + * Get the protocol used for the probe. Possible values are 'Http' and 'Https'. Possible values include: 'Http', 'Https'. * * @return the protocol value */ @@ -118,7 +118,7 @@ public ApplicationGatewayProtocol protocol() { } /** - * Set the protocol value. + * Set the protocol used for the probe. Possible values are 'Http' and 'Https'. Possible values include: 'Http', 'Https'. * * @param protocol the protocol value to set * @return the ApplicationGatewayProbeInner object itself. @@ -129,7 +129,7 @@ public ApplicationGatewayProbeInner withProtocol(ApplicationGatewayProtocol prot } /** - * Get the host value. + * Get host name to send the probe to. * * @return the host value */ @@ -138,7 +138,7 @@ public String host() { } /** - * Set the host value. + * Set host name to send the probe to. * * @param host the host value to set * @return the ApplicationGatewayProbeInner object itself. @@ -149,7 +149,7 @@ public ApplicationGatewayProbeInner withHost(String host) { } /** - * Get the path value. + * Get relative path of probe. Valid path starts from '/'. Probe is sent to <Protocol>://<host>:<port><path>. * * @return the path value */ @@ -158,7 +158,7 @@ public String path() { } /** - * Set the path value. + * Set relative path of probe. Valid path starts from '/'. Probe is sent to <Protocol>://<host>:<port><path>. * * @param path the path value to set * @return the ApplicationGatewayProbeInner object itself. @@ -169,7 +169,7 @@ public ApplicationGatewayProbeInner withPath(String path) { } /** - * Get the interval value. + * Get the probing interval in seconds. This is the time interval between two consecutive probes. Acceptable values are from 1 second to 86400 seconds. * * @return the interval value */ @@ -178,7 +178,7 @@ public Integer interval() { } /** - * Set the interval value. + * Set the probing interval in seconds. This is the time interval between two consecutive probes. Acceptable values are from 1 second to 86400 seconds. * * @param interval the interval value to set * @return the ApplicationGatewayProbeInner object itself. @@ -189,7 +189,7 @@ public ApplicationGatewayProbeInner withInterval(Integer interval) { } /** - * Get the timeout value. + * Get the probe timeout in seconds. Probe marked as failed if valid response is not received with this timeout period. Acceptable values are from 1 second to 86400 seconds. * * @return the timeout value */ @@ -198,7 +198,7 @@ public Integer timeout() { } /** - * Set the timeout value. + * Set the probe timeout in seconds. Probe marked as failed if valid response is not received with this timeout period. Acceptable values are from 1 second to 86400 seconds. * * @param timeout the timeout value to set * @return the ApplicationGatewayProbeInner object itself. @@ -209,7 +209,7 @@ public ApplicationGatewayProbeInner withTimeout(Integer timeout) { } /** - * Get the unhealthyThreshold value. + * Get the probe retry count. Backend server is marked down after consecutive probe failure count reaches UnhealthyThreshold. Acceptable values are from 1 second to 20. * * @return the unhealthyThreshold value */ @@ -218,7 +218,7 @@ public Integer unhealthyThreshold() { } /** - * Set the unhealthyThreshold value. + * Set the probe retry count. Backend server is marked down after consecutive probe failure count reaches UnhealthyThreshold. Acceptable values are from 1 second to 20. * * @param unhealthyThreshold the unhealthyThreshold value to set * @return the ApplicationGatewayProbeInner object itself. @@ -229,7 +229,7 @@ public ApplicationGatewayProbeInner withUnhealthyThreshold(Integer unhealthyThre } /** - * Get the pickHostNameFromBackendHttpSettings value. + * Get whether the host header should be picked from the backend http settings. Default value is false. * * @return the pickHostNameFromBackendHttpSettings value */ @@ -238,7 +238,7 @@ public Boolean pickHostNameFromBackendHttpSettings() { } /** - * Set the pickHostNameFromBackendHttpSettings value. + * Set whether the host header should be picked from the backend http settings. Default value is false. * * @param pickHostNameFromBackendHttpSettings the pickHostNameFromBackendHttpSettings value to set * @return the ApplicationGatewayProbeInner object itself. @@ -249,7 +249,7 @@ public ApplicationGatewayProbeInner withPickHostNameFromBackendHttpSettings(Bool } /** - * Get the minServers value. + * Get minimum number of servers that are always marked healthy. Default value is 0. * * @return the minServers value */ @@ -258,7 +258,7 @@ public Integer minServers() { } /** - * Set the minServers value. + * Set minimum number of servers that are always marked healthy. Default value is 0. * * @param minServers the minServers value to set * @return the ApplicationGatewayProbeInner object itself. @@ -269,7 +269,7 @@ public ApplicationGatewayProbeInner withMinServers(Integer minServers) { } /** - * Get the match value. + * Get criterion for classifying a healthy probe response. * * @return the match value */ @@ -278,7 +278,7 @@ public ApplicationGatewayProbeHealthResponseMatch match() { } /** - * Set the match value. + * Set criterion for classifying a healthy probe response. * * @param match the match value to set * @return the ApplicationGatewayProbeInner object itself. @@ -289,7 +289,7 @@ public ApplicationGatewayProbeInner withMatch(ApplicationGatewayProbeHealthRespo } /** - * Get the provisioningState value. + * Get provisioning state of the backend http settings resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @return the provisioningState value */ @@ -298,7 +298,7 @@ public String provisioningState() { } /** - * Set the provisioningState value. + * Set provisioning state of the backend http settings resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @param provisioningState the provisioningState value to set * @return the ApplicationGatewayProbeInner object itself. @@ -309,7 +309,7 @@ public ApplicationGatewayProbeInner withProvisioningState(String provisioningSta } /** - * Get the name value. + * Get name of the probe that is unique within an Application Gateway. * * @return the name value */ @@ -318,7 +318,7 @@ public String name() { } /** - * Set the name value. + * Set name of the probe that is unique within an Application Gateway. * * @param name the name value to set * @return the ApplicationGatewayProbeInner object itself. @@ -329,7 +329,7 @@ public ApplicationGatewayProbeInner withName(String name) { } /** - * Get the etag value. + * Get a unique read-only string that changes whenever the resource is updated. * * @return the etag value */ @@ -338,7 +338,7 @@ public String etag() { } /** - * Set the etag value. + * Set a unique read-only string that changes whenever the resource is updated. * * @param etag the etag value to set * @return the ApplicationGatewayProbeInner object itself. @@ -349,7 +349,7 @@ public ApplicationGatewayProbeInner withEtag(String etag) { } /** - * Get the type value. + * Get type of the resource. * * @return the type value */ @@ -358,7 +358,7 @@ public String type() { } /** - * Set the type value. + * Set type of the resource. * * @param type the type value to set * @return the ApplicationGatewayProbeInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ApplicationGatewayRedirectConfigurationInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ApplicationGatewayRedirectConfigurationInner.java index 89cebe3bf07..d03f7602526 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ApplicationGatewayRedirectConfigurationInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ApplicationGatewayRedirectConfigurationInner.java @@ -89,7 +89,7 @@ public class ApplicationGatewayRedirectConfigurationInner extends SubResource { private String type; /** - * Get the redirectType value. + * Get supported http redirection types - Permanent, Temporary, Found, SeeOther. Possible values include: 'Permanent', 'Found', 'SeeOther', 'Temporary'. * * @return the redirectType value */ @@ -98,7 +98,7 @@ public ApplicationGatewayRedirectType redirectType() { } /** - * Set the redirectType value. + * Set supported http redirection types - Permanent, Temporary, Found, SeeOther. Possible values include: 'Permanent', 'Found', 'SeeOther', 'Temporary'. * * @param redirectType the redirectType value to set * @return the ApplicationGatewayRedirectConfigurationInner object itself. @@ -109,7 +109,7 @@ public ApplicationGatewayRedirectConfigurationInner withRedirectType(Application } /** - * Get the targetListener value. + * Get reference to a listener to redirect the request to. * * @return the targetListener value */ @@ -118,7 +118,7 @@ public SubResource targetListener() { } /** - * Set the targetListener value. + * Set reference to a listener to redirect the request to. * * @param targetListener the targetListener value to set * @return the ApplicationGatewayRedirectConfigurationInner object itself. @@ -129,7 +129,7 @@ public ApplicationGatewayRedirectConfigurationInner withTargetListener(SubResour } /** - * Get the targetUrl value. + * Get url to redirect the request to. * * @return the targetUrl value */ @@ -138,7 +138,7 @@ public String targetUrl() { } /** - * Set the targetUrl value. + * Set url to redirect the request to. * * @param targetUrl the targetUrl value to set * @return the ApplicationGatewayRedirectConfigurationInner object itself. @@ -149,7 +149,7 @@ public ApplicationGatewayRedirectConfigurationInner withTargetUrl(String targetU } /** - * Get the includePath value. + * Get include path in the redirected url. * * @return the includePath value */ @@ -158,7 +158,7 @@ public Boolean includePath() { } /** - * Set the includePath value. + * Set include path in the redirected url. * * @param includePath the includePath value to set * @return the ApplicationGatewayRedirectConfigurationInner object itself. @@ -169,7 +169,7 @@ public ApplicationGatewayRedirectConfigurationInner withIncludePath(Boolean incl } /** - * Get the includeQueryString value. + * Get include query string in the redirected url. * * @return the includeQueryString value */ @@ -178,7 +178,7 @@ public Boolean includeQueryString() { } /** - * Set the includeQueryString value. + * Set include query string in the redirected url. * * @param includeQueryString the includeQueryString value to set * @return the ApplicationGatewayRedirectConfigurationInner object itself. @@ -189,7 +189,7 @@ public ApplicationGatewayRedirectConfigurationInner withIncludeQueryString(Boole } /** - * Get the requestRoutingRules value. + * Get request routing specifying redirect configuration. * * @return the requestRoutingRules value */ @@ -198,7 +198,7 @@ public List requestRoutingRules() { } /** - * Set the requestRoutingRules value. + * Set request routing specifying redirect configuration. * * @param requestRoutingRules the requestRoutingRules value to set * @return the ApplicationGatewayRedirectConfigurationInner object itself. @@ -209,7 +209,7 @@ public ApplicationGatewayRedirectConfigurationInner withRequestRoutingRules(List } /** - * Get the urlPathMaps value. + * Get url path maps specifying default redirect configuration. * * @return the urlPathMaps value */ @@ -218,7 +218,7 @@ public List urlPathMaps() { } /** - * Set the urlPathMaps value. + * Set url path maps specifying default redirect configuration. * * @param urlPathMaps the urlPathMaps value to set * @return the ApplicationGatewayRedirectConfigurationInner object itself. @@ -229,7 +229,7 @@ public ApplicationGatewayRedirectConfigurationInner withUrlPathMaps(List pathRules() { } /** - * Set the pathRules value. + * Set path rules specifying redirect configuration. * * @param pathRules the pathRules value to set * @return the ApplicationGatewayRedirectConfigurationInner object itself. @@ -249,7 +249,7 @@ public ApplicationGatewayRedirectConfigurationInner withPathRules(List cipherSuites() { } /** - * Set the cipherSuites value. + * Set ssl cipher suites to be enabled in the specified order for application gateway. * * @param cipherSuites the cipherSuites value to set * @return the ApplicationGatewaySslPredefinedPolicyInner object itself. @@ -81,7 +81,7 @@ public ApplicationGatewaySslPredefinedPolicyInner withCipherSuites(List pathRules() { } /** - * Set the pathRules value. + * Set path rule of URL path map resource. * * @param pathRules the pathRules value to set * @return the ApplicationGatewayUrlPathMapInner object itself. @@ -149,7 +149,7 @@ public ApplicationGatewayUrlPathMapInner withPathRules(List countries; /** - * Get the countries value. + * Get list of available countries. * * @return the countries value */ @@ -32,7 +32,7 @@ public List countries() { } /** - * Set the countries value. + * Set list of available countries. * * @param countries the countries value to set * @return the AvailableProvidersListInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/AzureReachabilityReportInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/AzureReachabilityReportInner.java index 35d0d33ce38..605a32fca35 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/AzureReachabilityReportInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/AzureReachabilityReportInner.java @@ -37,7 +37,7 @@ public class AzureReachabilityReportInner { private List reachabilityReport; /** - * Get the aggregationLevel value. + * Get the aggregation level of Azure reachability report. Can be Country, State or City. * * @return the aggregationLevel value */ @@ -46,7 +46,7 @@ public String aggregationLevel() { } /** - * Set the aggregationLevel value. + * Set the aggregation level of Azure reachability report. Can be Country, State or City. * * @param aggregationLevel the aggregationLevel value to set * @return the AzureReachabilityReportInner object itself. @@ -77,7 +77,7 @@ public AzureReachabilityReportInner withProviderLocation(AzureReachabilityReport } /** - * Get the reachabilityReport value. + * Get list of Azure reachability report items. * * @return the reachabilityReport value */ @@ -86,7 +86,7 @@ public List reachabilityReport() { } /** - * Set the reachabilityReport value. + * Set list of Azure reachability report items. * * @param reachabilityReport the reachabilityReport value to set * @return the AzureReachabilityReportInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/BackendAddressPoolInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/BackendAddressPoolInner.java index 4b5b262df83..e0a40e5b9f2 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/BackendAddressPoolInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/BackendAddressPoolInner.java @@ -58,7 +58,7 @@ public class BackendAddressPoolInner extends SubResource { private String etag; /** - * Get the backendIPConfigurations value. + * Get gets collection of references to IP addresses defined in network interfaces. * * @return the backendIPConfigurations value */ @@ -67,7 +67,7 @@ public List backendIPConfigurations() { } /** - * Get the loadBalancingRules value. + * Get gets load balancing rules that use this backend address pool. * * @return the loadBalancingRules value */ @@ -76,7 +76,7 @@ public List loadBalancingRules() { } /** - * Get the outboundNatRule value. + * Get gets outbound rules that use this backend address pool. * * @return the outboundNatRule value */ @@ -85,7 +85,7 @@ public SubResource outboundNatRule() { } /** - * Get the provisioningState value. + * Get get provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @return the provisioningState value */ @@ -94,7 +94,7 @@ public String provisioningState() { } /** - * Set the provisioningState value. + * Set get provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @param provisioningState the provisioningState value to set * @return the BackendAddressPoolInner object itself. @@ -105,7 +105,7 @@ public BackendAddressPoolInner withProvisioningState(String provisioningState) { } /** - * Get the name value. + * Get gets name of the resource that is unique within a resource group. This name can be used to access the resource. * * @return the name value */ @@ -114,7 +114,7 @@ public String name() { } /** - * Set the name value. + * Set gets name of the resource that is unique within a resource group. This name can be used to access the resource. * * @param name the name value to set * @return the BackendAddressPoolInner object itself. @@ -125,7 +125,7 @@ public BackendAddressPoolInner withName(String name) { } /** - * Get the etag value. + * Get a unique read-only string that changes whenever the resource is updated. * * @return the etag value */ @@ -134,7 +134,7 @@ public String etag() { } /** - * Set the etag value. + * Set a unique read-only string that changes whenever the resource is updated. * * @param etag the etag value to set * @return the BackendAddressPoolInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/BgpPeerStatusListResultInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/BgpPeerStatusListResultInner.java index ec22fdf9fed..f1dbd8d4b0e 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/BgpPeerStatusListResultInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/BgpPeerStatusListResultInner.java @@ -23,7 +23,7 @@ public class BgpPeerStatusListResultInner { private List value; /** - * Get the value value. + * Get list of BGP peers. * * @return the value value */ @@ -32,7 +32,7 @@ public List value() { } /** - * Set the value value. + * Set list of BGP peers. * * @param value the value value to set * @return the BgpPeerStatusListResultInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/BgpServiceCommunityInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/BgpServiceCommunityInner.java index d12ed0a227d..f927c63f5d5 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/BgpServiceCommunityInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/BgpServiceCommunityInner.java @@ -40,7 +40,7 @@ public class BgpServiceCommunityInner extends Resource { private String id; /** - * Get the serviceName value. + * Get the name of the bgp community. e.g. Skype. * * @return the serviceName value */ @@ -49,7 +49,7 @@ public String serviceName() { } /** - * Set the serviceName value. + * Set the name of the bgp community. e.g. Skype. * * @param serviceName the serviceName value to set * @return the BgpServiceCommunityInner object itself. @@ -60,7 +60,7 @@ public BgpServiceCommunityInner withServiceName(String serviceName) { } /** - * Get the bgpCommunities value. + * Get get a list of bgp communities. * * @return the bgpCommunities value */ @@ -69,7 +69,7 @@ public List bgpCommunities() { } /** - * Set the bgpCommunities value. + * Set get a list of bgp communities. * * @param bgpCommunities the bgpCommunities value to set * @return the BgpServiceCommunityInner object itself. @@ -80,7 +80,7 @@ public BgpServiceCommunityInner withBgpCommunities(List bgpCommuni } /** - * Get the id value. + * Get resource ID. * * @return the id value */ @@ -89,7 +89,7 @@ public String id() { } /** - * Set the id value. + * Set resource ID. * * @param id the id value to set * @return the BgpServiceCommunityInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ConnectionMonitorInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ConnectionMonitorInner.java index a7e5a421440..dd0fd5215c5 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ConnectionMonitorInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ConnectionMonitorInner.java @@ -57,7 +57,7 @@ public class ConnectionMonitorInner { private Integer monitoringIntervalInSeconds; /** - * Get the location value. + * Get connection monitor location. * * @return the location value */ @@ -66,7 +66,7 @@ public String location() { } /** - * Set the location value. + * Set connection monitor location. * * @param location the location value to set * @return the ConnectionMonitorInner object itself. @@ -77,7 +77,7 @@ public ConnectionMonitorInner withLocation(String location) { } /** - * Get the tags value. + * Get connection monitor tags. * * @return the tags value */ @@ -86,7 +86,7 @@ public Map tags() { } /** - * Set the tags value. + * Set connection monitor tags. * * @param tags the tags value to set * @return the ConnectionMonitorInner object itself. @@ -137,7 +137,7 @@ public ConnectionMonitorInner withDestination(ConnectionMonitorDestination desti } /** - * Get the autoStart value. + * Get determines if the connection monitor will start automatically once created. * * @return the autoStart value */ @@ -146,7 +146,7 @@ public Boolean autoStart() { } /** - * Set the autoStart value. + * Set determines if the connection monitor will start automatically once created. * * @param autoStart the autoStart value to set * @return the ConnectionMonitorInner object itself. @@ -157,7 +157,7 @@ public ConnectionMonitorInner withAutoStart(Boolean autoStart) { } /** - * Get the monitoringIntervalInSeconds value. + * Get monitoring interval in seconds. * * @return the monitoringIntervalInSeconds value */ @@ -166,7 +166,7 @@ public Integer monitoringIntervalInSeconds() { } /** - * Set the monitoringIntervalInSeconds value. + * Set monitoring interval in seconds. * * @param monitoringIntervalInSeconds the monitoringIntervalInSeconds value to set * @return the ConnectionMonitorInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ConnectionMonitorQueryResultInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ConnectionMonitorQueryResultInner.java index f9811c3f7aa..eb3eb71ecfc 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ConnectionMonitorQueryResultInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ConnectionMonitorQueryResultInner.java @@ -31,7 +31,7 @@ public class ConnectionMonitorQueryResultInner { private List states; /** - * Get the sourceStatus value. + * Get status of connection monitor source. Possible values include: 'Uknown', 'Active', 'Inactive'. * * @return the sourceStatus value */ @@ -40,7 +40,7 @@ public ConnectionMonitorSourceStatus sourceStatus() { } /** - * Set the sourceStatus value. + * Set status of connection monitor source. Possible values include: 'Uknown', 'Active', 'Inactive'. * * @param sourceStatus the sourceStatus value to set * @return the ConnectionMonitorQueryResultInner object itself. @@ -51,7 +51,7 @@ public ConnectionMonitorQueryResultInner withSourceStatus(ConnectionMonitorSourc } /** - * Get the states value. + * Get information about connection states. * * @return the states value */ @@ -60,7 +60,7 @@ public List states() { } /** - * Set the states value. + * Set information about connection states. * * @param states the states value to set * @return the ConnectionMonitorQueryResultInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ConnectionMonitorResultInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ConnectionMonitorResultInner.java index 42139055d41..c0792a9418e 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ConnectionMonitorResultInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ConnectionMonitorResultInner.java @@ -102,7 +102,7 @@ public class ConnectionMonitorResultInner { private String monitoringStatus; /** - * Get the name value. + * Get name of the connection monitor. * * @return the name value */ @@ -111,7 +111,7 @@ public String name() { } /** - * Get the id value. + * Get iD of the connection monitor. * * @return the id value */ @@ -140,7 +140,7 @@ public ConnectionMonitorResultInner withEtag(String etag) { } /** - * Get the type value. + * Get connection monitor type. * * @return the type value */ @@ -149,7 +149,7 @@ public String type() { } /** - * Get the location value. + * Get connection monitor location. * * @return the location value */ @@ -158,7 +158,7 @@ public String location() { } /** - * Set the location value. + * Set connection monitor location. * * @param location the location value to set * @return the ConnectionMonitorResultInner object itself. @@ -169,7 +169,7 @@ public ConnectionMonitorResultInner withLocation(String location) { } /** - * Get the tags value. + * Get connection monitor tags. * * @return the tags value */ @@ -178,7 +178,7 @@ public Map tags() { } /** - * Set the tags value. + * Set connection monitor tags. * * @param tags the tags value to set * @return the ConnectionMonitorResultInner object itself. @@ -229,7 +229,7 @@ public ConnectionMonitorResultInner withDestination(ConnectionMonitorDestination } /** - * Get the autoStart value. + * Get determines if the connection monitor will start automatically once created. * * @return the autoStart value */ @@ -238,7 +238,7 @@ public Boolean autoStart() { } /** - * Set the autoStart value. + * Set determines if the connection monitor will start automatically once created. * * @param autoStart the autoStart value to set * @return the ConnectionMonitorResultInner object itself. @@ -249,7 +249,7 @@ public ConnectionMonitorResultInner withAutoStart(Boolean autoStart) { } /** - * Get the monitoringIntervalInSeconds value. + * Get monitoring interval in seconds. * * @return the monitoringIntervalInSeconds value */ @@ -258,7 +258,7 @@ public Integer monitoringIntervalInSeconds() { } /** - * Set the monitoringIntervalInSeconds value. + * Set monitoring interval in seconds. * * @param monitoringIntervalInSeconds the monitoringIntervalInSeconds value to set * @return the ConnectionMonitorResultInner object itself. @@ -269,7 +269,7 @@ public ConnectionMonitorResultInner withMonitoringIntervalInSeconds(Integer moni } /** - * Get the provisioningState value. + * Get the provisioning state of the connection monitor. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. * * @return the provisioningState value */ @@ -278,7 +278,7 @@ public ProvisioningState provisioningState() { } /** - * Set the provisioningState value. + * Set the provisioning state of the connection monitor. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. * * @param provisioningState the provisioningState value to set * @return the ConnectionMonitorResultInner object itself. @@ -289,7 +289,7 @@ public ConnectionMonitorResultInner withProvisioningState(ProvisioningState prov } /** - * Get the startTime value. + * Get the date and time when the connection monitor was started. * * @return the startTime value */ @@ -298,7 +298,7 @@ public DateTime startTime() { } /** - * Set the startTime value. + * Set the date and time when the connection monitor was started. * * @param startTime the startTime value to set * @return the ConnectionMonitorResultInner object itself. @@ -309,7 +309,7 @@ public ConnectionMonitorResultInner withStartTime(DateTime startTime) { } /** - * Get the monitoringStatus value. + * Get the monitoring status of the connection monitor. * * @return the monitoringStatus value */ @@ -318,7 +318,7 @@ public String monitoringStatus() { } /** - * Set the monitoringStatus value. + * Set the monitoring status of the connection monitor. * * @param monitoringStatus the monitoringStatus value to set * @return the ConnectionMonitorResultInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ConnectionResetSharedKeyInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ConnectionResetSharedKeyInner.java index ab024d853d9..3a2b6c3d508 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ConnectionResetSharedKeyInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ConnectionResetSharedKeyInner.java @@ -22,7 +22,7 @@ public class ConnectionResetSharedKeyInner { private int keyLength; /** - * Get the keyLength value. + * Get the virtual network connection reset shared key length, should between 1 and 128. * * @return the keyLength value */ @@ -31,7 +31,7 @@ public int keyLength() { } /** - * Set the keyLength value. + * Set the virtual network connection reset shared key length, should between 1 and 128. * * @param keyLength the keyLength value to set * @return the ConnectionResetSharedKeyInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ConnectionSharedKeyInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ConnectionSharedKeyInner.java index ab6767f01c3..c61fe6fde53 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ConnectionSharedKeyInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ConnectionSharedKeyInner.java @@ -21,7 +21,7 @@ public class ConnectionSharedKeyInner { private String value; /** - * Get the value value. + * Get the virtual network connection shared key value. * * @return the value value */ @@ -30,7 +30,7 @@ public String value() { } /** - * Set the value value. + * Set the virtual network connection shared key value. * * @param value the value value to set * @return the ConnectionSharedKeyInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ConnectivityInformationInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ConnectivityInformationInner.java index 681d201b323..521d9c72a92 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ConnectivityInformationInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ConnectivityInformationInner.java @@ -61,7 +61,7 @@ public class ConnectivityInformationInner { private Integer probesFailed; /** - * Get the hops value. + * Get list of hops between the source and the destination. * * @return the hops value */ @@ -70,7 +70,7 @@ public List hops() { } /** - * Get the connectionStatus value. + * Get the connection status. Possible values include: 'Unknown', 'Connected', 'Disconnected', 'Degraded'. * * @return the connectionStatus value */ @@ -79,7 +79,7 @@ public ConnectionStatus connectionStatus() { } /** - * Get the avgLatencyInMs value. + * Get average latency in milliseconds. * * @return the avgLatencyInMs value */ @@ -88,7 +88,7 @@ public Integer avgLatencyInMs() { } /** - * Get the minLatencyInMs value. + * Get minimum latency in milliseconds. * * @return the minLatencyInMs value */ @@ -97,7 +97,7 @@ public Integer minLatencyInMs() { } /** - * Get the maxLatencyInMs value. + * Get maximum latency in milliseconds. * * @return the maxLatencyInMs value */ @@ -106,7 +106,7 @@ public Integer maxLatencyInMs() { } /** - * Get the probesSent value. + * Get total number of probes sent. * * @return the probesSent value */ @@ -115,7 +115,7 @@ public Integer probesSent() { } /** - * Get the probesFailed value. + * Get number of failed probes. * * @return the probesFailed value */ diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/DdosProtectionPlanInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/DdosProtectionPlanInner.java index 126630a932a..f51d71e46d0 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/DdosProtectionPlanInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/DdosProtectionPlanInner.java @@ -78,7 +78,7 @@ public class DdosProtectionPlanInner { private String etag; /** - * Get the id value. + * Get resource ID. * * @return the id value */ @@ -87,7 +87,7 @@ public String id() { } /** - * Get the name value. + * Get resource name. * * @return the name value */ @@ -96,7 +96,7 @@ public String name() { } /** - * Get the type value. + * Get resource type. * * @return the type value */ @@ -105,7 +105,7 @@ public String type() { } /** - * Get the location value. + * Get resource location. * * @return the location value */ @@ -114,7 +114,7 @@ public String location() { } /** - * Set the location value. + * Set resource location. * * @param location the location value to set * @return the DdosProtectionPlanInner object itself. @@ -125,7 +125,7 @@ public DdosProtectionPlanInner withLocation(String location) { } /** - * Get the tags value. + * Get resource tags. * * @return the tags value */ @@ -134,7 +134,7 @@ public Map tags() { } /** - * Set the tags value. + * Set resource tags. * * @param tags the tags value to set * @return the DdosProtectionPlanInner object itself. @@ -145,7 +145,7 @@ public DdosProtectionPlanInner withTags(Map tags) { } /** - * Get the resourceGuid value. + * Get the resource GUID property of the DDoS protection plan resource. It uniquely identifies the resource, even if the user changes its name or migrate the resource across subscriptions or resource groups. * * @return the resourceGuid value */ @@ -154,7 +154,7 @@ public String resourceGuid() { } /** - * Get the provisioningState value. + * Get the provisioning state of the DDoS protection plan resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', and 'Failed'. * * @return the provisioningState value */ @@ -163,7 +163,7 @@ public String provisioningState() { } /** - * Get the virtualNetworks value. + * Get the list of virtual networks associated with the DDoS protection plan resource. This list is read-only. * * @return the virtualNetworks value */ @@ -172,7 +172,7 @@ public List virtualNetworks() { } /** - * Get the etag value. + * Get a unique read-only string that changes whenever the resource is updated. * * @return the etag value */ diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/DnsNameAvailabilityResultInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/DnsNameAvailabilityResultInner.java index be0ccbf0a82..9f7141c3d4a 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/DnsNameAvailabilityResultInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/DnsNameAvailabilityResultInner.java @@ -21,7 +21,7 @@ public class DnsNameAvailabilityResultInner { private Boolean available; /** - * Get the available value. + * Get domain availability (True/False). * * @return the available value */ @@ -30,7 +30,7 @@ public Boolean available() { } /** - * Set the available value. + * Set domain availability (True/False). * * @param available the available value to set * @return the DnsNameAvailabilityResultInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/EffectiveNetworkSecurityGroupListResultInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/EffectiveNetworkSecurityGroupListResultInner.java index 58f04f21ba4..e280f99b698 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/EffectiveNetworkSecurityGroupListResultInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/EffectiveNetworkSecurityGroupListResultInner.java @@ -29,7 +29,7 @@ public class EffectiveNetworkSecurityGroupListResultInner { private String nextLink; /** - * Get the value value. + * Get a list of effective network security groups. * * @return the value value */ @@ -38,7 +38,7 @@ public List value() { } /** - * Set the value value. + * Set a list of effective network security groups. * * @param value the value value to set * @return the EffectiveNetworkSecurityGroupListResultInner object itself. @@ -49,7 +49,7 @@ public EffectiveNetworkSecurityGroupListResultInner withValue(List value() { } /** - * Set the value value. + * Set a list of effective routes. * * @param value the value value to set * @return the EffectiveRouteListResultInner object itself. @@ -49,7 +49,7 @@ public EffectiveRouteListResultInner withValue(List value) { } /** - * Get the nextLink value. + * Get the URL to get the next set of results. * * @return the nextLink value */ diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/EndpointServiceResultInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/EndpointServiceResultInner.java index c7b4153c32b..0ff83099f3a 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/EndpointServiceResultInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/EndpointServiceResultInner.java @@ -28,7 +28,7 @@ public class EndpointServiceResultInner extends SubResource { private String type; /** - * Get the name value. + * Get name of the endpoint service. * * @return the name value */ @@ -37,7 +37,7 @@ public String name() { } /** - * Get the type value. + * Get type of the endpoint service. * * @return the type value */ diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ExpressRouteCircuitAuthorizationInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ExpressRouteCircuitAuthorizationInner.java index f34e36e38cc..7c9f50303d6 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ExpressRouteCircuitAuthorizationInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ExpressRouteCircuitAuthorizationInner.java @@ -52,7 +52,7 @@ public class ExpressRouteCircuitAuthorizationInner extends SubResource { private String etag; /** - * Get the authorizationKey value. + * Get the authorization key. * * @return the authorizationKey value */ @@ -61,7 +61,7 @@ public String authorizationKey() { } /** - * Set the authorizationKey value. + * Set the authorization key. * * @param authorizationKey the authorizationKey value to set * @return the ExpressRouteCircuitAuthorizationInner object itself. @@ -72,7 +72,7 @@ public ExpressRouteCircuitAuthorizationInner withAuthorizationKey(String authori } /** - * Get the authorizationUseStatus value. + * Get authorizationUseStatus. Possible values are: 'Available' and 'InUse'. Possible values include: 'Available', 'InUse'. * * @return the authorizationUseStatus value */ @@ -81,7 +81,7 @@ public AuthorizationUseStatus authorizationUseStatus() { } /** - * Set the authorizationUseStatus value. + * Set authorizationUseStatus. Possible values are: 'Available' and 'InUse'. Possible values include: 'Available', 'InUse'. * * @param authorizationUseStatus the authorizationUseStatus value to set * @return the ExpressRouteCircuitAuthorizationInner object itself. @@ -92,7 +92,7 @@ public ExpressRouteCircuitAuthorizationInner withAuthorizationUseStatus(Authoriz } /** - * Get the provisioningState value. + * Get gets the provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @return the provisioningState value */ @@ -101,7 +101,7 @@ public String provisioningState() { } /** - * Set the provisioningState value. + * Set gets the provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @param provisioningState the provisioningState value to set * @return the ExpressRouteCircuitAuthorizationInner object itself. @@ -112,7 +112,7 @@ public ExpressRouteCircuitAuthorizationInner withProvisioningState(String provis } /** - * Get the name value. + * Get gets name of the resource that is unique within a resource group. This name can be used to access the resource. * * @return the name value */ @@ -121,7 +121,7 @@ public String name() { } /** - * Set the name value. + * Set gets name of the resource that is unique within a resource group. This name can be used to access the resource. * * @param name the name value to set * @return the ExpressRouteCircuitAuthorizationInner object itself. @@ -132,7 +132,7 @@ public ExpressRouteCircuitAuthorizationInner withName(String name) { } /** - * Get the etag value. + * Get a unique read-only string that changes whenever the resource is updated. * * @return the etag value */ diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ExpressRouteCircuitConnectionInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ExpressRouteCircuitConnectionInner.java index e7e790b0f3c..e6858a237b6 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ExpressRouteCircuitConnectionInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ExpressRouteCircuitConnectionInner.java @@ -73,7 +73,7 @@ public class ExpressRouteCircuitConnectionInner extends SubResource { private String etag; /** - * Get the expressRouteCircuitPeering value. + * Get reference to Express Route Circuit Private Peering Resource of the circuit initiating connection. * * @return the expressRouteCircuitPeering value */ @@ -82,7 +82,7 @@ public SubResource expressRouteCircuitPeering() { } /** - * Set the expressRouteCircuitPeering value. + * Set reference to Express Route Circuit Private Peering Resource of the circuit initiating connection. * * @param expressRouteCircuitPeering the expressRouteCircuitPeering value to set * @return the ExpressRouteCircuitConnectionInner object itself. @@ -93,7 +93,7 @@ public ExpressRouteCircuitConnectionInner withExpressRouteCircuitPeering(SubReso } /** - * Get the peerExpressRouteCircuitPeering value. + * Get reference to Express Route Circuit Private Peering Resource of the peered circuit. * * @return the peerExpressRouteCircuitPeering value */ @@ -102,7 +102,7 @@ public SubResource peerExpressRouteCircuitPeering() { } /** - * Set the peerExpressRouteCircuitPeering value. + * Set reference to Express Route Circuit Private Peering Resource of the peered circuit. * * @param peerExpressRouteCircuitPeering the peerExpressRouteCircuitPeering value to set * @return the ExpressRouteCircuitConnectionInner object itself. @@ -113,7 +113,7 @@ public ExpressRouteCircuitConnectionInner withPeerExpressRouteCircuitPeering(Sub } /** - * Get the addressPrefix value. + * Get /29 IP address space to carve out Customer addresses for tunnels. * * @return the addressPrefix value */ @@ -122,7 +122,7 @@ public String addressPrefix() { } /** - * Set the addressPrefix value. + * Set /29 IP address space to carve out Customer addresses for tunnels. * * @param addressPrefix the addressPrefix value to set * @return the ExpressRouteCircuitConnectionInner object itself. @@ -133,7 +133,7 @@ public ExpressRouteCircuitConnectionInner withAddressPrefix(String addressPrefix } /** - * Get the authorizationKey value. + * Get the authorization key. * * @return the authorizationKey value */ @@ -142,7 +142,7 @@ public String authorizationKey() { } /** - * Set the authorizationKey value. + * Set the authorization key. * * @param authorizationKey the authorizationKey value to set * @return the ExpressRouteCircuitConnectionInner object itself. @@ -153,7 +153,7 @@ public ExpressRouteCircuitConnectionInner withAuthorizationKey(String authorizat } /** - * Get the circuitConnectionStatus value. + * Get express Route Circuit Connection State. Possible values are: 'Connected' and 'Disconnected'. Possible values include: 'Connected', 'Connecting', 'Disconnected'. * * @return the circuitConnectionStatus value */ @@ -162,7 +162,7 @@ public CircuitConnectionStatus circuitConnectionStatus() { } /** - * Get the provisioningState value. + * Get provisioning state of the circuit connection resource. Possible values are: 'Succeded', 'Updating', 'Deleting', and 'Failed'. * * @return the provisioningState value */ @@ -171,7 +171,7 @@ public String provisioningState() { } /** - * Get the name value. + * Get gets name of the resource that is unique within a resource group. This name can be used to access the resource. * * @return the name value */ @@ -180,7 +180,7 @@ public String name() { } /** - * Set the name value. + * Set gets name of the resource that is unique within a resource group. This name can be used to access the resource. * * @param name the name value to set * @return the ExpressRouteCircuitConnectionInner object itself. @@ -191,7 +191,7 @@ public ExpressRouteCircuitConnectionInner withName(String name) { } /** - * Get the etag value. + * Get a unique read-only string that changes whenever the resource is updated. * * @return the etag value */ diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ExpressRouteCircuitInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ExpressRouteCircuitInner.java index 9bf5e0d1d47..b72ef4f0297 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ExpressRouteCircuitInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ExpressRouteCircuitInner.java @@ -107,7 +107,7 @@ public class ExpressRouteCircuitInner extends Resource { private String id; /** - * Get the sku value. + * Get the SKU. * * @return the sku value */ @@ -116,7 +116,7 @@ public ExpressRouteCircuitSku sku() { } /** - * Set the sku value. + * Set the SKU. * * @param sku the sku value to set * @return the ExpressRouteCircuitInner object itself. @@ -127,7 +127,7 @@ public ExpressRouteCircuitInner withSku(ExpressRouteCircuitSku sku) { } /** - * Get the allowClassicOperations value. + * Get allow classic operations. * * @return the allowClassicOperations value */ @@ -136,7 +136,7 @@ public Boolean allowClassicOperations() { } /** - * Set the allowClassicOperations value. + * Set allow classic operations. * * @param allowClassicOperations the allowClassicOperations value to set * @return the ExpressRouteCircuitInner object itself. @@ -147,7 +147,7 @@ public ExpressRouteCircuitInner withAllowClassicOperations(Boolean allowClassicO } /** - * Get the circuitProvisioningState value. + * Get the CircuitProvisioningState state of the resource. * * @return the circuitProvisioningState value */ @@ -156,7 +156,7 @@ public String circuitProvisioningState() { } /** - * Set the circuitProvisioningState value. + * Set the CircuitProvisioningState state of the resource. * * @param circuitProvisioningState the circuitProvisioningState value to set * @return the ExpressRouteCircuitInner object itself. @@ -167,7 +167,7 @@ public ExpressRouteCircuitInner withCircuitProvisioningState(String circuitProvi } /** - * Get the serviceProviderProvisioningState value. + * Get the ServiceProviderProvisioningState state of the resource. Possible values are 'NotProvisioned', 'Provisioning', 'Provisioned', and 'Deprovisioning'. Possible values include: 'NotProvisioned', 'Provisioning', 'Provisioned', 'Deprovisioning'. * * @return the serviceProviderProvisioningState value */ @@ -176,7 +176,7 @@ public ServiceProviderProvisioningState serviceProviderProvisioningState() { } /** - * Set the serviceProviderProvisioningState value. + * Set the ServiceProviderProvisioningState state of the resource. Possible values are 'NotProvisioned', 'Provisioning', 'Provisioned', and 'Deprovisioning'. Possible values include: 'NotProvisioned', 'Provisioning', 'Provisioned', 'Deprovisioning'. * * @param serviceProviderProvisioningState the serviceProviderProvisioningState value to set * @return the ExpressRouteCircuitInner object itself. @@ -187,7 +187,7 @@ public ExpressRouteCircuitInner withServiceProviderProvisioningState(ServiceProv } /** - * Get the authorizations value. + * Get the list of authorizations. * * @return the authorizations value */ @@ -196,7 +196,7 @@ public List authorizations() { } /** - * Set the authorizations value. + * Set the list of authorizations. * * @param authorizations the authorizations value to set * @return the ExpressRouteCircuitInner object itself. @@ -207,7 +207,7 @@ public ExpressRouteCircuitInner withAuthorizations(List peerings() { } /** - * Set the peerings value. + * Set the list of peerings. * * @param peerings the peerings value to set * @return the ExpressRouteCircuitInner object itself. @@ -227,7 +227,7 @@ public ExpressRouteCircuitInner withPeerings(List connections() { } /** - * Set the connections value. + * Set the list of circuit connections associated with Azure Private Peering for this circuit. * * @param connections the connections value to set * @return the ExpressRouteCircuitPeeringInner object itself. @@ -507,7 +507,7 @@ public ExpressRouteCircuitPeeringInner withConnections(List beginDeleteDelegate(Response respons } /** - * Gets the specified authorization from the specified express route circuit. + * Gets the specified peering for the express route circuit. * * @param resourceGroupName The name of the resource group. * @param circuitName The name of the express route circuit. @@ -272,7 +272,7 @@ public ExpressRouteCircuitPeeringInner get(String resourceGroupName, String circ } /** - * Gets the specified authorization from the specified express route circuit. + * Gets the specified peering for the express route circuit. * * @param resourceGroupName The name of the resource group. * @param circuitName The name of the express route circuit. @@ -286,7 +286,7 @@ public ServiceFuture getAsync(String resourceGr } /** - * Gets the specified authorization from the specified express route circuit. + * Gets the specified peering for the express route circuit. * * @param resourceGroupName The name of the resource group. * @param circuitName The name of the express route circuit. @@ -304,7 +304,7 @@ public ExpressRouteCircuitPeeringInner call(ServiceResponse value() { } /** - * Set the value value. + * Set gets list of the ARP table. * * @param value the value value to set * @return the ExpressRouteCircuitsArpTableListResultInner object itself. @@ -49,7 +49,7 @@ public ExpressRouteCircuitsArpTableListResultInner withValue(List value() { } /** - * Set the value value. + * Set the list of routes table. * * @param value the value value to set * @return the ExpressRouteCircuitsRoutesTableListResultInner object itself. @@ -49,7 +49,7 @@ public ExpressRouteCircuitsRoutesTableListResultInner withValue(List value() { } /** - * Set the value value. + * Set a list of the routes table. * * @param value the value value to set * @return the ExpressRouteCircuitsRoutesTableSummaryListResultInner object itself. @@ -49,7 +49,7 @@ public ExpressRouteCircuitsRoutesTableSummaryListResultInner withValue(List peerings() { } /** - * Set the peerings value. + * Set the list of peerings. * * @param peerings the peerings value to set * @return the ExpressRouteCrossConnectionInner object itself. @@ -256,7 +256,7 @@ public ExpressRouteCrossConnectionInner withPeerings(List value() { } /** - * Set the value value. + * Set a list of the routes table. * * @param value the value value to set * @return the ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner object itself. @@ -50,7 +50,7 @@ public ExpressRouteCrossConnectionsRoutesTableSummaryListResultInner withValue(L } /** - * Get the nextLink value. + * Get the URL to get the next set of results. * * @return the nextLink value */ diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ExpressRouteServiceProviderInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ExpressRouteServiceProviderInner.java index 560dad3a20d..1bd9c1afc89 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ExpressRouteServiceProviderInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ExpressRouteServiceProviderInner.java @@ -46,7 +46,7 @@ public class ExpressRouteServiceProviderInner extends Resource { private String id; /** - * Get the peeringLocations value. + * Get get a list of peering locations. * * @return the peeringLocations value */ @@ -55,7 +55,7 @@ public List peeringLocations() { } /** - * Set the peeringLocations value. + * Set get a list of peering locations. * * @param peeringLocations the peeringLocations value to set * @return the ExpressRouteServiceProviderInner object itself. @@ -66,7 +66,7 @@ public ExpressRouteServiceProviderInner withPeeringLocations(List peerin } /** - * Get the bandwidthsOffered value. + * Get gets bandwidths offered. * * @return the bandwidthsOffered value */ @@ -75,7 +75,7 @@ public List bandwidthsOffered() { } /** - * Set the bandwidthsOffered value. + * Set gets bandwidths offered. * * @param bandwidthsOffered the bandwidthsOffered value to set * @return the ExpressRouteServiceProviderInner object itself. @@ -86,7 +86,7 @@ public ExpressRouteServiceProviderInner withBandwidthsOffered(List zones; /** - * Get the inboundNatRules value. + * Get read only. Inbound rules URIs that use this frontend IP. * * @return the inboundNatRules value */ @@ -105,7 +105,7 @@ public List inboundNatRules() { } /** - * Get the inboundNatPools value. + * Get read only. Inbound pools URIs that use this frontend IP. * * @return the inboundNatPools value */ @@ -114,7 +114,7 @@ public List inboundNatPools() { } /** - * Get the outboundNatRules value. + * Get read only. Outbound rules URIs that use this frontend IP. * * @return the outboundNatRules value */ @@ -123,7 +123,7 @@ public List outboundNatRules() { } /** - * Get the loadBalancingRules value. + * Get gets load balancing rules URIs that use this frontend IP. * * @return the loadBalancingRules value */ @@ -132,7 +132,7 @@ public List loadBalancingRules() { } /** - * Get the privateIPAddress value. + * Get the private IP address of the IP configuration. * * @return the privateIPAddress value */ @@ -141,7 +141,7 @@ public String privateIPAddress() { } /** - * Set the privateIPAddress value. + * Set the private IP address of the IP configuration. * * @param privateIPAddress the privateIPAddress value to set * @return the FrontendIPConfigurationInner object itself. @@ -152,7 +152,7 @@ public FrontendIPConfigurationInner withPrivateIPAddress(String privateIPAddress } /** - * Get the privateIPAllocationMethod value. + * Get the Private IP allocation method. Possible values are: 'Static' and 'Dynamic'. Possible values include: 'Static', 'Dynamic'. * * @return the privateIPAllocationMethod value */ @@ -161,7 +161,7 @@ public IPAllocationMethod privateIPAllocationMethod() { } /** - * Set the privateIPAllocationMethod value. + * Set the Private IP allocation method. Possible values are: 'Static' and 'Dynamic'. Possible values include: 'Static', 'Dynamic'. * * @param privateIPAllocationMethod the privateIPAllocationMethod value to set * @return the FrontendIPConfigurationInner object itself. @@ -172,7 +172,7 @@ public FrontendIPConfigurationInner withPrivateIPAllocationMethod(IPAllocationMe } /** - * Get the subnet value. + * Get the reference of the subnet resource. * * @return the subnet value */ @@ -181,7 +181,7 @@ public SubnetInner subnet() { } /** - * Set the subnet value. + * Set the reference of the subnet resource. * * @param subnet the subnet value to set * @return the FrontendIPConfigurationInner object itself. @@ -192,7 +192,7 @@ public FrontendIPConfigurationInner withSubnet(SubnetInner subnet) { } /** - * Get the publicIPAddress value. + * Get the reference of the Public IP resource. * * @return the publicIPAddress value */ @@ -201,7 +201,7 @@ public PublicIPAddressInner publicIPAddress() { } /** - * Set the publicIPAddress value. + * Set the reference of the Public IP resource. * * @param publicIPAddress the publicIPAddress value to set * @return the FrontendIPConfigurationInner object itself. @@ -212,7 +212,7 @@ public FrontendIPConfigurationInner withPublicIPAddress(PublicIPAddressInner pub } /** - * Get the provisioningState value. + * Get gets the provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @return the provisioningState value */ @@ -221,7 +221,7 @@ public String provisioningState() { } /** - * Set the provisioningState value. + * Set gets the provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @param provisioningState the provisioningState value to set * @return the FrontendIPConfigurationInner object itself. @@ -232,7 +232,7 @@ public FrontendIPConfigurationInner withProvisioningState(String provisioningSta } /** - * Get the name value. + * Get the name of the resource that is unique within a resource group. This name can be used to access the resource. * * @return the name value */ @@ -241,7 +241,7 @@ public String name() { } /** - * Set the name value. + * Set the name of the resource that is unique within a resource group. This name can be used to access the resource. * * @param name the name value to set * @return the FrontendIPConfigurationInner object itself. @@ -252,7 +252,7 @@ public FrontendIPConfigurationInner withName(String name) { } /** - * Get the etag value. + * Get a unique read-only string that changes whenever the resource is updated. * * @return the etag value */ @@ -261,7 +261,7 @@ public String etag() { } /** - * Set the etag value. + * Set a unique read-only string that changes whenever the resource is updated. * * @param etag the etag value to set * @return the FrontendIPConfigurationInner object itself. @@ -272,7 +272,7 @@ public FrontendIPConfigurationInner withEtag(String etag) { } /** - * Get the zones value. + * Get a list of availability zones denoting the IP allocated for the resource needs to come from. * * @return the zones value */ @@ -281,7 +281,7 @@ public List zones() { } /** - * Set the zones value. + * Set a list of availability zones denoting the IP allocated for the resource needs to come from. * * @param zones the zones value to set * @return the FrontendIPConfigurationInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/GatewayRouteListResultInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/GatewayRouteListResultInner.java index e99364f54c5..0fa53eea392 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/GatewayRouteListResultInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/GatewayRouteListResultInner.java @@ -23,7 +23,7 @@ public class GatewayRouteListResultInner { private List value; /** - * Get the value value. + * Get list of gateway routes. * * @return the value value */ @@ -32,7 +32,7 @@ public List value() { } /** - * Set the value value. + * Set list of gateway routes. * * @param value the value value to set * @return the GatewayRouteListResultInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/HubVirtualNetworkConnectionInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/HubVirtualNetworkConnectionInner.java new file mode 100644 index 00000000000..47ccabecc33 --- /dev/null +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/HubVirtualNetworkConnectionInner.java @@ -0,0 +1,171 @@ +/** + * 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. + */ + +package com.microsoft.azure.management.network.implementation; + +import com.microsoft.azure.SubResource; +import com.microsoft.azure.management.network.ProvisioningState; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.rest.SkipParentValidation; +import com.microsoft.azure.Resource; + +/** + * HubVirtualNetworkConnection Resource. + */ +@JsonFlatten +@SkipParentValidation +public class HubVirtualNetworkConnectionInner extends Resource { + /** + * Reference to the remote virtual network. + */ + @JsonProperty(value = "properties.remoteVirtualNetwork") + private SubResource remoteVirtualNetwork; + + /** + * VirtualHub to RemoteVnet transit to enabled or not. + */ + @JsonProperty(value = "properties.allowHubToRemoteVnetTransit") + private Boolean allowHubToRemoteVnetTransit; + + /** + * Allow RemoteVnet to use Virtual Hub's gateways. + */ + @JsonProperty(value = "properties.allowRemoteVnetToUseHubVnetGateways") + private Boolean allowRemoteVnetToUseHubVnetGateways; + + /** + * The provisioning state of the resource. Possible values include: + * 'Succeeded', 'Updating', 'Deleting', 'Failed'. + */ + @JsonProperty(value = "properties.provisioningState") + private ProvisioningState provisioningState; + + /** + * Gets a unique read-only string that changes whenever the resource is + * updated. + */ + @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) + private String etag; + + /** + * Resource ID. + */ + @JsonProperty(value = "id") + private String id; + + /** + * Get reference to the remote virtual network. + * + * @return the remoteVirtualNetwork value + */ + public SubResource remoteVirtualNetwork() { + return this.remoteVirtualNetwork; + } + + /** + * Set reference to the remote virtual network. + * + * @param remoteVirtualNetwork the remoteVirtualNetwork value to set + * @return the HubVirtualNetworkConnectionInner object itself. + */ + public HubVirtualNetworkConnectionInner withRemoteVirtualNetwork(SubResource remoteVirtualNetwork) { + this.remoteVirtualNetwork = remoteVirtualNetwork; + return this; + } + + /** + * Get virtualHub to RemoteVnet transit to enabled or not. + * + * @return the allowHubToRemoteVnetTransit value + */ + public Boolean allowHubToRemoteVnetTransit() { + return this.allowHubToRemoteVnetTransit; + } + + /** + * Set virtualHub to RemoteVnet transit to enabled or not. + * + * @param allowHubToRemoteVnetTransit the allowHubToRemoteVnetTransit value to set + * @return the HubVirtualNetworkConnectionInner object itself. + */ + public HubVirtualNetworkConnectionInner withAllowHubToRemoteVnetTransit(Boolean allowHubToRemoteVnetTransit) { + this.allowHubToRemoteVnetTransit = allowHubToRemoteVnetTransit; + return this; + } + + /** + * Get allow RemoteVnet to use Virtual Hub's gateways. + * + * @return the allowRemoteVnetToUseHubVnetGateways value + */ + public Boolean allowRemoteVnetToUseHubVnetGateways() { + return this.allowRemoteVnetToUseHubVnetGateways; + } + + /** + * Set allow RemoteVnet to use Virtual Hub's gateways. + * + * @param allowRemoteVnetToUseHubVnetGateways the allowRemoteVnetToUseHubVnetGateways value to set + * @return the HubVirtualNetworkConnectionInner object itself. + */ + public HubVirtualNetworkConnectionInner withAllowRemoteVnetToUseHubVnetGateways(Boolean allowRemoteVnetToUseHubVnetGateways) { + this.allowRemoteVnetToUseHubVnetGateways = allowRemoteVnetToUseHubVnetGateways; + return this; + } + + /** + * Get the provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. + * + * @return the provisioningState value + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Set the provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. + * + * @param provisioningState the provisioningState value to set + * @return the HubVirtualNetworkConnectionInner object itself. + */ + public HubVirtualNetworkConnectionInner withProvisioningState(ProvisioningState provisioningState) { + this.provisioningState = provisioningState; + return this; + } + + /** + * Get gets a unique read-only string that changes whenever the resource is updated. + * + * @return the etag value + */ + public String etag() { + return this.etag; + } + + /** + * Get resource ID. + * + * @return the id value + */ + public String id() { + return this.id; + } + + /** + * Set resource ID. + * + * @param id the id value to set + * @return the HubVirtualNetworkConnectionInner object itself. + */ + public HubVirtualNetworkConnectionInner withId(String id) { + this.id = id; + return this; + } + +} diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/HubVirtualNetworkConnectionsInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/HubVirtualNetworkConnectionsInner.java new file mode 100644 index 00000000000..8d847056dce --- /dev/null +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/HubVirtualNetworkConnectionsInner.java @@ -0,0 +1,397 @@ +/** + * 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. + */ + +package com.microsoft.azure.management.network.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.network.ErrorException; +import com.microsoft.azure.Page; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import java.io.IOException; +import java.util.List; +import okhttp3.ResponseBody; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.Path; +import retrofit2.http.Query; +import retrofit2.http.Url; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in HubVirtualNetworkConnections. + */ +public class HubVirtualNetworkConnectionsInner { + /** The Retrofit service to perform REST calls. */ + private HubVirtualNetworkConnectionsService service; + /** The service client containing this operation class. */ + private NetworkManagementClientImpl client; + + /** + * Initializes an instance of HubVirtualNetworkConnectionsInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public HubVirtualNetworkConnectionsInner(Retrofit retrofit, NetworkManagementClientImpl client) { + this.service = retrofit.create(HubVirtualNetworkConnectionsService.class); + this.client = client; + } + + /** + * The interface defining all the services for HubVirtualNetworkConnections to be + * used by Retrofit to perform actually REST calls. + */ + interface HubVirtualNetworkConnectionsService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.HubVirtualNetworkConnections get" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/hubVirtualNetworkConnections/{connectionName}") + Observable> get(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("virtualHubName") String virtualHubName, @Path("connectionName") String connectionName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.HubVirtualNetworkConnections list" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/hubVirtualNetworkConnections") + Observable> list(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("virtualHubName") String virtualHubName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.HubVirtualNetworkConnections listNext" }) + @GET + Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Retrieves the details of a HubVirtualNetworkConnection. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param connectionName The name of the vpn connection. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the HubVirtualNetworkConnectionInner object if successful. + */ + public HubVirtualNetworkConnectionInner get(String resourceGroupName, String virtualHubName, String connectionName) { + return getWithServiceResponseAsync(resourceGroupName, virtualHubName, connectionName).toBlocking().single().body(); + } + + /** + * Retrieves the details of a HubVirtualNetworkConnection. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param connectionName The name of the vpn connection. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getAsync(String resourceGroupName, String virtualHubName, String connectionName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getWithServiceResponseAsync(resourceGroupName, virtualHubName, connectionName), serviceCallback); + } + + /** + * Retrieves the details of a HubVirtualNetworkConnection. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param connectionName The name of the vpn connection. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the HubVirtualNetworkConnectionInner object + */ + public Observable getAsync(String resourceGroupName, String virtualHubName, String connectionName) { + return getWithServiceResponseAsync(resourceGroupName, virtualHubName, connectionName).map(new Func1, HubVirtualNetworkConnectionInner>() { + @Override + public HubVirtualNetworkConnectionInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Retrieves the details of a HubVirtualNetworkConnection. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param connectionName The name of the vpn connection. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the HubVirtualNetworkConnectionInner object + */ + public Observable> getWithServiceResponseAsync(String resourceGroupName, String virtualHubName, String connectionName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualHubName == null) { + throw new IllegalArgumentException("Parameter virtualHubName is required and cannot be null."); + } + if (connectionName == null) { + throw new IllegalArgumentException("Parameter connectionName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + return service.get(this.client.subscriptionId(), resourceGroupName, virtualHubName, connectionName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Retrieves the details of all HubVirtualNetworkConnections. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<HubVirtualNetworkConnectionInner> object if successful. + */ + public PagedList list(final String resourceGroupName, final String virtualHubName) { + ServiceResponse> response = listSinglePageAsync(resourceGroupName, virtualHubName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Retrieves the details of all HubVirtualNetworkConnections. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAsync(final String resourceGroupName, final String virtualHubName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listSinglePageAsync(resourceGroupName, virtualHubName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Retrieves the details of all HubVirtualNetworkConnections. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<HubVirtualNetworkConnectionInner> object + */ + public Observable> listAsync(final String resourceGroupName, final String virtualHubName) { + return listWithServiceResponseAsync(resourceGroupName, virtualHubName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Retrieves the details of all HubVirtualNetworkConnections. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<HubVirtualNetworkConnectionInner> object + */ + public Observable>> listWithServiceResponseAsync(final String resourceGroupName, final String virtualHubName) { + return listSinglePageAsync(resourceGroupName, virtualHubName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Retrieves the details of all HubVirtualNetworkConnections. + * + ServiceResponse> * @param resourceGroupName The resource group name of the VirtualHub. + ServiceResponse> * @param virtualHubName The name of the VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<HubVirtualNetworkConnectionInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listSinglePageAsync(final String resourceGroupName, final String virtualHubName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualHubName == null) { + throw new IllegalArgumentException("Parameter virtualHubName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + return service.list(this.client.subscriptionId(), resourceGroupName, virtualHubName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Retrieves the details of all HubVirtualNetworkConnections. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<HubVirtualNetworkConnectionInner> object if successful. + */ + public PagedList listNext(final String nextPageLink) { + ServiceResponse> response = listNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Retrieves the details of all HubVirtualNetworkConnections. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Retrieves the details of all HubVirtualNetworkConnections. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<HubVirtualNetworkConnectionInner> object + */ + public Observable> listNextAsync(final String nextPageLink) { + return listNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Retrieves the details of all HubVirtualNetworkConnections. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<HubVirtualNetworkConnectionInner> object + */ + public Observable>> listNextWithServiceResponseAsync(final String nextPageLink) { + return listNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Retrieves the details of all HubVirtualNetworkConnections. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<HubVirtualNetworkConnectionInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listNextDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + +} diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/IPAddressAvailabilityResultInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/IPAddressAvailabilityResultInner.java index 24ec5dae119..ddfe2a4c687 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/IPAddressAvailabilityResultInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/IPAddressAvailabilityResultInner.java @@ -29,7 +29,7 @@ public class IPAddressAvailabilityResultInner { private List availableIPAddresses; /** - * Get the available value. + * Get private IP address availability. * * @return the available value */ @@ -38,7 +38,7 @@ public Boolean available() { } /** - * Set the available value. + * Set private IP address availability. * * @param available the available value to set * @return the IPAddressAvailabilityResultInner object itself. @@ -49,7 +49,7 @@ public IPAddressAvailabilityResultInner withAvailable(Boolean available) { } /** - * Get the availableIPAddresses value. + * Get contains other available private IP addresses if the asked for address is taken. * * @return the availableIPAddresses value */ @@ -58,7 +58,7 @@ public List availableIPAddresses() { } /** - * Set the availableIPAddresses value. + * Set contains other available private IP addresses if the asked for address is taken. * * @param availableIPAddresses the availableIPAddresses value to set * @return the IPAddressAvailabilityResultInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/IPConfigurationInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/IPConfigurationInner.java index 3d50617eb1b..7c10ad32c65 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/IPConfigurationInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/IPConfigurationInner.java @@ -64,7 +64,7 @@ public class IPConfigurationInner extends SubResource { private String etag; /** - * Get the privateIPAddress value. + * Get the private IP address of the IP configuration. * * @return the privateIPAddress value */ @@ -73,7 +73,7 @@ public String privateIPAddress() { } /** - * Set the privateIPAddress value. + * Set the private IP address of the IP configuration. * * @param privateIPAddress the privateIPAddress value to set * @return the IPConfigurationInner object itself. @@ -84,7 +84,7 @@ public IPConfigurationInner withPrivateIPAddress(String privateIPAddress) { } /** - * Get the privateIPAllocationMethod value. + * Get the private IP allocation method. Possible values are 'Static' and 'Dynamic'. Possible values include: 'Static', 'Dynamic'. * * @return the privateIPAllocationMethod value */ @@ -93,7 +93,7 @@ public IPAllocationMethod privateIPAllocationMethod() { } /** - * Set the privateIPAllocationMethod value. + * Set the private IP allocation method. Possible values are 'Static' and 'Dynamic'. Possible values include: 'Static', 'Dynamic'. * * @param privateIPAllocationMethod the privateIPAllocationMethod value to set * @return the IPConfigurationInner object itself. @@ -104,7 +104,7 @@ public IPConfigurationInner withPrivateIPAllocationMethod(IPAllocationMethod pri } /** - * Get the subnet value. + * Get the reference of the subnet resource. * * @return the subnet value */ @@ -113,7 +113,7 @@ public SubnetInner subnet() { } /** - * Set the subnet value. + * Set the reference of the subnet resource. * * @param subnet the subnet value to set * @return the IPConfigurationInner object itself. @@ -124,7 +124,7 @@ public IPConfigurationInner withSubnet(SubnetInner subnet) { } /** - * Get the publicIPAddress value. + * Get the reference of the public IP resource. * * @return the publicIPAddress value */ @@ -133,7 +133,7 @@ public PublicIPAddressInner publicIPAddress() { } /** - * Set the publicIPAddress value. + * Set the reference of the public IP resource. * * @param publicIPAddress the publicIPAddress value to set * @return the IPConfigurationInner object itself. @@ -144,7 +144,7 @@ public IPConfigurationInner withPublicIPAddress(PublicIPAddressInner publicIPAdd } /** - * Get the provisioningState value. + * Get gets the provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @return the provisioningState value */ @@ -153,7 +153,7 @@ public String provisioningState() { } /** - * Set the provisioningState value. + * Set gets the provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @param provisioningState the provisioningState value to set * @return the IPConfigurationInner object itself. @@ -164,7 +164,7 @@ public IPConfigurationInner withProvisioningState(String provisioningState) { } /** - * Get the name value. + * Get the name of the resource that is unique within a resource group. This name can be used to access the resource. * * @return the name value */ @@ -173,7 +173,7 @@ public String name() { } /** - * Set the name value. + * Set the name of the resource that is unique within a resource group. This name can be used to access the resource. * * @param name the name value to set * @return the IPConfigurationInner object itself. @@ -184,7 +184,7 @@ public IPConfigurationInner withName(String name) { } /** - * Get the etag value. + * Get a unique read-only string that changes whenever the resource is updated. * * @return the etag value */ @@ -193,7 +193,7 @@ public String etag() { } /** - * Set the etag value. + * Set a unique read-only string that changes whenever the resource is updated. * * @param etag the etag value to set * @return the IPConfigurationInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/InboundNatPoolInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/InboundNatPoolInner.java index 47411a67475..8fa4e6230a3 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/InboundNatPoolInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/InboundNatPoolInner.java @@ -91,7 +91,7 @@ public class InboundNatPoolInner extends SubResource { private String etag; /** - * Get the frontendIPConfiguration value. + * Get a reference to frontend IP addresses. * * @return the frontendIPConfiguration value */ @@ -100,7 +100,7 @@ public SubResource frontendIPConfiguration() { } /** - * Set the frontendIPConfiguration value. + * Set a reference to frontend IP addresses. * * @param frontendIPConfiguration the frontendIPConfiguration value to set * @return the InboundNatPoolInner object itself. @@ -111,7 +111,7 @@ public InboundNatPoolInner withFrontendIPConfiguration(SubResource frontendIPCon } /** - * Get the protocol value. + * Get possible values include: 'Udp', 'Tcp', 'All'. * * @return the protocol value */ @@ -120,7 +120,7 @@ public TransportProtocol protocol() { } /** - * Set the protocol value. + * Set possible values include: 'Udp', 'Tcp', 'All'. * * @param protocol the protocol value to set * @return the InboundNatPoolInner object itself. @@ -131,7 +131,7 @@ public InboundNatPoolInner withProtocol(TransportProtocol protocol) { } /** - * Get the frontendPortRangeStart value. + * Get the first port number in the range of external ports that will be used to provide Inbound Nat to NICs associated with a load balancer. Acceptable values range between 1 and 65534. * * @return the frontendPortRangeStart value */ @@ -140,7 +140,7 @@ public int frontendPortRangeStart() { } /** - * Set the frontendPortRangeStart value. + * Set the first port number in the range of external ports that will be used to provide Inbound Nat to NICs associated with a load balancer. Acceptable values range between 1 and 65534. * * @param frontendPortRangeStart the frontendPortRangeStart value to set * @return the InboundNatPoolInner object itself. @@ -151,7 +151,7 @@ public InboundNatPoolInner withFrontendPortRangeStart(int frontendPortRangeStart } /** - * Get the frontendPortRangeEnd value. + * Get the last port number in the range of external ports that will be used to provide Inbound Nat to NICs associated with a load balancer. Acceptable values range between 1 and 65535. * * @return the frontendPortRangeEnd value */ @@ -160,7 +160,7 @@ public int frontendPortRangeEnd() { } /** - * Set the frontendPortRangeEnd value. + * Set the last port number in the range of external ports that will be used to provide Inbound Nat to NICs associated with a load balancer. Acceptable values range between 1 and 65535. * * @param frontendPortRangeEnd the frontendPortRangeEnd value to set * @return the InboundNatPoolInner object itself. @@ -171,7 +171,7 @@ public InboundNatPoolInner withFrontendPortRangeEnd(int frontendPortRangeEnd) { } /** - * Get the backendPort value. + * Get the port used for internal connections on the endpoint. Acceptable values are between 1 and 65535. * * @return the backendPort value */ @@ -180,7 +180,7 @@ public int backendPort() { } /** - * Set the backendPort value. + * Set the port used for internal connections on the endpoint. Acceptable values are between 1 and 65535. * * @param backendPort the backendPort value to set * @return the InboundNatPoolInner object itself. @@ -191,7 +191,7 @@ public InboundNatPoolInner withBackendPort(int backendPort) { } /** - * Get the idleTimeoutInMinutes value. + * Get the timeout for the TCP idle connection. The value can be set between 4 and 30 minutes. The default value is 4 minutes. This element is only used when the protocol is set to TCP. * * @return the idleTimeoutInMinutes value */ @@ -200,7 +200,7 @@ public Integer idleTimeoutInMinutes() { } /** - * Set the idleTimeoutInMinutes value. + * Set the timeout for the TCP idle connection. The value can be set between 4 and 30 minutes. The default value is 4 minutes. This element is only used when the protocol is set to TCP. * * @param idleTimeoutInMinutes the idleTimeoutInMinutes value to set * @return the InboundNatPoolInner object itself. @@ -211,7 +211,7 @@ public InboundNatPoolInner withIdleTimeoutInMinutes(Integer idleTimeoutInMinutes } /** - * Get the enableFloatingIP value. + * Get configures a virtual machine's endpoint for the floating IP capability required to configure a SQL AlwaysOn Availability Group. This setting is required when using the SQL AlwaysOn Availability Groups in SQL server. This setting can't be changed after you create the endpoint. * * @return the enableFloatingIP value */ @@ -220,7 +220,7 @@ public Boolean enableFloatingIP() { } /** - * Set the enableFloatingIP value. + * Set configures a virtual machine's endpoint for the floating IP capability required to configure a SQL AlwaysOn Availability Group. This setting is required when using the SQL AlwaysOn Availability Groups in SQL server. This setting can't be changed after you create the endpoint. * * @param enableFloatingIP the enableFloatingIP value to set * @return the InboundNatPoolInner object itself. @@ -231,7 +231,7 @@ public InboundNatPoolInner withEnableFloatingIP(Boolean enableFloatingIP) { } /** - * Get the provisioningState value. + * Get gets the provisioning state of the PublicIP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @return the provisioningState value */ @@ -240,7 +240,7 @@ public String provisioningState() { } /** - * Set the provisioningState value. + * Set gets the provisioning state of the PublicIP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @param provisioningState the provisioningState value to set * @return the InboundNatPoolInner object itself. @@ -251,7 +251,7 @@ public InboundNatPoolInner withProvisioningState(String provisioningState) { } /** - * Get the name value. + * Get the name of the resource that is unique within a resource group. This name can be used to access the resource. * * @return the name value */ @@ -260,7 +260,7 @@ public String name() { } /** - * Set the name value. + * Set the name of the resource that is unique within a resource group. This name can be used to access the resource. * * @param name the name value to set * @return the InboundNatPoolInner object itself. @@ -271,7 +271,7 @@ public InboundNatPoolInner withName(String name) { } /** - * Get the etag value. + * Get a unique read-only string that changes whenever the resource is updated. * * @return the etag value */ @@ -280,7 +280,7 @@ public String etag() { } /** - * Set the etag value. + * Set a unique read-only string that changes whenever the resource is updated. * * @param etag the etag value to set * @return the InboundNatPoolInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/InboundNatRuleInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/InboundNatRuleInner.java index 07fba4b35af..ac4a6784546 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/InboundNatRuleInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/InboundNatRuleInner.java @@ -91,7 +91,7 @@ public class InboundNatRuleInner extends SubResource { private String etag; /** - * Get the frontendIPConfiguration value. + * Get a reference to frontend IP addresses. * * @return the frontendIPConfiguration value */ @@ -100,7 +100,7 @@ public SubResource frontendIPConfiguration() { } /** - * Set the frontendIPConfiguration value. + * Set a reference to frontend IP addresses. * * @param frontendIPConfiguration the frontendIPConfiguration value to set * @return the InboundNatRuleInner object itself. @@ -111,7 +111,7 @@ public InboundNatRuleInner withFrontendIPConfiguration(SubResource frontendIPCon } /** - * Get the backendIPConfiguration value. + * Get a reference to a private IP address defined on a network interface of a VM. Traffic sent to the frontend port of each of the frontend IP configurations is forwarded to the backend IP. * * @return the backendIPConfiguration value */ @@ -120,7 +120,7 @@ public NetworkInterfaceIPConfigurationInner backendIPConfiguration() { } /** - * Get the protocol value. + * Get possible values include: 'Udp', 'Tcp', 'All'. * * @return the protocol value */ @@ -129,7 +129,7 @@ public TransportProtocol protocol() { } /** - * Set the protocol value. + * Set possible values include: 'Udp', 'Tcp', 'All'. * * @param protocol the protocol value to set * @return the InboundNatRuleInner object itself. @@ -140,7 +140,7 @@ public InboundNatRuleInner withProtocol(TransportProtocol protocol) { } /** - * Get the frontendPort value. + * Get the port for the external endpoint. Port numbers for each rule must be unique within the Load Balancer. Acceptable values range from 1 to 65534. * * @return the frontendPort value */ @@ -149,7 +149,7 @@ public Integer frontendPort() { } /** - * Set the frontendPort value. + * Set the port for the external endpoint. Port numbers for each rule must be unique within the Load Balancer. Acceptable values range from 1 to 65534. * * @param frontendPort the frontendPort value to set * @return the InboundNatRuleInner object itself. @@ -160,7 +160,7 @@ public InboundNatRuleInner withFrontendPort(Integer frontendPort) { } /** - * Get the backendPort value. + * Get the port used for the internal endpoint. Acceptable values range from 1 to 65535. * * @return the backendPort value */ @@ -169,7 +169,7 @@ public Integer backendPort() { } /** - * Set the backendPort value. + * Set the port used for the internal endpoint. Acceptable values range from 1 to 65535. * * @param backendPort the backendPort value to set * @return the InboundNatRuleInner object itself. @@ -180,7 +180,7 @@ public InboundNatRuleInner withBackendPort(Integer backendPort) { } /** - * Get the idleTimeoutInMinutes value. + * Get the timeout for the TCP idle connection. The value can be set between 4 and 30 minutes. The default value is 4 minutes. This element is only used when the protocol is set to TCP. * * @return the idleTimeoutInMinutes value */ @@ -189,7 +189,7 @@ public Integer idleTimeoutInMinutes() { } /** - * Set the idleTimeoutInMinutes value. + * Set the timeout for the TCP idle connection. The value can be set between 4 and 30 minutes. The default value is 4 minutes. This element is only used when the protocol is set to TCP. * * @param idleTimeoutInMinutes the idleTimeoutInMinutes value to set * @return the InboundNatRuleInner object itself. @@ -200,7 +200,7 @@ public InboundNatRuleInner withIdleTimeoutInMinutes(Integer idleTimeoutInMinutes } /** - * Get the enableFloatingIP value. + * Get configures a virtual machine's endpoint for the floating IP capability required to configure a SQL AlwaysOn Availability Group. This setting is required when using the SQL AlwaysOn Availability Groups in SQL server. This setting can't be changed after you create the endpoint. * * @return the enableFloatingIP value */ @@ -209,7 +209,7 @@ public Boolean enableFloatingIP() { } /** - * Set the enableFloatingIP value. + * Set configures a virtual machine's endpoint for the floating IP capability required to configure a SQL AlwaysOn Availability Group. This setting is required when using the SQL AlwaysOn Availability Groups in SQL server. This setting can't be changed after you create the endpoint. * * @param enableFloatingIP the enableFloatingIP value to set * @return the InboundNatRuleInner object itself. @@ -220,7 +220,7 @@ public InboundNatRuleInner withEnableFloatingIP(Boolean enableFloatingIP) { } /** - * Get the provisioningState value. + * Get gets the provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @return the provisioningState value */ @@ -229,7 +229,7 @@ public String provisioningState() { } /** - * Set the provisioningState value. + * Set gets the provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @param provisioningState the provisioningState value to set * @return the InboundNatRuleInner object itself. @@ -240,7 +240,7 @@ public InboundNatRuleInner withProvisioningState(String provisioningState) { } /** - * Get the name value. + * Get gets name of the resource that is unique within a resource group. This name can be used to access the resource. * * @return the name value */ @@ -249,7 +249,7 @@ public String name() { } /** - * Set the name value. + * Set gets name of the resource that is unique within a resource group. This name can be used to access the resource. * * @param name the name value to set * @return the InboundNatRuleInner object itself. @@ -260,7 +260,7 @@ public InboundNatRuleInner withName(String name) { } /** - * Get the etag value. + * Get a unique read-only string that changes whenever the resource is updated. * * @return the etag value */ @@ -269,7 +269,7 @@ public String etag() { } /** - * Set the etag value. + * Set a unique read-only string that changes whenever the resource is updated. * * @param etag the etag value to set * @return the InboundNatRuleInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/LoadBalancerInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/LoadBalancerInner.java index 76c2e417937..c29be13a267 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/LoadBalancerInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/LoadBalancerInner.java @@ -108,7 +108,7 @@ public class LoadBalancerInner extends Resource { private String id; /** - * Get the sku value. + * Get the load balancer SKU. * * @return the sku value */ @@ -117,7 +117,7 @@ public LoadBalancerSku sku() { } /** - * Set the sku value. + * Set the load balancer SKU. * * @param sku the sku value to set * @return the LoadBalancerInner object itself. @@ -128,7 +128,7 @@ public LoadBalancerInner withSku(LoadBalancerSku sku) { } /** - * Get the frontendIPConfigurations value. + * Get object representing the frontend IPs to be used for the load balancer. * * @return the frontendIPConfigurations value */ @@ -137,7 +137,7 @@ public List frontendIPConfigurations() { } /** - * Set the frontendIPConfigurations value. + * Set object representing the frontend IPs to be used for the load balancer. * * @param frontendIPConfigurations the frontendIPConfigurations value to set * @return the LoadBalancerInner object itself. @@ -148,7 +148,7 @@ public LoadBalancerInner withFrontendIPConfigurations(List backendAddressPools() { } /** - * Set the backendAddressPools value. + * Set collection of backend address pools used by a load balancer. * * @param backendAddressPools the backendAddressPools value to set * @return the LoadBalancerInner object itself. @@ -168,7 +168,7 @@ public LoadBalancerInner withBackendAddressPools(List b } /** - * Get the loadBalancingRules value. + * Get object collection representing the load balancing rules Gets the provisioning. * * @return the loadBalancingRules value */ @@ -177,7 +177,7 @@ public List loadBalancingRules() { } /** - * Set the loadBalancingRules value. + * Set object collection representing the load balancing rules Gets the provisioning. * * @param loadBalancingRules the loadBalancingRules value to set * @return the LoadBalancerInner object itself. @@ -188,7 +188,7 @@ public LoadBalancerInner withLoadBalancingRules(List loa } /** - * Get the probes value. + * Get collection of probe objects used in the load balancer. * * @return the probes value */ @@ -197,7 +197,7 @@ public List probes() { } /** - * Set the probes value. + * Set collection of probe objects used in the load balancer. * * @param probes the probes value to set * @return the LoadBalancerInner object itself. @@ -208,7 +208,7 @@ public LoadBalancerInner withProbes(List probes) { } /** - * Get the inboundNatRules value. + * Get collection of inbound NAT Rules used by a load balancer. Defining inbound NAT rules on your load balancer is mutually exclusive with defining an inbound NAT pool. Inbound NAT pools are referenced from virtual machine scale sets. NICs that are associated with individual virtual machines cannot reference an Inbound NAT pool. They have to reference individual inbound NAT rules. * * @return the inboundNatRules value */ @@ -217,7 +217,7 @@ public List inboundNatRules() { } /** - * Set the inboundNatRules value. + * Set collection of inbound NAT Rules used by a load balancer. Defining inbound NAT rules on your load balancer is mutually exclusive with defining an inbound NAT pool. Inbound NAT pools are referenced from virtual machine scale sets. NICs that are associated with individual virtual machines cannot reference an Inbound NAT pool. They have to reference individual inbound NAT rules. * * @param inboundNatRules the inboundNatRules value to set * @return the LoadBalancerInner object itself. @@ -228,7 +228,7 @@ public LoadBalancerInner withInboundNatRules(List inboundNa } /** - * Get the inboundNatPools value. + * Get defines an external port range for inbound NAT to a single backend port on NICs associated with a load balancer. Inbound NAT rules are created automatically for each NIC associated with the Load Balancer using an external port from this range. Defining an Inbound NAT pool on your Load Balancer is mutually exclusive with defining inbound Nat rules. Inbound NAT pools are referenced from virtual machine scale sets. NICs that are associated with individual virtual machines cannot reference an inbound NAT pool. They have to reference individual inbound NAT rules. * * @return the inboundNatPools value */ @@ -237,7 +237,7 @@ public List inboundNatPools() { } /** - * Set the inboundNatPools value. + * Set defines an external port range for inbound NAT to a single backend port on NICs associated with a load balancer. Inbound NAT rules are created automatically for each NIC associated with the Load Balancer using an external port from this range. Defining an Inbound NAT pool on your Load Balancer is mutually exclusive with defining inbound Nat rules. Inbound NAT pools are referenced from virtual machine scale sets. NICs that are associated with individual virtual machines cannot reference an inbound NAT pool. They have to reference individual inbound NAT rules. * * @param inboundNatPools the inboundNatPools value to set * @return the LoadBalancerInner object itself. @@ -248,7 +248,7 @@ public LoadBalancerInner withInboundNatPools(List inboundNa } /** - * Get the outboundNatRules value. + * Get the outbound NAT rules. * * @return the outboundNatRules value */ @@ -257,7 +257,7 @@ public List outboundNatRules() { } /** - * Set the outboundNatRules value. + * Set the outbound NAT rules. * * @param outboundNatRules the outboundNatRules value to set * @return the LoadBalancerInner object itself. @@ -268,7 +268,7 @@ public LoadBalancerInner withOutboundNatRules(List outboun } /** - * Get the resourceGuid value. + * Get the resource GUID property of the load balancer resource. * * @return the resourceGuid value */ @@ -277,7 +277,7 @@ public String resourceGuid() { } /** - * Set the resourceGuid value. + * Set the resource GUID property of the load balancer resource. * * @param resourceGuid the resourceGuid value to set * @return the LoadBalancerInner object itself. @@ -288,7 +288,7 @@ public LoadBalancerInner withResourceGuid(String resourceGuid) { } /** - * Get the provisioningState value. + * Get gets the provisioning state of the PublicIP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @return the provisioningState value */ @@ -297,7 +297,7 @@ public String provisioningState() { } /** - * Set the provisioningState value. + * Set gets the provisioning state of the PublicIP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @param provisioningState the provisioningState value to set * @return the LoadBalancerInner object itself. @@ -308,7 +308,7 @@ public LoadBalancerInner withProvisioningState(String provisioningState) { } /** - * Get the etag value. + * Get a unique read-only string that changes whenever the resource is updated. * * @return the etag value */ @@ -317,7 +317,7 @@ public String etag() { } /** - * Set the etag value. + * Set a unique read-only string that changes whenever the resource is updated. * * @param etag the etag value to set * @return the LoadBalancerInner object itself. @@ -328,7 +328,7 @@ public LoadBalancerInner withEtag(String etag) { } /** - * Get the id value. + * Get resource ID. * * @return the id value */ @@ -337,7 +337,7 @@ public String id() { } /** - * Set the id value. + * Set resource ID. * * @param id the id value to set * @return the LoadBalancerInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/LoadBalancingRuleInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/LoadBalancingRuleInner.java index 323e48c4e1c..4d88846a257 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/LoadBalancingRuleInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/LoadBalancingRuleInner.java @@ -113,7 +113,7 @@ public class LoadBalancingRuleInner extends SubResource { private String etag; /** - * Get the frontendIPConfiguration value. + * Get a reference to frontend IP addresses. * * @return the frontendIPConfiguration value */ @@ -122,7 +122,7 @@ public SubResource frontendIPConfiguration() { } /** - * Set the frontendIPConfiguration value. + * Set a reference to frontend IP addresses. * * @param frontendIPConfiguration the frontendIPConfiguration value to set * @return the LoadBalancingRuleInner object itself. @@ -133,7 +133,7 @@ public LoadBalancingRuleInner withFrontendIPConfiguration(SubResource frontendIP } /** - * Get the backendAddressPool value. + * Get a reference to a pool of DIPs. Inbound traffic is randomly load balanced across IPs in the backend IPs. * * @return the backendAddressPool value */ @@ -142,7 +142,7 @@ public SubResource backendAddressPool() { } /** - * Set the backendAddressPool value. + * Set a reference to a pool of DIPs. Inbound traffic is randomly load balanced across IPs in the backend IPs. * * @param backendAddressPool the backendAddressPool value to set * @return the LoadBalancingRuleInner object itself. @@ -153,7 +153,7 @@ public LoadBalancingRuleInner withBackendAddressPool(SubResource backendAddressP } /** - * Get the probe value. + * Get the reference of the load balancer probe used by the load balancing rule. * * @return the probe value */ @@ -162,7 +162,7 @@ public SubResource probe() { } /** - * Set the probe value. + * Set the reference of the load balancer probe used by the load balancing rule. * * @param probe the probe value to set * @return the LoadBalancingRuleInner object itself. @@ -173,7 +173,7 @@ public LoadBalancingRuleInner withProbe(SubResource probe) { } /** - * Get the protocol value. + * Get possible values include: 'Udp', 'Tcp', 'All'. * * @return the protocol value */ @@ -182,7 +182,7 @@ public TransportProtocol protocol() { } /** - * Set the protocol value. + * Set possible values include: 'Udp', 'Tcp', 'All'. * * @param protocol the protocol value to set * @return the LoadBalancingRuleInner object itself. @@ -193,7 +193,7 @@ public LoadBalancingRuleInner withProtocol(TransportProtocol protocol) { } /** - * Get the loadDistribution value. + * Get the load distribution policy for this rule. Possible values are 'Default', 'SourceIP', and 'SourceIPProtocol'. Possible values include: 'Default', 'SourceIP', 'SourceIPProtocol'. * * @return the loadDistribution value */ @@ -202,7 +202,7 @@ public LoadDistribution loadDistribution() { } /** - * Set the loadDistribution value. + * Set the load distribution policy for this rule. Possible values are 'Default', 'SourceIP', and 'SourceIPProtocol'. Possible values include: 'Default', 'SourceIP', 'SourceIPProtocol'. * * @param loadDistribution the loadDistribution value to set * @return the LoadBalancingRuleInner object itself. @@ -213,7 +213,7 @@ public LoadBalancingRuleInner withLoadDistribution(LoadDistribution loadDistribu } /** - * Get the frontendPort value. + * Get the port for the external endpoint. Port numbers for each rule must be unique within the Load Balancer. Acceptable values are between 0 and 65534. Note that value 0 enables "Any Port". * * @return the frontendPort value */ @@ -222,7 +222,7 @@ public int frontendPort() { } /** - * Set the frontendPort value. + * Set the port for the external endpoint. Port numbers for each rule must be unique within the Load Balancer. Acceptable values are between 0 and 65534. Note that value 0 enables "Any Port". * * @param frontendPort the frontendPort value to set * @return the LoadBalancingRuleInner object itself. @@ -233,7 +233,7 @@ public LoadBalancingRuleInner withFrontendPort(int frontendPort) { } /** - * Get the backendPort value. + * Get the port used for internal connections on the endpoint. Acceptable values are between 0 and 65535. Note that value 0 enables "Any Port". * * @return the backendPort value */ @@ -242,7 +242,7 @@ public Integer backendPort() { } /** - * Set the backendPort value. + * Set the port used for internal connections on the endpoint. Acceptable values are between 0 and 65535. Note that value 0 enables "Any Port". * * @param backendPort the backendPort value to set * @return the LoadBalancingRuleInner object itself. @@ -253,7 +253,7 @@ public LoadBalancingRuleInner withBackendPort(Integer backendPort) { } /** - * Get the idleTimeoutInMinutes value. + * Get the timeout for the TCP idle connection. The value can be set between 4 and 30 minutes. The default value is 4 minutes. This element is only used when the protocol is set to TCP. * * @return the idleTimeoutInMinutes value */ @@ -262,7 +262,7 @@ public Integer idleTimeoutInMinutes() { } /** - * Set the idleTimeoutInMinutes value. + * Set the timeout for the TCP idle connection. The value can be set between 4 and 30 minutes. The default value is 4 minutes. This element is only used when the protocol is set to TCP. * * @param idleTimeoutInMinutes the idleTimeoutInMinutes value to set * @return the LoadBalancingRuleInner object itself. @@ -273,7 +273,7 @@ public LoadBalancingRuleInner withIdleTimeoutInMinutes(Integer idleTimeoutInMinu } /** - * Get the enableFloatingIP value. + * Get configures a virtual machine's endpoint for the floating IP capability required to configure a SQL AlwaysOn Availability Group. This setting is required when using the SQL AlwaysOn Availability Groups in SQL server. This setting can't be changed after you create the endpoint. * * @return the enableFloatingIP value */ @@ -282,7 +282,7 @@ public Boolean enableFloatingIP() { } /** - * Set the enableFloatingIP value. + * Set configures a virtual machine's endpoint for the floating IP capability required to configure a SQL AlwaysOn Availability Group. This setting is required when using the SQL AlwaysOn Availability Groups in SQL server. This setting can't be changed after you create the endpoint. * * @param enableFloatingIP the enableFloatingIP value to set * @return the LoadBalancingRuleInner object itself. @@ -293,7 +293,7 @@ public LoadBalancingRuleInner withEnableFloatingIP(Boolean enableFloatingIP) { } /** - * Get the disableOutboundSnat value. + * Get configures SNAT for the VMs in the backend pool to use the publicIP address specified in the frontend of the load balancing rule. * * @return the disableOutboundSnat value */ @@ -302,7 +302,7 @@ public Boolean disableOutboundSnat() { } /** - * Set the disableOutboundSnat value. + * Set configures SNAT for the VMs in the backend pool to use the publicIP address specified in the frontend of the load balancing rule. * * @param disableOutboundSnat the disableOutboundSnat value to set * @return the LoadBalancingRuleInner object itself. @@ -313,7 +313,7 @@ public LoadBalancingRuleInner withDisableOutboundSnat(Boolean disableOutboundSna } /** - * Get the provisioningState value. + * Get gets the provisioning state of the PublicIP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @return the provisioningState value */ @@ -322,7 +322,7 @@ public String provisioningState() { } /** - * Set the provisioningState value. + * Set gets the provisioning state of the PublicIP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @param provisioningState the provisioningState value to set * @return the LoadBalancingRuleInner object itself. @@ -333,7 +333,7 @@ public LoadBalancingRuleInner withProvisioningState(String provisioningState) { } /** - * Get the name value. + * Get the name of the resource that is unique within a resource group. This name can be used to access the resource. * * @return the name value */ @@ -342,7 +342,7 @@ public String name() { } /** - * Set the name value. + * Set the name of the resource that is unique within a resource group. This name can be used to access the resource. * * @param name the name value to set * @return the LoadBalancingRuleInner object itself. @@ -353,7 +353,7 @@ public LoadBalancingRuleInner withName(String name) { } /** - * Get the etag value. + * Get a unique read-only string that changes whenever the resource is updated. * * @return the etag value */ @@ -362,7 +362,7 @@ public String etag() { } /** - * Set the etag value. + * Set a unique read-only string that changes whenever the resource is updated. * * @param etag the etag value to set * @return the LoadBalancingRuleInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/LocalNetworkGatewayInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/LocalNetworkGatewayInner.java index ddc88c70ec6..239291547db 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/LocalNetworkGatewayInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/LocalNetworkGatewayInner.java @@ -65,7 +65,7 @@ public class LocalNetworkGatewayInner extends Resource { private String id; /** - * Get the localNetworkAddressSpace value. + * Get local network site address space. * * @return the localNetworkAddressSpace value */ @@ -74,7 +74,7 @@ public AddressSpace localNetworkAddressSpace() { } /** - * Set the localNetworkAddressSpace value. + * Set local network site address space. * * @param localNetworkAddressSpace the localNetworkAddressSpace value to set * @return the LocalNetworkGatewayInner object itself. @@ -85,7 +85,7 @@ public LocalNetworkGatewayInner withLocalNetworkAddressSpace(AddressSpace localN } /** - * Get the gatewayIpAddress value. + * Get iP address of local network gateway. * * @return the gatewayIpAddress value */ @@ -94,7 +94,7 @@ public String gatewayIpAddress() { } /** - * Set the gatewayIpAddress value. + * Set iP address of local network gateway. * * @param gatewayIpAddress the gatewayIpAddress value to set * @return the LocalNetworkGatewayInner object itself. @@ -105,7 +105,7 @@ public LocalNetworkGatewayInner withGatewayIpAddress(String gatewayIpAddress) { } /** - * Get the bgpSettings value. + * Get local network gateway's BGP speaker settings. * * @return the bgpSettings value */ @@ -114,7 +114,7 @@ public BgpSettings bgpSettings() { } /** - * Set the bgpSettings value. + * Set local network gateway's BGP speaker settings. * * @param bgpSettings the bgpSettings value to set * @return the LocalNetworkGatewayInner object itself. @@ -125,7 +125,7 @@ public LocalNetworkGatewayInner withBgpSettings(BgpSettings bgpSettings) { } /** - * Get the resourceGuid value. + * Get the resource GUID property of the LocalNetworkGateway resource. * * @return the resourceGuid value */ @@ -134,7 +134,7 @@ public String resourceGuid() { } /** - * Set the resourceGuid value. + * Set the resource GUID property of the LocalNetworkGateway resource. * * @param resourceGuid the resourceGuid value to set * @return the LocalNetworkGatewayInner object itself. @@ -145,7 +145,7 @@ public LocalNetworkGatewayInner withResourceGuid(String resourceGuid) { } /** - * Get the provisioningState value. + * Get the provisioning state of the LocalNetworkGateway resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @return the provisioningState value */ @@ -154,7 +154,7 @@ public String provisioningState() { } /** - * Get the etag value. + * Get a unique read-only string that changes whenever the resource is updated. * * @return the etag value */ @@ -163,7 +163,7 @@ public String etag() { } /** - * Set the etag value. + * Set a unique read-only string that changes whenever the resource is updated. * * @param etag the etag value to set * @return the LocalNetworkGatewayInner object itself. @@ -174,7 +174,7 @@ public LocalNetworkGatewayInner withEtag(String etag) { } /** - * Get the id value. + * Get resource ID. * * @return the id value */ @@ -183,7 +183,7 @@ public String id() { } /** - * Set the id value. + * Set resource ID. * * @param id the id value to set * @return the LocalNetworkGatewayInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/NetworkInterfaceIPConfigurationInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/NetworkInterfaceIPConfigurationInner.java index 2036b712338..5bf3ae55374 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/NetworkInterfaceIPConfigurationInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/NetworkInterfaceIPConfigurationInner.java @@ -106,7 +106,7 @@ public class NetworkInterfaceIPConfigurationInner extends SubResource { private String etag; /** - * Get the applicationGatewayBackendAddressPools value. + * Get the reference of ApplicationGatewayBackendAddressPool resource. * * @return the applicationGatewayBackendAddressPools value */ @@ -115,7 +115,7 @@ public List applicationGatewayBackend } /** - * Set the applicationGatewayBackendAddressPools value. + * Set the reference of ApplicationGatewayBackendAddressPool resource. * * @param applicationGatewayBackendAddressPools the applicationGatewayBackendAddressPools value to set * @return the NetworkInterfaceIPConfigurationInner object itself. @@ -126,7 +126,7 @@ public NetworkInterfaceIPConfigurationInner withApplicationGatewayBackendAddress } /** - * Get the loadBalancerBackendAddressPools value. + * Get the reference of LoadBalancerBackendAddressPool resource. * * @return the loadBalancerBackendAddressPools value */ @@ -135,7 +135,7 @@ public List loadBalancerBackendAddressPools() { } /** - * Set the loadBalancerBackendAddressPools value. + * Set the reference of LoadBalancerBackendAddressPool resource. * * @param loadBalancerBackendAddressPools the loadBalancerBackendAddressPools value to set * @return the NetworkInterfaceIPConfigurationInner object itself. @@ -146,7 +146,7 @@ public NetworkInterfaceIPConfigurationInner withLoadBalancerBackendAddressPools( } /** - * Get the loadBalancerInboundNatRules value. + * Get a list of references of LoadBalancerInboundNatRules. * * @return the loadBalancerInboundNatRules value */ @@ -155,7 +155,7 @@ public List loadBalancerInboundNatRules() { } /** - * Set the loadBalancerInboundNatRules value. + * Set a list of references of LoadBalancerInboundNatRules. * * @param loadBalancerInboundNatRules the loadBalancerInboundNatRules value to set * @return the NetworkInterfaceIPConfigurationInner object itself. @@ -166,7 +166,7 @@ public NetworkInterfaceIPConfigurationInner withLoadBalancerInboundNatRules(List } /** - * Get the privateIPAddress value. + * Get private IP address of the IP configuration. * * @return the privateIPAddress value */ @@ -175,7 +175,7 @@ public String privateIPAddress() { } /** - * Set the privateIPAddress value. + * Set private IP address of the IP configuration. * * @param privateIPAddress the privateIPAddress value to set * @return the NetworkInterfaceIPConfigurationInner object itself. @@ -186,7 +186,7 @@ public NetworkInterfaceIPConfigurationInner withPrivateIPAddress(String privateI } /** - * Get the privateIPAllocationMethod value. + * Get defines how a private IP address is assigned. Possible values are: 'Static' and 'Dynamic'. Possible values include: 'Static', 'Dynamic'. * * @return the privateIPAllocationMethod value */ @@ -195,7 +195,7 @@ public IPAllocationMethod privateIPAllocationMethod() { } /** - * Set the privateIPAllocationMethod value. + * Set defines how a private IP address is assigned. Possible values are: 'Static' and 'Dynamic'. Possible values include: 'Static', 'Dynamic'. * * @param privateIPAllocationMethod the privateIPAllocationMethod value to set * @return the NetworkInterfaceIPConfigurationInner object itself. @@ -206,7 +206,7 @@ public NetworkInterfaceIPConfigurationInner withPrivateIPAllocationMethod(IPAllo } /** - * Get the privateIPAddressVersion value. + * Get available from Api-Version 2016-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. Possible values include: 'IPv4', 'IPv6'. * * @return the privateIPAddressVersion value */ @@ -215,7 +215,7 @@ public IPVersion privateIPAddressVersion() { } /** - * Set the privateIPAddressVersion value. + * Set available from Api-Version 2016-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. Possible values include: 'IPv4', 'IPv6'. * * @param privateIPAddressVersion the privateIPAddressVersion value to set * @return the NetworkInterfaceIPConfigurationInner object itself. @@ -226,7 +226,7 @@ public NetworkInterfaceIPConfigurationInner withPrivateIPAddressVersion(IPVersio } /** - * Get the subnet value. + * Get subnet bound to the IP configuration. * * @return the subnet value */ @@ -235,7 +235,7 @@ public SubnetInner subnet() { } /** - * Set the subnet value. + * Set subnet bound to the IP configuration. * * @param subnet the subnet value to set * @return the NetworkInterfaceIPConfigurationInner object itself. @@ -246,7 +246,7 @@ public NetworkInterfaceIPConfigurationInner withSubnet(SubnetInner subnet) { } /** - * Get the primary value. + * Get gets whether this is a primary customer address on the network interface. * * @return the primary value */ @@ -255,7 +255,7 @@ public Boolean primary() { } /** - * Set the primary value. + * Set gets whether this is a primary customer address on the network interface. * * @param primary the primary value to set * @return the NetworkInterfaceIPConfigurationInner object itself. @@ -266,7 +266,7 @@ public NetworkInterfaceIPConfigurationInner withPrimary(Boolean primary) { } /** - * Get the publicIPAddress value. + * Get public IP address bound to the IP configuration. * * @return the publicIPAddress value */ @@ -275,7 +275,7 @@ public PublicIPAddressInner publicIPAddress() { } /** - * Set the publicIPAddress value. + * Set public IP address bound to the IP configuration. * * @param publicIPAddress the publicIPAddress value to set * @return the NetworkInterfaceIPConfigurationInner object itself. @@ -286,7 +286,7 @@ public NetworkInterfaceIPConfigurationInner withPublicIPAddress(PublicIPAddressI } /** - * Get the applicationSecurityGroups value. + * Get application security groups in which the IP configuration is included. * * @return the applicationSecurityGroups value */ @@ -295,7 +295,7 @@ public List applicationSecurityGroups() { } /** - * Set the applicationSecurityGroups value. + * Set application security groups in which the IP configuration is included. * * @param applicationSecurityGroups the applicationSecurityGroups value to set * @return the NetworkInterfaceIPConfigurationInner object itself. @@ -306,7 +306,7 @@ public NetworkInterfaceIPConfigurationInner withApplicationSecurityGroups(List ipConfigurations() { } /** - * Set the ipConfigurations value. + * Set a list of IPConfigurations of the network interface. * * @param ipConfigurations the ipConfigurations value to set * @return the NetworkInterfaceInner object itself. @@ -145,7 +145,7 @@ public NetworkInterfaceInner withIpConfigurations(List securityRules() { } /** - * Set the securityRules value. + * Set a collection of security rules of the network security group. * * @param securityRules the securityRules value to set * @return the NetworkSecurityGroupInner object itself. @@ -90,7 +90,7 @@ public NetworkSecurityGroupInner withSecurityRules(List secur } /** - * Get the defaultSecurityRules value. + * Get the default security rules of network security group. * * @return the defaultSecurityRules value */ @@ -99,7 +99,7 @@ public List defaultSecurityRules() { } /** - * Set the defaultSecurityRules value. + * Set the default security rules of network security group. * * @param defaultSecurityRules the defaultSecurityRules value to set * @return the NetworkSecurityGroupInner object itself. @@ -110,7 +110,7 @@ public NetworkSecurityGroupInner withDefaultSecurityRules(List networkInterfaces() { } /** - * Get the subnets value. + * Get a collection of references to subnets. * * @return the subnets value */ @@ -128,7 +128,7 @@ public List subnets() { } /** - * Get the resourceGuid value. + * Get the resource GUID property of the network security group resource. * * @return the resourceGuid value */ @@ -137,7 +137,7 @@ public String resourceGuid() { } /** - * Set the resourceGuid value. + * Set the resource GUID property of the network security group resource. * * @param resourceGuid the resourceGuid value to set * @return the NetworkSecurityGroupInner object itself. @@ -148,7 +148,7 @@ public NetworkSecurityGroupInner withResourceGuid(String resourceGuid) { } /** - * Get the provisioningState value. + * Get the provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @return the provisioningState value */ @@ -157,7 +157,7 @@ public String provisioningState() { } /** - * Set the provisioningState value. + * Set the provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @param provisioningState the provisioningState value to set * @return the NetworkSecurityGroupInner object itself. @@ -168,7 +168,7 @@ public NetworkSecurityGroupInner withProvisioningState(String provisioningState) } /** - * Get the etag value. + * Get a unique read-only string that changes whenever the resource is updated. * * @return the etag value */ @@ -177,7 +177,7 @@ public String etag() { } /** - * Set the etag value. + * Set a unique read-only string that changes whenever the resource is updated. * * @param etag the etag value to set * @return the NetworkSecurityGroupInner object itself. @@ -188,7 +188,7 @@ public NetworkSecurityGroupInner withEtag(String etag) { } /** - * Get the id value. + * Get resource ID. * * @return the id value */ @@ -197,7 +197,7 @@ public String id() { } /** - * Set the id value. + * Set resource ID. * * @param id the id value to set * @return the NetworkSecurityGroupInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/NetworkWatcherInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/NetworkWatcherInner.java index 0afa671c44e..863f17e22b4 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/NetworkWatcherInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/NetworkWatcherInner.java @@ -40,7 +40,7 @@ public class NetworkWatcherInner extends Resource { private String id; /** - * Get the etag value. + * Get a unique read-only string that changes whenever the resource is updated. * * @return the etag value */ @@ -49,7 +49,7 @@ public String etag() { } /** - * Set the etag value. + * Set a unique read-only string that changes whenever the resource is updated. * * @param etag the etag value to set * @return the NetworkWatcherInner object itself. @@ -60,7 +60,7 @@ public NetworkWatcherInner withEtag(String etag) { } /** - * Get the provisioningState value. + * Get the provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. * * @return the provisioningState value */ @@ -69,7 +69,7 @@ public ProvisioningState provisioningState() { } /** - * Get the id value. + * Get resource ID. * * @return the id value */ @@ -78,7 +78,7 @@ public String id() { } /** - * Set the id value. + * Set resource ID. * * @param id the id value to set * @return the NetworkWatcherInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/NextHopResultInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/NextHopResultInner.java index 5e51fceb175..9b71ab30f12 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/NextHopResultInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/NextHopResultInner.java @@ -37,7 +37,7 @@ public class NextHopResultInner { private String routeTableId; /** - * Get the nextHopType value. + * Get next hop type. Possible values include: 'Internet', 'VirtualAppliance', 'VirtualNetworkGateway', 'VnetLocal', 'HyperNetGateway', 'None'. * * @return the nextHopType value */ @@ -46,7 +46,7 @@ public NextHopType nextHopType() { } /** - * Set the nextHopType value. + * Set next hop type. Possible values include: 'Internet', 'VirtualAppliance', 'VirtualNetworkGateway', 'VnetLocal', 'HyperNetGateway', 'None'. * * @param nextHopType the nextHopType value to set * @return the NextHopResultInner object itself. @@ -57,7 +57,7 @@ public NextHopResultInner withNextHopType(NextHopType nextHopType) { } /** - * Get the nextHopIpAddress value. + * Get next hop IP Address. * * @return the nextHopIpAddress value */ @@ -66,7 +66,7 @@ public String nextHopIpAddress() { } /** - * Set the nextHopIpAddress value. + * Set next hop IP Address. * * @param nextHopIpAddress the nextHopIpAddress value to set * @return the NextHopResultInner object itself. @@ -77,7 +77,7 @@ public NextHopResultInner withNextHopIpAddress(String nextHopIpAddress) { } /** - * Get the routeTableId value. + * Get the resource identifier for the route table associated with the route being returned. If the route being returned does not correspond to any user created routes then this field will be the string 'System Route'. * * @return the routeTableId value */ @@ -86,7 +86,7 @@ public String routeTableId() { } /** - * Set the routeTableId value. + * Set the resource identifier for the route table associated with the route being returned. If the route being returned does not correspond to any user created routes then this field will be the string 'System Route'. * * @param routeTableId the routeTableId value to set * @return the NextHopResultInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/OperationInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/OperationInner.java index 8d4e7462098..922d53ceab5 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/OperationInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/OperationInner.java @@ -43,7 +43,7 @@ public class OperationInner { private OperationPropertiesFormatServiceSpecification serviceSpecification; /** - * Get the name value. + * Get operation name: {provider}/{resource}/{operation}. * * @return the name value */ @@ -52,7 +52,7 @@ public String name() { } /** - * Set the name value. + * Set operation name: {provider}/{resource}/{operation}. * * @param name the name value to set * @return the OperationInner object itself. @@ -63,7 +63,7 @@ public OperationInner withName(String name) { } /** - * Get the display value. + * Get display metadata associated with the operation. * * @return the display value */ @@ -72,7 +72,7 @@ public OperationDisplay display() { } /** - * Set the display value. + * Set display metadata associated with the operation. * * @param display the display value to set * @return the OperationInner object itself. @@ -83,7 +83,7 @@ public OperationInner withDisplay(OperationDisplay display) { } /** - * Get the origin value. + * Get origin of the operation. * * @return the origin value */ @@ -92,7 +92,7 @@ public String origin() { } /** - * Set the origin value. + * Set origin of the operation. * * @param origin the origin value to set * @return the OperationInner object itself. @@ -103,7 +103,7 @@ public OperationInner withOrigin(String origin) { } /** - * Get the serviceSpecification value. + * Get specification of the service. * * @return the serviceSpecification value */ @@ -112,7 +112,7 @@ public OperationPropertiesFormatServiceSpecification serviceSpecification() { } /** - * Set the serviceSpecification value. + * Set specification of the service. * * @param serviceSpecification the serviceSpecification value to set * @return the OperationInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/OutboundNatRuleInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/OutboundNatRuleInner.java index b490c7356f8..f4a9a9d7b3b 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/OutboundNatRuleInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/OutboundNatRuleInner.java @@ -58,7 +58,7 @@ public class OutboundNatRuleInner extends SubResource { private String etag; /** - * Get the allocatedOutboundPorts value. + * Get the number of outbound ports to be used for NAT. * * @return the allocatedOutboundPorts value */ @@ -67,7 +67,7 @@ public Integer allocatedOutboundPorts() { } /** - * Set the allocatedOutboundPorts value. + * Set the number of outbound ports to be used for NAT. * * @param allocatedOutboundPorts the allocatedOutboundPorts value to set * @return the OutboundNatRuleInner object itself. @@ -78,7 +78,7 @@ public OutboundNatRuleInner withAllocatedOutboundPorts(Integer allocatedOutbound } /** - * Get the frontendIPConfigurations value. + * Get the Frontend IP addresses of the load balancer. * * @return the frontendIPConfigurations value */ @@ -87,7 +87,7 @@ public List frontendIPConfigurations() { } /** - * Set the frontendIPConfigurations value. + * Set the Frontend IP addresses of the load balancer. * * @param frontendIPConfigurations the frontendIPConfigurations value to set * @return the OutboundNatRuleInner object itself. @@ -98,7 +98,7 @@ public OutboundNatRuleInner withFrontendIPConfigurations(List front } /** - * Get the backendAddressPool value. + * Get a reference to a pool of DIPs. Outbound traffic is randomly load balanced across IPs in the backend IPs. * * @return the backendAddressPool value */ @@ -107,7 +107,7 @@ public SubResource backendAddressPool() { } /** - * Set the backendAddressPool value. + * Set a reference to a pool of DIPs. Outbound traffic is randomly load balanced across IPs in the backend IPs. * * @param backendAddressPool the backendAddressPool value to set * @return the OutboundNatRuleInner object itself. @@ -118,7 +118,7 @@ public OutboundNatRuleInner withBackendAddressPool(SubResource backendAddressPoo } /** - * Get the provisioningState value. + * Get gets the provisioning state of the PublicIP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @return the provisioningState value */ @@ -127,7 +127,7 @@ public String provisioningState() { } /** - * Set the provisioningState value. + * Set gets the provisioning state of the PublicIP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @param provisioningState the provisioningState value to set * @return the OutboundNatRuleInner object itself. @@ -138,7 +138,7 @@ public OutboundNatRuleInner withProvisioningState(String provisioningState) { } /** - * Get the name value. + * Get the name of the resource that is unique within a resource group. This name can be used to access the resource. * * @return the name value */ @@ -147,7 +147,7 @@ public String name() { } /** - * Set the name value. + * Set the name of the resource that is unique within a resource group. This name can be used to access the resource. * * @param name the name value to set * @return the OutboundNatRuleInner object itself. @@ -158,7 +158,7 @@ public OutboundNatRuleInner withName(String name) { } /** - * Get the etag value. + * Get a unique read-only string that changes whenever the resource is updated. * * @return the etag value */ @@ -167,7 +167,7 @@ public String etag() { } /** - * Set the etag value. + * Set a unique read-only string that changes whenever the resource is updated. * * @param etag the etag value to set * @return the OutboundNatRuleInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/PacketCaptureInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/PacketCaptureInner.java index 07191430d4f..1a0b02ad79f 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/PacketCaptureInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/PacketCaptureInner.java @@ -56,7 +56,7 @@ public class PacketCaptureInner { private List filters; /** - * Get the target value. + * Get the ID of the targeted resource, only VM is currently supported. * * @return the target value */ @@ -65,7 +65,7 @@ public String target() { } /** - * Set the target value. + * Set the ID of the targeted resource, only VM is currently supported. * * @param target the target value to set * @return the PacketCaptureInner object itself. @@ -76,7 +76,7 @@ public PacketCaptureInner withTarget(String target) { } /** - * Get the bytesToCapturePerPacket value. + * Get number of bytes captured per packet, the remaining bytes are truncated. * * @return the bytesToCapturePerPacket value */ @@ -85,7 +85,7 @@ public Integer bytesToCapturePerPacket() { } /** - * Set the bytesToCapturePerPacket value. + * Set number of bytes captured per packet, the remaining bytes are truncated. * * @param bytesToCapturePerPacket the bytesToCapturePerPacket value to set * @return the PacketCaptureInner object itself. @@ -96,7 +96,7 @@ public PacketCaptureInner withBytesToCapturePerPacket(Integer bytesToCapturePerP } /** - * Get the totalBytesPerSession value. + * Get maximum size of the capture output. * * @return the totalBytesPerSession value */ @@ -105,7 +105,7 @@ public Integer totalBytesPerSession() { } /** - * Set the totalBytesPerSession value. + * Set maximum size of the capture output. * * @param totalBytesPerSession the totalBytesPerSession value to set * @return the PacketCaptureInner object itself. @@ -116,7 +116,7 @@ public PacketCaptureInner withTotalBytesPerSession(Integer totalBytesPerSession) } /** - * Get the timeLimitInSeconds value. + * Get maximum duration of the capture session in seconds. * * @return the timeLimitInSeconds value */ @@ -125,7 +125,7 @@ public Integer timeLimitInSeconds() { } /** - * Set the timeLimitInSeconds value. + * Set maximum duration of the capture session in seconds. * * @param timeLimitInSeconds the timeLimitInSeconds value to set * @return the PacketCaptureInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/PacketCaptureQueryStatusResultInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/PacketCaptureQueryStatusResultInner.java index 707203c3378..951fc34f5b4 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/PacketCaptureQueryStatusResultInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/PacketCaptureQueryStatusResultInner.java @@ -56,7 +56,7 @@ public class PacketCaptureQueryStatusResultInner { private List packetCaptureError; /** - * Get the name value. + * Get the name of the packet capture resource. * * @return the name value */ @@ -65,7 +65,7 @@ public String name() { } /** - * Set the name value. + * Set the name of the packet capture resource. * * @param name the name value to set * @return the PacketCaptureQueryStatusResultInner object itself. @@ -76,7 +76,7 @@ public PacketCaptureQueryStatusResultInner withName(String name) { } /** - * Get the id value. + * Get the ID of the packet capture resource. * * @return the id value */ @@ -85,7 +85,7 @@ public String id() { } /** - * Set the id value. + * Set the ID of the packet capture resource. * * @param id the id value to set * @return the PacketCaptureQueryStatusResultInner object itself. @@ -96,7 +96,7 @@ public PacketCaptureQueryStatusResultInner withId(String id) { } /** - * Get the captureStartTime value. + * Get the start time of the packet capture session. * * @return the captureStartTime value */ @@ -105,7 +105,7 @@ public DateTime captureStartTime() { } /** - * Set the captureStartTime value. + * Set the start time of the packet capture session. * * @param captureStartTime the captureStartTime value to set * @return the PacketCaptureQueryStatusResultInner object itself. @@ -116,7 +116,7 @@ public PacketCaptureQueryStatusResultInner withCaptureStartTime(DateTime capture } /** - * Get the packetCaptureStatus value. + * Get the status of the packet capture session. Possible values include: 'NotStarted', 'Running', 'Stopped', 'Error', 'Unknown'. * * @return the packetCaptureStatus value */ @@ -125,7 +125,7 @@ public PcStatus packetCaptureStatus() { } /** - * Set the packetCaptureStatus value. + * Set the status of the packet capture session. Possible values include: 'NotStarted', 'Running', 'Stopped', 'Error', 'Unknown'. * * @param packetCaptureStatus the packetCaptureStatus value to set * @return the PacketCaptureQueryStatusResultInner object itself. @@ -136,7 +136,7 @@ public PacketCaptureQueryStatusResultInner withPacketCaptureStatus(PcStatus pack } /** - * Get the stopReason value. + * Get the reason the current packet capture session was stopped. * * @return the stopReason value */ @@ -145,7 +145,7 @@ public String stopReason() { } /** - * Set the stopReason value. + * Set the reason the current packet capture session was stopped. * * @param stopReason the stopReason value to set * @return the PacketCaptureQueryStatusResultInner object itself. @@ -156,7 +156,7 @@ public PacketCaptureQueryStatusResultInner withStopReason(String stopReason) { } /** - * Get the packetCaptureError value. + * Get list of errors of packet capture session. * * @return the packetCaptureError value */ @@ -165,7 +165,7 @@ public List packetCaptureError() { } /** - * Set the packetCaptureError value. + * Set list of errors of packet capture session. * * @param packetCaptureError the packetCaptureError value to set * @return the PacketCaptureQueryStatusResultInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/PacketCaptureResultInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/PacketCaptureResultInner.java index 8dee161afd1..5c74f37c45b 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/PacketCaptureResultInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/PacketCaptureResultInner.java @@ -82,7 +82,7 @@ public class PacketCaptureResultInner { private ProvisioningState provisioningState; /** - * Get the name value. + * Get name of the packet capture session. * * @return the name value */ @@ -91,7 +91,7 @@ public String name() { } /** - * Get the id value. + * Get iD of the packet capture operation. * * @return the id value */ @@ -120,7 +120,7 @@ public PacketCaptureResultInner withEtag(String etag) { } /** - * Get the target value. + * Get the ID of the targeted resource, only VM is currently supported. * * @return the target value */ @@ -129,7 +129,7 @@ public String target() { } /** - * Set the target value. + * Set the ID of the targeted resource, only VM is currently supported. * * @param target the target value to set * @return the PacketCaptureResultInner object itself. @@ -140,7 +140,7 @@ public PacketCaptureResultInner withTarget(String target) { } /** - * Get the bytesToCapturePerPacket value. + * Get number of bytes captured per packet, the remaining bytes are truncated. * * @return the bytesToCapturePerPacket value */ @@ -149,7 +149,7 @@ public Integer bytesToCapturePerPacket() { } /** - * Set the bytesToCapturePerPacket value. + * Set number of bytes captured per packet, the remaining bytes are truncated. * * @param bytesToCapturePerPacket the bytesToCapturePerPacket value to set * @return the PacketCaptureResultInner object itself. @@ -160,7 +160,7 @@ public PacketCaptureResultInner withBytesToCapturePerPacket(Integer bytesToCaptu } /** - * Get the totalBytesPerSession value. + * Get maximum size of the capture output. * * @return the totalBytesPerSession value */ @@ -169,7 +169,7 @@ public Integer totalBytesPerSession() { } /** - * Set the totalBytesPerSession value. + * Set maximum size of the capture output. * * @param totalBytesPerSession the totalBytesPerSession value to set * @return the PacketCaptureResultInner object itself. @@ -180,7 +180,7 @@ public PacketCaptureResultInner withTotalBytesPerSession(Integer totalBytesPerSe } /** - * Get the timeLimitInSeconds value. + * Get maximum duration of the capture session in seconds. * * @return the timeLimitInSeconds value */ @@ -189,7 +189,7 @@ public Integer timeLimitInSeconds() { } /** - * Set the timeLimitInSeconds value. + * Set maximum duration of the capture session in seconds. * * @param timeLimitInSeconds the timeLimitInSeconds value to set * @return the PacketCaptureResultInner object itself. @@ -240,7 +240,7 @@ public PacketCaptureResultInner withFilters(List filters) { } /** - * Get the provisioningState value. + * Get the provisioning state of the packet capture session. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. * * @return the provisioningState value */ @@ -249,7 +249,7 @@ public ProvisioningState provisioningState() { } /** - * Set the provisioningState value. + * Set the provisioning state of the packet capture session. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. * * @param provisioningState the provisioningState value to set * @return the PacketCaptureResultInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/PatchRouteFilterInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/PatchRouteFilterInner.java index a062b75fbe7..3251f07101a 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/PatchRouteFilterInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/PatchRouteFilterInner.java @@ -64,7 +64,7 @@ public class PatchRouteFilterInner extends SubResource { private Map tags; /** - * Get the rules value. + * Get collection of RouteFilterRules contained within a route filter. * * @return the rules value */ @@ -73,7 +73,7 @@ public List rules() { } /** - * Set the rules value. + * Set collection of RouteFilterRules contained within a route filter. * * @param rules the rules value to set * @return the PatchRouteFilterInner object itself. @@ -84,7 +84,7 @@ public PatchRouteFilterInner withRules(List rules) { } /** - * Get the peerings value. + * Get a collection of references to express route circuit peerings. * * @return the peerings value */ @@ -93,7 +93,7 @@ public List peerings() { } /** - * Set the peerings value. + * Set a collection of references to express route circuit peerings. * * @param peerings the peerings value to set * @return the PatchRouteFilterInner object itself. @@ -104,7 +104,7 @@ public PatchRouteFilterInner withPeerings(List } /** - * Get the provisioningState value. + * Get the provisioning state of the resource. Possible values are: 'Updating', 'Deleting', 'Succeeded' and 'Failed'. * * @return the provisioningState value */ @@ -113,7 +113,7 @@ public String provisioningState() { } /** - * Get the name value. + * Get the name of the resource that is unique within a resource group. This name can be used to access the resource. * * @return the name value */ @@ -122,7 +122,7 @@ public String name() { } /** - * Get the etag value. + * Get a unique read-only string that changes whenever the resource is updated. * * @return the etag value */ @@ -131,7 +131,7 @@ public String etag() { } /** - * Get the type value. + * Get resource type. * * @return the type value */ @@ -140,7 +140,7 @@ public String type() { } /** - * Get the tags value. + * Get resource tags. * * @return the tags value */ @@ -149,7 +149,7 @@ public Map tags() { } /** - * Set the tags value. + * Set resource tags. * * @param tags the tags value to set * @return the PatchRouteFilterInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/PatchRouteFilterRuleInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/PatchRouteFilterRuleInner.java index 4dfe707da95..1e15b1f1623 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/PatchRouteFilterRuleInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/PatchRouteFilterRuleInner.java @@ -61,13 +61,15 @@ public class PatchRouteFilterRuleInner extends SubResource { /** * Creates an instance of PatchRouteFilterRuleInner class. + * @param access the access type of the rule. Valid values are: 'Allow', 'Deny'. Possible values include: 'Allow', 'Deny'. + * @param communities the collection for bgp community values to filter on. e.g. ['12076:5010','12076:5020']. */ public PatchRouteFilterRuleInner() { routeFilterRuleType = "Community"; } /** - * Get the access value. + * Get the access type of the rule. Valid values are: 'Allow', 'Deny'. Possible values include: 'Allow', 'Deny'. * * @return the access value */ @@ -76,7 +78,7 @@ public Access access() { } /** - * Set the access value. + * Set the access type of the rule. Valid values are: 'Allow', 'Deny'. Possible values include: 'Allow', 'Deny'. * * @param access the access value to set * @return the PatchRouteFilterRuleInner object itself. @@ -87,7 +89,7 @@ public PatchRouteFilterRuleInner withAccess(Access access) { } /** - * Get the routeFilterRuleType value. + * Get the rule type of the rule. Valid value is: 'Community'. * * @return the routeFilterRuleType value */ @@ -96,7 +98,7 @@ public String routeFilterRuleType() { } /** - * Set the routeFilterRuleType value. + * Set the rule type of the rule. Valid value is: 'Community'. * * @param routeFilterRuleType the routeFilterRuleType value to set * @return the PatchRouteFilterRuleInner object itself. @@ -107,7 +109,7 @@ public PatchRouteFilterRuleInner withRouteFilterRuleType(String routeFilterRuleT } /** - * Get the communities value. + * Get the collection for bgp community values to filter on. e.g. ['12076:5010','12076:5020']. * * @return the communities value */ @@ -116,7 +118,7 @@ public List communities() { } /** - * Set the communities value. + * Set the collection for bgp community values to filter on. e.g. ['12076:5010','12076:5020']. * * @param communities the communities value to set * @return the PatchRouteFilterRuleInner object itself. @@ -127,7 +129,7 @@ public PatchRouteFilterRuleInner withCommunities(List communities) { } /** - * Get the provisioningState value. + * Get the provisioning state of the resource. Possible values are: 'Updating', 'Deleting', 'Succeeded' and 'Failed'. * * @return the provisioningState value */ @@ -136,7 +138,7 @@ public String provisioningState() { } /** - * Get the name value. + * Get the name of the resource that is unique within a resource group. This name can be used to access the resource. * * @return the name value */ @@ -145,7 +147,7 @@ public String name() { } /** - * Get the etag value. + * Get a unique read-only string that changes whenever the resource is updated. * * @return the etag value */ diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ProbeInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ProbeInner.java index 2a66eefce0a..35b029af12e 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ProbeInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ProbeInner.java @@ -90,7 +90,7 @@ public class ProbeInner extends SubResource { private String etag; /** - * Get the loadBalancingRules value. + * Get the load balancer rules that use this probe. * * @return the loadBalancingRules value */ @@ -99,7 +99,7 @@ public List loadBalancingRules() { } /** - * Get the protocol value. + * Get the protocol of the end point. Possible values are: 'Http' or 'Tcp'. If 'Tcp' is specified, a received ACK is required for the probe to be successful. If 'Http' is specified, a 200 OK response from the specifies URI is required for the probe to be successful. Possible values include: 'Http', 'Tcp'. * * @return the protocol value */ @@ -108,7 +108,7 @@ public ProbeProtocol protocol() { } /** - * Set the protocol value. + * Set the protocol of the end point. Possible values are: 'Http' or 'Tcp'. If 'Tcp' is specified, a received ACK is required for the probe to be successful. If 'Http' is specified, a 200 OK response from the specifies URI is required for the probe to be successful. Possible values include: 'Http', 'Tcp'. * * @param protocol the protocol value to set * @return the ProbeInner object itself. @@ -119,7 +119,7 @@ public ProbeInner withProtocol(ProbeProtocol protocol) { } /** - * Get the port value. + * Get the port for communicating the probe. Possible values range from 1 to 65535, inclusive. * * @return the port value */ @@ -128,7 +128,7 @@ public int port() { } /** - * Set the port value. + * Set the port for communicating the probe. Possible values range from 1 to 65535, inclusive. * * @param port the port value to set * @return the ProbeInner object itself. @@ -139,7 +139,7 @@ public ProbeInner withPort(int port) { } /** - * Get the intervalInSeconds value. + * Get the interval, in seconds, for how frequently to probe the endpoint for health status. Typically, the interval is slightly less than half the allocated timeout period (in seconds) which allows two full probes before taking the instance out of rotation. The default value is 15, the minimum value is 5. * * @return the intervalInSeconds value */ @@ -148,7 +148,7 @@ public Integer intervalInSeconds() { } /** - * Set the intervalInSeconds value. + * Set the interval, in seconds, for how frequently to probe the endpoint for health status. Typically, the interval is slightly less than half the allocated timeout period (in seconds) which allows two full probes before taking the instance out of rotation. The default value is 15, the minimum value is 5. * * @param intervalInSeconds the intervalInSeconds value to set * @return the ProbeInner object itself. @@ -159,7 +159,7 @@ public ProbeInner withIntervalInSeconds(Integer intervalInSeconds) { } /** - * Get the numberOfProbes value. + * Get the number of probes where if no response, will result in stopping further traffic from being delivered to the endpoint. This values allows endpoints to be taken out of rotation faster or slower than the typical times used in Azure. * * @return the numberOfProbes value */ @@ -168,7 +168,7 @@ public Integer numberOfProbes() { } /** - * Set the numberOfProbes value. + * Set the number of probes where if no response, will result in stopping further traffic from being delivered to the endpoint. This values allows endpoints to be taken out of rotation faster or slower than the typical times used in Azure. * * @param numberOfProbes the numberOfProbes value to set * @return the ProbeInner object itself. @@ -179,7 +179,7 @@ public ProbeInner withNumberOfProbes(Integer numberOfProbes) { } /** - * Get the requestPath value. + * Get the URI used for requesting health status from the VM. Path is required if a protocol is set to http. Otherwise, it is not allowed. There is no default value. * * @return the requestPath value */ @@ -188,7 +188,7 @@ public String requestPath() { } /** - * Set the requestPath value. + * Set the URI used for requesting health status from the VM. Path is required if a protocol is set to http. Otherwise, it is not allowed. There is no default value. * * @param requestPath the requestPath value to set * @return the ProbeInner object itself. @@ -199,7 +199,7 @@ public ProbeInner withRequestPath(String requestPath) { } /** - * Get the provisioningState value. + * Get gets the provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @return the provisioningState value */ @@ -208,7 +208,7 @@ public String provisioningState() { } /** - * Set the provisioningState value. + * Set gets the provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @param provisioningState the provisioningState value to set * @return the ProbeInner object itself. @@ -219,7 +219,7 @@ public ProbeInner withProvisioningState(String provisioningState) { } /** - * Get the name value. + * Get gets name of the resource that is unique within a resource group. This name can be used to access the resource. * * @return the name value */ @@ -228,7 +228,7 @@ public String name() { } /** - * Set the name value. + * Set gets name of the resource that is unique within a resource group. This name can be used to access the resource. * * @param name the name value to set * @return the ProbeInner object itself. @@ -239,7 +239,7 @@ public ProbeInner withName(String name) { } /** - * Get the etag value. + * Get a unique read-only string that changes whenever the resource is updated. * * @return the etag value */ @@ -248,7 +248,7 @@ public String etag() { } /** - * Set the etag value. + * Set a unique read-only string that changes whenever the resource is updated. * * @param etag the etag value to set * @return the ProbeInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/PublicIPAddressInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/PublicIPAddressInner.java index 9ff270b7a68..fc4d138c88a 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/PublicIPAddressInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/PublicIPAddressInner.java @@ -108,7 +108,7 @@ public class PublicIPAddressInner extends Resource { private String id; /** - * Get the sku value. + * Get the public IP address SKU. * * @return the sku value */ @@ -117,7 +117,7 @@ public PublicIPAddressSku sku() { } /** - * Set the sku value. + * Set the public IP address SKU. * * @param sku the sku value to set * @return the PublicIPAddressInner object itself. @@ -128,7 +128,7 @@ public PublicIPAddressInner withSku(PublicIPAddressSku sku) { } /** - * Get the publicIPAllocationMethod value. + * Get the public IP allocation method. Possible values are: 'Static' and 'Dynamic'. Possible values include: 'Static', 'Dynamic'. * * @return the publicIPAllocationMethod value */ @@ -137,7 +137,7 @@ public IPAllocationMethod publicIPAllocationMethod() { } /** - * Set the publicIPAllocationMethod value. + * Set the public IP allocation method. Possible values are: 'Static' and 'Dynamic'. Possible values include: 'Static', 'Dynamic'. * * @param publicIPAllocationMethod the publicIPAllocationMethod value to set * @return the PublicIPAddressInner object itself. @@ -148,7 +148,7 @@ public PublicIPAddressInner withPublicIPAllocationMethod(IPAllocationMethod publ } /** - * Get the publicIPAddressVersion value. + * Get the public IP address version. Possible values are: 'IPv4' and 'IPv6'. Possible values include: 'IPv4', 'IPv6'. * * @return the publicIPAddressVersion value */ @@ -157,7 +157,7 @@ public IPVersion publicIPAddressVersion() { } /** - * Set the publicIPAddressVersion value. + * Set the public IP address version. Possible values are: 'IPv4' and 'IPv6'. Possible values include: 'IPv4', 'IPv6'. * * @param publicIPAddressVersion the publicIPAddressVersion value to set * @return the PublicIPAddressInner object itself. @@ -168,7 +168,7 @@ public PublicIPAddressInner withPublicIPAddressVersion(IPVersion publicIPAddress } /** - * Get the ipConfiguration value. + * Get the IP configuration associated with the public IP address. * * @return the ipConfiguration value */ @@ -177,7 +177,7 @@ public IPConfigurationInner ipConfiguration() { } /** - * Get the dnsSettings value. + * Get the FQDN of the DNS record associated with the public IP address. * * @return the dnsSettings value */ @@ -186,7 +186,7 @@ public PublicIPAddressDnsSettings dnsSettings() { } /** - * Set the dnsSettings value. + * Set the FQDN of the DNS record associated with the public IP address. * * @param dnsSettings the dnsSettings value to set * @return the PublicIPAddressInner object itself. @@ -197,7 +197,7 @@ public PublicIPAddressInner withDnsSettings(PublicIPAddressDnsSettings dnsSettin } /** - * Get the ipTags value. + * Get the list of tags associated with the public IP address. * * @return the ipTags value */ @@ -206,7 +206,7 @@ public List ipTags() { } /** - * Set the ipTags value. + * Set the list of tags associated with the public IP address. * * @param ipTags the ipTags value to set * @return the PublicIPAddressInner object itself. @@ -217,7 +217,7 @@ public PublicIPAddressInner withIpTags(List ipTags) { } /** - * Get the ipAddress value. + * Get the IP address associated with the public IP address resource. * * @return the ipAddress value */ @@ -226,7 +226,7 @@ public String ipAddress() { } /** - * Set the ipAddress value. + * Set the IP address associated with the public IP address resource. * * @param ipAddress the ipAddress value to set * @return the PublicIPAddressInner object itself. @@ -237,7 +237,7 @@ public PublicIPAddressInner withIpAddress(String ipAddress) { } /** - * Get the idleTimeoutInMinutes value. + * Get the idle timeout of the public IP address. * * @return the idleTimeoutInMinutes value */ @@ -246,7 +246,7 @@ public Integer idleTimeoutInMinutes() { } /** - * Set the idleTimeoutInMinutes value. + * Set the idle timeout of the public IP address. * * @param idleTimeoutInMinutes the idleTimeoutInMinutes value to set * @return the PublicIPAddressInner object itself. @@ -257,7 +257,7 @@ public PublicIPAddressInner withIdleTimeoutInMinutes(Integer idleTimeoutInMinute } /** - * Get the resourceGuid value. + * Get the resource GUID property of the public IP resource. * * @return the resourceGuid value */ @@ -266,7 +266,7 @@ public String resourceGuid() { } /** - * Set the resourceGuid value. + * Set the resource GUID property of the public IP resource. * * @param resourceGuid the resourceGuid value to set * @return the PublicIPAddressInner object itself. @@ -277,7 +277,7 @@ public PublicIPAddressInner withResourceGuid(String resourceGuid) { } /** - * Get the provisioningState value. + * Get the provisioning state of the PublicIP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @return the provisioningState value */ @@ -286,7 +286,7 @@ public String provisioningState() { } /** - * Set the provisioningState value. + * Set the provisioning state of the PublicIP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @param provisioningState the provisioningState value to set * @return the PublicIPAddressInner object itself. @@ -297,7 +297,7 @@ public PublicIPAddressInner withProvisioningState(String provisioningState) { } /** - * Get the etag value. + * Get a unique read-only string that changes whenever the resource is updated. * * @return the etag value */ @@ -306,7 +306,7 @@ public String etag() { } /** - * Set the etag value. + * Set a unique read-only string that changes whenever the resource is updated. * * @param etag the etag value to set * @return the PublicIPAddressInner object itself. @@ -317,7 +317,7 @@ public PublicIPAddressInner withEtag(String etag) { } /** - * Get the zones value. + * Get a list of availability zones denoting the IP allocated for the resource needs to come from. * * @return the zones value */ @@ -326,7 +326,7 @@ public List zones() { } /** - * Set the zones value. + * Set a list of availability zones denoting the IP allocated for the resource needs to come from. * * @param zones the zones value to set * @return the PublicIPAddressInner object itself. @@ -337,7 +337,7 @@ public PublicIPAddressInner withZones(List zones) { } /** - * Get the id value. + * Get resource ID. * * @return the id value */ @@ -346,7 +346,7 @@ public String id() { } /** - * Set the id value. + * Set resource ID. * * @param id the id value to set * @return the PublicIPAddressInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ResourceNavigationLinkInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ResourceNavigationLinkInner.java index ffccfd072cf..b704a732dc3 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ResourceNavigationLinkInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ResourceNavigationLinkInner.java @@ -49,7 +49,7 @@ public class ResourceNavigationLinkInner extends SubResource { private String etag; /** - * Get the linkedResourceType value. + * Get resource type of the linked resource. * * @return the linkedResourceType value */ @@ -58,7 +58,7 @@ public String linkedResourceType() { } /** - * Set the linkedResourceType value. + * Set resource type of the linked resource. * * @param linkedResourceType the linkedResourceType value to set * @return the ResourceNavigationLinkInner object itself. @@ -69,7 +69,7 @@ public ResourceNavigationLinkInner withLinkedResourceType(String linkedResourceT } /** - * Get the link value. + * Get link to the external resource. * * @return the link value */ @@ -78,7 +78,7 @@ public String link() { } /** - * Set the link value. + * Set link to the external resource. * * @param link the link value to set * @return the ResourceNavigationLinkInner object itself. @@ -89,7 +89,7 @@ public ResourceNavigationLinkInner withLink(String link) { } /** - * Get the provisioningState value. + * Get provisioning state of the ResourceNavigationLink resource. * * @return the provisioningState value */ @@ -98,7 +98,7 @@ public String provisioningState() { } /** - * Get the name value. + * Get name of the resource that is unique within a resource group. This name can be used to access the resource. * * @return the name value */ @@ -107,7 +107,7 @@ public String name() { } /** - * Set the name value. + * Set name of the resource that is unique within a resource group. This name can be used to access the resource. * * @param name the name value to set * @return the ResourceNavigationLinkInner object itself. @@ -118,7 +118,7 @@ public ResourceNavigationLinkInner withName(String name) { } /** - * Get the etag value. + * Get a unique read-only string that changes whenever the resource is updated. * * @return the etag value */ diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/RouteFilterInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/RouteFilterInner.java index ad0b7ad7643..e53a2f5158a 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/RouteFilterInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/RouteFilterInner.java @@ -53,7 +53,7 @@ public class RouteFilterInner extends Resource { private String id; /** - * Get the rules value. + * Get collection of RouteFilterRules contained within a route filter. * * @return the rules value */ @@ -62,7 +62,7 @@ public List rules() { } /** - * Set the rules value. + * Set collection of RouteFilterRules contained within a route filter. * * @param rules the rules value to set * @return the RouteFilterInner object itself. @@ -73,7 +73,7 @@ public RouteFilterInner withRules(List rules) { } /** - * Get the peerings value. + * Get a collection of references to express route circuit peerings. * * @return the peerings value */ @@ -82,7 +82,7 @@ public List peerings() { } /** - * Set the peerings value. + * Set a collection of references to express route circuit peerings. * * @param peerings the peerings value to set * @return the RouteFilterInner object itself. @@ -93,7 +93,7 @@ public RouteFilterInner withPeerings(List peeri } /** - * Get the provisioningState value. + * Get the provisioning state of the resource. Possible values are: 'Updating', 'Deleting', 'Succeeded' and 'Failed'. * * @return the provisioningState value */ @@ -102,7 +102,7 @@ public String provisioningState() { } /** - * Get the etag value. + * Get gets a unique read-only string that changes whenever the resource is updated. * * @return the etag value */ @@ -111,7 +111,7 @@ public String etag() { } /** - * Get the id value. + * Get resource ID. * * @return the id value */ @@ -120,7 +120,7 @@ public String id() { } /** - * Set the id value. + * Set resource ID. * * @param id the id value to set * @return the RouteFilterInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/RouteFilterRuleInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/RouteFilterRuleInner.java index 3b81a354e46..9cff55e910e 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/RouteFilterRuleInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/RouteFilterRuleInner.java @@ -67,13 +67,15 @@ public class RouteFilterRuleInner extends SubResource { /** * Creates an instance of RouteFilterRuleInner class. + * @param access the access type of the rule. Valid values are: 'Allow', 'Deny'. Possible values include: 'Allow', 'Deny'. + * @param communities the collection for bgp community values to filter on. e.g. ['12076:5010','12076:5020']. */ public RouteFilterRuleInner() { routeFilterRuleType = "Community"; } /** - * Get the access value. + * Get the access type of the rule. Valid values are: 'Allow', 'Deny'. Possible values include: 'Allow', 'Deny'. * * @return the access value */ @@ -82,7 +84,7 @@ public Access access() { } /** - * Set the access value. + * Set the access type of the rule. Valid values are: 'Allow', 'Deny'. Possible values include: 'Allow', 'Deny'. * * @param access the access value to set * @return the RouteFilterRuleInner object itself. @@ -93,7 +95,7 @@ public RouteFilterRuleInner withAccess(Access access) { } /** - * Get the routeFilterRuleType value. + * Get the rule type of the rule. Valid value is: 'Community'. * * @return the routeFilterRuleType value */ @@ -102,7 +104,7 @@ public String routeFilterRuleType() { } /** - * Set the routeFilterRuleType value. + * Set the rule type of the rule. Valid value is: 'Community'. * * @param routeFilterRuleType the routeFilterRuleType value to set * @return the RouteFilterRuleInner object itself. @@ -113,7 +115,7 @@ public RouteFilterRuleInner withRouteFilterRuleType(String routeFilterRuleType) } /** - * Get the communities value. + * Get the collection for bgp community values to filter on. e.g. ['12076:5010','12076:5020']. * * @return the communities value */ @@ -122,7 +124,7 @@ public List communities() { } /** - * Set the communities value. + * Set the collection for bgp community values to filter on. e.g. ['12076:5010','12076:5020']. * * @param communities the communities value to set * @return the RouteFilterRuleInner object itself. @@ -133,7 +135,7 @@ public RouteFilterRuleInner withCommunities(List communities) { } /** - * Get the provisioningState value. + * Get the provisioning state of the resource. Possible values are: 'Updating', 'Deleting', 'Succeeded' and 'Failed'. * * @return the provisioningState value */ @@ -142,7 +144,7 @@ public String provisioningState() { } /** - * Get the name value. + * Get the name of the resource that is unique within a resource group. This name can be used to access the resource. * * @return the name value */ @@ -151,7 +153,7 @@ public String name() { } /** - * Set the name value. + * Set the name of the resource that is unique within a resource group. This name can be used to access the resource. * * @param name the name value to set * @return the RouteFilterRuleInner object itself. @@ -162,7 +164,7 @@ public RouteFilterRuleInner withName(String name) { } /** - * Get the location value. + * Get resource location. * * @return the location value */ @@ -171,7 +173,7 @@ public String location() { } /** - * Set the location value. + * Set resource location. * * @param location the location value to set * @return the RouteFilterRuleInner object itself. @@ -182,7 +184,7 @@ public RouteFilterRuleInner withLocation(String location) { } /** - * Get the etag value. + * Get a unique read-only string that changes whenever the resource is updated. * * @return the etag value */ diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/RouteInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/RouteInner.java index d83cea616f2..7706f25c7c4 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/RouteInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/RouteInner.java @@ -61,7 +61,7 @@ public class RouteInner extends SubResource { private String etag; /** - * Get the addressPrefix value. + * Get the destination CIDR to which the route applies. * * @return the addressPrefix value */ @@ -70,7 +70,7 @@ public String addressPrefix() { } /** - * Set the addressPrefix value. + * Set the destination CIDR to which the route applies. * * @param addressPrefix the addressPrefix value to set * @return the RouteInner object itself. @@ -81,7 +81,7 @@ public RouteInner withAddressPrefix(String addressPrefix) { } /** - * Get the nextHopType value. + * Get the type of Azure hop the packet should be sent to. Possible values are: 'VirtualNetworkGateway', 'VnetLocal', 'Internet', 'VirtualAppliance', and 'None'. Possible values include: 'VirtualNetworkGateway', 'VnetLocal', 'Internet', 'VirtualAppliance', 'None'. * * @return the nextHopType value */ @@ -90,7 +90,7 @@ public RouteNextHopType nextHopType() { } /** - * Set the nextHopType value. + * Set the type of Azure hop the packet should be sent to. Possible values are: 'VirtualNetworkGateway', 'VnetLocal', 'Internet', 'VirtualAppliance', and 'None'. Possible values include: 'VirtualNetworkGateway', 'VnetLocal', 'Internet', 'VirtualAppliance', 'None'. * * @param nextHopType the nextHopType value to set * @return the RouteInner object itself. @@ -101,7 +101,7 @@ public RouteInner withNextHopType(RouteNextHopType nextHopType) { } /** - * Get the nextHopIpAddress value. + * Get the IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance. * * @return the nextHopIpAddress value */ @@ -110,7 +110,7 @@ public String nextHopIpAddress() { } /** - * Set the nextHopIpAddress value. + * Set the IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance. * * @param nextHopIpAddress the nextHopIpAddress value to set * @return the RouteInner object itself. @@ -121,7 +121,7 @@ public RouteInner withNextHopIpAddress(String nextHopIpAddress) { } /** - * Get the provisioningState value. + * Get the provisioning state of the resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @return the provisioningState value */ @@ -130,7 +130,7 @@ public String provisioningState() { } /** - * Set the provisioningState value. + * Set the provisioning state of the resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @param provisioningState the provisioningState value to set * @return the RouteInner object itself. @@ -141,7 +141,7 @@ public RouteInner withProvisioningState(String provisioningState) { } /** - * Get the name value. + * Get the name of the resource that is unique within a resource group. This name can be used to access the resource. * * @return the name value */ @@ -150,7 +150,7 @@ public String name() { } /** - * Set the name value. + * Set the name of the resource that is unique within a resource group. This name can be used to access the resource. * * @param name the name value to set * @return the RouteInner object itself. @@ -161,7 +161,7 @@ public RouteInner withName(String name) { } /** - * Get the etag value. + * Get a unique read-only string that changes whenever the resource is updated. * * @return the etag value */ @@ -170,7 +170,7 @@ public String etag() { } /** - * Set the etag value. + * Set a unique read-only string that changes whenever the resource is updated. * * @param etag the etag value to set * @return the RouteInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/RouteTableInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/RouteTableInner.java index 3d7f3034fa8..932fdbee2da 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/RouteTableInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/RouteTableInner.java @@ -60,7 +60,7 @@ public class RouteTableInner extends Resource { private String id; /** - * Get the routes value. + * Get collection of routes contained within a route table. * * @return the routes value */ @@ -69,7 +69,7 @@ public List routes() { } /** - * Set the routes value. + * Set collection of routes contained within a route table. * * @param routes the routes value to set * @return the RouteTableInner object itself. @@ -80,7 +80,7 @@ public RouteTableInner withRoutes(List routes) { } /** - * Get the subnets value. + * Get a collection of references to subnets. * * @return the subnets value */ @@ -89,7 +89,7 @@ public List subnets() { } /** - * Get the disableBgpRoutePropagation value. + * Get gets or sets whether to disable the routes learned by BGP on that route table. True means disable. * * @return the disableBgpRoutePropagation value */ @@ -98,7 +98,7 @@ public Boolean disableBgpRoutePropagation() { } /** - * Set the disableBgpRoutePropagation value. + * Set gets or sets whether to disable the routes learned by BGP on that route table. True means disable. * * @param disableBgpRoutePropagation the disableBgpRoutePropagation value to set * @return the RouteTableInner object itself. @@ -109,7 +109,7 @@ public RouteTableInner withDisableBgpRoutePropagation(Boolean disableBgpRoutePro } /** - * Get the provisioningState value. + * Get the provisioning state of the resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @return the provisioningState value */ @@ -118,7 +118,7 @@ public String provisioningState() { } /** - * Set the provisioningState value. + * Set the provisioning state of the resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @param provisioningState the provisioningState value to set * @return the RouteTableInner object itself. @@ -129,7 +129,7 @@ public RouteTableInner withProvisioningState(String provisioningState) { } /** - * Get the etag value. + * Get gets a unique read-only string that changes whenever the resource is updated. * * @return the etag value */ @@ -138,7 +138,7 @@ public String etag() { } /** - * Set the etag value. + * Set gets a unique read-only string that changes whenever the resource is updated. * * @param etag the etag value to set * @return the RouteTableInner object itself. @@ -149,7 +149,7 @@ public RouteTableInner withEtag(String etag) { } /** - * Get the id value. + * Get resource ID. * * @return the id value */ @@ -158,7 +158,7 @@ public String id() { } /** - * Set the id value. + * Set resource ID. * * @param id the id value to set * @return the RouteTableInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/SecurityGroupViewResultInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/SecurityGroupViewResultInner.java index 98a9e007e93..80a908814b6 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/SecurityGroupViewResultInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/SecurityGroupViewResultInner.java @@ -23,7 +23,7 @@ public class SecurityGroupViewResultInner { private List networkInterfaces; /** - * Get the networkInterfaces value. + * Get list of network interfaces on the specified VM. * * @return the networkInterfaces value */ @@ -32,7 +32,7 @@ public List networkInterfaces() { } /** - * Set the networkInterfaces value. + * Set list of network interfaces on the specified VM. * * @param networkInterfaces the networkInterfaces value to set * @return the SecurityGroupViewResultInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/SecurityRuleInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/SecurityRuleInner.java index 419cabb6efe..6ae4006d52b 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/SecurityRuleInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/SecurityRuleInner.java @@ -146,7 +146,7 @@ public class SecurityRuleInner extends SubResource { private String etag; /** - * Get the description value. + * Get a description for this rule. Restricted to 140 chars. * * @return the description value */ @@ -155,7 +155,7 @@ public String description() { } /** - * Set the description value. + * Set a description for this rule. Restricted to 140 chars. * * @param description the description value to set * @return the SecurityRuleInner object itself. @@ -166,7 +166,7 @@ public SecurityRuleInner withDescription(String description) { } /** - * Get the protocol value. + * Get network protocol this rule applies to. Possible values are 'Tcp', 'Udp', and '*'. Possible values include: 'Tcp', 'Udp', '*'. * * @return the protocol value */ @@ -175,7 +175,7 @@ public SecurityRuleProtocol protocol() { } /** - * Set the protocol value. + * Set network protocol this rule applies to. Possible values are 'Tcp', 'Udp', and '*'. Possible values include: 'Tcp', 'Udp', '*'. * * @param protocol the protocol value to set * @return the SecurityRuleInner object itself. @@ -186,7 +186,7 @@ public SecurityRuleInner withProtocol(SecurityRuleProtocol protocol) { } /** - * Get the sourcePortRange value. + * Get the source port or range. Integer or range between 0 and 65535. Asterix '*' can also be used to match all ports. * * @return the sourcePortRange value */ @@ -195,7 +195,7 @@ public String sourcePortRange() { } /** - * Set the sourcePortRange value. + * Set the source port or range. Integer or range between 0 and 65535. Asterix '*' can also be used to match all ports. * * @param sourcePortRange the sourcePortRange value to set * @return the SecurityRuleInner object itself. @@ -206,7 +206,7 @@ public SecurityRuleInner withSourcePortRange(String sourcePortRange) { } /** - * Get the destinationPortRange value. + * Get the destination port or range. Integer or range between 0 and 65535. Asterix '*' can also be used to match all ports. * * @return the destinationPortRange value */ @@ -215,7 +215,7 @@ public String destinationPortRange() { } /** - * Set the destinationPortRange value. + * Set the destination port or range. Integer or range between 0 and 65535. Asterix '*' can also be used to match all ports. * * @param destinationPortRange the destinationPortRange value to set * @return the SecurityRuleInner object itself. @@ -226,7 +226,7 @@ public SecurityRuleInner withDestinationPortRange(String destinationPortRange) { } /** - * Get the sourceAddressPrefix value. + * Get the CIDR or source IP range. Asterix '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used. If this is an ingress rule, specifies where network traffic originates from. * * @return the sourceAddressPrefix value */ @@ -235,7 +235,7 @@ public String sourceAddressPrefix() { } /** - * Set the sourceAddressPrefix value. + * Set the CIDR or source IP range. Asterix '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used. If this is an ingress rule, specifies where network traffic originates from. * * @param sourceAddressPrefix the sourceAddressPrefix value to set * @return the SecurityRuleInner object itself. @@ -246,7 +246,7 @@ public SecurityRuleInner withSourceAddressPrefix(String sourceAddressPrefix) { } /** - * Get the sourceAddressPrefixes value. + * Get the CIDR or source IP ranges. * * @return the sourceAddressPrefixes value */ @@ -255,7 +255,7 @@ public List sourceAddressPrefixes() { } /** - * Set the sourceAddressPrefixes value. + * Set the CIDR or source IP ranges. * * @param sourceAddressPrefixes the sourceAddressPrefixes value to set * @return the SecurityRuleInner object itself. @@ -266,7 +266,7 @@ public SecurityRuleInner withSourceAddressPrefixes(List sourceAddressPre } /** - * Get the sourceApplicationSecurityGroups value. + * Get the application security group specified as source. * * @return the sourceApplicationSecurityGroups value */ @@ -275,7 +275,7 @@ public List sourceApplicationSecurityGroups() { } /** - * Set the sourceApplicationSecurityGroups value. + * Set the application security group specified as source. * * @param sourceApplicationSecurityGroups the sourceApplicationSecurityGroups value to set * @return the SecurityRuleInner object itself. @@ -286,7 +286,7 @@ public SecurityRuleInner withSourceApplicationSecurityGroups(List destinationAddressPrefixes() { } /** - * Set the destinationAddressPrefixes value. + * Set the destination address prefixes. CIDR or destination IP ranges. * * @param destinationAddressPrefixes the destinationAddressPrefixes value to set * @return the SecurityRuleInner object itself. @@ -326,7 +326,7 @@ public SecurityRuleInner withDestinationAddressPrefixes(List destination } /** - * Get the destinationApplicationSecurityGroups value. + * Get the application security group specified as destination. * * @return the destinationApplicationSecurityGroups value */ @@ -335,7 +335,7 @@ public List destinationApplicationSecurityGroups( } /** - * Set the destinationApplicationSecurityGroups value. + * Set the application security group specified as destination. * * @param destinationApplicationSecurityGroups the destinationApplicationSecurityGroups value to set * @return the SecurityRuleInner object itself. @@ -346,7 +346,7 @@ public SecurityRuleInner withDestinationApplicationSecurityGroups(List sourcePortRanges() { } /** - * Set the sourcePortRanges value. + * Set the source port ranges. * * @param sourcePortRanges the sourcePortRanges value to set * @return the SecurityRuleInner object itself. @@ -366,7 +366,7 @@ public SecurityRuleInner withSourcePortRanges(List sourcePortRanges) { } /** - * Get the destinationPortRanges value. + * Get the destination port ranges. * * @return the destinationPortRanges value */ @@ -375,7 +375,7 @@ public List destinationPortRanges() { } /** - * Set the destinationPortRanges value. + * Set the destination port ranges. * * @param destinationPortRanges the destinationPortRanges value to set * @return the SecurityRuleInner object itself. @@ -386,7 +386,7 @@ public SecurityRuleInner withDestinationPortRanges(List destinationPortR } /** - * Get the access value. + * Get the network traffic is allowed or denied. Possible values are: 'Allow' and 'Deny'. Possible values include: 'Allow', 'Deny'. * * @return the access value */ @@ -395,7 +395,7 @@ public SecurityRuleAccess access() { } /** - * Set the access value. + * Set the network traffic is allowed or denied. Possible values are: 'Allow' and 'Deny'. Possible values include: 'Allow', 'Deny'. * * @param access the access value to set * @return the SecurityRuleInner object itself. @@ -406,7 +406,7 @@ public SecurityRuleInner withAccess(SecurityRuleAccess access) { } /** - * Get the priority value. + * Get the priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule. * * @return the priority value */ @@ -415,7 +415,7 @@ public Integer priority() { } /** - * Set the priority value. + * Set the priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule. * * @param priority the priority value to set * @return the SecurityRuleInner object itself. @@ -426,7 +426,7 @@ public SecurityRuleInner withPriority(Integer priority) { } /** - * Get the direction value. + * Get the direction of the rule. The direction specifies if rule will be evaluated on incoming or outcoming traffic. Possible values are: 'Inbound' and 'Outbound'. Possible values include: 'Inbound', 'Outbound'. * * @return the direction value */ @@ -435,7 +435,7 @@ public SecurityRuleDirection direction() { } /** - * Set the direction value. + * Set the direction of the rule. The direction specifies if rule will be evaluated on incoming or outcoming traffic. Possible values are: 'Inbound' and 'Outbound'. Possible values include: 'Inbound', 'Outbound'. * * @param direction the direction value to set * @return the SecurityRuleInner object itself. @@ -446,7 +446,7 @@ public SecurityRuleInner withDirection(SecurityRuleDirection direction) { } /** - * Get the provisioningState value. + * Get the provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @return the provisioningState value */ @@ -455,7 +455,7 @@ public String provisioningState() { } /** - * Set the provisioningState value. + * Set the provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @param provisioningState the provisioningState value to set * @return the SecurityRuleInner object itself. @@ -466,7 +466,7 @@ public SecurityRuleInner withProvisioningState(String provisioningState) { } /** - * Get the name value. + * Get the name of the resource that is unique within a resource group. This name can be used to access the resource. * * @return the name value */ @@ -475,7 +475,7 @@ public String name() { } /** - * Set the name value. + * Set the name of the resource that is unique within a resource group. This name can be used to access the resource. * * @param name the name value to set * @return the SecurityRuleInner object itself. @@ -486,7 +486,7 @@ public SecurityRuleInner withName(String name) { } /** - * Get the etag value. + * Get a unique read-only string that changes whenever the resource is updated. * * @return the etag value */ @@ -495,7 +495,7 @@ public String etag() { } /** - * Set the etag value. + * Set a unique read-only string that changes whenever the resource is updated. * * @param etag the etag value to set * @return the SecurityRuleInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/SubnetInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/SubnetInner.java index 4fd9a0b0b22..14479c3dc8b 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/SubnetInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/SubnetInner.java @@ -76,7 +76,7 @@ public class SubnetInner extends SubResource { private String etag; /** - * Get the addressPrefix value. + * Get the address prefix for the subnet. * * @return the addressPrefix value */ @@ -85,7 +85,7 @@ public String addressPrefix() { } /** - * Set the addressPrefix value. + * Set the address prefix for the subnet. * * @param addressPrefix the addressPrefix value to set * @return the SubnetInner object itself. @@ -96,7 +96,7 @@ public SubnetInner withAddressPrefix(String addressPrefix) { } /** - * Get the networkSecurityGroup value. + * Get the reference of the NetworkSecurityGroup resource. * * @return the networkSecurityGroup value */ @@ -105,7 +105,7 @@ public NetworkSecurityGroupInner networkSecurityGroup() { } /** - * Set the networkSecurityGroup value. + * Set the reference of the NetworkSecurityGroup resource. * * @param networkSecurityGroup the networkSecurityGroup value to set * @return the SubnetInner object itself. @@ -116,7 +116,7 @@ public SubnetInner withNetworkSecurityGroup(NetworkSecurityGroupInner networkSec } /** - * Get the routeTable value. + * Get the reference of the RouteTable resource. * * @return the routeTable value */ @@ -125,7 +125,7 @@ public RouteTableInner routeTable() { } /** - * Set the routeTable value. + * Set the reference of the RouteTable resource. * * @param routeTable the routeTable value to set * @return the SubnetInner object itself. @@ -136,7 +136,7 @@ public SubnetInner withRouteTable(RouteTableInner routeTable) { } /** - * Get the serviceEndpoints value. + * Get an array of service endpoints. * * @return the serviceEndpoints value */ @@ -145,7 +145,7 @@ public List serviceEndpoints() { } /** - * Set the serviceEndpoints value. + * Set an array of service endpoints. * * @param serviceEndpoints the serviceEndpoints value to set * @return the SubnetInner object itself. @@ -156,7 +156,7 @@ public SubnetInner withServiceEndpoints(List se } /** - * Get the ipConfigurations value. + * Get gets an array of references to the network interface IP configurations using subnet. * * @return the ipConfigurations value */ @@ -165,7 +165,7 @@ public List ipConfigurations() { } /** - * Get the resourceNavigationLinks value. + * Get gets an array of references to the external resources using subnet. * * @return the resourceNavigationLinks value */ @@ -174,7 +174,7 @@ public List resourceNavigationLinks() { } /** - * Set the resourceNavigationLinks value. + * Set gets an array of references to the external resources using subnet. * * @param resourceNavigationLinks the resourceNavigationLinks value to set * @return the SubnetInner object itself. @@ -185,7 +185,7 @@ public SubnetInner withResourceNavigationLinks(List } /** - * Get the provisioningState value. + * Get the provisioning state of the resource. * * @return the provisioningState value */ @@ -194,7 +194,7 @@ public String provisioningState() { } /** - * Set the provisioningState value. + * Set the provisioning state of the resource. * * @param provisioningState the provisioningState value to set * @return the SubnetInner object itself. @@ -205,7 +205,7 @@ public SubnetInner withProvisioningState(String provisioningState) { } /** - * Get the name value. + * Get the name of the resource that is unique within a resource group. This name can be used to access the resource. * * @return the name value */ @@ -214,7 +214,7 @@ public String name() { } /** - * Set the name value. + * Set the name of the resource that is unique within a resource group. This name can be used to access the resource. * * @param name the name value to set * @return the SubnetInner object itself. @@ -225,7 +225,7 @@ public SubnetInner withName(String name) { } /** - * Get the etag value. + * Get a unique read-only string that changes whenever the resource is updated. * * @return the etag value */ @@ -234,7 +234,7 @@ public String etag() { } /** - * Set the etag value. + * Set a unique read-only string that changes whenever the resource is updated. * * @param etag the etag value to set * @return the SubnetInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/TopologyInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/TopologyInner.java index 16d8e5cd32a..f87a5992754 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/TopologyInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/TopologyInner.java @@ -43,7 +43,7 @@ public class TopologyInner { private List resources; /** - * Get the id value. + * Get gUID representing the operation id. * * @return the id value */ @@ -52,7 +52,7 @@ public String id() { } /** - * Get the createdDateTime value. + * Get the datetime when the topology was initially created for the resource group. * * @return the createdDateTime value */ @@ -61,7 +61,7 @@ public DateTime createdDateTime() { } /** - * Get the lastModified value. + * Get the datetime when the topology was last modified. * * @return the lastModified value */ diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/TroubleshootingResultInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/TroubleshootingResultInner.java index 13535d861d2..85b636a604b 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/TroubleshootingResultInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/TroubleshootingResultInner.java @@ -42,7 +42,7 @@ public class TroubleshootingResultInner { private List results; /** - * Get the startTime value. + * Get the start time of the troubleshooting. * * @return the startTime value */ @@ -51,7 +51,7 @@ public DateTime startTime() { } /** - * Set the startTime value. + * Set the start time of the troubleshooting. * * @param startTime the startTime value to set * @return the TroubleshootingResultInner object itself. @@ -62,7 +62,7 @@ public TroubleshootingResultInner withStartTime(DateTime startTime) { } /** - * Get the endTime value. + * Get the end time of the troubleshooting. * * @return the endTime value */ @@ -71,7 +71,7 @@ public DateTime endTime() { } /** - * Set the endTime value. + * Set the end time of the troubleshooting. * * @param endTime the endTime value to set * @return the TroubleshootingResultInner object itself. @@ -82,7 +82,7 @@ public TroubleshootingResultInner withEndTime(DateTime endTime) { } /** - * Get the code value. + * Get the result code of the troubleshooting. * * @return the code value */ @@ -91,7 +91,7 @@ public String code() { } /** - * Set the code value. + * Set the result code of the troubleshooting. * * @param code the code value to set * @return the TroubleshootingResultInner object itself. @@ -102,7 +102,7 @@ public TroubleshootingResultInner withCode(String code) { } /** - * Get the results value. + * Get information from troubleshooting. * * @return the results value */ @@ -111,7 +111,7 @@ public List results() { } /** - * Set the results value. + * Set information from troubleshooting. * * @param results the results value to set * @return the TroubleshootingResultInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/UsageInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/UsageInner.java index 614db48a371..89ae4fe8404 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/UsageInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/UsageInner.java @@ -47,13 +47,16 @@ public class UsageInner { /** * Creates an instance of UsageInner class. + * @param currentValue the current value of the usage. + * @param limit the limit of usage. + * @param name the name of the type of usage. */ public UsageInner() { unit = "Count"; } /** - * Get the id value. + * Get resource identifier. * * @return the id value */ @@ -62,7 +65,7 @@ public String id() { } /** - * Get the unit value. + * Get an enum describing the unit of measurement. * * @return the unit value */ @@ -71,7 +74,7 @@ public String unit() { } /** - * Set the unit value. + * Set an enum describing the unit of measurement. * * @param unit the unit value to set * @return the UsageInner object itself. @@ -82,7 +85,7 @@ public UsageInner withUnit(String unit) { } /** - * Get the currentValue value. + * Get the current value of the usage. * * @return the currentValue value */ @@ -91,7 +94,7 @@ public long currentValue() { } /** - * Set the currentValue value. + * Set the current value of the usage. * * @param currentValue the currentValue value to set * @return the UsageInner object itself. @@ -102,7 +105,7 @@ public UsageInner withCurrentValue(long currentValue) { } /** - * Get the limit value. + * Get the limit of usage. * * @return the limit value */ @@ -111,7 +114,7 @@ public long limit() { } /** - * Set the limit value. + * Set the limit of usage. * * @param limit the limit value to set * @return the UsageInner object itself. @@ -122,7 +125,7 @@ public UsageInner withLimit(long limit) { } /** - * Get the name value. + * Get the name of the type of usage. * * @return the name value */ @@ -131,7 +134,7 @@ public UsageName name() { } /** - * Set the name value. + * Set the name of the type of usage. * * @param name the name value to set * @return the UsageInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VerificationIPFlowResultInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VerificationIPFlowResultInner.java index 3474d41aef6..54d6934df9b 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VerificationIPFlowResultInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VerificationIPFlowResultInner.java @@ -30,7 +30,7 @@ public class VerificationIPFlowResultInner { private String ruleName; /** - * Get the access value. + * Get indicates whether the traffic is allowed or denied. Possible values include: 'Allow', 'Deny'. * * @return the access value */ @@ -39,7 +39,7 @@ public Access access() { } /** - * Set the access value. + * Set indicates whether the traffic is allowed or denied. Possible values include: 'Allow', 'Deny'. * * @param access the access value to set * @return the VerificationIPFlowResultInner object itself. @@ -50,7 +50,7 @@ public VerificationIPFlowResultInner withAccess(Access access) { } /** - * Get the ruleName value. + * Get name of the rule. If input is not matched against any security rule, it is not displayed. * * @return the ruleName value */ @@ -59,7 +59,7 @@ public String ruleName() { } /** - * Set the ruleName value. + * Set name of the rule. If input is not matched against any security rule, it is not displayed. * * @param ruleName the ruleName value to set * @return the VerificationIPFlowResultInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VirtualHubInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VirtualHubInner.java new file mode 100644 index 00000000000..ef98f577a4b --- /dev/null +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VirtualHubInner.java @@ -0,0 +1,172 @@ +/** + * 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. + */ + +package com.microsoft.azure.management.network.implementation; + +import com.microsoft.azure.SubResource; +import java.util.List; +import com.microsoft.azure.management.network.ProvisioningState; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.rest.SkipParentValidation; +import com.microsoft.azure.Resource; + +/** + * VirtualHub Resource. + */ +@JsonFlatten +@SkipParentValidation +public class VirtualHubInner extends Resource { + /** + * The VirtualWAN to which the VirtualHub belongs. + */ + @JsonProperty(value = "properties.virtualWan") + private SubResource virtualWan; + + /** + * list of all vnet connections with this VirtualHub. + */ + @JsonProperty(value = "properties.hubVirtualNetworkConnections") + private List hubVirtualNetworkConnections; + + /** + * Address-prefix for this VirtualHub. + */ + @JsonProperty(value = "properties.addressPrefix") + private String addressPrefix; + + /** + * The provisioning state of the resource. Possible values include: + * 'Succeeded', 'Updating', 'Deleting', 'Failed'. + */ + @JsonProperty(value = "properties.provisioningState") + private ProvisioningState provisioningState; + + /** + * Gets a unique read-only string that changes whenever the resource is + * updated. + */ + @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) + private String etag; + + /** + * Resource ID. + */ + @JsonProperty(value = "id") + private String id; + + /** + * Get the VirtualWAN to which the VirtualHub belongs. + * + * @return the virtualWan value + */ + public SubResource virtualWan() { + return this.virtualWan; + } + + /** + * Set the VirtualWAN to which the VirtualHub belongs. + * + * @param virtualWan the virtualWan value to set + * @return the VirtualHubInner object itself. + */ + public VirtualHubInner withVirtualWan(SubResource virtualWan) { + this.virtualWan = virtualWan; + return this; + } + + /** + * Get list of all vnet connections with this VirtualHub. + * + * @return the hubVirtualNetworkConnections value + */ + public List hubVirtualNetworkConnections() { + return this.hubVirtualNetworkConnections; + } + + /** + * Set list of all vnet connections with this VirtualHub. + * + * @param hubVirtualNetworkConnections the hubVirtualNetworkConnections value to set + * @return the VirtualHubInner object itself. + */ + public VirtualHubInner withHubVirtualNetworkConnections(List hubVirtualNetworkConnections) { + this.hubVirtualNetworkConnections = hubVirtualNetworkConnections; + return this; + } + + /** + * Get address-prefix for this VirtualHub. + * + * @return the addressPrefix value + */ + public String addressPrefix() { + return this.addressPrefix; + } + + /** + * Set address-prefix for this VirtualHub. + * + * @param addressPrefix the addressPrefix value to set + * @return the VirtualHubInner object itself. + */ + public VirtualHubInner withAddressPrefix(String addressPrefix) { + this.addressPrefix = addressPrefix; + return this; + } + + /** + * Get the provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. + * + * @return the provisioningState value + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Set the provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. + * + * @param provisioningState the provisioningState value to set + * @return the VirtualHubInner object itself. + */ + public VirtualHubInner withProvisioningState(ProvisioningState provisioningState) { + this.provisioningState = provisioningState; + return this; + } + + /** + * Get gets a unique read-only string that changes whenever the resource is updated. + * + * @return the etag value + */ + public String etag() { + return this.etag; + } + + /** + * Get resource ID. + * + * @return the id value + */ + public String id() { + return this.id; + } + + /** + * Set resource ID. + * + * @param id the id value to set + * @return the VirtualHubInner object itself. + */ + public VirtualHubInner withId(String id) { + this.id = id; + return this; + } + +} diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VirtualHubsInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VirtualHubsInner.java new file mode 100644 index 00000000000..12a62da8124 --- /dev/null +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VirtualHubsInner.java @@ -0,0 +1,1274 @@ +/** + * 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. + */ + +package com.microsoft.azure.management.network.implementation; + +import com.microsoft.azure.management.resources.fluentcore.collection.InnerSupportsGet; +import com.microsoft.azure.management.resources.fluentcore.collection.InnerSupportsDelete; +import com.microsoft.azure.management.resources.fluentcore.collection.InnerSupportsListing; +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.network.ErrorException; +import com.microsoft.azure.management.network.TagsObject; +import com.microsoft.azure.Page; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import com.microsoft.rest.Validator; +import java.io.IOException; +import java.util.List; +import java.util.Map; +import okhttp3.ResponseBody; +import retrofit2.http.Body; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.HTTP; +import retrofit2.http.PATCH; +import retrofit2.http.Path; +import retrofit2.http.PUT; +import retrofit2.http.Query; +import retrofit2.http.Url; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in VirtualHubs. + */ +public class VirtualHubsInner implements InnerSupportsGet, InnerSupportsDelete, InnerSupportsListing { + /** The Retrofit service to perform REST calls. */ + private VirtualHubsService service; + /** The service client containing this operation class. */ + private NetworkManagementClientImpl client; + + /** + * Initializes an instance of VirtualHubsInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public VirtualHubsInner(Retrofit retrofit, NetworkManagementClientImpl client) { + this.service = retrofit.create(VirtualHubsService.class); + this.client = client; + } + + /** + * The interface defining all the services for VirtualHubs to be + * used by Retrofit to perform actually REST calls. + */ + interface VirtualHubsService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VirtualHubs getByResourceGroup" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}") + Observable> getByResourceGroup(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("virtualHubName") String virtualHubName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VirtualHubs createOrUpdate" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}") + Observable> createOrUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("virtualHubName") String virtualHubName, @Query("api-version") String apiVersion, @Body VirtualHubInner virtualHubParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VirtualHubs beginCreateOrUpdate" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}") + Observable> beginCreateOrUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("virtualHubName") String virtualHubName, @Query("api-version") String apiVersion, @Body VirtualHubInner virtualHubParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VirtualHubs updateTags" }) + @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}") + Observable> updateTags(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("virtualHubName") String virtualHubName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject virtualHubParameters, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VirtualHubs beginUpdateTags" }) + @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}") + Observable> beginUpdateTags(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("virtualHubName") String virtualHubName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject virtualHubParameters, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VirtualHubs delete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}", method = "DELETE", hasBody = true) + Observable> delete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("virtualHubName") String virtualHubName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VirtualHubs beginDelete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}", method = "DELETE", hasBody = true) + Observable> beginDelete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("virtualHubName") String virtualHubName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VirtualHubs listByResourceGroup" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs") + Observable> listByResourceGroup(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VirtualHubs list" }) + @GET("subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualHubs") + Observable> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VirtualHubs listByResourceGroupNext" }) + @GET + Observable> listByResourceGroupNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VirtualHubs listNext" }) + @GET + Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Retrieves the details of a VirtualHub. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VirtualHubInner object if successful. + */ + public VirtualHubInner getByResourceGroup(String resourceGroupName, String virtualHubName) { + return getByResourceGroupWithServiceResponseAsync(resourceGroupName, virtualHubName).toBlocking().single().body(); + } + + /** + * Retrieves the details of a VirtualHub. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getByResourceGroupAsync(String resourceGroupName, String virtualHubName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getByResourceGroupWithServiceResponseAsync(resourceGroupName, virtualHubName), serviceCallback); + } + + /** + * Retrieves the details of a VirtualHub. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VirtualHubInner object + */ + public Observable getByResourceGroupAsync(String resourceGroupName, String virtualHubName) { + return getByResourceGroupWithServiceResponseAsync(resourceGroupName, virtualHubName).map(new Func1, VirtualHubInner>() { + @Override + public VirtualHubInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Retrieves the details of a VirtualHub. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VirtualHubInner object + */ + public Observable> getByResourceGroupWithServiceResponseAsync(String resourceGroupName, String virtualHubName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualHubName == null) { + throw new IllegalArgumentException("Parameter virtualHubName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + return service.getByResourceGroup(this.client.subscriptionId(), resourceGroupName, virtualHubName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getByResourceGroupDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getByResourceGroupDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param virtualHubParameters Parameters supplied to create or update VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VirtualHubInner object if successful. + */ + public VirtualHubInner createOrUpdate(String resourceGroupName, String virtualHubName, VirtualHubInner virtualHubParameters) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, virtualHubName, virtualHubParameters).toBlocking().last().body(); + } + + /** + * Creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param virtualHubParameters Parameters supplied to create or update VirtualHub. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createOrUpdateAsync(String resourceGroupName, String virtualHubName, VirtualHubInner virtualHubParameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, virtualHubName, virtualHubParameters), serviceCallback); + } + + /** + * Creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param virtualHubParameters Parameters supplied to create or update VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable createOrUpdateAsync(String resourceGroupName, String virtualHubName, VirtualHubInner virtualHubParameters) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, virtualHubName, virtualHubParameters).map(new Func1, VirtualHubInner>() { + @Override + public VirtualHubInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param virtualHubParameters Parameters supplied to create or update VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String virtualHubName, VirtualHubInner virtualHubParameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualHubName == null) { + throw new IllegalArgumentException("Parameter virtualHubName is required and cannot be null."); + } + if (virtualHubParameters == null) { + throw new IllegalArgumentException("Parameter virtualHubParameters is required and cannot be null."); + } + Validator.validate(virtualHubParameters); + final String apiVersion = "2018-06-01"; + Observable> observable = service.createOrUpdate(this.client.subscriptionId(), resourceGroupName, virtualHubName, apiVersion, virtualHubParameters, this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param virtualHubParameters Parameters supplied to create or update VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VirtualHubInner object if successful. + */ + public VirtualHubInner beginCreateOrUpdate(String resourceGroupName, String virtualHubName, VirtualHubInner virtualHubParameters) { + return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, virtualHubName, virtualHubParameters).toBlocking().single().body(); + } + + /** + * Creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param virtualHubParameters Parameters supplied to create or update VirtualHub. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginCreateOrUpdateAsync(String resourceGroupName, String virtualHubName, VirtualHubInner virtualHubParameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, virtualHubName, virtualHubParameters), serviceCallback); + } + + /** + * Creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param virtualHubParameters Parameters supplied to create or update VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VirtualHubInner object + */ + public Observable beginCreateOrUpdateAsync(String resourceGroupName, String virtualHubName, VirtualHubInner virtualHubParameters) { + return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, virtualHubName, virtualHubParameters).map(new Func1, VirtualHubInner>() { + @Override + public VirtualHubInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates a VirtualHub resource if it doesn't exist else updates the existing VirtualHub. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param virtualHubParameters Parameters supplied to create or update VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VirtualHubInner object + */ + public Observable> beginCreateOrUpdateWithServiceResponseAsync(String resourceGroupName, String virtualHubName, VirtualHubInner virtualHubParameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualHubName == null) { + throw new IllegalArgumentException("Parameter virtualHubName is required and cannot be null."); + } + if (virtualHubParameters == null) { + throw new IllegalArgumentException("Parameter virtualHubParameters is required and cannot be null."); + } + Validator.validate(virtualHubParameters); + final String apiVersion = "2018-06-01"; + return service.beginCreateOrUpdate(this.client.subscriptionId(), resourceGroupName, virtualHubName, apiVersion, virtualHubParameters, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginCreateOrUpdateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginCreateOrUpdateDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(201, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Updates VirtualHub tags. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VirtualHubInner object if successful. + */ + public VirtualHubInner updateTags(String resourceGroupName, String virtualHubName) { + return updateTagsWithServiceResponseAsync(resourceGroupName, virtualHubName).toBlocking().last().body(); + } + + /** + * Updates VirtualHub tags. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture updateTagsAsync(String resourceGroupName, String virtualHubName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateTagsWithServiceResponseAsync(resourceGroupName, virtualHubName), serviceCallback); + } + + /** + * Updates VirtualHub tags. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable updateTagsAsync(String resourceGroupName, String virtualHubName) { + return updateTagsWithServiceResponseAsync(resourceGroupName, virtualHubName).map(new Func1, VirtualHubInner>() { + @Override + public VirtualHubInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates VirtualHub tags. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> updateTagsWithServiceResponseAsync(String resourceGroupName, String virtualHubName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualHubName == null) { + throw new IllegalArgumentException("Parameter virtualHubName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + final Map tags = null; + TagsObject virtualHubParameters = new TagsObject(); + virtualHubParameters.withTags(null); + Observable> observable = service.updateTags(this.client.subscriptionId(), resourceGroupName, virtualHubName, apiVersion, this.client.acceptLanguage(), virtualHubParameters, this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + } + /** + * Updates VirtualHub tags. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VirtualHubInner object if successful. + */ + public VirtualHubInner updateTags(String resourceGroupName, String virtualHubName, Map tags) { + return updateTagsWithServiceResponseAsync(resourceGroupName, virtualHubName, tags).toBlocking().last().body(); + } + + /** + * Updates VirtualHub tags. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param tags Resource tags. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture updateTagsAsync(String resourceGroupName, String virtualHubName, Map tags, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateTagsWithServiceResponseAsync(resourceGroupName, virtualHubName, tags), serviceCallback); + } + + /** + * Updates VirtualHub tags. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable updateTagsAsync(String resourceGroupName, String virtualHubName, Map tags) { + return updateTagsWithServiceResponseAsync(resourceGroupName, virtualHubName, tags).map(new Func1, VirtualHubInner>() { + @Override + public VirtualHubInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates VirtualHub tags. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> updateTagsWithServiceResponseAsync(String resourceGroupName, String virtualHubName, Map tags) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualHubName == null) { + throw new IllegalArgumentException("Parameter virtualHubName is required and cannot be null."); + } + Validator.validate(tags); + final String apiVersion = "2018-06-01"; + TagsObject virtualHubParameters = new TagsObject(); + virtualHubParameters.withTags(tags); + Observable> observable = service.updateTags(this.client.subscriptionId(), resourceGroupName, virtualHubName, apiVersion, this.client.acceptLanguage(), virtualHubParameters, this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Updates VirtualHub tags. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VirtualHubInner object if successful. + */ + public VirtualHubInner beginUpdateTags(String resourceGroupName, String virtualHubName) { + return beginUpdateTagsWithServiceResponseAsync(resourceGroupName, virtualHubName).toBlocking().single().body(); + } + + /** + * Updates VirtualHub tags. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginUpdateTagsAsync(String resourceGroupName, String virtualHubName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginUpdateTagsWithServiceResponseAsync(resourceGroupName, virtualHubName), serviceCallback); + } + + /** + * Updates VirtualHub tags. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VirtualHubInner object + */ + public Observable beginUpdateTagsAsync(String resourceGroupName, String virtualHubName) { + return beginUpdateTagsWithServiceResponseAsync(resourceGroupName, virtualHubName).map(new Func1, VirtualHubInner>() { + @Override + public VirtualHubInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates VirtualHub tags. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VirtualHubInner object + */ + public Observable> beginUpdateTagsWithServiceResponseAsync(String resourceGroupName, String virtualHubName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualHubName == null) { + throw new IllegalArgumentException("Parameter virtualHubName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + final Map tags = null; + TagsObject virtualHubParameters = new TagsObject(); + virtualHubParameters.withTags(null); + return service.beginUpdateTags(this.client.subscriptionId(), resourceGroupName, virtualHubName, apiVersion, this.client.acceptLanguage(), virtualHubParameters, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginUpdateTagsDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + /** + * Updates VirtualHub tags. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VirtualHubInner object if successful. + */ + public VirtualHubInner beginUpdateTags(String resourceGroupName, String virtualHubName, Map tags) { + return beginUpdateTagsWithServiceResponseAsync(resourceGroupName, virtualHubName, tags).toBlocking().single().body(); + } + + /** + * Updates VirtualHub tags. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param tags Resource tags. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginUpdateTagsAsync(String resourceGroupName, String virtualHubName, Map tags, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginUpdateTagsWithServiceResponseAsync(resourceGroupName, virtualHubName, tags), serviceCallback); + } + + /** + * Updates VirtualHub tags. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VirtualHubInner object + */ + public Observable beginUpdateTagsAsync(String resourceGroupName, String virtualHubName, Map tags) { + return beginUpdateTagsWithServiceResponseAsync(resourceGroupName, virtualHubName, tags).map(new Func1, VirtualHubInner>() { + @Override + public VirtualHubInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates VirtualHub tags. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VirtualHubInner object + */ + public Observable> beginUpdateTagsWithServiceResponseAsync(String resourceGroupName, String virtualHubName, Map tags) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualHubName == null) { + throw new IllegalArgumentException("Parameter virtualHubName is required and cannot be null."); + } + Validator.validate(tags); + final String apiVersion = "2018-06-01"; + TagsObject virtualHubParameters = new TagsObject(); + virtualHubParameters.withTags(tags); + return service.beginUpdateTags(this.client.subscriptionId(), resourceGroupName, virtualHubName, apiVersion, this.client.acceptLanguage(), virtualHubParameters, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginUpdateTagsDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginUpdateTagsDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(201, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Deletes a VirtualHub. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void delete(String resourceGroupName, String virtualHubName) { + deleteWithServiceResponseAsync(resourceGroupName, virtualHubName).toBlocking().last().body(); + } + + /** + * Deletes a VirtualHub. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteAsync(String resourceGroupName, String virtualHubName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, virtualHubName), serviceCallback); + } + + /** + * Deletes a VirtualHub. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable deleteAsync(String resourceGroupName, String virtualHubName) { + return deleteWithServiceResponseAsync(resourceGroupName, virtualHubName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes a VirtualHub. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> deleteWithServiceResponseAsync(String resourceGroupName, String virtualHubName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualHubName == null) { + throw new IllegalArgumentException("Parameter virtualHubName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + Observable> observable = service.delete(this.client.subscriptionId(), resourceGroupName, virtualHubName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Deletes a VirtualHub. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void beginDelete(String resourceGroupName, String virtualHubName) { + beginDeleteWithServiceResponseAsync(resourceGroupName, virtualHubName).toBlocking().single().body(); + } + + /** + * Deletes a VirtualHub. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginDeleteAsync(String resourceGroupName, String virtualHubName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginDeleteWithServiceResponseAsync(resourceGroupName, virtualHubName), serviceCallback); + } + + /** + * Deletes a VirtualHub. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable beginDeleteAsync(String resourceGroupName, String virtualHubName) { + return beginDeleteWithServiceResponseAsync(resourceGroupName, virtualHubName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes a VirtualHub. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param virtualHubName The name of the VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> beginDeleteWithServiceResponseAsync(String resourceGroupName, String virtualHubName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualHubName == null) { + throw new IllegalArgumentException("Parameter virtualHubName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + return service.beginDelete(this.client.subscriptionId(), resourceGroupName, virtualHubName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginDeleteDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginDeleteDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Lists all the VirtualHubs in a resource group. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<VirtualHubInner> object if successful. + */ + public PagedList listByResourceGroup(final String resourceGroupName) { + ServiceResponse> response = listByResourceGroupSinglePageAsync(resourceGroupName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all the VirtualHubs in a resource group. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByResourceGroupAsync(final String resourceGroupName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByResourceGroupSinglePageAsync(resourceGroupName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all the VirtualHubs in a resource group. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VirtualHubInner> object + */ + public Observable> listByResourceGroupAsync(final String resourceGroupName) { + return listByResourceGroupWithServiceResponseAsync(resourceGroupName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all the VirtualHubs in a resource group. + * + * @param resourceGroupName The resource group name of the VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VirtualHubInner> object + */ + public Observable>> listByResourceGroupWithServiceResponseAsync(final String resourceGroupName) { + return listByResourceGroupSinglePageAsync(resourceGroupName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all the VirtualHubs in a resource group. + * + ServiceResponse> * @param resourceGroupName The resource group name of the VirtualHub. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<VirtualHubInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByResourceGroupSinglePageAsync(final String resourceGroupName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + return service.listByResourceGroup(this.client.subscriptionId(), resourceGroupName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByResourceGroupDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByResourceGroupDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Lists all the VirtualHubs in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<VirtualHubInner> object if successful. + */ + public PagedList list() { + ServiceResponse> response = listSinglePageAsync().toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all the VirtualHubs in a subscription. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAsync(final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listSinglePageAsync(), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all the VirtualHubs in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VirtualHubInner> object + */ + public Observable> listAsync() { + return listWithServiceResponseAsync() + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all the VirtualHubs in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VirtualHubInner> object + */ + public Observable>> listWithServiceResponseAsync() { + return listSinglePageAsync() + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all the VirtualHubs in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<VirtualHubInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listSinglePageAsync() { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + return service.list(this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Lists all the VirtualHubs in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<VirtualHubInner> object if successful. + */ + public PagedList listByResourceGroupNext(final String nextPageLink) { + ServiceResponse> response = listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all the VirtualHubs in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByResourceGroupNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByResourceGroupNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all the VirtualHubs in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VirtualHubInner> object + */ + public Observable> listByResourceGroupNextAsync(final String nextPageLink) { + return listByResourceGroupNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all the VirtualHubs in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VirtualHubInner> object + */ + public Observable>> listByResourceGroupNextWithServiceResponseAsync(final String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all the VirtualHubs in a resource group. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<VirtualHubInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByResourceGroupNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listByResourceGroupNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByResourceGroupNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByResourceGroupNextDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Lists all the VirtualHubs in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<VirtualHubInner> object if successful. + */ + public PagedList listNext(final String nextPageLink) { + ServiceResponse> response = listNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all the VirtualHubs in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all the VirtualHubs in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VirtualHubInner> object + */ + public Observable> listNextAsync(final String nextPageLink) { + return listNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all the VirtualHubs in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VirtualHubInner> object + */ + public Observable>> listNextWithServiceResponseAsync(final String nextPageLink) { + return listNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all the VirtualHubs in a subscription. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<VirtualHubInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listNextDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + +} diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VirtualNetworkGatewayConnectionInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VirtualNetworkGatewayConnectionInner.java index 702b3da824b..04f6ce95ac1 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VirtualNetworkGatewayConnectionInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VirtualNetworkGatewayConnectionInner.java @@ -147,7 +147,7 @@ public class VirtualNetworkGatewayConnectionInner extends Resource { private String id; /** - * Get the authorizationKey value. + * Get the authorizationKey. * * @return the authorizationKey value */ @@ -156,7 +156,7 @@ public String authorizationKey() { } /** - * Set the authorizationKey value. + * Set the authorizationKey. * * @param authorizationKey the authorizationKey value to set * @return the VirtualNetworkGatewayConnectionInner object itself. @@ -167,7 +167,7 @@ public VirtualNetworkGatewayConnectionInner withAuthorizationKey(String authoriz } /** - * Get the virtualNetworkGateway1 value. + * Get the reference to virtual network gateway resource. * * @return the virtualNetworkGateway1 value */ @@ -176,7 +176,7 @@ public VirtualNetworkGatewayInner virtualNetworkGateway1() { } /** - * Set the virtualNetworkGateway1 value. + * Set the reference to virtual network gateway resource. * * @param virtualNetworkGateway1 the virtualNetworkGateway1 value to set * @return the VirtualNetworkGatewayConnectionInner object itself. @@ -187,7 +187,7 @@ public VirtualNetworkGatewayConnectionInner withVirtualNetworkGateway1(VirtualNe } /** - * Get the virtualNetworkGateway2 value. + * Get the reference to virtual network gateway resource. * * @return the virtualNetworkGateway2 value */ @@ -196,7 +196,7 @@ public VirtualNetworkGatewayInner virtualNetworkGateway2() { } /** - * Set the virtualNetworkGateway2 value. + * Set the reference to virtual network gateway resource. * * @param virtualNetworkGateway2 the virtualNetworkGateway2 value to set * @return the VirtualNetworkGatewayConnectionInner object itself. @@ -207,7 +207,7 @@ public VirtualNetworkGatewayConnectionInner withVirtualNetworkGateway2(VirtualNe } /** - * Get the localNetworkGateway2 value. + * Get the reference to local network gateway resource. * * @return the localNetworkGateway2 value */ @@ -216,7 +216,7 @@ public LocalNetworkGatewayInner localNetworkGateway2() { } /** - * Set the localNetworkGateway2 value. + * Set the reference to local network gateway resource. * * @param localNetworkGateway2 the localNetworkGateway2 value to set * @return the VirtualNetworkGatewayConnectionInner object itself. @@ -227,7 +227,7 @@ public VirtualNetworkGatewayConnectionInner withLocalNetworkGateway2(LocalNetwor } /** - * Get the connectionType value. + * Get gateway connection type. Possible values are: 'Ipsec','Vnet2Vnet','ExpressRoute', and 'VPNClient. Possible values include: 'IPsec', 'Vnet2Vnet', 'ExpressRoute', 'VPNClient'. * * @return the connectionType value */ @@ -236,7 +236,7 @@ public VirtualNetworkGatewayConnectionType connectionType() { } /** - * Set the connectionType value. + * Set gateway connection type. Possible values are: 'Ipsec','Vnet2Vnet','ExpressRoute', and 'VPNClient. Possible values include: 'IPsec', 'Vnet2Vnet', 'ExpressRoute', 'VPNClient'. * * @param connectionType the connectionType value to set * @return the VirtualNetworkGatewayConnectionInner object itself. @@ -247,7 +247,7 @@ public VirtualNetworkGatewayConnectionInner withConnectionType(VirtualNetworkGat } /** - * Get the routingWeight value. + * Get the routing weight. * * @return the routingWeight value */ @@ -256,7 +256,7 @@ public Integer routingWeight() { } /** - * Set the routingWeight value. + * Set the routing weight. * * @param routingWeight the routingWeight value to set * @return the VirtualNetworkGatewayConnectionInner object itself. @@ -267,7 +267,7 @@ public VirtualNetworkGatewayConnectionInner withRoutingWeight(Integer routingWei } /** - * Get the sharedKey value. + * Get the IPSec shared key. * * @return the sharedKey value */ @@ -276,7 +276,7 @@ public String sharedKey() { } /** - * Set the sharedKey value. + * Set the IPSec shared key. * * @param sharedKey the sharedKey value to set * @return the VirtualNetworkGatewayConnectionInner object itself. @@ -287,7 +287,7 @@ public VirtualNetworkGatewayConnectionInner withSharedKey(String sharedKey) { } /** - * Get the connectionStatus value. + * Get virtual network Gateway connection status. Possible values are 'Unknown', 'Connecting', 'Connected' and 'NotConnected'. Possible values include: 'Unknown', 'Connecting', 'Connected', 'NotConnected'. * * @return the connectionStatus value */ @@ -296,7 +296,7 @@ public VirtualNetworkGatewayConnectionStatus connectionStatus() { } /** - * Get the tunnelConnectionStatus value. + * Get collection of all tunnels' connection health status. * * @return the tunnelConnectionStatus value */ @@ -305,7 +305,7 @@ public List tunnelConnectionStatus() { } /** - * Get the egressBytesTransferred value. + * Get the egress bytes transferred in this connection. * * @return the egressBytesTransferred value */ @@ -314,7 +314,7 @@ public Long egressBytesTransferred() { } /** - * Get the ingressBytesTransferred value. + * Get the ingress bytes transferred in this connection. * * @return the ingressBytesTransferred value */ @@ -323,7 +323,7 @@ public Long ingressBytesTransferred() { } /** - * Get the peer value. + * Get the reference to peerings resource. * * @return the peer value */ @@ -332,7 +332,7 @@ public SubResource peer() { } /** - * Set the peer value. + * Set the reference to peerings resource. * * @param peer the peer value to set * @return the VirtualNetworkGatewayConnectionInner object itself. @@ -343,7 +343,7 @@ public VirtualNetworkGatewayConnectionInner withPeer(SubResource peer) { } /** - * Get the enableBgp value. + * Get enableBgp flag. * * @return the enableBgp value */ @@ -352,7 +352,7 @@ public Boolean enableBgp() { } /** - * Set the enableBgp value. + * Set enableBgp flag. * * @param enableBgp the enableBgp value to set * @return the VirtualNetworkGatewayConnectionInner object itself. @@ -363,7 +363,7 @@ public VirtualNetworkGatewayConnectionInner withEnableBgp(Boolean enableBgp) { } /** - * Get the usePolicyBasedTrafficSelectors value. + * Get enable policy-based traffic selectors. * * @return the usePolicyBasedTrafficSelectors value */ @@ -372,7 +372,7 @@ public Boolean usePolicyBasedTrafficSelectors() { } /** - * Set the usePolicyBasedTrafficSelectors value. + * Set enable policy-based traffic selectors. * * @param usePolicyBasedTrafficSelectors the usePolicyBasedTrafficSelectors value to set * @return the VirtualNetworkGatewayConnectionInner object itself. @@ -383,7 +383,7 @@ public VirtualNetworkGatewayConnectionInner withUsePolicyBasedTrafficSelectors(B } /** - * Get the ipsecPolicies value. + * Get the IPSec Policies to be considered by this connection. * * @return the ipsecPolicies value */ @@ -392,7 +392,7 @@ public List ipsecPolicies() { } /** - * Set the ipsecPolicies value. + * Set the IPSec Policies to be considered by this connection. * * @param ipsecPolicies the ipsecPolicies value to set * @return the VirtualNetworkGatewayConnectionInner object itself. @@ -403,7 +403,7 @@ public VirtualNetworkGatewayConnectionInner withIpsecPolicies(List } /** - * Get the resourceGuid value. + * Get the resource GUID property of the VirtualNetworkGatewayConnection resource. * * @return the resourceGuid value */ @@ -412,7 +412,7 @@ public String resourceGuid() { } /** - * Set the resourceGuid value. + * Set the resource GUID property of the VirtualNetworkGatewayConnection resource. * * @param resourceGuid the resourceGuid value to set * @return the VirtualNetworkGatewayConnectionInner object itself. @@ -423,7 +423,7 @@ public VirtualNetworkGatewayConnectionInner withResourceGuid(String resourceGuid } /** - * Get the provisioningState value. + * Get the provisioning state of the VirtualNetworkGatewayConnection resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @return the provisioningState value */ @@ -432,7 +432,7 @@ public String provisioningState() { } /** - * Get the etag value. + * Get gets a unique read-only string that changes whenever the resource is updated. * * @return the etag value */ @@ -441,7 +441,7 @@ public String etag() { } /** - * Set the etag value. + * Set gets a unique read-only string that changes whenever the resource is updated. * * @param etag the etag value to set * @return the VirtualNetworkGatewayConnectionInner object itself. @@ -452,7 +452,7 @@ public VirtualNetworkGatewayConnectionInner withEtag(String etag) { } /** - * Get the id value. + * Get resource ID. * * @return the id value */ @@ -461,7 +461,7 @@ public String id() { } /** - * Set the id value. + * Set resource ID. * * @param id the id value to set * @return the VirtualNetworkGatewayConnectionInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VirtualNetworkGatewayConnectionListEntityInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VirtualNetworkGatewayConnectionListEntityInner.java index bbf535c2ab2..ce75b14e4a7 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VirtualNetworkGatewayConnectionListEntityInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VirtualNetworkGatewayConnectionListEntityInner.java @@ -148,7 +148,7 @@ public class VirtualNetworkGatewayConnectionListEntityInner extends Resource { private String id; /** - * Get the authorizationKey value. + * Get the authorizationKey. * * @return the authorizationKey value */ @@ -157,7 +157,7 @@ public String authorizationKey() { } /** - * Set the authorizationKey value. + * Set the authorizationKey. * * @param authorizationKey the authorizationKey value to set * @return the VirtualNetworkGatewayConnectionListEntityInner object itself. @@ -168,7 +168,7 @@ public VirtualNetworkGatewayConnectionListEntityInner withAuthorizationKey(Strin } /** - * Get the virtualNetworkGateway1 value. + * Get the reference to virtual network gateway resource. * * @return the virtualNetworkGateway1 value */ @@ -177,7 +177,7 @@ public VirtualNetworkConnectionGatewayReference virtualNetworkGateway1() { } /** - * Set the virtualNetworkGateway1 value. + * Set the reference to virtual network gateway resource. * * @param virtualNetworkGateway1 the virtualNetworkGateway1 value to set * @return the VirtualNetworkGatewayConnectionListEntityInner object itself. @@ -188,7 +188,7 @@ public VirtualNetworkGatewayConnectionListEntityInner withVirtualNetworkGateway1 } /** - * Get the virtualNetworkGateway2 value. + * Get the reference to virtual network gateway resource. * * @return the virtualNetworkGateway2 value */ @@ -197,7 +197,7 @@ public VirtualNetworkConnectionGatewayReference virtualNetworkGateway2() { } /** - * Set the virtualNetworkGateway2 value. + * Set the reference to virtual network gateway resource. * * @param virtualNetworkGateway2 the virtualNetworkGateway2 value to set * @return the VirtualNetworkGatewayConnectionListEntityInner object itself. @@ -208,7 +208,7 @@ public VirtualNetworkGatewayConnectionListEntityInner withVirtualNetworkGateway2 } /** - * Get the localNetworkGateway2 value. + * Get the reference to local network gateway resource. * * @return the localNetworkGateway2 value */ @@ -217,7 +217,7 @@ public VirtualNetworkConnectionGatewayReference localNetworkGateway2() { } /** - * Set the localNetworkGateway2 value. + * Set the reference to local network gateway resource. * * @param localNetworkGateway2 the localNetworkGateway2 value to set * @return the VirtualNetworkGatewayConnectionListEntityInner object itself. @@ -228,7 +228,7 @@ public VirtualNetworkGatewayConnectionListEntityInner withLocalNetworkGateway2(V } /** - * Get the connectionType value. + * Get gateway connection type. Possible values are: 'Ipsec','Vnet2Vnet','ExpressRoute', and 'VPNClient. Possible values include: 'IPsec', 'Vnet2Vnet', 'ExpressRoute', 'VPNClient'. * * @return the connectionType value */ @@ -237,7 +237,7 @@ public VirtualNetworkGatewayConnectionType connectionType() { } /** - * Set the connectionType value. + * Set gateway connection type. Possible values are: 'Ipsec','Vnet2Vnet','ExpressRoute', and 'VPNClient. Possible values include: 'IPsec', 'Vnet2Vnet', 'ExpressRoute', 'VPNClient'. * * @param connectionType the connectionType value to set * @return the VirtualNetworkGatewayConnectionListEntityInner object itself. @@ -248,7 +248,7 @@ public VirtualNetworkGatewayConnectionListEntityInner withConnectionType(Virtual } /** - * Get the routingWeight value. + * Get the routing weight. * * @return the routingWeight value */ @@ -257,7 +257,7 @@ public Integer routingWeight() { } /** - * Set the routingWeight value. + * Set the routing weight. * * @param routingWeight the routingWeight value to set * @return the VirtualNetworkGatewayConnectionListEntityInner object itself. @@ -268,7 +268,7 @@ public VirtualNetworkGatewayConnectionListEntityInner withRoutingWeight(Integer } /** - * Get the sharedKey value. + * Get the IPSec shared key. * * @return the sharedKey value */ @@ -277,7 +277,7 @@ public String sharedKey() { } /** - * Set the sharedKey value. + * Set the IPSec shared key. * * @param sharedKey the sharedKey value to set * @return the VirtualNetworkGatewayConnectionListEntityInner object itself. @@ -288,7 +288,7 @@ public VirtualNetworkGatewayConnectionListEntityInner withSharedKey(String share } /** - * Get the connectionStatus value. + * Get virtual network Gateway connection status. Possible values are 'Unknown', 'Connecting', 'Connected' and 'NotConnected'. Possible values include: 'Unknown', 'Connecting', 'Connected', 'NotConnected'. * * @return the connectionStatus value */ @@ -297,7 +297,7 @@ public VirtualNetworkGatewayConnectionStatus connectionStatus() { } /** - * Get the tunnelConnectionStatus value. + * Get collection of all tunnels' connection health status. * * @return the tunnelConnectionStatus value */ @@ -306,7 +306,7 @@ public List tunnelConnectionStatus() { } /** - * Get the egressBytesTransferred value. + * Get the egress bytes transferred in this connection. * * @return the egressBytesTransferred value */ @@ -315,7 +315,7 @@ public Long egressBytesTransferred() { } /** - * Get the ingressBytesTransferred value. + * Get the ingress bytes transferred in this connection. * * @return the ingressBytesTransferred value */ @@ -324,7 +324,7 @@ public Long ingressBytesTransferred() { } /** - * Get the peer value. + * Get the reference to peerings resource. * * @return the peer value */ @@ -333,7 +333,7 @@ public SubResource peer() { } /** - * Set the peer value. + * Set the reference to peerings resource. * * @param peer the peer value to set * @return the VirtualNetworkGatewayConnectionListEntityInner object itself. @@ -344,7 +344,7 @@ public VirtualNetworkGatewayConnectionListEntityInner withPeer(SubResource peer) } /** - * Get the enableBgp value. + * Get enableBgp flag. * * @return the enableBgp value */ @@ -353,7 +353,7 @@ public Boolean enableBgp() { } /** - * Set the enableBgp value. + * Set enableBgp flag. * * @param enableBgp the enableBgp value to set * @return the VirtualNetworkGatewayConnectionListEntityInner object itself. @@ -364,7 +364,7 @@ public VirtualNetworkGatewayConnectionListEntityInner withEnableBgp(Boolean enab } /** - * Get the usePolicyBasedTrafficSelectors value. + * Get enable policy-based traffic selectors. * * @return the usePolicyBasedTrafficSelectors value */ @@ -373,7 +373,7 @@ public Boolean usePolicyBasedTrafficSelectors() { } /** - * Set the usePolicyBasedTrafficSelectors value. + * Set enable policy-based traffic selectors. * * @param usePolicyBasedTrafficSelectors the usePolicyBasedTrafficSelectors value to set * @return the VirtualNetworkGatewayConnectionListEntityInner object itself. @@ -384,7 +384,7 @@ public VirtualNetworkGatewayConnectionListEntityInner withUsePolicyBasedTrafficS } /** - * Get the ipsecPolicies value. + * Get the IPSec Policies to be considered by this connection. * * @return the ipsecPolicies value */ @@ -393,7 +393,7 @@ public List ipsecPolicies() { } /** - * Set the ipsecPolicies value. + * Set the IPSec Policies to be considered by this connection. * * @param ipsecPolicies the ipsecPolicies value to set * @return the VirtualNetworkGatewayConnectionListEntityInner object itself. @@ -404,7 +404,7 @@ public VirtualNetworkGatewayConnectionListEntityInner withIpsecPolicies(List ipConfigurations() { } /** - * Set the ipConfigurations value. + * Set iP configurations for virtual network gateway. * * @param ipConfigurations the ipConfigurations value to set * @return the VirtualNetworkGatewayInner object itself. @@ -134,7 +134,7 @@ public VirtualNetworkGatewayInner withIpConfigurations(List subnets() { } /** - * Set the subnets value. + * Set a list of subnets in a Virtual Network. * * @param subnets the subnets value to set * @return the VirtualNetworkInner object itself. @@ -157,7 +157,7 @@ public VirtualNetworkInner withSubnets(List subnets) { } /** - * Get the virtualNetworkPeerings value. + * Get a list of peerings in a Virtual Network. * * @return the virtualNetworkPeerings value */ @@ -166,7 +166,7 @@ public List virtualNetworkPeerings() { } /** - * Set the virtualNetworkPeerings value. + * Set a list of peerings in a Virtual Network. * * @param virtualNetworkPeerings the virtualNetworkPeerings value to set * @return the VirtualNetworkInner object itself. @@ -177,7 +177,7 @@ public VirtualNetworkInner withVirtualNetworkPeerings(List virtualHubs; + + /** + * The vpnSites property. + */ + @JsonProperty(value = "properties.vpnSites", access = JsonProperty.Access.WRITE_ONLY) + private List vpnSites; + + /** + * The provisioning state of the resource. Possible values include: + * 'Succeeded', 'Updating', 'Deleting', 'Failed'. + */ + @JsonProperty(value = "properties.provisioningState") + private ProvisioningState provisioningState; + + /** + * Gets a unique read-only string that changes whenever the resource is + * updated. + */ + @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) + private String etag; + + /** + * Resource ID. + */ + @JsonProperty(value = "id") + private String id; + + /** + * Get vpn encryption to be disabled or not. + * + * @return the disableVpnEncryption value + */ + public Boolean disableVpnEncryption() { + return this.disableVpnEncryption; + } + + /** + * Set vpn encryption to be disabled or not. + * + * @param disableVpnEncryption the disableVpnEncryption value to set + * @return the VirtualWANInner object itself. + */ + public VirtualWANInner withDisableVpnEncryption(Boolean disableVpnEncryption) { + this.disableVpnEncryption = disableVpnEncryption; + return this; + } + + /** + * Get list of VirtualHubs in the VirtualWAN. + * + * @return the virtualHubs value + */ + public List virtualHubs() { + return this.virtualHubs; + } + + /** + * Get the vpnSites value. + * + * @return the vpnSites value + */ + public List vpnSites() { + return this.vpnSites; + } + + /** + * Get the provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. + * + * @return the provisioningState value + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Set the provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. + * + * @param provisioningState the provisioningState value to set + * @return the VirtualWANInner object itself. + */ + public VirtualWANInner withProvisioningState(ProvisioningState provisioningState) { + this.provisioningState = provisioningState; + return this; + } + + /** + * Get gets a unique read-only string that changes whenever the resource is updated. + * + * @return the etag value + */ + public String etag() { + return this.etag; + } + + /** + * Get resource ID. + * + * @return the id value + */ + public String id() { + return this.id; + } + + /** + * Set resource ID. + * + * @param id the id value to set + * @return the VirtualWANInner object itself. + */ + public VirtualWANInner withId(String id) { + this.id = id; + return this; + } + +} diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VirtualWANsInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VirtualWANsInner.java new file mode 100644 index 00000000000..a6acfd5750d --- /dev/null +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VirtualWANsInner.java @@ -0,0 +1,1274 @@ +/** + * 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. + */ + +package com.microsoft.azure.management.network.implementation; + +import com.microsoft.azure.management.resources.fluentcore.collection.InnerSupportsGet; +import com.microsoft.azure.management.resources.fluentcore.collection.InnerSupportsDelete; +import com.microsoft.azure.management.resources.fluentcore.collection.InnerSupportsListing; +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.network.ErrorException; +import com.microsoft.azure.management.network.TagsObject; +import com.microsoft.azure.Page; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import com.microsoft.rest.Validator; +import java.io.IOException; +import java.util.List; +import java.util.Map; +import okhttp3.ResponseBody; +import retrofit2.http.Body; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.HTTP; +import retrofit2.http.PATCH; +import retrofit2.http.Path; +import retrofit2.http.PUT; +import retrofit2.http.Query; +import retrofit2.http.Url; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in VirtualWANs. + */ +public class VirtualWANsInner implements InnerSupportsGet, InnerSupportsDelete, InnerSupportsListing { + /** The Retrofit service to perform REST calls. */ + private VirtualWANsService service; + /** The service client containing this operation class. */ + private NetworkManagementClientImpl client; + + /** + * Initializes an instance of VirtualWANsInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public VirtualWANsInner(Retrofit retrofit, NetworkManagementClientImpl client) { + this.service = retrofit.create(VirtualWANsService.class); + this.client = client; + } + + /** + * The interface defining all the services for VirtualWANs to be + * used by Retrofit to perform actually REST calls. + */ + interface VirtualWANsService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VirtualWANs getByResourceGroup" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{VirtualWANName}") + Observable> getByResourceGroup(@Path("resourceGroupName") String resourceGroupName, @Path("VirtualWANName") String virtualWANName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VirtualWANs createOrUpdate" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{VirtualWANName}") + Observable> createOrUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("VirtualWANName") String virtualWANName, @Query("api-version") String apiVersion, @Body VirtualWANInner wANParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VirtualWANs beginCreateOrUpdate" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{VirtualWANName}") + Observable> beginCreateOrUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("VirtualWANName") String virtualWANName, @Query("api-version") String apiVersion, @Body VirtualWANInner wANParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VirtualWANs updateTags" }) + @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{VirtualWANName}") + Observable> updateTags(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("VirtualWANName") String virtualWANName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject wANParameters, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VirtualWANs beginUpdateTags" }) + @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{VirtualWANName}") + Observable> beginUpdateTags(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("VirtualWANName") String virtualWANName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject wANParameters, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VirtualWANs delete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{VirtualWANName}", method = "DELETE", hasBody = true) + Observable> delete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("VirtualWANName") String virtualWANName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VirtualWANs beginDelete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{VirtualWANName}", method = "DELETE", hasBody = true) + Observable> beginDelete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("VirtualWANName") String virtualWANName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VirtualWANs listByResourceGroup" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans") + Observable> listByResourceGroup(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VirtualWANs list" }) + @GET("subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualWans") + Observable> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VirtualWANs listByResourceGroupNext" }) + @GET + Observable> listByResourceGroupNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VirtualWANs listNext" }) + @GET + Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Retrieves the details of a VirtualWAN. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being retrieved. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VirtualWANInner object if successful. + */ + public VirtualWANInner getByResourceGroup(String resourceGroupName, String virtualWANName) { + return getByResourceGroupWithServiceResponseAsync(resourceGroupName, virtualWANName).toBlocking().single().body(); + } + + /** + * Retrieves the details of a VirtualWAN. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being retrieved. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getByResourceGroupAsync(String resourceGroupName, String virtualWANName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getByResourceGroupWithServiceResponseAsync(resourceGroupName, virtualWANName), serviceCallback); + } + + /** + * Retrieves the details of a VirtualWAN. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being retrieved. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VirtualWANInner object + */ + public Observable getByResourceGroupAsync(String resourceGroupName, String virtualWANName) { + return getByResourceGroupWithServiceResponseAsync(resourceGroupName, virtualWANName).map(new Func1, VirtualWANInner>() { + @Override + public VirtualWANInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Retrieves the details of a VirtualWAN. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being retrieved. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VirtualWANInner object + */ + public Observable> getByResourceGroupWithServiceResponseAsync(String resourceGroupName, String virtualWANName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualWANName == null) { + throw new IllegalArgumentException("Parameter virtualWANName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + return service.getByResourceGroup(resourceGroupName, virtualWANName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getByResourceGroupDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getByResourceGroupDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being created or updated. + * @param wANParameters Parameters supplied to create or update VirtualWAN. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VirtualWANInner object if successful. + */ + public VirtualWANInner createOrUpdate(String resourceGroupName, String virtualWANName, VirtualWANInner wANParameters) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, virtualWANName, wANParameters).toBlocking().last().body(); + } + + /** + * Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being created or updated. + * @param wANParameters Parameters supplied to create or update VirtualWAN. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createOrUpdateAsync(String resourceGroupName, String virtualWANName, VirtualWANInner wANParameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, virtualWANName, wANParameters), serviceCallback); + } + + /** + * Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being created or updated. + * @param wANParameters Parameters supplied to create or update VirtualWAN. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable createOrUpdateAsync(String resourceGroupName, String virtualWANName, VirtualWANInner wANParameters) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, virtualWANName, wANParameters).map(new Func1, VirtualWANInner>() { + @Override + public VirtualWANInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being created or updated. + * @param wANParameters Parameters supplied to create or update VirtualWAN. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String virtualWANName, VirtualWANInner wANParameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualWANName == null) { + throw new IllegalArgumentException("Parameter virtualWANName is required and cannot be null."); + } + if (wANParameters == null) { + throw new IllegalArgumentException("Parameter wANParameters is required and cannot be null."); + } + Validator.validate(wANParameters); + final String apiVersion = "2018-06-01"; + Observable> observable = service.createOrUpdate(this.client.subscriptionId(), resourceGroupName, virtualWANName, apiVersion, wANParameters, this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being created or updated. + * @param wANParameters Parameters supplied to create or update VirtualWAN. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VirtualWANInner object if successful. + */ + public VirtualWANInner beginCreateOrUpdate(String resourceGroupName, String virtualWANName, VirtualWANInner wANParameters) { + return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, virtualWANName, wANParameters).toBlocking().single().body(); + } + + /** + * Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being created or updated. + * @param wANParameters Parameters supplied to create or update VirtualWAN. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginCreateOrUpdateAsync(String resourceGroupName, String virtualWANName, VirtualWANInner wANParameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, virtualWANName, wANParameters), serviceCallback); + } + + /** + * Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being created or updated. + * @param wANParameters Parameters supplied to create or update VirtualWAN. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VirtualWANInner object + */ + public Observable beginCreateOrUpdateAsync(String resourceGroupName, String virtualWANName, VirtualWANInner wANParameters) { + return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, virtualWANName, wANParameters).map(new Func1, VirtualWANInner>() { + @Override + public VirtualWANInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being created or updated. + * @param wANParameters Parameters supplied to create or update VirtualWAN. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VirtualWANInner object + */ + public Observable> beginCreateOrUpdateWithServiceResponseAsync(String resourceGroupName, String virtualWANName, VirtualWANInner wANParameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualWANName == null) { + throw new IllegalArgumentException("Parameter virtualWANName is required and cannot be null."); + } + if (wANParameters == null) { + throw new IllegalArgumentException("Parameter wANParameters is required and cannot be null."); + } + Validator.validate(wANParameters); + final String apiVersion = "2018-06-01"; + return service.beginCreateOrUpdate(this.client.subscriptionId(), resourceGroupName, virtualWANName, apiVersion, wANParameters, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginCreateOrUpdateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginCreateOrUpdateDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(201, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Updates a VirtualWAN tags. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being updated. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VirtualWANInner object if successful. + */ + public VirtualWANInner updateTags(String resourceGroupName, String virtualWANName) { + return updateTagsWithServiceResponseAsync(resourceGroupName, virtualWANName).toBlocking().last().body(); + } + + /** + * Updates a VirtualWAN tags. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being updated. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture updateTagsAsync(String resourceGroupName, String virtualWANName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateTagsWithServiceResponseAsync(resourceGroupName, virtualWANName), serviceCallback); + } + + /** + * Updates a VirtualWAN tags. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being updated. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable updateTagsAsync(String resourceGroupName, String virtualWANName) { + return updateTagsWithServiceResponseAsync(resourceGroupName, virtualWANName).map(new Func1, VirtualWANInner>() { + @Override + public VirtualWANInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates a VirtualWAN tags. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being updated. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> updateTagsWithServiceResponseAsync(String resourceGroupName, String virtualWANName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualWANName == null) { + throw new IllegalArgumentException("Parameter virtualWANName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + final Map tags = null; + TagsObject wANParameters = new TagsObject(); + wANParameters.withTags(null); + Observable> observable = service.updateTags(this.client.subscriptionId(), resourceGroupName, virtualWANName, apiVersion, this.client.acceptLanguage(), wANParameters, this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + } + /** + * Updates a VirtualWAN tags. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being updated. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VirtualWANInner object if successful. + */ + public VirtualWANInner updateTags(String resourceGroupName, String virtualWANName, Map tags) { + return updateTagsWithServiceResponseAsync(resourceGroupName, virtualWANName, tags).toBlocking().last().body(); + } + + /** + * Updates a VirtualWAN tags. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being updated. + * @param tags Resource tags. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture updateTagsAsync(String resourceGroupName, String virtualWANName, Map tags, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateTagsWithServiceResponseAsync(resourceGroupName, virtualWANName, tags), serviceCallback); + } + + /** + * Updates a VirtualWAN tags. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being updated. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable updateTagsAsync(String resourceGroupName, String virtualWANName, Map tags) { + return updateTagsWithServiceResponseAsync(resourceGroupName, virtualWANName, tags).map(new Func1, VirtualWANInner>() { + @Override + public VirtualWANInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates a VirtualWAN tags. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being updated. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> updateTagsWithServiceResponseAsync(String resourceGroupName, String virtualWANName, Map tags) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualWANName == null) { + throw new IllegalArgumentException("Parameter virtualWANName is required and cannot be null."); + } + Validator.validate(tags); + final String apiVersion = "2018-06-01"; + TagsObject wANParameters = new TagsObject(); + wANParameters.withTags(tags); + Observable> observable = service.updateTags(this.client.subscriptionId(), resourceGroupName, virtualWANName, apiVersion, this.client.acceptLanguage(), wANParameters, this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Updates a VirtualWAN tags. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being updated. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VirtualWANInner object if successful. + */ + public VirtualWANInner beginUpdateTags(String resourceGroupName, String virtualWANName) { + return beginUpdateTagsWithServiceResponseAsync(resourceGroupName, virtualWANName).toBlocking().single().body(); + } + + /** + * Updates a VirtualWAN tags. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being updated. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginUpdateTagsAsync(String resourceGroupName, String virtualWANName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginUpdateTagsWithServiceResponseAsync(resourceGroupName, virtualWANName), serviceCallback); + } + + /** + * Updates a VirtualWAN tags. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being updated. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VirtualWANInner object + */ + public Observable beginUpdateTagsAsync(String resourceGroupName, String virtualWANName) { + return beginUpdateTagsWithServiceResponseAsync(resourceGroupName, virtualWANName).map(new Func1, VirtualWANInner>() { + @Override + public VirtualWANInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates a VirtualWAN tags. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being updated. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VirtualWANInner object + */ + public Observable> beginUpdateTagsWithServiceResponseAsync(String resourceGroupName, String virtualWANName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualWANName == null) { + throw new IllegalArgumentException("Parameter virtualWANName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + final Map tags = null; + TagsObject wANParameters = new TagsObject(); + wANParameters.withTags(null); + return service.beginUpdateTags(this.client.subscriptionId(), resourceGroupName, virtualWANName, apiVersion, this.client.acceptLanguage(), wANParameters, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginUpdateTagsDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + /** + * Updates a VirtualWAN tags. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being updated. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VirtualWANInner object if successful. + */ + public VirtualWANInner beginUpdateTags(String resourceGroupName, String virtualWANName, Map tags) { + return beginUpdateTagsWithServiceResponseAsync(resourceGroupName, virtualWANName, tags).toBlocking().single().body(); + } + + /** + * Updates a VirtualWAN tags. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being updated. + * @param tags Resource tags. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginUpdateTagsAsync(String resourceGroupName, String virtualWANName, Map tags, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginUpdateTagsWithServiceResponseAsync(resourceGroupName, virtualWANName, tags), serviceCallback); + } + + /** + * Updates a VirtualWAN tags. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being updated. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VirtualWANInner object + */ + public Observable beginUpdateTagsAsync(String resourceGroupName, String virtualWANName, Map tags) { + return beginUpdateTagsWithServiceResponseAsync(resourceGroupName, virtualWANName, tags).map(new Func1, VirtualWANInner>() { + @Override + public VirtualWANInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates a VirtualWAN tags. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being updated. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VirtualWANInner object + */ + public Observable> beginUpdateTagsWithServiceResponseAsync(String resourceGroupName, String virtualWANName, Map tags) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualWANName == null) { + throw new IllegalArgumentException("Parameter virtualWANName is required and cannot be null."); + } + Validator.validate(tags); + final String apiVersion = "2018-06-01"; + TagsObject wANParameters = new TagsObject(); + wANParameters.withTags(tags); + return service.beginUpdateTags(this.client.subscriptionId(), resourceGroupName, virtualWANName, apiVersion, this.client.acceptLanguage(), wANParameters, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginUpdateTagsDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginUpdateTagsDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(201, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Deletes a VirtualWAN. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being deleted. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void delete(String resourceGroupName, String virtualWANName) { + deleteWithServiceResponseAsync(resourceGroupName, virtualWANName).toBlocking().last().body(); + } + + /** + * Deletes a VirtualWAN. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being deleted. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteAsync(String resourceGroupName, String virtualWANName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, virtualWANName), serviceCallback); + } + + /** + * Deletes a VirtualWAN. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being deleted. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable deleteAsync(String resourceGroupName, String virtualWANName) { + return deleteWithServiceResponseAsync(resourceGroupName, virtualWANName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes a VirtualWAN. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being deleted. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> deleteWithServiceResponseAsync(String resourceGroupName, String virtualWANName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualWANName == null) { + throw new IllegalArgumentException("Parameter virtualWANName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + Observable> observable = service.delete(this.client.subscriptionId(), resourceGroupName, virtualWANName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Deletes a VirtualWAN. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being deleted. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void beginDelete(String resourceGroupName, String virtualWANName) { + beginDeleteWithServiceResponseAsync(resourceGroupName, virtualWANName).toBlocking().single().body(); + } + + /** + * Deletes a VirtualWAN. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being deleted. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginDeleteAsync(String resourceGroupName, String virtualWANName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginDeleteWithServiceResponseAsync(resourceGroupName, virtualWANName), serviceCallback); + } + + /** + * Deletes a VirtualWAN. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being deleted. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable beginDeleteAsync(String resourceGroupName, String virtualWANName) { + return beginDeleteWithServiceResponseAsync(resourceGroupName, virtualWANName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes a VirtualWAN. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param virtualWANName The name of the VirtualWAN being deleted. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> beginDeleteWithServiceResponseAsync(String resourceGroupName, String virtualWANName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualWANName == null) { + throw new IllegalArgumentException("Parameter virtualWANName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + return service.beginDelete(this.client.subscriptionId(), resourceGroupName, virtualWANName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginDeleteDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginDeleteDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Lists all the VirtualWANs in a resource group. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<VirtualWANInner> object if successful. + */ + public PagedList listByResourceGroup(final String resourceGroupName) { + ServiceResponse> response = listByResourceGroupSinglePageAsync(resourceGroupName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all the VirtualWANs in a resource group. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByResourceGroupAsync(final String resourceGroupName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByResourceGroupSinglePageAsync(resourceGroupName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all the VirtualWANs in a resource group. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VirtualWANInner> object + */ + public Observable> listByResourceGroupAsync(final String resourceGroupName) { + return listByResourceGroupWithServiceResponseAsync(resourceGroupName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all the VirtualWANs in a resource group. + * + * @param resourceGroupName The resource group name of the VirtualWan. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VirtualWANInner> object + */ + public Observable>> listByResourceGroupWithServiceResponseAsync(final String resourceGroupName) { + return listByResourceGroupSinglePageAsync(resourceGroupName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all the VirtualWANs in a resource group. + * + ServiceResponse> * @param resourceGroupName The resource group name of the VirtualWan. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<VirtualWANInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByResourceGroupSinglePageAsync(final String resourceGroupName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + return service.listByResourceGroup(this.client.subscriptionId(), resourceGroupName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByResourceGroupDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByResourceGroupDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Lists all the VirtualWANs in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<VirtualWANInner> object if successful. + */ + public PagedList list() { + ServiceResponse> response = listSinglePageAsync().toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all the VirtualWANs in a subscription. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAsync(final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listSinglePageAsync(), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all the VirtualWANs in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VirtualWANInner> object + */ + public Observable> listAsync() { + return listWithServiceResponseAsync() + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all the VirtualWANs in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VirtualWANInner> object + */ + public Observable>> listWithServiceResponseAsync() { + return listSinglePageAsync() + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all the VirtualWANs in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<VirtualWANInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listSinglePageAsync() { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + return service.list(this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Lists all the VirtualWANs in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<VirtualWANInner> object if successful. + */ + public PagedList listByResourceGroupNext(final String nextPageLink) { + ServiceResponse> response = listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all the VirtualWANs in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByResourceGroupNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByResourceGroupNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all the VirtualWANs in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VirtualWANInner> object + */ + public Observable> listByResourceGroupNextAsync(final String nextPageLink) { + return listByResourceGroupNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all the VirtualWANs in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VirtualWANInner> object + */ + public Observable>> listByResourceGroupNextWithServiceResponseAsync(final String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all the VirtualWANs in a resource group. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<VirtualWANInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByResourceGroupNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listByResourceGroupNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByResourceGroupNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByResourceGroupNextDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Lists all the VirtualWANs in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<VirtualWANInner> object if successful. + */ + public PagedList listNext(final String nextPageLink) { + ServiceResponse> response = listNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all the VirtualWANs in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all the VirtualWANs in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VirtualWANInner> object + */ + public Observable> listNextAsync(final String nextPageLink) { + return listNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all the VirtualWANs in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VirtualWANInner> object + */ + public Observable>> listNextWithServiceResponseAsync(final String nextPageLink) { + return listNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all the VirtualWANs in a subscription. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<VirtualWANInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listNextDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + +} diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnClientRevokedCertificateInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnClientRevokedCertificateInner.java index bb555d4c726..7e4e363a781 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnClientRevokedCertificateInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnClientRevokedCertificateInner.java @@ -44,7 +44,7 @@ public class VpnClientRevokedCertificateInner extends SubResource { private String etag; /** - * Get the thumbprint value. + * Get the revoked VPN client certificate thumbprint. * * @return the thumbprint value */ @@ -53,7 +53,7 @@ public String thumbprint() { } /** - * Set the thumbprint value. + * Set the revoked VPN client certificate thumbprint. * * @param thumbprint the thumbprint value to set * @return the VpnClientRevokedCertificateInner object itself. @@ -64,7 +64,7 @@ public VpnClientRevokedCertificateInner withThumbprint(String thumbprint) { } /** - * Get the provisioningState value. + * Get the provisioning state of the VPN client revoked certificate resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @return the provisioningState value */ @@ -73,7 +73,7 @@ public String provisioningState() { } /** - * Get the name value. + * Get the name of the resource that is unique within a resource group. This name can be used to access the resource. * * @return the name value */ @@ -82,7 +82,7 @@ public String name() { } /** - * Set the name value. + * Set the name of the resource that is unique within a resource group. This name can be used to access the resource. * * @param name the name value to set * @return the VpnClientRevokedCertificateInner object itself. @@ -93,7 +93,7 @@ public VpnClientRevokedCertificateInner withName(String name) { } /** - * Get the etag value. + * Get a unique read-only string that changes whenever the resource is updated. * * @return the etag value */ @@ -102,7 +102,7 @@ public String etag() { } /** - * Set the etag value. + * Set a unique read-only string that changes whenever the resource is updated. * * @param etag the etag value to set * @return the VpnClientRevokedCertificateInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnClientRootCertificateInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnClientRootCertificateInner.java index e7a48315e59..276e046e381 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnClientRootCertificateInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnClientRootCertificateInner.java @@ -44,7 +44,7 @@ public class VpnClientRootCertificateInner extends SubResource { private String etag; /** - * Get the publicCertData value. + * Get the certificate public data. * * @return the publicCertData value */ @@ -53,7 +53,7 @@ public String publicCertData() { } /** - * Set the publicCertData value. + * Set the certificate public data. * * @param publicCertData the publicCertData value to set * @return the VpnClientRootCertificateInner object itself. @@ -64,7 +64,7 @@ public VpnClientRootCertificateInner withPublicCertData(String publicCertData) { } /** - * Get the provisioningState value. + * Get the provisioning state of the VPN client root certificate resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @return the provisioningState value */ @@ -73,7 +73,7 @@ public String provisioningState() { } /** - * Get the name value. + * Get the name of the resource that is unique within a resource group. This name can be used to access the resource. * * @return the name value */ @@ -82,7 +82,7 @@ public String name() { } /** - * Set the name value. + * Set the name of the resource that is unique within a resource group. This name can be used to access the resource. * * @param name the name value to set * @return the VpnClientRootCertificateInner object itself. @@ -93,7 +93,7 @@ public VpnClientRootCertificateInner withName(String name) { } /** - * Get the etag value. + * Get a unique read-only string that changes whenever the resource is updated. * * @return the etag value */ @@ -102,7 +102,7 @@ public String etag() { } /** - * Set the etag value. + * Set a unique read-only string that changes whenever the resource is updated. * * @param etag the etag value to set * @return the VpnClientRootCertificateInner object itself. diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnConnectionInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnConnectionInner.java new file mode 100644 index 00000000000..66ad2ee6ffe --- /dev/null +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnConnectionInner.java @@ -0,0 +1,298 @@ +/** + * 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. + */ + +package com.microsoft.azure.management.network.implementation; + +import com.microsoft.azure.SubResource; +import com.microsoft.azure.management.network.VpnConnectionStatus; +import com.microsoft.azure.management.network.TunnelConnectionStatus; +import com.microsoft.azure.management.network.ProvisioningState; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.rest.SkipParentValidation; +import com.microsoft.azure.Resource; + +/** + * VpnConnection Resource. + */ +@JsonFlatten +@SkipParentValidation +public class VpnConnectionInner extends Resource { + /** + * Id of the connected vpn site. + */ + @JsonProperty(value = "properties.remoteVpnSite") + private SubResource remoteVpnSite; + + /** + * routing weight for vpn connection. + */ + @JsonProperty(value = "properties.routingWeight") + private Integer routingWeight; + + /** + * The connection status. Possible values include: 'Unknown', 'Connecting', + * 'Connected', 'NotConnected'. + */ + @JsonProperty(value = "properties.connectionStatus") + private VpnConnectionStatus connectionStatus; + + /** + * The connection status of tunnel. Possible values include: 'Unknown', + * 'Connecting', 'Connected', 'NotConnected'. + */ + @JsonProperty(value = "properties.tunnelConnectionStatus") + private TunnelConnectionStatus tunnelConnectionStatus; + + /** + * Ingress bytes transferred. + */ + @JsonProperty(value = "properties.ingressBytesTransferred", access = JsonProperty.Access.WRITE_ONLY) + private Long ingressBytesTransferred; + + /** + * Egress bytes transferred. + */ + @JsonProperty(value = "properties.egressBytesTransferred", access = JsonProperty.Access.WRITE_ONLY) + private Long egressBytesTransferred; + + /** + * Expected bandwidth in MBPS. + */ + @JsonProperty(value = "properties.connectionBandwidthInMbps", access = JsonProperty.Access.WRITE_ONLY) + private Integer connectionBandwidthInMbps; + + /** + * SharedKey for the vpn connection. + */ + @JsonProperty(value = "properties.sharedKey") + private String sharedKey; + + /** + * EnableBgp flag. + */ + @JsonProperty(value = "properties.enableBgp") + private Boolean enableBgp; + + /** + * The provisioning state of the resource. Possible values include: + * 'Succeeded', 'Updating', 'Deleting', 'Failed'. + */ + @JsonProperty(value = "properties.provisioningState") + private ProvisioningState provisioningState; + + /** + * Gets a unique read-only string that changes whenever the resource is + * updated. + */ + @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) + private String etag; + + /** + * Resource ID. + */ + @JsonProperty(value = "id") + private String id; + + /** + * Get id of the connected vpn site. + * + * @return the remoteVpnSite value + */ + public SubResource remoteVpnSite() { + return this.remoteVpnSite; + } + + /** + * Set id of the connected vpn site. + * + * @param remoteVpnSite the remoteVpnSite value to set + * @return the VpnConnectionInner object itself. + */ + public VpnConnectionInner withRemoteVpnSite(SubResource remoteVpnSite) { + this.remoteVpnSite = remoteVpnSite; + return this; + } + + /** + * Get routing weight for vpn connection. + * + * @return the routingWeight value + */ + public Integer routingWeight() { + return this.routingWeight; + } + + /** + * Set routing weight for vpn connection. + * + * @param routingWeight the routingWeight value to set + * @return the VpnConnectionInner object itself. + */ + public VpnConnectionInner withRoutingWeight(Integer routingWeight) { + this.routingWeight = routingWeight; + return this; + } + + /** + * Get the connection status. Possible values include: 'Unknown', 'Connecting', 'Connected', 'NotConnected'. + * + * @return the connectionStatus value + */ + public VpnConnectionStatus connectionStatus() { + return this.connectionStatus; + } + + /** + * Set the connection status. Possible values include: 'Unknown', 'Connecting', 'Connected', 'NotConnected'. + * + * @param connectionStatus the connectionStatus value to set + * @return the VpnConnectionInner object itself. + */ + public VpnConnectionInner withConnectionStatus(VpnConnectionStatus connectionStatus) { + this.connectionStatus = connectionStatus; + return this; + } + + /** + * Get the connection status of tunnel. Possible values include: 'Unknown', 'Connecting', 'Connected', 'NotConnected'. + * + * @return the tunnelConnectionStatus value + */ + public TunnelConnectionStatus tunnelConnectionStatus() { + return this.tunnelConnectionStatus; + } + + /** + * Set the connection status of tunnel. Possible values include: 'Unknown', 'Connecting', 'Connected', 'NotConnected'. + * + * @param tunnelConnectionStatus the tunnelConnectionStatus value to set + * @return the VpnConnectionInner object itself. + */ + public VpnConnectionInner withTunnelConnectionStatus(TunnelConnectionStatus tunnelConnectionStatus) { + this.tunnelConnectionStatus = tunnelConnectionStatus; + return this; + } + + /** + * Get ingress bytes transferred. + * + * @return the ingressBytesTransferred value + */ + public Long ingressBytesTransferred() { + return this.ingressBytesTransferred; + } + + /** + * Get egress bytes transferred. + * + * @return the egressBytesTransferred value + */ + public Long egressBytesTransferred() { + return this.egressBytesTransferred; + } + + /** + * Get expected bandwidth in MBPS. + * + * @return the connectionBandwidthInMbps value + */ + public Integer connectionBandwidthInMbps() { + return this.connectionBandwidthInMbps; + } + + /** + * Get sharedKey for the vpn connection. + * + * @return the sharedKey value + */ + public String sharedKey() { + return this.sharedKey; + } + + /** + * Set sharedKey for the vpn connection. + * + * @param sharedKey the sharedKey value to set + * @return the VpnConnectionInner object itself. + */ + public VpnConnectionInner withSharedKey(String sharedKey) { + this.sharedKey = sharedKey; + return this; + } + + /** + * Get enableBgp flag. + * + * @return the enableBgp value + */ + public Boolean enableBgp() { + return this.enableBgp; + } + + /** + * Set enableBgp flag. + * + * @param enableBgp the enableBgp value to set + * @return the VpnConnectionInner object itself. + */ + public VpnConnectionInner withEnableBgp(Boolean enableBgp) { + this.enableBgp = enableBgp; + return this; + } + + /** + * Get the provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. + * + * @return the provisioningState value + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Set the provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. + * + * @param provisioningState the provisioningState value to set + * @return the VpnConnectionInner object itself. + */ + public VpnConnectionInner withProvisioningState(ProvisioningState provisioningState) { + this.provisioningState = provisioningState; + return this; + } + + /** + * Get gets a unique read-only string that changes whenever the resource is updated. + * + * @return the etag value + */ + public String etag() { + return this.etag; + } + + /** + * Get resource ID. + * + * @return the id value + */ + public String id() { + return this.id; + } + + /** + * Set resource ID. + * + * @param id the id value to set + * @return the VpnConnectionInner object itself. + */ + public VpnConnectionInner withId(String id) { + this.id = id; + return this; + } + +} diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnConnectionsInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnConnectionsInner.java new file mode 100644 index 00000000000..a0a14314814 --- /dev/null +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnConnectionsInner.java @@ -0,0 +1,389 @@ +/** + * 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. + */ + +package com.microsoft.azure.management.network.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.network.ErrorException; +import com.microsoft.azure.Page; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import java.io.IOException; +import java.util.List; +import okhttp3.ResponseBody; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.Path; +import retrofit2.http.Query; +import retrofit2.http.Url; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in VpnConnections. + */ +public class VpnConnectionsInner { + /** The Retrofit service to perform REST calls. */ + private VpnConnectionsService service; + /** The service client containing this operation class. */ + private NetworkManagementClientImpl client; + + /** + * Initializes an instance of VpnConnectionsInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public VpnConnectionsInner(Retrofit retrofit, NetworkManagementClientImpl client) { + this.service = retrofit.create(VpnConnectionsService.class); + this.client = client; + } + + /** + * The interface defining all the services for VpnConnections to be + * used by Retrofit to perform actually REST calls. + */ + interface VpnConnectionsService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VpnConnections get" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}") + Observable> get(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("gatewayName") String gatewayName, @Path("connectionName") String connectionName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VpnConnections listByVpnGateway" }) + @GET("subscriptions/{subscriptionId}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections") + Observable> listByVpnGateway(@Path("subscriptionId") String subscriptionId, @Path("gatewayName") String gatewayName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VpnConnections listByVpnGatewayNext" }) + @GET + Observable> listByVpnGatewayNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Retrieves the details of a vpn connection. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param connectionName The name of the vpn connection. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VpnConnectionInner object if successful. + */ + public VpnConnectionInner get(String resourceGroupName, String gatewayName, String connectionName) { + return getWithServiceResponseAsync(resourceGroupName, gatewayName, connectionName).toBlocking().single().body(); + } + + /** + * Retrieves the details of a vpn connection. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param connectionName The name of the vpn connection. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getAsync(String resourceGroupName, String gatewayName, String connectionName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getWithServiceResponseAsync(resourceGroupName, gatewayName, connectionName), serviceCallback); + } + + /** + * Retrieves the details of a vpn connection. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param connectionName The name of the vpn connection. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VpnConnectionInner object + */ + public Observable getAsync(String resourceGroupName, String gatewayName, String connectionName) { + return getWithServiceResponseAsync(resourceGroupName, gatewayName, connectionName).map(new Func1, VpnConnectionInner>() { + @Override + public VpnConnectionInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Retrieves the details of a vpn connection. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param connectionName The name of the vpn connection. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VpnConnectionInner object + */ + public Observable> getWithServiceResponseAsync(String resourceGroupName, String gatewayName, String connectionName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (gatewayName == null) { + throw new IllegalArgumentException("Parameter gatewayName is required and cannot be null."); + } + if (connectionName == null) { + throw new IllegalArgumentException("Parameter connectionName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + return service.get(this.client.subscriptionId(), resourceGroupName, gatewayName, connectionName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Retrieves all vpn connections for a particular virtual wan vpn gateway. + * + * @param gatewayName The name of the gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<VpnConnectionInner> object if successful. + */ + public PagedList listByVpnGateway(final String gatewayName) { + ServiceResponse> response = listByVpnGatewaySinglePageAsync(gatewayName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByVpnGatewayNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Retrieves all vpn connections for a particular virtual wan vpn gateway. + * + * @param gatewayName The name of the gateway. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByVpnGatewayAsync(final String gatewayName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByVpnGatewaySinglePageAsync(gatewayName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByVpnGatewayNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Retrieves all vpn connections for a particular virtual wan vpn gateway. + * + * @param gatewayName The name of the gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VpnConnectionInner> object + */ + public Observable> listByVpnGatewayAsync(final String gatewayName) { + return listByVpnGatewayWithServiceResponseAsync(gatewayName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Retrieves all vpn connections for a particular virtual wan vpn gateway. + * + * @param gatewayName The name of the gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VpnConnectionInner> object + */ + public Observable>> listByVpnGatewayWithServiceResponseAsync(final String gatewayName) { + return listByVpnGatewaySinglePageAsync(gatewayName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByVpnGatewayNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Retrieves all vpn connections for a particular virtual wan vpn gateway. + * + ServiceResponse> * @param gatewayName The name of the gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<VpnConnectionInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByVpnGatewaySinglePageAsync(final String gatewayName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (gatewayName == null) { + throw new IllegalArgumentException("Parameter gatewayName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + return service.listByVpnGateway(this.client.subscriptionId(), gatewayName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByVpnGatewayDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByVpnGatewayDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Retrieves all vpn connections for a particular virtual wan vpn gateway. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<VpnConnectionInner> object if successful. + */ + public PagedList listByVpnGatewayNext(final String nextPageLink) { + ServiceResponse> response = listByVpnGatewayNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByVpnGatewayNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Retrieves all vpn connections for a particular virtual wan vpn gateway. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByVpnGatewayNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByVpnGatewayNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByVpnGatewayNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Retrieves all vpn connections for a particular virtual wan vpn gateway. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VpnConnectionInner> object + */ + public Observable> listByVpnGatewayNextAsync(final String nextPageLink) { + return listByVpnGatewayNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Retrieves all vpn connections for a particular virtual wan vpn gateway. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VpnConnectionInner> object + */ + public Observable>> listByVpnGatewayNextWithServiceResponseAsync(final String nextPageLink) { + return listByVpnGatewayNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByVpnGatewayNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Retrieves all vpn connections for a particular virtual wan vpn gateway. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<VpnConnectionInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByVpnGatewayNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listByVpnGatewayNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByVpnGatewayNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByVpnGatewayNextDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + +} diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnGatewayInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnGatewayInner.java new file mode 100644 index 00000000000..0d53d53fd50 --- /dev/null +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnGatewayInner.java @@ -0,0 +1,173 @@ +/** + * 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. + */ + +package com.microsoft.azure.management.network.implementation; + +import com.microsoft.azure.SubResource; +import java.util.List; +import com.microsoft.azure.management.network.BgpSettings; +import com.microsoft.azure.management.network.ProvisioningState; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.rest.SkipParentValidation; +import com.microsoft.azure.Resource; + +/** + * VpnGateway Resource. + */ +@JsonFlatten +@SkipParentValidation +public class VpnGatewayInner extends Resource { + /** + * The VirtualHub to which the gateway belongs. + */ + @JsonProperty(value = "properties.virtualHub") + private SubResource virtualHub; + + /** + * list of all vpn connections to the gateway. + */ + @JsonProperty(value = "properties.connections") + private List connections; + + /** + * Local network gateway's BGP speaker settings. + */ + @JsonProperty(value = "properties.bgpSettings") + private BgpSettings bgpSettings; + + /** + * The provisioning state of the resource. Possible values include: + * 'Succeeded', 'Updating', 'Deleting', 'Failed'. + */ + @JsonProperty(value = "properties.provisioningState") + private ProvisioningState provisioningState; + + /** + * Gets a unique read-only string that changes whenever the resource is + * updated. + */ + @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) + private String etag; + + /** + * Resource ID. + */ + @JsonProperty(value = "id") + private String id; + + /** + * Get the VirtualHub to which the gateway belongs. + * + * @return the virtualHub value + */ + public SubResource virtualHub() { + return this.virtualHub; + } + + /** + * Set the VirtualHub to which the gateway belongs. + * + * @param virtualHub the virtualHub value to set + * @return the VpnGatewayInner object itself. + */ + public VpnGatewayInner withVirtualHub(SubResource virtualHub) { + this.virtualHub = virtualHub; + return this; + } + + /** + * Get list of all vpn connections to the gateway. + * + * @return the connections value + */ + public List connections() { + return this.connections; + } + + /** + * Set list of all vpn connections to the gateway. + * + * @param connections the connections value to set + * @return the VpnGatewayInner object itself. + */ + public VpnGatewayInner withConnections(List connections) { + this.connections = connections; + return this; + } + + /** + * Get local network gateway's BGP speaker settings. + * + * @return the bgpSettings value + */ + public BgpSettings bgpSettings() { + return this.bgpSettings; + } + + /** + * Set local network gateway's BGP speaker settings. + * + * @param bgpSettings the bgpSettings value to set + * @return the VpnGatewayInner object itself. + */ + public VpnGatewayInner withBgpSettings(BgpSettings bgpSettings) { + this.bgpSettings = bgpSettings; + return this; + } + + /** + * Get the provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. + * + * @return the provisioningState value + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Set the provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. + * + * @param provisioningState the provisioningState value to set + * @return the VpnGatewayInner object itself. + */ + public VpnGatewayInner withProvisioningState(ProvisioningState provisioningState) { + this.provisioningState = provisioningState; + return this; + } + + /** + * Get gets a unique read-only string that changes whenever the resource is updated. + * + * @return the etag value + */ + public String etag() { + return this.etag; + } + + /** + * Get resource ID. + * + * @return the id value + */ + public String id() { + return this.id; + } + + /** + * Set resource ID. + * + * @param id the id value to set + * @return the VpnGatewayInner object itself. + */ + public VpnGatewayInner withId(String id) { + this.id = id; + return this; + } + +} diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnGatewaysInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnGatewaysInner.java new file mode 100644 index 00000000000..235a3093e25 --- /dev/null +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnGatewaysInner.java @@ -0,0 +1,1274 @@ +/** + * 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. + */ + +package com.microsoft.azure.management.network.implementation; + +import com.microsoft.azure.management.resources.fluentcore.collection.InnerSupportsGet; +import com.microsoft.azure.management.resources.fluentcore.collection.InnerSupportsDelete; +import com.microsoft.azure.management.resources.fluentcore.collection.InnerSupportsListing; +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.network.ErrorException; +import com.microsoft.azure.management.network.TagsObject; +import com.microsoft.azure.Page; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import com.microsoft.rest.Validator; +import java.io.IOException; +import java.util.List; +import java.util.Map; +import okhttp3.ResponseBody; +import retrofit2.http.Body; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.HTTP; +import retrofit2.http.PATCH; +import retrofit2.http.Path; +import retrofit2.http.PUT; +import retrofit2.http.Query; +import retrofit2.http.Url; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in VpnGateways. + */ +public class VpnGatewaysInner implements InnerSupportsGet, InnerSupportsDelete, InnerSupportsListing { + /** The Retrofit service to perform REST calls. */ + private VpnGatewaysService service; + /** The service client containing this operation class. */ + private NetworkManagementClientImpl client; + + /** + * Initializes an instance of VpnGatewaysInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public VpnGatewaysInner(Retrofit retrofit, NetworkManagementClientImpl client) { + this.service = retrofit.create(VpnGatewaysService.class); + this.client = client; + } + + /** + * The interface defining all the services for VpnGateways to be + * used by Retrofit to perform actually REST calls. + */ + interface VpnGatewaysService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VpnGateways getByResourceGroup" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}") + Observable> getByResourceGroup(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("gatewayName") String gatewayName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VpnGateways createOrUpdate" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}") + Observable> createOrUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("gatewayName") String gatewayName, @Query("api-version") String apiVersion, @Body VpnGatewayInner vpnGatewayParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VpnGateways beginCreateOrUpdate" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}") + Observable> beginCreateOrUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("gatewayName") String gatewayName, @Query("api-version") String apiVersion, @Body VpnGatewayInner vpnGatewayParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VpnGateways updateTags" }) + @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}") + Observable> updateTags(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("gatewayName") String gatewayName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject vpnGatewayParameters, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VpnGateways beginUpdateTags" }) + @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}") + Observable> beginUpdateTags(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("gatewayName") String gatewayName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject vpnGatewayParameters, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VpnGateways delete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}", method = "DELETE", hasBody = true) + Observable> delete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("gatewayName") String gatewayName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VpnGateways beginDelete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}", method = "DELETE", hasBody = true) + Observable> beginDelete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("gatewayName") String gatewayName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VpnGateways listByResourceGroup" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways") + Observable> listByResourceGroup(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VpnGateways list" }) + @GET("subscriptions/{subscriptionId}/providers/Microsoft.Network/vpnGateways") + Observable> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VpnGateways listByResourceGroupNext" }) + @GET + Observable> listByResourceGroupNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VpnGateways listNext" }) + @GET + Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Retrieves the details of a virtual wan vpn gateway. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VpnGatewayInner object if successful. + */ + public VpnGatewayInner getByResourceGroup(String resourceGroupName, String gatewayName) { + return getByResourceGroupWithServiceResponseAsync(resourceGroupName, gatewayName).toBlocking().single().body(); + } + + /** + * Retrieves the details of a virtual wan vpn gateway. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getByResourceGroupAsync(String resourceGroupName, String gatewayName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getByResourceGroupWithServiceResponseAsync(resourceGroupName, gatewayName), serviceCallback); + } + + /** + * Retrieves the details of a virtual wan vpn gateway. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VpnGatewayInner object + */ + public Observable getByResourceGroupAsync(String resourceGroupName, String gatewayName) { + return getByResourceGroupWithServiceResponseAsync(resourceGroupName, gatewayName).map(new Func1, VpnGatewayInner>() { + @Override + public VpnGatewayInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Retrieves the details of a virtual wan vpn gateway. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VpnGatewayInner object + */ + public Observable> getByResourceGroupWithServiceResponseAsync(String resourceGroupName, String gatewayName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (gatewayName == null) { + throw new IllegalArgumentException("Parameter gatewayName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + return service.getByResourceGroup(this.client.subscriptionId(), resourceGroupName, gatewayName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getByResourceGroupDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getByResourceGroupDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Creates a virtual wan vpn gateway if it doesn't exist else updates the existing gateway. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param vpnGatewayParameters Parameters supplied to create or Update a virtual wan vpn gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VpnGatewayInner object if successful. + */ + public VpnGatewayInner createOrUpdate(String resourceGroupName, String gatewayName, VpnGatewayInner vpnGatewayParameters) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, gatewayName, vpnGatewayParameters).toBlocking().last().body(); + } + + /** + * Creates a virtual wan vpn gateway if it doesn't exist else updates the existing gateway. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param vpnGatewayParameters Parameters supplied to create or Update a virtual wan vpn gateway. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createOrUpdateAsync(String resourceGroupName, String gatewayName, VpnGatewayInner vpnGatewayParameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, gatewayName, vpnGatewayParameters), serviceCallback); + } + + /** + * Creates a virtual wan vpn gateway if it doesn't exist else updates the existing gateway. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param vpnGatewayParameters Parameters supplied to create or Update a virtual wan vpn gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable createOrUpdateAsync(String resourceGroupName, String gatewayName, VpnGatewayInner vpnGatewayParameters) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, gatewayName, vpnGatewayParameters).map(new Func1, VpnGatewayInner>() { + @Override + public VpnGatewayInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates a virtual wan vpn gateway if it doesn't exist else updates the existing gateway. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param vpnGatewayParameters Parameters supplied to create or Update a virtual wan vpn gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String gatewayName, VpnGatewayInner vpnGatewayParameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (gatewayName == null) { + throw new IllegalArgumentException("Parameter gatewayName is required and cannot be null."); + } + if (vpnGatewayParameters == null) { + throw new IllegalArgumentException("Parameter vpnGatewayParameters is required and cannot be null."); + } + Validator.validate(vpnGatewayParameters); + final String apiVersion = "2018-06-01"; + Observable> observable = service.createOrUpdate(this.client.subscriptionId(), resourceGroupName, gatewayName, apiVersion, vpnGatewayParameters, this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Creates a virtual wan vpn gateway if it doesn't exist else updates the existing gateway. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param vpnGatewayParameters Parameters supplied to create or Update a virtual wan vpn gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VpnGatewayInner object if successful. + */ + public VpnGatewayInner beginCreateOrUpdate(String resourceGroupName, String gatewayName, VpnGatewayInner vpnGatewayParameters) { + return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, gatewayName, vpnGatewayParameters).toBlocking().single().body(); + } + + /** + * Creates a virtual wan vpn gateway if it doesn't exist else updates the existing gateway. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param vpnGatewayParameters Parameters supplied to create or Update a virtual wan vpn gateway. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginCreateOrUpdateAsync(String resourceGroupName, String gatewayName, VpnGatewayInner vpnGatewayParameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, gatewayName, vpnGatewayParameters), serviceCallback); + } + + /** + * Creates a virtual wan vpn gateway if it doesn't exist else updates the existing gateway. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param vpnGatewayParameters Parameters supplied to create or Update a virtual wan vpn gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VpnGatewayInner object + */ + public Observable beginCreateOrUpdateAsync(String resourceGroupName, String gatewayName, VpnGatewayInner vpnGatewayParameters) { + return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, gatewayName, vpnGatewayParameters).map(new Func1, VpnGatewayInner>() { + @Override + public VpnGatewayInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates a virtual wan vpn gateway if it doesn't exist else updates the existing gateway. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param vpnGatewayParameters Parameters supplied to create or Update a virtual wan vpn gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VpnGatewayInner object + */ + public Observable> beginCreateOrUpdateWithServiceResponseAsync(String resourceGroupName, String gatewayName, VpnGatewayInner vpnGatewayParameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (gatewayName == null) { + throw new IllegalArgumentException("Parameter gatewayName is required and cannot be null."); + } + if (vpnGatewayParameters == null) { + throw new IllegalArgumentException("Parameter vpnGatewayParameters is required and cannot be null."); + } + Validator.validate(vpnGatewayParameters); + final String apiVersion = "2018-06-01"; + return service.beginCreateOrUpdate(this.client.subscriptionId(), resourceGroupName, gatewayName, apiVersion, vpnGatewayParameters, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginCreateOrUpdateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginCreateOrUpdateDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(201, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Updates virtual wan vpn gateway tags. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VpnGatewayInner object if successful. + */ + public VpnGatewayInner updateTags(String resourceGroupName, String gatewayName) { + return updateTagsWithServiceResponseAsync(resourceGroupName, gatewayName).toBlocking().last().body(); + } + + /** + * Updates virtual wan vpn gateway tags. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture updateTagsAsync(String resourceGroupName, String gatewayName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateTagsWithServiceResponseAsync(resourceGroupName, gatewayName), serviceCallback); + } + + /** + * Updates virtual wan vpn gateway tags. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable updateTagsAsync(String resourceGroupName, String gatewayName) { + return updateTagsWithServiceResponseAsync(resourceGroupName, gatewayName).map(new Func1, VpnGatewayInner>() { + @Override + public VpnGatewayInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates virtual wan vpn gateway tags. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> updateTagsWithServiceResponseAsync(String resourceGroupName, String gatewayName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (gatewayName == null) { + throw new IllegalArgumentException("Parameter gatewayName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + final Map tags = null; + TagsObject vpnGatewayParameters = new TagsObject(); + vpnGatewayParameters.withTags(null); + Observable> observable = service.updateTags(this.client.subscriptionId(), resourceGroupName, gatewayName, apiVersion, this.client.acceptLanguage(), vpnGatewayParameters, this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + } + /** + * Updates virtual wan vpn gateway tags. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VpnGatewayInner object if successful. + */ + public VpnGatewayInner updateTags(String resourceGroupName, String gatewayName, Map tags) { + return updateTagsWithServiceResponseAsync(resourceGroupName, gatewayName, tags).toBlocking().last().body(); + } + + /** + * Updates virtual wan vpn gateway tags. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param tags Resource tags. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture updateTagsAsync(String resourceGroupName, String gatewayName, Map tags, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateTagsWithServiceResponseAsync(resourceGroupName, gatewayName, tags), serviceCallback); + } + + /** + * Updates virtual wan vpn gateway tags. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable updateTagsAsync(String resourceGroupName, String gatewayName, Map tags) { + return updateTagsWithServiceResponseAsync(resourceGroupName, gatewayName, tags).map(new Func1, VpnGatewayInner>() { + @Override + public VpnGatewayInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates virtual wan vpn gateway tags. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> updateTagsWithServiceResponseAsync(String resourceGroupName, String gatewayName, Map tags) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (gatewayName == null) { + throw new IllegalArgumentException("Parameter gatewayName is required and cannot be null."); + } + Validator.validate(tags); + final String apiVersion = "2018-06-01"; + TagsObject vpnGatewayParameters = new TagsObject(); + vpnGatewayParameters.withTags(tags); + Observable> observable = service.updateTags(this.client.subscriptionId(), resourceGroupName, gatewayName, apiVersion, this.client.acceptLanguage(), vpnGatewayParameters, this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Updates virtual wan vpn gateway tags. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VpnGatewayInner object if successful. + */ + public VpnGatewayInner beginUpdateTags(String resourceGroupName, String gatewayName) { + return beginUpdateTagsWithServiceResponseAsync(resourceGroupName, gatewayName).toBlocking().single().body(); + } + + /** + * Updates virtual wan vpn gateway tags. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginUpdateTagsAsync(String resourceGroupName, String gatewayName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginUpdateTagsWithServiceResponseAsync(resourceGroupName, gatewayName), serviceCallback); + } + + /** + * Updates virtual wan vpn gateway tags. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VpnGatewayInner object + */ + public Observable beginUpdateTagsAsync(String resourceGroupName, String gatewayName) { + return beginUpdateTagsWithServiceResponseAsync(resourceGroupName, gatewayName).map(new Func1, VpnGatewayInner>() { + @Override + public VpnGatewayInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates virtual wan vpn gateway tags. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VpnGatewayInner object + */ + public Observable> beginUpdateTagsWithServiceResponseAsync(String resourceGroupName, String gatewayName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (gatewayName == null) { + throw new IllegalArgumentException("Parameter gatewayName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + final Map tags = null; + TagsObject vpnGatewayParameters = new TagsObject(); + vpnGatewayParameters.withTags(null); + return service.beginUpdateTags(this.client.subscriptionId(), resourceGroupName, gatewayName, apiVersion, this.client.acceptLanguage(), vpnGatewayParameters, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginUpdateTagsDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + /** + * Updates virtual wan vpn gateway tags. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VpnGatewayInner object if successful. + */ + public VpnGatewayInner beginUpdateTags(String resourceGroupName, String gatewayName, Map tags) { + return beginUpdateTagsWithServiceResponseAsync(resourceGroupName, gatewayName, tags).toBlocking().single().body(); + } + + /** + * Updates virtual wan vpn gateway tags. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param tags Resource tags. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginUpdateTagsAsync(String resourceGroupName, String gatewayName, Map tags, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginUpdateTagsWithServiceResponseAsync(resourceGroupName, gatewayName, tags), serviceCallback); + } + + /** + * Updates virtual wan vpn gateway tags. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VpnGatewayInner object + */ + public Observable beginUpdateTagsAsync(String resourceGroupName, String gatewayName, Map tags) { + return beginUpdateTagsWithServiceResponseAsync(resourceGroupName, gatewayName, tags).map(new Func1, VpnGatewayInner>() { + @Override + public VpnGatewayInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates virtual wan vpn gateway tags. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VpnGatewayInner object + */ + public Observable> beginUpdateTagsWithServiceResponseAsync(String resourceGroupName, String gatewayName, Map tags) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (gatewayName == null) { + throw new IllegalArgumentException("Parameter gatewayName is required and cannot be null."); + } + Validator.validate(tags); + final String apiVersion = "2018-06-01"; + TagsObject vpnGatewayParameters = new TagsObject(); + vpnGatewayParameters.withTags(tags); + return service.beginUpdateTags(this.client.subscriptionId(), resourceGroupName, gatewayName, apiVersion, this.client.acceptLanguage(), vpnGatewayParameters, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginUpdateTagsDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginUpdateTagsDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(201, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Deletes a virtual wan vpn gateway. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void delete(String resourceGroupName, String gatewayName) { + deleteWithServiceResponseAsync(resourceGroupName, gatewayName).toBlocking().last().body(); + } + + /** + * Deletes a virtual wan vpn gateway. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteAsync(String resourceGroupName, String gatewayName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, gatewayName), serviceCallback); + } + + /** + * Deletes a virtual wan vpn gateway. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable deleteAsync(String resourceGroupName, String gatewayName) { + return deleteWithServiceResponseAsync(resourceGroupName, gatewayName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes a virtual wan vpn gateway. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> deleteWithServiceResponseAsync(String resourceGroupName, String gatewayName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (gatewayName == null) { + throw new IllegalArgumentException("Parameter gatewayName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + Observable> observable = service.delete(this.client.subscriptionId(), resourceGroupName, gatewayName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Deletes a virtual wan vpn gateway. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void beginDelete(String resourceGroupName, String gatewayName) { + beginDeleteWithServiceResponseAsync(resourceGroupName, gatewayName).toBlocking().single().body(); + } + + /** + * Deletes a virtual wan vpn gateway. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginDeleteAsync(String resourceGroupName, String gatewayName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginDeleteWithServiceResponseAsync(resourceGroupName, gatewayName), serviceCallback); + } + + /** + * Deletes a virtual wan vpn gateway. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable beginDeleteAsync(String resourceGroupName, String gatewayName) { + return beginDeleteWithServiceResponseAsync(resourceGroupName, gatewayName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes a virtual wan vpn gateway. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> beginDeleteWithServiceResponseAsync(String resourceGroupName, String gatewayName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (gatewayName == null) { + throw new IllegalArgumentException("Parameter gatewayName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + return service.beginDelete(this.client.subscriptionId(), resourceGroupName, gatewayName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginDeleteDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginDeleteDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Lists all the VpnGateways in a resource group. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<VpnGatewayInner> object if successful. + */ + public PagedList listByResourceGroup(final String resourceGroupName) { + ServiceResponse> response = listByResourceGroupSinglePageAsync(resourceGroupName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all the VpnGateways in a resource group. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByResourceGroupAsync(final String resourceGroupName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByResourceGroupSinglePageAsync(resourceGroupName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all the VpnGateways in a resource group. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VpnGatewayInner> object + */ + public Observable> listByResourceGroupAsync(final String resourceGroupName) { + return listByResourceGroupWithServiceResponseAsync(resourceGroupName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all the VpnGateways in a resource group. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VpnGatewayInner> object + */ + public Observable>> listByResourceGroupWithServiceResponseAsync(final String resourceGroupName) { + return listByResourceGroupSinglePageAsync(resourceGroupName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all the VpnGateways in a resource group. + * + ServiceResponse> * @param resourceGroupName The resource group name of the VpnGateway. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<VpnGatewayInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByResourceGroupSinglePageAsync(final String resourceGroupName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + return service.listByResourceGroup(this.client.subscriptionId(), resourceGroupName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByResourceGroupDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByResourceGroupDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Lists all the VpnGateways in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<VpnGatewayInner> object if successful. + */ + public PagedList list() { + ServiceResponse> response = listSinglePageAsync().toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all the VpnGateways in a subscription. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAsync(final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listSinglePageAsync(), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all the VpnGateways in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VpnGatewayInner> object + */ + public Observable> listAsync() { + return listWithServiceResponseAsync() + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all the VpnGateways in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VpnGatewayInner> object + */ + public Observable>> listWithServiceResponseAsync() { + return listSinglePageAsync() + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all the VpnGateways in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<VpnGatewayInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listSinglePageAsync() { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + return service.list(this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Lists all the VpnGateways in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<VpnGatewayInner> object if successful. + */ + public PagedList listByResourceGroupNext(final String nextPageLink) { + ServiceResponse> response = listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all the VpnGateways in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByResourceGroupNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByResourceGroupNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all the VpnGateways in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VpnGatewayInner> object + */ + public Observable> listByResourceGroupNextAsync(final String nextPageLink) { + return listByResourceGroupNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all the VpnGateways in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VpnGatewayInner> object + */ + public Observable>> listByResourceGroupNextWithServiceResponseAsync(final String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all the VpnGateways in a resource group. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<VpnGatewayInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByResourceGroupNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listByResourceGroupNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByResourceGroupNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByResourceGroupNextDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Lists all the VpnGateways in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<VpnGatewayInner> object if successful. + */ + public PagedList listNext(final String nextPageLink) { + ServiceResponse> response = listNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all the VpnGateways in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all the VpnGateways in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VpnGatewayInner> object + */ + public Observable> listNextAsync(final String nextPageLink) { + return listNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all the VpnGateways in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VpnGatewayInner> object + */ + public Observable>> listNextWithServiceResponseAsync(final String nextPageLink) { + return listNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all the VpnGateways in a subscription. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<VpnGatewayInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listNextDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + +} diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnSiteInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnSiteInner.java new file mode 100644 index 00000000000..f214fd0a7e8 --- /dev/null +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnSiteInner.java @@ -0,0 +1,252 @@ +/** + * 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. + */ + +package com.microsoft.azure.management.network.implementation; + +import com.microsoft.azure.SubResource; +import com.microsoft.azure.management.network.DeviceProperties; +import com.microsoft.azure.management.network.AddressSpace; +import com.microsoft.azure.management.network.BgpSettings; +import com.microsoft.azure.management.network.ProvisioningState; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.rest.SkipParentValidation; +import com.microsoft.azure.Resource; + +/** + * VpnSite Resource. + */ +@JsonFlatten +@SkipParentValidation +public class VpnSiteInner extends Resource { + /** + * The VirtualWAN to which the vpnSite belongs. + */ + @JsonProperty(value = "properties.virtualWAN") + private SubResource virtualWAN; + + /** + * The device properties. + */ + @JsonProperty(value = "properties.deviceProperties") + private DeviceProperties deviceProperties; + + /** + * The ip-address for the vpn-site. + */ + @JsonProperty(value = "properties.ipAddress") + private String ipAddress; + + /** + * The key for vpn-site that can be used for connections. + */ + @JsonProperty(value = "properties.siteKey") + private String siteKey; + + /** + * The AddressSpace that contains an array of IP address ranges. + */ + @JsonProperty(value = "properties.addressSpace") + private AddressSpace addressSpace; + + /** + * The set of bgp properties. + */ + @JsonProperty(value = "properties.bgpProperties") + private BgpSettings bgpProperties; + + /** + * The provisioning state of the resource. Possible values include: + * 'Succeeded', 'Updating', 'Deleting', 'Failed'. + */ + @JsonProperty(value = "properties.provisioningState") + private ProvisioningState provisioningState; + + /** + * Gets a unique read-only string that changes whenever the resource is + * updated. + */ + @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) + private String etag; + + /** + * Resource ID. + */ + @JsonProperty(value = "id") + private String id; + + /** + * Get the VirtualWAN to which the vpnSite belongs. + * + * @return the virtualWAN value + */ + public SubResource virtualWAN() { + return this.virtualWAN; + } + + /** + * Set the VirtualWAN to which the vpnSite belongs. + * + * @param virtualWAN the virtualWAN value to set + * @return the VpnSiteInner object itself. + */ + public VpnSiteInner withVirtualWAN(SubResource virtualWAN) { + this.virtualWAN = virtualWAN; + return this; + } + + /** + * Get the device properties. + * + * @return the deviceProperties value + */ + public DeviceProperties deviceProperties() { + return this.deviceProperties; + } + + /** + * Set the device properties. + * + * @param deviceProperties the deviceProperties value to set + * @return the VpnSiteInner object itself. + */ + public VpnSiteInner withDeviceProperties(DeviceProperties deviceProperties) { + this.deviceProperties = deviceProperties; + return this; + } + + /** + * Get the ip-address for the vpn-site. + * + * @return the ipAddress value + */ + public String ipAddress() { + return this.ipAddress; + } + + /** + * Set the ip-address for the vpn-site. + * + * @param ipAddress the ipAddress value to set + * @return the VpnSiteInner object itself. + */ + public VpnSiteInner withIpAddress(String ipAddress) { + this.ipAddress = ipAddress; + return this; + } + + /** + * Get the key for vpn-site that can be used for connections. + * + * @return the siteKey value + */ + public String siteKey() { + return this.siteKey; + } + + /** + * Set the key for vpn-site that can be used for connections. + * + * @param siteKey the siteKey value to set + * @return the VpnSiteInner object itself. + */ + public VpnSiteInner withSiteKey(String siteKey) { + this.siteKey = siteKey; + return this; + } + + /** + * Get the AddressSpace that contains an array of IP address ranges. + * + * @return the addressSpace value + */ + public AddressSpace addressSpace() { + return this.addressSpace; + } + + /** + * Set the AddressSpace that contains an array of IP address ranges. + * + * @param addressSpace the addressSpace value to set + * @return the VpnSiteInner object itself. + */ + public VpnSiteInner withAddressSpace(AddressSpace addressSpace) { + this.addressSpace = addressSpace; + return this; + } + + /** + * Get the set of bgp properties. + * + * @return the bgpProperties value + */ + public BgpSettings bgpProperties() { + return this.bgpProperties; + } + + /** + * Set the set of bgp properties. + * + * @param bgpProperties the bgpProperties value to set + * @return the VpnSiteInner object itself. + */ + public VpnSiteInner withBgpProperties(BgpSettings bgpProperties) { + this.bgpProperties = bgpProperties; + return this; + } + + /** + * Get the provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. + * + * @return the provisioningState value + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Set the provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. + * + * @param provisioningState the provisioningState value to set + * @return the VpnSiteInner object itself. + */ + public VpnSiteInner withProvisioningState(ProvisioningState provisioningState) { + this.provisioningState = provisioningState; + return this; + } + + /** + * Get gets a unique read-only string that changes whenever the resource is updated. + * + * @return the etag value + */ + public String etag() { + return this.etag; + } + + /** + * Get resource ID. + * + * @return the id value + */ + public String id() { + return this.id; + } + + /** + * Set resource ID. + * + * @param id the id value to set + * @return the VpnSiteInner object itself. + */ + public VpnSiteInner withId(String id) { + this.id = id; + return this; + } + +} diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnSitesConfigurationsInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnSitesConfigurationsInner.java new file mode 100644 index 00000000000..57f799aa0fe --- /dev/null +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnSitesConfigurationsInner.java @@ -0,0 +1,233 @@ +/** + * 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. + */ + +package com.microsoft.azure.management.network.implementation; + +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.management.network.ErrorException; +import com.microsoft.azure.management.network.GetVpnSitesConfigurationRequest; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import com.microsoft.rest.Validator; +import java.io.IOException; +import okhttp3.ResponseBody; +import retrofit2.http.Body; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.Path; +import retrofit2.http.POST; +import retrofit2.http.Query; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in VpnSitesConfigurations. + */ +public class VpnSitesConfigurationsInner { + /** The Retrofit service to perform REST calls. */ + private VpnSitesConfigurationsService service; + /** The service client containing this operation class. */ + private NetworkManagementClientImpl client; + + /** + * Initializes an instance of VpnSitesConfigurationsInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public VpnSitesConfigurationsInner(Retrofit retrofit, NetworkManagementClientImpl client) { + this.service = retrofit.create(VpnSitesConfigurationsService.class); + this.client = client; + } + + /** + * The interface defining all the services for VpnSitesConfigurations to be + * used by Retrofit to perform actually REST calls. + */ + interface VpnSitesConfigurationsService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VpnSitesConfigurations download" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWANName}/vpnConfiguration") + Observable> download(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("virtualWANName") String virtualWANName, @Body GetVpnSitesConfigurationRequest request, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VpnSitesConfigurations beginDownload" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWANName}/vpnConfiguration") + Observable> beginDownload(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("virtualWANName") String virtualWANName, @Body GetVpnSitesConfigurationRequest request, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Gives the sas-url to download the configurations for vpn-sites in a resource group. + * + * @param resourceGroupName The resource group name. + * @param virtualWANName The name of the VirtualWAN for which configuration of all vpn-sites is needed. + * @param request Parameters supplied to download vpn-sites configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void download(String resourceGroupName, String virtualWANName, GetVpnSitesConfigurationRequest request) { + downloadWithServiceResponseAsync(resourceGroupName, virtualWANName, request).toBlocking().last().body(); + } + + /** + * Gives the sas-url to download the configurations for vpn-sites in a resource group. + * + * @param resourceGroupName The resource group name. + * @param virtualWANName The name of the VirtualWAN for which configuration of all vpn-sites is needed. + * @param request Parameters supplied to download vpn-sites configuration. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture downloadAsync(String resourceGroupName, String virtualWANName, GetVpnSitesConfigurationRequest request, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(downloadWithServiceResponseAsync(resourceGroupName, virtualWANName, request), serviceCallback); + } + + /** + * Gives the sas-url to download the configurations for vpn-sites in a resource group. + * + * @param resourceGroupName The resource group name. + * @param virtualWANName The name of the VirtualWAN for which configuration of all vpn-sites is needed. + * @param request Parameters supplied to download vpn-sites configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable downloadAsync(String resourceGroupName, String virtualWANName, GetVpnSitesConfigurationRequest request) { + return downloadWithServiceResponseAsync(resourceGroupName, virtualWANName, request).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gives the sas-url to download the configurations for vpn-sites in a resource group. + * + * @param resourceGroupName The resource group name. + * @param virtualWANName The name of the VirtualWAN for which configuration of all vpn-sites is needed. + * @param request Parameters supplied to download vpn-sites configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> downloadWithServiceResponseAsync(String resourceGroupName, String virtualWANName, GetVpnSitesConfigurationRequest request) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualWANName == null) { + throw new IllegalArgumentException("Parameter virtualWANName is required and cannot be null."); + } + if (request == null) { + throw new IllegalArgumentException("Parameter request is required and cannot be null."); + } + Validator.validate(request); + final String apiVersion = "2018-06-01"; + Observable> observable = service.download(this.client.subscriptionId(), resourceGroupName, virtualWANName, request, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Gives the sas-url to download the configurations for vpn-sites in a resource group. + * + * @param resourceGroupName The resource group name. + * @param virtualWANName The name of the VirtualWAN for which configuration of all vpn-sites is needed. + * @param request Parameters supplied to download vpn-sites configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void beginDownload(String resourceGroupName, String virtualWANName, GetVpnSitesConfigurationRequest request) { + beginDownloadWithServiceResponseAsync(resourceGroupName, virtualWANName, request).toBlocking().single().body(); + } + + /** + * Gives the sas-url to download the configurations for vpn-sites in a resource group. + * + * @param resourceGroupName The resource group name. + * @param virtualWANName The name of the VirtualWAN for which configuration of all vpn-sites is needed. + * @param request Parameters supplied to download vpn-sites configuration. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginDownloadAsync(String resourceGroupName, String virtualWANName, GetVpnSitesConfigurationRequest request, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginDownloadWithServiceResponseAsync(resourceGroupName, virtualWANName, request), serviceCallback); + } + + /** + * Gives the sas-url to download the configurations for vpn-sites in a resource group. + * + * @param resourceGroupName The resource group name. + * @param virtualWANName The name of the VirtualWAN for which configuration of all vpn-sites is needed. + * @param request Parameters supplied to download vpn-sites configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable beginDownloadAsync(String resourceGroupName, String virtualWANName, GetVpnSitesConfigurationRequest request) { + return beginDownloadWithServiceResponseAsync(resourceGroupName, virtualWANName, request).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Gives the sas-url to download the configurations for vpn-sites in a resource group. + * + * @param resourceGroupName The resource group name. + * @param virtualWANName The name of the VirtualWAN for which configuration of all vpn-sites is needed. + * @param request Parameters supplied to download vpn-sites configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> beginDownloadWithServiceResponseAsync(String resourceGroupName, String virtualWANName, GetVpnSitesConfigurationRequest request) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualWANName == null) { + throw new IllegalArgumentException("Parameter virtualWANName is required and cannot be null."); + } + if (request == null) { + throw new IllegalArgumentException("Parameter request is required and cannot be null."); + } + Validator.validate(request); + final String apiVersion = "2018-06-01"; + return service.beginDownload(this.client.subscriptionId(), resourceGroupName, virtualWANName, request, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginDownloadDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginDownloadDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + +} diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnSitesInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnSitesInner.java new file mode 100644 index 00000000000..2c0c949c33e --- /dev/null +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnSitesInner.java @@ -0,0 +1,1274 @@ +/** + * 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. + */ + +package com.microsoft.azure.management.network.implementation; + +import com.microsoft.azure.management.resources.fluentcore.collection.InnerSupportsGet; +import com.microsoft.azure.management.resources.fluentcore.collection.InnerSupportsDelete; +import com.microsoft.azure.management.resources.fluentcore.collection.InnerSupportsListing; +import retrofit2.Retrofit; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.AzureServiceFuture; +import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.network.ErrorException; +import com.microsoft.azure.management.network.TagsObject; +import com.microsoft.azure.Page; +import com.microsoft.azure.PagedList; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import com.microsoft.rest.Validator; +import java.io.IOException; +import java.util.List; +import java.util.Map; +import okhttp3.ResponseBody; +import retrofit2.http.Body; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.HTTP; +import retrofit2.http.PATCH; +import retrofit2.http.Path; +import retrofit2.http.PUT; +import retrofit2.http.Query; +import retrofit2.http.Url; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in VpnSites. + */ +public class VpnSitesInner implements InnerSupportsGet, InnerSupportsDelete, InnerSupportsListing { + /** The Retrofit service to perform REST calls. */ + private VpnSitesService service; + /** The service client containing this operation class. */ + private NetworkManagementClientImpl client; + + /** + * Initializes an instance of VpnSitesInner. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public VpnSitesInner(Retrofit retrofit, NetworkManagementClientImpl client) { + this.service = retrofit.create(VpnSitesService.class); + this.client = client; + } + + /** + * The interface defining all the services for VpnSites to be + * used by Retrofit to perform actually REST calls. + */ + interface VpnSitesService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VpnSites getByResourceGroup" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}") + Observable> getByResourceGroup(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("vpnSiteName") String vpnSiteName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VpnSites createOrUpdate" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}") + Observable> createOrUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("vpnSiteName") String vpnSiteName, @Query("api-version") String apiVersion, @Body VpnSiteInner vpnSiteParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VpnSites beginCreateOrUpdate" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}") + Observable> beginCreateOrUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("vpnSiteName") String vpnSiteName, @Query("api-version") String apiVersion, @Body VpnSiteInner vpnSiteParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VpnSites updateTags" }) + @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}") + Observable> updateTags(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("vpnSiteName") String vpnSiteName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject vpnSiteParameters, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VpnSites beginUpdateTags" }) + @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}") + Observable> beginUpdateTags(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("vpnSiteName") String vpnSiteName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body TagsObject vpnSiteParameters, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VpnSites delete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}", method = "DELETE", hasBody = true) + Observable> delete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("vpnSiteName") String vpnSiteName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VpnSites beginDelete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}", method = "DELETE", hasBody = true) + Observable> beginDelete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("vpnSiteName") String vpnSiteName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VpnSites listByResourceGroup" }) + @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites") + Observable> listByResourceGroup(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VpnSites list" }) + @GET("subscriptions/{subscriptionId}/providers/Microsoft.Network/vpnSites") + Observable> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VpnSites listByResourceGroupNext" }) + @GET + Observable> listByResourceGroupNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VpnSites listNext" }) + @GET + Observable> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + } + + /** + * Retrieves the details of a VPNsite. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being retrieved. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VpnSiteInner object if successful. + */ + public VpnSiteInner getByResourceGroup(String resourceGroupName, String vpnSiteName) { + return getByResourceGroupWithServiceResponseAsync(resourceGroupName, vpnSiteName).toBlocking().single().body(); + } + + /** + * Retrieves the details of a VPNsite. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being retrieved. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getByResourceGroupAsync(String resourceGroupName, String vpnSiteName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getByResourceGroupWithServiceResponseAsync(resourceGroupName, vpnSiteName), serviceCallback); + } + + /** + * Retrieves the details of a VPNsite. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being retrieved. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VpnSiteInner object + */ + public Observable getByResourceGroupAsync(String resourceGroupName, String vpnSiteName) { + return getByResourceGroupWithServiceResponseAsync(resourceGroupName, vpnSiteName).map(new Func1, VpnSiteInner>() { + @Override + public VpnSiteInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Retrieves the details of a VPNsite. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being retrieved. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VpnSiteInner object + */ + public Observable> getByResourceGroupWithServiceResponseAsync(String resourceGroupName, String vpnSiteName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (vpnSiteName == null) { + throw new IllegalArgumentException("Parameter vpnSiteName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + return service.getByResourceGroup(this.client.subscriptionId(), resourceGroupName, vpnSiteName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = getByResourceGroupDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse getByResourceGroupDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being created or updated. + * @param vpnSiteParameters Parameters supplied to create or update VpnSite. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VpnSiteInner object if successful. + */ + public VpnSiteInner createOrUpdate(String resourceGroupName, String vpnSiteName, VpnSiteInner vpnSiteParameters) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, vpnSiteName, vpnSiteParameters).toBlocking().last().body(); + } + + /** + * Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being created or updated. + * @param vpnSiteParameters Parameters supplied to create or update VpnSite. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createOrUpdateAsync(String resourceGroupName, String vpnSiteName, VpnSiteInner vpnSiteParameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, vpnSiteName, vpnSiteParameters), serviceCallback); + } + + /** + * Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being created or updated. + * @param vpnSiteParameters Parameters supplied to create or update VpnSite. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable createOrUpdateAsync(String resourceGroupName, String vpnSiteName, VpnSiteInner vpnSiteParameters) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, vpnSiteName, vpnSiteParameters).map(new Func1, VpnSiteInner>() { + @Override + public VpnSiteInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being created or updated. + * @param vpnSiteParameters Parameters supplied to create or update VpnSite. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String vpnSiteName, VpnSiteInner vpnSiteParameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (vpnSiteName == null) { + throw new IllegalArgumentException("Parameter vpnSiteName is required and cannot be null."); + } + if (vpnSiteParameters == null) { + throw new IllegalArgumentException("Parameter vpnSiteParameters is required and cannot be null."); + } + Validator.validate(vpnSiteParameters); + final String apiVersion = "2018-06-01"; + Observable> observable = service.createOrUpdate(this.client.subscriptionId(), resourceGroupName, vpnSiteName, apiVersion, vpnSiteParameters, this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being created or updated. + * @param vpnSiteParameters Parameters supplied to create or update VpnSite. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VpnSiteInner object if successful. + */ + public VpnSiteInner beginCreateOrUpdate(String resourceGroupName, String vpnSiteName, VpnSiteInner vpnSiteParameters) { + return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, vpnSiteName, vpnSiteParameters).toBlocking().single().body(); + } + + /** + * Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being created or updated. + * @param vpnSiteParameters Parameters supplied to create or update VpnSite. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginCreateOrUpdateAsync(String resourceGroupName, String vpnSiteName, VpnSiteInner vpnSiteParameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, vpnSiteName, vpnSiteParameters), serviceCallback); + } + + /** + * Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being created or updated. + * @param vpnSiteParameters Parameters supplied to create or update VpnSite. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VpnSiteInner object + */ + public Observable beginCreateOrUpdateAsync(String resourceGroupName, String vpnSiteName, VpnSiteInner vpnSiteParameters) { + return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, vpnSiteName, vpnSiteParameters).map(new Func1, VpnSiteInner>() { + @Override + public VpnSiteInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates a VpnSite resource if it doesn't exist else updates the existing VpnSite. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being created or updated. + * @param vpnSiteParameters Parameters supplied to create or update VpnSite. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VpnSiteInner object + */ + public Observable> beginCreateOrUpdateWithServiceResponseAsync(String resourceGroupName, String vpnSiteName, VpnSiteInner vpnSiteParameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (vpnSiteName == null) { + throw new IllegalArgumentException("Parameter vpnSiteName is required and cannot be null."); + } + if (vpnSiteParameters == null) { + throw new IllegalArgumentException("Parameter vpnSiteParameters is required and cannot be null."); + } + Validator.validate(vpnSiteParameters); + final String apiVersion = "2018-06-01"; + return service.beginCreateOrUpdate(this.client.subscriptionId(), resourceGroupName, vpnSiteName, apiVersion, vpnSiteParameters, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginCreateOrUpdateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginCreateOrUpdateDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(201, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Updates VpnSite tags. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being updated. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VpnSiteInner object if successful. + */ + public VpnSiteInner updateTags(String resourceGroupName, String vpnSiteName) { + return updateTagsWithServiceResponseAsync(resourceGroupName, vpnSiteName).toBlocking().last().body(); + } + + /** + * Updates VpnSite tags. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being updated. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture updateTagsAsync(String resourceGroupName, String vpnSiteName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateTagsWithServiceResponseAsync(resourceGroupName, vpnSiteName), serviceCallback); + } + + /** + * Updates VpnSite tags. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being updated. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable updateTagsAsync(String resourceGroupName, String vpnSiteName) { + return updateTagsWithServiceResponseAsync(resourceGroupName, vpnSiteName).map(new Func1, VpnSiteInner>() { + @Override + public VpnSiteInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates VpnSite tags. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being updated. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> updateTagsWithServiceResponseAsync(String resourceGroupName, String vpnSiteName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (vpnSiteName == null) { + throw new IllegalArgumentException("Parameter vpnSiteName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + final Map tags = null; + TagsObject vpnSiteParameters = new TagsObject(); + vpnSiteParameters.withTags(null); + Observable> observable = service.updateTags(this.client.subscriptionId(), resourceGroupName, vpnSiteName, apiVersion, this.client.acceptLanguage(), vpnSiteParameters, this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + } + /** + * Updates VpnSite tags. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being updated. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VpnSiteInner object if successful. + */ + public VpnSiteInner updateTags(String resourceGroupName, String vpnSiteName, Map tags) { + return updateTagsWithServiceResponseAsync(resourceGroupName, vpnSiteName, tags).toBlocking().last().body(); + } + + /** + * Updates VpnSite tags. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being updated. + * @param tags Resource tags. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture updateTagsAsync(String resourceGroupName, String vpnSiteName, Map tags, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateTagsWithServiceResponseAsync(resourceGroupName, vpnSiteName, tags), serviceCallback); + } + + /** + * Updates VpnSite tags. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being updated. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable updateTagsAsync(String resourceGroupName, String vpnSiteName, Map tags) { + return updateTagsWithServiceResponseAsync(resourceGroupName, vpnSiteName, tags).map(new Func1, VpnSiteInner>() { + @Override + public VpnSiteInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates VpnSite tags. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being updated. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> updateTagsWithServiceResponseAsync(String resourceGroupName, String vpnSiteName, Map tags) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (vpnSiteName == null) { + throw new IllegalArgumentException("Parameter vpnSiteName is required and cannot be null."); + } + Validator.validate(tags); + final String apiVersion = "2018-06-01"; + TagsObject vpnSiteParameters = new TagsObject(); + vpnSiteParameters.withTags(tags); + Observable> observable = service.updateTags(this.client.subscriptionId(), resourceGroupName, vpnSiteName, apiVersion, this.client.acceptLanguage(), vpnSiteParameters, this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Updates VpnSite tags. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being updated. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VpnSiteInner object if successful. + */ + public VpnSiteInner beginUpdateTags(String resourceGroupName, String vpnSiteName) { + return beginUpdateTagsWithServiceResponseAsync(resourceGroupName, vpnSiteName).toBlocking().single().body(); + } + + /** + * Updates VpnSite tags. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being updated. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginUpdateTagsAsync(String resourceGroupName, String vpnSiteName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginUpdateTagsWithServiceResponseAsync(resourceGroupName, vpnSiteName), serviceCallback); + } + + /** + * Updates VpnSite tags. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being updated. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VpnSiteInner object + */ + public Observable beginUpdateTagsAsync(String resourceGroupName, String vpnSiteName) { + return beginUpdateTagsWithServiceResponseAsync(resourceGroupName, vpnSiteName).map(new Func1, VpnSiteInner>() { + @Override + public VpnSiteInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates VpnSite tags. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being updated. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VpnSiteInner object + */ + public Observable> beginUpdateTagsWithServiceResponseAsync(String resourceGroupName, String vpnSiteName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (vpnSiteName == null) { + throw new IllegalArgumentException("Parameter vpnSiteName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + final Map tags = null; + TagsObject vpnSiteParameters = new TagsObject(); + vpnSiteParameters.withTags(null); + return service.beginUpdateTags(this.client.subscriptionId(), resourceGroupName, vpnSiteName, apiVersion, this.client.acceptLanguage(), vpnSiteParameters, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginUpdateTagsDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + /** + * Updates VpnSite tags. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being updated. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VpnSiteInner object if successful. + */ + public VpnSiteInner beginUpdateTags(String resourceGroupName, String vpnSiteName, Map tags) { + return beginUpdateTagsWithServiceResponseAsync(resourceGroupName, vpnSiteName, tags).toBlocking().single().body(); + } + + /** + * Updates VpnSite tags. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being updated. + * @param tags Resource tags. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginUpdateTagsAsync(String resourceGroupName, String vpnSiteName, Map tags, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginUpdateTagsWithServiceResponseAsync(resourceGroupName, vpnSiteName, tags), serviceCallback); + } + + /** + * Updates VpnSite tags. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being updated. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VpnSiteInner object + */ + public Observable beginUpdateTagsAsync(String resourceGroupName, String vpnSiteName, Map tags) { + return beginUpdateTagsWithServiceResponseAsync(resourceGroupName, vpnSiteName, tags).map(new Func1, VpnSiteInner>() { + @Override + public VpnSiteInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates VpnSite tags. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being updated. + * @param tags Resource tags. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VpnSiteInner object + */ + public Observable> beginUpdateTagsWithServiceResponseAsync(String resourceGroupName, String vpnSiteName, Map tags) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (vpnSiteName == null) { + throw new IllegalArgumentException("Parameter vpnSiteName is required and cannot be null."); + } + Validator.validate(tags); + final String apiVersion = "2018-06-01"; + TagsObject vpnSiteParameters = new TagsObject(); + vpnSiteParameters.withTags(tags); + return service.beginUpdateTags(this.client.subscriptionId(), resourceGroupName, vpnSiteName, apiVersion, this.client.acceptLanguage(), vpnSiteParameters, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginUpdateTagsDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginUpdateTagsDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(201, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Deletes a VpnSite. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being deleted. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void delete(String resourceGroupName, String vpnSiteName) { + deleteWithServiceResponseAsync(resourceGroupName, vpnSiteName).toBlocking().last().body(); + } + + /** + * Deletes a VpnSite. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being deleted. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteAsync(String resourceGroupName, String vpnSiteName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, vpnSiteName), serviceCallback); + } + + /** + * Deletes a VpnSite. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being deleted. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable deleteAsync(String resourceGroupName, String vpnSiteName) { + return deleteWithServiceResponseAsync(resourceGroupName, vpnSiteName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes a VpnSite. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being deleted. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> deleteWithServiceResponseAsync(String resourceGroupName, String vpnSiteName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (vpnSiteName == null) { + throw new IllegalArgumentException("Parameter vpnSiteName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + Observable> observable = service.delete(this.client.subscriptionId(), resourceGroupName, vpnSiteName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Deletes a VpnSite. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being deleted. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void beginDelete(String resourceGroupName, String vpnSiteName) { + beginDeleteWithServiceResponseAsync(resourceGroupName, vpnSiteName).toBlocking().single().body(); + } + + /** + * Deletes a VpnSite. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being deleted. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginDeleteAsync(String resourceGroupName, String vpnSiteName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginDeleteWithServiceResponseAsync(resourceGroupName, vpnSiteName), serviceCallback); + } + + /** + * Deletes a VpnSite. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being deleted. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable beginDeleteAsync(String resourceGroupName, String vpnSiteName) { + return beginDeleteWithServiceResponseAsync(resourceGroupName, vpnSiteName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes a VpnSite. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param vpnSiteName The name of the VpnSite being deleted. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> beginDeleteWithServiceResponseAsync(String resourceGroupName, String vpnSiteName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (vpnSiteName == null) { + throw new IllegalArgumentException("Parameter vpnSiteName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + return service.beginDelete(this.client.subscriptionId(), resourceGroupName, vpnSiteName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginDeleteDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginDeleteDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Lists all the vpnSites in a resource group. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<VpnSiteInner> object if successful. + */ + public PagedList listByResourceGroup(final String resourceGroupName) { + ServiceResponse> response = listByResourceGroupSinglePageAsync(resourceGroupName).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all the vpnSites in a resource group. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByResourceGroupAsync(final String resourceGroupName, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByResourceGroupSinglePageAsync(resourceGroupName), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all the vpnSites in a resource group. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VpnSiteInner> object + */ + public Observable> listByResourceGroupAsync(final String resourceGroupName) { + return listByResourceGroupWithServiceResponseAsync(resourceGroupName) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all the vpnSites in a resource group. + * + * @param resourceGroupName The resource group name of the VpnSite. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VpnSiteInner> object + */ + public Observable>> listByResourceGroupWithServiceResponseAsync(final String resourceGroupName) { + return listByResourceGroupSinglePageAsync(resourceGroupName) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all the vpnSites in a resource group. + * + ServiceResponse> * @param resourceGroupName The resource group name of the VpnSite. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<VpnSiteInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByResourceGroupSinglePageAsync(final String resourceGroupName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + return service.listByResourceGroup(this.client.subscriptionId(), resourceGroupName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByResourceGroupDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByResourceGroupDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Lists all the VpnSites in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<VpnSiteInner> object if successful. + */ + public PagedList list() { + ServiceResponse> response = listSinglePageAsync().toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all the VpnSites in a subscription. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAsync(final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listSinglePageAsync(), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all the VpnSites in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VpnSiteInner> object + */ + public Observable> listAsync() { + return listWithServiceResponseAsync() + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all the VpnSites in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VpnSiteInner> object + */ + public Observable>> listWithServiceResponseAsync() { + return listSinglePageAsync() + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all the VpnSites in a subscription. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<VpnSiteInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listSinglePageAsync() { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + return service.list(this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Lists all the vpnSites in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<VpnSiteInner> object if successful. + */ + public PagedList listByResourceGroupNext(final String nextPageLink) { + ServiceResponse> response = listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all the vpnSites in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listByResourceGroupNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listByResourceGroupNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all the vpnSites in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VpnSiteInner> object + */ + public Observable> listByResourceGroupNextAsync(final String nextPageLink) { + return listByResourceGroupNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all the vpnSites in a resource group. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VpnSiteInner> object + */ + public Observable>> listByResourceGroupNextWithServiceResponseAsync(final String nextPageLink) { + return listByResourceGroupNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listByResourceGroupNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all the vpnSites in a resource group. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<VpnSiteInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listByResourceGroupNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listByResourceGroupNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listByResourceGroupNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listByResourceGroupNextDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Lists all the VpnSites in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the PagedList<VpnSiteInner> object if successful. + */ + public PagedList listNext(final String nextPageLink) { + ServiceResponse> response = listNextSinglePageAsync(nextPageLink).toBlocking().single(); + return new PagedList(response.body()) { + @Override + public Page nextPage(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink).toBlocking().single().body(); + } + }; + } + + /** + * Lists all the VpnSites in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param serviceFuture the ServiceFuture object tracking the Retrofit calls + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) { + return AzureServiceFuture.fromPageResponse( + listNextSinglePageAsync(nextPageLink), + new Func1>>>() { + @Override + public Observable>> call(String nextPageLink) { + return listNextSinglePageAsync(nextPageLink); + } + }, + serviceCallback); + } + + /** + * Lists all the VpnSites in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VpnSiteInner> object + */ + public Observable> listNextAsync(final String nextPageLink) { + return listNextWithServiceResponseAsync(nextPageLink) + .map(new Func1>, Page>() { + @Override + public Page call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Lists all the VpnSites in a subscription. + * + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the PagedList<VpnSiteInner> object + */ + public Observable>> listNextWithServiceResponseAsync(final String nextPageLink) { + return listNextSinglePageAsync(nextPageLink) + .concatMap(new Func1>, Observable>>>() { + @Override + public Observable>> call(ServiceResponse> page) { + String nextPageLink = page.body().nextPageLink(); + if (nextPageLink == null) { + return Observable.just(page); + } + return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink)); + } + }); + } + + /** + * Lists all the VpnSites in a subscription. + * + ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the PagedList<VpnSiteInner> object wrapped in {@link ServiceResponse} if successful. + */ + public Observable>> listNextSinglePageAsync(final String nextPageLink) { + if (nextPageLink == null) { + throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); + } + String nextUrl = String.format("%s", nextPageLink); + return service.listNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> result = listNextDelegate(response); + return Observable.just(new ServiceResponse>(result.body(), result.response())); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listNextDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + +} From be46ba49316dac82e20318c3933986b57e9845de Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Tue, 12 Jun 2018 20:10:01 +0000 Subject: [PATCH 2/3] Generated from 09bf1be0fd54a8e95304b810beecbe8b88c3664b Fixing build errors --- .../ApplicationGatewayInner.java | 26 ++ .../implementation/VpnConnectionsInner.java | 367 ++++++++++++++++++ 2 files changed, 393 insertions(+) diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ApplicationGatewayInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ApplicationGatewayInner.java index 1312789d067..544e60d1eb6 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ApplicationGatewayInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/ApplicationGatewayInner.java @@ -128,6 +128,12 @@ public class ApplicationGatewayInner extends Resource { @JsonProperty(value = "properties.enableHttp2") private Boolean enableHttp2; + /** + * Whether FIPS is enabled on the application gateway resource. + */ + @JsonProperty(value = "properties.enableFIPS") + private Boolean enableFIPS; + /** * Autoscale Configuration. */ @@ -495,6 +501,26 @@ public ApplicationGatewayInner withEnableHttp2(Boolean enableHttp2) { return this; } + /** + * Get whether FIPS is enabled on the application gateway resource. + * + * @return the enableFIPS value + */ + public Boolean enableFIPS() { + return this.enableFIPS; + } + + /** + * Set whether FIPS is enabled on the application gateway resource. + * + * @param enableFIPS the enableFIPS value to set + * @return the ApplicationGatewayInner object itself. + */ + public ApplicationGatewayInner withEnableFIPS(Boolean enableFIPS) { + this.enableFIPS = enableFIPS; + return this; + } + /** * Get autoscale Configuration. * diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnConnectionsInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnConnectionsInner.java index a0a14314814..e7133ae2602 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnConnectionsInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnConnectionsInner.java @@ -18,13 +18,17 @@ import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture; import com.microsoft.rest.ServiceResponse; +import com.microsoft.rest.Validator; import java.io.IOException; import java.util.List; import okhttp3.ResponseBody; +import retrofit2.http.Body; import retrofit2.http.GET; import retrofit2.http.Header; import retrofit2.http.Headers; +import retrofit2.http.HTTP; import retrofit2.http.Path; +import retrofit2.http.PUT; import retrofit2.http.Query; import retrofit2.http.Url; import retrofit2.Response; @@ -61,6 +65,22 @@ interface VpnConnectionsService { @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}") Observable> get(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("gatewayName") String gatewayName, @Path("connectionName") String connectionName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VpnConnections createOrUpdate" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}") + Observable> createOrUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("gatewayName") String gatewayName, @Path("connectionName") String connectionName, @Query("api-version") String apiVersion, @Body VpnConnectionInner vpnConnectionParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VpnConnections beginCreateOrUpdate" }) + @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}") + Observable> beginCreateOrUpdate(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("gatewayName") String gatewayName, @Path("connectionName") String connectionName, @Query("api-version") String apiVersion, @Body VpnConnectionInner vpnConnectionParameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VpnConnections delete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}", method = "DELETE", hasBody = true) + Observable> delete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("gatewayName") String gatewayName, @Path("connectionName") String connectionName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VpnConnections beginDelete" }) + @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}", method = "DELETE", hasBody = true) + Observable> beginDelete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("gatewayName") String gatewayName, @Path("connectionName") String connectionName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VpnConnections listByVpnGateway" }) @GET("subscriptions/{subscriptionId}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections") Observable> listByVpnGateway(@Path("subscriptionId") String subscriptionId, @Path("gatewayName") String gatewayName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -162,6 +182,353 @@ private ServiceResponse getDelegate(Response r .build(response); } + /** + * Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param connectionName The name of the connection. + * @param vpnConnectionParameters Parameters supplied to create or Update a VPN Connection. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VpnConnectionInner object if successful. + */ + public VpnConnectionInner createOrUpdate(String resourceGroupName, String gatewayName, String connectionName, VpnConnectionInner vpnConnectionParameters) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, gatewayName, connectionName, vpnConnectionParameters).toBlocking().last().body(); + } + + /** + * Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param connectionName The name of the connection. + * @param vpnConnectionParameters Parameters supplied to create or Update a VPN Connection. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture createOrUpdateAsync(String resourceGroupName, String gatewayName, String connectionName, VpnConnectionInner vpnConnectionParameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, gatewayName, connectionName, vpnConnectionParameters), serviceCallback); + } + + /** + * Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param connectionName The name of the connection. + * @param vpnConnectionParameters Parameters supplied to create or Update a VPN Connection. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable createOrUpdateAsync(String resourceGroupName, String gatewayName, String connectionName, VpnConnectionInner vpnConnectionParameters) { + return createOrUpdateWithServiceResponseAsync(resourceGroupName, gatewayName, connectionName, vpnConnectionParameters).map(new Func1, VpnConnectionInner>() { + @Override + public VpnConnectionInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param connectionName The name of the connection. + * @param vpnConnectionParameters Parameters supplied to create or Update a VPN Connection. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String gatewayName, String connectionName, VpnConnectionInner vpnConnectionParameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (gatewayName == null) { + throw new IllegalArgumentException("Parameter gatewayName is required and cannot be null."); + } + if (connectionName == null) { + throw new IllegalArgumentException("Parameter connectionName is required and cannot be null."); + } + if (vpnConnectionParameters == null) { + throw new IllegalArgumentException("Parameter vpnConnectionParameters is required and cannot be null."); + } + Validator.validate(vpnConnectionParameters); + final String apiVersion = "2018-06-01"; + Observable> observable = service.createOrUpdate(this.client.subscriptionId(), resourceGroupName, gatewayName, connectionName, apiVersion, vpnConnectionParameters, this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param connectionName The name of the connection. + * @param vpnConnectionParameters Parameters supplied to create or Update a VPN Connection. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VpnConnectionInner object if successful. + */ + public VpnConnectionInner beginCreateOrUpdate(String resourceGroupName, String gatewayName, String connectionName, VpnConnectionInner vpnConnectionParameters) { + return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, gatewayName, connectionName, vpnConnectionParameters).toBlocking().single().body(); + } + + /** + * Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param connectionName The name of the connection. + * @param vpnConnectionParameters Parameters supplied to create or Update a VPN Connection. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginCreateOrUpdateAsync(String resourceGroupName, String gatewayName, String connectionName, VpnConnectionInner vpnConnectionParameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, gatewayName, connectionName, vpnConnectionParameters), serviceCallback); + } + + /** + * Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param connectionName The name of the connection. + * @param vpnConnectionParameters Parameters supplied to create or Update a VPN Connection. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VpnConnectionInner object + */ + public Observable beginCreateOrUpdateAsync(String resourceGroupName, String gatewayName, String connectionName, VpnConnectionInner vpnConnectionParameters) { + return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, gatewayName, connectionName, vpnConnectionParameters).map(new Func1, VpnConnectionInner>() { + @Override + public VpnConnectionInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param connectionName The name of the connection. + * @param vpnConnectionParameters Parameters supplied to create or Update a VPN Connection. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VpnConnectionInner object + */ + public Observable> beginCreateOrUpdateWithServiceResponseAsync(String resourceGroupName, String gatewayName, String connectionName, VpnConnectionInner vpnConnectionParameters) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (gatewayName == null) { + throw new IllegalArgumentException("Parameter gatewayName is required and cannot be null."); + } + if (connectionName == null) { + throw new IllegalArgumentException("Parameter connectionName is required and cannot be null."); + } + if (vpnConnectionParameters == null) { + throw new IllegalArgumentException("Parameter vpnConnectionParameters is required and cannot be null."); + } + Validator.validate(vpnConnectionParameters); + final String apiVersion = "2018-06-01"; + return service.beginCreateOrUpdate(this.client.subscriptionId(), resourceGroupName, gatewayName, connectionName, apiVersion, vpnConnectionParameters, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginCreateOrUpdateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginCreateOrUpdateDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(201, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + + /** + * Deletes a vpn connection. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param connectionName The name of the connection. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void delete(String resourceGroupName, String gatewayName, String connectionName) { + deleteWithServiceResponseAsync(resourceGroupName, gatewayName, connectionName).toBlocking().last().body(); + } + + /** + * Deletes a vpn connection. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param connectionName The name of the connection. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteAsync(String resourceGroupName, String gatewayName, String connectionName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, gatewayName, connectionName), serviceCallback); + } + + /** + * Deletes a vpn connection. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param connectionName The name of the connection. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable deleteAsync(String resourceGroupName, String gatewayName, String connectionName) { + return deleteWithServiceResponseAsync(resourceGroupName, gatewayName, connectionName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes a vpn connection. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param connectionName The name of the connection. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> deleteWithServiceResponseAsync(String resourceGroupName, String gatewayName, String connectionName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (gatewayName == null) { + throw new IllegalArgumentException("Parameter gatewayName is required and cannot be null."); + } + if (connectionName == null) { + throw new IllegalArgumentException("Parameter connectionName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + Observable> observable = service.delete(this.client.subscriptionId(), resourceGroupName, gatewayName, connectionName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * Deletes a vpn connection. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param connectionName The name of the connection. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + */ + public void beginDelete(String resourceGroupName, String gatewayName, String connectionName) { + beginDeleteWithServiceResponseAsync(resourceGroupName, gatewayName, connectionName).toBlocking().single().body(); + } + + /** + * Deletes a vpn connection. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param connectionName The name of the connection. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginDeleteAsync(String resourceGroupName, String gatewayName, String connectionName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginDeleteWithServiceResponseAsync(resourceGroupName, gatewayName, connectionName), serviceCallback); + } + + /** + * Deletes a vpn connection. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param connectionName The name of the connection. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable beginDeleteAsync(String resourceGroupName, String gatewayName, String connectionName) { + return beginDeleteWithServiceResponseAsync(resourceGroupName, gatewayName, connectionName).map(new Func1, Void>() { + @Override + public Void call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes a vpn connection. + * + * @param resourceGroupName The resource group name of the VpnGateway. + * @param gatewayName The name of the gateway. + * @param connectionName The name of the connection. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceResponse} object if successful. + */ + public Observable> beginDeleteWithServiceResponseAsync(String resourceGroupName, String gatewayName, String connectionName) { + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (gatewayName == null) { + throw new IllegalArgumentException("Parameter gatewayName is required and cannot be null."); + } + if (connectionName == null) { + throw new IllegalArgumentException("Parameter connectionName is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + return service.beginDelete(this.client.subscriptionId(), resourceGroupName, gatewayName, connectionName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginDeleteDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginDeleteDelegate(Response response) throws ErrorException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .register(204, new TypeToken() { }.getType()) + .registerError(ErrorException.class) + .build(response); + } + /** * Retrieves all vpn connections for a particular virtual wan vpn gateway. * From c02d16795c47f4b89fc8c58929ae93de4211a235 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Fri, 15 Jun 2018 18:47:59 +0000 Subject: [PATCH 3/3] Generated from 62deb8e3e21be2e77a646b627558ac8e721306cc Addressing comments and editing VpnConnection definition and corresponding examples --- .../azure/management/network/Policies.java | 69 ++++ .../VirtualNetworkGatewaysInner.java | 335 ++++++++++++++++++ .../VpnClientIPsecParametersInner.java | 242 +++++++++++++ .../implementation/VpnConnectionInner.java | 82 +++-- .../implementation/VpnGatewayInner.java | 27 ++ 5 files changed, 727 insertions(+), 28 deletions(-) create mode 100644 azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/Policies.java create mode 100644 azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnClientIPsecParametersInner.java diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/Policies.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/Policies.java new file mode 100644 index 00000000000..0bec06e0bf1 --- /dev/null +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/Policies.java @@ -0,0 +1,69 @@ +/** + * 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. + */ + +package com.microsoft.azure.management.network; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Policies for vpn gateway. + */ +public class Policies { + /** + * True if branch to branch traffic is allowed. + */ + @JsonProperty(value = "allowBranchToBranchTraffic") + private Boolean allowBranchToBranchTraffic; + + /** + * True if Vnet to Vnet traffic is allowed. + */ + @JsonProperty(value = "allowVnetToVnetTraffic") + private Boolean allowVnetToVnetTraffic; + + /** + * Get true if branch to branch traffic is allowed. + * + * @return the allowBranchToBranchTraffic value + */ + public Boolean allowBranchToBranchTraffic() { + return this.allowBranchToBranchTraffic; + } + + /** + * Set true if branch to branch traffic is allowed. + * + * @param allowBranchToBranchTraffic the allowBranchToBranchTraffic value to set + * @return the Policies object itself. + */ + public Policies withAllowBranchToBranchTraffic(Boolean allowBranchToBranchTraffic) { + this.allowBranchToBranchTraffic = allowBranchToBranchTraffic; + return this; + } + + /** + * Get true if Vnet to Vnet traffic is allowed. + * + * @return the allowVnetToVnetTraffic value + */ + public Boolean allowVnetToVnetTraffic() { + return this.allowVnetToVnetTraffic; + } + + /** + * Set true if Vnet to Vnet traffic is allowed. + * + * @param allowVnetToVnetTraffic the allowVnetToVnetTraffic value to set + * @return the Policies object itself. + */ + public Policies withAllowVnetToVnetTraffic(Boolean allowVnetToVnetTraffic) { + this.allowVnetToVnetTraffic = allowVnetToVnetTraffic; + return this; + } + +} diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VirtualNetworkGatewaysInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VirtualNetworkGatewaysInner.java index ea3e6412605..f8ede574fe8 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VirtualNetworkGatewaysInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VirtualNetworkGatewaysInner.java @@ -165,6 +165,22 @@ interface VirtualNetworkGatewaysService { @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getAdvertisedRoutes") Observable> beginGetAdvertisedRoutes(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkGatewayName") String virtualNetworkGatewayName, @Path("subscriptionId") String subscriptionId, @Query("peer") String peer, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VirtualNetworkGateways setVpnclientIpsecParameters" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/setvpnclientipsecparameters") + Observable> setVpnclientIpsecParameters(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkGatewayName") String virtualNetworkGatewayName, @Path("subscriptionId") String subscriptionId, @Body VpnClientIPsecParametersInner vpnclientIpsecParams, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VirtualNetworkGateways beginSetVpnclientIpsecParameters" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/setvpnclientipsecparameters") + Observable> beginSetVpnclientIpsecParameters(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkGatewayName") String virtualNetworkGatewayName, @Path("subscriptionId") String subscriptionId, @Body VpnClientIPsecParametersInner vpnclientIpsecParams, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VirtualNetworkGateways getVpnclientIpsecParameters" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getvpnclientipsecparameters") + Observable> getVpnclientIpsecParameters(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkGatewayName") String virtualNetworkGatewayName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VirtualNetworkGateways beginGetVpnclientIpsecParameters" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getvpnclientipsecparameters") + Observable> beginGetVpnclientIpsecParameters(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkGatewayName") String virtualNetworkGatewayName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.network.VirtualNetworkGateways vpnDeviceConfigurationScript" }) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/vpndeviceconfigurationscript") Observable> vpnDeviceConfigurationScript(@Path("resourceGroupName") String resourceGroupName, @Path("virtualNetworkGatewayConnectionName") String virtualNetworkGatewayConnectionName, @Path("subscriptionId") String subscriptionId, @Body VpnDeviceScriptParameters parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -2629,6 +2645,325 @@ private ServiceResponse beginGetAdvertisedRoutesDel .build(response); } + /** + * The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of virtual network gateway in the specified resource group through Network resource provider. + * + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param vpnclientIpsecParams Parameters supplied to the Begin Set vpnclient ipsec parameters of Virtual Network Gateway P2S client operation through Network resource provider. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VpnClientIPsecParametersInner object if successful. + */ + public VpnClientIPsecParametersInner setVpnclientIpsecParameters(String resourceGroupName, String virtualNetworkGatewayName, VpnClientIPsecParametersInner vpnclientIpsecParams) { + return setVpnclientIpsecParametersWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayName, vpnclientIpsecParams).toBlocking().last().body(); + } + + /** + * The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of virtual network gateway in the specified resource group through Network resource provider. + * + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param vpnclientIpsecParams Parameters supplied to the Begin Set vpnclient ipsec parameters of Virtual Network Gateway P2S client operation through Network resource provider. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture setVpnclientIpsecParametersAsync(String resourceGroupName, String virtualNetworkGatewayName, VpnClientIPsecParametersInner vpnclientIpsecParams, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(setVpnclientIpsecParametersWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayName, vpnclientIpsecParams), serviceCallback); + } + + /** + * The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of virtual network gateway in the specified resource group through Network resource provider. + * + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param vpnclientIpsecParams Parameters supplied to the Begin Set vpnclient ipsec parameters of Virtual Network Gateway P2S client operation through Network resource provider. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable setVpnclientIpsecParametersAsync(String resourceGroupName, String virtualNetworkGatewayName, VpnClientIPsecParametersInner vpnclientIpsecParams) { + return setVpnclientIpsecParametersWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayName, vpnclientIpsecParams).map(new Func1, VpnClientIPsecParametersInner>() { + @Override + public VpnClientIPsecParametersInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of virtual network gateway in the specified resource group through Network resource provider. + * + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param vpnclientIpsecParams Parameters supplied to the Begin Set vpnclient ipsec parameters of Virtual Network Gateway P2S client operation through Network resource provider. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> setVpnclientIpsecParametersWithServiceResponseAsync(String resourceGroupName, String virtualNetworkGatewayName, VpnClientIPsecParametersInner vpnclientIpsecParams) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualNetworkGatewayName == null) { + throw new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (vpnclientIpsecParams == null) { + throw new IllegalArgumentException("Parameter vpnclientIpsecParams is required and cannot be null."); + } + Validator.validate(vpnclientIpsecParams); + final String apiVersion = "2018-06-01"; + Observable> observable = service.setVpnclientIpsecParameters(resourceGroupName, virtualNetworkGatewayName, this.client.subscriptionId(), vpnclientIpsecParams, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of virtual network gateway in the specified resource group through Network resource provider. + * + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param vpnclientIpsecParams Parameters supplied to the Begin Set vpnclient ipsec parameters of Virtual Network Gateway P2S client operation through Network resource provider. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VpnClientIPsecParametersInner object if successful. + */ + public VpnClientIPsecParametersInner beginSetVpnclientIpsecParameters(String resourceGroupName, String virtualNetworkGatewayName, VpnClientIPsecParametersInner vpnclientIpsecParams) { + return beginSetVpnclientIpsecParametersWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayName, vpnclientIpsecParams).toBlocking().single().body(); + } + + /** + * The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of virtual network gateway in the specified resource group through Network resource provider. + * + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param vpnclientIpsecParams Parameters supplied to the Begin Set vpnclient ipsec parameters of Virtual Network Gateway P2S client operation through Network resource provider. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginSetVpnclientIpsecParametersAsync(String resourceGroupName, String virtualNetworkGatewayName, VpnClientIPsecParametersInner vpnclientIpsecParams, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginSetVpnclientIpsecParametersWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayName, vpnclientIpsecParams), serviceCallback); + } + + /** + * The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of virtual network gateway in the specified resource group through Network resource provider. + * + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param vpnclientIpsecParams Parameters supplied to the Begin Set vpnclient ipsec parameters of Virtual Network Gateway P2S client operation through Network resource provider. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VpnClientIPsecParametersInner object + */ + public Observable beginSetVpnclientIpsecParametersAsync(String resourceGroupName, String virtualNetworkGatewayName, VpnClientIPsecParametersInner vpnclientIpsecParams) { + return beginSetVpnclientIpsecParametersWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayName, vpnclientIpsecParams).map(new Func1, VpnClientIPsecParametersInner>() { + @Override + public VpnClientIPsecParametersInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of virtual network gateway in the specified resource group through Network resource provider. + * + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param vpnclientIpsecParams Parameters supplied to the Begin Set vpnclient ipsec parameters of Virtual Network Gateway P2S client operation through Network resource provider. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VpnClientIPsecParametersInner object + */ + public Observable> beginSetVpnclientIpsecParametersWithServiceResponseAsync(String resourceGroupName, String virtualNetworkGatewayName, VpnClientIPsecParametersInner vpnclientIpsecParams) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualNetworkGatewayName == null) { + throw new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (vpnclientIpsecParams == null) { + throw new IllegalArgumentException("Parameter vpnclientIpsecParams is required and cannot be null."); + } + Validator.validate(vpnclientIpsecParams); + final String apiVersion = "2018-06-01"; + return service.beginSetVpnclientIpsecParameters(resourceGroupName, virtualNetworkGatewayName, this.client.subscriptionId(), vpnclientIpsecParams, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginSetVpnclientIpsecParametersDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginSetVpnclientIpsecParametersDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .register(202, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + + /** + * The Get VpnclientIpsecParameters operation retrieves information about the vpnclient ipsec policy for P2S client of virtual network gateway in the specified resource group through Network resource provider. + * + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The virtual network gateway name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VpnClientIPsecParametersInner object if successful. + */ + public VpnClientIPsecParametersInner getVpnclientIpsecParameters(String resourceGroupName, String virtualNetworkGatewayName) { + return getVpnclientIpsecParametersWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayName).toBlocking().last().body(); + } + + /** + * The Get VpnclientIpsecParameters operation retrieves information about the vpnclient ipsec policy for P2S client of virtual network gateway in the specified resource group through Network resource provider. + * + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The virtual network gateway name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture getVpnclientIpsecParametersAsync(String resourceGroupName, String virtualNetworkGatewayName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(getVpnclientIpsecParametersWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayName), serviceCallback); + } + + /** + * The Get VpnclientIpsecParameters operation retrieves information about the vpnclient ipsec policy for P2S client of virtual network gateway in the specified resource group through Network resource provider. + * + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The virtual network gateway name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable getVpnclientIpsecParametersAsync(String resourceGroupName, String virtualNetworkGatewayName) { + return getVpnclientIpsecParametersWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayName).map(new Func1, VpnClientIPsecParametersInner>() { + @Override + public VpnClientIPsecParametersInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * The Get VpnclientIpsecParameters operation retrieves information about the vpnclient ipsec policy for P2S client of virtual network gateway in the specified resource group through Network resource provider. + * + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The virtual network gateway name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable for the request + */ + public Observable> getVpnclientIpsecParametersWithServiceResponseAsync(String resourceGroupName, String virtualNetworkGatewayName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualNetworkGatewayName == null) { + throw new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + Observable> observable = service.getVpnclientIpsecParameters(resourceGroupName, virtualNetworkGatewayName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()); + return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); + } + + /** + * The Get VpnclientIpsecParameters operation retrieves information about the vpnclient ipsec policy for P2S client of virtual network gateway in the specified resource group through Network resource provider. + * + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The virtual network gateway name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the VpnClientIPsecParametersInner object if successful. + */ + public VpnClientIPsecParametersInner beginGetVpnclientIpsecParameters(String resourceGroupName, String virtualNetworkGatewayName) { + return beginGetVpnclientIpsecParametersWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayName).toBlocking().single().body(); + } + + /** + * The Get VpnclientIpsecParameters operation retrieves information about the vpnclient ipsec policy for P2S client of virtual network gateway in the specified resource group through Network resource provider. + * + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The virtual network gateway name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture beginGetVpnclientIpsecParametersAsync(String resourceGroupName, String virtualNetworkGatewayName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginGetVpnclientIpsecParametersWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayName), serviceCallback); + } + + /** + * The Get VpnclientIpsecParameters operation retrieves information about the vpnclient ipsec policy for P2S client of virtual network gateway in the specified resource group through Network resource provider. + * + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The virtual network gateway name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VpnClientIPsecParametersInner object + */ + public Observable beginGetVpnclientIpsecParametersAsync(String resourceGroupName, String virtualNetworkGatewayName) { + return beginGetVpnclientIpsecParametersWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayName).map(new Func1, VpnClientIPsecParametersInner>() { + @Override + public VpnClientIPsecParametersInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * The Get VpnclientIpsecParameters operation retrieves information about the vpnclient ipsec policy for P2S client of virtual network gateway in the specified resource group through Network resource provider. + * + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The virtual network gateway name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the VpnClientIPsecParametersInner object + */ + public Observable> beginGetVpnclientIpsecParametersWithServiceResponseAsync(String resourceGroupName, String virtualNetworkGatewayName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (virtualNetworkGatewayName == null) { + throw new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + final String apiVersion = "2018-06-01"; + return service.beginGetVpnclientIpsecParameters(resourceGroupName, virtualNetworkGatewayName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = beginGetVpnclientIpsecParametersDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse beginGetVpnclientIpsecParametersDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + /** * Gets a xml format representation for vpn device configuration script. * diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnClientIPsecParametersInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnClientIPsecParametersInner.java new file mode 100644 index 00000000000..2987abb7ad4 --- /dev/null +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnClientIPsecParametersInner.java @@ -0,0 +1,242 @@ +/** + * 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. + */ + +package com.microsoft.azure.management.network.implementation; + +import com.microsoft.azure.management.network.IpsecEncryption; +import com.microsoft.azure.management.network.IpsecIntegrity; +import com.microsoft.azure.management.network.IkeEncryption; +import com.microsoft.azure.management.network.IkeIntegrity; +import com.microsoft.azure.management.network.DhGroup; +import com.microsoft.azure.management.network.PfsGroup; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * An IPSec parameters for a virtual network gateway P2S connection. + */ +public class VpnClientIPsecParametersInner { + /** + * The IPSec Security Association (also called Quick Mode or Phase 2 SA) + * lifetime in seconds for P2S client. + */ + @JsonProperty(value = "saLifeTimeSeconds", required = true) + private int saLifeTimeSeconds; + + /** + * The IPSec Security Association (also called Quick Mode or Phase 2 SA) + * payload size in KB for P2S client.. + */ + @JsonProperty(value = "saDataSizeKilobytes", required = true) + private int saDataSizeKilobytes; + + /** + * The IPSec encryption algorithm (IKE phase 1). Possible values include: + * 'None', 'DES', 'DES3', 'AES128', 'AES192', 'AES256', 'GCMAES128', + * 'GCMAES192', 'GCMAES256'. + */ + @JsonProperty(value = "ipsecEncryption", required = true) + private IpsecEncryption ipsecEncryption; + + /** + * The IPSec integrity algorithm (IKE phase 1). Possible values include: + * 'MD5', 'SHA1', 'SHA256', 'GCMAES128', 'GCMAES192', 'GCMAES256'. + */ + @JsonProperty(value = "ipsecIntegrity", required = true) + private IpsecIntegrity ipsecIntegrity; + + /** + * The IKE encryption algorithm (IKE phase 2). Possible values include: + * 'DES', 'DES3', 'AES128', 'AES192', 'AES256', 'GCMAES256', 'GCMAES128'. + */ + @JsonProperty(value = "ikeEncryption", required = true) + private IkeEncryption ikeEncryption; + + /** + * The IKE integrity algorithm (IKE phase 2). Possible values include: + * 'MD5', 'SHA1', 'SHA256', 'SHA384', 'GCMAES256', 'GCMAES128'. + */ + @JsonProperty(value = "ikeIntegrity", required = true) + private IkeIntegrity ikeIntegrity; + + /** + * The DH Groups used in IKE Phase 1 for initial SA. Possible values + * include: 'None', 'DHGroup1', 'DHGroup2', 'DHGroup14', 'DHGroup2048', + * 'ECP256', 'ECP384', 'DHGroup24'. + */ + @JsonProperty(value = "dhGroup", required = true) + private DhGroup dhGroup; + + /** + * The Pfs Groups used in IKE Phase 2 for new child SA. Possible values + * include: 'None', 'PFS1', 'PFS2', 'PFS2048', 'ECP256', 'ECP384', 'PFS24', + * 'PFS14', 'PFSMM'. + */ + @JsonProperty(value = "pfsGroup", required = true) + private PfsGroup pfsGroup; + + /** + * Get the IPSec Security Association (also called Quick Mode or Phase 2 SA) lifetime in seconds for P2S client. + * + * @return the saLifeTimeSeconds value + */ + public int saLifeTimeSeconds() { + return this.saLifeTimeSeconds; + } + + /** + * Set the IPSec Security Association (also called Quick Mode or Phase 2 SA) lifetime in seconds for P2S client. + * + * @param saLifeTimeSeconds the saLifeTimeSeconds value to set + * @return the VpnClientIPsecParametersInner object itself. + */ + public VpnClientIPsecParametersInner withSaLifeTimeSeconds(int saLifeTimeSeconds) { + this.saLifeTimeSeconds = saLifeTimeSeconds; + return this; + } + + /** + * Get the IPSec Security Association (also called Quick Mode or Phase 2 SA) payload size in KB for P2S client.. + * + * @return the saDataSizeKilobytes value + */ + public int saDataSizeKilobytes() { + return this.saDataSizeKilobytes; + } + + /** + * Set the IPSec Security Association (also called Quick Mode or Phase 2 SA) payload size in KB for P2S client.. + * + * @param saDataSizeKilobytes the saDataSizeKilobytes value to set + * @return the VpnClientIPsecParametersInner object itself. + */ + public VpnClientIPsecParametersInner withSaDataSizeKilobytes(int saDataSizeKilobytes) { + this.saDataSizeKilobytes = saDataSizeKilobytes; + return this; + } + + /** + * Get the IPSec encryption algorithm (IKE phase 1). Possible values include: 'None', 'DES', 'DES3', 'AES128', 'AES192', 'AES256', 'GCMAES128', 'GCMAES192', 'GCMAES256'. + * + * @return the ipsecEncryption value + */ + public IpsecEncryption ipsecEncryption() { + return this.ipsecEncryption; + } + + /** + * Set the IPSec encryption algorithm (IKE phase 1). Possible values include: 'None', 'DES', 'DES3', 'AES128', 'AES192', 'AES256', 'GCMAES128', 'GCMAES192', 'GCMAES256'. + * + * @param ipsecEncryption the ipsecEncryption value to set + * @return the VpnClientIPsecParametersInner object itself. + */ + public VpnClientIPsecParametersInner withIpsecEncryption(IpsecEncryption ipsecEncryption) { + this.ipsecEncryption = ipsecEncryption; + return this; + } + + /** + * Get the IPSec integrity algorithm (IKE phase 1). Possible values include: 'MD5', 'SHA1', 'SHA256', 'GCMAES128', 'GCMAES192', 'GCMAES256'. + * + * @return the ipsecIntegrity value + */ + public IpsecIntegrity ipsecIntegrity() { + return this.ipsecIntegrity; + } + + /** + * Set the IPSec integrity algorithm (IKE phase 1). Possible values include: 'MD5', 'SHA1', 'SHA256', 'GCMAES128', 'GCMAES192', 'GCMAES256'. + * + * @param ipsecIntegrity the ipsecIntegrity value to set + * @return the VpnClientIPsecParametersInner object itself. + */ + public VpnClientIPsecParametersInner withIpsecIntegrity(IpsecIntegrity ipsecIntegrity) { + this.ipsecIntegrity = ipsecIntegrity; + return this; + } + + /** + * Get the IKE encryption algorithm (IKE phase 2). Possible values include: 'DES', 'DES3', 'AES128', 'AES192', 'AES256', 'GCMAES256', 'GCMAES128'. + * + * @return the ikeEncryption value + */ + public IkeEncryption ikeEncryption() { + return this.ikeEncryption; + } + + /** + * Set the IKE encryption algorithm (IKE phase 2). Possible values include: 'DES', 'DES3', 'AES128', 'AES192', 'AES256', 'GCMAES256', 'GCMAES128'. + * + * @param ikeEncryption the ikeEncryption value to set + * @return the VpnClientIPsecParametersInner object itself. + */ + public VpnClientIPsecParametersInner withIkeEncryption(IkeEncryption ikeEncryption) { + this.ikeEncryption = ikeEncryption; + return this; + } + + /** + * Get the IKE integrity algorithm (IKE phase 2). Possible values include: 'MD5', 'SHA1', 'SHA256', 'SHA384', 'GCMAES256', 'GCMAES128'. + * + * @return the ikeIntegrity value + */ + public IkeIntegrity ikeIntegrity() { + return this.ikeIntegrity; + } + + /** + * Set the IKE integrity algorithm (IKE phase 2). Possible values include: 'MD5', 'SHA1', 'SHA256', 'SHA384', 'GCMAES256', 'GCMAES128'. + * + * @param ikeIntegrity the ikeIntegrity value to set + * @return the VpnClientIPsecParametersInner object itself. + */ + public VpnClientIPsecParametersInner withIkeIntegrity(IkeIntegrity ikeIntegrity) { + this.ikeIntegrity = ikeIntegrity; + return this; + } + + /** + * Get the DH Groups used in IKE Phase 1 for initial SA. Possible values include: 'None', 'DHGroup1', 'DHGroup2', 'DHGroup14', 'DHGroup2048', 'ECP256', 'ECP384', 'DHGroup24'. + * + * @return the dhGroup value + */ + public DhGroup dhGroup() { + return this.dhGroup; + } + + /** + * Set the DH Groups used in IKE Phase 1 for initial SA. Possible values include: 'None', 'DHGroup1', 'DHGroup2', 'DHGroup14', 'DHGroup2048', 'ECP256', 'ECP384', 'DHGroup24'. + * + * @param dhGroup the dhGroup value to set + * @return the VpnClientIPsecParametersInner object itself. + */ + public VpnClientIPsecParametersInner withDhGroup(DhGroup dhGroup) { + this.dhGroup = dhGroup; + return this; + } + + /** + * Get the Pfs Groups used in IKE Phase 2 for new child SA. Possible values include: 'None', 'PFS1', 'PFS2', 'PFS2048', 'ECP256', 'ECP384', 'PFS24', 'PFS14', 'PFSMM'. + * + * @return the pfsGroup value + */ + public PfsGroup pfsGroup() { + return this.pfsGroup; + } + + /** + * Set the Pfs Groups used in IKE Phase 2 for new child SA. Possible values include: 'None', 'PFS1', 'PFS2', 'PFS2048', 'ECP256', 'ECP384', 'PFS24', 'PFS14', 'PFSMM'. + * + * @param pfsGroup the pfsGroup value to set + * @return the VpnClientIPsecParametersInner object itself. + */ + public VpnClientIPsecParametersInner withPfsGroup(PfsGroup pfsGroup) { + this.pfsGroup = pfsGroup; + return this; + } + +} diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnConnectionInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnConnectionInner.java index 66ad2ee6ffe..a5a34d59835 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnConnectionInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnConnectionInner.java @@ -10,7 +10,8 @@ import com.microsoft.azure.SubResource; import com.microsoft.azure.management.network.VpnConnectionStatus; -import com.microsoft.azure.management.network.TunnelConnectionStatus; +import java.util.List; +import com.microsoft.azure.management.network.IpsecPolicy; import com.microsoft.azure.management.network.ProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; @@ -42,13 +43,6 @@ public class VpnConnectionInner extends Resource { @JsonProperty(value = "properties.connectionStatus") private VpnConnectionStatus connectionStatus; - /** - * The connection status of tunnel. Possible values include: 'Unknown', - * 'Connecting', 'Connected', 'NotConnected'. - */ - @JsonProperty(value = "properties.tunnelConnectionStatus") - private TunnelConnectionStatus tunnelConnectionStatus; - /** * Ingress bytes transferred. */ @@ -79,6 +73,18 @@ public class VpnConnectionInner extends Resource { @JsonProperty(value = "properties.enableBgp") private Boolean enableBgp; + /** + * The IPSec Policies to be considered by this connection. + */ + @JsonProperty(value = "properties.ipsecPolicies") + private List ipsecPolicies; + + /** + * EnableRateLimiting flag. + */ + @JsonProperty(value = "properties.enableRateLimiting") + private Boolean enableRateLimiting; + /** * The provisioning state of the resource. Possible values include: * 'Succeeded', 'Updating', 'Deleting', 'Failed'. @@ -159,26 +165,6 @@ public VpnConnectionInner withConnectionStatus(VpnConnectionStatus connectionSta return this; } - /** - * Get the connection status of tunnel. Possible values include: 'Unknown', 'Connecting', 'Connected', 'NotConnected'. - * - * @return the tunnelConnectionStatus value - */ - public TunnelConnectionStatus tunnelConnectionStatus() { - return this.tunnelConnectionStatus; - } - - /** - * Set the connection status of tunnel. Possible values include: 'Unknown', 'Connecting', 'Connected', 'NotConnected'. - * - * @param tunnelConnectionStatus the tunnelConnectionStatus value to set - * @return the VpnConnectionInner object itself. - */ - public VpnConnectionInner withTunnelConnectionStatus(TunnelConnectionStatus tunnelConnectionStatus) { - this.tunnelConnectionStatus = tunnelConnectionStatus; - return this; - } - /** * Get ingress bytes transferred. * @@ -246,6 +232,46 @@ public VpnConnectionInner withEnableBgp(Boolean enableBgp) { return this; } + /** + * Get the IPSec Policies to be considered by this connection. + * + * @return the ipsecPolicies value + */ + public List ipsecPolicies() { + return this.ipsecPolicies; + } + + /** + * Set the IPSec Policies to be considered by this connection. + * + * @param ipsecPolicies the ipsecPolicies value to set + * @return the VpnConnectionInner object itself. + */ + public VpnConnectionInner withIpsecPolicies(List ipsecPolicies) { + this.ipsecPolicies = ipsecPolicies; + return this; + } + + /** + * Get enableRateLimiting flag. + * + * @return the enableRateLimiting value + */ + public Boolean enableRateLimiting() { + return this.enableRateLimiting; + } + + /** + * Set enableRateLimiting flag. + * + * @param enableRateLimiting the enableRateLimiting value to set + * @return the VpnConnectionInner object itself. + */ + public VpnConnectionInner withEnableRateLimiting(Boolean enableRateLimiting) { + this.enableRateLimiting = enableRateLimiting; + return this; + } + /** * Get the provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. * diff --git a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnGatewayInner.java b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnGatewayInner.java index 0d53d53fd50..fdc4484a7ac 100644 --- a/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnGatewayInner.java +++ b/azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/VpnGatewayInner.java @@ -12,6 +12,7 @@ import java.util.List; import com.microsoft.azure.management.network.BgpSettings; import com.microsoft.azure.management.network.ProvisioningState; +import com.microsoft.azure.management.network.Policies; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.rest.SkipParentValidation; @@ -48,6 +49,12 @@ public class VpnGatewayInner extends Resource { @JsonProperty(value = "properties.provisioningState") private ProvisioningState provisioningState; + /** + * The policies applied to this vpn gateway. + */ + @JsonProperty(value = "properties.policies") + private Policies policies; + /** * Gets a unique read-only string that changes whenever the resource is * updated. @@ -141,6 +148,26 @@ public VpnGatewayInner withProvisioningState(ProvisioningState provisioningState return this; } + /** + * Get the policies applied to this vpn gateway. + * + * @return the policies value + */ + public Policies policies() { + return this.policies; + } + + /** + * Set the policies applied to this vpn gateway. + * + * @param policies the policies value to set + * @return the VpnGatewayInner object itself. + */ + public VpnGatewayInner withPolicies(Policies policies) { + this.policies = policies; + return this; + } + /** * Get gets a unique read-only string that changes whenever the resource is updated. *