diff --git a/sdk/networkfunction/azure-resourcemanager-networkfunction/CHANGELOG.md b/sdk/networkfunction/azure-resourcemanager-networkfunction/CHANGELOG.md index 7073b6a64900..0adf7cf37612 100644 --- a/sdk/networkfunction/azure-resourcemanager-networkfunction/CHANGELOG.md +++ b/sdk/networkfunction/azure-resourcemanager-networkfunction/CHANGELOG.md @@ -1,6 +1,8 @@ # Release History -## 1.0.0-beta.2 (Unreleased) +## 1.0.0-beta.1 (2022-07-26) + +- Azure Resource Manager AzureTrafficCollector client library for Java. This package contains Microsoft Azure SDK for AzureTrafficCollector Management SDK. Azure Traffic Collector service. Package tag package-2022-08-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Features Added diff --git a/sdk/networkfunction/azure-resourcemanager-networkfunction/README.md b/sdk/networkfunction/azure-resourcemanager-networkfunction/README.md index 02e98ca14974..29eba694e89b 100644 --- a/sdk/networkfunction/azure-resourcemanager-networkfunction/README.md +++ b/sdk/networkfunction/azure-resourcemanager-networkfunction/README.md @@ -2,7 +2,7 @@ Azure Resource Manager AzureTrafficCollector client library for Java. -This package contains Microsoft Azure SDK for AzureTrafficCollector Management SDK. Azure Traffic Collector service. Package tag package-2022-05-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). +This package contains Microsoft Azure SDK for AzureTrafficCollector Management SDK. Azure Traffic Collector service. Package tag package-2022-08-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ## We'd love to hear your feedback @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-networkfunction - 1.0.0-beta.1 + 1.0.0-beta.2 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/networkfunction/azure-resourcemanager-networkfunction/SAMPLE.md b/sdk/networkfunction/azure-resourcemanager-networkfunction/SAMPLE.md index 876d357a4890..598da88c73e5 100644 --- a/sdk/networkfunction/azure-resourcemanager-networkfunction/SAMPLE.md +++ b/sdk/networkfunction/azure-resourcemanager-networkfunction/SAMPLE.md @@ -36,7 +36,7 @@ import java.util.Map; /** Samples for AzureTrafficCollectors CreateOrUpdate. */ public final class AzureTrafficCollectorsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/AzureTrafficCollectorCreate.json + * x-ms-original-file: specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-08-01/examples/AzureTrafficCollectorCreate.json */ /** * Sample code: Create a traffic collector. @@ -76,7 +76,7 @@ import com.azure.core.util.Context; /** Samples for AzureTrafficCollectors Delete. */ public final class AzureTrafficCollectorsDeleteSamples { /* - * x-ms-original-file: specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/AzureTrafficCollectorDelete.json + * x-ms-original-file: specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-08-01/examples/AzureTrafficCollectorDelete.json */ /** * Sample code: Delete Traffic Collector. @@ -98,7 +98,7 @@ import com.azure.core.util.Context; /** Samples for AzureTrafficCollectors GetByResourceGroup. */ public final class AzureTrafficCollectorsGetByResourceGroupSamples { /* - * x-ms-original-file: specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/AzureTrafficCollectorGet.json + * x-ms-original-file: specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-08-01/examples/AzureTrafficCollectorGet.json */ /** * Sample code: Get Traffic Collector. @@ -123,7 +123,7 @@ import java.util.Map; /** Samples for AzureTrafficCollectors UpdateTags. */ public final class AzureTrafficCollectorsUpdateTagsSamples { /* - * x-ms-original-file: specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/AzureTrafficCollectorUpdateTags.json + * x-ms-original-file: specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-08-01/examples/AzureTrafficCollectorUpdateTags.json */ /** * Sample code: Update Traffic Collector tags. @@ -158,7 +158,7 @@ import com.azure.core.util.Context; /** Samples for AzureTrafficCollectorsByResourceGroup ListByResourceGroup. */ public final class AzureTrafficCollectorsByResourceGroupListByResourceGroupSamples { /* - * x-ms-original-file: specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/AzureTrafficCollectorsByResourceGroupList.json + * x-ms-original-file: specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-08-01/examples/AzureTrafficCollectorsByResourceGroupList.json */ /** * Sample code: List of Traffic Collectors by ResourceGroup. @@ -180,7 +180,7 @@ import com.azure.core.util.Context; /** Samples for AzureTrafficCollectorsBySubscription List. */ public final class AzureTrafficCollectorsBySubscriptionListSamples { /* - * x-ms-original-file: specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/AzureTrafficCollectorsBySubscriptionList.json + * x-ms-original-file: specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-08-01/examples/AzureTrafficCollectorsBySubscriptionList.json */ /** * Sample code: List of Traffic Collectors by Subscription. @@ -210,7 +210,7 @@ import java.util.Arrays; /** Samples for CollectorPolicies CreateOrUpdate. */ public final class CollectorPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/CollectorPolicyCreate.json + * x-ms-original-file: specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-08-01/examples/CollectorPolicyCreate.json */ /** * Sample code: Create a collection policy. @@ -222,6 +222,7 @@ public final class CollectorPoliciesCreateOrUpdateSamples { manager .collectorPolicies() .define("cp1") + .withRegion("West US") .withExistingAzureTrafficCollector("rg1", "atc") .withIngestionPolicy( new IngestionPolicyPropertiesFormat() @@ -256,7 +257,7 @@ import com.azure.core.util.Context; /** Samples for CollectorPolicies Delete. */ public final class CollectorPoliciesDeleteSamples { /* - * x-ms-original-file: specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/CollectorPolicyDelete.json + * x-ms-original-file: specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-08-01/examples/CollectorPolicyDelete.json */ /** * Sample code: Delete Collection Policy. @@ -278,7 +279,7 @@ import com.azure.core.util.Context; /** Samples for CollectorPolicies Get. */ public final class CollectorPoliciesGetSamples { /* - * x-ms-original-file: specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/CollectorPolicyGet.json + * x-ms-original-file: specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-08-01/examples/CollectorPolicyGet.json */ /** * Sample code: Get Collection Policy. @@ -300,7 +301,7 @@ import com.azure.core.util.Context; /** Samples for CollectorPolicies List. */ public final class CollectorPoliciesListSamples { /* - * x-ms-original-file: specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/CollectorPoliciesList.json + * x-ms-original-file: specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-08-01/examples/CollectorPoliciesList.json */ /** * Sample code: List of Collection Policies. @@ -322,7 +323,7 @@ import com.azure.core.util.Context; /** Samples for NetworkFunction ListOperations. */ public final class NetworkFunctionListOperationsSamples { /* - * x-ms-original-file: specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/OperationsList.json + * x-ms-original-file: specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-08-01/examples/OperationsList.json */ /** * Sample code: OperationsList. diff --git a/sdk/networkfunction/azure-resourcemanager-networkfunction/pom.xml b/sdk/networkfunction/azure-resourcemanager-networkfunction/pom.xml index be87d9e7121e..72596988acb2 100644 --- a/sdk/networkfunction/azure-resourcemanager-networkfunction/pom.xml +++ b/sdk/networkfunction/azure-resourcemanager-networkfunction/pom.xml @@ -13,7 +13,7 @@ jar Microsoft Azure SDK for AzureTrafficCollector Management - This package contains Microsoft Azure SDK for AzureTrafficCollector Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Traffic Collector service. Package tag package-2022-05-01. + This package contains Microsoft Azure SDK for AzureTrafficCollector Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Traffic Collector service. Package tag package-2022-08-01. https://github.com/Azure/azure-sdk-for-java diff --git a/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/fluent/models/CollectorPolicyInner.java b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/fluent/models/CollectorPolicyInner.java index a4bfc646ae6f..456f2a6f1ccc 100644 --- a/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/fluent/models/CollectorPolicyInner.java +++ b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/fluent/models/CollectorPolicyInner.java @@ -5,17 +5,18 @@ package com.azure.resourcemanager.networkfunction.fluent.models; import com.azure.core.annotation.Fluent; -import com.azure.core.management.ProxyResource; +import com.azure.core.management.Resource; import com.azure.core.management.SystemData; import com.azure.resourcemanager.networkfunction.models.EmissionPoliciesPropertiesFormat; import com.azure.resourcemanager.networkfunction.models.IngestionPolicyPropertiesFormat; import com.azure.resourcemanager.networkfunction.models.ProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; +import java.util.Map; /** Collector policy resource. */ @Fluent -public final class CollectorPolicyInner extends ProxyResource { +public final class CollectorPolicyInner extends Resource { /* * Properties of the Collector Policy. */ @@ -61,6 +62,20 @@ public SystemData systemData() { return this.systemData; } + /** {@inheritDoc} */ + @Override + public CollectorPolicyInner withLocation(String location) { + super.withLocation(location); + return this; + } + + /** {@inheritDoc} */ + @Override + public CollectorPolicyInner withTags(Map tags) { + super.withTags(tags); + return this; + } + /** * Get the ingestionPolicy property: Ingestion policies. * diff --git a/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/implementation/AzureTrafficCollectorManagementClientImpl.java b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/implementation/AzureTrafficCollectorManagementClientImpl.java index 4861aa897980..ba0e864eb741 100644 --- a/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/implementation/AzureTrafficCollectorManagementClientImpl.java +++ b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/implementation/AzureTrafficCollectorManagementClientImpl.java @@ -194,7 +194,7 @@ public CollectorPoliciesClient getCollectorPolicies() { this.defaultPollInterval = defaultPollInterval; this.subscriptionId = subscriptionId; this.endpoint = endpoint; - this.apiVersion = "2022-05-01"; + this.apiVersion = "2022-08-01"; this.networkFunctions = new NetworkFunctionsClientImpl(this); this.azureTrafficCollectorsBySubscriptions = new AzureTrafficCollectorsBySubscriptionsClientImpl(this); this.azureTrafficCollectorsByResourceGroups = new AzureTrafficCollectorsByResourceGroupsClientImpl(this); diff --git a/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/implementation/CollectorPolicyImpl.java b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/implementation/CollectorPolicyImpl.java index c0bc6829efc4..0b8335db8030 100644 --- a/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/implementation/CollectorPolicyImpl.java +++ b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/implementation/CollectorPolicyImpl.java @@ -4,6 +4,7 @@ package com.azure.resourcemanager.networkfunction.implementation; +import com.azure.core.management.Region; import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.networkfunction.fluent.models.CollectorPolicyInner; @@ -13,6 +14,7 @@ import com.azure.resourcemanager.networkfunction.models.ProvisioningState; import java.util.Collections; import java.util.List; +import java.util.Map; public final class CollectorPolicyImpl implements CollectorPolicy, CollectorPolicy.Definition, CollectorPolicy.Update { private CollectorPolicyInner innerObject; @@ -31,6 +33,19 @@ public String type() { return this.innerModel().type(); } + public String location() { + return this.innerModel().location(); + } + + public Map tags() { + Map inner = this.innerModel().tags(); + if (inner != null) { + return Collections.unmodifiableMap(inner); + } else { + return Collections.emptyMap(); + } + } + public String etag() { return this.innerModel().etag(); } @@ -56,6 +71,14 @@ public ProvisioningState provisioningState() { return this.innerModel().provisioningState(); } + public Region region() { + return Region.fromName(this.regionName()); + } + + public String regionName() { + return this.location(); + } + public String resourceGroupName() { return resourceGroupName; } @@ -162,6 +185,21 @@ public CollectorPolicy refresh(Context context) { return this; } + public CollectorPolicyImpl withRegion(Region location) { + this.innerModel().withLocation(location.toString()); + return this; + } + + public CollectorPolicyImpl withRegion(String location) { + this.innerModel().withLocation(location); + return this; + } + + public CollectorPolicyImpl withTags(Map tags) { + this.innerModel().withTags(tags); + return this; + } + public CollectorPolicyImpl withIngestionPolicy(IngestionPolicyPropertiesFormat ingestionPolicy) { this.innerModel().withIngestionPolicy(ingestionPolicy); return this; diff --git a/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/models/CollectorPolicy.java b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/models/CollectorPolicy.java index edba51d5f09c..65aa9abc8e0c 100644 --- a/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/models/CollectorPolicy.java +++ b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/models/CollectorPolicy.java @@ -4,10 +4,12 @@ package com.azure.resourcemanager.networkfunction.models; +import com.azure.core.management.Region; import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.networkfunction.fluent.models.CollectorPolicyInner; import java.util.List; +import java.util.Map; /** An immutable client-side representation of CollectorPolicy. */ public interface CollectorPolicy { @@ -32,6 +34,20 @@ public interface CollectorPolicy { */ String type(); + /** + * Gets the location property: The geo-location where the resource lives. + * + * @return the location value. + */ + String location(); + + /** + * Gets the tags property: Resource tags. + * + * @return the tags value. + */ + Map tags(); + /** * Gets the etag property: A unique read-only string that changes whenever the resource is updated. * @@ -67,6 +83,20 @@ public interface CollectorPolicy { */ ProvisioningState provisioningState(); + /** + * Gets the region of the resource. + * + * @return the region of the resource. + */ + Region region(); + + /** + * Gets the name of the resource region. + * + * @return the name of the resource region. + */ + String regionName(); + /** * Gets the name of the resource group. * @@ -83,12 +113,33 @@ public interface CollectorPolicy { /** The entirety of the CollectorPolicy definition. */ interface Definition - extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { + extends DefinitionStages.Blank, + DefinitionStages.WithLocation, + DefinitionStages.WithParentResource, + DefinitionStages.WithCreate { } /** The CollectorPolicy definition stages. */ interface DefinitionStages { /** The first stage of the CollectorPolicy definition. */ - interface Blank extends WithParentResource { + interface Blank extends WithLocation { + } + /** The stage of the CollectorPolicy definition allowing to specify location. */ + interface WithLocation { + /** + * Specifies the region for the resource. + * + * @param location The geo-location where the resource lives. + * @return the next definition stage. + */ + WithParentResource withRegion(Region location); + + /** + * Specifies the region for the resource. + * + * @param location The geo-location where the resource lives. + * @return the next definition stage. + */ + WithParentResource withRegion(String location); } /** The stage of the CollectorPolicy definition allowing to specify parent resource. */ interface WithParentResource { @@ -105,7 +156,10 @@ interface WithParentResource { * The stage of the CollectorPolicy definition which contains all the minimum required properties for the * resource to be created, but also allows for any other optional properties to be specified. */ - interface WithCreate extends DefinitionStages.WithIngestionPolicy, DefinitionStages.WithEmissionPolicies { + interface WithCreate + extends DefinitionStages.WithTags, + DefinitionStages.WithIngestionPolicy, + DefinitionStages.WithEmissionPolicies { /** * Executes the create request. * @@ -121,6 +175,16 @@ interface WithCreate extends DefinitionStages.WithIngestionPolicy, DefinitionSta */ CollectorPolicy create(Context context); } + /** The stage of the CollectorPolicy definition allowing to specify tags. */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + WithCreate withTags(Map tags); + } /** The stage of the CollectorPolicy definition allowing to specify ingestionPolicy. */ interface WithIngestionPolicy { /** @@ -150,7 +214,8 @@ interface WithEmissionPolicies { CollectorPolicy.Update update(); /** The template for CollectorPolicy update. */ - interface Update extends UpdateStages.WithIngestionPolicy, UpdateStages.WithEmissionPolicies { + interface Update + extends UpdateStages.WithTags, UpdateStages.WithIngestionPolicy, UpdateStages.WithEmissionPolicies { /** * Executes the update request. * @@ -168,6 +233,16 @@ interface Update extends UpdateStages.WithIngestionPolicy, UpdateStages.WithEmis } /** The CollectorPolicy update stages. */ interface UpdateStages { + /** The stage of the CollectorPolicy update allowing to specify tags. */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + Update withTags(Map tags); + } /** The stage of the CollectorPolicy update allowing to specify ingestionPolicy. */ interface WithIngestionPolicy { /** diff --git a/sdk/networkfunction/azure-resourcemanager-networkfunction/src/samples/java/com/azure/resourcemanager/networkfunction/generated/AzureTrafficCollectorsByResourceGroupListByResourceGroupSamples.java b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/samples/java/com/azure/resourcemanager/networkfunction/generated/AzureTrafficCollectorsByResourceGroupListByResourceGroupSamples.java index a6a38c070c94..bb0330aa2cba 100644 --- a/sdk/networkfunction/azure-resourcemanager-networkfunction/src/samples/java/com/azure/resourcemanager/networkfunction/generated/AzureTrafficCollectorsByResourceGroupListByResourceGroupSamples.java +++ b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/samples/java/com/azure/resourcemanager/networkfunction/generated/AzureTrafficCollectorsByResourceGroupListByResourceGroupSamples.java @@ -9,7 +9,7 @@ /** Samples for AzureTrafficCollectorsByResourceGroup ListByResourceGroup. */ public final class AzureTrafficCollectorsByResourceGroupListByResourceGroupSamples { /* - * x-ms-original-file: specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/AzureTrafficCollectorsByResourceGroupList.json + * x-ms-original-file: specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-08-01/examples/AzureTrafficCollectorsByResourceGroupList.json */ /** * Sample code: List of Traffic Collectors by ResourceGroup. diff --git a/sdk/networkfunction/azure-resourcemanager-networkfunction/src/samples/java/com/azure/resourcemanager/networkfunction/generated/AzureTrafficCollectorsBySubscriptionListSamples.java b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/samples/java/com/azure/resourcemanager/networkfunction/generated/AzureTrafficCollectorsBySubscriptionListSamples.java index 42b35a567938..d911f114e176 100644 --- a/sdk/networkfunction/azure-resourcemanager-networkfunction/src/samples/java/com/azure/resourcemanager/networkfunction/generated/AzureTrafficCollectorsBySubscriptionListSamples.java +++ b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/samples/java/com/azure/resourcemanager/networkfunction/generated/AzureTrafficCollectorsBySubscriptionListSamples.java @@ -9,7 +9,7 @@ /** Samples for AzureTrafficCollectorsBySubscription List. */ public final class AzureTrafficCollectorsBySubscriptionListSamples { /* - * x-ms-original-file: specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/AzureTrafficCollectorsBySubscriptionList.json + * x-ms-original-file: specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-08-01/examples/AzureTrafficCollectorsBySubscriptionList.json */ /** * Sample code: List of Traffic Collectors by Subscription. diff --git a/sdk/networkfunction/azure-resourcemanager-networkfunction/src/samples/java/com/azure/resourcemanager/networkfunction/generated/AzureTrafficCollectorsCreateOrUpdateSamples.java b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/samples/java/com/azure/resourcemanager/networkfunction/generated/AzureTrafficCollectorsCreateOrUpdateSamples.java index dc0dcff0d82e..221b3edd5a17 100644 --- a/sdk/networkfunction/azure-resourcemanager-networkfunction/src/samples/java/com/azure/resourcemanager/networkfunction/generated/AzureTrafficCollectorsCreateOrUpdateSamples.java +++ b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/samples/java/com/azure/resourcemanager/networkfunction/generated/AzureTrafficCollectorsCreateOrUpdateSamples.java @@ -11,7 +11,7 @@ /** Samples for AzureTrafficCollectors CreateOrUpdate. */ public final class AzureTrafficCollectorsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/AzureTrafficCollectorCreate.json + * x-ms-original-file: specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-08-01/examples/AzureTrafficCollectorCreate.json */ /** * Sample code: Create a traffic collector. diff --git a/sdk/networkfunction/azure-resourcemanager-networkfunction/src/samples/java/com/azure/resourcemanager/networkfunction/generated/AzureTrafficCollectorsDeleteSamples.java b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/samples/java/com/azure/resourcemanager/networkfunction/generated/AzureTrafficCollectorsDeleteSamples.java index 42f06e34f344..f34863ac602c 100644 --- a/sdk/networkfunction/azure-resourcemanager-networkfunction/src/samples/java/com/azure/resourcemanager/networkfunction/generated/AzureTrafficCollectorsDeleteSamples.java +++ b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/samples/java/com/azure/resourcemanager/networkfunction/generated/AzureTrafficCollectorsDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for AzureTrafficCollectors Delete. */ public final class AzureTrafficCollectorsDeleteSamples { /* - * x-ms-original-file: specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/AzureTrafficCollectorDelete.json + * x-ms-original-file: specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-08-01/examples/AzureTrafficCollectorDelete.json */ /** * Sample code: Delete Traffic Collector. diff --git a/sdk/networkfunction/azure-resourcemanager-networkfunction/src/samples/java/com/azure/resourcemanager/networkfunction/generated/AzureTrafficCollectorsGetByResourceGroupSamples.java b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/samples/java/com/azure/resourcemanager/networkfunction/generated/AzureTrafficCollectorsGetByResourceGroupSamples.java index c9246189c9e0..dffa2a57a975 100644 --- a/sdk/networkfunction/azure-resourcemanager-networkfunction/src/samples/java/com/azure/resourcemanager/networkfunction/generated/AzureTrafficCollectorsGetByResourceGroupSamples.java +++ b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/samples/java/com/azure/resourcemanager/networkfunction/generated/AzureTrafficCollectorsGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ /** Samples for AzureTrafficCollectors GetByResourceGroup. */ public final class AzureTrafficCollectorsGetByResourceGroupSamples { /* - * x-ms-original-file: specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/AzureTrafficCollectorGet.json + * x-ms-original-file: specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-08-01/examples/AzureTrafficCollectorGet.json */ /** * Sample code: Get Traffic Collector. diff --git a/sdk/networkfunction/azure-resourcemanager-networkfunction/src/samples/java/com/azure/resourcemanager/networkfunction/generated/AzureTrafficCollectorsUpdateTagsSamples.java b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/samples/java/com/azure/resourcemanager/networkfunction/generated/AzureTrafficCollectorsUpdateTagsSamples.java index 57052a47460d..10de995cd0ed 100644 --- a/sdk/networkfunction/azure-resourcemanager-networkfunction/src/samples/java/com/azure/resourcemanager/networkfunction/generated/AzureTrafficCollectorsUpdateTagsSamples.java +++ b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/samples/java/com/azure/resourcemanager/networkfunction/generated/AzureTrafficCollectorsUpdateTagsSamples.java @@ -12,7 +12,7 @@ /** Samples for AzureTrafficCollectors UpdateTags. */ public final class AzureTrafficCollectorsUpdateTagsSamples { /* - * x-ms-original-file: specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/AzureTrafficCollectorUpdateTags.json + * x-ms-original-file: specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-08-01/examples/AzureTrafficCollectorUpdateTags.json */ /** * Sample code: Update Traffic Collector tags. diff --git a/sdk/networkfunction/azure-resourcemanager-networkfunction/src/samples/java/com/azure/resourcemanager/networkfunction/generated/CollectorPoliciesCreateOrUpdateSamples.java b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/samples/java/com/azure/resourcemanager/networkfunction/generated/CollectorPoliciesCreateOrUpdateSamples.java index 9bbb75a421e9..d5a1b3d62cdb 100644 --- a/sdk/networkfunction/azure-resourcemanager-networkfunction/src/samples/java/com/azure/resourcemanager/networkfunction/generated/CollectorPoliciesCreateOrUpdateSamples.java +++ b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/samples/java/com/azure/resourcemanager/networkfunction/generated/CollectorPoliciesCreateOrUpdateSamples.java @@ -17,7 +17,7 @@ /** Samples for CollectorPolicies CreateOrUpdate. */ public final class CollectorPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/CollectorPolicyCreate.json + * x-ms-original-file: specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-08-01/examples/CollectorPolicyCreate.json */ /** * Sample code: Create a collection policy. @@ -29,6 +29,7 @@ public static void createACollectionPolicy( manager .collectorPolicies() .define("cp1") + .withRegion("West US") .withExistingAzureTrafficCollector("rg1", "atc") .withIngestionPolicy( new IngestionPolicyPropertiesFormat() diff --git a/sdk/networkfunction/azure-resourcemanager-networkfunction/src/samples/java/com/azure/resourcemanager/networkfunction/generated/CollectorPoliciesDeleteSamples.java b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/samples/java/com/azure/resourcemanager/networkfunction/generated/CollectorPoliciesDeleteSamples.java index c9c27bbd46e5..6f6b03e0c0b0 100644 --- a/sdk/networkfunction/azure-resourcemanager-networkfunction/src/samples/java/com/azure/resourcemanager/networkfunction/generated/CollectorPoliciesDeleteSamples.java +++ b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/samples/java/com/azure/resourcemanager/networkfunction/generated/CollectorPoliciesDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for CollectorPolicies Delete. */ public final class CollectorPoliciesDeleteSamples { /* - * x-ms-original-file: specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/CollectorPolicyDelete.json + * x-ms-original-file: specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-08-01/examples/CollectorPolicyDelete.json */ /** * Sample code: Delete Collection Policy. diff --git a/sdk/networkfunction/azure-resourcemanager-networkfunction/src/samples/java/com/azure/resourcemanager/networkfunction/generated/CollectorPoliciesGetSamples.java b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/samples/java/com/azure/resourcemanager/networkfunction/generated/CollectorPoliciesGetSamples.java index 3490267b9a1f..80c9063f7ff4 100644 --- a/sdk/networkfunction/azure-resourcemanager-networkfunction/src/samples/java/com/azure/resourcemanager/networkfunction/generated/CollectorPoliciesGetSamples.java +++ b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/samples/java/com/azure/resourcemanager/networkfunction/generated/CollectorPoliciesGetSamples.java @@ -9,7 +9,7 @@ /** Samples for CollectorPolicies Get. */ public final class CollectorPoliciesGetSamples { /* - * x-ms-original-file: specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/CollectorPolicyGet.json + * x-ms-original-file: specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-08-01/examples/CollectorPolicyGet.json */ /** * Sample code: Get Collection Policy. diff --git a/sdk/networkfunction/azure-resourcemanager-networkfunction/src/samples/java/com/azure/resourcemanager/networkfunction/generated/CollectorPoliciesListSamples.java b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/samples/java/com/azure/resourcemanager/networkfunction/generated/CollectorPoliciesListSamples.java index 25bb0f08bdb2..cc824c70ecf6 100644 --- a/sdk/networkfunction/azure-resourcemanager-networkfunction/src/samples/java/com/azure/resourcemanager/networkfunction/generated/CollectorPoliciesListSamples.java +++ b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/samples/java/com/azure/resourcemanager/networkfunction/generated/CollectorPoliciesListSamples.java @@ -9,7 +9,7 @@ /** Samples for CollectorPolicies List. */ public final class CollectorPoliciesListSamples { /* - * x-ms-original-file: specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/CollectorPoliciesList.json + * x-ms-original-file: specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-08-01/examples/CollectorPoliciesList.json */ /** * Sample code: List of Collection Policies. diff --git a/sdk/networkfunction/azure-resourcemanager-networkfunction/src/samples/java/com/azure/resourcemanager/networkfunction/generated/NetworkFunctionListOperationsSamples.java b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/samples/java/com/azure/resourcemanager/networkfunction/generated/NetworkFunctionListOperationsSamples.java index 5cfba2430de7..39d059b3ca99 100644 --- a/sdk/networkfunction/azure-resourcemanager-networkfunction/src/samples/java/com/azure/resourcemanager/networkfunction/generated/NetworkFunctionListOperationsSamples.java +++ b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/samples/java/com/azure/resourcemanager/networkfunction/generated/NetworkFunctionListOperationsSamples.java @@ -9,7 +9,7 @@ /** Samples for NetworkFunction ListOperations. */ public final class NetworkFunctionListOperationsSamples { /* - * x-ms-original-file: specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-05-01/examples/OperationsList.json + * x-ms-original-file: specification/networkfunction/resource-manager/Microsoft.NetworkFunction/stable/2022-08-01/examples/OperationsList.json */ /** * Sample code: OperationsList.