Skip to content

Commit

Permalink
Fixed mgmt, support convenience API for publicNetworkAccess
Browse files Browse the repository at this point in the history
  • Loading branch information
v-hongli1 committed Mar 26, 2024
1 parent 8d6a84e commit 7b8285c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1857,10 +1857,8 @@ public FluentImplT disablePublicNetworkAccess() {
}

@Override
@SuppressWarnings("unchecked")
public PublicNetworkAccess publicNetworkAccess() {
return Objects.isNull(innerModel().publicNetworkAccess())
&& innerModel().publicNetworkAccess().trim().isEmpty() ? null : PublicNetworkAccess.fromString(innerModel().publicNetworkAccess());
return Objects.isNull(innerModel().publicNetworkAccess()) ? null : PublicNetworkAccess.fromString(innerModel().publicNetworkAccess());
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ public final class PublicNetworkAccess extends ExpandableStringEnum<PublicNetwor
*/
public static final PublicNetworkAccess DISABLED = fromString("Disabled");

/**
* Static value SecuredByPerimeter for PublicNetworkAccess.
*/
public static final PublicNetworkAccess SECURED_BY_PERIMETER = fromString("SecuredByPerimeter");

/**
* Creates a new instance of PublicNetworkAccess value.
*
Expand Down

0 comments on commit 7b8285c

Please sign in to comment.