Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.1.0-beta.1 (Unreleased)
## 1.0.0-beta.1 (2023-07-27)

- Azure Resource Manager Managed Network Fabric client library for Java. This package contains Microsoft Azure SDK for Managed Network Fabric Management SDK. Self service experience for Azure Network Fabric API. Package tag package-2023-06-15. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

### Features Added

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-managednetworkfabric</artifactId>
<version>1.0.0</version>
<version>1.1.0-beta.1</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ import com.azure.resourcemanager.managednetworkfabric.models.AccessControlListMa
import com.azure.resourcemanager.managednetworkfabric.models.AccessControlListPortCondition;
import com.azure.resourcemanager.managednetworkfabric.models.AclActionType;
import com.azure.resourcemanager.managednetworkfabric.models.CommonDynamicMatchConfiguration;
import com.azure.resourcemanager.managednetworkfabric.models.CommunityActionTypes;
import com.azure.resourcemanager.managednetworkfabric.models.ConfigurationType;
import com.azure.resourcemanager.managednetworkfabric.models.IpAddressType;
import com.azure.resourcemanager.managednetworkfabric.models.IpGroupProperties;
Expand Down Expand Up @@ -281,6 +282,7 @@ public final class AccessControlListsCreateSamples {
.withTags(mapOf("keyID", "fakeTokenPlaceholder"))
.withConfigurationType(ConfigurationType.FILE)
.withAclsUrl("https://ACL-Storage-URL")
.withDefaultAction(CommunityActionTypes.PERMIT)
.withMatchConfigurations(
Arrays
.asList(
Expand Down Expand Up @@ -474,6 +476,7 @@ import com.azure.resourcemanager.managednetworkfabric.models.AccessControlListMa
import com.azure.resourcemanager.managednetworkfabric.models.AccessControlListPortCondition;
import com.azure.resourcemanager.managednetworkfabric.models.AclActionType;
import com.azure.resourcemanager.managednetworkfabric.models.CommonDynamicMatchConfiguration;
import com.azure.resourcemanager.managednetworkfabric.models.CommunityActionTypes;
import com.azure.resourcemanager.managednetworkfabric.models.ConfigurationType;
import com.azure.resourcemanager.managednetworkfabric.models.IpAddressType;
import com.azure.resourcemanager.managednetworkfabric.models.IpGroupProperties;
Expand Down Expand Up @@ -512,6 +515,7 @@ public final class AccessControlListsUpdateSamples {
.withAnnotation("annotation")
.withConfigurationType(ConfigurationType.FILE)
.withAclsUrl("https://microsoft.com/a")
.withDefaultAction(CommunityActionTypes.PERMIT)
.withMatchConfigurations(
Arrays
.asList(
Expand Down Expand Up @@ -5514,6 +5518,7 @@ public final class RoutePoliciesCommitConfigurationSamples {
import com.azure.resourcemanager.managednetworkfabric.models.ActionIpCommunityProperties;
import com.azure.resourcemanager.managednetworkfabric.models.ActionIpExtendedCommunityProperties;
import com.azure.resourcemanager.managednetworkfabric.models.AddressFamilyType;
import com.azure.resourcemanager.managednetworkfabric.models.CommunityActionTypes;
import com.azure.resourcemanager.managednetworkfabric.models.IpCommunityIdList;
import com.azure.resourcemanager.managednetworkfabric.models.IpExtendedCommunityIdList;
import com.azure.resourcemanager.managednetworkfabric.models.RoutePolicyActionType;
Expand Down Expand Up @@ -5546,6 +5551,7 @@ public final class RoutePoliciesCreateSamples {
"/subscriptions/1234ABCD-0A1B-1234-5678-123456ABCDEF/resourceGroups/example-rg/providers/Microsoft.ManagedNetworkFabric/networkFabrics/example-fabric")
.withTags(mapOf("keyID", "fakeTokenPlaceholder"))
.withAddressFamilyType(AddressFamilyType.IPV4)
.withDefaultAction(CommunityActionTypes.DENY)
.withStatements(
Arrays
.asList(
Expand Down Expand Up @@ -5713,6 +5719,7 @@ public final class RoutePoliciesListByResourceGroupSamples {
```java
import com.azure.resourcemanager.managednetworkfabric.models.ActionIpCommunityProperties;
import com.azure.resourcemanager.managednetworkfabric.models.ActionIpExtendedCommunityProperties;
import com.azure.resourcemanager.managednetworkfabric.models.CommunityActionTypes;
import com.azure.resourcemanager.managednetworkfabric.models.IpCommunityIdList;
import com.azure.resourcemanager.managednetworkfabric.models.IpExtendedCommunityIdList;
import com.azure.resourcemanager.managednetworkfabric.models.RoutePolicy;
Expand Down Expand Up @@ -5745,6 +5752,7 @@ public final class RoutePoliciesUpdateSamples {
resource
.update()
.withTags(mapOf("keyID", "fakeTokenPlaceholder"))
.withDefaultAction(CommunityActionTypes.DENY)
.withStatements(
Arrays
.asList(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ public ManagedNetworkFabricManager authenticate(TokenCredential credential, Azur
.append("-")
.append("com.azure.resourcemanager.managednetworkfabric")
.append("/")
.append("1.0.0");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import com.azure.resourcemanager.managednetworkfabric.models.AccessControlListMatchConfiguration;
import com.azure.resourcemanager.managednetworkfabric.models.AdministrativeState;
import com.azure.resourcemanager.managednetworkfabric.models.CommonDynamicMatchConfiguration;
import com.azure.resourcemanager.managednetworkfabric.models.CommunityActionTypes;
import com.azure.resourcemanager.managednetworkfabric.models.ConfigurationState;
import com.azure.resourcemanager.managednetworkfabric.models.ConfigurationType;
import com.azure.resourcemanager.managednetworkfabric.models.ProvisioningState;
Expand Down Expand Up @@ -152,6 +153,31 @@ public AccessControlListInner withAclsUrl(String aclsUrl) {
return this;
}

/**
* Get the defaultAction property: Default action that needs to be applied when no condition is matched. Example:
* Permit | Deny.
*
* @return the defaultAction value.
*/
public CommunityActionTypes defaultAction() {
return this.innerProperties() == null ? null : this.innerProperties().defaultAction();
}

/**
* Set the defaultAction property: Default action that needs to be applied when no condition is matched. Example:
* Permit | Deny.
*
* @param defaultAction the defaultAction value to set.
* @return the AccessControlListInner object itself.
*/
public AccessControlListInner withDefaultAction(CommunityActionTypes defaultAction) {
if (this.innerProperties() == null) {
this.innerProperties = new AccessControlListProperties();
}
this.innerProperties().withDefaultAction(defaultAction);
return this;
}

/**
* Get the matchConfigurations property: List of match configurations.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import com.azure.resourcemanager.managednetworkfabric.models.AccessControlListMatchConfiguration;
import com.azure.resourcemanager.managednetworkfabric.models.AccessControlListPatchableProperties;
import com.azure.resourcemanager.managednetworkfabric.models.CommonDynamicMatchConfiguration;
import com.azure.resourcemanager.managednetworkfabric.models.CommunityActionTypes;
import com.azure.resourcemanager.managednetworkfabric.models.ConfigurationType;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
Expand Down Expand Up @@ -59,6 +60,13 @@ public AccessControlListPatchProperties withAclsUrl(String aclsUrl) {
return this;
}

/** {@inheritDoc} */
@Override
public AccessControlListPatchProperties withDefaultAction(CommunityActionTypes defaultAction) {
super.withDefaultAction(defaultAction);
return this;
}

/** {@inheritDoc} */
@Override
public AccessControlListPatchProperties withMatchConfigurations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import com.azure.resourcemanager.managednetworkfabric.models.AdministrativeState;
import com.azure.resourcemanager.managednetworkfabric.models.AnnotationResource;
import com.azure.resourcemanager.managednetworkfabric.models.CommonDynamicMatchConfiguration;
import com.azure.resourcemanager.managednetworkfabric.models.CommunityActionTypes;
import com.azure.resourcemanager.managednetworkfabric.models.ConfigurationState;
import com.azure.resourcemanager.managednetworkfabric.models.ConfigurationType;
import com.azure.resourcemanager.managednetworkfabric.models.ProvisioningState;
Expand Down Expand Up @@ -55,6 +56,12 @@ public final class AccessControlListProperties extends AnnotationResource {
@JsonProperty(value = "aclsUrl")
private String aclsUrl;

/*
* Default action that needs to be applied when no condition is matched. Example: Permit | Deny.
*/
@JsonProperty(value = "defaultAction")
private CommunityActionTypes defaultAction;

/*
* List of match configurations.
*/
Expand Down Expand Up @@ -147,6 +154,28 @@ public AccessControlListProperties withAclsUrl(String aclsUrl) {
return this;
}

/**
* Get the defaultAction property: Default action that needs to be applied when no condition is matched. Example:
* Permit | Deny.
*
* @return the defaultAction value.
*/
public CommunityActionTypes defaultAction() {
return this.defaultAction;
}

/**
* Set the defaultAction property: Default action that needs to be applied when no condition is matched. Example:
* Permit | Deny.
*
* @param defaultAction the defaultAction value to set.
* @return the AccessControlListProperties object itself.
*/
public AccessControlListProperties withDefaultAction(CommunityActionTypes defaultAction) {
this.defaultAction = defaultAction;
return this;
}

/**
* Get the matchConfigurations property: List of match configurations.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.exception.ManagementError;
import com.azure.resourcemanager.managednetworkfabric.models.ConfigurationState;
import com.azure.resourcemanager.managednetworkfabric.models.ErrorResponse;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** Common response for device updates. */
@Fluent
public final class CommonPostActionResponseForDeviceUpdateInner {
public final class CommonPostActionResponseForDeviceUpdateInner extends ErrorResponse {
/*
* Gets the configuration state.
*/
Expand All @@ -31,12 +32,6 @@ public final class CommonPostActionResponseForDeviceUpdateInner {
@JsonProperty(value = "failedDevices")
private List<String> failedDevices;

/*
* The error object.
*/
@JsonProperty(value = "error")
private ManagementError error;

/** Creates an instance of CommonPostActionResponseForDeviceUpdateInner class. */
public CommonPostActionResponseForDeviceUpdateInner() {
}
Expand Down Expand Up @@ -90,23 +85,10 @@ public CommonPostActionResponseForDeviceUpdateInner withFailedDevices(List<Strin
return this;
}

/**
* Get the error property: The error object.
*
* @return the error value.
*/
public ManagementError error() {
return this.error;
}

/**
* Set the error property: The error object.
*
* @param error the error value to set.
* @return the CommonPostActionResponseForDeviceUpdateInner object itself.
*/
/** {@inheritDoc} */
@Override
public CommonPostActionResponseForDeviceUpdateInner withError(ManagementError error) {
this.error = error;
super.withError(error);
return this;
}

Expand All @@ -115,6 +97,8 @@ public CommonPostActionResponseForDeviceUpdateInner withError(ManagementError er
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
@Override
public void validate() {
super.validate();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,18 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.exception.ManagementError;
import com.azure.resourcemanager.managednetworkfabric.models.ConfigurationState;
import com.azure.resourcemanager.managednetworkfabric.models.ErrorResponse;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Common response for the state updates. */
@Fluent
public final class CommonPostActionResponseForStateUpdateInner {
public final class CommonPostActionResponseForStateUpdateInner extends ErrorResponse {
/*
* Gets the configuration state.
*/
@JsonProperty(value = "configurationState", access = JsonProperty.Access.WRITE_ONLY)
private ConfigurationState configurationState;

/*
* The error object.
*/
@JsonProperty(value = "error")
private ManagementError error;

/** Creates an instance of CommonPostActionResponseForStateUpdateInner class. */
public CommonPostActionResponseForStateUpdateInner() {
}
Expand All @@ -37,23 +32,10 @@ public ConfigurationState configurationState() {
return this.configurationState;
}

/**
* Get the error property: The error object.
*
* @return the error value.
*/
public ManagementError error() {
return this.error;
}

/**
* Set the error property: The error object.
*
* @param error the error value to set.
* @return the CommonPostActionResponseForStateUpdateInner object itself.
*/
/** {@inheritDoc} */
@Override
public CommonPostActionResponseForStateUpdateInner withError(ManagementError error) {
this.error = error;
super.withError(error);
return this;
}

Expand All @@ -62,6 +44,8 @@ public CommonPostActionResponseForStateUpdateInner withError(ManagementError err
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
@Override
public void validate() {
super.validate();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.managednetworkfabric.models.AddressFamilyType;
import com.azure.resourcemanager.managednetworkfabric.models.AdministrativeState;
import com.azure.resourcemanager.managednetworkfabric.models.CommunityActionTypes;
import com.azure.resourcemanager.managednetworkfabric.models.ConfigurationState;
import com.azure.resourcemanager.managednetworkfabric.models.ProvisioningState;
import com.azure.resourcemanager.managednetworkfabric.models.RoutePolicyStatementProperties;
Expand Down Expand Up @@ -143,6 +144,31 @@ public AdministrativeState administrativeState() {
return this.innerProperties() == null ? null : this.innerProperties().administrativeState();
}

/**
* Get the defaultAction property: Default action that needs to be applied when no condition is matched. Example:
* Permit | Deny.
*
* @return the defaultAction value.
*/
public CommunityActionTypes defaultAction() {
return this.innerProperties() == null ? null : this.innerProperties().defaultAction();
}

/**
* Set the defaultAction property: Default action that needs to be applied when no condition is matched. Example:
* Permit | Deny.
*
* @param defaultAction the defaultAction value to set.
* @return the RoutePolicyInner object itself.
*/
public RoutePolicyInner withDefaultAction(CommunityActionTypes defaultAction) {
if (this.innerProperties() == null) {
this.innerProperties = new RoutePolicyProperties();
}
this.innerProperties().withDefaultAction(defaultAction);
return this;
}

/**
* Get the statements property: Route Policy statements.
*
Expand Down
Loading