forked from Azure/azure-sdk-for-java
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
SDK Automation
committed
Jun 29, 2020
1 parent
6800fcb
commit 7a511f0
Showing
6 changed files
with
209 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 72 additions & 0 deletions
72
...in/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/NetworkSettings.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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.hdinsight.v2018_06_01_preview; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* The network settings. | ||
*/ | ||
public class NetworkSettings { | ||
/** | ||
* Specifies whether public network access is enabled for inbound and | ||
* outbound, or outbound only. Possible values include: | ||
* 'InboundAndOutbound', 'OutboundOnly'. | ||
*/ | ||
@JsonProperty(value = "publicNetworkAccess") | ||
private PublicNetworkAccess publicNetworkAccess; | ||
|
||
/** | ||
* The mechanism through which the cluster will have outbound access to the | ||
* public network. Possible values include: 'PublicLoadBalancer', 'UDR'. | ||
*/ | ||
@JsonProperty(value = "outboundOnlyPublicNetworkAccessType") | ||
private OutboundOnlyPublicNetworkAccessType outboundOnlyPublicNetworkAccessType; | ||
|
||
/** | ||
* Get specifies whether public network access is enabled for inbound and outbound, or outbound only. Possible values include: 'InboundAndOutbound', 'OutboundOnly'. | ||
* | ||
* @return the publicNetworkAccess value | ||
*/ | ||
public PublicNetworkAccess publicNetworkAccess() { | ||
return this.publicNetworkAccess; | ||
} | ||
|
||
/** | ||
* Set specifies whether public network access is enabled for inbound and outbound, or outbound only. Possible values include: 'InboundAndOutbound', 'OutboundOnly'. | ||
* | ||
* @param publicNetworkAccess the publicNetworkAccess value to set | ||
* @return the NetworkSettings object itself. | ||
*/ | ||
public NetworkSettings withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) { | ||
this.publicNetworkAccess = publicNetworkAccess; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get the mechanism through which the cluster will have outbound access to the public network. Possible values include: 'PublicLoadBalancer', 'UDR'. | ||
* | ||
* @return the outboundOnlyPublicNetworkAccessType value | ||
*/ | ||
public OutboundOnlyPublicNetworkAccessType outboundOnlyPublicNetworkAccessType() { | ||
return this.outboundOnlyPublicNetworkAccessType; | ||
} | ||
|
||
/** | ||
* Set the mechanism through which the cluster will have outbound access to the public network. Possible values include: 'PublicLoadBalancer', 'UDR'. | ||
* | ||
* @param outboundOnlyPublicNetworkAccessType the outboundOnlyPublicNetworkAccessType value to set | ||
* @return the NetworkSettings object itself. | ||
*/ | ||
public NetworkSettings withOutboundOnlyPublicNetworkAccessType(OutboundOnlyPublicNetworkAccessType outboundOnlyPublicNetworkAccessType) { | ||
this.outboundOnlyPublicNetworkAccessType = outboundOnlyPublicNetworkAccessType; | ||
return this; | ||
} | ||
|
||
} |
41 changes: 41 additions & 0 deletions
41
...t/azure/management/hdinsight/v2018_06_01_preview/OutboundOnlyPublicNetworkAccessType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/** | ||
* 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.hdinsight.v2018_06_01_preview; | ||
|
||
import java.util.Collection; | ||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
import com.microsoft.rest.ExpandableStringEnum; | ||
|
||
/** | ||
* Defines values for OutboundOnlyPublicNetworkAccessType. | ||
*/ | ||
public final class OutboundOnlyPublicNetworkAccessType extends ExpandableStringEnum<OutboundOnlyPublicNetworkAccessType> { | ||
/** Static value PublicLoadBalancer for OutboundOnlyPublicNetworkAccessType. */ | ||
public static final OutboundOnlyPublicNetworkAccessType PUBLIC_LOAD_BALANCER = fromString("PublicLoadBalancer"); | ||
|
||
/** Static value UDR for OutboundOnlyPublicNetworkAccessType. */ | ||
public static final OutboundOnlyPublicNetworkAccessType UDR = fromString("UDR"); | ||
|
||
/** | ||
* Creates or finds a OutboundOnlyPublicNetworkAccessType from its string representation. | ||
* @param name a name to look for | ||
* @return the corresponding OutboundOnlyPublicNetworkAccessType | ||
*/ | ||
@JsonCreator | ||
public static OutboundOnlyPublicNetworkAccessType fromString(String name) { | ||
return fromString(name, OutboundOnlyPublicNetworkAccessType.class); | ||
} | ||
|
||
/** | ||
* @return known OutboundOnlyPublicNetworkAccessType values | ||
*/ | ||
public static Collection<OutboundOnlyPublicNetworkAccessType> values() { | ||
return values(OutboundOnlyPublicNetworkAccessType.class); | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
...ava/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/PublicNetworkAccess.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/** | ||
* 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.hdinsight.v2018_06_01_preview; | ||
|
||
import java.util.Collection; | ||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
import com.microsoft.rest.ExpandableStringEnum; | ||
|
||
/** | ||
* Defines values for PublicNetworkAccess. | ||
*/ | ||
public final class PublicNetworkAccess extends ExpandableStringEnum<PublicNetworkAccess> { | ||
/** Static value InboundAndOutbound for PublicNetworkAccess. */ | ||
public static final PublicNetworkAccess INBOUND_AND_OUTBOUND = fromString("InboundAndOutbound"); | ||
|
||
/** Static value OutboundOnly for PublicNetworkAccess. */ | ||
public static final PublicNetworkAccess OUTBOUND_ONLY = fromString("OutboundOnly"); | ||
|
||
/** | ||
* Creates or finds a PublicNetworkAccess from its string representation. | ||
* @param name a name to look for | ||
* @return the corresponding PublicNetworkAccess | ||
*/ | ||
@JsonCreator | ||
public static PublicNetworkAccess fromString(String name) { | ||
return fromString(name, PublicNetworkAccess.class); | ||
} | ||
|
||
/** | ||
* @return known PublicNetworkAccess values | ||
*/ | ||
public static Collection<PublicNetworkAccess> values() { | ||
return values(PublicNetworkAccess.class); | ||
} | ||
} |