diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/CHANGELOG.md b/sdk/eventgrid/azure-resourcemanager-eventgrid/CHANGELOG.md index b565bd3ee5b5..ac4b84828586 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/CHANGELOG.md +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/CHANGELOG.md @@ -1,6 +1,8 @@ # Release History -## 1.2.0-beta.4 (Unreleased) +## 1.0.0-beta.1 (2023-04-14) + +- Azure Resource Manager EventGrid client library for Java. This package contains Microsoft Azure SDK for EventGrid Management SDK. Azure EventGrid Management Client. Package tag package-2022-06. 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/eventgrid/azure-resourcemanager-eventgrid/README.md b/sdk/eventgrid/azure-resourcemanager-eventgrid/README.md index 9063c102f831..71c6d4d20e8f 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/README.md +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/README.md @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-eventgrid - 1.2.0-beta.3 + 1.2.0-beta.4 ``` [//]: # ({x-version-update-end}) @@ -41,19 +41,19 @@ Various documentation is available to help you get started Azure Management Libraries require a `TokenCredential` implementation for authentication and an `HttpClient` implementation for HTTP client. -[Azure Identity][azure_identity] package and [Azure Core Netty HTTP][azure_core_http_netty] package provide the default implementation. +[Azure Identity][azure_identity] and [Azure Core Netty HTTP][azure_core_http_netty] packages provide the default implementation. ### Authentication -By default, Azure Active Directory token authentication depends on correct configure of following environment variables. +By default, Azure Active Directory token authentication depends on correct configuration of the following environment variables. - `AZURE_CLIENT_ID` for Azure client ID. - `AZURE_TENANT_ID` for Azure tenant ID. - `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate. -In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`. +In addition, Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable. -With above configuration, `azure` client can be authenticated by following code: +With above configuration, `azure` client can be authenticated using the following code: ```java AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE); @@ -83,13 +83,13 @@ See [API design][design] for general introduction on design and key concepts on ## Contributing -For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md). +For details on contributing to this repository, see the [contributing guide][cg]. -1. Fork it -1. Create your feature branch (`git checkout -b my-new-feature`) -1. Commit your changes (`git commit -am 'Add some feature'`) -1. Push to the branch (`git push origin my-new-feature`) -1. Create new Pull Request +This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit . + +When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repositories using our CLA. + +This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For more information see the [Code of Conduct FAQ][coc_faq] or contact with any additional questions or comments. [survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS @@ -100,3 +100,6 @@ For details on contributing to this repository, see the [contributing guide](htt [azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty [authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/AUTH.md [design]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/DESIGN.md +[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md +[coc]: https://opensource.microsoft.com/codeofconduct/ +[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/SAMPLE.md b/sdk/eventgrid/azure-resourcemanager-eventgrid/SAMPLE.md index 3e39d874a16f..996470cb874c 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/SAMPLE.md +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/SAMPLE.md @@ -229,8 +229,6 @@ public final class ChannelsCreateOrUpdateSamples { ### Channels_Delete ```java -import com.azure.core.util.Context; - /** Samples for Channels Delete. */ public final class ChannelsDeleteSamples { /* @@ -244,7 +242,11 @@ public final class ChannelsDeleteSamples { public static void channelsDelete(com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .channels() - .delete("examplerg", "examplePartnerNamespaceName1", "exampleEventChannelName1", Context.NONE); + .delete( + "examplerg", + "examplePartnerNamespaceName1", + "exampleEventChannelName1", + com.azure.core.util.Context.NONE); } } ``` @@ -252,8 +254,6 @@ public final class ChannelsDeleteSamples { ### Channels_Get ```java -import com.azure.core.util.Context; - /** Samples for Channels Get. */ public final class ChannelsGetSamples { /* @@ -267,7 +267,8 @@ public final class ChannelsGetSamples { public static void channelsGet(com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .channels() - .getWithResponse("examplerg", "examplePartnerNamespaceName1", "exampleChannelName1", Context.NONE); + .getWithResponse( + "examplerg", "examplePartnerNamespaceName1", "exampleChannelName1", com.azure.core.util.Context.NONE); } } ``` @@ -275,8 +276,6 @@ public final class ChannelsGetSamples { ### Channels_GetFullUrl ```java -import com.azure.core.util.Context; - /** Samples for Channels GetFullUrl. */ public final class ChannelsGetFullUrlSamples { /* @@ -288,7 +287,10 @@ public final class ChannelsGetFullUrlSamples { * @param manager Entry point to EventGridManager. */ public static void channelsGetFullUrl(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.channels().getFullUrlWithResponse("examplerg", "examplenamespace", "examplechannel", Context.NONE); + manager + .channels() + .getFullUrlWithResponse( + "examplerg", "examplenamespace", "examplechannel", com.azure.core.util.Context.NONE); } } ``` @@ -296,8 +298,6 @@ public final class ChannelsGetFullUrlSamples { ### Channels_ListByPartnerNamespace ```java -import com.azure.core.util.Context; - /** Samples for Channels ListByPartnerNamespace. */ public final class ChannelsListByPartnerNamespaceSamples { /* @@ -311,7 +311,8 @@ public final class ChannelsListByPartnerNamespaceSamples { public static void channelsListByPartnerNamespace(com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .channels() - .listByPartnerNamespace("examplerg", "examplePartnerNamespaceName1", null, null, Context.NONE); + .listByPartnerNamespace( + "examplerg", "examplePartnerNamespaceName1", null, null, com.azure.core.util.Context.NONE); } } ``` @@ -319,7 +320,6 @@ public final class ChannelsListByPartnerNamespaceSamples { ### Channels_Update ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.models.ChannelUpdateParameters; import java.time.OffsetDateTime; @@ -342,7 +342,7 @@ public final class ChannelsUpdateSamples { "exampleChannelName1", new ChannelUpdateParameters() .withExpirationTimeIfNotActivatedUtc(OffsetDateTime.parse("2022-03-23T23:06:11.785Z")), - Context.NONE); + com.azure.core.util.Context.NONE); } } ``` @@ -350,7 +350,6 @@ public final class ChannelsUpdateSamples { ### DomainEventSubscriptions_CreateOrUpdate ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.fluent.models.EventSubscriptionInner; import com.azure.resourcemanager.eventgrid.models.EventSubscriptionFilter; import com.azure.resourcemanager.eventgrid.models.WebhookEventSubscriptionDestination; @@ -381,7 +380,7 @@ public final class DomainEventSubscriptionsCreateOrUpdateSamples { .withSubjectBeginsWith("ExamplePrefix") .withSubjectEndsWith("ExampleSuffix") .withIsSubjectCaseSensitive(false)), - Context.NONE); + com.azure.core.util.Context.NONE); } } ``` @@ -389,8 +388,6 @@ public final class DomainEventSubscriptionsCreateOrUpdateSamples { ### DomainEventSubscriptions_Delete ```java -import com.azure.core.util.Context; - /** Samples for DomainEventSubscriptions Delete. */ public final class DomainEventSubscriptionsDeleteSamples { /* @@ -402,7 +399,9 @@ public final class DomainEventSubscriptionsDeleteSamples { * @param manager Entry point to EventGridManager. */ public static void domainEventSubscriptionsDelete(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.domainEventSubscriptions().delete("examplerg", "exampleDomain1", "examplesubscription1", Context.NONE); + manager + .domainEventSubscriptions() + .delete("examplerg", "exampleDomain1", "examplesubscription1", com.azure.core.util.Context.NONE); } } ``` @@ -410,8 +409,6 @@ public final class DomainEventSubscriptionsDeleteSamples { ### DomainEventSubscriptions_Get ```java -import com.azure.core.util.Context; - /** Samples for DomainEventSubscriptions Get. */ public final class DomainEventSubscriptionsGetSamples { /* @@ -425,7 +422,7 @@ public final class DomainEventSubscriptionsGetSamples { public static void domainEventSubscriptionsGet(com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .domainEventSubscriptions() - .getWithResponse("examplerg", "exampleDomain1", "examplesubscription1", Context.NONE); + .getWithResponse("examplerg", "exampleDomain1", "examplesubscription1", com.azure.core.util.Context.NONE); } } ``` @@ -433,8 +430,6 @@ public final class DomainEventSubscriptionsGetSamples { ### DomainEventSubscriptions_GetDeliveryAttributes ```java -import com.azure.core.util.Context; - /** Samples for DomainEventSubscriptions GetDeliveryAttributes. */ public final class DomainEventSubscriptionsGetDeliveryAttributesSamples { /* @@ -449,7 +444,8 @@ public final class DomainEventSubscriptionsGetDeliveryAttributesSamples { com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .domainEventSubscriptions() - .getDeliveryAttributesWithResponse("examplerg", "exampleDomain1", "examplesubscription1", Context.NONE); + .getDeliveryAttributesWithResponse( + "examplerg", "exampleDomain1", "examplesubscription1", com.azure.core.util.Context.NONE); } } ``` @@ -457,8 +453,6 @@ public final class DomainEventSubscriptionsGetDeliveryAttributesSamples { ### DomainEventSubscriptions_GetFullUrl ```java -import com.azure.core.util.Context; - /** Samples for DomainEventSubscriptions GetFullUrl. */ public final class DomainEventSubscriptionsGetFullUrlSamples { /* @@ -473,7 +467,8 @@ public final class DomainEventSubscriptionsGetFullUrlSamples { com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .domainEventSubscriptions() - .getFullUrlWithResponse("examplerg", "exampleDomain1", "examplesubscription1", Context.NONE); + .getFullUrlWithResponse( + "examplerg", "exampleDomain1", "examplesubscription1", com.azure.core.util.Context.NONE); } } ``` @@ -481,8 +476,6 @@ public final class DomainEventSubscriptionsGetFullUrlSamples { ### DomainEventSubscriptions_List ```java -import com.azure.core.util.Context; - /** Samples for DomainEventSubscriptions List. */ public final class DomainEventSubscriptionsListSamples { /* @@ -494,7 +487,9 @@ public final class DomainEventSubscriptionsListSamples { * @param manager Entry point to EventGridManager. */ public static void domainEventSubscriptionsList(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.domainEventSubscriptions().list("examplerg", "exampleDomain1", null, null, Context.NONE); + manager + .domainEventSubscriptions() + .list("examplerg", "exampleDomain1", null, null, com.azure.core.util.Context.NONE); } } ``` @@ -502,7 +497,6 @@ public final class DomainEventSubscriptionsListSamples { ### DomainEventSubscriptions_Update ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.models.EventSubscriptionFilter; import com.azure.resourcemanager.eventgrid.models.EventSubscriptionUpdateParameters; import com.azure.resourcemanager.eventgrid.models.WebhookEventSubscriptionDestination; @@ -534,7 +528,7 @@ public final class DomainEventSubscriptionsUpdateSamples { .withSubjectEndsWith("newSuffix") .withIsSubjectCaseSensitive(true)) .withLabels(Arrays.asList("label1", "label2")), - Context.NONE); + com.azure.core.util.Context.NONE); } } ``` @@ -542,7 +536,6 @@ public final class DomainEventSubscriptionsUpdateSamples { ### DomainTopicEventSubscriptions_CreateOrUpdate ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.fluent.models.EventSubscriptionInner; import com.azure.resourcemanager.eventgrid.models.EventSubscriptionFilter; import com.azure.resourcemanager.eventgrid.models.WebhookEventSubscriptionDestination; @@ -574,7 +567,7 @@ public final class DomainTopicEventSubscriptionsCreateOrUpdateSamples { .withSubjectBeginsWith("ExamplePrefix") .withSubjectEndsWith("ExampleSuffix") .withIsSubjectCaseSensitive(false)), - Context.NONE); + com.azure.core.util.Context.NONE); } } ``` @@ -582,8 +575,6 @@ public final class DomainTopicEventSubscriptionsCreateOrUpdateSamples { ### DomainTopicEventSubscriptions_Delete ```java -import com.azure.core.util.Context; - /** Samples for DomainTopicEventSubscriptions Delete. */ public final class DomainTopicEventSubscriptionsDeleteSamples { /* @@ -598,7 +589,12 @@ public final class DomainTopicEventSubscriptionsDeleteSamples { com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .domainTopicEventSubscriptions() - .delete("examplerg", "exampleDomain1", "exampleDomainTopic1", "examplesubscription1", Context.NONE); + .delete( + "examplerg", + "exampleDomain1", + "exampleDomainTopic1", + "examplesubscription1", + com.azure.core.util.Context.NONE); } } ``` @@ -606,8 +602,6 @@ public final class DomainTopicEventSubscriptionsDeleteSamples { ### DomainTopicEventSubscriptions_Get ```java -import com.azure.core.util.Context; - /** Samples for DomainTopicEventSubscriptions Get. */ public final class DomainTopicEventSubscriptionsGetSamples { /* @@ -622,7 +616,11 @@ public final class DomainTopicEventSubscriptionsGetSamples { manager .domainTopicEventSubscriptions() .getWithResponse( - "examplerg", "exampleDomain1", "exampleDomainTopic1", "examplesubscription1", Context.NONE); + "examplerg", + "exampleDomain1", + "exampleDomainTopic1", + "examplesubscription1", + com.azure.core.util.Context.NONE); } } ``` @@ -630,8 +628,6 @@ public final class DomainTopicEventSubscriptionsGetSamples { ### DomainTopicEventSubscriptions_GetDeliveryAttributes ```java -import com.azure.core.util.Context; - /** Samples for DomainTopicEventSubscriptions GetDeliveryAttributes. */ public final class DomainTopicEventSubscriptionsGetDeliveryAttributesSamples { /* @@ -647,7 +643,11 @@ public final class DomainTopicEventSubscriptionsGetDeliveryAttributesSamples { manager .domainTopicEventSubscriptions() .getDeliveryAttributesWithResponse( - "examplerg", "exampleDomain1", "exampleDomainTopic1", "examplesubscription1", Context.NONE); + "examplerg", + "exampleDomain1", + "exampleDomainTopic1", + "examplesubscription1", + com.azure.core.util.Context.NONE); } } ``` @@ -655,8 +655,6 @@ public final class DomainTopicEventSubscriptionsGetDeliveryAttributesSamples { ### DomainTopicEventSubscriptions_GetFullUrl ```java -import com.azure.core.util.Context; - /** Samples for DomainTopicEventSubscriptions GetFullUrl. */ public final class DomainTopicEventSubscriptionsGetFullUrlSamples { /* @@ -672,7 +670,11 @@ public final class DomainTopicEventSubscriptionsGetFullUrlSamples { manager .domainTopicEventSubscriptions() .getFullUrlWithResponse( - "examplerg", "exampleDomain1", "exampleDomainTopic1", "examplesubscription1", Context.NONE); + "examplerg", + "exampleDomain1", + "exampleDomainTopic1", + "examplesubscription1", + com.azure.core.util.Context.NONE); } } ``` @@ -680,8 +682,6 @@ public final class DomainTopicEventSubscriptionsGetFullUrlSamples { ### DomainTopicEventSubscriptions_List ```java -import com.azure.core.util.Context; - /** Samples for DomainTopicEventSubscriptions List. */ public final class DomainTopicEventSubscriptionsListSamples { /* @@ -695,7 +695,7 @@ public final class DomainTopicEventSubscriptionsListSamples { public static void domainTopicEventSubscriptionsList(com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .domainTopicEventSubscriptions() - .list("examplerg", "exampleDomain1", "exampleDomainTopic1", null, null, Context.NONE); + .list("examplerg", "exampleDomain1", "exampleDomainTopic1", null, null, com.azure.core.util.Context.NONE); } } ``` @@ -703,7 +703,6 @@ public final class DomainTopicEventSubscriptionsListSamples { ### DomainTopicEventSubscriptions_Update ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.models.EventSubscriptionFilter; import com.azure.resourcemanager.eventgrid.models.EventSubscriptionUpdateParameters; import com.azure.resourcemanager.eventgrid.models.WebhookEventSubscriptionDestination; @@ -737,7 +736,7 @@ public final class DomainTopicEventSubscriptionsUpdateSamples { .withSubjectEndsWith("newSuffix") .withIsSubjectCaseSensitive(true)) .withLabels(Arrays.asList("label1", "label2")), - Context.NONE); + com.azure.core.util.Context.NONE); } } ``` @@ -745,8 +744,6 @@ public final class DomainTopicEventSubscriptionsUpdateSamples { ### DomainTopics_CreateOrUpdate ```java -import com.azure.core.util.Context; - /** Samples for DomainTopics CreateOrUpdate. */ public final class DomainTopicsCreateOrUpdateSamples { /* @@ -758,7 +755,9 @@ public final class DomainTopicsCreateOrUpdateSamples { * @param manager Entry point to EventGridManager. */ public static void domainTopicsCreateOrUpdate(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.domainTopics().createOrUpdate("examplerg", "exampledomain1", "exampledomaintopic1", Context.NONE); + manager + .domainTopics() + .createOrUpdate("examplerg", "exampledomain1", "exampledomaintopic1", com.azure.core.util.Context.NONE); } } ``` @@ -766,8 +765,6 @@ public final class DomainTopicsCreateOrUpdateSamples { ### DomainTopics_Delete ```java -import com.azure.core.util.Context; - /** Samples for DomainTopics Delete. */ public final class DomainTopicsDeleteSamples { /* @@ -779,7 +776,9 @@ public final class DomainTopicsDeleteSamples { * @param manager Entry point to EventGridManager. */ public static void domainTopicsDelete(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.domainTopics().delete("examplerg", "exampledomain1", "exampledomaintopic1", Context.NONE); + manager + .domainTopics() + .delete("examplerg", "exampledomain1", "exampledomaintopic1", com.azure.core.util.Context.NONE); } } ``` @@ -787,8 +786,6 @@ public final class DomainTopicsDeleteSamples { ### DomainTopics_Get ```java -import com.azure.core.util.Context; - /** Samples for DomainTopics Get. */ public final class DomainTopicsGetSamples { /* @@ -800,7 +797,9 @@ public final class DomainTopicsGetSamples { * @param manager Entry point to EventGridManager. */ public static void domainTopicsGet(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.domainTopics().getWithResponse("examplerg", "exampledomain2", "topic1", Context.NONE); + manager + .domainTopics() + .getWithResponse("examplerg", "exampledomain2", "topic1", com.azure.core.util.Context.NONE); } } ``` @@ -808,8 +807,6 @@ public final class DomainTopicsGetSamples { ### DomainTopics_ListByDomain ```java -import com.azure.core.util.Context; - /** Samples for DomainTopics ListByDomain. */ public final class DomainTopicsListByDomainSamples { /* @@ -821,7 +818,9 @@ public final class DomainTopicsListByDomainSamples { * @param manager Entry point to EventGridManager. */ public static void domainTopicsListByDomain(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.domainTopics().listByDomain("examplerg", "exampledomain2", null, null, Context.NONE); + manager + .domainTopics() + .listByDomain("examplerg", "exampledomain2", null, null, com.azure.core.util.Context.NONE); } } ``` @@ -878,8 +877,6 @@ public final class DomainsCreateOrUpdateSamples { ### Domains_Delete ```java -import com.azure.core.util.Context; - /** Samples for Domains Delete. */ public final class DomainsDeleteSamples { /* @@ -891,7 +888,7 @@ public final class DomainsDeleteSamples { * @param manager Entry point to EventGridManager. */ public static void domainsDelete(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.domains().delete("examplerg", "exampledomain1", Context.NONE); + manager.domains().delete("examplerg", "exampledomain1", com.azure.core.util.Context.NONE); } } ``` @@ -899,8 +896,6 @@ public final class DomainsDeleteSamples { ### Domains_GetByResourceGroup ```java -import com.azure.core.util.Context; - /** Samples for Domains GetByResourceGroup. */ public final class DomainsGetByResourceGroupSamples { /* @@ -912,7 +907,9 @@ public final class DomainsGetByResourceGroupSamples { * @param manager Entry point to EventGridManager. */ public static void domainsGet(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.domains().getByResourceGroupWithResponse("examplerg", "exampledomain2", Context.NONE); + manager + .domains() + .getByResourceGroupWithResponse("examplerg", "exampledomain2", com.azure.core.util.Context.NONE); } } ``` @@ -920,8 +917,6 @@ public final class DomainsGetByResourceGroupSamples { ### Domains_List ```java -import com.azure.core.util.Context; - /** Samples for Domains List. */ public final class DomainsListSamples { /* @@ -933,7 +928,7 @@ public final class DomainsListSamples { * @param manager Entry point to EventGridManager. */ public static void domainsListBySubscription(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.domains().list(null, null, Context.NONE); + manager.domains().list(null, null, com.azure.core.util.Context.NONE); } } ``` @@ -941,8 +936,6 @@ public final class DomainsListSamples { ### Domains_ListByResourceGroup ```java -import com.azure.core.util.Context; - /** Samples for Domains ListByResourceGroup. */ public final class DomainsListByResourceGroupSamples { /* @@ -954,7 +947,7 @@ public final class DomainsListByResourceGroupSamples { * @param manager Entry point to EventGridManager. */ public static void domainsListByResourceGroup(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.domains().listByResourceGroup("examplerg", null, null, Context.NONE); + manager.domains().listByResourceGroup("examplerg", null, null, com.azure.core.util.Context.NONE); } } ``` @@ -962,8 +955,6 @@ public final class DomainsListByResourceGroupSamples { ### Domains_ListSharedAccessKeys ```java -import com.azure.core.util.Context; - /** Samples for Domains ListSharedAccessKeys. */ public final class DomainsListSharedAccessKeysSamples { /* @@ -975,7 +966,9 @@ public final class DomainsListSharedAccessKeysSamples { * @param manager Entry point to EventGridManager. */ public static void domainsListSharedAccessKeys(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.domains().listSharedAccessKeysWithResponse("examplerg", "exampledomain2", Context.NONE); + manager + .domains() + .listSharedAccessKeysWithResponse("examplerg", "exampledomain2", com.azure.core.util.Context.NONE); } } ``` @@ -983,7 +976,6 @@ public final class DomainsListSharedAccessKeysSamples { ### Domains_RegenerateKey ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.models.DomainRegenerateKeyRequest; /** Samples for Domains RegenerateKey. */ @@ -1000,7 +992,10 @@ public final class DomainsRegenerateKeySamples { manager .domains() .regenerateKeyWithResponse( - "examplerg", "exampledomain2", new DomainRegenerateKeyRequest().withKeyName("key1"), Context.NONE); + "examplerg", + "exampledomain2", + new DomainRegenerateKeyRequest().withKeyName("fakeTokenPlaceholder"), + com.azure.core.util.Context.NONE); } } ``` @@ -1008,7 +1003,6 @@ public final class DomainsRegenerateKeySamples { ### Domains_Update ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.models.Domain; import com.azure.resourcemanager.eventgrid.models.InboundIpRule; import com.azure.resourcemanager.eventgrid.models.IpActionType; @@ -1029,7 +1023,10 @@ public final class DomainsUpdateSamples { */ public static void domainsUpdate(com.azure.resourcemanager.eventgrid.EventGridManager manager) { Domain resource = - manager.domains().getByResourceGroupWithResponse("examplerg", "exampledomain1", Context.NONE).getValue(); + manager + .domains() + .getByResourceGroupWithResponse("examplerg", "exampledomain1", com.azure.core.util.Context.NONE) + .getValue(); resource .update() .withTags(mapOf("tag1", "value1", "tag2", "value2")) @@ -1058,7 +1055,6 @@ public final class DomainsUpdateSamples { ### EventSubscriptions_CreateOrUpdate ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.fluent.models.EventSubscriptionInner; import com.azure.resourcemanager.eventgrid.models.AzureFunctionEventSubscriptionDestination; import com.azure.resourcemanager.eventgrid.models.EventHubEventSubscriptionDestination; @@ -1097,7 +1093,7 @@ public final class EventSubscriptionsCreateOrUpdateSamples { .withSubjectBeginsWith("ExamplePrefix") .withSubjectEndsWith("ExampleSuffix") .withIsSubjectCaseSensitive(false)), - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -1119,7 +1115,7 @@ public final class EventSubscriptionsCreateOrUpdateSamples { .withDestination( new WebhookEventSubscriptionDestination().withEndpointUrl("https://requestb.in/15ksip71")) .withFilter(new EventSubscriptionFilter().withIsSubjectCaseSensitive(false)), - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -1152,7 +1148,7 @@ public final class EventSubscriptionsCreateOrUpdateSamples { .withResourceId( "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg") .withBlobContainerName("contosocontainer")), - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -1178,7 +1174,7 @@ public final class EventSubscriptionsCreateOrUpdateSamples { .withSubjectBeginsWith("ExamplePrefix") .withSubjectEndsWith("ExampleSuffix") .withIsSubjectCaseSensitive(false)), - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -1206,7 +1202,7 @@ public final class EventSubscriptionsCreateOrUpdateSamples { .withSubjectBeginsWith("ExamplePrefix") .withSubjectEndsWith("ExampleSuffix") .withIsSubjectCaseSensitive(false)), - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -1232,7 +1228,7 @@ public final class EventSubscriptionsCreateOrUpdateSamples { .withSubjectBeginsWith("ExamplePrefix") .withSubjectEndsWith("ExampleSuffix") .withIsSubjectCaseSensitive(false)), - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -1265,7 +1261,7 @@ public final class EventSubscriptionsCreateOrUpdateSamples { .withResourceId( "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg") .withBlobContainerName("contosocontainer")), - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -1299,7 +1295,7 @@ public final class EventSubscriptionsCreateOrUpdateSamples { .withResourceId( "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg") .withBlobContainerName("contosocontainer")), - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -1332,7 +1328,7 @@ public final class EventSubscriptionsCreateOrUpdateSamples { .withResourceId( "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg") .withBlobContainerName("contosocontainer")), - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -1365,7 +1361,7 @@ public final class EventSubscriptionsCreateOrUpdateSamples { .withResourceId( "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg") .withBlobContainerName("contosocontainer")), - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -1398,7 +1394,7 @@ public final class EventSubscriptionsCreateOrUpdateSamples { .withResourceId( "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg") .withBlobContainerName("contosocontainer")), - Context.NONE); + com.azure.core.util.Context.NONE); } } ``` @@ -1406,8 +1402,6 @@ public final class EventSubscriptionsCreateOrUpdateSamples { ### EventSubscriptions_Delete ```java -import com.azure.core.util.Context; - /** Samples for EventSubscriptions Delete. */ public final class EventSubscriptionsDeleteSamples { /* @@ -1425,7 +1419,7 @@ public final class EventSubscriptionsDeleteSamples { .delete( "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", "examplesubscription1", - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -1443,7 +1437,7 @@ public final class EventSubscriptionsDeleteSamples { .delete( "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg", "examplesubscription2", - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -1458,7 +1452,10 @@ public final class EventSubscriptionsDeleteSamples { com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .eventSubscriptions() - .delete("subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4", "examplesubscription3", Context.NONE); + .delete( + "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "examplesubscription3", + com.azure.core.util.Context.NONE); } /* @@ -1476,7 +1473,7 @@ public final class EventSubscriptionsDeleteSamples { .delete( "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1", "examplesubscription10", - Context.NONE); + com.azure.core.util.Context.NONE); } } ``` @@ -1484,8 +1481,6 @@ public final class EventSubscriptionsDeleteSamples { ### EventSubscriptions_Get ```java -import com.azure.core.util.Context; - /** Samples for EventSubscriptions Get. */ public final class EventSubscriptionsGetSamples { /* @@ -1503,7 +1498,7 @@ public final class EventSubscriptionsGetSamples { .getWithResponse( "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", "examplesubscription1", - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -1521,7 +1516,7 @@ public final class EventSubscriptionsGetSamples { .getWithResponse( "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", "examplesubscription1", - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -1539,7 +1534,7 @@ public final class EventSubscriptionsGetSamples { .getWithResponse( "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg", "examplesubscription2", - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -1557,7 +1552,7 @@ public final class EventSubscriptionsGetSamples { .getWithResponse( "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", "examplesubscription1", - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -1573,7 +1568,9 @@ public final class EventSubscriptionsGetSamples { manager .eventSubscriptions() .getWithResponse( - "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4", "examplesubscription3", Context.NONE); + "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "examplesubscription3", + com.azure.core.util.Context.NONE); } /* @@ -1591,7 +1588,7 @@ public final class EventSubscriptionsGetSamples { .getWithResponse( "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", "examplesubscription1", - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -1609,7 +1606,7 @@ public final class EventSubscriptionsGetSamples { .getWithResponse( "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", "examplesubscription1", - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -1627,7 +1624,7 @@ public final class EventSubscriptionsGetSamples { .getWithResponse( "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", "examplesubscription1", - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -1645,7 +1642,7 @@ public final class EventSubscriptionsGetSamples { .getWithResponse( "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", "examplesubscription1", - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -1662,7 +1659,7 @@ public final class EventSubscriptionsGetSamples { .getWithResponse( "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1", "examplesubscription1", - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -1680,7 +1677,7 @@ public final class EventSubscriptionsGetSamples { .getWithResponse( "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", "examplesubscription1", - Context.NONE); + com.azure.core.util.Context.NONE); } } ``` @@ -1688,8 +1685,6 @@ public final class EventSubscriptionsGetSamples { ### EventSubscriptions_GetDeliveryAttributes ```java -import com.azure.core.util.Context; - /** Samples for EventSubscriptions GetDeliveryAttributes. */ public final class EventSubscriptionsGetDeliveryAttributesSamples { /* @@ -1704,7 +1699,8 @@ public final class EventSubscriptionsGetDeliveryAttributesSamples { com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .eventSubscriptions() - .getDeliveryAttributesWithResponse("aaaaaaaaaaaaaaaaaaaaaaaaa", "aaaaaaaaaaaaaaaaaa", Context.NONE); + .getDeliveryAttributesWithResponse( + "aaaaaaaaaaaaaaaaaaaaaaaaa", "aaaaaaaaaaaaaaaaaa", com.azure.core.util.Context.NONE); } } ``` @@ -1712,8 +1708,6 @@ public final class EventSubscriptionsGetDeliveryAttributesSamples { ### EventSubscriptions_GetFullUrl ```java -import com.azure.core.util.Context; - /** Samples for EventSubscriptions GetFullUrl. */ public final class EventSubscriptionsGetFullUrlSamples { /* @@ -1731,7 +1725,7 @@ public final class EventSubscriptionsGetFullUrlSamples { .getFullUrlWithResponse( "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1", "examplesubscription1", - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -1749,7 +1743,7 @@ public final class EventSubscriptionsGetFullUrlSamples { .getFullUrlWithResponse( "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg", "examplesubscription2", - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -1765,7 +1759,9 @@ public final class EventSubscriptionsGetFullUrlSamples { manager .eventSubscriptions() .getFullUrlWithResponse( - "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4", "examplesubscription3", Context.NONE); + "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "examplesubscription3", + com.azure.core.util.Context.NONE); } /* @@ -1783,7 +1779,7 @@ public final class EventSubscriptionsGetFullUrlSamples { .getFullUrlWithResponse( "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", "examplesubscription1", - Context.NONE); + com.azure.core.util.Context.NONE); } } ``` @@ -1791,8 +1787,6 @@ public final class EventSubscriptionsGetFullUrlSamples { ### EventSubscriptions_List ```java -import com.azure.core.util.Context; - /** Samples for EventSubscriptions List. */ public final class EventSubscriptionsListSamples { /* @@ -1805,7 +1799,7 @@ public final class EventSubscriptionsListSamples { */ public static void eventSubscriptionsListGlobalBySubscription( com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.eventSubscriptions().list(null, null, Context.NONE); + manager.eventSubscriptions().list(null, null, com.azure.core.util.Context.NONE); } } ``` @@ -1813,8 +1807,6 @@ public final class EventSubscriptionsListSamples { ### EventSubscriptions_ListByDomainTopic ```java -import com.azure.core.util.Context; - /** Samples for EventSubscriptions ListByDomainTopic. */ public final class EventSubscriptionsListByDomainTopicSamples { /* @@ -1827,7 +1819,9 @@ public final class EventSubscriptionsListByDomainTopicSamples { */ public static void eventSubscriptionsListByDomainTopic( com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.eventSubscriptions().listByDomainTopic("examplerg", "domain1", "topic1", null, null, Context.NONE); + manager + .eventSubscriptions() + .listByDomainTopic("examplerg", "domain1", "topic1", null, null, com.azure.core.util.Context.NONE); } } ``` @@ -1835,8 +1829,6 @@ public final class EventSubscriptionsListByDomainTopicSamples { ### EventSubscriptions_ListByResource ```java -import com.azure.core.util.Context; - /** Samples for EventSubscriptions ListByResource. */ public final class EventSubscriptionsListByResourceSamples { /* @@ -1850,7 +1842,14 @@ public final class EventSubscriptionsListByResourceSamples { public static void eventSubscriptionsListByResource(com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .eventSubscriptions() - .listByResource("examplerg", "Microsoft.EventGrid", "topics", "exampletopic2", null, null, Context.NONE); + .listByResource( + "examplerg", + "Microsoft.EventGrid", + "topics", + "exampletopic2", + null, + null, + com.azure.core.util.Context.NONE); } } ``` @@ -1858,8 +1857,6 @@ public final class EventSubscriptionsListByResourceSamples { ### EventSubscriptions_ListByResourceGroup ```java -import com.azure.core.util.Context; - /** Samples for EventSubscriptions ListByResourceGroup. */ public final class EventSubscriptionsListByResourceGroupSamples { /* @@ -1872,7 +1869,7 @@ public final class EventSubscriptionsListByResourceGroupSamples { */ public static void eventSubscriptionsListGlobalByResourceGroup( com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.eventSubscriptions().listByResourceGroup("examplerg", null, null, Context.NONE); + manager.eventSubscriptions().listByResourceGroup("examplerg", null, null, com.azure.core.util.Context.NONE); } } ``` @@ -1880,8 +1877,6 @@ public final class EventSubscriptionsListByResourceGroupSamples { ### EventSubscriptions_ListGlobalByResourceGroupForTopicType ```java -import com.azure.core.util.Context; - /** Samples for EventSubscriptions ListGlobalByResourceGroupForTopicType. */ public final class EventSubscriptionsListGlobalByResourceGroupForTopicTypeSamples { /* @@ -1897,7 +1892,7 @@ public final class EventSubscriptionsListGlobalByResourceGroupForTopicTypeSample manager .eventSubscriptions() .listGlobalByResourceGroupForTopicType( - "examplerg", "Microsoft.Resources.ResourceGroups", null, null, Context.NONE); + "examplerg", "Microsoft.Resources.ResourceGroups", null, null, com.azure.core.util.Context.NONE); } } ``` @@ -1905,8 +1900,6 @@ public final class EventSubscriptionsListGlobalByResourceGroupForTopicTypeSample ### EventSubscriptions_ListGlobalBySubscriptionForTopicType ```java -import com.azure.core.util.Context; - /** Samples for EventSubscriptions ListGlobalBySubscriptionForTopicType. */ public final class EventSubscriptionsListGlobalBySubscriptionForTopicTypeSamples { /* @@ -1921,7 +1914,8 @@ public final class EventSubscriptionsListGlobalBySubscriptionForTopicTypeSamples com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .eventSubscriptions() - .listGlobalBySubscriptionForTopicType("Microsoft.Resources.Subscriptions", null, null, Context.NONE); + .listGlobalBySubscriptionForTopicType( + "Microsoft.Resources.Subscriptions", null, null, com.azure.core.util.Context.NONE); } } ``` @@ -1929,8 +1923,6 @@ public final class EventSubscriptionsListGlobalBySubscriptionForTopicTypeSamples ### EventSubscriptions_ListRegionalByResourceGroup ```java -import com.azure.core.util.Context; - /** Samples for EventSubscriptions ListRegionalByResourceGroup. */ public final class EventSubscriptionsListRegionalByResourceGroupSamples { /* @@ -1943,7 +1935,9 @@ public final class EventSubscriptionsListRegionalByResourceGroupSamples { */ public static void eventSubscriptionsListRegionalByResourceGroup( com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.eventSubscriptions().listRegionalByResourceGroup("examplerg", "westus2", null, null, Context.NONE); + manager + .eventSubscriptions() + .listRegionalByResourceGroup("examplerg", "westus2", null, null, com.azure.core.util.Context.NONE); } } ``` @@ -1951,8 +1945,6 @@ public final class EventSubscriptionsListRegionalByResourceGroupSamples { ### EventSubscriptions_ListRegionalByResourceGroupForTopicType ```java -import com.azure.core.util.Context; - /** Samples for EventSubscriptions ListRegionalByResourceGroupForTopicType. */ public final class EventSubscriptionsListRegionalByResourceGroupForTopicTypeSamples { /* @@ -1968,7 +1960,7 @@ public final class EventSubscriptionsListRegionalByResourceGroupForTopicTypeSamp manager .eventSubscriptions() .listRegionalByResourceGroupForTopicType( - "examplerg", "westus2", "Microsoft.EventHub.namespaces", null, null, Context.NONE); + "examplerg", "westus2", "Microsoft.EventHub.namespaces", null, null, com.azure.core.util.Context.NONE); } } ``` @@ -1976,8 +1968,6 @@ public final class EventSubscriptionsListRegionalByResourceGroupForTopicTypeSamp ### EventSubscriptions_ListRegionalBySubscription ```java -import com.azure.core.util.Context; - /** Samples for EventSubscriptions ListRegionalBySubscription. */ public final class EventSubscriptionsListRegionalBySubscriptionSamples { /* @@ -1990,7 +1980,9 @@ public final class EventSubscriptionsListRegionalBySubscriptionSamples { */ public static void eventSubscriptionsListRegionalBySubscription( com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.eventSubscriptions().listRegionalBySubscription("westus2", null, null, Context.NONE); + manager + .eventSubscriptions() + .listRegionalBySubscription("westus2", null, null, com.azure.core.util.Context.NONE); } } ``` @@ -1998,8 +1990,6 @@ public final class EventSubscriptionsListRegionalBySubscriptionSamples { ### EventSubscriptions_ListRegionalBySubscriptionForTopicType ```java -import com.azure.core.util.Context; - /** Samples for EventSubscriptions ListRegionalBySubscriptionForTopicType. */ public final class EventSubscriptionsListRegionalBySubscriptionForTopicTypeSamples { /* @@ -2015,7 +2005,7 @@ public final class EventSubscriptionsListRegionalBySubscriptionForTopicTypeSampl manager .eventSubscriptions() .listRegionalBySubscriptionForTopicType( - "westus2", "Microsoft.EventHub.namespaces", null, null, Context.NONE); + "westus2", "Microsoft.EventHub.namespaces", null, null, com.azure.core.util.Context.NONE); } } ``` @@ -2023,7 +2013,6 @@ public final class EventSubscriptionsListRegionalBySubscriptionForTopicTypeSampl ### EventSubscriptions_Update ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.models.AzureFunctionEventSubscriptionDestination; import com.azure.resourcemanager.eventgrid.models.EventHubEventSubscriptionDestination; import com.azure.resourcemanager.eventgrid.models.EventSubscriptionFilter; @@ -2064,7 +2053,7 @@ public final class EventSubscriptionsUpdateSamples { .withSubjectEndsWith("newSuffix") .withIsSubjectCaseSensitive(true)) .withLabels(Arrays.asList("label1", "label2")), - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -2097,7 +2086,7 @@ public final class EventSubscriptionsUpdateSamples { .withResourceId( "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg") .withBlobContainerName("contosocontainer")), - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -2124,7 +2113,7 @@ public final class EventSubscriptionsUpdateSamples { .withSubjectEndsWith("newSuffix") .withIsSubjectCaseSensitive(true)) .withLabels(Arrays.asList("label1", "label2")), - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -2159,7 +2148,7 @@ public final class EventSubscriptionsUpdateSamples { .withResourceId( "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg") .withBlobContainerName("contosocontainer")), - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -2188,7 +2177,7 @@ public final class EventSubscriptionsUpdateSamples { .withSubjectEndsWith("newSuffix") .withIsSubjectCaseSensitive(true)) .withLabels(Arrays.asList("label1", "label2")), - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -2217,7 +2206,7 @@ public final class EventSubscriptionsUpdateSamples { .withSubjectEndsWith("newSuffix") .withIsSubjectCaseSensitive(true)) .withLabels(Arrays.asList("label1", "label2")), - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -2250,7 +2239,7 @@ public final class EventSubscriptionsUpdateSamples { .withResourceId( "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg") .withBlobContainerName("contosocontainer")), - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -2277,7 +2266,7 @@ public final class EventSubscriptionsUpdateSamples { .withSubjectEndsWith("newSuffix") .withIsSubjectCaseSensitive(true)) .withLabels(Arrays.asList("label1", "label2")), - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -2304,7 +2293,7 @@ public final class EventSubscriptionsUpdateSamples { .withSubjectEndsWith("newSuffix") .withIsSubjectCaseSensitive(true)) .withLabels(Arrays.asList("label1", "label2")), - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -2333,7 +2322,7 @@ public final class EventSubscriptionsUpdateSamples { .withSubjectEndsWith("newSuffix") .withIsSubjectCaseSensitive(true)) .withLabels(Arrays.asList("label1", "label2")), - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -2360,7 +2349,7 @@ public final class EventSubscriptionsUpdateSamples { .withSubjectEndsWith("newSuffix") .withIsSubjectCaseSensitive(true)) .withLabels(Arrays.asList("label1", "label2")), - Context.NONE); + com.azure.core.util.Context.NONE); } } ``` @@ -2368,8 +2357,6 @@ public final class EventSubscriptionsUpdateSamples { ### ExtensionTopics_Get ```java -import com.azure.core.util.Context; - /** Samples for ExtensionTopics Get. */ public final class ExtensionTopicsGetSamples { /* @@ -2385,7 +2372,7 @@ public final class ExtensionTopicsGetSamples { .extensionTopics() .getWithResponse( "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.storage/storageaccounts/exampleResourceName/providers/Microsoft.eventgrid/extensionTopics/default", - Context.NONE); + com.azure.core.util.Context.NONE); } } ``` @@ -2393,8 +2380,6 @@ public final class ExtensionTopicsGetSamples { ### Operations_List ```java -import com.azure.core.util.Context; - /** Samples for Operations List. */ public final class OperationsListSamples { /* @@ -2406,7 +2391,7 @@ public final class OperationsListSamples { * @param manager Entry point to EventGridManager. */ public static void operationsList(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.operations().list(Context.NONE); + manager.operations().list(com.azure.core.util.Context.NONE); } } ``` @@ -2414,7 +2399,6 @@ public final class OperationsListSamples { ### PartnerConfigurations_AuthorizePartner ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.models.Partner; import java.time.OffsetDateTime; import java.util.UUID; @@ -2439,7 +2423,7 @@ public final class PartnerConfigurationsAuthorizePartnerSamples { .withPartnerRegistrationImmutableId(UUID.fromString("941892bc-f5d0-4d1c-8fb5-477570fc2b71")) .withPartnerName("Contoso.Finance") .withAuthorizationExpirationTimeInUtc(OffsetDateTime.parse("2022-01-28T01:20:55.142Z")), - Context.NONE); + com.azure.core.util.Context.NONE); } } ``` @@ -2447,7 +2431,6 @@ public final class PartnerConfigurationsAuthorizePartnerSamples { ### PartnerConfigurations_CreateOrUpdate ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.fluent.models.PartnerConfigurationInner; import com.azure.resourcemanager.eventgrid.models.Partner; import com.azure.resourcemanager.eventgrid.models.PartnerAuthorization; @@ -2490,7 +2473,7 @@ public final class PartnerConfigurationsCreateOrUpdateSamples { .withPartnerName("fabrikam.HR") .withAuthorizationExpirationTimeInUtc( OffsetDateTime.parse("2022-02-20T01:00:00.142Z"))))), - Context.NONE); + com.azure.core.util.Context.NONE); } } ``` @@ -2498,8 +2481,6 @@ public final class PartnerConfigurationsCreateOrUpdateSamples { ### PartnerConfigurations_Delete ```java -import com.azure.core.util.Context; - /** Samples for PartnerConfigurations Delete. */ public final class PartnerConfigurationsDeleteSamples { /* @@ -2511,7 +2492,7 @@ public final class PartnerConfigurationsDeleteSamples { * @param manager Entry point to EventGridManager. */ public static void partnerConfigurationsDelete(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.partnerConfigurations().delete("examplerg", Context.NONE); + manager.partnerConfigurations().delete("examplerg", com.azure.core.util.Context.NONE); } } ``` @@ -2519,8 +2500,6 @@ public final class PartnerConfigurationsDeleteSamples { ### PartnerConfigurations_GetByResourceGroup ```java -import com.azure.core.util.Context; - /** Samples for PartnerConfigurations GetByResourceGroup. */ public final class PartnerConfigurationsGetByResourceGroupSamples { /* @@ -2532,7 +2511,7 @@ public final class PartnerConfigurationsGetByResourceGroupSamples { * @param manager Entry point to EventGridManager. */ public static void partnerConfigurationsGet(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.partnerConfigurations().getByResourceGroupWithResponse("examplerg", Context.NONE); + manager.partnerConfigurations().getByResourceGroupWithResponse("examplerg", com.azure.core.util.Context.NONE); } } ``` @@ -2540,8 +2519,6 @@ public final class PartnerConfigurationsGetByResourceGroupSamples { ### PartnerConfigurations_List ```java -import com.azure.core.util.Context; - /** Samples for PartnerConfigurations List. */ public final class PartnerConfigurationsListSamples { /* @@ -2554,7 +2531,7 @@ public final class PartnerConfigurationsListSamples { */ public static void partnerConfigurationsListBySubscription( com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.partnerConfigurations().list(null, null, Context.NONE); + manager.partnerConfigurations().list(null, null, com.azure.core.util.Context.NONE); } } ``` @@ -2562,8 +2539,6 @@ public final class PartnerConfigurationsListSamples { ### PartnerConfigurations_ListByResourceGroup ```java -import com.azure.core.util.Context; - /** Samples for PartnerConfigurations ListByResourceGroup. */ public final class PartnerConfigurationsListByResourceGroupSamples { /* @@ -2576,7 +2551,7 @@ public final class PartnerConfigurationsListByResourceGroupSamples { */ public static void partnerConfigurationsListByResourceGroup( com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.partnerConfigurations().listByResourceGroup("examplerg", Context.NONE); + manager.partnerConfigurations().listByResourceGroup("examplerg", com.azure.core.util.Context.NONE); } } ``` @@ -2584,7 +2559,6 @@ public final class PartnerConfigurationsListByResourceGroupSamples { ### PartnerConfigurations_UnauthorizePartner ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.models.Partner; import java.time.OffsetDateTime; import java.util.UUID; @@ -2609,7 +2583,7 @@ public final class PartnerConfigurationsUnauthorizePartnerSamples { .withPartnerRegistrationImmutableId(UUID.fromString("941892bc-f5d0-4d1c-8fb5-477570fc2b71")) .withPartnerName("Contoso.Finance") .withAuthorizationExpirationTimeInUtc(OffsetDateTime.parse("2022-01-28T01:20:55.142Z")), - Context.NONE); + com.azure.core.util.Context.NONE); } } ``` @@ -2617,7 +2591,6 @@ public final class PartnerConfigurationsUnauthorizePartnerSamples { ### PartnerConfigurations_Update ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.models.PartnerConfigurationUpdateParameters; import java.util.HashMap; import java.util.Map; @@ -2640,7 +2613,7 @@ public final class PartnerConfigurationsUpdateSamples { new PartnerConfigurationUpdateParameters() .withTags(mapOf("tag1", "value11", "tag2", "value22")) .withDefaultMaximumExpirationTimeInDays(100), - Context.NONE); + com.azure.core.util.Context.NONE); } @SuppressWarnings("unchecked") @@ -2700,8 +2673,6 @@ public final class PartnerNamespacesCreateOrUpdateSamples { ### PartnerNamespaces_Delete ```java -import com.azure.core.util.Context; - /** Samples for PartnerNamespaces Delete. */ public final class PartnerNamespacesDeleteSamples { /* @@ -2713,7 +2684,9 @@ public final class PartnerNamespacesDeleteSamples { * @param manager Entry point to EventGridManager. */ public static void partnerNamespacesDelete(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.partnerNamespaces().delete("examplerg", "examplePartnerNamespaceName1", Context.NONE); + manager + .partnerNamespaces() + .delete("examplerg", "examplePartnerNamespaceName1", com.azure.core.util.Context.NONE); } } ``` @@ -2721,8 +2694,6 @@ public final class PartnerNamespacesDeleteSamples { ### PartnerNamespaces_GetByResourceGroup ```java -import com.azure.core.util.Context; - /** Samples for PartnerNamespaces GetByResourceGroup. */ public final class PartnerNamespacesGetByResourceGroupSamples { /* @@ -2736,7 +2707,8 @@ public final class PartnerNamespacesGetByResourceGroupSamples { public static void partnerNamespacesGet(com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .partnerNamespaces() - .getByResourceGroupWithResponse("examplerg", "examplePartnerNamespaceName1", Context.NONE); + .getByResourceGroupWithResponse( + "examplerg", "examplePartnerNamespaceName1", com.azure.core.util.Context.NONE); } } ``` @@ -2744,8 +2716,6 @@ public final class PartnerNamespacesGetByResourceGroupSamples { ### PartnerNamespaces_List ```java -import com.azure.core.util.Context; - /** Samples for PartnerNamespaces List. */ public final class PartnerNamespacesListSamples { /* @@ -2758,7 +2728,7 @@ public final class PartnerNamespacesListSamples { */ public static void partnerNamespacesListBySubscription( com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.partnerNamespaces().list(null, null, Context.NONE); + manager.partnerNamespaces().list(null, null, com.azure.core.util.Context.NONE); } } ``` @@ -2766,8 +2736,6 @@ public final class PartnerNamespacesListSamples { ### PartnerNamespaces_ListByResourceGroup ```java -import com.azure.core.util.Context; - /** Samples for PartnerNamespaces ListByResourceGroup. */ public final class PartnerNamespacesListByResourceGroupSamples { /* @@ -2780,7 +2748,7 @@ public final class PartnerNamespacesListByResourceGroupSamples { */ public static void partnerNamespacesListByResourceGroup( com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.partnerNamespaces().listByResourceGroup("examplerg", null, null, Context.NONE); + manager.partnerNamespaces().listByResourceGroup("examplerg", null, null, com.azure.core.util.Context.NONE); } } ``` @@ -2788,8 +2756,6 @@ public final class PartnerNamespacesListByResourceGroupSamples { ### PartnerNamespaces_ListSharedAccessKeys ```java -import com.azure.core.util.Context; - /** Samples for PartnerNamespaces ListSharedAccessKeys. */ public final class PartnerNamespacesListSharedAccessKeysSamples { /* @@ -2804,7 +2770,8 @@ public final class PartnerNamespacesListSharedAccessKeysSamples { com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .partnerNamespaces() - .listSharedAccessKeysWithResponse("examplerg", "examplePartnerNamespaceName1", Context.NONE); + .listSharedAccessKeysWithResponse( + "examplerg", "examplePartnerNamespaceName1", com.azure.core.util.Context.NONE); } } ``` @@ -2812,7 +2779,6 @@ public final class PartnerNamespacesListSharedAccessKeysSamples { ### PartnerNamespaces_RegenerateKey ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.models.PartnerNamespaceRegenerateKeyRequest; /** Samples for PartnerNamespaces RegenerateKey. */ @@ -2831,8 +2797,8 @@ public final class PartnerNamespacesRegenerateKeySamples { .regenerateKeyWithResponse( "examplerg", "examplePartnerNamespaceName1", - new PartnerNamespaceRegenerateKeyRequest().withKeyName("key1"), - Context.NONE); + new PartnerNamespaceRegenerateKeyRequest().withKeyName("fakeTokenPlaceholder"), + com.azure.core.util.Context.NONE); } } ``` @@ -2840,7 +2806,6 @@ public final class PartnerNamespacesRegenerateKeySamples { ### PartnerNamespaces_Update ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.models.PartnerNamespace; import java.util.HashMap; import java.util.Map; @@ -2859,7 +2824,8 @@ public final class PartnerNamespacesUpdateSamples { PartnerNamespace resource = manager .partnerNamespaces() - .getByResourceGroupWithResponse("examplerg", "examplePartnerNamespaceName1", Context.NONE) + .getByResourceGroupWithResponse( + "examplerg", "examplePartnerNamespaceName1", com.azure.core.util.Context.NONE) .getValue(); resource.update().withTags(mapOf("tag1", "value1")).apply(); } @@ -2920,8 +2886,6 @@ public final class PartnerRegistrationsCreateOrUpdateSamples { ### PartnerRegistrations_Delete ```java -import com.azure.core.util.Context; - /** Samples for PartnerRegistrations Delete. */ public final class PartnerRegistrationsDeleteSamples { /* @@ -2933,7 +2897,9 @@ public final class PartnerRegistrationsDeleteSamples { * @param manager Entry point to EventGridManager. */ public static void partnerRegistrationsDelete(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.partnerRegistrations().delete("examplerg", "examplePartnerRegistrationName1", Context.NONE); + manager + .partnerRegistrations() + .delete("examplerg", "examplePartnerRegistrationName1", com.azure.core.util.Context.NONE); } } ``` @@ -2941,8 +2907,6 @@ public final class PartnerRegistrationsDeleteSamples { ### PartnerRegistrations_GetByResourceGroup ```java -import com.azure.core.util.Context; - /** Samples for PartnerRegistrations GetByResourceGroup. */ public final class PartnerRegistrationsGetByResourceGroupSamples { /* @@ -2956,7 +2920,8 @@ public final class PartnerRegistrationsGetByResourceGroupSamples { public static void partnerRegistrationsGet(com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .partnerRegistrations() - .getByResourceGroupWithResponse("examplerg", "examplePartnerRegistrationName1", Context.NONE); + .getByResourceGroupWithResponse( + "examplerg", "examplePartnerRegistrationName1", com.azure.core.util.Context.NONE); } } ``` @@ -2964,8 +2929,6 @@ public final class PartnerRegistrationsGetByResourceGroupSamples { ### PartnerRegistrations_List ```java -import com.azure.core.util.Context; - /** Samples for PartnerRegistrations List. */ public final class PartnerRegistrationsListSamples { /* @@ -2978,7 +2941,7 @@ public final class PartnerRegistrationsListSamples { */ public static void partnerRegistrationsListBySubscription( com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.partnerRegistrations().list(null, null, Context.NONE); + manager.partnerRegistrations().list(null, null, com.azure.core.util.Context.NONE); } } ``` @@ -2986,8 +2949,6 @@ public final class PartnerRegistrationsListSamples { ### PartnerRegistrations_ListByResourceGroup ```java -import com.azure.core.util.Context; - /** Samples for PartnerRegistrations ListByResourceGroup. */ public final class PartnerRegistrationsListByResourceGroupSamples { /* @@ -3000,7 +2961,7 @@ public final class PartnerRegistrationsListByResourceGroupSamples { */ public static void partnerRegistrationsListByResourceGroup( com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.partnerRegistrations().listByResourceGroup("examplerg", null, null, Context.NONE); + manager.partnerRegistrations().listByResourceGroup("examplerg", null, null, com.azure.core.util.Context.NONE); } } ``` @@ -3008,7 +2969,6 @@ public final class PartnerRegistrationsListByResourceGroupSamples { ### PartnerRegistrations_Update ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.models.PartnerRegistration; import java.util.HashMap; import java.util.Map; @@ -3027,7 +2987,8 @@ public final class PartnerRegistrationsUpdateSamples { PartnerRegistration resource = manager .partnerRegistrations() - .getByResourceGroupWithResponse("examplerg", "examplePartnerRegistrationName1", Context.NONE) + .getByResourceGroupWithResponse( + "examplerg", "examplePartnerRegistrationName1", com.azure.core.util.Context.NONE) .getValue(); resource.update().withTags(mapOf("tag1", "value1", "tag2", "value2")).apply(); } @@ -3048,7 +3009,6 @@ public final class PartnerRegistrationsUpdateSamples { ### PartnerTopicEventSubscriptions_CreateOrUpdate ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.fluent.models.EventSubscriptionInner; import com.azure.resourcemanager.eventgrid.models.EventSubscriptionFilter; import com.azure.resourcemanager.eventgrid.models.WebhookEventSubscriptionDestination; @@ -3079,7 +3039,7 @@ public final class PartnerTopicEventSubscriptionsCreateOrUpdateSamples { .withSubjectBeginsWith("ExamplePrefix") .withSubjectEndsWith("ExampleSuffix") .withIsSubjectCaseSensitive(false)), - Context.NONE); + com.azure.core.util.Context.NONE); } } ``` @@ -3087,8 +3047,6 @@ public final class PartnerTopicEventSubscriptionsCreateOrUpdateSamples { ### PartnerTopicEventSubscriptions_Delete ```java -import com.azure.core.util.Context; - /** Samples for PartnerTopicEventSubscriptions Delete. */ public final class PartnerTopicEventSubscriptionsDeleteSamples { /* @@ -3103,7 +3061,7 @@ public final class PartnerTopicEventSubscriptionsDeleteSamples { com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .partnerTopicEventSubscriptions() - .delete("examplerg", "examplePartnerTopic1", "examplesubscription1", Context.NONE); + .delete("examplerg", "examplePartnerTopic1", "examplesubscription1", com.azure.core.util.Context.NONE); } } ``` @@ -3111,8 +3069,6 @@ public final class PartnerTopicEventSubscriptionsDeleteSamples { ### PartnerTopicEventSubscriptions_Get ```java -import com.azure.core.util.Context; - /** Samples for PartnerTopicEventSubscriptions Get. */ public final class PartnerTopicEventSubscriptionsGetSamples { /* @@ -3126,7 +3082,8 @@ public final class PartnerTopicEventSubscriptionsGetSamples { public static void partnerTopicEventSubscriptionsGet(com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .partnerTopicEventSubscriptions() - .getWithResponse("examplerg", "examplePartnerTopic1", "examplesubscription1", Context.NONE); + .getWithResponse( + "examplerg", "examplePartnerTopic1", "examplesubscription1", com.azure.core.util.Context.NONE); } } ``` @@ -3134,8 +3091,6 @@ public final class PartnerTopicEventSubscriptionsGetSamples { ### PartnerTopicEventSubscriptions_GetDeliveryAttributes ```java -import com.azure.core.util.Context; - /** Samples for PartnerTopicEventSubscriptions GetDeliveryAttributes. */ public final class PartnerTopicEventSubscriptionsGetDeliveryAttributesSamples { /* @@ -3151,7 +3106,7 @@ public final class PartnerTopicEventSubscriptionsGetDeliveryAttributesSamples { manager .partnerTopicEventSubscriptions() .getDeliveryAttributesWithResponse( - "examplerg", "examplePartnerTopic1", "examplesubscription1", Context.NONE); + "examplerg", "examplePartnerTopic1", "examplesubscription1", com.azure.core.util.Context.NONE); } } ``` @@ -3159,8 +3114,6 @@ public final class PartnerTopicEventSubscriptionsGetDeliveryAttributesSamples { ### PartnerTopicEventSubscriptions_GetFullUrl ```java -import com.azure.core.util.Context; - /** Samples for PartnerTopicEventSubscriptions GetFullUrl. */ public final class PartnerTopicEventSubscriptionsGetFullUrlSamples { /* @@ -3175,7 +3128,8 @@ public final class PartnerTopicEventSubscriptionsGetFullUrlSamples { com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .partnerTopicEventSubscriptions() - .getFullUrlWithResponse("examplerg", "examplePartnerTopic1", "examplesubscription1", Context.NONE); + .getFullUrlWithResponse( + "examplerg", "examplePartnerTopic1", "examplesubscription1", com.azure.core.util.Context.NONE); } } ``` @@ -3183,8 +3137,6 @@ public final class PartnerTopicEventSubscriptionsGetFullUrlSamples { ### PartnerTopicEventSubscriptions_ListByPartnerTopic ```java -import com.azure.core.util.Context; - /** Samples for PartnerTopicEventSubscriptions ListByPartnerTopic. */ public final class PartnerTopicEventSubscriptionsListByPartnerTopicSamples { /* @@ -3199,7 +3151,7 @@ public final class PartnerTopicEventSubscriptionsListByPartnerTopicSamples { com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .partnerTopicEventSubscriptions() - .listByPartnerTopic("examplerg", "examplePartnerTopic1", null, null, Context.NONE); + .listByPartnerTopic("examplerg", "examplePartnerTopic1", null, null, com.azure.core.util.Context.NONE); } } ``` @@ -3207,7 +3159,6 @@ public final class PartnerTopicEventSubscriptionsListByPartnerTopicSamples { ### PartnerTopicEventSubscriptions_Update ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.models.EventSubscriptionFilter; import com.azure.resourcemanager.eventgrid.models.EventSubscriptionUpdateParameters; import com.azure.resourcemanager.eventgrid.models.WebhookEventSubscriptionDestination; @@ -3240,7 +3191,7 @@ public final class PartnerTopicEventSubscriptionsUpdateSamples { .withSubjectEndsWith("newSuffix") .withIsSubjectCaseSensitive(true)) .withLabels(Arrays.asList("label1", "label2")), - Context.NONE); + com.azure.core.util.Context.NONE); } } ``` @@ -3248,8 +3199,6 @@ public final class PartnerTopicEventSubscriptionsUpdateSamples { ### PartnerTopics_Activate ```java -import com.azure.core.util.Context; - /** Samples for PartnerTopics Activate. */ public final class PartnerTopicsActivateSamples { /* @@ -3261,7 +3210,9 @@ public final class PartnerTopicsActivateSamples { * @param manager Entry point to EventGridManager. */ public static void partnerTopicsActivate(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.partnerTopics().activateWithResponse("examplerg", "examplePartnerTopic1", Context.NONE); + manager + .partnerTopics() + .activateWithResponse("examplerg", "examplePartnerTopic1", com.azure.core.util.Context.NONE); } } ``` @@ -3301,8 +3252,6 @@ public final class PartnerTopicsCreateOrUpdateSamples { ### PartnerTopics_Deactivate ```java -import com.azure.core.util.Context; - /** Samples for PartnerTopics Deactivate. */ public final class PartnerTopicsDeactivateSamples { /* @@ -3314,7 +3263,9 @@ public final class PartnerTopicsDeactivateSamples { * @param manager Entry point to EventGridManager. */ public static void partnerTopicsDeactivate(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.partnerTopics().deactivateWithResponse("examplerg", "examplePartnerTopic1", Context.NONE); + manager + .partnerTopics() + .deactivateWithResponse("examplerg", "examplePartnerTopic1", com.azure.core.util.Context.NONE); } } ``` @@ -3322,8 +3273,6 @@ public final class PartnerTopicsDeactivateSamples { ### PartnerTopics_Delete ```java -import com.azure.core.util.Context; - /** Samples for PartnerTopics Delete. */ public final class PartnerTopicsDeleteSamples { /* @@ -3335,7 +3284,7 @@ public final class PartnerTopicsDeleteSamples { * @param manager Entry point to EventGridManager. */ public static void partnerTopicsDelete(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.partnerTopics().delete("examplerg", "examplePartnerTopicName1", Context.NONE); + manager.partnerTopics().delete("examplerg", "examplePartnerTopicName1", com.azure.core.util.Context.NONE); } } ``` @@ -3343,8 +3292,6 @@ public final class PartnerTopicsDeleteSamples { ### PartnerTopics_GetByResourceGroup ```java -import com.azure.core.util.Context; - /** Samples for PartnerTopics GetByResourceGroup. */ public final class PartnerTopicsGetByResourceGroupSamples { /* @@ -3356,7 +3303,9 @@ public final class PartnerTopicsGetByResourceGroupSamples { * @param manager Entry point to EventGridManager. */ public static void partnerTopicsGet(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.partnerTopics().getByResourceGroupWithResponse("examplerg", "examplePartnerTopicName1", Context.NONE); + manager + .partnerTopics() + .getByResourceGroupWithResponse("examplerg", "examplePartnerTopicName1", com.azure.core.util.Context.NONE); } } ``` @@ -3364,8 +3313,6 @@ public final class PartnerTopicsGetByResourceGroupSamples { ### PartnerTopics_List ```java -import com.azure.core.util.Context; - /** Samples for PartnerTopics List. */ public final class PartnerTopicsListSamples { /* @@ -3377,7 +3324,7 @@ public final class PartnerTopicsListSamples { * @param manager Entry point to EventGridManager. */ public static void partnerTopicsListBySubscription(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.partnerTopics().list(null, null, Context.NONE); + manager.partnerTopics().list(null, null, com.azure.core.util.Context.NONE); } } ``` @@ -3385,8 +3332,6 @@ public final class PartnerTopicsListSamples { ### PartnerTopics_ListByResourceGroup ```java -import com.azure.core.util.Context; - /** Samples for PartnerTopics ListByResourceGroup. */ public final class PartnerTopicsListByResourceGroupSamples { /* @@ -3398,7 +3343,7 @@ public final class PartnerTopicsListByResourceGroupSamples { * @param manager Entry point to EventGridManager. */ public static void partnerTopicsListByResourceGroup(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.partnerTopics().listByResourceGroup("examplerg", null, null, Context.NONE); + manager.partnerTopics().listByResourceGroup("examplerg", null, null, com.azure.core.util.Context.NONE); } } ``` @@ -3406,7 +3351,6 @@ public final class PartnerTopicsListByResourceGroupSamples { ### PartnerTopics_Update ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.models.PartnerTopic; import java.util.HashMap; import java.util.Map; @@ -3425,7 +3369,8 @@ public final class PartnerTopicsUpdateSamples { PartnerTopic resource = manager .partnerTopics() - .getByResourceGroupWithResponse("examplerg", "examplePartnerTopicName1", Context.NONE) + .getByResourceGroupWithResponse( + "examplerg", "examplePartnerTopicName1", com.azure.core.util.Context.NONE) .getValue(); resource.update().withTags(mapOf("tag1", "value1", "tag2", "value2")).apply(); } @@ -3446,7 +3391,6 @@ public final class PartnerTopicsUpdateSamples { ### PrivateEndpointConnections_Delete ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.models.PrivateEndpointConnectionsParentType; /** Samples for PrivateEndpointConnections Delete. */ @@ -3467,7 +3411,7 @@ public final class PrivateEndpointConnectionsDeleteSamples { PrivateEndpointConnectionsParentType.TOPICS, "exampletopic1", "BMTPE5.8A30D251-4C61-489D-A1AA-B37C4A329B8B", - Context.NONE); + com.azure.core.util.Context.NONE); } } ``` @@ -3475,7 +3419,6 @@ public final class PrivateEndpointConnectionsDeleteSamples { ### PrivateEndpointConnections_Get ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.models.PrivateEndpointConnectionsParentType; /** Samples for PrivateEndpointConnections Get. */ @@ -3496,7 +3439,7 @@ public final class PrivateEndpointConnectionsGetSamples { PrivateEndpointConnectionsParentType.TOPICS, "exampletopic1", "BMTPE5.8A30D251-4C61-489D-A1AA-B37C4A329B8B", - Context.NONE); + com.azure.core.util.Context.NONE); } } ``` @@ -3504,7 +3447,6 @@ public final class PrivateEndpointConnectionsGetSamples { ### PrivateEndpointConnections_ListByResource ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.models.PrivateEndpointConnectionsParentType; /** Samples for PrivateEndpointConnections ListByResource. */ @@ -3522,7 +3464,12 @@ public final class PrivateEndpointConnectionsListByResourceSamples { manager .privateEndpointConnections() .listByResource( - "examplerg", PrivateEndpointConnectionsParentType.TOPICS, "exampletopic1", null, null, Context.NONE); + "examplerg", + PrivateEndpointConnectionsParentType.TOPICS, + "exampletopic1", + null, + null, + com.azure.core.util.Context.NONE); } } ``` @@ -3530,7 +3477,6 @@ public final class PrivateEndpointConnectionsListByResourceSamples { ### PrivateEndpointConnections_Update ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.fluent.models.PrivateEndpointConnectionInner; import com.azure.resourcemanager.eventgrid.models.ConnectionState; import com.azure.resourcemanager.eventgrid.models.PersistedConnectionStatus; @@ -3560,7 +3506,7 @@ public final class PrivateEndpointConnectionsUpdateSamples { .withStatus(PersistedConnectionStatus.APPROVED) .withDescription("approving connection") .withActionsRequired("None")), - Context.NONE); + com.azure.core.util.Context.NONE); } } ``` @@ -3568,7 +3514,7 @@ public final class PrivateEndpointConnectionsUpdateSamples { ### PrivateLinkResources_Get ```java -import com.azure.core.util.Context; +import com.azure.resourcemanager.eventgrid.models.PrivateEndpointConnectionsParentType; /** Samples for PrivateLinkResources Get. */ public final class PrivateLinkResourcesGetSamples { @@ -3581,7 +3527,14 @@ public final class PrivateLinkResourcesGetSamples { * @param manager Entry point to EventGridManager. */ public static void privateLinkResourcesGet(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.privateLinkResources().getWithResponse("examplerg", "topics", "exampletopic1", "topic", Context.NONE); + manager + .privateLinkResources() + .getWithResponse( + "examplerg", + PrivateEndpointConnectionsParentType.TOPICS, + "exampletopic1", + "topic", + com.azure.core.util.Context.NONE); } } ``` @@ -3589,7 +3542,7 @@ public final class PrivateLinkResourcesGetSamples { ### PrivateLinkResources_ListByResource ```java -import com.azure.core.util.Context; +import com.azure.resourcemanager.eventgrid.models.PrivateEndpointConnectionsParentType; /** Samples for PrivateLinkResources ListByResource. */ public final class PrivateLinkResourcesListByResourceSamples { @@ -3603,7 +3556,15 @@ public final class PrivateLinkResourcesListByResourceSamples { */ public static void privateLinkResourcesListByResource( com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.privateLinkResources().listByResource("examplerg", "topics", "exampletopic1", null, null, Context.NONE); + manager + .privateLinkResources() + .listByResource( + "examplerg", + PrivateEndpointConnectionsParentType.TOPICS, + "exampletopic1", + null, + null, + com.azure.core.util.Context.NONE); } } ``` @@ -3611,7 +3572,6 @@ public final class PrivateLinkResourcesListByResourceSamples { ### SystemTopicEventSubscriptions_CreateOrUpdate ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.fluent.models.EventSubscriptionInner; import com.azure.resourcemanager.eventgrid.models.EventSubscriptionFilter; import com.azure.resourcemanager.eventgrid.models.WebhookEventSubscriptionDestination; @@ -3642,7 +3602,7 @@ public final class SystemTopicEventSubscriptionsCreateOrUpdateSamples { .withSubjectBeginsWith("ExamplePrefix") .withSubjectEndsWith("ExampleSuffix") .withIsSubjectCaseSensitive(false)), - Context.NONE); + com.azure.core.util.Context.NONE); } } ``` @@ -3650,8 +3610,6 @@ public final class SystemTopicEventSubscriptionsCreateOrUpdateSamples { ### SystemTopicEventSubscriptions_Delete ```java -import com.azure.core.util.Context; - /** Samples for SystemTopicEventSubscriptions Delete. */ public final class SystemTopicEventSubscriptionsDeleteSamples { /* @@ -3666,7 +3624,7 @@ public final class SystemTopicEventSubscriptionsDeleteSamples { com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .systemTopicEventSubscriptions() - .delete("examplerg", "exampleSystemTopic1", "examplesubscription1", Context.NONE); + .delete("examplerg", "exampleSystemTopic1", "examplesubscription1", com.azure.core.util.Context.NONE); } } ``` @@ -3674,8 +3632,6 @@ public final class SystemTopicEventSubscriptionsDeleteSamples { ### SystemTopicEventSubscriptions_Get ```java -import com.azure.core.util.Context; - /** Samples for SystemTopicEventSubscriptions Get. */ public final class SystemTopicEventSubscriptionsGetSamples { /* @@ -3689,7 +3645,8 @@ public final class SystemTopicEventSubscriptionsGetSamples { public static void systemTopicEventSubscriptionsGet(com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .systemTopicEventSubscriptions() - .getWithResponse("examplerg", "exampleSystemTopic1", "examplesubscription1", Context.NONE); + .getWithResponse( + "examplerg", "exampleSystemTopic1", "examplesubscription1", com.azure.core.util.Context.NONE); } } ``` @@ -3697,8 +3654,6 @@ public final class SystemTopicEventSubscriptionsGetSamples { ### SystemTopicEventSubscriptions_GetDeliveryAttributes ```java -import com.azure.core.util.Context; - /** Samples for SystemTopicEventSubscriptions GetDeliveryAttributes. */ public final class SystemTopicEventSubscriptionsGetDeliveryAttributesSamples { /* @@ -3714,7 +3669,7 @@ public final class SystemTopicEventSubscriptionsGetDeliveryAttributesSamples { manager .systemTopicEventSubscriptions() .getDeliveryAttributesWithResponse( - "examplerg", "exampleSystemTopic1", "examplesubscription1", Context.NONE); + "examplerg", "exampleSystemTopic1", "examplesubscription1", com.azure.core.util.Context.NONE); } } ``` @@ -3722,8 +3677,6 @@ public final class SystemTopicEventSubscriptionsGetDeliveryAttributesSamples { ### SystemTopicEventSubscriptions_GetFullUrl ```java -import com.azure.core.util.Context; - /** Samples for SystemTopicEventSubscriptions GetFullUrl. */ public final class SystemTopicEventSubscriptionsGetFullUrlSamples { /* @@ -3738,7 +3691,8 @@ public final class SystemTopicEventSubscriptionsGetFullUrlSamples { com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .systemTopicEventSubscriptions() - .getFullUrlWithResponse("examplerg", "exampleSystemTopic1", "examplesubscription1", Context.NONE); + .getFullUrlWithResponse( + "examplerg", "exampleSystemTopic1", "examplesubscription1", com.azure.core.util.Context.NONE); } } ``` @@ -3746,8 +3700,6 @@ public final class SystemTopicEventSubscriptionsGetFullUrlSamples { ### SystemTopicEventSubscriptions_ListBySystemTopic ```java -import com.azure.core.util.Context; - /** Samples for SystemTopicEventSubscriptions ListBySystemTopic. */ public final class SystemTopicEventSubscriptionsListBySystemTopicSamples { /* @@ -3762,7 +3714,7 @@ public final class SystemTopicEventSubscriptionsListBySystemTopicSamples { com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .systemTopicEventSubscriptions() - .listBySystemTopic("examplerg", "exampleSystemTopic1", null, null, Context.NONE); + .listBySystemTopic("examplerg", "exampleSystemTopic1", null, null, com.azure.core.util.Context.NONE); } } ``` @@ -3770,7 +3722,6 @@ public final class SystemTopicEventSubscriptionsListBySystemTopicSamples { ### SystemTopicEventSubscriptions_Update ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.models.EventSubscriptionFilter; import com.azure.resourcemanager.eventgrid.models.EventSubscriptionUpdateParameters; import com.azure.resourcemanager.eventgrid.models.WebhookEventSubscriptionDestination; @@ -3803,7 +3754,7 @@ public final class SystemTopicEventSubscriptionsUpdateSamples { .withSubjectEndsWith("newSuffix") .withIsSubjectCaseSensitive(true)) .withLabels(Arrays.asList("label1", "label2")), - Context.NONE); + com.azure.core.util.Context.NONE); } } ``` @@ -3853,8 +3804,6 @@ public final class SystemTopicsCreateOrUpdateSamples { ### SystemTopics_Delete ```java -import com.azure.core.util.Context; - /** Samples for SystemTopics Delete. */ public final class SystemTopicsDeleteSamples { /* @@ -3866,7 +3815,7 @@ public final class SystemTopicsDeleteSamples { * @param manager Entry point to EventGridManager. */ public static void systemTopicsDelete(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.systemTopics().delete("examplerg", "exampleSystemTopic1", Context.NONE); + manager.systemTopics().delete("examplerg", "exampleSystemTopic1", com.azure.core.util.Context.NONE); } } ``` @@ -3874,8 +3823,6 @@ public final class SystemTopicsDeleteSamples { ### SystemTopics_GetByResourceGroup ```java -import com.azure.core.util.Context; - /** Samples for SystemTopics GetByResourceGroup. */ public final class SystemTopicsGetByResourceGroupSamples { /* @@ -3887,7 +3834,9 @@ public final class SystemTopicsGetByResourceGroupSamples { * @param manager Entry point to EventGridManager. */ public static void systemTopicsGet(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.systemTopics().getByResourceGroupWithResponse("examplerg", "exampleSystemTopic2", Context.NONE); + manager + .systemTopics() + .getByResourceGroupWithResponse("examplerg", "exampleSystemTopic2", com.azure.core.util.Context.NONE); } } ``` @@ -3895,8 +3844,6 @@ public final class SystemTopicsGetByResourceGroupSamples { ### SystemTopics_List ```java -import com.azure.core.util.Context; - /** Samples for SystemTopics List. */ public final class SystemTopicsListSamples { /* @@ -3908,7 +3855,7 @@ public final class SystemTopicsListSamples { * @param manager Entry point to EventGridManager. */ public static void systemTopicsListBySubscription(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.systemTopics().list(null, null, Context.NONE); + manager.systemTopics().list(null, null, com.azure.core.util.Context.NONE); } } ``` @@ -3916,8 +3863,6 @@ public final class SystemTopicsListSamples { ### SystemTopics_ListByResourceGroup ```java -import com.azure.core.util.Context; - /** Samples for SystemTopics ListByResourceGroup. */ public final class SystemTopicsListByResourceGroupSamples { /* @@ -3929,7 +3874,7 @@ public final class SystemTopicsListByResourceGroupSamples { * @param manager Entry point to EventGridManager. */ public static void systemTopicsListByResourceGroup(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.systemTopics().listByResourceGroup("examplerg", null, null, Context.NONE); + manager.systemTopics().listByResourceGroup("examplerg", null, null, com.azure.core.util.Context.NONE); } } ``` @@ -3937,7 +3882,6 @@ public final class SystemTopicsListByResourceGroupSamples { ### SystemTopics_Update ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.models.SystemTopic; import java.util.HashMap; import java.util.Map; @@ -3956,7 +3900,7 @@ public final class SystemTopicsUpdateSamples { SystemTopic resource = manager .systemTopics() - .getByResourceGroupWithResponse("examplerg", "exampleSystemTopic1", Context.NONE) + .getByResourceGroupWithResponse("examplerg", "exampleSystemTopic1", com.azure.core.util.Context.NONE) .getValue(); resource.update().withTags(mapOf("tag1", "value1", "tag2", "value2")).apply(); } @@ -4010,8 +3954,6 @@ public final class TopicEventSubscriptionsCreateOrUpdateSamples { ### TopicEventSubscriptions_Delete ```java -import com.azure.core.util.Context; - /** Samples for TopicEventSubscriptions Delete. */ public final class TopicEventSubscriptionsDeleteSamples { /* @@ -4023,7 +3965,9 @@ public final class TopicEventSubscriptionsDeleteSamples { * @param manager Entry point to EventGridManager. */ public static void topicEventSubscriptionsDelete(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.topicEventSubscriptions().delete("examplerg", "exampleTopic1", "examplesubscription1", Context.NONE); + manager + .topicEventSubscriptions() + .delete("examplerg", "exampleTopic1", "examplesubscription1", com.azure.core.util.Context.NONE); } } ``` @@ -4031,8 +3975,6 @@ public final class TopicEventSubscriptionsDeleteSamples { ### TopicEventSubscriptions_Get ```java -import com.azure.core.util.Context; - /** Samples for TopicEventSubscriptions Get. */ public final class TopicEventSubscriptionsGetSamples { /* @@ -4046,7 +3988,7 @@ public final class TopicEventSubscriptionsGetSamples { public static void topicEventSubscriptionsGet(com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .topicEventSubscriptions() - .getWithResponse("examplerg", "exampleTopic1", "examplesubscription1", Context.NONE); + .getWithResponse("examplerg", "exampleTopic1", "examplesubscription1", com.azure.core.util.Context.NONE); } } ``` @@ -4054,8 +3996,6 @@ public final class TopicEventSubscriptionsGetSamples { ### TopicEventSubscriptions_GetDeliveryAttributes ```java -import com.azure.core.util.Context; - /** Samples for TopicEventSubscriptions GetDeliveryAttributes. */ public final class TopicEventSubscriptionsGetDeliveryAttributesSamples { /* @@ -4070,7 +4010,8 @@ public final class TopicEventSubscriptionsGetDeliveryAttributesSamples { com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .topicEventSubscriptions() - .getDeliveryAttributesWithResponse("examplerg", "exampleTopic1", "examplesubscription1", Context.NONE); + .getDeliveryAttributesWithResponse( + "examplerg", "exampleTopic1", "examplesubscription1", com.azure.core.util.Context.NONE); } } ``` @@ -4078,8 +4019,6 @@ public final class TopicEventSubscriptionsGetDeliveryAttributesSamples { ### TopicEventSubscriptions_GetFullUrl ```java -import com.azure.core.util.Context; - /** Samples for TopicEventSubscriptions GetFullUrl. */ public final class TopicEventSubscriptionsGetFullUrlSamples { /* @@ -4093,7 +4032,8 @@ public final class TopicEventSubscriptionsGetFullUrlSamples { public static void topicEventSubscriptionsGetFullUrl(com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .topicEventSubscriptions() - .getFullUrlWithResponse("examplerg", "exampleTopic1", "examplesubscription1", Context.NONE); + .getFullUrlWithResponse( + "examplerg", "exampleTopic1", "examplesubscription1", com.azure.core.util.Context.NONE); } } ``` @@ -4101,8 +4041,6 @@ public final class TopicEventSubscriptionsGetFullUrlSamples { ### TopicEventSubscriptions_List ```java -import com.azure.core.util.Context; - /** Samples for TopicEventSubscriptions List. */ public final class TopicEventSubscriptionsListSamples { /* @@ -4114,7 +4052,9 @@ public final class TopicEventSubscriptionsListSamples { * @param manager Entry point to EventGridManager. */ public static void topicEventSubscriptionsList(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.topicEventSubscriptions().list("examplerg", "exampleTopic1", null, null, Context.NONE); + manager + .topicEventSubscriptions() + .list("examplerg", "exampleTopic1", null, null, com.azure.core.util.Context.NONE); } } ``` @@ -4122,7 +4062,6 @@ public final class TopicEventSubscriptionsListSamples { ### TopicEventSubscriptions_Update ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.models.EventSubscription; import com.azure.resourcemanager.eventgrid.models.EventSubscriptionFilter; import com.azure.resourcemanager.eventgrid.models.WebhookEventSubscriptionDestination; @@ -4142,7 +4081,8 @@ public final class TopicEventSubscriptionsUpdateSamples { EventSubscription resource = manager .topicEventSubscriptions() - .getWithResponse("examplerg", "exampleTopic1", "exampleEventSubscriptionName1", Context.NONE) + .getWithResponse( + "examplerg", "exampleTopic1", "exampleEventSubscriptionName1", com.azure.core.util.Context.NONE) .getValue(); resource .update() @@ -4161,8 +4101,6 @@ public final class TopicEventSubscriptionsUpdateSamples { ### TopicTypes_Get ```java -import com.azure.core.util.Context; - /** Samples for TopicTypes Get. */ public final class TopicTypesGetSamples { /* @@ -4174,7 +4112,7 @@ public final class TopicTypesGetSamples { * @param manager Entry point to EventGridManager. */ public static void topicTypesGet(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.topicTypes().getWithResponse("Microsoft.Storage.StorageAccounts", Context.NONE); + manager.topicTypes().getWithResponse("Microsoft.Storage.StorageAccounts", com.azure.core.util.Context.NONE); } } ``` @@ -4182,8 +4120,6 @@ public final class TopicTypesGetSamples { ### TopicTypes_List ```java -import com.azure.core.util.Context; - /** Samples for TopicTypes List. */ public final class TopicTypesListSamples { /* @@ -4195,7 +4131,7 @@ public final class TopicTypesListSamples { * @param manager Entry point to EventGridManager. */ public static void topicTypesList(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.topicTypes().list(Context.NONE); + manager.topicTypes().list(com.azure.core.util.Context.NONE); } } ``` @@ -4203,8 +4139,6 @@ public final class TopicTypesListSamples { ### TopicTypes_ListEventTypes ```java -import com.azure.core.util.Context; - /** Samples for TopicTypes ListEventTypes. */ public final class TopicTypesListEventTypesSamples { /* @@ -4216,7 +4150,7 @@ public final class TopicTypesListEventTypesSamples { * @param manager Entry point to EventGridManager. */ public static void topicTypesListEventTypes(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.topicTypes().listEventTypes("Microsoft.Storage.StorageAccounts", Context.NONE); + manager.topicTypes().listEventTypes("Microsoft.Storage.StorageAccounts", com.azure.core.util.Context.NONE); } } ``` @@ -4273,8 +4207,6 @@ public final class TopicsCreateOrUpdateSamples { ### Topics_Delete ```java -import com.azure.core.util.Context; - /** Samples for Topics Delete. */ public final class TopicsDeleteSamples { /* @@ -4286,7 +4218,7 @@ public final class TopicsDeleteSamples { * @param manager Entry point to EventGridManager. */ public static void topicsDelete(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.topics().delete("examplerg", "exampletopic1", Context.NONE); + manager.topics().delete("examplerg", "exampletopic1", com.azure.core.util.Context.NONE); } } ``` @@ -4294,8 +4226,6 @@ public final class TopicsDeleteSamples { ### Topics_GetByResourceGroup ```java -import com.azure.core.util.Context; - /** Samples for Topics GetByResourceGroup. */ public final class TopicsGetByResourceGroupSamples { /* @@ -4307,7 +4237,7 @@ public final class TopicsGetByResourceGroupSamples { * @param manager Entry point to EventGridManager. */ public static void topicsGet(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.topics().getByResourceGroupWithResponse("examplerg", "exampletopic2", Context.NONE); + manager.topics().getByResourceGroupWithResponse("examplerg", "exampletopic2", com.azure.core.util.Context.NONE); } } ``` @@ -4315,8 +4245,6 @@ public final class TopicsGetByResourceGroupSamples { ### Topics_List ```java -import com.azure.core.util.Context; - /** Samples for Topics List. */ public final class TopicsListSamples { /* @@ -4328,7 +4256,7 @@ public final class TopicsListSamples { * @param manager Entry point to EventGridManager. */ public static void topicsListBySubscription(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.topics().list(null, null, Context.NONE); + manager.topics().list(null, null, com.azure.core.util.Context.NONE); } } ``` @@ -4336,8 +4264,6 @@ public final class TopicsListSamples { ### Topics_ListByResourceGroup ```java -import com.azure.core.util.Context; - /** Samples for Topics ListByResourceGroup. */ public final class TopicsListByResourceGroupSamples { /* @@ -4349,7 +4275,7 @@ public final class TopicsListByResourceGroupSamples { * @param manager Entry point to EventGridManager. */ public static void topicsListByResourceGroup(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.topics().listByResourceGroup("examplerg", null, null, Context.NONE); + manager.topics().listByResourceGroup("examplerg", null, null, com.azure.core.util.Context.NONE); } } ``` @@ -4357,8 +4283,6 @@ public final class TopicsListByResourceGroupSamples { ### Topics_ListEventTypes ```java -import com.azure.core.util.Context; - /** Samples for Topics ListEventTypes. */ public final class TopicsListEventTypesSamples { /* @@ -4372,7 +4296,12 @@ public final class TopicsListEventTypesSamples { public static void topicsListEventTypes(com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .topics() - .listEventTypes("examplerg", "Microsoft.Storage", "storageAccounts", "ExampleStorageAccount", Context.NONE); + .listEventTypes( + "examplerg", + "Microsoft.Storage", + "storageAccounts", + "ExampleStorageAccount", + com.azure.core.util.Context.NONE); } } ``` @@ -4380,8 +4309,6 @@ public final class TopicsListEventTypesSamples { ### Topics_ListSharedAccessKeys ```java -import com.azure.core.util.Context; - /** Samples for Topics ListSharedAccessKeys. */ public final class TopicsListSharedAccessKeysSamples { /* @@ -4393,7 +4320,9 @@ public final class TopicsListSharedAccessKeysSamples { * @param manager Entry point to EventGridManager. */ public static void topicsListSharedAccessKeys(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.topics().listSharedAccessKeysWithResponse("examplerg", "exampletopic2", Context.NONE); + manager + .topics() + .listSharedAccessKeysWithResponse("examplerg", "exampletopic2", com.azure.core.util.Context.NONE); } } ``` @@ -4401,7 +4330,6 @@ public final class TopicsListSharedAccessKeysSamples { ### Topics_RegenerateKey ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.models.TopicRegenerateKeyRequest; /** Samples for Topics RegenerateKey. */ @@ -4418,7 +4346,10 @@ public final class TopicsRegenerateKeySamples { manager .topics() .regenerateKey( - "examplerg", "exampletopic2", new TopicRegenerateKeyRequest().withKeyName("key1"), Context.NONE); + "examplerg", + "exampletopic2", + new TopicRegenerateKeyRequest().withKeyName("fakeTokenPlaceholder"), + com.azure.core.util.Context.NONE); } } ``` @@ -4426,7 +4357,6 @@ public final class TopicsRegenerateKeySamples { ### Topics_Update ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.models.InboundIpRule; import com.azure.resourcemanager.eventgrid.models.IpActionType; import com.azure.resourcemanager.eventgrid.models.PublicNetworkAccess; @@ -4447,7 +4377,10 @@ public final class TopicsUpdateSamples { */ public static void topicsUpdate(com.azure.resourcemanager.eventgrid.EventGridManager manager) { Topic resource = - manager.topics().getByResourceGroupWithResponse("examplerg", "exampletopic1", Context.NONE).getValue(); + manager + .topics() + .getByResourceGroupWithResponse("examplerg", "exampletopic1", com.azure.core.util.Context.NONE) + .getValue(); resource .update() .withTags(mapOf("tag1", "value1", "tag2", "value2")) @@ -4476,8 +4409,6 @@ public final class TopicsUpdateSamples { ### VerifiedPartners_Get ```java -import com.azure.core.util.Context; - /** Samples for VerifiedPartners Get. */ public final class VerifiedPartnersGetSamples { /* @@ -4489,7 +4420,7 @@ public final class VerifiedPartnersGetSamples { * @param manager Entry point to EventGridManager. */ public static void verifiedPartnersGet(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.verifiedPartners().getWithResponse("Contoso.Finance", Context.NONE); + manager.verifiedPartners().getWithResponse("Contoso.Finance", com.azure.core.util.Context.NONE); } } ``` @@ -4497,8 +4428,6 @@ public final class VerifiedPartnersGetSamples { ### VerifiedPartners_List ```java -import com.azure.core.util.Context; - /** Samples for VerifiedPartners List. */ public final class VerifiedPartnersListSamples { /* @@ -4510,7 +4439,7 @@ public final class VerifiedPartnersListSamples { * @param manager Entry point to EventGridManager. */ public static void verifiedPartnersList(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.verifiedPartners().list(null, null, Context.NONE); + manager.verifiedPartners().list(null, null, com.azure.core.util.Context.NONE); } } ``` diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/pom.xml b/sdk/eventgrid/azure-resourcemanager-eventgrid/pom.xml index 16d39ff96ed6..28852a4baed0 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/pom.xml +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/pom.xml @@ -1,3 +1,8 @@ + 4.0.0 @@ -38,8 +43,8 @@ UTF-8 - true - true + 0 + 0 diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/EventGridManager.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/EventGridManager.java index 5bb76d59e6cd..e9cf16e77815 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/EventGridManager.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/EventGridManager.java @@ -283,7 +283,7 @@ public EventGridManager authenticate(TokenCredential credential, AzureProfile pr .append("-") .append("com.azure.resourcemanager.eventgrid") .append("/") - .append("1.2.0-beta.3"); + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder .append(" (") diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/ChannelsClient.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/ChannelsClient.java index cf636fda7bce..c2830b3f319b 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/ChannelsClient.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/ChannelsClient.java @@ -18,21 +18,9 @@ /** An instance of this class provides access to all the operations defined in ChannelsClient. */ public interface ChannelsClient { /** - * Get properties of a channel. + * Get a channel. * - * @param resourceGroupName The name of the resource group within the partners subscription. - * @param partnerNamespaceName Name of the partner namespace. - * @param channelName Name of the channel. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a channel. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ChannelInner get(String resourceGroupName, String partnerNamespaceName, String channelName); - - /** - * Get properties of a channel. + *

Get properties of a channel. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -48,23 +36,25 @@ Response getWithResponse( String resourceGroupName, String partnerNamespaceName, String channelName, Context context); /** - * Synchronously creates or updates a new channel with the specified parameters. + * Get a channel. + * + *

Get properties of a channel. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. * @param channelName Name of the channel. - * @param channelInfo Channel information. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return channel info. + * @return properties of a channel. */ @ServiceMethod(returns = ReturnType.SINGLE) - ChannelInner createOrUpdate( - String resourceGroupName, String partnerNamespaceName, String channelName, ChannelInner channelInfo); + ChannelInner get(String resourceGroupName, String partnerNamespaceName, String channelName); /** - * Synchronously creates or updates a new channel with the specified parameters. + * Create or update a channel. + * + *

Synchronously creates or updates a new channel with the specified parameters. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -85,7 +75,27 @@ Response createOrUpdateWithResponse( Context context); /** - * Delete an existing channel. + * Create or update a channel. + * + *

Synchronously creates or updates a new channel with the specified parameters. + * + * @param resourceGroupName The name of the resource group within the partners subscription. + * @param partnerNamespaceName Name of the partner namespace. + * @param channelName Name of the channel. + * @param channelInfo Channel information. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return channel info. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ChannelInner createOrUpdate( + String resourceGroupName, String partnerNamespaceName, String channelName, ChannelInner channelInfo); + + /** + * Delete a channel. + * + *

Delete an existing channel. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -100,7 +110,9 @@ SyncPoller, Void> beginDelete( String resourceGroupName, String partnerNamespaceName, String channelName); /** - * Delete an existing channel. + * Delete a channel. + * + *

Delete an existing channel. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -116,7 +128,9 @@ SyncPoller, Void> beginDelete( String resourceGroupName, String partnerNamespaceName, String channelName, Context context); /** - * Delete an existing channel. + * Delete a channel. + * + *

Delete an existing channel. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -129,7 +143,9 @@ SyncPoller, Void> beginDelete( void delete(String resourceGroupName, String partnerNamespaceName, String channelName); /** - * Delete an existing channel. + * Delete a channel. + * + *

Delete an existing channel. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -143,46 +159,52 @@ SyncPoller, Void> beginDelete( void delete(String resourceGroupName, String partnerNamespaceName, String channelName, Context context); /** - * Synchronously updates a channel with the specified parameters. + * Update a Channel. + * + *

Synchronously updates a channel with the specified parameters. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. * @param channelName Name of the channel. * @param channelUpdateParameters Channel update information. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - void update( + Response updateWithResponse( String resourceGroupName, String partnerNamespaceName, String channelName, - ChannelUpdateParameters channelUpdateParameters); + ChannelUpdateParameters channelUpdateParameters, + Context context); /** - * Synchronously updates a channel with the specified parameters. + * Update a Channel. + * + *

Synchronously updates a channel with the specified parameters. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. * @param channelName Name of the channel. * @param channelUpdateParameters Channel update information. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response updateWithResponse( + void update( String resourceGroupName, String partnerNamespaceName, String channelName, - ChannelUpdateParameters channelUpdateParameters, - Context context); + ChannelUpdateParameters channelUpdateParameters); /** - * List all the channels in a partner namespace. + * List channels. + * + *

List all the channels in a partner namespace. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -195,7 +217,9 @@ Response updateWithResponse( PagedIterable listByPartnerNamespace(String resourceGroupName, String partnerNamespaceName); /** - * List all the channels in a partner namespace. + * List channels. + * + *

List all the channels in a partner namespace. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -218,32 +242,36 @@ PagedIterable listByPartnerNamespace( String resourceGroupName, String partnerNamespaceName, String filter, Integer top, Context context); /** - * Get the full endpoint URL of a partner destination channel. + * Get full URL of partner destination channel. + * + *

Get the full endpoint URL of a partner destination channel. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. * @param channelName Name of the Channel. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the full endpoint URL of a partner destination channel. + * @return the full endpoint URL of a partner destination channel along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - EventSubscriptionFullUrlInner getFullUrl(String resourceGroupName, String partnerNamespaceName, String channelName); + Response getFullUrlWithResponse( + String resourceGroupName, String partnerNamespaceName, String channelName, Context context); /** - * Get the full endpoint URL of a partner destination channel. + * Get full URL of partner destination channel. + * + *

Get the full endpoint URL of a partner destination channel. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. * @param channelName Name of the Channel. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the full endpoint URL of a partner destination channel along with {@link Response}. + * @return the full endpoint URL of a partner destination channel. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getFullUrlWithResponse( - String resourceGroupName, String partnerNamespaceName, String channelName, Context context); + EventSubscriptionFullUrlInner getFullUrl(String resourceGroupName, String partnerNamespaceName, String channelName); } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/DomainEventSubscriptionsClient.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/DomainEventSubscriptionsClient.java index f2fa0713e5e9..e147853fdddd 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/DomainEventSubscriptionsClient.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/DomainEventSubscriptionsClient.java @@ -19,70 +19,80 @@ /** An instance of this class provides access to all the operations defined in DomainEventSubscriptionsClient. */ public interface DomainEventSubscriptionsClient { /** - * Get all delivery attributes for an event subscription for domain. + * Get delivery attributes for an event subscription for domain. + * + *

Get all delivery attributes for an event subscription for domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain topic. * @param eventSubscriptionName Name of the event subscription. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all delivery attributes for an event subscription for domain. + * @return all delivery attributes for an event subscription for domain along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - DeliveryAttributeListResultInner getDeliveryAttributes( - String resourceGroupName, String domainName, String eventSubscriptionName); + Response getDeliveryAttributesWithResponse( + String resourceGroupName, String domainName, String eventSubscriptionName, Context context); /** - * Get all delivery attributes for an event subscription for domain. + * Get delivery attributes for an event subscription for domain. + * + *

Get all delivery attributes for an event subscription for domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain topic. * @param eventSubscriptionName Name of the event subscription. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all delivery attributes for an event subscription for domain along with {@link Response}. + * @return all delivery attributes for an event subscription for domain. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getDeliveryAttributesWithResponse( - String resourceGroupName, String domainName, String eventSubscriptionName, Context context); + DeliveryAttributeListResultInner getDeliveryAttributes( + String resourceGroupName, String domainName, String eventSubscriptionName); /** - * Get properties of an event subscription of a domain. + * Get an event subscription of a domain. + * + *

Get properties of an event subscription of a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the partner topic. * @param eventSubscriptionName Name of the event subscription to be found. Event subscription names must be between * 3 and 100 characters in length and use alphanumeric letters only. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of an event subscription of a domain. + * @return properties of an event subscription of a domain along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - EventSubscriptionInner get(String resourceGroupName, String domainName, String eventSubscriptionName); + Response getWithResponse( + String resourceGroupName, String domainName, String eventSubscriptionName, Context context); /** - * Get properties of an event subscription of a domain. + * Get an event subscription of a domain. + * + *

Get properties of an event subscription of a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the partner topic. * @param eventSubscriptionName Name of the event subscription to be found. Event subscription names must be between * 3 and 100 characters in length and use alphanumeric letters only. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of an event subscription of a domain along with {@link Response}. + * @return properties of an event subscription of a domain. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String domainName, String eventSubscriptionName, Context context); + EventSubscriptionInner get(String resourceGroupName, String domainName, String eventSubscriptionName); /** - * Asynchronously creates a new event subscription or updates an existing event subscription. + * Create or update an event subscription to a domain. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain topic. @@ -102,7 +112,9 @@ SyncPoller, EventSubscriptionInner> beginCrea EventSubscriptionInner eventSubscriptionInfo); /** - * Asynchronously creates a new event subscription or updates an existing event subscription. + * Create or update an event subscription to a domain. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain topic. @@ -124,7 +136,9 @@ SyncPoller, EventSubscriptionInner> beginCrea Context context); /** - * Asynchronously creates a new event subscription or updates an existing event subscription. + * Create or update an event subscription to a domain. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain topic. @@ -144,7 +158,9 @@ EventSubscriptionInner createOrUpdate( EventSubscriptionInner eventSubscriptionInfo); /** - * Asynchronously creates a new event subscription or updates an existing event subscription. + * Create or update an event subscription to a domain. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain topic. @@ -166,7 +182,9 @@ EventSubscriptionInner createOrUpdate( Context context); /** - * Delete an existing event subscription for a domain. + * Delete an event subscription for a domain. + * + *

Delete an existing event subscription for a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -182,7 +200,9 @@ SyncPoller, Void> beginDelete( String resourceGroupName, String domainName, String eventSubscriptionName); /** - * Delete an existing event subscription for a domain. + * Delete an event subscription for a domain. + * + *

Delete an existing event subscription for a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -199,7 +219,9 @@ SyncPoller, Void> beginDelete( String resourceGroupName, String domainName, String eventSubscriptionName, Context context); /** - * Delete an existing event subscription for a domain. + * Delete an event subscription for a domain. + * + *

Delete an existing event subscription for a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -213,7 +235,9 @@ SyncPoller, Void> beginDelete( void delete(String resourceGroupName, String domainName, String eventSubscriptionName); /** - * Delete an existing event subscription for a domain. + * Delete an event subscription for a domain. + * + *

Delete an existing event subscription for a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -228,7 +252,9 @@ SyncPoller, Void> beginDelete( void delete(String resourceGroupName, String domainName, String eventSubscriptionName, Context context); /** - * Update an existing event subscription for a topic. + * Update an event subscription for a domain. + * + *

Update an existing event subscription for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -247,7 +273,9 @@ SyncPoller, EventSubscriptionInner> beginUpda EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters); /** - * Update an existing event subscription for a topic. + * Update an event subscription for a domain. + * + *

Update an existing event subscription for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -268,7 +296,9 @@ SyncPoller, EventSubscriptionInner> beginUpda Context context); /** - * Update an existing event subscription for a topic. + * Update an event subscription for a domain. + * + *

Update an existing event subscription for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -287,7 +317,9 @@ EventSubscriptionInner update( EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters); /** - * Update an existing event subscription for a topic. + * Update an event subscription for a domain. + * + *

Update an existing event subscription for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -308,37 +340,43 @@ EventSubscriptionInner update( Context context); /** - * Get the full endpoint URL for an event subscription for domain. + * Get full URL of an event subscription for domain. + * + *

Get the full endpoint URL for an event subscription for domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain topic. * @param eventSubscriptionName Name of the event subscription. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the full endpoint URL for an event subscription for domain. + * @return the full endpoint URL for an event subscription for domain along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - EventSubscriptionFullUrlInner getFullUrl(String resourceGroupName, String domainName, String eventSubscriptionName); + Response getFullUrlWithResponse( + String resourceGroupName, String domainName, String eventSubscriptionName, Context context); /** - * Get the full endpoint URL for an event subscription for domain. + * Get full URL of an event subscription for domain. + * + *

Get the full endpoint URL for an event subscription for domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain topic. * @param eventSubscriptionName Name of the event subscription. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the full endpoint URL for an event subscription for domain along with {@link Response}. + * @return the full endpoint URL for an event subscription for domain. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getFullUrlWithResponse( - String resourceGroupName, String domainName, String eventSubscriptionName, Context context); + EventSubscriptionFullUrlInner getFullUrl(String resourceGroupName, String domainName, String eventSubscriptionName); /** - * List all event subscriptions that have been created for a specific topic. + * List all event subscriptions for a specific domain. + * + *

List all event subscriptions that have been created for a specific topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -351,7 +389,9 @@ Response getFullUrlWithResponse( PagedIterable list(String resourceGroupName, String domainName); /** - * List all event subscriptions that have been created for a specific topic. + * List all event subscriptions for a specific domain. + * + *

List all event subscriptions that have been created for a specific topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/DomainTopicEventSubscriptionsClient.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/DomainTopicEventSubscriptionsClient.java index 22ed96214abf..4e6b925192d4 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/DomainTopicEventSubscriptionsClient.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/DomainTopicEventSubscriptionsClient.java @@ -19,40 +19,46 @@ /** An instance of this class provides access to all the operations defined in DomainTopicEventSubscriptionsClient. */ public interface DomainTopicEventSubscriptionsClient { /** - * Get properties of a nested event subscription for a domain topic. + * Get a nested event subscription for domain topic. + * + *

Get properties of a nested event subscription for a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. * @param topicName Name of the domain topic. * @param eventSubscriptionName Name of the event subscription. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a nested event subscription for a domain topic. + * @return properties of a nested event subscription for a domain topic along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - EventSubscriptionInner get( - String resourceGroupName, String domainName, String topicName, String eventSubscriptionName); + Response getWithResponse( + String resourceGroupName, String domainName, String topicName, String eventSubscriptionName, Context context); /** - * Get properties of a nested event subscription for a domain topic. + * Get a nested event subscription for domain topic. + * + *

Get properties of a nested event subscription for a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. * @param topicName Name of the domain topic. * @param eventSubscriptionName Name of the event subscription. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a nested event subscription for a domain topic along with {@link Response}. + * @return properties of a nested event subscription for a domain topic. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String domainName, String topicName, String eventSubscriptionName, Context context); + EventSubscriptionInner get( + String resourceGroupName, String domainName, String topicName, String eventSubscriptionName); /** - * Asynchronously creates a new event subscription or updates an existing event subscription. + * Create or update a nested event subscription to a domain topic. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -74,7 +80,9 @@ SyncPoller, EventSubscriptionInner> beginCrea EventSubscriptionInner eventSubscriptionInfo); /** - * Asynchronously creates a new event subscription or updates an existing event subscription. + * Create or update a nested event subscription to a domain topic. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -98,7 +106,9 @@ SyncPoller, EventSubscriptionInner> beginCrea Context context); /** - * Asynchronously creates a new event subscription or updates an existing event subscription. + * Create or update a nested event subscription to a domain topic. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -120,7 +130,9 @@ EventSubscriptionInner createOrUpdate( EventSubscriptionInner eventSubscriptionInfo); /** - * Asynchronously creates a new event subscription or updates an existing event subscription. + * Create or update a nested event subscription to a domain topic. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -144,7 +156,9 @@ EventSubscriptionInner createOrUpdate( Context context); /** - * Delete a nested existing event subscription for a domain topic. + * Delete a nested event subscription for a domain topic. + * + *

Delete a nested existing event subscription for a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -161,7 +175,9 @@ SyncPoller, Void> beginDelete( String resourceGroupName, String domainName, String topicName, String eventSubscriptionName); /** - * Delete a nested existing event subscription for a domain topic. + * Delete a nested event subscription for a domain topic. + * + *

Delete a nested existing event subscription for a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -179,7 +195,9 @@ SyncPoller, Void> beginDelete( String resourceGroupName, String domainName, String topicName, String eventSubscriptionName, Context context); /** - * Delete a nested existing event subscription for a domain topic. + * Delete a nested event subscription for a domain topic. + * + *

Delete a nested existing event subscription for a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -194,7 +212,9 @@ SyncPoller, Void> beginDelete( void delete(String resourceGroupName, String domainName, String topicName, String eventSubscriptionName); /** - * Delete a nested existing event subscription for a domain topic. + * Delete a nested event subscription for a domain topic. + * + *

Delete a nested existing event subscription for a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -211,7 +231,9 @@ void delete( String resourceGroupName, String domainName, String topicName, String eventSubscriptionName, Context context); /** - * Update an existing event subscription for a domain topic. + * Update a nested event subscription for a domain topic. + * + *

Update an existing event subscription for a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -232,7 +254,9 @@ SyncPoller, EventSubscriptionInner> beginUpda EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters); /** - * Update an existing event subscription for a domain topic. + * Update a nested event subscription for a domain topic. + * + *

Update an existing event subscription for a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -255,7 +279,9 @@ SyncPoller, EventSubscriptionInner> beginUpda Context context); /** - * Update an existing event subscription for a domain topic. + * Update a nested event subscription for a domain topic. + * + *

Update an existing event subscription for a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -276,7 +302,9 @@ EventSubscriptionInner update( EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters); /** - * Update an existing event subscription for a domain topic. + * Update a nested event subscription for a domain topic. + * + *

Update an existing event subscription for a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -299,40 +327,46 @@ EventSubscriptionInner update( Context context); /** - * Get the full endpoint URL for a nested event subscription for domain topic. + * Get full URL of a nested event subscription for domain topic. + * + *

Get the full endpoint URL for a nested event subscription for domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. * @param topicName Name of the domain topic. * @param eventSubscriptionName Name of the event subscription. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the full endpoint URL for a nested event subscription for domain topic. + * @return the full endpoint URL for a nested event subscription for domain topic along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - EventSubscriptionFullUrlInner getFullUrl( - String resourceGroupName, String domainName, String topicName, String eventSubscriptionName); + Response getFullUrlWithResponse( + String resourceGroupName, String domainName, String topicName, String eventSubscriptionName, Context context); /** - * Get the full endpoint URL for a nested event subscription for domain topic. + * Get full URL of a nested event subscription for domain topic. + * + *

Get the full endpoint URL for a nested event subscription for domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. * @param topicName Name of the domain topic. * @param eventSubscriptionName Name of the event subscription. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the full endpoint URL for a nested event subscription for domain topic along with {@link Response}. + * @return the full endpoint URL for a nested event subscription for domain topic. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getFullUrlWithResponse( - String resourceGroupName, String domainName, String topicName, String eventSubscriptionName, Context context); + EventSubscriptionFullUrlInner getFullUrl( + String resourceGroupName, String domainName, String topicName, String eventSubscriptionName); /** - * List all event subscriptions that have been created for a specific domain topic. + * List all nested event subscriptions for a specific domain topic. + * + *

List all event subscriptions that have been created for a specific domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -346,7 +380,9 @@ Response getFullUrlWithResponse( PagedIterable list(String resourceGroupName, String domainName, String topicName); /** - * List all event subscriptions that have been created for a specific domain topic. + * List all nested event subscriptions for a specific domain topic. + * + *

List all event subscriptions that have been created for a specific domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -370,35 +406,39 @@ PagedIterable list( String resourceGroupName, String domainName, String topicName, String filter, Integer top, Context context); /** - * Get all delivery attributes for an event subscription for domain topic. + * Get delivery attributes for an event subscription for domain topic. + * + *

Get all delivery attributes for an event subscription for domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. * @param topicName Name of the domain topic. * @param eventSubscriptionName Name of the event subscription. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all delivery attributes for an event subscription for domain topic. + * @return all delivery attributes for an event subscription for domain topic along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - DeliveryAttributeListResultInner getDeliveryAttributes( - String resourceGroupName, String domainName, String topicName, String eventSubscriptionName); + Response getDeliveryAttributesWithResponse( + String resourceGroupName, String domainName, String topicName, String eventSubscriptionName, Context context); /** - * Get all delivery attributes for an event subscription for domain topic. + * Get delivery attributes for an event subscription for domain topic. + * + *

Get all delivery attributes for an event subscription for domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. * @param topicName Name of the domain topic. * @param eventSubscriptionName Name of the event subscription. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all delivery attributes for an event subscription for domain topic along with {@link Response}. + * @return all delivery attributes for an event subscription for domain topic. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getDeliveryAttributesWithResponse( - String resourceGroupName, String domainName, String topicName, String eventSubscriptionName, Context context); + DeliveryAttributeListResultInner getDeliveryAttributes( + String resourceGroupName, String domainName, String topicName, String eventSubscriptionName); } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/DomainTopicsClient.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/DomainTopicsClient.java index c6625686bb81..f016c2c71785 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/DomainTopicsClient.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/DomainTopicsClient.java @@ -16,37 +16,43 @@ /** An instance of this class provides access to all the operations defined in DomainTopicsClient. */ public interface DomainTopicsClient { /** - * Get properties of a domain topic. + * Get a domain topic. + * + *

Get properties of a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. * @param domainTopicName Name of the topic. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a domain topic. + * @return properties of a domain topic along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - DomainTopicInner get(String resourceGroupName, String domainName, String domainTopicName); + Response getWithResponse( + String resourceGroupName, String domainName, String domainTopicName, Context context); /** - * Get properties of a domain topic. + * Get a domain topic. + * + *

Get properties of a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. * @param domainTopicName Name of the topic. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a domain topic along with {@link Response}. + * @return properties of a domain topic. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String domainName, String domainTopicName, Context context); + DomainTopicInner get(String resourceGroupName, String domainName, String domainTopicName); /** - * Asynchronously creates or updates a new domain topic with the specified parameters. + * Create or update a domain topic. + * + *

Asynchronously creates or updates a new domain topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -61,7 +67,9 @@ SyncPoller, DomainTopicInner> beginCreateOrUpdate( String resourceGroupName, String domainName, String domainTopicName); /** - * Asynchronously creates or updates a new domain topic with the specified parameters. + * Create or update a domain topic. + * + *

Asynchronously creates or updates a new domain topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -77,7 +85,9 @@ SyncPoller, DomainTopicInner> beginCreateOrUpdate( String resourceGroupName, String domainName, String domainTopicName, Context context); /** - * Asynchronously creates or updates a new domain topic with the specified parameters. + * Create or update a domain topic. + * + *

Asynchronously creates or updates a new domain topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -91,7 +101,9 @@ SyncPoller, DomainTopicInner> beginCreateOrUpdate( DomainTopicInner createOrUpdate(String resourceGroupName, String domainName, String domainTopicName); /** - * Asynchronously creates or updates a new domain topic with the specified parameters. + * Create or update a domain topic. + * + *

Asynchronously creates or updates a new domain topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -107,7 +119,9 @@ DomainTopicInner createOrUpdate( String resourceGroupName, String domainName, String domainTopicName, Context context); /** - * Delete existing domain topic. + * Delete a domain topic. + * + *

Delete existing domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -121,7 +135,9 @@ DomainTopicInner createOrUpdate( SyncPoller, Void> beginDelete(String resourceGroupName, String domainName, String domainTopicName); /** - * Delete existing domain topic. + * Delete a domain topic. + * + *

Delete existing domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -137,7 +153,9 @@ SyncPoller, Void> beginDelete( String resourceGroupName, String domainName, String domainTopicName, Context context); /** - * Delete existing domain topic. + * Delete a domain topic. + * + *

Delete existing domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -150,7 +168,9 @@ SyncPoller, Void> beginDelete( void delete(String resourceGroupName, String domainName, String domainTopicName); /** - * Delete existing domain topic. + * Delete a domain topic. + * + *

Delete existing domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -164,7 +184,9 @@ SyncPoller, Void> beginDelete( void delete(String resourceGroupName, String domainName, String domainTopicName, Context context); /** - * List all the topics in a domain. + * List domain topics. + * + *

List all the topics in a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Domain name. @@ -177,7 +199,9 @@ SyncPoller, Void> beginDelete( PagedIterable listByDomain(String resourceGroupName, String domainName); /** - * List all the topics in a domain. + * List domain topics. + * + *

List all the topics in a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Domain name. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/DomainsClient.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/DomainsClient.java index 12abdb9e3f26..c10bc74b0a90 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/DomainsClient.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/DomainsClient.java @@ -19,34 +19,40 @@ /** An instance of this class provides access to all the operations defined in DomainsClient. */ public interface DomainsClient { /** - * Get properties of a domain. + * Get a domain. + * + *

Get properties of a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a domain. + * @return properties of a domain along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - DomainInner getByResourceGroup(String resourceGroupName, String domainName); + Response getByResourceGroupWithResponse(String resourceGroupName, String domainName, Context context); /** - * Get properties of a domain. + * Get a domain. + * + *

Get properties of a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a domain along with {@link Response}. + * @return properties of a domain. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse(String resourceGroupName, String domainName, Context context); + DomainInner getByResourceGroup(String resourceGroupName, String domainName); /** - * Asynchronously creates or updates a new domain with the specified parameters. + * Create or update a domain. + * + *

Asynchronously creates or updates a new domain with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -61,7 +67,9 @@ SyncPoller, DomainInner> beginCreateOrUpdate( String resourceGroupName, String domainName, DomainInner domainInfo); /** - * Asynchronously creates or updates a new domain with the specified parameters. + * Create or update a domain. + * + *

Asynchronously creates or updates a new domain with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -77,7 +85,9 @@ SyncPoller, DomainInner> beginCreateOrUpdate( String resourceGroupName, String domainName, DomainInner domainInfo, Context context); /** - * Asynchronously creates or updates a new domain with the specified parameters. + * Create or update a domain. + * + *

Asynchronously creates or updates a new domain with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -91,7 +101,9 @@ SyncPoller, DomainInner> beginCreateOrUpdate( DomainInner createOrUpdate(String resourceGroupName, String domainName, DomainInner domainInfo); /** - * Asynchronously creates or updates a new domain with the specified parameters. + * Create or update a domain. + * + *

Asynchronously creates or updates a new domain with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -106,7 +118,9 @@ SyncPoller, DomainInner> beginCreateOrUpdate( DomainInner createOrUpdate(String resourceGroupName, String domainName, DomainInner domainInfo, Context context); /** - * Delete existing domain. + * Delete a domain. + * + *

Delete existing domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -119,7 +133,9 @@ SyncPoller, DomainInner> beginCreateOrUpdate( SyncPoller, Void> beginDelete(String resourceGroupName, String domainName); /** - * Delete existing domain. + * Delete a domain. + * + *

Delete existing domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -133,7 +149,9 @@ SyncPoller, DomainInner> beginCreateOrUpdate( SyncPoller, Void> beginDelete(String resourceGroupName, String domainName, Context context); /** - * Delete existing domain. + * Delete a domain. + * + *

Delete existing domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -145,7 +163,9 @@ SyncPoller, DomainInner> beginCreateOrUpdate( void delete(String resourceGroupName, String domainName); /** - * Delete existing domain. + * Delete a domain. + * + *

Delete existing domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -158,7 +178,9 @@ SyncPoller, DomainInner> beginCreateOrUpdate( void delete(String resourceGroupName, String domainName, Context context); /** - * Asynchronously updates a domain with the specified parameters. + * Update a domain. + * + *

Asynchronously updates a domain with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -173,7 +195,9 @@ SyncPoller, DomainInner> beginUpdate( String resourceGroupName, String domainName, DomainUpdateParameters domainUpdateParameters); /** - * Asynchronously updates a domain with the specified parameters. + * Update a domain. + * + *

Asynchronously updates a domain with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -189,7 +213,9 @@ SyncPoller, DomainInner> beginUpdate( String resourceGroupName, String domainName, DomainUpdateParameters domainUpdateParameters, Context context); /** - * Asynchronously updates a domain with the specified parameters. + * Update a domain. + * + *

Asynchronously updates a domain with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -203,7 +229,9 @@ SyncPoller, DomainInner> beginUpdate( DomainInner update(String resourceGroupName, String domainName, DomainUpdateParameters domainUpdateParameters); /** - * Asynchronously updates a domain with the specified parameters. + * Update a domain. + * + *

Asynchronously updates a domain with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -219,7 +247,9 @@ DomainInner update( String resourceGroupName, String domainName, DomainUpdateParameters domainUpdateParameters, Context context); /** - * List all the domains under an Azure subscription. + * List domains under an Azure subscription. + * + *

List all the domains under an Azure subscription. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -229,7 +259,9 @@ DomainInner update( PagedIterable list(); /** - * List all the domains under an Azure subscription. + * List domains under an Azure subscription. + * + *

List all the domains under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -249,7 +281,9 @@ DomainInner update( PagedIterable list(String filter, Integer top, Context context); /** - * List all the domains under a resource group. + * List domains under a resource group. + * + *

List all the domains under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -261,7 +295,9 @@ DomainInner update( PagedIterable listByResourceGroup(String resourceGroupName); /** - * List all the domains under a resource group. + * List domains under a resource group. + * + *

List all the domains under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -283,61 +319,69 @@ PagedIterable listByResourceGroup( String resourceGroupName, String filter, Integer top, Context context); /** - * List the two keys used to publish to a domain. + * List keys for a domain. + * + *

List the two keys used to publish to a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return shared access keys of the Domain. + * @return shared access keys of the Domain along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - DomainSharedAccessKeysInner listSharedAccessKeys(String resourceGroupName, String domainName); + Response listSharedAccessKeysWithResponse( + String resourceGroupName, String domainName, Context context); /** - * List the two keys used to publish to a domain. + * List keys for a domain. + * + *

List the two keys used to publish to a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return shared access keys of the Domain along with {@link Response}. + * @return shared access keys of the Domain. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response listSharedAccessKeysWithResponse( - String resourceGroupName, String domainName, Context context); + DomainSharedAccessKeysInner listSharedAccessKeys(String resourceGroupName, String domainName); /** - * Regenerate a shared access key for a domain. + * Regenerate key for a domain. + * + *

Regenerate a shared access key for a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. * @param regenerateKeyRequest Request body to regenerate key. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return shared access keys of the Domain. + * @return shared access keys of the Domain along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - DomainSharedAccessKeysInner regenerateKey( - String resourceGroupName, String domainName, DomainRegenerateKeyRequest regenerateKeyRequest); + Response regenerateKeyWithResponse( + String resourceGroupName, String domainName, DomainRegenerateKeyRequest regenerateKeyRequest, Context context); /** - * Regenerate a shared access key for a domain. + * Regenerate key for a domain. + * + *

Regenerate a shared access key for a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. * @param regenerateKeyRequest Request body to regenerate key. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return shared access keys of the Domain along with {@link Response}. + * @return shared access keys of the Domain. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response regenerateKeyWithResponse( - String resourceGroupName, String domainName, DomainRegenerateKeyRequest regenerateKeyRequest, Context context); + DomainSharedAccessKeysInner regenerateKey( + String resourceGroupName, String domainName, DomainRegenerateKeyRequest regenerateKeyRequest); } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/EventSubscriptionsClient.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/EventSubscriptionsClient.java index fd29a6bdf528..edd94a5f202b 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/EventSubscriptionsClient.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/EventSubscriptionsClient.java @@ -19,7 +19,9 @@ /** An instance of this class provides access to all the operations defined in EventSubscriptionsClient. */ public interface EventSubscriptionsClient { /** - * Get properties of an event subscription. + * Get an event subscription. + * + *

Get properties of an event subscription. * * @param scope The scope of the event subscription. The scope can be a subscription, or a resource group, or a top * level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -30,16 +32,19 @@ public interface EventSubscriptionsClient { * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' * for an EventGrid topic. * @param eventSubscriptionName Name of the event subscription. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of an event subscription. + * @return properties of an event subscription along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - EventSubscriptionInner get(String scope, String eventSubscriptionName); + Response getWithResponse(String scope, String eventSubscriptionName, Context context); /** - * Get properties of an event subscription. + * Get an event subscription. + * + *

Get properties of an event subscription. * * @param scope The scope of the event subscription. The scope can be a subscription, or a resource group, or a top * level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -50,18 +55,19 @@ public interface EventSubscriptionsClient { * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' * for an EventGrid topic. * @param eventSubscriptionName Name of the event subscription. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of an event subscription along with {@link Response}. + * @return properties of an event subscription. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String scope, String eventSubscriptionName, Context context); + EventSubscriptionInner get(String scope, String eventSubscriptionName); /** - * Asynchronously creates a new event subscription or updates an existing event subscription based on the specified - * scope. + * Create or update an event subscription. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription based on the + * specified scope. * * @param scope The identifier of the resource to which the event subscription needs to be created or updated. The * scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider @@ -84,8 +90,10 @@ SyncPoller, EventSubscriptionInner> beginCrea String scope, String eventSubscriptionName, EventSubscriptionInner eventSubscriptionInfo); /** - * Asynchronously creates a new event subscription or updates an existing event subscription based on the specified - * scope. + * Create or update an event subscription. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription based on the + * specified scope. * * @param scope The identifier of the resource to which the event subscription needs to be created or updated. The * scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider @@ -109,8 +117,10 @@ SyncPoller, EventSubscriptionInner> beginCrea String scope, String eventSubscriptionName, EventSubscriptionInner eventSubscriptionInfo, Context context); /** - * Asynchronously creates a new event subscription or updates an existing event subscription based on the specified - * scope. + * Create or update an event subscription. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription based on the + * specified scope. * * @param scope The identifier of the resource to which the event subscription needs to be created or updated. The * scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider @@ -133,8 +143,10 @@ EventSubscriptionInner createOrUpdate( String scope, String eventSubscriptionName, EventSubscriptionInner eventSubscriptionInfo); /** - * Asynchronously creates a new event subscription or updates an existing event subscription based on the specified - * scope. + * Create or update an event subscription. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription based on the + * specified scope. * * @param scope The identifier of the resource to which the event subscription needs to be created or updated. The * scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider @@ -158,7 +170,9 @@ EventSubscriptionInner createOrUpdate( String scope, String eventSubscriptionName, EventSubscriptionInner eventSubscriptionInfo, Context context); /** - * Delete an existing event subscription. + * Delete an event subscription. + * + *

Delete an existing event subscription. * * @param scope The scope of the event subscription. The scope can be a subscription, or a resource group, or a top * level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -178,7 +192,9 @@ EventSubscriptionInner createOrUpdate( SyncPoller, Void> beginDelete(String scope, String eventSubscriptionName); /** - * Delete an existing event subscription. + * Delete an event subscription. + * + *

Delete an existing event subscription. * * @param scope The scope of the event subscription. The scope can be a subscription, or a resource group, or a top * level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -199,7 +215,9 @@ EventSubscriptionInner createOrUpdate( SyncPoller, Void> beginDelete(String scope, String eventSubscriptionName, Context context); /** - * Delete an existing event subscription. + * Delete an event subscription. + * + *

Delete an existing event subscription. * * @param scope The scope of the event subscription. The scope can be a subscription, or a resource group, or a top * level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -218,7 +236,9 @@ EventSubscriptionInner createOrUpdate( void delete(String scope, String eventSubscriptionName); /** - * Delete an existing event subscription. + * Delete an event subscription. + * + *

Delete an existing event subscription. * * @param scope The scope of the event subscription. The scope can be a subscription, or a resource group, or a top * level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -238,7 +258,9 @@ EventSubscriptionInner createOrUpdate( void delete(String scope, String eventSubscriptionName, Context context); /** - * Asynchronously updates an existing event subscription. + * Update an event subscription. + * + *

Asynchronously updates an existing event subscription. * * @param scope The scope of existing event subscription. The scope can be a subscription, or a resource group, or a * top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -262,7 +284,9 @@ SyncPoller, EventSubscriptionInner> beginUpda EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters); /** - * Asynchronously updates an existing event subscription. + * Update an event subscription. + * + *

Asynchronously updates an existing event subscription. * * @param scope The scope of existing event subscription. The scope can be a subscription, or a resource group, or a * top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -288,7 +312,9 @@ SyncPoller, EventSubscriptionInner> beginUpda Context context); /** - * Asynchronously updates an existing event subscription. + * Update an event subscription. + * + *

Asynchronously updates an existing event subscription. * * @param scope The scope of existing event subscription. The scope can be a subscription, or a resource group, or a * top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -312,7 +338,9 @@ EventSubscriptionInner update( EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters); /** - * Asynchronously updates an existing event subscription. + * Update an event subscription. + * + *

Asynchronously updates an existing event subscription. * * @param scope The scope of existing event subscription. The scope can be a subscription, or a resource group, or a * top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -338,7 +366,9 @@ EventSubscriptionInner update( Context context); /** - * Get the full endpoint URL for an event subscription. + * Get full URL of an event subscription. + * + *

Get the full endpoint URL for an event subscription. * * @param scope The scope of the event subscription. The scope can be a subscription, or a resource group, or a top * level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -349,16 +379,20 @@ EventSubscriptionInner update( * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' * for an EventGrid topic. * @param eventSubscriptionName Name of the event subscription. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the full endpoint URL for an event subscription. + * @return the full endpoint URL for an event subscription along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - EventSubscriptionFullUrlInner getFullUrl(String scope, String eventSubscriptionName); + Response getFullUrlWithResponse( + String scope, String eventSubscriptionName, Context context); /** - * Get the full endpoint URL for an event subscription. + * Get full URL of an event subscription. + * + *

Get the full endpoint URL for an event subscription. * * @param scope The scope of the event subscription. The scope can be a subscription, or a resource group, or a top * level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -369,18 +403,18 @@ EventSubscriptionInner update( * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' * for an EventGrid topic. * @param eventSubscriptionName Name of the event subscription. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the full endpoint URL for an event subscription along with {@link Response}. + * @return the full endpoint URL for an event subscription. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getFullUrlWithResponse( - String scope, String eventSubscriptionName, Context context); + EventSubscriptionFullUrlInner getFullUrl(String scope, String eventSubscriptionName); /** - * List all aggregated global event subscriptions under a specific Azure subscription. + * Get an aggregated list of all global event subscriptions under an Azure subscription. + * + *

List all aggregated global event subscriptions under a specific Azure subscription. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -390,7 +424,9 @@ Response getFullUrlWithResponse( PagedIterable list(); /** - * List all aggregated global event subscriptions under a specific Azure subscription. + * Get an aggregated list of all global event subscriptions under an Azure subscription. + * + *

List all aggregated global event subscriptions under a specific Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -410,7 +446,9 @@ Response getFullUrlWithResponse( PagedIterable list(String filter, Integer top, Context context); /** - * List all global event subscriptions under an Azure subscription for a topic type. + * List all global event subscriptions for a topic type. + * + *

List all global event subscriptions under an Azure subscription for a topic type. * * @param topicTypeName Name of the topic type. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -422,7 +460,9 @@ Response getFullUrlWithResponse( PagedIterable listGlobalBySubscriptionForTopicType(String topicTypeName); /** - * List all global event subscriptions under an Azure subscription for a topic type. + * List all global event subscriptions for a topic type. + * + *

List all global event subscriptions under an Azure subscription for a topic type. * * @param topicTypeName Name of the topic type. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -444,7 +484,9 @@ PagedIterable listGlobalBySubscriptionForTopicType( String topicTypeName, String filter, Integer top, Context context); /** - * List all global event subscriptions under a specific Azure subscription and resource group. + * List all global event subscriptions under an Azure subscription and resource group. + * + *

List all global event subscriptions under a specific Azure subscription and resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -456,7 +498,9 @@ PagedIterable listGlobalBySubscriptionForTopicType( PagedIterable listByResourceGroup(String resourceGroupName); /** - * List all global event subscriptions under a specific Azure subscription and resource group. + * List all global event subscriptions under an Azure subscription and resource group. + * + *

List all global event subscriptions under a specific Azure subscription and resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -478,7 +522,9 @@ PagedIterable listByResourceGroup( String resourceGroupName, String filter, Integer top, Context context); /** - * List all global event subscriptions under a resource group for a specific topic type. + * List all global event subscriptions under a resource group for a topic type. + * + *

List all global event subscriptions under a resource group for a specific topic type. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicTypeName Name of the topic type. @@ -492,7 +538,9 @@ PagedIterable listGlobalByResourceGroupForTopicType( String resourceGroupName, String topicTypeName); /** - * List all global event subscriptions under a resource group for a specific topic type. + * List all global event subscriptions under a resource group for a topic type. + * + *

List all global event subscriptions under a resource group for a specific topic type. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicTypeName Name of the topic type. @@ -515,7 +563,9 @@ PagedIterable listGlobalByResourceGroupForTopicType( String resourceGroupName, String topicTypeName, String filter, Integer top, Context context); /** - * List all event subscriptions from the given location under a specific Azure subscription. + * List all regional event subscriptions under an Azure subscription. + * + *

List all event subscriptions from the given location under a specific Azure subscription. * * @param location Name of the location. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -527,7 +577,9 @@ PagedIterable listGlobalByResourceGroupForTopicType( PagedIterable listRegionalBySubscription(String location); /** - * List all event subscriptions from the given location under a specific Azure subscription. + * List all regional event subscriptions under an Azure subscription. + * + *

List all event subscriptions from the given location under a specific Azure subscription. * * @param location Name of the location. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -549,7 +601,9 @@ PagedIterable listRegionalBySubscription( String location, String filter, Integer top, Context context); /** - * List all event subscriptions from the given location under a specific Azure subscription and resource group. + * List all regional event subscriptions under an Azure subscription and resource group. + * + *

List all event subscriptions from the given location under a specific Azure subscription and resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param location Name of the location. @@ -562,7 +616,9 @@ PagedIterable listRegionalBySubscription( PagedIterable listRegionalByResourceGroup(String resourceGroupName, String location); /** - * List all event subscriptions from the given location under a specific Azure subscription and resource group. + * List all regional event subscriptions under an Azure subscription and resource group. + * + *

List all event subscriptions from the given location under a specific Azure subscription and resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param location Name of the location. @@ -585,7 +641,9 @@ PagedIterable listRegionalByResourceGroup( String resourceGroupName, String location, String filter, Integer top, Context context); /** - * List all event subscriptions from the given location under a specific Azure subscription and topic type. + * List all regional event subscriptions under an Azure subscription for a topic type. + * + *

List all event subscriptions from the given location under a specific Azure subscription and topic type. * * @param location Name of the location. * @param topicTypeName Name of the topic type. @@ -598,7 +656,9 @@ PagedIterable listRegionalByResourceGroup( PagedIterable listRegionalBySubscriptionForTopicType(String location, String topicTypeName); /** - * List all event subscriptions from the given location under a specific Azure subscription and topic type. + * List all regional event subscriptions under an Azure subscription for a topic type. + * + *

List all event subscriptions from the given location under a specific Azure subscription and topic type. * * @param location Name of the location. * @param topicTypeName Name of the topic type. @@ -621,8 +681,10 @@ PagedIterable listRegionalBySubscriptionForTopicType( String location, String topicTypeName, String filter, Integer top, Context context); /** - * List all event subscriptions from the given location under a specific Azure subscription and resource group and - * topic type. + * List all regional event subscriptions under an Azure subscription and resource group for a topic type. + * + *

List all event subscriptions from the given location under a specific Azure subscription and resource group + * and topic type. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param location Name of the location. @@ -637,8 +699,10 @@ PagedIterable listRegionalByResourceGroupForTopicType( String resourceGroupName, String location, String topicTypeName); /** - * List all event subscriptions from the given location under a specific Azure subscription and resource group and - * topic type. + * List all regional event subscriptions under an Azure subscription and resource group for a topic type. + * + *

List all event subscriptions from the given location under a specific Azure subscription and resource group + * and topic type. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param location Name of the location. @@ -662,7 +726,9 @@ PagedIterable listRegionalByResourceGroupForTopicType( String resourceGroupName, String location, String topicTypeName, String filter, Integer top, Context context); /** - * List all event subscriptions that have been created for a specific resource. + * List all event subscriptions. + * + *

List all event subscriptions that have been created for a specific resource. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param providerNamespace Namespace of the provider of the topic. @@ -678,7 +744,9 @@ PagedIterable listByResource( String resourceGroupName, String providerNamespace, String resourceTypeName, String resourceName); /** - * List all event subscriptions that have been created for a specific resource. + * List all event subscriptions. + * + *

List all event subscriptions that have been created for a specific resource. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param providerNamespace Namespace of the provider of the topic. @@ -709,7 +777,9 @@ PagedIterable listByResource( Context context); /** - * List all event subscriptions that have been created for a specific domain topic. + * List all event subscriptions for a specific domain topic. + * + *

List all event subscriptions that have been created for a specific domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -724,7 +794,9 @@ PagedIterable listByDomainTopic( String resourceGroupName, String domainName, String topicName); /** - * List all event subscriptions that have been created for a specific domain topic. + * List all event subscriptions for a specific domain topic. + * + *

List all event subscriptions that have been created for a specific domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -748,7 +820,9 @@ PagedIterable listByDomainTopic( String resourceGroupName, String domainName, String topicName, String filter, Integer top, Context context); /** - * Get all delivery attributes for an event subscription. + * Get delivery attributes for an event subscription. + * + *

Get all delivery attributes for an event subscription. * * @param scope The scope of the event subscription. The scope can be a subscription, or a resource group, or a top * level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -759,16 +833,20 @@ PagedIterable listByDomainTopic( * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' * for an EventGrid topic. * @param eventSubscriptionName Name of the event subscription. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all delivery attributes for an event subscription. + * @return all delivery attributes for an event subscription along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - DeliveryAttributeListResultInner getDeliveryAttributes(String scope, String eventSubscriptionName); + Response getDeliveryAttributesWithResponse( + String scope, String eventSubscriptionName, Context context); /** - * Get all delivery attributes for an event subscription. + * Get delivery attributes for an event subscription. + * + *

Get all delivery attributes for an event subscription. * * @param scope The scope of the event subscription. The scope can be a subscription, or a resource group, or a top * level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -779,13 +857,11 @@ PagedIterable listByDomainTopic( * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' * for an EventGrid topic. * @param eventSubscriptionName Name of the event subscription. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all delivery attributes for an event subscription along with {@link Response}. + * @return all delivery attributes for an event subscription. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getDeliveryAttributesWithResponse( - String scope, String eventSubscriptionName, Context context); + DeliveryAttributeListResultInner getDeliveryAttributes(String scope, String eventSubscriptionName); } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/ExtensionTopicsClient.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/ExtensionTopicsClient.java index 9f8605ecb3b6..7adb73a9176c 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/ExtensionTopicsClient.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/ExtensionTopicsClient.java @@ -13,7 +13,9 @@ /** An instance of this class provides access to all the operations defined in ExtensionTopicsClient. */ public interface ExtensionTopicsClient { /** - * Get the properties of an extension topic. + * Get properties of an extension topic. + * + *

Get the properties of an extension topic. * * @param scope The identifier of the resource to which extension topic is queried. The scope can be a subscription, * or a resource group, or a top level resource belonging to a resource provider namespace. For example, use @@ -21,16 +23,19 @@ public interface ExtensionTopicsClient { * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' * for Azure resource. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the properties of an extension topic. + * @return the properties of an extension topic along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - ExtensionTopicInner get(String scope); + Response getWithResponse(String scope, Context context); /** - * Get the properties of an extension topic. + * Get properties of an extension topic. + * + *

Get the properties of an extension topic. * * @param scope The identifier of the resource to which extension topic is queried. The scope can be a subscription, * or a resource group, or a top level resource belonging to a resource provider namespace. For example, use @@ -38,12 +43,11 @@ public interface ExtensionTopicsClient { * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' * for Azure resource. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the properties of an extension topic along with {@link Response}. + * @return the properties of an extension topic. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String scope, Context context); + ExtensionTopicInner get(String scope); } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/OperationsClient.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/OperationsClient.java index 6f3f3c3350b7..f491e20d4c67 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/OperationsClient.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/OperationsClient.java @@ -13,7 +13,9 @@ /** An instance of this class provides access to all the operations defined in OperationsClient. */ public interface OperationsClient { /** - * List the available operations supported by the Microsoft.EventGrid resource provider. + * List available operations. + * + *

List the available operations supported by the Microsoft.EventGrid resource provider. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -23,7 +25,9 @@ public interface OperationsClient { PagedIterable list(); /** - * List the available operations supported by the Microsoft.EventGrid resource provider. + * List available operations. + * + *

List the available operations supported by the Microsoft.EventGrid resource provider. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/PartnerConfigurationsClient.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/PartnerConfigurationsClient.java index ec490626321c..b1d1a338a19f 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/PartnerConfigurationsClient.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/PartnerConfigurationsClient.java @@ -18,32 +18,38 @@ /** An instance of this class provides access to all the operations defined in PartnerConfigurationsClient. */ public interface PartnerConfigurationsClient { /** - * Get properties of a partner configuration. + * Get a partner configuration. + * + *

Get properties of a partner configuration. * * @param resourceGroupName The name of the resource group within the user's subscription. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a partner configuration. + * @return properties of a partner configuration along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - PartnerConfigurationInner getByResourceGroup(String resourceGroupName); + Response getByResourceGroupWithResponse(String resourceGroupName, Context context); /** - * Get properties of a partner configuration. + * Get a partner configuration. + * + *

Get properties of a partner configuration. * * @param resourceGroupName The name of the resource group within the user's subscription. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a partner configuration along with {@link Response}. + * @return properties of a partner configuration. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse(String resourceGroupName, Context context); + PartnerConfigurationInner getByResourceGroup(String resourceGroupName); /** - * Synchronously creates or updates a partner configuration with the specified parameters. + * Create or update a partner configuration. + * + *

Synchronously creates or updates a partner configuration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerConfigurationInfo Partner configuration information. @@ -57,7 +63,9 @@ SyncPoller, PartnerConfigurationInner> beg String resourceGroupName, PartnerConfigurationInner partnerConfigurationInfo); /** - * Synchronously creates or updates a partner configuration with the specified parameters. + * Create or update a partner configuration. + * + *

Synchronously creates or updates a partner configuration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerConfigurationInfo Partner configuration information. @@ -72,7 +80,9 @@ SyncPoller, PartnerConfigurationInner> beg String resourceGroupName, PartnerConfigurationInner partnerConfigurationInfo, Context context); /** - * Synchronously creates or updates a partner configuration with the specified parameters. + * Create or update a partner configuration. + * + *

Synchronously creates or updates a partner configuration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerConfigurationInfo Partner configuration information. @@ -86,7 +96,9 @@ PartnerConfigurationInner createOrUpdate( String resourceGroupName, PartnerConfigurationInner partnerConfigurationInfo); /** - * Synchronously creates or updates a partner configuration with the specified parameters. + * Create or update a partner configuration. + * + *

Synchronously creates or updates a partner configuration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerConfigurationInfo Partner configuration information. @@ -101,7 +113,9 @@ PartnerConfigurationInner createOrUpdate( String resourceGroupName, PartnerConfigurationInner partnerConfigurationInfo, Context context); /** - * Delete existing partner configuration. + * Delete a partner configuration. + * + *

Delete existing partner configuration. * * @param resourceGroupName The name of the resource group within the user's subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -113,7 +127,9 @@ PartnerConfigurationInner createOrUpdate( SyncPoller, Void> beginDelete(String resourceGroupName); /** - * Delete existing partner configuration. + * Delete a partner configuration. + * + *

Delete existing partner configuration. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param context The context to associate with this operation. @@ -126,7 +142,9 @@ PartnerConfigurationInner createOrUpdate( SyncPoller, Void> beginDelete(String resourceGroupName, Context context); /** - * Delete existing partner configuration. + * Delete a partner configuration. + * + *

Delete existing partner configuration. * * @param resourceGroupName The name of the resource group within the user's subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -137,7 +155,9 @@ PartnerConfigurationInner createOrUpdate( void delete(String resourceGroupName); /** - * Delete existing partner configuration. + * Delete a partner configuration. + * + *

Delete existing partner configuration. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param context The context to associate with this operation. @@ -149,7 +169,9 @@ PartnerConfigurationInner createOrUpdate( void delete(String resourceGroupName, Context context); /** - * Synchronously updates a partner configuration with the specified parameters. + * Update a partner configuration. + * + *

Synchronously updates a partner configuration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerConfigurationUpdateParameters Partner configuration update information. @@ -163,7 +185,9 @@ SyncPoller, PartnerConfigurationInner> beg String resourceGroupName, PartnerConfigurationUpdateParameters partnerConfigurationUpdateParameters); /** - * Synchronously updates a partner configuration with the specified parameters. + * Update a partner configuration. + * + *

Synchronously updates a partner configuration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerConfigurationUpdateParameters Partner configuration update information. @@ -180,7 +204,9 @@ SyncPoller, PartnerConfigurationInner> beg Context context); /** - * Synchronously updates a partner configuration with the specified parameters. + * Update a partner configuration. + * + *

Synchronously updates a partner configuration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerConfigurationUpdateParameters Partner configuration update information. @@ -194,7 +220,9 @@ PartnerConfigurationInner update( String resourceGroupName, PartnerConfigurationUpdateParameters partnerConfigurationUpdateParameters); /** - * Synchronously updates a partner configuration with the specified parameters. + * Update a partner configuration. + * + *

Synchronously updates a partner configuration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerConfigurationUpdateParameters Partner configuration update information. @@ -211,7 +239,9 @@ PartnerConfigurationInner update( Context context); /** - * List all the partner configurations under a resource group. + * List partner configurations under a resource group. + * + *

List all the partner configurations under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -223,7 +253,9 @@ PartnerConfigurationInner update( PagedIterable listByResourceGroup(String resourceGroupName); /** - * List all the partner configurations under a resource group. + * List partner configurations under a resource group. + * + *

List all the partner configurations under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param context The context to associate with this operation. @@ -236,7 +268,9 @@ PartnerConfigurationInner update( PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** - * List all the partner configurations under an Azure subscription. + * List partner configurations under an Azure subscription. + * + *

List all the partner configurations under an Azure subscription. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -246,7 +280,9 @@ PartnerConfigurationInner update( PagedIterable list(); /** - * List all the partner configurations under an Azure subscription. + * List partner configurations under an Azure subscription. + * + *

List all the partner configurations under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -266,58 +302,66 @@ PartnerConfigurationInner update( PagedIterable list(String filter, Integer top, Context context); /** - * Authorize a single partner either by partner registration immutable Id or by partner name. + * Authorize a partner. + * + *

Authorize a single partner either by partner registration immutable Id or by partner name. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerInfo The information of the partner to be authorized. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return partner configuration information. + * @return partner configuration information along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - PartnerConfigurationInner authorizePartner(String resourceGroupName, Partner partnerInfo); + Response authorizePartnerWithResponse( + String resourceGroupName, Partner partnerInfo, Context context); /** - * Authorize a single partner either by partner registration immutable Id or by partner name. + * Authorize a partner. + * + *

Authorize a single partner either by partner registration immutable Id or by partner name. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerInfo The information of the partner to be authorized. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return partner configuration information along with {@link Response}. + * @return partner configuration information. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response authorizePartnerWithResponse( - String resourceGroupName, Partner partnerInfo, Context context); + PartnerConfigurationInner authorizePartner(String resourceGroupName, Partner partnerInfo); /** - * Unauthorize a single partner either by partner registration immutable Id or by partner name. + * Unauthorize a partner. + * + *

Unauthorize a single partner either by partner registration immutable Id or by partner name. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerInfo The information of the partner to be unauthorized. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return partner configuration information. + * @return partner configuration information along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - PartnerConfigurationInner unauthorizePartner(String resourceGroupName, Partner partnerInfo); + Response unauthorizePartnerWithResponse( + String resourceGroupName, Partner partnerInfo, Context context); /** - * Unauthorize a single partner either by partner registration immutable Id or by partner name. + * Unauthorize a partner. + * + *

Unauthorize a single partner either by partner registration immutable Id or by partner name. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerInfo The information of the partner to be unauthorized. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return partner configuration information along with {@link Response}. + * @return partner configuration information. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response unauthorizePartnerWithResponse( - String resourceGroupName, Partner partnerInfo, Context context); + PartnerConfigurationInner unauthorizePartner(String resourceGroupName, Partner partnerInfo); } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/PartnerNamespacesClient.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/PartnerNamespacesClient.java index a4fa7d4d18f0..38ce86abc8fc 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/PartnerNamespacesClient.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/PartnerNamespacesClient.java @@ -19,35 +19,41 @@ /** An instance of this class provides access to all the operations defined in PartnerNamespacesClient. */ public interface PartnerNamespacesClient { /** - * Get properties of a partner namespace. + * Get a partner namespace. + * + *

Get properties of a partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a partner namespace. + * @return properties of a partner namespace along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - PartnerNamespaceInner getByResourceGroup(String resourceGroupName, String partnerNamespaceName); + Response getByResourceGroupWithResponse( + String resourceGroupName, String partnerNamespaceName, Context context); /** - * Get properties of a partner namespace. + * Get a partner namespace. + * + *

Get properties of a partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a partner namespace along with {@link Response}. + * @return properties of a partner namespace. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse( - String resourceGroupName, String partnerNamespaceName, Context context); + PartnerNamespaceInner getByResourceGroup(String resourceGroupName, String partnerNamespaceName); /** - * Asynchronously creates a new partner namespace with the specified parameters. + * Create a partner namespace. + * + *

Asynchronously creates a new partner namespace with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -62,7 +68,9 @@ SyncPoller, PartnerNamespaceInner> beginCreate String resourceGroupName, String partnerNamespaceName, PartnerNamespaceInner partnerNamespaceInfo); /** - * Asynchronously creates a new partner namespace with the specified parameters. + * Create a partner namespace. + * + *

Asynchronously creates a new partner namespace with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -81,7 +89,9 @@ SyncPoller, PartnerNamespaceInner> beginCreate Context context); /** - * Asynchronously creates a new partner namespace with the specified parameters. + * Create a partner namespace. + * + *

Asynchronously creates a new partner namespace with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -96,7 +106,9 @@ PartnerNamespaceInner createOrUpdate( String resourceGroupName, String partnerNamespaceName, PartnerNamespaceInner partnerNamespaceInfo); /** - * Asynchronously creates a new partner namespace with the specified parameters. + * Create a partner namespace. + * + *

Asynchronously creates a new partner namespace with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -115,7 +127,9 @@ PartnerNamespaceInner createOrUpdate( Context context); /** - * Delete existing partner namespace. + * Delete a partner namespace. + * + *

Delete existing partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -128,7 +142,9 @@ PartnerNamespaceInner createOrUpdate( SyncPoller, Void> beginDelete(String resourceGroupName, String partnerNamespaceName); /** - * Delete existing partner namespace. + * Delete a partner namespace. + * + *

Delete existing partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -143,7 +159,9 @@ SyncPoller, Void> beginDelete( String resourceGroupName, String partnerNamespaceName, Context context); /** - * Delete existing partner namespace. + * Delete a partner namespace. + * + *

Delete existing partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -155,7 +173,9 @@ SyncPoller, Void> beginDelete( void delete(String resourceGroupName, String partnerNamespaceName); /** - * Delete existing partner namespace. + * Delete a partner namespace. + * + *

Delete existing partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -168,7 +188,9 @@ SyncPoller, Void> beginDelete( void delete(String resourceGroupName, String partnerNamespaceName, Context context); /** - * Asynchronously updates a partner namespace with the specified parameters. + * Update a partner namespace. + * + *

Asynchronously updates a partner namespace with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -185,7 +207,9 @@ SyncPoller, PartnerNamespaceInner> beginUpdate PartnerNamespaceUpdateParameters partnerNamespaceUpdateParameters); /** - * Asynchronously updates a partner namespace with the specified parameters. + * Update a partner namespace. + * + *

Asynchronously updates a partner namespace with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -204,7 +228,9 @@ SyncPoller, PartnerNamespaceInner> beginUpdate Context context); /** - * Asynchronously updates a partner namespace with the specified parameters. + * Update a partner namespace. + * + *

Asynchronously updates a partner namespace with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -221,7 +247,9 @@ PartnerNamespaceInner update( PartnerNamespaceUpdateParameters partnerNamespaceUpdateParameters); /** - * Asynchronously updates a partner namespace with the specified parameters. + * Update a partner namespace. + * + *

Asynchronously updates a partner namespace with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -240,7 +268,9 @@ PartnerNamespaceInner update( Context context); /** - * List all the partner namespaces under an Azure subscription. + * List partner namespaces under an Azure subscription. + * + *

List all the partner namespaces under an Azure subscription. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -250,7 +280,9 @@ PartnerNamespaceInner update( PagedIterable list(); /** - * List all the partner namespaces under an Azure subscription. + * List partner namespaces under an Azure subscription. + * + *

List all the partner namespaces under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -270,7 +302,9 @@ PartnerNamespaceInner update( PagedIterable list(String filter, Integer top, Context context); /** - * List all the partner namespaces under a resource group. + * List partner namespaces under a resource group. + * + *

List all the partner namespaces under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -282,7 +316,9 @@ PartnerNamespaceInner update( PagedIterable listByResourceGroup(String resourceGroupName); /** - * List all the partner namespaces under a resource group. + * List partner namespaces under a resource group. + * + *

List all the partner namespaces under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -304,66 +340,74 @@ PagedIterable listByResourceGroup( String resourceGroupName, String filter, Integer top, Context context); /** - * List the two keys used to publish to a partner namespace. + * List keys for a partner namespace. + * + *

List the two keys used to publish to a partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return shared access keys of the partner namespace. + * @return shared access keys of the partner namespace along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - PartnerNamespaceSharedAccessKeysInner listSharedAccessKeys(String resourceGroupName, String partnerNamespaceName); + Response listSharedAccessKeysWithResponse( + String resourceGroupName, String partnerNamespaceName, Context context); /** - * List the two keys used to publish to a partner namespace. + * List keys for a partner namespace. + * + *

List the two keys used to publish to a partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return shared access keys of the partner namespace along with {@link Response}. + * @return shared access keys of the partner namespace. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response listSharedAccessKeysWithResponse( - String resourceGroupName, String partnerNamespaceName, Context context); + PartnerNamespaceSharedAccessKeysInner listSharedAccessKeys(String resourceGroupName, String partnerNamespaceName); /** - * Regenerate a shared access key for a partner namespace. + * Regenerate key for a partner namespace. + * + *

Regenerate a shared access key for a partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. * @param regenerateKeyRequest Request body to regenerate key. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return shared access keys of the partner namespace. + * @return shared access keys of the partner namespace along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - PartnerNamespaceSharedAccessKeysInner regenerateKey( + Response regenerateKeyWithResponse( String resourceGroupName, String partnerNamespaceName, - PartnerNamespaceRegenerateKeyRequest regenerateKeyRequest); + PartnerNamespaceRegenerateKeyRequest regenerateKeyRequest, + Context context); /** - * Regenerate a shared access key for a partner namespace. + * Regenerate key for a partner namespace. + * + *

Regenerate a shared access key for a partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. * @param regenerateKeyRequest Request body to regenerate key. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return shared access keys of the partner namespace along with {@link Response}. + * @return shared access keys of the partner namespace. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response regenerateKeyWithResponse( + PartnerNamespaceSharedAccessKeysInner regenerateKey( String resourceGroupName, String partnerNamespaceName, - PartnerNamespaceRegenerateKeyRequest regenerateKeyRequest, - Context context); + PartnerNamespaceRegenerateKeyRequest regenerateKeyRequest); } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/PartnerRegistrationsClient.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/PartnerRegistrationsClient.java index 14afb76494f4..54184fa30f4b 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/PartnerRegistrationsClient.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/PartnerRegistrationsClient.java @@ -17,35 +17,41 @@ /** An instance of this class provides access to all the operations defined in PartnerRegistrationsClient. */ public interface PartnerRegistrationsClient { /** - * Gets a partner registration with the specified parameters. + * Get a partner registration. + * + *

Gets a partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a partner registration with the specified parameters. + * @return a partner registration with the specified parameters along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - PartnerRegistrationInner getByResourceGroup(String resourceGroupName, String partnerRegistrationName); + Response getByResourceGroupWithResponse( + String resourceGroupName, String partnerRegistrationName, Context context); /** - * Gets a partner registration with the specified parameters. + * Get a partner registration. + * + *

Gets a partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a partner registration with the specified parameters along with {@link Response}. + * @return a partner registration with the specified parameters. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse( - String resourceGroupName, String partnerRegistrationName, Context context); + PartnerRegistrationInner getByResourceGroup(String resourceGroupName, String partnerRegistrationName); /** - * Creates a new partner registration with the specified parameters. + * Create a partner registration. + * + *

Creates a new partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. @@ -60,7 +66,9 @@ SyncPoller, PartnerRegistrationInner> begin String resourceGroupName, String partnerRegistrationName, PartnerRegistrationInner partnerRegistrationInfo); /** - * Creates a new partner registration with the specified parameters. + * Create a partner registration. + * + *

Creates a new partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. @@ -79,7 +87,9 @@ SyncPoller, PartnerRegistrationInner> begin Context context); /** - * Creates a new partner registration with the specified parameters. + * Create a partner registration. + * + *

Creates a new partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. @@ -94,7 +104,9 @@ PartnerRegistrationInner createOrUpdate( String resourceGroupName, String partnerRegistrationName, PartnerRegistrationInner partnerRegistrationInfo); /** - * Creates a new partner registration with the specified parameters. + * Create a partner registration. + * + *

Creates a new partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. @@ -113,7 +125,9 @@ PartnerRegistrationInner createOrUpdate( Context context); /** - * Deletes a partner registration with the specified parameters. + * Delete a partner registration. + * + *

Deletes a partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. @@ -126,7 +140,9 @@ PartnerRegistrationInner createOrUpdate( SyncPoller, Void> beginDelete(String resourceGroupName, String partnerRegistrationName); /** - * Deletes a partner registration with the specified parameters. + * Delete a partner registration. + * + *

Deletes a partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. @@ -141,7 +157,9 @@ SyncPoller, Void> beginDelete( String resourceGroupName, String partnerRegistrationName, Context context); /** - * Deletes a partner registration with the specified parameters. + * Delete a partner registration. + * + *

Deletes a partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. @@ -153,7 +171,9 @@ SyncPoller, Void> beginDelete( void delete(String resourceGroupName, String partnerRegistrationName); /** - * Deletes a partner registration with the specified parameters. + * Delete a partner registration. + * + *

Deletes a partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. @@ -166,7 +186,9 @@ SyncPoller, Void> beginDelete( void delete(String resourceGroupName, String partnerRegistrationName, Context context); /** - * Updates a partner registration with the specified parameters. + * Update a partner registration. + * + *

Updates a partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. @@ -183,7 +205,9 @@ SyncPoller, PartnerRegistrationInner> begin PartnerRegistrationUpdateParameters partnerRegistrationUpdateParameters); /** - * Updates a partner registration with the specified parameters. + * Update a partner registration. + * + *

Updates a partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. @@ -202,7 +226,9 @@ SyncPoller, PartnerRegistrationInner> begin Context context); /** - * Updates a partner registration with the specified parameters. + * Update a partner registration. + * + *

Updates a partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. @@ -219,7 +245,9 @@ PartnerRegistrationInner update( PartnerRegistrationUpdateParameters partnerRegistrationUpdateParameters); /** - * Updates a partner registration with the specified parameters. + * Update a partner registration. + * + *

Updates a partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. @@ -238,7 +266,9 @@ PartnerRegistrationInner update( Context context); /** - * List all the partner registrations under an Azure subscription. + * List partner registrations under an Azure subscription. + * + *

List all the partner registrations under an Azure subscription. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -248,7 +278,9 @@ PartnerRegistrationInner update( PagedIterable list(); /** - * List all the partner registrations under an Azure subscription. + * List partner registrations under an Azure subscription. + * + *

List all the partner registrations under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -268,7 +300,9 @@ PartnerRegistrationInner update( PagedIterable list(String filter, Integer top, Context context); /** - * List all the partner registrations under a resource group. + * List partner registrations under a resource group. + * + *

List all the partner registrations under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -280,7 +314,9 @@ PartnerRegistrationInner update( PagedIterable listByResourceGroup(String resourceGroupName); /** - * List all the partner registrations under a resource group. + * List partner registrations under a resource group. + * + *

List all the partner registrations under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/PartnerTopicEventSubscriptionsClient.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/PartnerTopicEventSubscriptionsClient.java index 9d2f1b17054a..6a0dc4181e53 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/PartnerTopicEventSubscriptionsClient.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/PartnerTopicEventSubscriptionsClient.java @@ -19,39 +19,45 @@ /** An instance of this class provides access to all the operations defined in PartnerTopicEventSubscriptionsClient. */ public interface PartnerTopicEventSubscriptionsClient { /** - * Get properties of an event subscription of a partner topic. + * Get an event subscription of a partner topic. + * + *

Get properties of an event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. * @param eventSubscriptionName Name of the event subscription to be found. Event subscription names must be between * 3 and 100 characters in length and use alphanumeric letters only. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of an event subscription of a partner topic. + * @return properties of an event subscription of a partner topic along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - EventSubscriptionInner get(String resourceGroupName, String partnerTopicName, String eventSubscriptionName); + Response getWithResponse( + String resourceGroupName, String partnerTopicName, String eventSubscriptionName, Context context); /** - * Get properties of an event subscription of a partner topic. + * Get an event subscription of a partner topic. + * + *

Get properties of an event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. * @param eventSubscriptionName Name of the event subscription to be found. Event subscription names must be between * 3 and 100 characters in length and use alphanumeric letters only. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of an event subscription of a partner topic along with {@link Response}. + * @return properties of an event subscription of a partner topic. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String partnerTopicName, String eventSubscriptionName, Context context); + EventSubscriptionInner get(String resourceGroupName, String partnerTopicName, String eventSubscriptionName); /** - * Asynchronously creates or updates an event subscription of a partner topic with the specified parameters. + * Create or update an event subscription of a partner topic. + * + *

Asynchronously creates or updates an event subscription of a partner topic with the specified parameters. * Existing event subscriptions will be updated with this API. * * @param resourceGroupName The name of the resource group within the user's subscription. @@ -72,7 +78,9 @@ SyncPoller, EventSubscriptionInner> beginCrea EventSubscriptionInner eventSubscriptionInfo); /** - * Asynchronously creates or updates an event subscription of a partner topic with the specified parameters. + * Create or update an event subscription of a partner topic. + * + *

Asynchronously creates or updates an event subscription of a partner topic with the specified parameters. * Existing event subscriptions will be updated with this API. * * @param resourceGroupName The name of the resource group within the user's subscription. @@ -95,7 +103,9 @@ SyncPoller, EventSubscriptionInner> beginCrea Context context); /** - * Asynchronously creates or updates an event subscription of a partner topic with the specified parameters. + * Create or update an event subscription of a partner topic. + * + *

Asynchronously creates or updates an event subscription of a partner topic with the specified parameters. * Existing event subscriptions will be updated with this API. * * @param resourceGroupName The name of the resource group within the user's subscription. @@ -116,7 +126,9 @@ EventSubscriptionInner createOrUpdate( EventSubscriptionInner eventSubscriptionInfo); /** - * Asynchronously creates or updates an event subscription of a partner topic with the specified parameters. + * Create or update an event subscription of a partner topic. + * + *

Asynchronously creates or updates an event subscription of a partner topic with the specified parameters. * Existing event subscriptions will be updated with this API. * * @param resourceGroupName The name of the resource group within the user's subscription. @@ -139,7 +151,9 @@ EventSubscriptionInner createOrUpdate( Context context); /** - * Delete an existing event subscription of a partner topic. + * Delete an event subscription of a partner topic. + * + *

Delete an existing event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -155,7 +169,9 @@ SyncPoller, Void> beginDelete( String resourceGroupName, String partnerTopicName, String eventSubscriptionName); /** - * Delete an existing event subscription of a partner topic. + * Delete an event subscription of a partner topic. + * + *

Delete an existing event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -172,7 +188,9 @@ SyncPoller, Void> beginDelete( String resourceGroupName, String partnerTopicName, String eventSubscriptionName, Context context); /** - * Delete an existing event subscription of a partner topic. + * Delete an event subscription of a partner topic. + * + *

Delete an existing event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -186,7 +204,9 @@ SyncPoller, Void> beginDelete( void delete(String resourceGroupName, String partnerTopicName, String eventSubscriptionName); /** - * Delete an existing event subscription of a partner topic. + * Delete an event subscription of a partner topic. + * + *

Delete an existing event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -201,7 +221,9 @@ SyncPoller, Void> beginDelete( void delete(String resourceGroupName, String partnerTopicName, String eventSubscriptionName, Context context); /** - * Update an existing event subscription of a partner topic. + * Update event subscription of a partner topic. + * + *

Update an existing event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -221,7 +243,9 @@ SyncPoller, EventSubscriptionInner> beginUpda EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters); /** - * Update an existing event subscription of a partner topic. + * Update event subscription of a partner topic. + * + *

Update an existing event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -243,7 +267,9 @@ SyncPoller, EventSubscriptionInner> beginUpda Context context); /** - * Update an existing event subscription of a partner topic. + * Update event subscription of a partner topic. + * + *

Update an existing event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -263,7 +289,9 @@ EventSubscriptionInner update( EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters); /** - * Update an existing event subscription of a partner topic. + * Update event subscription of a partner topic. + * + *

Update an existing event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -285,40 +313,46 @@ EventSubscriptionInner update( Context context); /** - * Get the full endpoint URL for an event subscription of a partner topic. + * Get full URL of an event subscription of a partner topic. + * + *

Get the full endpoint URL for an event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names must be * between 3 and 100 characters in length and use alphanumeric letters only. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the full endpoint URL for an event subscription of a partner topic. + * @return the full endpoint URL for an event subscription of a partner topic along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - EventSubscriptionFullUrlInner getFullUrl( - String resourceGroupName, String partnerTopicName, String eventSubscriptionName); + Response getFullUrlWithResponse( + String resourceGroupName, String partnerTopicName, String eventSubscriptionName, Context context); /** - * Get the full endpoint URL for an event subscription of a partner topic. + * Get full URL of an event subscription of a partner topic. + * + *

Get the full endpoint URL for an event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names must be * between 3 and 100 characters in length and use alphanumeric letters only. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the full endpoint URL for an event subscription of a partner topic along with {@link Response}. + * @return the full endpoint URL for an event subscription of a partner topic. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getFullUrlWithResponse( - String resourceGroupName, String partnerTopicName, String eventSubscriptionName, Context context); + EventSubscriptionFullUrlInner getFullUrl( + String resourceGroupName, String partnerTopicName, String eventSubscriptionName); /** - * List event subscriptions that belong to a specific partner topic. + * List event subscriptions of a partner topic. + * + *

List event subscriptions that belong to a specific partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -331,7 +365,9 @@ Response getFullUrlWithResponse( PagedIterable listByPartnerTopic(String resourceGroupName, String partnerTopicName); /** - * List event subscriptions that belong to a specific partner topic. + * List event subscriptions of a partner topic. + * + *

List event subscriptions that belong to a specific partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -354,35 +390,39 @@ PagedIterable listByPartnerTopic( String resourceGroupName, String partnerTopicName, String filter, Integer top, Context context); /** - * Get all delivery attributes for an event subscription of a partner topic. + * Get delivery attributes for an event subscription of a partner topic. + * + *

Get all delivery attributes for an event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names must be * between 3 and 100 characters in length and use alphanumeric letters only. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all delivery attributes for an event subscription of a partner topic. + * @return all delivery attributes for an event subscription of a partner topic along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - DeliveryAttributeListResultInner getDeliveryAttributes( - String resourceGroupName, String partnerTopicName, String eventSubscriptionName); + Response getDeliveryAttributesWithResponse( + String resourceGroupName, String partnerTopicName, String eventSubscriptionName, Context context); /** - * Get all delivery attributes for an event subscription of a partner topic. + * Get delivery attributes for an event subscription of a partner topic. + * + *

Get all delivery attributes for an event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names must be * between 3 and 100 characters in length and use alphanumeric letters only. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all delivery attributes for an event subscription of a partner topic along with {@link Response}. + * @return all delivery attributes for an event subscription of a partner topic. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getDeliveryAttributesWithResponse( - String resourceGroupName, String partnerTopicName, String eventSubscriptionName, Context context); + DeliveryAttributeListResultInner getDeliveryAttributes( + String resourceGroupName, String partnerTopicName, String eventSubscriptionName); } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/PartnerTopicsClient.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/PartnerTopicsClient.java index 2a1d131343c2..ca529474c49a 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/PartnerTopicsClient.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/PartnerTopicsClient.java @@ -17,66 +17,76 @@ /** An instance of this class provides access to all the operations defined in PartnerTopicsClient. */ public interface PartnerTopicsClient { /** - * Get properties of a partner topic. + * Get a partner topic. + * + *

Get properties of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a partner topic. + * @return properties of a partner topic along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - PartnerTopicInner getByResourceGroup(String resourceGroupName, String partnerTopicName); + Response getByResourceGroupWithResponse( + String resourceGroupName, String partnerTopicName, Context context); /** - * Get properties of a partner topic. + * Get a partner topic. + * + *

Get properties of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a partner topic along with {@link Response}. + * @return properties of a partner topic. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse( - String resourceGroupName, String partnerTopicName, Context context); + PartnerTopicInner getByResourceGroup(String resourceGroupName, String partnerTopicName); /** - * Asynchronously creates a new partner topic with the specified parameters. + * Create a partner topic. + * + *

Asynchronously creates a new partner topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. * @param partnerTopicInfo Partner Topic information. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return event Grid Partner Topic. + * @return event Grid Partner Topic along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - PartnerTopicInner createOrUpdate( - String resourceGroupName, String partnerTopicName, PartnerTopicInner partnerTopicInfo); + Response createOrUpdateWithResponse( + String resourceGroupName, String partnerTopicName, PartnerTopicInner partnerTopicInfo, Context context); /** - * Asynchronously creates a new partner topic with the specified parameters. + * Create a partner topic. + * + *

Asynchronously creates a new partner topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. * @param partnerTopicInfo Partner Topic information. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return event Grid Partner Topic along with {@link Response}. + * @return event Grid Partner Topic. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( - String resourceGroupName, String partnerTopicName, PartnerTopicInner partnerTopicInfo, Context context); + PartnerTopicInner createOrUpdate( + String resourceGroupName, String partnerTopicName, PartnerTopicInner partnerTopicInfo); /** - * Delete existing partner topic. + * Delete a partner topic. + * + *

Delete existing partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -89,7 +99,9 @@ Response createOrUpdateWithResponse( SyncPoller, Void> beginDelete(String resourceGroupName, String partnerTopicName); /** - * Delete existing partner topic. + * Delete a partner topic. + * + *

Delete existing partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -103,7 +115,9 @@ Response createOrUpdateWithResponse( SyncPoller, Void> beginDelete(String resourceGroupName, String partnerTopicName, Context context); /** - * Delete existing partner topic. + * Delete a partner topic. + * + *

Delete existing partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -115,7 +129,9 @@ Response createOrUpdateWithResponse( void delete(String resourceGroupName, String partnerTopicName); /** - * Delete existing partner topic. + * Delete a partner topic. + * + *

Delete existing partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -128,41 +144,47 @@ Response createOrUpdateWithResponse( void delete(String resourceGroupName, String partnerTopicName, Context context); /** - * Asynchronously updates a partner topic with the specified parameters. + * Update a partner topic. + * + *

Asynchronously updates a partner topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. * @param partnerTopicUpdateParameters PartnerTopic update information. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - PartnerTopicInner update( - String resourceGroupName, String partnerTopicName, PartnerTopicUpdateParameters partnerTopicUpdateParameters); + Response updateWithResponse( + String resourceGroupName, + String partnerTopicName, + PartnerTopicUpdateParameters partnerTopicUpdateParameters, + Context context); /** - * Asynchronously updates a partner topic with the specified parameters. + * Update a partner topic. + * + *

Asynchronously updates a partner topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. * @param partnerTopicUpdateParameters PartnerTopic update information. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response}. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response updateWithResponse( - String resourceGroupName, - String partnerTopicName, - PartnerTopicUpdateParameters partnerTopicUpdateParameters, - Context context); + PartnerTopicInner update( + String resourceGroupName, String partnerTopicName, PartnerTopicUpdateParameters partnerTopicUpdateParameters); /** - * List all the partner topics under an Azure subscription. + * List partner topics under an Azure subscription. + * + *

List all the partner topics under an Azure subscription. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -172,7 +194,9 @@ Response updateWithResponse( PagedIterable list(); /** - * List all the partner topics under an Azure subscription. + * List partner topics under an Azure subscription. + * + *

List all the partner topics under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -192,7 +216,9 @@ Response updateWithResponse( PagedIterable list(String filter, Integer top, Context context); /** - * List all the partner topics under a resource group. + * List partner topics under a resource group. + * + *

List all the partner topics under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -204,7 +230,9 @@ Response updateWithResponse( PagedIterable listByResourceGroup(String resourceGroupName); /** - * List all the partner topics under a resource group. + * List partner topics under a resource group. + * + *

List all the partner topics under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -226,20 +254,9 @@ PagedIterable listByResourceGroup( String resourceGroupName, String filter, Integer top, Context context); /** - * Activate a newly created partner topic. + * Activate a partner topic. * - * @param resourceGroupName The name of the resource group within the user's subscription. - * @param partnerTopicName Name of the partner topic. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return event Grid Partner Topic. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - PartnerTopicInner activate(String resourceGroupName, String partnerTopicName); - - /** - * Activate a newly created partner topic. + *

Activate a newly created partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -254,7 +271,9 @@ Response activateWithResponse( String resourceGroupName, String partnerTopicName, Context context); /** - * Deactivate specific partner topic. + * Activate a partner topic. + * + *

Activate a newly created partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -264,10 +283,12 @@ Response activateWithResponse( * @return event Grid Partner Topic. */ @ServiceMethod(returns = ReturnType.SINGLE) - PartnerTopicInner deactivate(String resourceGroupName, String partnerTopicName); + PartnerTopicInner activate(String resourceGroupName, String partnerTopicName); /** - * Deactivate specific partner topic. + * Deactivate a partner topic. + * + *

Deactivate specific partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -280,4 +301,19 @@ Response activateWithResponse( @ServiceMethod(returns = ReturnType.SINGLE) Response deactivateWithResponse( String resourceGroupName, String partnerTopicName, Context context); + + /** + * Deactivate a partner topic. + * + *

Deactivate specific partner topic. + * + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerTopicName Name of the partner topic. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return event Grid Partner Topic. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + PartnerTopicInner deactivate(String resourceGroupName, String partnerTopicName); } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/PrivateEndpointConnectionsClient.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/PrivateEndpointConnectionsClient.java index 14757a21db26..b7b967de582e 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/PrivateEndpointConnectionsClient.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/PrivateEndpointConnectionsClient.java @@ -17,7 +17,9 @@ /** An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient. */ public interface PrivateEndpointConnectionsClient { /** - * Get a specific private endpoint connection under a topic, domain, or partner namespace. + * Get a specific private endpoint connection. + * + *

Get a specific private endpoint connection under a topic, domain, or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -25,20 +27,25 @@ public interface PrivateEndpointConnectionsClient { * @param parentName The name of the parent resource (namely, either, the topic name, domain name, or partner * namespace name). * @param privateEndpointConnectionName The name of the private endpoint connection connection. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a specific private endpoint connection under a topic, domain, or partner namespace. + * @return a specific private endpoint connection under a topic, domain, or partner namespace along with {@link + * Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - PrivateEndpointConnectionInner get( + Response getWithResponse( String resourceGroupName, PrivateEndpointConnectionsParentType parentType, String parentName, - String privateEndpointConnectionName); + String privateEndpointConnectionName, + Context context); /** - * Get a specific private endpoint connection under a topic, domain, or partner namespace. + * Get a specific private endpoint connection. + * + *

Get a specific private endpoint connection under a topic, domain, or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -46,23 +53,22 @@ PrivateEndpointConnectionInner get( * @param parentName The name of the parent resource (namely, either, the topic name, domain name, or partner * namespace name). * @param privateEndpointConnectionName The name of the private endpoint connection connection. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a specific private endpoint connection under a topic, domain, or partner namespace along with {@link - * Response}. + * @return a specific private endpoint connection under a topic, domain, or partner namespace. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( + PrivateEndpointConnectionInner get( String resourceGroupName, PrivateEndpointConnectionsParentType parentType, String parentName, - String privateEndpointConnectionName, - Context context); + String privateEndpointConnectionName); /** - * Update a specific private endpoint connection under a topic, domain or partner namespace. + * Update a specific private endpoint connection. + * + *

Update a specific private endpoint connection under a topic, domain or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -85,7 +91,9 @@ SyncPoller, PrivateEndpointConnection PrivateEndpointConnectionInner privateEndpointConnection); /** - * Update a specific private endpoint connection under a topic, domain or partner namespace. + * Update a specific private endpoint connection. + * + *

Update a specific private endpoint connection under a topic, domain or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -110,7 +118,9 @@ SyncPoller, PrivateEndpointConnection Context context); /** - * Update a specific private endpoint connection under a topic, domain or partner namespace. + * Update a specific private endpoint connection. + * + *

Update a specific private endpoint connection under a topic, domain or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -133,7 +143,9 @@ PrivateEndpointConnectionInner update( PrivateEndpointConnectionInner privateEndpointConnection); /** - * Update a specific private endpoint connection under a topic, domain or partner namespace. + * Update a specific private endpoint connection. + * + *

Update a specific private endpoint connection under a topic, domain or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -158,7 +170,9 @@ PrivateEndpointConnectionInner update( Context context); /** - * Delete a specific private endpoint connection under a topic, domain, or partner namespace. + * Delete a specific private endpoint connection. + * + *

Delete a specific private endpoint connection under a topic, domain, or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -179,7 +193,9 @@ SyncPoller, Void> beginDelete( String privateEndpointConnectionName); /** - * Delete a specific private endpoint connection under a topic, domain, or partner namespace. + * Delete a specific private endpoint connection. + * + *

Delete a specific private endpoint connection under a topic, domain, or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -202,7 +218,9 @@ SyncPoller, Void> beginDelete( Context context); /** - * Delete a specific private endpoint connection under a topic, domain, or partner namespace. + * Delete a specific private endpoint connection. + * + *

Delete a specific private endpoint connection under a topic, domain, or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -222,7 +240,9 @@ void delete( String privateEndpointConnectionName); /** - * Delete a specific private endpoint connection under a topic, domain, or partner namespace. + * Delete a specific private endpoint connection. + * + *

Delete a specific private endpoint connection under a topic, domain, or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -244,7 +264,9 @@ void delete( Context context); /** - * Get all private endpoint connections under a topic, domain, or partner namespace. + * Lists all private endpoint connections under a resource. + * + *

Get all private endpoint connections under a topic, domain, or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -262,7 +284,9 @@ PagedIterable listByResource( String resourceGroupName, PrivateEndpointConnectionsParentType parentType, String parentName); /** - * Get all private endpoint connections under a topic, domain, or partner namespace. + * Lists all private endpoint connections under a resource. + * + *

Get all private endpoint connections under a topic, domain, or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/PrivateLinkResourcesClient.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/PrivateLinkResourcesClient.java index 263cb986e1d0..8032686f6a3c 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/PrivateLinkResourcesClient.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/PrivateLinkResourcesClient.java @@ -10,11 +10,14 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.fluent.models.PrivateLinkResourceInner; +import com.azure.resourcemanager.eventgrid.models.PrivateEndpointConnectionsParentType; /** An instance of this class provides access to all the operations defined in PrivateLinkResourcesClient. */ public interface PrivateLinkResourcesClient { /** - * Get properties of a private link resource. + * Get a private link resource. + * + *

Get properties of a private link resource. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -22,17 +25,24 @@ public interface PrivateLinkResourcesClient { * @param parentName The name of the parent resource (namely, either, the topic name, domain name, or partner * namespace name). * @param privateLinkResourceName The name of private link resource. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a private link resource. + * @return properties of a private link resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - PrivateLinkResourceInner get( - String resourceGroupName, String parentType, String parentName, String privateLinkResourceName); + Response getWithResponse( + String resourceGroupName, + PrivateEndpointConnectionsParentType parentType, + String parentName, + String privateLinkResourceName, + Context context); /** - * Get properties of a private link resource. + * Get a private link resource. + * + *

Get properties of a private link resource. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -40,22 +50,22 @@ PrivateLinkResourceInner get( * @param parentName The name of the parent resource (namely, either, the topic name, domain name, or partner * namespace name). * @param privateLinkResourceName The name of private link resource. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a private link resource along with {@link Response}. + * @return properties of a private link resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( + PrivateLinkResourceInner get( String resourceGroupName, - String parentType, + PrivateEndpointConnectionsParentType parentType, String parentName, - String privateLinkResourceName, - Context context); + String privateLinkResourceName); /** - * List all the private link resources under a topic, domain, or partner namespace. + * List private link resources under specific topic, domain, or partner namespace. + * + *

List all the private link resources under a topic, domain, or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -69,10 +79,12 @@ Response getWithResponse( */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResource( - String resourceGroupName, String parentType, String parentName); + String resourceGroupName, PrivateEndpointConnectionsParentType parentType, String parentName); /** - * List all the private link resources under a topic, domain, or partner namespace. + * List private link resources under specific topic, domain, or partner namespace. + * + *

List all the private link resources under a topic, domain, or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -95,5 +107,10 @@ PagedIterable listByResource( */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResource( - String resourceGroupName, String parentType, String parentName, String filter, Integer top, Context context); + String resourceGroupName, + PrivateEndpointConnectionsParentType parentType, + String parentName, + String filter, + Integer top, + Context context); } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/SystemTopicEventSubscriptionsClient.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/SystemTopicEventSubscriptionsClient.java index e77b68ffdf94..012a4d4c472e 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/SystemTopicEventSubscriptionsClient.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/SystemTopicEventSubscriptionsClient.java @@ -19,39 +19,45 @@ /** An instance of this class provides access to all the operations defined in SystemTopicEventSubscriptionsClient. */ public interface SystemTopicEventSubscriptionsClient { /** - * Get an event subscription. + * Get an event subscription of a system topic. + * + *

Get an event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names must be * between 3 and 100 characters in length and use alphanumeric letters only. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an event subscription. + * @return an event subscription along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - EventSubscriptionInner get(String resourceGroupName, String systemTopicName, String eventSubscriptionName); + Response getWithResponse( + String resourceGroupName, String systemTopicName, String eventSubscriptionName, Context context); /** - * Get an event subscription. + * Get an event subscription of a system topic. + * + *

Get an event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names must be * between 3 and 100 characters in length and use alphanumeric letters only. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an event subscription along with {@link Response}. + * @return an event subscription. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String systemTopicName, String eventSubscriptionName, Context context); + EventSubscriptionInner get(String resourceGroupName, String systemTopicName, String eventSubscriptionName); /** - * Asynchronously creates or updates an event subscription with the specified parameters. Existing event + * Create or update an event subscription for a system topic. + * + *

Asynchronously creates or updates an event subscription with the specified parameters. Existing event * subscriptions will be updated with this API. * * @param resourceGroupName The name of the resource group within the user's subscription. @@ -72,7 +78,9 @@ SyncPoller, EventSubscriptionInner> beginCrea EventSubscriptionInner eventSubscriptionInfo); /** - * Asynchronously creates or updates an event subscription with the specified parameters. Existing event + * Create or update an event subscription for a system topic. + * + *

Asynchronously creates or updates an event subscription with the specified parameters. Existing event * subscriptions will be updated with this API. * * @param resourceGroupName The name of the resource group within the user's subscription. @@ -95,7 +103,9 @@ SyncPoller, EventSubscriptionInner> beginCrea Context context); /** - * Asynchronously creates or updates an event subscription with the specified parameters. Existing event + * Create or update an event subscription for a system topic. + * + *

Asynchronously creates or updates an event subscription with the specified parameters. Existing event * subscriptions will be updated with this API. * * @param resourceGroupName The name of the resource group within the user's subscription. @@ -116,7 +126,9 @@ EventSubscriptionInner createOrUpdate( EventSubscriptionInner eventSubscriptionInfo); /** - * Asynchronously creates or updates an event subscription with the specified parameters. Existing event + * Create or update an event subscription for a system topic. + * + *

Asynchronously creates or updates an event subscription with the specified parameters. Existing event * subscriptions will be updated with this API. * * @param resourceGroupName The name of the resource group within the user's subscription. @@ -139,7 +151,9 @@ EventSubscriptionInner createOrUpdate( Context context); /** - * Delete an existing event subscription of a system topic. + * Delete an event subscription of a system topic. + * + *

Delete an existing event subscription of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -155,7 +169,9 @@ SyncPoller, Void> beginDelete( String resourceGroupName, String systemTopicName, String eventSubscriptionName); /** - * Delete an existing event subscription of a system topic. + * Delete an event subscription of a system topic. + * + *

Delete an existing event subscription of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -172,7 +188,9 @@ SyncPoller, Void> beginDelete( String resourceGroupName, String systemTopicName, String eventSubscriptionName, Context context); /** - * Delete an existing event subscription of a system topic. + * Delete an event subscription of a system topic. + * + *

Delete an existing event subscription of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -186,7 +204,9 @@ SyncPoller, Void> beginDelete( void delete(String resourceGroupName, String systemTopicName, String eventSubscriptionName); /** - * Delete an existing event subscription of a system topic. + * Delete an event subscription of a system topic. + * + *

Delete an existing event subscription of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -201,7 +221,9 @@ SyncPoller, Void> beginDelete( void delete(String resourceGroupName, String systemTopicName, String eventSubscriptionName, Context context); /** - * Update an existing event subscription of a system topic. + * Update event subscription of a system topic. + * + *

Update an existing event subscription of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -221,7 +243,9 @@ SyncPoller, EventSubscriptionInner> beginUpda EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters); /** - * Update an existing event subscription of a system topic. + * Update event subscription of a system topic. + * + *

Update an existing event subscription of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -243,7 +267,9 @@ SyncPoller, EventSubscriptionInner> beginUpda Context context); /** - * Update an existing event subscription of a system topic. + * Update event subscription of a system topic. + * + *

Update an existing event subscription of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -263,7 +289,9 @@ EventSubscriptionInner update( EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters); /** - * Update an existing event subscription of a system topic. + * Update event subscription of a system topic. + * + *

Update an existing event subscription of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -285,40 +313,46 @@ EventSubscriptionInner update( Context context); /** - * Get the full endpoint URL for an event subscription of a system topic. + * Get full URL of an event subscription of a system topic + * + *

Get the full endpoint URL for an event subscription of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names must be * between 3 and 100 characters in length and use alphanumeric letters only. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the full endpoint URL for an event subscription of a system topic. + * @return the full endpoint URL for an event subscription of a system topic along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - EventSubscriptionFullUrlInner getFullUrl( - String resourceGroupName, String systemTopicName, String eventSubscriptionName); + Response getFullUrlWithResponse( + String resourceGroupName, String systemTopicName, String eventSubscriptionName, Context context); /** - * Get the full endpoint URL for an event subscription of a system topic. + * Get full URL of an event subscription of a system topic + * + *

Get the full endpoint URL for an event subscription of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names must be * between 3 and 100 characters in length and use alphanumeric letters only. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the full endpoint URL for an event subscription of a system topic along with {@link Response}. + * @return the full endpoint URL for an event subscription of a system topic. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getFullUrlWithResponse( - String resourceGroupName, String systemTopicName, String eventSubscriptionName, Context context); + EventSubscriptionFullUrlInner getFullUrl( + String resourceGroupName, String systemTopicName, String eventSubscriptionName); /** - * List event subscriptions that belong to a specific system topic. + * List event subscriptions of a system topic. + * + *

List event subscriptions that belong to a specific system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -331,7 +365,9 @@ Response getFullUrlWithResponse( PagedIterable listBySystemTopic(String resourceGroupName, String systemTopicName); /** - * List event subscriptions that belong to a specific system topic. + * List event subscriptions of a system topic. + * + *

List event subscriptions that belong to a specific system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -354,35 +390,39 @@ PagedIterable listBySystemTopic( String resourceGroupName, String systemTopicName, String filter, Integer top, Context context); /** - * Get all delivery attributes for an event subscription. + * Get delivery attributes for an event subscription. + * + *

Get all delivery attributes for an event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names must be * between 3 and 100 characters in length and use alphanumeric letters only. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all delivery attributes for an event subscription. + * @return all delivery attributes for an event subscription along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - DeliveryAttributeListResultInner getDeliveryAttributes( - String resourceGroupName, String systemTopicName, String eventSubscriptionName); + Response getDeliveryAttributesWithResponse( + String resourceGroupName, String systemTopicName, String eventSubscriptionName, Context context); /** - * Get all delivery attributes for an event subscription. + * Get delivery attributes for an event subscription. + * + *

Get all delivery attributes for an event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names must be * between 3 and 100 characters in length and use alphanumeric letters only. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all delivery attributes for an event subscription along with {@link Response}. + * @return all delivery attributes for an event subscription. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getDeliveryAttributesWithResponse( - String resourceGroupName, String systemTopicName, String eventSubscriptionName, Context context); + DeliveryAttributeListResultInner getDeliveryAttributes( + String resourceGroupName, String systemTopicName, String eventSubscriptionName); } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/SystemTopicsClient.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/SystemTopicsClient.java index 8be5ba7837c3..5d94a8cb26c5 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/SystemTopicsClient.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/SystemTopicsClient.java @@ -17,35 +17,41 @@ /** An instance of this class provides access to all the operations defined in SystemTopicsClient. */ public interface SystemTopicsClient { /** - * Get properties of a system topic. + * Get a system topic. + * + *

Get properties of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a system topic. + * @return properties of a system topic along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SystemTopicInner getByResourceGroup(String resourceGroupName, String systemTopicName); + Response getByResourceGroupWithResponse( + String resourceGroupName, String systemTopicName, Context context); /** - * Get properties of a system topic. + * Get a system topic. + * + *

Get properties of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a system topic along with {@link Response}. + * @return properties of a system topic. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse( - String resourceGroupName, String systemTopicName, Context context); + SystemTopicInner getByResourceGroup(String resourceGroupName, String systemTopicName); /** - * Asynchronously creates a new system topic with the specified parameters. + * Create a system topic. + * + *

Asynchronously creates a new system topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -60,7 +66,9 @@ SyncPoller, SystemTopicInner> beginCreateOrUpdate( String resourceGroupName, String systemTopicName, SystemTopicInner systemTopicInfo); /** - * Asynchronously creates a new system topic with the specified parameters. + * Create a system topic. + * + *

Asynchronously creates a new system topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -76,7 +84,9 @@ SyncPoller, SystemTopicInner> beginCreateOrUpdate( String resourceGroupName, String systemTopicName, SystemTopicInner systemTopicInfo, Context context); /** - * Asynchronously creates a new system topic with the specified parameters. + * Create a system topic. + * + *

Asynchronously creates a new system topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -90,7 +100,9 @@ SyncPoller, SystemTopicInner> beginCreateOrUpdate( SystemTopicInner createOrUpdate(String resourceGroupName, String systemTopicName, SystemTopicInner systemTopicInfo); /** - * Asynchronously creates a new system topic with the specified parameters. + * Create a system topic. + * + *

Asynchronously creates a new system topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -106,7 +118,9 @@ SystemTopicInner createOrUpdate( String resourceGroupName, String systemTopicName, SystemTopicInner systemTopicInfo, Context context); /** - * Delete existing system topic. + * Delete a system topic. + * + *

Delete existing system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -119,7 +133,9 @@ SystemTopicInner createOrUpdate( SyncPoller, Void> beginDelete(String resourceGroupName, String systemTopicName); /** - * Delete existing system topic. + * Delete a system topic. + * + *

Delete existing system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -133,7 +149,9 @@ SystemTopicInner createOrUpdate( SyncPoller, Void> beginDelete(String resourceGroupName, String systemTopicName, Context context); /** - * Delete existing system topic. + * Delete a system topic. + * + *

Delete existing system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -145,7 +163,9 @@ SystemTopicInner createOrUpdate( void delete(String resourceGroupName, String systemTopicName); /** - * Delete existing system topic. + * Delete a system topic. + * + *

Delete existing system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -158,7 +178,9 @@ SystemTopicInner createOrUpdate( void delete(String resourceGroupName, String systemTopicName, Context context); /** - * Asynchronously updates a system topic with the specified parameters. + * Update a system topic. + * + *

Asynchronously updates a system topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -173,7 +195,9 @@ SyncPoller, SystemTopicInner> beginUpdate( String resourceGroupName, String systemTopicName, SystemTopicUpdateParameters systemTopicUpdateParameters); /** - * Asynchronously updates a system topic with the specified parameters. + * Update a system topic. + * + *

Asynchronously updates a system topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -192,7 +216,9 @@ SyncPoller, SystemTopicInner> beginUpdate( Context context); /** - * Asynchronously updates a system topic with the specified parameters. + * Update a system topic. + * + *

Asynchronously updates a system topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -207,7 +233,9 @@ SystemTopicInner update( String resourceGroupName, String systemTopicName, SystemTopicUpdateParameters systemTopicUpdateParameters); /** - * Asynchronously updates a system topic with the specified parameters. + * Update a system topic. + * + *

Asynchronously updates a system topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -226,7 +254,9 @@ SystemTopicInner update( Context context); /** - * List all the system topics under an Azure subscription. + * List system topics under an Azure subscription. + * + *

List all the system topics under an Azure subscription. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -236,7 +266,9 @@ SystemTopicInner update( PagedIterable list(); /** - * List all the system topics under an Azure subscription. + * List system topics under an Azure subscription. + * + *

List all the system topics under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -256,7 +288,9 @@ SystemTopicInner update( PagedIterable list(String filter, Integer top, Context context); /** - * List all the system topics under a resource group. + * List system topics under a resource group. + * + *

List all the system topics under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -268,7 +302,9 @@ SystemTopicInner update( PagedIterable listByResourceGroup(String resourceGroupName); /** - * List all the system topics under a resource group. + * List system topics under a resource group. + * + *

List all the system topics under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/TopicEventSubscriptionsClient.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/TopicEventSubscriptionsClient.java index 3f45991af15f..619470ad2150 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/TopicEventSubscriptionsClient.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/TopicEventSubscriptionsClient.java @@ -19,70 +19,80 @@ /** An instance of this class provides access to all the operations defined in TopicEventSubscriptionsClient. */ public interface TopicEventSubscriptionsClient { /** - * Get all delivery attributes for an event subscription for topic. + * Get delivery attributes for an event subscription for topic. + * + *

Get all delivery attributes for an event subscription for topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the domain topic. * @param eventSubscriptionName Name of the event subscription. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all delivery attributes for an event subscription for topic. + * @return all delivery attributes for an event subscription for topic along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - DeliveryAttributeListResultInner getDeliveryAttributes( - String resourceGroupName, String topicName, String eventSubscriptionName); + Response getDeliveryAttributesWithResponse( + String resourceGroupName, String topicName, String eventSubscriptionName, Context context); /** - * Get all delivery attributes for an event subscription for topic. + * Get delivery attributes for an event subscription for topic. + * + *

Get all delivery attributes for an event subscription for topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the domain topic. * @param eventSubscriptionName Name of the event subscription. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all delivery attributes for an event subscription for topic along with {@link Response}. + * @return all delivery attributes for an event subscription for topic. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getDeliveryAttributesWithResponse( - String resourceGroupName, String topicName, String eventSubscriptionName, Context context); + DeliveryAttributeListResultInner getDeliveryAttributes( + String resourceGroupName, String topicName, String eventSubscriptionName); /** - * Get properties of an event subscription of a topic. + * Get an event subscription of a topic. + * + *

Get properties of an event subscription of a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the partner topic. * @param eventSubscriptionName Name of the event subscription to be found. Event subscription names must be between * 3 and 100 characters in length and use alphanumeric letters only. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of an event subscription of a topic. + * @return properties of an event subscription of a topic along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - EventSubscriptionInner get(String resourceGroupName, String topicName, String eventSubscriptionName); + Response getWithResponse( + String resourceGroupName, String topicName, String eventSubscriptionName, Context context); /** - * Get properties of an event subscription of a topic. + * Get an event subscription of a topic. + * + *

Get properties of an event subscription of a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the partner topic. * @param eventSubscriptionName Name of the event subscription to be found. Event subscription names must be between * 3 and 100 characters in length and use alphanumeric letters only. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of an event subscription of a topic along with {@link Response}. + * @return properties of an event subscription of a topic. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String topicName, String eventSubscriptionName, Context context); + EventSubscriptionInner get(String resourceGroupName, String topicName, String eventSubscriptionName); /** - * Asynchronously creates a new event subscription or updates an existing event subscription. + * Create or update an event subscription to a topic. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the domain topic. @@ -102,7 +112,9 @@ SyncPoller, EventSubscriptionInner> beginCrea EventSubscriptionInner eventSubscriptionInfo); /** - * Asynchronously creates a new event subscription or updates an existing event subscription. + * Create or update an event subscription to a topic. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the domain topic. @@ -124,7 +136,9 @@ SyncPoller, EventSubscriptionInner> beginCrea Context context); /** - * Asynchronously creates a new event subscription or updates an existing event subscription. + * Create or update an event subscription to a topic. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the domain topic. @@ -144,7 +158,9 @@ EventSubscriptionInner createOrUpdate( EventSubscriptionInner eventSubscriptionInfo); /** - * Asynchronously creates a new event subscription or updates an existing event subscription. + * Create or update an event subscription to a topic. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the domain topic. @@ -166,7 +182,9 @@ EventSubscriptionInner createOrUpdate( Context context); /** - * Delete an existing event subscription for a topic. + * Delete an event subscription for a topic. + * + *

Delete an existing event subscription for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -182,7 +200,9 @@ SyncPoller, Void> beginDelete( String resourceGroupName, String topicName, String eventSubscriptionName); /** - * Delete an existing event subscription for a topic. + * Delete an event subscription for a topic. + * + *

Delete an existing event subscription for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -199,7 +219,9 @@ SyncPoller, Void> beginDelete( String resourceGroupName, String topicName, String eventSubscriptionName, Context context); /** - * Delete an existing event subscription for a topic. + * Delete an event subscription for a topic. + * + *

Delete an existing event subscription for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -213,7 +235,9 @@ SyncPoller, Void> beginDelete( void delete(String resourceGroupName, String topicName, String eventSubscriptionName); /** - * Delete an existing event subscription for a topic. + * Delete an event subscription for a topic. + * + *

Delete an existing event subscription for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -228,7 +252,9 @@ SyncPoller, Void> beginDelete( void delete(String resourceGroupName, String topicName, String eventSubscriptionName, Context context); /** - * Update an existing event subscription for a topic. + * Update an event subscription for a topic. + * + *

Update an existing event subscription for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the domain. @@ -247,7 +273,9 @@ SyncPoller, EventSubscriptionInner> beginUpda EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters); /** - * Update an existing event subscription for a topic. + * Update an event subscription for a topic. + * + *

Update an existing event subscription for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the domain. @@ -268,7 +296,9 @@ SyncPoller, EventSubscriptionInner> beginUpda Context context); /** - * Update an existing event subscription for a topic. + * Update an event subscription for a topic. + * + *

Update an existing event subscription for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the domain. @@ -287,7 +317,9 @@ EventSubscriptionInner update( EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters); /** - * Update an existing event subscription for a topic. + * Update an event subscription for a topic. + * + *

Update an existing event subscription for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the domain. @@ -308,37 +340,43 @@ EventSubscriptionInner update( Context context); /** - * Get the full endpoint URL for an event subscription for topic. + * Get full URL of an event subscription for topic. + * + *

Get the full endpoint URL for an event subscription for topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the domain topic. * @param eventSubscriptionName Name of the event subscription. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the full endpoint URL for an event subscription for topic. + * @return the full endpoint URL for an event subscription for topic along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - EventSubscriptionFullUrlInner getFullUrl(String resourceGroupName, String topicName, String eventSubscriptionName); + Response getFullUrlWithResponse( + String resourceGroupName, String topicName, String eventSubscriptionName, Context context); /** - * Get the full endpoint URL for an event subscription for topic. + * Get full URL of an event subscription for topic. + * + *

Get the full endpoint URL for an event subscription for topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the domain topic. * @param eventSubscriptionName Name of the event subscription. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the full endpoint URL for an event subscription for topic along with {@link Response}. + * @return the full endpoint URL for an event subscription for topic. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getFullUrlWithResponse( - String resourceGroupName, String topicName, String eventSubscriptionName, Context context); + EventSubscriptionFullUrlInner getFullUrl(String resourceGroupName, String topicName, String eventSubscriptionName); /** - * List all event subscriptions that have been created for a specific topic. + * List all event subscriptions for a specific topic. + * + *

List all event subscriptions that have been created for a specific topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -351,7 +389,9 @@ Response getFullUrlWithResponse( PagedIterable list(String resourceGroupName, String topicName); /** - * List all event subscriptions that have been created for a specific topic. + * List all event subscriptions for a specific topic. + * + *

List all event subscriptions that have been created for a specific topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/TopicTypesClient.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/TopicTypesClient.java index d5900dc3fcff..179dfd5909ca 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/TopicTypesClient.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/TopicTypesClient.java @@ -15,7 +15,9 @@ /** An instance of this class provides access to all the operations defined in TopicTypesClient. */ public interface TopicTypesClient { /** - * List all registered topic types. + * List topic types. + * + *

List all registered topic types. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -25,7 +27,9 @@ public interface TopicTypesClient { PagedIterable list(); /** - * List all registered topic types. + * List topic types. + * + *

List all registered topic types. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -37,32 +41,38 @@ public interface TopicTypesClient { PagedIterable list(Context context); /** - * Get information about a topic type. + * Get a topic type. + * + *

Get information about a topic type. * * @param topicTypeName Name of the topic type. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about a topic type. + * @return information about a topic type along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - TopicTypeInfoInner get(String topicTypeName); + Response getWithResponse(String topicTypeName, Context context); /** - * Get information about a topic type. + * Get a topic type. + * + *

Get information about a topic type. * * @param topicTypeName Name of the topic type. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about a topic type along with {@link Response}. + * @return information about a topic type. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String topicTypeName, Context context); + TopicTypeInfoInner get(String topicTypeName); /** - * List event types for a topic type. + * List event types. + * + *

List event types for a topic type. * * @param topicTypeName Name of the topic type. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -74,7 +84,9 @@ public interface TopicTypesClient { PagedIterable listEventTypes(String topicTypeName); /** - * List event types for a topic type. + * List event types. + * + *

List event types for a topic type. * * @param topicTypeName Name of the topic type. * @param context The context to associate with this operation. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/TopicsClient.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/TopicsClient.java index bedbdd09c0c5..719458313753 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/TopicsClient.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/TopicsClient.java @@ -20,34 +20,40 @@ /** An instance of this class provides access to all the operations defined in TopicsClient. */ public interface TopicsClient { /** - * Get properties of a topic. + * Get a topic. + * + *

Get properties of a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a topic. + * @return properties of a topic along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - TopicInner getByResourceGroup(String resourceGroupName, String topicName); + Response getByResourceGroupWithResponse(String resourceGroupName, String topicName, Context context); /** - * Get properties of a topic. + * Get a topic. + * + *

Get properties of a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a topic along with {@link Response}. + * @return properties of a topic. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse(String resourceGroupName, String topicName, Context context); + TopicInner getByResourceGroup(String resourceGroupName, String topicName); /** - * Asynchronously creates a new topic with the specified parameters. + * Create a topic. + * + *

Asynchronously creates a new topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -62,7 +68,9 @@ SyncPoller, TopicInner> beginCreateOrUpdate( String resourceGroupName, String topicName, TopicInner topicInfo); /** - * Asynchronously creates a new topic with the specified parameters. + * Create a topic. + * + *

Asynchronously creates a new topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -78,7 +86,9 @@ SyncPoller, TopicInner> beginCreateOrUpdate( String resourceGroupName, String topicName, TopicInner topicInfo, Context context); /** - * Asynchronously creates a new topic with the specified parameters. + * Create a topic. + * + *

Asynchronously creates a new topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -92,7 +102,9 @@ SyncPoller, TopicInner> beginCreateOrUpdate( TopicInner createOrUpdate(String resourceGroupName, String topicName, TopicInner topicInfo); /** - * Asynchronously creates a new topic with the specified parameters. + * Create a topic. + * + *

Asynchronously creates a new topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -107,7 +119,9 @@ SyncPoller, TopicInner> beginCreateOrUpdate( TopicInner createOrUpdate(String resourceGroupName, String topicName, TopicInner topicInfo, Context context); /** - * Delete existing topic. + * Delete a topic. + * + *

Delete existing topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -120,7 +134,9 @@ SyncPoller, TopicInner> beginCreateOrUpdate( SyncPoller, Void> beginDelete(String resourceGroupName, String topicName); /** - * Delete existing topic. + * Delete a topic. + * + *

Delete existing topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -134,7 +150,9 @@ SyncPoller, TopicInner> beginCreateOrUpdate( SyncPoller, Void> beginDelete(String resourceGroupName, String topicName, Context context); /** - * Delete existing topic. + * Delete a topic. + * + *

Delete existing topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -146,7 +164,9 @@ SyncPoller, TopicInner> beginCreateOrUpdate( void delete(String resourceGroupName, String topicName); /** - * Delete existing topic. + * Delete a topic. + * + *

Delete existing topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -159,7 +179,9 @@ SyncPoller, TopicInner> beginCreateOrUpdate( void delete(String resourceGroupName, String topicName, Context context); /** - * Asynchronously updates a topic with the specified parameters. + * Update a topic. + * + *

Asynchronously updates a topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -174,7 +196,9 @@ SyncPoller, TopicInner> beginUpdate( String resourceGroupName, String topicName, TopicUpdateParameters topicUpdateParameters); /** - * Asynchronously updates a topic with the specified parameters. + * Update a topic. + * + *

Asynchronously updates a topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -190,7 +214,9 @@ SyncPoller, TopicInner> beginUpdate( String resourceGroupName, String topicName, TopicUpdateParameters topicUpdateParameters, Context context); /** - * Asynchronously updates a topic with the specified parameters. + * Update a topic. + * + *

Asynchronously updates a topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -204,7 +230,9 @@ SyncPoller, TopicInner> beginUpdate( TopicInner update(String resourceGroupName, String topicName, TopicUpdateParameters topicUpdateParameters); /** - * Asynchronously updates a topic with the specified parameters. + * Update a topic. + * + *

Asynchronously updates a topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -220,7 +248,9 @@ TopicInner update( String resourceGroupName, String topicName, TopicUpdateParameters topicUpdateParameters, Context context); /** - * List all the topics under an Azure subscription. + * List topics under an Azure subscription. + * + *

List all the topics under an Azure subscription. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -230,7 +260,9 @@ TopicInner update( PagedIterable list(); /** - * List all the topics under an Azure subscription. + * List topics under an Azure subscription. + * + *

List all the topics under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -250,7 +282,9 @@ TopicInner update( PagedIterable list(String filter, Integer top, Context context); /** - * List all the topics under a resource group. + * List topics under a resource group. + * + *

List all the topics under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -262,7 +296,9 @@ TopicInner update( PagedIterable listByResourceGroup(String resourceGroupName); /** - * List all the topics under a resource group. + * List topics under a resource group. + * + *

List all the topics under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -284,35 +320,41 @@ PagedIterable listByResourceGroup( String resourceGroupName, String filter, Integer top, Context context); /** - * List the two keys used to publish to a topic. + * List keys for a topic. + * + *

List the two keys used to publish to a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return shared access keys of the Topic. + * @return shared access keys of the Topic along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - TopicSharedAccessKeysInner listSharedAccessKeys(String resourceGroupName, String topicName); + Response listSharedAccessKeysWithResponse( + String resourceGroupName, String topicName, Context context); /** - * List the two keys used to publish to a topic. + * List keys for a topic. + * + *

List the two keys used to publish to a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return shared access keys of the Topic along with {@link Response}. + * @return shared access keys of the Topic. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response listSharedAccessKeysWithResponse( - String resourceGroupName, String topicName, Context context); + TopicSharedAccessKeysInner listSharedAccessKeys(String resourceGroupName, String topicName); /** - * Regenerate a shared access key for a topic. + * Regenerate key for a topic. + * + *

Regenerate a shared access key for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -327,7 +369,9 @@ SyncPoller, TopicSharedAccessKeysInner> b String resourceGroupName, String topicName, TopicRegenerateKeyRequest regenerateKeyRequest); /** - * Regenerate a shared access key for a topic. + * Regenerate key for a topic. + * + *

Regenerate a shared access key for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -343,7 +387,9 @@ SyncPoller, TopicSharedAccessKeysInner> b String resourceGroupName, String topicName, TopicRegenerateKeyRequest regenerateKeyRequest, Context context); /** - * Regenerate a shared access key for a topic. + * Regenerate key for a topic. + * + *

Regenerate a shared access key for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -358,7 +404,9 @@ TopicSharedAccessKeysInner regenerateKey( String resourceGroupName, String topicName, TopicRegenerateKeyRequest regenerateKeyRequest); /** - * Regenerate a shared access key for a topic. + * Regenerate key for a topic. + * + *

Regenerate a shared access key for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -374,7 +422,9 @@ TopicSharedAccessKeysInner regenerateKey( String resourceGroupName, String topicName, TopicRegenerateKeyRequest regenerateKeyRequest, Context context); /** - * List event types for a topic. + * List topic event types. + * + *

List event types for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param providerNamespace Namespace of the provider of the topic. @@ -390,7 +440,9 @@ PagedIterable listEventTypes( String resourceGroupName, String providerNamespace, String resourceTypeName, String resourceName); /** - * List event types for a topic. + * List topic event types. + * + *

List event types for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param providerNamespace Namespace of the provider of the topic. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/VerifiedPartnersClient.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/VerifiedPartnersClient.java index bb51f2ad5939..8c6a275da047 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/VerifiedPartnersClient.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/VerifiedPartnersClient.java @@ -14,32 +14,38 @@ /** An instance of this class provides access to all the operations defined in VerifiedPartnersClient. */ public interface VerifiedPartnersClient { /** - * Get properties of a verified partner. + * Get a verified partner. + * + *

Get properties of a verified partner. * * @param verifiedPartnerName Name of the verified partner. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a verified partner. + * @return properties of a verified partner along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - VerifiedPartnerInner get(String verifiedPartnerName); + Response getWithResponse(String verifiedPartnerName, Context context); /** - * Get properties of a verified partner. + * Get a verified partner. + * + *

Get properties of a verified partner. * * @param verifiedPartnerName Name of the verified partner. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a verified partner along with {@link Response}. + * @return properties of a verified partner. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String verifiedPartnerName, Context context); + VerifiedPartnerInner get(String verifiedPartnerName); /** - * Get a list of all verified partners. + * List all verified partners. + * + *

Get a list of all verified partners. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -49,7 +55,9 @@ public interface VerifiedPartnersClient { PagedIterable list(); /** - * Get a list of all verified partners. + * List all verified partners. + * + *

Get a list of all verified partners. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/AzureFunctionEventSubscriptionDestinationProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/AzureFunctionEventSubscriptionDestinationProperties.java index a9129d7b8be6..e1d9afc50d5d 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/AzureFunctionEventSubscriptionDestinationProperties.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/AzureFunctionEventSubscriptionDestinationProperties.java @@ -13,8 +13,7 @@ @Fluent public final class AzureFunctionEventSubscriptionDestinationProperties { /* - * The Azure Resource Id that represents the endpoint of the Azure Function - * destination of an event subscription. + * The Azure Resource Id that represents the endpoint of the Azure Function destination of an event subscription. */ @JsonProperty(value = "resourceId") private String resourceId; @@ -37,6 +36,10 @@ public final class AzureFunctionEventSubscriptionDestinationProperties { @JsonProperty(value = "deliveryAttributeMappings") private List deliveryAttributeMappings; + /** Creates an instance of AzureFunctionEventSubscriptionDestinationProperties class. */ + public AzureFunctionEventSubscriptionDestinationProperties() { + } + /** * Get the resourceId property: The Azure Resource Id that represents the endpoint of the Azure Function destination * of an event subscription. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ChannelInner.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ChannelInner.java index 9aca46b86fc1..136d51b2c85a 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ChannelInner.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ChannelInner.java @@ -29,6 +29,10 @@ public final class ChannelInner extends ProxyResource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of ChannelInner class. */ + public ChannelInner() { + } + /** * Get the innerProperties property: Properties of the Channel. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ChannelProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ChannelProperties.java index 5255c7b5d0ab..229a12491edd 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ChannelProperties.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ChannelProperties.java @@ -16,23 +16,20 @@ @Fluent public final class ChannelProperties { /* - * The type of the event channel which represents the direction flow of - * events. + * The type of the event channel which represents the direction flow of events. */ @JsonProperty(value = "channelType") private ChannelType channelType; /* - * This property should be populated when channelType is PartnerTopic and - * represents information about the partner topic resource corresponding to - * the channel. + * This property should be populated when channelType is PartnerTopic and represents information about the partner + * topic resource corresponding to the channel. */ @JsonProperty(value = "partnerTopicInfo") private PartnerTopicInfo partnerTopicInfo; /* - * Context or helpful message that can be used during the approval process - * by the subscriber. + * Context or helpful message that can be used during the approval process by the subscriber. */ @JsonProperty(value = "messageForActivation") private String messageForActivation; @@ -50,13 +47,16 @@ public final class ChannelProperties { private ReadinessState readinessState; /* - * Expiration time of the channel. If this timer expires while the - * corresponding partner topic is never activated, + * Expiration time of the channel. If this timer expires while the corresponding partner topic is never activated, * the channel and corresponding partner topic are deleted. */ @JsonProperty(value = "expirationTimeIfNotActivatedUtc") private OffsetDateTime expirationTimeIfNotActivatedUtc; + /** Creates an instance of ChannelProperties class. */ + public ChannelProperties() { + } + /** * Get the channelType property: The type of the event channel which represents the direction flow of events. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ChannelUpdateParametersProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ChannelUpdateParametersProperties.java index 30353f800df2..6b33e883159a 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ChannelUpdateParametersProperties.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ChannelUpdateParametersProperties.java @@ -13,21 +13,23 @@ @Fluent public final class ChannelUpdateParametersProperties { /* - * Expiration time of the channel. If this timer expires while the - * corresponding partner topic or partner destination is never activated, - * the channel and corresponding partner topic or partner destination are - * deleted. + * Expiration time of the channel. If this timer expires while the corresponding partner topic or partner + * destination is never activated, + * the channel and corresponding partner topic or partner destination are deleted. */ @JsonProperty(value = "expirationTimeIfNotActivatedUtc") private OffsetDateTime expirationTimeIfNotActivatedUtc; /* - * Partner topic properties which can be updated if the channel is of type - * PartnerTopic. + * Partner topic properties which can be updated if the channel is of type PartnerTopic. */ @JsonProperty(value = "partnerTopicInfo") private PartnerUpdateTopicInfo partnerTopicInfo; + /** Creates an instance of ChannelUpdateParametersProperties class. */ + public ChannelUpdateParametersProperties() { + } + /** * Get the expirationTimeIfNotActivatedUtc property: Expiration time of the channel. If this timer expires while the * corresponding partner topic or partner destination is never activated, the channel and corresponding partner diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DeliveryAttributeListResultInner.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DeliveryAttributeListResultInner.java index b69af5574dfc..875ca4a71738 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DeliveryAttributeListResultInner.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DeliveryAttributeListResultInner.java @@ -18,6 +18,10 @@ public final class DeliveryAttributeListResultInner { @JsonProperty(value = "value") private List value; + /** Creates an instance of DeliveryAttributeListResultInner class. */ + public DeliveryAttributeListResultInner() { + } + /** * Get the value property: A collection of DeliveryAttributeMapping. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DomainInner.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DomainInner.java index aca87700559f..0d8eeec7f3c8 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DomainInner.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DomainInner.java @@ -39,6 +39,10 @@ public final class DomainInner extends Resource { @JsonProperty(value = "identity") private IdentityInfo identity; + /** Creates an instance of DomainInner class. */ + public DomainInner() { + } + /** * Get the innerProperties property: Properties of the Event Grid Domain resource. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DomainProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DomainProperties.java index 3deb9254648b..58df7e811a4c 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DomainProperties.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DomainProperties.java @@ -30,22 +30,20 @@ public final class DomainProperties { private DomainProvisioningState provisioningState; /* - * Endpoint for the Event Grid Domain Resource which is used for publishing - * the events. + * Endpoint for the Event Grid Domain Resource which is used for publishing the events. */ @JsonProperty(value = "endpoint", access = JsonProperty.Access.WRITE_ONLY) private String endpoint; /* - * This determines the format that Event Grid should expect for incoming - * events published to the Event Grid Domain Resource. + * This determines the format that Event Grid should expect for incoming events published to the Event Grid Domain + * Resource. */ @JsonProperty(value = "inputSchema") private InputSchema inputSchema; /* - * Information about the InputSchemaMapping which specified the info about - * mapping event payload. + * Information about the InputSchemaMapping which specified the info about mapping event payload. */ @JsonProperty(value = "inputSchemaMapping") private InputSchemaMapping inputSchemaMapping; @@ -57,73 +55,58 @@ public final class DomainProperties { private String metricResourceId; /* - * This determines if traffic is allowed over public network. By default it - * is enabled. + * This determines if traffic is allowed over public network. By default it is enabled. * You can further restrict to specific IPs by configuring + * cref="P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.DomainProperties.InboundIpRules" /> */ @JsonProperty(value = "publicNetworkAccess") private PublicNetworkAccess publicNetworkAccess; /* - * This can be used to restrict traffic from specific IPs instead of all - * IPs. Note: These are considered only if PublicNetworkAccess is enabled. + * This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if + * PublicNetworkAccess is enabled. */ @JsonProperty(value = "inboundIpRules") private List inboundIpRules; /* - * This boolean is used to enable or disable local auth. Default value is - * false. When the property is set to true, only AAD token will be used to - * authenticate if user is allowed to publish to the domain. + * This boolean is used to enable or disable local auth. Default value is false. When the property is set to true, + * only AAD token will be used to authenticate if user is allowed to publish to the domain. */ @JsonProperty(value = "disableLocalAuth") private Boolean disableLocalAuth; /* - * This Boolean is used to specify the creation mechanism for 'all' the - * Event Grid Domain Topics associated with this Event Grid Domain - * resource. - * In this context, creation of domain topic can be auto-managed (when - * true) or self-managed (when false). The default value for this property - * is true. - * When this property is null or set to true, Event Grid is responsible of - * automatically creating the domain topic when the first event - * subscription is - * created at the scope of the domain topic. If this property is set to - * false, then creating the first event subscription will require creating - * a domain topic - * by the user. The self-management mode can be used if the user wants full - * control of when the domain topic is created, while auto-managed mode - * provides the - * flexibility to perform less operations and manage fewer resources by the - * user. Also, note that in auto-managed creation mode, user is allowed to - * create the + * This Boolean is used to specify the creation mechanism for 'all' the Event Grid Domain Topics associated with + * this Event Grid Domain resource. + * In this context, creation of domain topic can be auto-managed (when true) or self-managed (when false). The + * default value for this property is true. + * When this property is null or set to true, Event Grid is responsible of automatically creating the domain topic + * when the first event subscription is + * created at the scope of the domain topic. If this property is set to false, then creating the first event + * subscription will require creating a domain topic + * by the user. The self-management mode can be used if the user wants full control of when the domain topic is + * created, while auto-managed mode provides the + * flexibility to perform less operations and manage fewer resources by the user. Also, note that in auto-managed + * creation mode, user is allowed to create the * domain topic on demand if needed. */ @JsonProperty(value = "autoCreateTopicWithFirstSubscription") private Boolean autoCreateTopicWithFirstSubscription; /* - * This Boolean is used to specify the deletion mechanism for 'all' the - * Event Grid Domain Topics associated with this Event Grid Domain - * resource. - * In this context, deletion of domain topic can be auto-managed (when - * true) or self-managed (when false). The default value for this property - * is true. - * When this property is set to true, Event Grid is responsible of - * automatically deleting the domain topic when the last event subscription - * at the scope - * of the domain topic is deleted. If this property is set to false, then - * the user needs to manually delete the domain topic when it is no longer - * needed - * (e.g., when last event subscription is deleted and the resource needs to - * be cleaned up). The self-management mode can be used if the user wants - * full - * control of when the domain topic needs to be deleted, while auto-managed - * mode provides the flexibility to perform less operations and manage - * fewer + * This Boolean is used to specify the deletion mechanism for 'all' the Event Grid Domain Topics associated with + * this Event Grid Domain resource. + * In this context, deletion of domain topic can be auto-managed (when true) or self-managed (when false). The + * default value for this property is true. + * When this property is set to true, Event Grid is responsible of automatically deleting the domain topic when the + * last event subscription at the scope + * of the domain topic is deleted. If this property is set to false, then the user needs to manually delete the + * domain topic when it is no longer needed + * (e.g., when last event subscription is deleted and the resource needs to be cleaned up). The self-management + * mode can be used if the user wants full + * control of when the domain topic needs to be deleted, while auto-managed mode provides the flexibility to + * perform less operations and manage fewer * resources by the user. */ @JsonProperty(value = "autoDeleteTopicWithLastSubscription") @@ -135,6 +118,10 @@ public final class DomainProperties { @JsonProperty(value = "dataResidencyBoundary") private DataResidencyBoundary dataResidencyBoundary; + /** Creates an instance of DomainProperties class. */ + public DomainProperties() { + } + /** * Get the privateEndpointConnections property: List of private endpoint connections. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DomainSharedAccessKeysInner.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DomainSharedAccessKeysInner.java index 483efe166551..9e0058e3b720 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DomainSharedAccessKeysInner.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DomainSharedAccessKeysInner.java @@ -22,6 +22,10 @@ public final class DomainSharedAccessKeysInner { @JsonProperty(value = "key2") private String key2; + /** Creates an instance of DomainSharedAccessKeysInner class. */ + public DomainSharedAccessKeysInner() { + } + /** * Get the key1 property: Shared access key1 for the domain. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DomainTopicInner.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DomainTopicInner.java index 1298dbff386b..b8c341efd12a 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DomainTopicInner.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DomainTopicInner.java @@ -25,6 +25,10 @@ public final class DomainTopicInner extends ProxyResource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of DomainTopicInner class. */ + public DomainTopicInner() { + } + /** * Get the innerProperties property: Properties of the Domain Topic. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DomainTopicProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DomainTopicProperties.java index 70008ce03045..ed668d1d9547 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DomainTopicProperties.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DomainTopicProperties.java @@ -17,6 +17,10 @@ public final class DomainTopicProperties { @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private DomainTopicProvisioningState provisioningState; + /** Creates an instance of DomainTopicProperties class. */ + public DomainTopicProperties() { + } + /** * Get the provisioningState property: Provisioning state of the domain topic. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DomainUpdateParameterProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DomainUpdateParameterProperties.java index 60ab0b1828e3..43ac49ea2bc7 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DomainUpdateParameterProperties.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DomainUpdateParameterProperties.java @@ -15,8 +15,7 @@ @Fluent public final class DomainUpdateParameterProperties { /* - * This determines if traffic is allowed over public network. By default it - * is enabled. + * This determines if traffic is allowed over public network. By default it is enabled. * You can further restrict to specific IPs by configuring @@ -25,63 +24,50 @@ public final class DomainUpdateParameterProperties { private PublicNetworkAccess publicNetworkAccess; /* - * This can be used to restrict traffic from specific IPs instead of all - * IPs. Note: These are considered only if PublicNetworkAccess is enabled. + * This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if + * PublicNetworkAccess is enabled. */ @JsonProperty(value = "inboundIpRules") private List inboundIpRules; /* - * This boolean is used to enable or disable local auth. Default value is - * false. When the property is set to true, only AAD token will be used to - * authenticate if user is allowed to publish to the domain. + * This boolean is used to enable or disable local auth. Default value is false. When the property is set to true, + * only AAD token will be used to authenticate if user is allowed to publish to the domain. */ @JsonProperty(value = "disableLocalAuth") private Boolean disableLocalAuth; /* - * This Boolean is used to specify the creation mechanism for 'all' the - * Event Grid Domain Topics associated with this Event Grid Domain - * resource. - * In this context, creation of domain topic can be auto-managed (when - * true) or self-managed (when false). The default value for this property - * is true. - * When this property is null or set to true, Event Grid is responsible of - * automatically creating the domain topic when the first event - * subscription is - * created at the scope of the domain topic. If this property is set to - * false, then creating the first event subscription will require creating - * a domain topic - * by the user. The self-management mode can be used if the user wants full - * control of when the domain topic is created, while auto-managed mode - * provides the - * flexibility to perform less operations and manage fewer resources by the - * user. Also, note that in auto-managed creation mode, user is allowed to - * create the + * This Boolean is used to specify the creation mechanism for 'all' the Event Grid Domain Topics associated with + * this Event Grid Domain resource. + * In this context, creation of domain topic can be auto-managed (when true) or self-managed (when false). The + * default value for this property is true. + * When this property is null or set to true, Event Grid is responsible of automatically creating the domain topic + * when the first event subscription is + * created at the scope of the domain topic. If this property is set to false, then creating the first event + * subscription will require creating a domain topic + * by the user. The self-management mode can be used if the user wants full control of when the domain topic is + * created, while auto-managed mode provides the + * flexibility to perform less operations and manage fewer resources by the user. Also, note that in auto-managed + * creation mode, user is allowed to create the * domain topic on demand if needed. */ @JsonProperty(value = "autoCreateTopicWithFirstSubscription") private Boolean autoCreateTopicWithFirstSubscription; /* - * This Boolean is used to specify the deletion mechanism for 'all' the - * Event Grid Domain Topics associated with this Event Grid Domain - * resource. - * In this context, deletion of domain topic can be auto-managed (when - * true) or self-managed (when false). The default value for this property - * is true. - * When this property is set to true, Event Grid is responsible of - * automatically deleting the domain topic when the last event subscription - * at the scope - * of the domain topic is deleted. If this property is set to false, then - * the user needs to manually delete the domain topic when it is no longer - * needed - * (e.g., when last event subscription is deleted and the resource needs to - * be cleaned up). The self-management mode can be used if the user wants - * full - * control of when the domain topic needs to be deleted, while auto-managed - * mode provides the flexibility to perform less operations and manage - * fewer + * This Boolean is used to specify the deletion mechanism for 'all' the Event Grid Domain Topics associated with + * this Event Grid Domain resource. + * In this context, deletion of domain topic can be auto-managed (when true) or self-managed (when false). The + * default value for this property is true. + * When this property is set to true, Event Grid is responsible of automatically deleting the domain topic when the + * last event subscription at the scope + * of the domain topic is deleted. If this property is set to false, then the user needs to manually delete the + * domain topic when it is no longer needed + * (e.g., when last event subscription is deleted and the resource needs to be cleaned up). The self-management + * mode can be used if the user wants full + * control of when the domain topic needs to be deleted, while auto-managed mode provides the flexibility to + * perform less operations and manage fewer * resources by the user. */ @JsonProperty(value = "autoDeleteTopicWithLastSubscription") @@ -93,6 +79,10 @@ public final class DomainUpdateParameterProperties { @JsonProperty(value = "dataResidencyBoundary") private DataResidencyBoundary dataResidencyBoundary; + /** Creates an instance of DomainUpdateParameterProperties class. */ + public DomainUpdateParameterProperties() { + } + /** * Get the publicNetworkAccess property: This determines if traffic is allowed over public network. By default it is * enabled. You can further restrict to specific IPs by configuring <seealso diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DynamicDeliveryAttributeMappingProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DynamicDeliveryAttributeMappingProperties.java index 3abe5bb3307e..58c545eef9f6 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DynamicDeliveryAttributeMappingProperties.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/DynamicDeliveryAttributeMappingProperties.java @@ -16,6 +16,10 @@ public final class DynamicDeliveryAttributeMappingProperties { @JsonProperty(value = "sourceField") private String sourceField; + /** Creates an instance of DynamicDeliveryAttributeMappingProperties class. */ + public DynamicDeliveryAttributeMappingProperties() { + } + /** * Get the sourceField property: JSON path in the event which contains attribute value. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/EventHubEventSubscriptionDestinationProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/EventHubEventSubscriptionDestinationProperties.java index b8a66d32fa5c..a501939c0118 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/EventHubEventSubscriptionDestinationProperties.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/EventHubEventSubscriptionDestinationProperties.java @@ -13,8 +13,7 @@ @Fluent public final class EventHubEventSubscriptionDestinationProperties { /* - * The Azure Resource Id that represents the endpoint of an Event Hub - * destination of an event subscription. + * The Azure Resource Id that represents the endpoint of an Event Hub destination of an event subscription. */ @JsonProperty(value = "resourceId") private String resourceId; @@ -25,6 +24,10 @@ public final class EventHubEventSubscriptionDestinationProperties { @JsonProperty(value = "deliveryAttributeMappings") private List deliveryAttributeMappings; + /** Creates an instance of EventHubEventSubscriptionDestinationProperties class. */ + public EventHubEventSubscriptionDestinationProperties() { + } + /** * Get the resourceId property: The Azure Resource Id that represents the endpoint of an Event Hub destination of an * event subscription. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/EventSubscriptionFullUrlInner.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/EventSubscriptionFullUrlInner.java index f9ad1d1b4d5c..a2554a823a55 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/EventSubscriptionFullUrlInner.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/EventSubscriptionFullUrlInner.java @@ -11,12 +11,15 @@ @Fluent public final class EventSubscriptionFullUrlInner { /* - * The URL that represents the endpoint of the destination of an event - * subscription. + * The URL that represents the endpoint of the destination of an event subscription. */ @JsonProperty(value = "endpointUrl") private String endpointUrl; + /** Creates an instance of EventSubscriptionFullUrlInner class. */ + public EventSubscriptionFullUrlInner() { + } + /** * Get the endpointUrl property: The URL that represents the endpoint of the destination of an event subscription. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/EventSubscriptionInner.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/EventSubscriptionInner.java index f30b100ccfc4..d4cf79a0d196 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/EventSubscriptionInner.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/EventSubscriptionInner.java @@ -34,6 +34,10 @@ public final class EventSubscriptionInner extends ProxyResource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of EventSubscriptionInner class. */ + public EventSubscriptionInner() { + } + /** * Get the innerProperties property: Properties of the event subscription. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/EventSubscriptionProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/EventSubscriptionProperties.java index ba9514ec17b4..dffcd8c4a416 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/EventSubscriptionProperties.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/EventSubscriptionProperties.java @@ -33,20 +33,17 @@ public final class EventSubscriptionProperties { private EventSubscriptionProvisioningState provisioningState; /* - * Information about the destination where events have to be delivered for - * the event subscription. - * Uses Azure Event Grid's identity to acquire the authentication tokens - * being used during delivery / dead-lettering. + * Information about the destination where events have to be delivered for the event subscription. + * Uses Azure Event Grid's identity to acquire the authentication tokens being used during delivery / + * dead-lettering. */ @JsonProperty(value = "destination") private EventSubscriptionDestination destination; /* - * Information about the destination where events have to be delivered for - * the event subscription. - * Uses the managed identity setup on the parent resource (namely, topic or - * domain) to acquire the authentication tokens being used during delivery - * / dead-lettering. + * Information about the destination where events have to be delivered for the event subscription. + * Uses the managed identity setup on the parent resource (namely, topic or domain) to acquire the authentication + * tokens being used during delivery / dead-lettering. */ @JsonProperty(value = "deliveryWithResourceIdentity") private DeliveryWithResourceIdentity deliveryWithResourceIdentity; @@ -76,33 +73,34 @@ public final class EventSubscriptionProperties { private EventDeliverySchema eventDeliverySchema; /* - * The retry policy for events. This can be used to configure maximum - * number of delivery attempts and time to live for events. + * The retry policy for events. This can be used to configure maximum number of delivery attempts and time to live + * for events. */ @JsonProperty(value = "retryPolicy") private RetryPolicy retryPolicy; /* - * The dead letter destination of the event subscription. Any event that - * cannot be delivered to its' destination is sent to the dead letter - * destination. - * Uses Azure Event Grid's identity to acquire the authentication tokens - * being used during delivery / dead-lettering. + * The dead letter destination of the event subscription. Any event that cannot be delivered to its' destination is + * sent to the dead letter destination. + * Uses Azure Event Grid's identity to acquire the authentication tokens being used during delivery / + * dead-lettering. */ @JsonProperty(value = "deadLetterDestination") private DeadLetterDestination deadLetterDestination; /* - * The dead letter destination of the event subscription. Any event that - * cannot be delivered to its' destination is sent to the dead letter - * destination. - * Uses the managed identity setup on the parent resource (namely, topic or - * domain) to acquire the authentication tokens being used during delivery - * / dead-lettering. + * The dead letter destination of the event subscription. Any event that cannot be delivered to its' destination is + * sent to the dead letter destination. + * Uses the managed identity setup on the parent resource (namely, topic or domain) to acquire the authentication + * tokens being used during delivery / dead-lettering. */ @JsonProperty(value = "deadLetterWithResourceIdentity") private DeadLetterWithResourceIdentity deadLetterWithResourceIdentity; + /** Creates an instance of EventSubscriptionProperties class. */ + public EventSubscriptionProperties() { + } + /** * Get the topic property: Name of the topic of the event subscription. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/EventTypeInner.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/EventTypeInner.java index 491e10879c48..9b21d401dcc4 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/EventTypeInner.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/EventTypeInner.java @@ -17,6 +17,10 @@ public final class EventTypeInner extends ProxyResource { @JsonProperty(value = "properties") private EventTypeProperties innerProperties; + /** Creates an instance of EventTypeInner class. */ + public EventTypeInner() { + } + /** * Get the innerProperties property: Properties of the event type. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/EventTypeProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/EventTypeProperties.java index 9ecebfa95b37..5b6f323bd7e6 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/EventTypeProperties.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/EventTypeProperties.java @@ -34,6 +34,10 @@ public final class EventTypeProperties { @JsonProperty(value = "isInDefaultSet") private Boolean isInDefaultSet; + /** Creates an instance of EventTypeProperties class. */ + public EventTypeProperties() { + } + /** * Get the displayName property: Display name of the event type. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ExtensionTopicInner.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ExtensionTopicInner.java index e01588eb0f0d..ab6ee749c0ed 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ExtensionTopicInner.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ExtensionTopicInner.java @@ -24,6 +24,10 @@ public final class ExtensionTopicInner extends ProxyResource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of ExtensionTopicInner class. */ + public ExtensionTopicInner() { + } + /** * Get the innerProperties property: Properties of the extension topic. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ExtensionTopicProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ExtensionTopicProperties.java index 27a37cea4716..ab4ccd6ff35e 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ExtensionTopicProperties.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ExtensionTopicProperties.java @@ -22,6 +22,10 @@ public final class ExtensionTopicProperties { @JsonProperty(value = "systemTopic") private String systemTopic; + /** Creates an instance of ExtensionTopicProperties class. */ + public ExtensionTopicProperties() { + } + /** * Get the description property: Description of the extension topic. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/HybridConnectionEventSubscriptionDestinationProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/HybridConnectionEventSubscriptionDestinationProperties.java index c52cb77ec877..8d93c2628fb7 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/HybridConnectionEventSubscriptionDestinationProperties.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/HybridConnectionEventSubscriptionDestinationProperties.java @@ -13,8 +13,7 @@ @Fluent public final class HybridConnectionEventSubscriptionDestinationProperties { /* - * The Azure Resource ID of an hybrid connection that is the destination of - * an event subscription. + * The Azure Resource ID of an hybrid connection that is the destination of an event subscription. */ @JsonProperty(value = "resourceId") private String resourceId; @@ -25,6 +24,10 @@ public final class HybridConnectionEventSubscriptionDestinationProperties { @JsonProperty(value = "deliveryAttributeMappings") private List deliveryAttributeMappings; + /** Creates an instance of HybridConnectionEventSubscriptionDestinationProperties class. */ + public HybridConnectionEventSubscriptionDestinationProperties() { + } + /** * Get the resourceId property: The Azure Resource ID of an hybrid connection that is the destination of an event * subscription. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/JsonInputSchemaMappingProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/JsonInputSchemaMappingProperties.java index f7eeee6212e7..3e6634f2af97 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/JsonInputSchemaMappingProperties.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/JsonInputSchemaMappingProperties.java @@ -28,33 +28,33 @@ public final class JsonInputSchemaMappingProperties { private JsonField topic; /* - * The mapping information for the EventTime property of the Event Grid - * Event. + * The mapping information for the EventTime property of the Event Grid Event. */ @JsonProperty(value = "eventTime") private JsonField eventTime; /* - * The mapping information for the EventType property of the Event Grid - * Event. + * The mapping information for the EventType property of the Event Grid Event. */ @JsonProperty(value = "eventType") private JsonFieldWithDefault eventType; /* - * The mapping information for the Subject property of the Event Grid - * Event. + * The mapping information for the Subject property of the Event Grid Event. */ @JsonProperty(value = "subject") private JsonFieldWithDefault subject; /* - * The mapping information for the DataVersion property of the Event Grid - * Event. + * The mapping information for the DataVersion property of the Event Grid Event. */ @JsonProperty(value = "dataVersion") private JsonFieldWithDefault dataVersion; + /** Creates an instance of JsonInputSchemaMappingProperties class. */ + public JsonInputSchemaMappingProperties() { + } + /** * Get the id property: The mapping information for the Id property of the Event Grid Event. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/OperationInner.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/OperationInner.java index aa67541b1482..ff1b546670c7 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/OperationInner.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/OperationInner.java @@ -30,8 +30,7 @@ public final class OperationInner { private String origin; /* - * This Boolean is used to determine if the operation is a data plane - * action or not. + * This Boolean is used to determine if the operation is a data plane action or not. */ @JsonProperty(value = "isDataAction") private Boolean isDataAction; @@ -42,6 +41,10 @@ public final class OperationInner { @JsonProperty(value = "properties") private Object properties; + /** Creates an instance of OperationInner class. */ + public OperationInner() { + } + /** * Get the name property: Name of the operation. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerConfigurationInner.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerConfigurationInner.java index 26d863a12e1a..786a1b72b55e 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerConfigurationInner.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerConfigurationInner.java @@ -41,6 +41,10 @@ public final class PartnerConfigurationInner extends ProxyResource { @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map tags; + /** Creates an instance of PartnerConfigurationInner class. */ + public PartnerConfigurationInner() { + } + /** * Get the innerProperties property: Properties of the partner configuration. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerConfigurationProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerConfigurationProperties.java index cb1e5d56ef57..6171537e18a2 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerConfigurationProperties.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerConfigurationProperties.java @@ -24,6 +24,10 @@ public final class PartnerConfigurationProperties { @JsonProperty(value = "provisioningState") private PartnerConfigurationProvisioningState provisioningState; + /** Creates an instance of PartnerConfigurationProperties class. */ + public PartnerConfigurationProperties() { + } + /** * Get the partnerAuthorization property: The details of authorized partners. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerConfigurationUpdateParameterProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerConfigurationUpdateParameterProperties.java index 7d5ea3409fff..3cfa3df689db 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerConfigurationUpdateParameterProperties.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerConfigurationUpdateParameterProperties.java @@ -11,12 +11,16 @@ @Fluent public final class PartnerConfigurationUpdateParameterProperties { /* - * The default time used to validate the maximum expiration time for each - * authorized partners in days. Allowed values ar between 1 and 365 days. + * The default time used to validate the maximum expiration time for each authorized partners in days. Allowed + * values ar between 1 and 365 days. */ @JsonProperty(value = "defaultMaximumExpirationTimeInDays") private Integer defaultMaximumExpirationTimeInDays; + /** Creates an instance of PartnerConfigurationUpdateParameterProperties class. */ + public PartnerConfigurationUpdateParameterProperties() { + } + /** * Get the defaultMaximumExpirationTimeInDays property: The default time used to validate the maximum expiration * time for each authorized partners in days. Allowed values ar between 1 and 365 days. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerNamespaceInner.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerNamespaceInner.java index ff4e7ce8844d..d6565c5387c9 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerNamespaceInner.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerNamespaceInner.java @@ -30,6 +30,10 @@ public final class PartnerNamespaceInner extends Resource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of PartnerNamespaceInner class. */ + public PartnerNamespaceInner() { + } + /** * Get the innerProperties property: Properties of the Partner Namespace. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerNamespaceProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerNamespaceProperties.java index 70bac32479db..4ef2a34e7cd4 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerNamespaceProperties.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerNamespaceProperties.java @@ -28,8 +28,8 @@ public final class PartnerNamespaceProperties { private PartnerNamespaceProvisioningState provisioningState; /* - * The fully qualified ARM Id of the partner registration that should be - * associated with this partner namespace. This takes the following format: + * The fully qualified ARM Id of the partner registration that should be associated with this partner namespace. + * This takes the following format: * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerRegistrations/{partnerRegistrationName}. */ @JsonProperty(value = "partnerRegistrationFullyQualifiedId") @@ -42,40 +42,40 @@ public final class PartnerNamespaceProperties { private String endpoint; /* - * This determines if traffic is allowed over public network. By default it - * is enabled. + * This determines if traffic is allowed over public network. By default it is enabled. * You can further restrict to specific IPs by configuring + * cref="P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.PartnerNamespaceProperties.InboundIpRules" /> */ @JsonProperty(value = "publicNetworkAccess") private PublicNetworkAccess publicNetworkAccess; /* - * This can be used to restrict traffic from specific IPs instead of all - * IPs. Note: These are considered only if PublicNetworkAccess is enabled. + * This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if + * PublicNetworkAccess is enabled. */ @JsonProperty(value = "inboundIpRules") private List inboundIpRules; /* - * This boolean is used to enable or disable local auth. Default value is - * false. When the property is set to true, only AAD token will be used to - * authenticate if user is allowed to publish to the partner namespace. + * This boolean is used to enable or disable local auth. Default value is false. When the property is set to true, + * only AAD token will be used to authenticate if user is allowed to publish to the partner namespace. */ @JsonProperty(value = "disableLocalAuth") private Boolean disableLocalAuth; /* - * This determines if events published to this partner namespace should use - * the source attribute in the event payload - * or use the channel name in the header when matching to the partner - * topic. If none is specified, source attribute routing will be used to - * match the partner topic. + * This determines if events published to this partner namespace should use the source attribute in the event + * payload + * or use the channel name in the header when matching to the partner topic. If none is specified, source attribute + * routing will be used to match the partner topic. */ @JsonProperty(value = "partnerTopicRoutingMode") private PartnerTopicRoutingMode partnerTopicRoutingMode; + /** Creates an instance of PartnerNamespaceProperties class. */ + public PartnerNamespaceProperties() { + } + /** * Get the privateEndpointConnections property: The privateEndpointConnections property. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerNamespaceSharedAccessKeysInner.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerNamespaceSharedAccessKeysInner.java index 55ce8f22127b..d76bf1ac6a30 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerNamespaceSharedAccessKeysInner.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerNamespaceSharedAccessKeysInner.java @@ -22,6 +22,10 @@ public final class PartnerNamespaceSharedAccessKeysInner { @JsonProperty(value = "key2") private String key2; + /** Creates an instance of PartnerNamespaceSharedAccessKeysInner class. */ + public PartnerNamespaceSharedAccessKeysInner() { + } + /** * Get the key1 property: Shared access key1 for the partner namespace. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerNamespaceUpdateParameterProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerNamespaceUpdateParameterProperties.java index 44a4184109d6..68f7d39dc3ed 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerNamespaceUpdateParameterProperties.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerNamespaceUpdateParameterProperties.java @@ -14,36 +14,36 @@ @Fluent public final class PartnerNamespaceUpdateParameterProperties { /* - * This determines if traffic is allowed over public network. By default it - * is enabled. + * This determines if traffic is allowed over public network. By default it is enabled. * You can further restrict to specific IPs by configuring */ @JsonProperty(value = "publicNetworkAccess") private PublicNetworkAccess publicNetworkAccess; /* - * This can be used to restrict traffic from specific IPs instead of all - * IPs. Note: These are considered only if PublicNetworkAccess is enabled. + * This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if + * PublicNetworkAccess is enabled. */ @JsonProperty(value = "inboundIpRules") private List inboundIpRules; /* - * This boolean is used to enable or disable local auth. Default value is - * false. When the property is set to true, only AAD token will be used to - * authenticate if user is allowed to publish to the partner namespace. + * This boolean is used to enable or disable local auth. Default value is false. When the property is set to true, + * only AAD token will be used to authenticate if user is allowed to publish to the partner namespace. */ @JsonProperty(value = "disableLocalAuth") private Boolean disableLocalAuth; + /** Creates an instance of PartnerNamespaceUpdateParameterProperties class. */ + public PartnerNamespaceUpdateParameterProperties() { + } + /** * Get the publicNetworkAccess property: This determines if traffic is allowed over public network. By default it is * enabled. You can further restrict to specific IPs by configuring <seealso - * cref="P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.PartnerNamespaceUpdateParameterProperties" - + ".InboundIpRules" + * cref="P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.PartnerNamespaceUpdateParameterProperties.InboundIpRules" * />. * * @return the publicNetworkAccess value. @@ -55,8 +55,7 @@ public PublicNetworkAccess publicNetworkAccess() { /** * Set the publicNetworkAccess property: This determines if traffic is allowed over public network. By default it is * enabled. You can further restrict to specific IPs by configuring <seealso - * cref="P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.PartnerNamespaceUpdateParameterProperties" - + ".InboundIpRules" + * cref="P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.PartnerNamespaceUpdateParameterProperties.InboundIpRules" * />. * * @param publicNetworkAccess the publicNetworkAccess value to set. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerRegistrationInner.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerRegistrationInner.java index 750161d966a8..cb81b8464493 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerRegistrationInner.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerRegistrationInner.java @@ -27,6 +27,10 @@ public final class PartnerRegistrationInner extends Resource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of PartnerRegistrationInner class. */ + public PartnerRegistrationInner() { + } + /** * Get the innerProperties property: Properties of the partner registration. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerRegistrationProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerRegistrationProperties.java index b937ca1b6034..06903762d634 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerRegistrationProperties.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerRegistrationProperties.java @@ -20,12 +20,15 @@ public final class PartnerRegistrationProperties { /* * The immutableId of the corresponding partner registration. - * Note: This property is marked for deprecation and is not supported in - * any future GA API version + * Note: This property is marked for deprecation and is not supported in any future GA API version */ @JsonProperty(value = "partnerRegistrationImmutableId") private UUID partnerRegistrationImmutableId; + /** Creates an instance of PartnerRegistrationProperties class. */ + public PartnerRegistrationProperties() { + } + /** * Get the provisioningState property: Provisioning state of the partner registration. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerTopicInner.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerTopicInner.java index deb2b455c23d..07b84461f07e 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerTopicInner.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerTopicInner.java @@ -37,6 +37,10 @@ public final class PartnerTopicInner extends Resource { @JsonProperty(value = "identity") private IdentityInfo identity; + /** Creates an instance of PartnerTopicInner class. */ + public PartnerTopicInner() { + } + /** * Get the innerProperties property: Properties of the Partner Topic. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerTopicProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerTopicProperties.java index 1a438c54a0e4..73310a244d12 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerTopicProperties.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerTopicProperties.java @@ -22,8 +22,7 @@ public final class PartnerTopicProperties { private UUID partnerRegistrationImmutableId; /* - * Source associated with this partner topic. This represents a unique - * partner resource. + * Source associated with this partner topic. This represents a unique partner resource. */ @JsonProperty(value = "source") private String source; @@ -35,8 +34,7 @@ public final class PartnerTopicProperties { private EventTypeInfo eventTypeInfo; /* - * Expiration time of the partner topic. If this timer expires while the - * partner topic is still never activated, + * Expiration time of the partner topic. If this timer expires while the partner topic is still never activated, * the partner topic and corresponding event channel are deleted. */ @JsonProperty(value = "expirationTimeIfNotActivatedUtc") @@ -55,22 +53,23 @@ public final class PartnerTopicProperties { private PartnerTopicActivationState activationState; /* - * Friendly description about the topic. This can be set by the - * publisher/partner to show custom description for the customer partner - * topic. - * This will be helpful to remove any ambiguity of the origin of creation - * of the partner topic for the customer. + * Friendly description about the topic. This can be set by the publisher/partner to show custom description for + * the customer partner topic. + * This will be helpful to remove any ambiguity of the origin of creation of the partner topic for the customer. */ @JsonProperty(value = "partnerTopicFriendlyDescription") private String partnerTopicFriendlyDescription; /* - * Context or helpful message that can be used during the approval process - * by the subscriber. + * Context or helpful message that can be used during the approval process by the subscriber. */ @JsonProperty(value = "messageForActivation") private String messageForActivation; + /** Creates an instance of PartnerTopicProperties class. */ + public PartnerTopicProperties() { + } + /** * Get the partnerRegistrationImmutableId property: The immutableId of the corresponding partner registration. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PrivateEndpointConnectionInner.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PrivateEndpointConnectionInner.java index 3d1c683a0ea4..d3a73287736d 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PrivateEndpointConnectionInner.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PrivateEndpointConnectionInner.java @@ -21,6 +21,10 @@ public final class PrivateEndpointConnectionInner extends ProxyResource { @JsonProperty(value = "properties") private PrivateEndpointConnectionProperties innerProperties; + /** Creates an instance of PrivateEndpointConnectionInner class. */ + public PrivateEndpointConnectionInner() { + } + /** * Get the innerProperties property: Properties of the PrivateEndpointConnection. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PrivateEndpointConnectionProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PrivateEndpointConnectionProperties.java index 560906a76037..e475ce0686f8 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PrivateEndpointConnectionProperties.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PrivateEndpointConnectionProperties.java @@ -38,6 +38,10 @@ public final class PrivateEndpointConnectionProperties { @JsonProperty(value = "provisioningState") private ResourceProvisioningState provisioningState; + /** Creates an instance of PrivateEndpointConnectionProperties class. */ + public PrivateEndpointConnectionProperties() { + } + /** * Get the privateEndpoint property: The Private Endpoint resource for this Connection. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PrivateLinkResourceInner.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PrivateLinkResourceInner.java index c83cc3a67bf4..7b6ac069dab5 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PrivateLinkResourceInner.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PrivateLinkResourceInner.java @@ -35,6 +35,10 @@ public final class PrivateLinkResourceInner { @JsonProperty(value = "type") private String type; + /** Creates an instance of PrivateLinkResourceInner class. */ + public PrivateLinkResourceInner() { + } + /** * Get the innerProperties property: Properties of the private link resource. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PrivateLinkResourceProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PrivateLinkResourceProperties.java index 8ac2b4f01693..0152ab9c982c 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PrivateLinkResourceProperties.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PrivateLinkResourceProperties.java @@ -35,6 +35,10 @@ public final class PrivateLinkResourceProperties { @JsonProperty(value = "requiredZoneNames") private List requiredZoneNames; + /** Creates an instance of PrivateLinkResourceProperties class. */ + public PrivateLinkResourceProperties() { + } + /** * Get the groupId property: The groupId property. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ServiceBusQueueEventSubscriptionDestinationProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ServiceBusQueueEventSubscriptionDestinationProperties.java index 91416e532709..78e6488e42df 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ServiceBusQueueEventSubscriptionDestinationProperties.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ServiceBusQueueEventSubscriptionDestinationProperties.java @@ -13,8 +13,7 @@ @Fluent public final class ServiceBusQueueEventSubscriptionDestinationProperties { /* - * The Azure Resource Id that represents the endpoint of the Service Bus - * destination of an event subscription. + * The Azure Resource Id that represents the endpoint of the Service Bus destination of an event subscription. */ @JsonProperty(value = "resourceId") private String resourceId; @@ -25,6 +24,10 @@ public final class ServiceBusQueueEventSubscriptionDestinationProperties { @JsonProperty(value = "deliveryAttributeMappings") private List deliveryAttributeMappings; + /** Creates an instance of ServiceBusQueueEventSubscriptionDestinationProperties class. */ + public ServiceBusQueueEventSubscriptionDestinationProperties() { + } + /** * Get the resourceId property: The Azure Resource Id that represents the endpoint of the Service Bus destination of * an event subscription. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ServiceBusTopicEventSubscriptionDestinationProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ServiceBusTopicEventSubscriptionDestinationProperties.java index 4a50ec2f42b1..045f0d9f9e9e 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ServiceBusTopicEventSubscriptionDestinationProperties.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ServiceBusTopicEventSubscriptionDestinationProperties.java @@ -13,8 +13,8 @@ @Fluent public final class ServiceBusTopicEventSubscriptionDestinationProperties { /* - * The Azure Resource Id that represents the endpoint of the Service Bus - * Topic destination of an event subscription. + * The Azure Resource Id that represents the endpoint of the Service Bus Topic destination of an event + * subscription. */ @JsonProperty(value = "resourceId") private String resourceId; @@ -25,6 +25,10 @@ public final class ServiceBusTopicEventSubscriptionDestinationProperties { @JsonProperty(value = "deliveryAttributeMappings") private List deliveryAttributeMappings; + /** Creates an instance of ServiceBusTopicEventSubscriptionDestinationProperties class. */ + public ServiceBusTopicEventSubscriptionDestinationProperties() { + } + /** * Get the resourceId property: The Azure Resource Id that represents the endpoint of the Service Bus Topic * destination of an event subscription. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/StaticDeliveryAttributeMappingProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/StaticDeliveryAttributeMappingProperties.java index 3767cb5b0d04..3a1694e10313 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/StaticDeliveryAttributeMappingProperties.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/StaticDeliveryAttributeMappingProperties.java @@ -22,6 +22,10 @@ public final class StaticDeliveryAttributeMappingProperties { @JsonProperty(value = "isSecret") private Boolean isSecret; + /** Creates an instance of StaticDeliveryAttributeMappingProperties class. */ + public StaticDeliveryAttributeMappingProperties() { + } + /** * Get the value property: Value of the delivery attribute. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/StorageBlobDeadLetterDestinationProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/StorageBlobDeadLetterDestinationProperties.java index a22d00b97f47..12fdaafc06af 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/StorageBlobDeadLetterDestinationProperties.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/StorageBlobDeadLetterDestinationProperties.java @@ -11,19 +11,21 @@ @Fluent public final class StorageBlobDeadLetterDestinationProperties { /* - * The Azure Resource ID of the storage account that is the destination of - * the deadletter events + * The Azure Resource ID of the storage account that is the destination of the deadletter events */ @JsonProperty(value = "resourceId") private String resourceId; /* - * The name of the Storage blob container that is the destination of the - * deadletter events + * The name of the Storage blob container that is the destination of the deadletter events */ @JsonProperty(value = "blobContainerName") private String blobContainerName; + /** Creates an instance of StorageBlobDeadLetterDestinationProperties class. */ + public StorageBlobDeadLetterDestinationProperties() { + } + /** * Get the resourceId property: The Azure Resource ID of the storage account that is the destination of the * deadletter events. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/StorageQueueEventSubscriptionDestinationProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/StorageQueueEventSubscriptionDestinationProperties.java index e3bc3f1d582f..7836539e58bd 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/StorageQueueEventSubscriptionDestinationProperties.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/StorageQueueEventSubscriptionDestinationProperties.java @@ -11,15 +11,14 @@ @Fluent public final class StorageQueueEventSubscriptionDestinationProperties { /* - * The Azure Resource ID of the storage account that contains the queue - * that is the destination of an event subscription. + * The Azure Resource ID of the storage account that contains the queue that is the destination of an event + * subscription. */ @JsonProperty(value = "resourceId") private String resourceId; /* - * The name of the Storage queue under a storage account that is the - * destination of an event subscription. + * The name of the Storage queue under a storage account that is the destination of an event subscription. */ @JsonProperty(value = "queueName") private String queueName; @@ -30,6 +29,10 @@ public final class StorageQueueEventSubscriptionDestinationProperties { @JsonProperty(value = "queueMessageTimeToLiveInSeconds") private Long queueMessageTimeToLiveInSeconds; + /** Creates an instance of StorageQueueEventSubscriptionDestinationProperties class. */ + public StorageQueueEventSubscriptionDestinationProperties() { + } + /** * Get the resourceId property: The Azure Resource ID of the storage account that contains the queue that is the * destination of an event subscription. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/SystemTopicInner.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/SystemTopicInner.java index a365b3a30b51..302de2fac4b6 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/SystemTopicInner.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/SystemTopicInner.java @@ -33,6 +33,10 @@ public final class SystemTopicInner extends Resource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of SystemTopicInner class. */ + public SystemTopicInner() { + } + /** * Get the innerProperties property: Properties of the system topic. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/SystemTopicProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/SystemTopicProperties.java index 6365187456da..3ee904541f68 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/SystemTopicProperties.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/SystemTopicProperties.java @@ -35,6 +35,10 @@ public final class SystemTopicProperties { @JsonProperty(value = "metricResourceId", access = JsonProperty.Access.WRITE_ONLY) private String metricResourceId; + /** Creates an instance of SystemTopicProperties class. */ + public SystemTopicProperties() { + } + /** * Get the provisioningState property: Provisioning state of the system topic. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicInner.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicInner.java index ed75a32aa873..cf67abc40b79 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicInner.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicInner.java @@ -39,6 +39,10 @@ public final class TopicInner extends Resource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of TopicInner class. */ + public TopicInner() { + } + /** * Get the innerProperties property: Properties of the topic. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicProperties.java index bda404b96a3b..d661fee77bf4 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicProperties.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicProperties.java @@ -36,17 +36,14 @@ public final class TopicProperties { private String endpoint; /* - * This determines the format that Event Grid should expect for incoming - * events published to the topic. + * This determines the format that Event Grid should expect for incoming events published to the topic. */ @JsonProperty(value = "inputSchema") private InputSchema inputSchema; /* - * This enables publishing using custom event schemas. An - * InputSchemaMapping can be specified to map various properties of a - * source schema to various required properties of the EventGridEvent - * schema. + * This enables publishing using custom event schemas. An InputSchemaMapping can be specified to map various + * properties of a source schema to various required properties of the EventGridEvent schema. */ @JsonProperty(value = "inputSchemaMapping") private InputSchemaMapping inputSchemaMapping; @@ -58,26 +55,23 @@ public final class TopicProperties { private String metricResourceId; /* - * This determines if traffic is allowed over public network. By default it - * is enabled. + * This determines if traffic is allowed over public network. By default it is enabled. * You can further restrict to specific IPs by configuring + * cref="P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.TopicProperties.InboundIpRules" /> */ @JsonProperty(value = "publicNetworkAccess") private PublicNetworkAccess publicNetworkAccess; /* - * This can be used to restrict traffic from specific IPs instead of all - * IPs. Note: These are considered only if PublicNetworkAccess is enabled. + * This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if + * PublicNetworkAccess is enabled. */ @JsonProperty(value = "inboundIpRules") private List inboundIpRules; /* - * This boolean is used to enable or disable local auth. Default value is - * false. When the property is set to true, only AAD token will be used to - * authenticate if user is allowed to publish to the topic. + * This boolean is used to enable or disable local auth. Default value is false. When the property is set to true, + * only AAD token will be used to authenticate if user is allowed to publish to the topic. */ @JsonProperty(value = "disableLocalAuth") private Boolean disableLocalAuth; @@ -88,6 +82,10 @@ public final class TopicProperties { @JsonProperty(value = "dataResidencyBoundary") private DataResidencyBoundary dataResidencyBoundary; + /** Creates an instance of TopicProperties class. */ + public TopicProperties() { + } + /** * Get the privateEndpointConnections property: The privateEndpointConnections property. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicSharedAccessKeysInner.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicSharedAccessKeysInner.java index fb36d182bd13..994d9d560a8e 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicSharedAccessKeysInner.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicSharedAccessKeysInner.java @@ -22,6 +22,10 @@ public final class TopicSharedAccessKeysInner { @JsonProperty(value = "key2") private String key2; + /** Creates an instance of TopicSharedAccessKeysInner class. */ + public TopicSharedAccessKeysInner() { + } + /** * Get the key1 property: Shared access key1 for the topic. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicTypeInfoInner.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicTypeInfoInner.java index f5f7416da430..3f0dfa51b12d 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicTypeInfoInner.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicTypeInfoInner.java @@ -21,6 +21,10 @@ public final class TopicTypeInfoInner extends ProxyResource { @JsonProperty(value = "properties") private TopicTypeProperties innerProperties; + /** Creates an instance of TopicTypeInfoInner class. */ + public TopicTypeInfoInner() { + } + /** * Get the innerProperties property: Properties of the topic type info. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicTypeProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicTypeProperties.java index 775a69b946e6..a24bd316fef0 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicTypeProperties.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicTypeProperties.java @@ -62,6 +62,10 @@ public final class TopicTypeProperties { @JsonProperty(value = "supportedScopesForSource") private List supportedScopesForSource; + /** Creates an instance of TopicTypeProperties class. */ + public TopicTypeProperties() { + } + /** * Get the provider property: Namespace of the provider of the topic type. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicUpdateParameterProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicUpdateParameterProperties.java index 76f8fe06e78a..293c8145edda 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicUpdateParameterProperties.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicUpdateParameterProperties.java @@ -15,8 +15,7 @@ @Fluent public final class TopicUpdateParameterProperties { /* - * This determines if traffic is allowed over public network. By default it - * is enabled. + * This determines if traffic is allowed over public network. By default it is enabled. * You can further restrict to specific IPs by configuring @@ -25,16 +24,15 @@ public final class TopicUpdateParameterProperties { private PublicNetworkAccess publicNetworkAccess; /* - * This can be used to restrict traffic from specific IPs instead of all - * IPs. Note: These are considered only if PublicNetworkAccess is enabled. + * This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if + * PublicNetworkAccess is enabled. */ @JsonProperty(value = "inboundIpRules") private List inboundIpRules; /* - * This boolean is used to enable or disable local auth. Default value is - * false. When the property is set to true, only AAD token will be used to - * authenticate if user is allowed to publish to the topic. + * This boolean is used to enable or disable local auth. Default value is false. When the property is set to true, + * only AAD token will be used to authenticate if user is allowed to publish to the topic. */ @JsonProperty(value = "disableLocalAuth") private Boolean disableLocalAuth; @@ -45,6 +43,10 @@ public final class TopicUpdateParameterProperties { @JsonProperty(value = "dataResidencyBoundary") private DataResidencyBoundary dataResidencyBoundary; + /** Creates an instance of TopicUpdateParameterProperties class. */ + public TopicUpdateParameterProperties() { + } + /** * Get the publicNetworkAccess property: This determines if traffic is allowed over public network. By default it is * enabled. You can further restrict to specific IPs by configuring <seealso diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/VerifiedPartnerInner.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/VerifiedPartnerInner.java index ce60977f2e05..461b693e5350 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/VerifiedPartnerInner.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/VerifiedPartnerInner.java @@ -27,6 +27,10 @@ public final class VerifiedPartnerInner extends ProxyResource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of VerifiedPartnerInner class. */ + public VerifiedPartnerInner() { + } + /** * Get the innerProperties property: Properties of the verified partner. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/VerifiedPartnerProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/VerifiedPartnerProperties.java index 78006b1192b3..ef495bf9f21f 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/VerifiedPartnerProperties.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/VerifiedPartnerProperties.java @@ -43,6 +43,10 @@ public final class VerifiedPartnerProperties { @JsonProperty(value = "provisioningState") private VerifiedPartnerProvisioningState provisioningState; + /** Creates an instance of VerifiedPartnerProperties class. */ + public VerifiedPartnerProperties() { + } + /** * Get the partnerRegistrationImmutableId property: ImmutableId of the corresponding partner registration. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/WebhookEventSubscriptionDestinationProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/WebhookEventSubscriptionDestinationProperties.java index 57fdc9572dbf..74477a8fe947 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/WebhookEventSubscriptionDestinationProperties.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/WebhookEventSubscriptionDestinationProperties.java @@ -13,15 +13,13 @@ @Fluent public final class WebhookEventSubscriptionDestinationProperties { /* - * The URL that represents the endpoint of the destination of an event - * subscription. + * The URL that represents the endpoint of the destination of an event subscription. */ @JsonProperty(value = "endpointUrl") private String endpointUrl; /* - * The base URL that represents the endpoint of the destination of an event - * subscription. + * The base URL that represents the endpoint of the destination of an event subscription. */ @JsonProperty(value = "endpointBaseUrl", access = JsonProperty.Access.WRITE_ONLY) private String endpointBaseUrl; @@ -39,15 +37,15 @@ public final class WebhookEventSubscriptionDestinationProperties { private Integer preferredBatchSizeInKilobytes; /* - * The Azure Active Directory Tenant ID to get the access token that will - * be included as the bearer token in delivery requests. + * The Azure Active Directory Tenant ID to get the access token that will be included as the bearer token in + * delivery requests. */ @JsonProperty(value = "azureActiveDirectoryTenantId") private String azureActiveDirectoryTenantId; /* - * The Azure Active Directory Application ID or URI to get the access token - * that will be included as the bearer token in delivery requests. + * The Azure Active Directory Application ID or URI to get the access token that will be included as the bearer + * token in delivery requests. */ @JsonProperty(value = "azureActiveDirectoryApplicationIdOrUri") private String azureActiveDirectoryApplicationIdOrUri; @@ -58,6 +56,10 @@ public final class WebhookEventSubscriptionDestinationProperties { @JsonProperty(value = "deliveryAttributeMappings") private List deliveryAttributeMappings; + /** Creates an instance of WebhookEventSubscriptionDestinationProperties class. */ + public WebhookEventSubscriptionDestinationProperties() { + } + /** * Get the endpointUrl property: The URL that represents the endpoint of the destination of an event subscription. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/ChannelImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/ChannelImpl.java index b236d50e28d6..67c6b816b314 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/ChannelImpl.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/ChannelImpl.java @@ -167,16 +167,16 @@ public Channel refresh(Context context) { return this; } - public EventSubscriptionFullUrl getFullUrl() { - return serviceManager.channels().getFullUrl(resourceGroupName, partnerNamespaceName, channelName); - } - public Response getFullUrlWithResponse(Context context) { return serviceManager .channels() .getFullUrlWithResponse(resourceGroupName, partnerNamespaceName, channelName, context); } + public EventSubscriptionFullUrl getFullUrl() { + return serviceManager.channels().getFullUrl(resourceGroupName, partnerNamespaceName, channelName); + } + public ChannelImpl withChannelType(ChannelType channelType) { this.innerModel().withChannelType(channelType); return this; diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/ChannelsClientImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/ChannelsClientImpl.java index 1e2584301766..b19ecb03a04c 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/ChannelsClientImpl.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/ChannelsClientImpl.java @@ -66,11 +66,10 @@ public final class ChannelsClientImpl implements ChannelsClient { */ @Host("{$host}") @ServiceInterface(name = "EventGridManagementC") - private interface ChannelsService { + public interface ChannelsService { @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/partnerNamespaces/{partnerNamespaceName}/channels/{channelName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}/channels/{channelName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get( @@ -85,8 +84,7 @@ Mono> get( @Headers({"Content-Type: application/json"}) @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/partnerNamespaces/{partnerNamespaceName}/channels/{channelName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}/channels/{channelName}") @ExpectedResponses({200, 201}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> createOrUpdate( @@ -102,8 +100,7 @@ Mono> createOrUpdate( @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/partnerNamespaces/{partnerNamespaceName}/channels/{channelName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}/channels/{channelName}") @ExpectedResponses({200, 202, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> delete( @@ -117,8 +114,7 @@ Mono>> delete( @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) @Patch( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/partnerNamespaces/{partnerNamespaceName}/channels/{channelName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}/channels/{channelName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> update( @@ -133,8 +129,7 @@ Mono> update( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/partnerNamespaces/{partnerNamespaceName}/channels") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}/channels") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByPartnerNamespace( @@ -150,8 +145,7 @@ Mono> listByPartnerNamespace( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/partnerNamespaces/{partnerNamespaceName}/channels/{channelName}/getFullUrl") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}/channels/{channelName}/getFullUrl") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> getFullUrl( @@ -176,7 +170,9 @@ Mono> listByPartnerNamespaceNext( } /** - * Get properties of a channel. + * Get a channel. + * + *

Get properties of a channel. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -230,7 +226,9 @@ private Mono> getWithResponseAsync( } /** - * Get properties of a channel. + * Get a channel. + * + *

Get properties of a channel. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -282,7 +280,9 @@ private Mono> getWithResponseAsync( } /** - * Get properties of a channel. + * Get a channel. + * + *

Get properties of a channel. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -299,41 +299,47 @@ private Mono getAsync(String resourceGroupName, String partnerName } /** - * Get properties of a channel. + * Get a channel. + * + *

Get properties of a channel. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. * @param channelName Name of the channel. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a channel. + * @return properties of a channel along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ChannelInner get(String resourceGroupName, String partnerNamespaceName, String channelName) { - return getAsync(resourceGroupName, partnerNamespaceName, channelName).block(); + public Response getWithResponse( + String resourceGroupName, String partnerNamespaceName, String channelName, Context context) { + return getWithResponseAsync(resourceGroupName, partnerNamespaceName, channelName, context).block(); } /** - * Get properties of a channel. + * Get a channel. + * + *

Get properties of a channel. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. * @param channelName Name of the channel. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a channel along with {@link Response}. + * @return properties of a channel. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String partnerNamespaceName, String channelName, Context context) { - return getWithResponseAsync(resourceGroupName, partnerNamespaceName, channelName, context).block(); + public ChannelInner get(String resourceGroupName, String partnerNamespaceName, String channelName) { + return getWithResponse(resourceGroupName, partnerNamespaceName, channelName, Context.NONE).getValue(); } /** - * Synchronously creates or updates a new channel with the specified parameters. + * Create or update a channel. + * + *

Synchronously creates or updates a new channel with the specified parameters. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -394,7 +400,9 @@ private Mono> createOrUpdateWithResponseAsync( } /** - * Synchronously creates or updates a new channel with the specified parameters. + * Create or update a channel. + * + *

Synchronously creates or updates a new channel with the specified parameters. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -457,7 +465,9 @@ private Mono> createOrUpdateWithResponseAsync( } /** - * Synchronously creates or updates a new channel with the specified parameters. + * Create or update a channel. + * + *

Synchronously creates or updates a new channel with the specified parameters. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -476,50 +486,58 @@ private Mono createOrUpdateAsync( } /** - * Synchronously creates or updates a new channel with the specified parameters. + * Create or update a channel. + * + *

Synchronously creates or updates a new channel with the specified parameters. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. * @param channelName Name of the channel. * @param channelInfo Channel information. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return channel info. + * @return channel info along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ChannelInner createOrUpdate( - String resourceGroupName, String partnerNamespaceName, String channelName, ChannelInner channelInfo) { - return createOrUpdateAsync(resourceGroupName, partnerNamespaceName, channelName, channelInfo).block(); + public Response createOrUpdateWithResponse( + String resourceGroupName, + String partnerNamespaceName, + String channelName, + ChannelInner channelInfo, + Context context) { + return createOrUpdateWithResponseAsync( + resourceGroupName, partnerNamespaceName, channelName, channelInfo, context) + .block(); } /** - * Synchronously creates or updates a new channel with the specified parameters. + * Create or update a channel. + * + *

Synchronously creates or updates a new channel with the specified parameters. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. * @param channelName Name of the channel. * @param channelInfo Channel information. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return channel info along with {@link Response}. + * @return channel info. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceGroupName, - String partnerNamespaceName, - String channelName, - ChannelInner channelInfo, - Context context) { - return createOrUpdateWithResponseAsync( - resourceGroupName, partnerNamespaceName, channelName, channelInfo, context) - .block(); + public ChannelInner createOrUpdate( + String resourceGroupName, String partnerNamespaceName, String channelName, ChannelInner channelInfo) { + return createOrUpdateWithResponse( + resourceGroupName, partnerNamespaceName, channelName, channelInfo, Context.NONE) + .getValue(); } /** - * Delete an existing channel. + * Delete a channel. + * + *

Delete an existing channel. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -571,7 +589,9 @@ private Mono>> deleteWithResponseAsync( } /** - * Delete an existing channel. + * Delete a channel. + * + *

Delete an existing channel. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -621,7 +641,9 @@ private Mono>> deleteWithResponseAsync( } /** - * Delete an existing channel. + * Delete a channel. + * + *

Delete an existing channel. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -643,7 +665,9 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Delete an existing channel. + * Delete a channel. + * + *

Delete an existing channel. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -666,7 +690,9 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Delete an existing channel. + * Delete a channel. + * + *

Delete an existing channel. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -679,11 +705,13 @@ private PollerFlux, Void> beginDeleteAsync( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String partnerNamespaceName, String channelName) { - return beginDeleteAsync(resourceGroupName, partnerNamespaceName, channelName).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, partnerNamespaceName, channelName).getSyncPoller(); } /** - * Delete an existing channel. + * Delete a channel. + * + *

Delete an existing channel. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -697,11 +725,13 @@ public SyncPoller, Void> beginDelete( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String partnerNamespaceName, String channelName, Context context) { - return beginDeleteAsync(resourceGroupName, partnerNamespaceName, channelName, context).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, partnerNamespaceName, channelName, context).getSyncPoller(); } /** - * Delete an existing channel. + * Delete a channel. + * + *

Delete an existing channel. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -719,7 +749,9 @@ private Mono deleteAsync(String resourceGroupName, String partnerNamespace } /** - * Delete an existing channel. + * Delete a channel. + * + *

Delete an existing channel. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -739,7 +771,9 @@ private Mono deleteAsync( } /** - * Delete an existing channel. + * Delete a channel. + * + *

Delete an existing channel. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -754,7 +788,9 @@ public void delete(String resourceGroupName, String partnerNamespaceName, String } /** - * Delete an existing channel. + * Delete a channel. + * + *

Delete an existing channel. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -770,7 +806,9 @@ public void delete(String resourceGroupName, String partnerNamespaceName, String } /** - * Synchronously updates a channel with the specified parameters. + * Update a Channel. + * + *

Synchronously updates a channel with the specified parameters. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -834,7 +872,9 @@ private Mono> updateWithResponseAsync( } /** - * Synchronously updates a channel with the specified parameters. + * Update a Channel. + * + *

Synchronously updates a channel with the specified parameters. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -897,7 +937,9 @@ private Mono> updateWithResponseAsync( } /** - * Synchronously updates a channel with the specified parameters. + * Update a Channel. + * + *

Synchronously updates a channel with the specified parameters. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -919,52 +961,58 @@ private Mono updateAsync( } /** - * Synchronously updates a channel with the specified parameters. + * Update a Channel. + * + *

Synchronously updates a channel with the specified parameters. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. * @param channelName Name of the channel. * @param channelUpdateParameters Channel update information. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void update( + public Response updateWithResponse( String resourceGroupName, String partnerNamespaceName, String channelName, - ChannelUpdateParameters channelUpdateParameters) { - updateAsync(resourceGroupName, partnerNamespaceName, channelName, channelUpdateParameters).block(); + ChannelUpdateParameters channelUpdateParameters, + Context context) { + return updateWithResponseAsync( + resourceGroupName, partnerNamespaceName, channelName, channelUpdateParameters, context) + .block(); } /** - * Synchronously updates a channel with the specified parameters. + * Update a Channel. + * + *

Synchronously updates a channel with the specified parameters. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. * @param channelName Name of the channel. * @param channelUpdateParameters Channel update information. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse( + public void update( String resourceGroupName, String partnerNamespaceName, String channelName, - ChannelUpdateParameters channelUpdateParameters, - Context context) { - return updateWithResponseAsync( - resourceGroupName, partnerNamespaceName, channelName, channelUpdateParameters, context) - .block(); + ChannelUpdateParameters channelUpdateParameters) { + updateWithResponse(resourceGroupName, partnerNamespaceName, channelName, channelUpdateParameters, Context.NONE); } /** - * List all the channels in a partner namespace. + * List channels. + * + *

List all the channels in a partner namespace. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -1033,7 +1081,9 @@ private Mono> listByPartnerNamespaceSinglePageAsync( } /** - * List all the channels in a partner namespace. + * List channels. + * + *

List all the channels in a partner namespace. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -1100,7 +1150,9 @@ private Mono> listByPartnerNamespaceSinglePageAsync( } /** - * List all the channels in a partner namespace. + * List channels. + * + *

List all the channels in a partner namespace. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -1126,7 +1178,9 @@ private PagedFlux listByPartnerNamespaceAsync( } /** - * List all the channels in a partner namespace. + * List channels. + * + *

List all the channels in a partner namespace. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -1145,7 +1199,9 @@ private PagedFlux listByPartnerNamespaceAsync(String resourceGroup } /** - * List all the channels in a partner namespace. + * List channels. + * + *

List all the channels in a partner namespace. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -1172,7 +1228,9 @@ private PagedFlux listByPartnerNamespaceAsync( } /** - * List all the channels in a partner namespace. + * List channels. + * + *

List all the channels in a partner namespace. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -1189,7 +1247,9 @@ public PagedIterable listByPartnerNamespace(String resourceGroupNa } /** - * List all the channels in a partner namespace. + * List channels. + * + *

List all the channels in a partner namespace. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -1215,7 +1275,9 @@ public PagedIterable listByPartnerNamespace( } /** - * Get the full endpoint URL of a partner destination channel. + * Get full URL of partner destination channel. + * + *

Get the full endpoint URL of a partner destination channel. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -1270,7 +1332,9 @@ private Mono> getFullUrlWithResponseAsyn } /** - * Get the full endpoint URL of a partner destination channel. + * Get full URL of partner destination channel. + * + *

Get the full endpoint URL of a partner destination channel. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -1323,7 +1387,9 @@ private Mono> getFullUrlWithResponseAsyn } /** - * Get the full endpoint URL of a partner destination channel. + * Get full URL of partner destination channel. + * + *

Get the full endpoint URL of a partner destination channel. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -1341,44 +1407,49 @@ private Mono getFullUrlAsync( } /** - * Get the full endpoint URL of a partner destination channel. + * Get full URL of partner destination channel. + * + *

Get the full endpoint URL of a partner destination channel. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. * @param channelName Name of the Channel. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the full endpoint URL of a partner destination channel. + * @return the full endpoint URL of a partner destination channel along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public EventSubscriptionFullUrlInner getFullUrl( - String resourceGroupName, String partnerNamespaceName, String channelName) { - return getFullUrlAsync(resourceGroupName, partnerNamespaceName, channelName).block(); + public Response getFullUrlWithResponse( + String resourceGroupName, String partnerNamespaceName, String channelName, Context context) { + return getFullUrlWithResponseAsync(resourceGroupName, partnerNamespaceName, channelName, context).block(); } /** - * Get the full endpoint URL of a partner destination channel. + * Get full URL of partner destination channel. + * + *

Get the full endpoint URL of a partner destination channel. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. * @param channelName Name of the Channel. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the full endpoint URL of a partner destination channel along with {@link Response}. + * @return the full endpoint URL of a partner destination channel. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getFullUrlWithResponse( - String resourceGroupName, String partnerNamespaceName, String channelName, Context context) { - return getFullUrlWithResponseAsync(resourceGroupName, partnerNamespaceName, channelName, context).block(); + public EventSubscriptionFullUrlInner getFullUrl( + String resourceGroupName, String partnerNamespaceName, String channelName) { + return getFullUrlWithResponse(resourceGroupName, partnerNamespaceName, channelName, Context.NONE).getValue(); } /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1415,7 +1486,8 @@ private Mono> listByPartnerNamespaceNextSinglePageAs /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/ChannelsImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/ChannelsImpl.java index 5ed1dea9992a..bf4af91a1669 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/ChannelsImpl.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/ChannelsImpl.java @@ -30,15 +30,6 @@ public ChannelsImpl( this.serviceManager = serviceManager; } - public Channel get(String resourceGroupName, String partnerNamespaceName, String channelName) { - ChannelInner inner = this.serviceClient().get(resourceGroupName, partnerNamespaceName, channelName); - if (inner != null) { - return new ChannelImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String partnerNamespaceName, String channelName, Context context) { Response inner = @@ -54,6 +45,15 @@ public Response getWithResponse( } } + public Channel get(String resourceGroupName, String partnerNamespaceName, String channelName) { + ChannelInner inner = this.serviceClient().get(resourceGroupName, partnerNamespaceName, channelName); + if (inner != null) { + return new ChannelImpl(inner, this.manager()); + } else { + return null; + } + } + public void delete(String resourceGroupName, String partnerNamespaceName, String channelName) { this.serviceClient().delete(resourceGroupName, partnerNamespaceName, channelName); } @@ -62,14 +62,6 @@ public void delete(String resourceGroupName, String partnerNamespaceName, String this.serviceClient().delete(resourceGroupName, partnerNamespaceName, channelName, context); } - public void update( - String resourceGroupName, - String partnerNamespaceName, - String channelName, - ChannelUpdateParameters channelUpdateParameters) { - this.serviceClient().update(resourceGroupName, partnerNamespaceName, channelName, channelUpdateParameters); - } - public Response updateWithResponse( String resourceGroupName, String partnerNamespaceName, @@ -81,6 +73,14 @@ public Response updateWithResponse( .updateWithResponse(resourceGroupName, partnerNamespaceName, channelName, channelUpdateParameters, context); } + public void update( + String resourceGroupName, + String partnerNamespaceName, + String channelName, + ChannelUpdateParameters channelUpdateParameters) { + this.serviceClient().update(resourceGroupName, partnerNamespaceName, channelName, channelUpdateParameters); + } + public PagedIterable listByPartnerNamespace(String resourceGroupName, String partnerNamespaceName) { PagedIterable inner = this.serviceClient().listByPartnerNamespace(resourceGroupName, partnerNamespaceName); @@ -94,17 +94,6 @@ public PagedIterable listByPartnerNamespace( return Utils.mapPage(inner, inner1 -> new ChannelImpl(inner1, this.manager())); } - public EventSubscriptionFullUrl getFullUrl( - String resourceGroupName, String partnerNamespaceName, String channelName) { - EventSubscriptionFullUrlInner inner = - this.serviceClient().getFullUrl(resourceGroupName, partnerNamespaceName, channelName); - if (inner != null) { - return new EventSubscriptionFullUrlImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getFullUrlWithResponse( String resourceGroupName, String partnerNamespaceName, String channelName, Context context) { Response inner = @@ -120,6 +109,17 @@ public Response getFullUrlWithResponse( } } + public EventSubscriptionFullUrl getFullUrl( + String resourceGroupName, String partnerNamespaceName, String channelName) { + EventSubscriptionFullUrlInner inner = + this.serviceClient().getFullUrl(resourceGroupName, partnerNamespaceName, channelName); + if (inner != null) { + return new EventSubscriptionFullUrlImpl(inner, this.manager()); + } else { + return null; + } + } + public Channel getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainEventSubscriptionsClientImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainEventSubscriptionsClientImpl.java index 7a0b41e6c79a..603e5c7ad1ba 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainEventSubscriptionsClientImpl.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainEventSubscriptionsClientImpl.java @@ -69,11 +69,10 @@ public final class DomainEventSubscriptionsClientImpl implements DomainEventSubs */ @Host("{$host}") @ServiceInterface(name = "EventGridManagementC") - private interface DomainEventSubscriptionsService { + public interface DomainEventSubscriptionsService { @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains" - + "/{domainName}/eventSubscriptions/{eventSubscriptionName}/getDeliveryAttributes") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/eventSubscriptions/{eventSubscriptionName}/getDeliveryAttributes") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> getDeliveryAttributes( @@ -88,8 +87,7 @@ Mono> getDeliveryAttributes( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains" - + "/{domainName}/eventSubscriptions/{eventSubscriptionName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/eventSubscriptions/{eventSubscriptionName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get( @@ -104,8 +102,7 @@ Mono> get( @Headers({"Content-Type: application/json"}) @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains" - + "/{domainName}/eventSubscriptions/{eventSubscriptionName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/eventSubscriptions/{eventSubscriptionName}") @ExpectedResponses({200, 201}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> createOrUpdate( @@ -121,8 +118,7 @@ Mono>> createOrUpdate( @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains" - + "/{domainName}/eventSubscriptions/{eventSubscriptionName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/eventSubscriptions/{eventSubscriptionName}") @ExpectedResponses({200, 202, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> delete( @@ -136,8 +132,7 @@ Mono>> delete( @Headers({"Content-Type: application/json"}) @Patch( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains" - + "/{domainName}/eventSubscriptions/{eventSubscriptionName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/eventSubscriptions/{eventSubscriptionName}") @ExpectedResponses({201}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> update( @@ -153,8 +148,7 @@ Mono>> update( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains" - + "/{domainName}/eventSubscriptions/{eventSubscriptionName}/getFullUrl") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/eventSubscriptions/{eventSubscriptionName}/getFullUrl") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> getFullUrl( @@ -169,8 +163,7 @@ Mono> getFullUrl( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains" - + "/{domainName}/eventSubscriptions") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/eventSubscriptions") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> list( @@ -196,7 +189,9 @@ Mono> listNext( } /** - * Get all delivery attributes for an event subscription for domain. + * Get delivery attributes for an event subscription for domain. + * + *

Get all delivery attributes for an event subscription for domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain topic. @@ -251,7 +246,9 @@ private Mono> getDeliveryAttributesWi } /** - * Get all delivery attributes for an event subscription for domain. + * Get delivery attributes for an event subscription for domain. + * + *

Get all delivery attributes for an event subscription for domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain topic. @@ -304,7 +301,9 @@ private Mono> getDeliveryAttributesWi } /** - * Get all delivery attributes for an event subscription for domain. + * Get delivery attributes for an event subscription for domain. + * + *

Get all delivery attributes for an event subscription for domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain topic. @@ -322,43 +321,50 @@ private Mono getDeliveryAttributesAsync( } /** - * Get all delivery attributes for an event subscription for domain. + * Get delivery attributes for an event subscription for domain. + * + *

Get all delivery attributes for an event subscription for domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain topic. * @param eventSubscriptionName Name of the event subscription. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all delivery attributes for an event subscription for domain. + * @return all delivery attributes for an event subscription for domain along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DeliveryAttributeListResultInner getDeliveryAttributes( - String resourceGroupName, String domainName, String eventSubscriptionName) { - return getDeliveryAttributesAsync(resourceGroupName, domainName, eventSubscriptionName).block(); + public Response getDeliveryAttributesWithResponse( + String resourceGroupName, String domainName, String eventSubscriptionName, Context context) { + return getDeliveryAttributesWithResponseAsync(resourceGroupName, domainName, eventSubscriptionName, context) + .block(); } /** - * Get all delivery attributes for an event subscription for domain. + * Get delivery attributes for an event subscription for domain. + * + *

Get all delivery attributes for an event subscription for domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain topic. * @param eventSubscriptionName Name of the event subscription. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all delivery attributes for an event subscription for domain along with {@link Response}. + * @return all delivery attributes for an event subscription for domain. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getDeliveryAttributesWithResponse( - String resourceGroupName, String domainName, String eventSubscriptionName, Context context) { - return getDeliveryAttributesWithResponseAsync(resourceGroupName, domainName, eventSubscriptionName, context) - .block(); + public DeliveryAttributeListResultInner getDeliveryAttributes( + String resourceGroupName, String domainName, String eventSubscriptionName) { + return getDeliveryAttributesWithResponse(resourceGroupName, domainName, eventSubscriptionName, Context.NONE) + .getValue(); } /** - * Get properties of an event subscription of a domain. + * Get an event subscription of a domain. + * + *

Get properties of an event subscription of a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the partner topic. @@ -414,7 +420,9 @@ private Mono> getWithResponseAsync( } /** - * Get properties of an event subscription of a domain. + * Get an event subscription of a domain. + * + *

Get properties of an event subscription of a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the partner topic. @@ -468,7 +476,9 @@ private Mono> getWithResponseAsync( } /** - * Get properties of an event subscription of a domain. + * Get an event subscription of a domain. + * + *

Get properties of an event subscription of a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the partner topic. @@ -487,43 +497,49 @@ private Mono getAsync( } /** - * Get properties of an event subscription of a domain. + * Get an event subscription of a domain. + * + *

Get properties of an event subscription of a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the partner topic. * @param eventSubscriptionName Name of the event subscription to be found. Event subscription names must be between * 3 and 100 characters in length and use alphanumeric letters only. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of an event subscription of a domain. + * @return properties of an event subscription of a domain along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public EventSubscriptionInner get(String resourceGroupName, String domainName, String eventSubscriptionName) { - return getAsync(resourceGroupName, domainName, eventSubscriptionName).block(); + public Response getWithResponse( + String resourceGroupName, String domainName, String eventSubscriptionName, Context context) { + return getWithResponseAsync(resourceGroupName, domainName, eventSubscriptionName, context).block(); } /** - * Get properties of an event subscription of a domain. + * Get an event subscription of a domain. + * + *

Get properties of an event subscription of a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the partner topic. * @param eventSubscriptionName Name of the event subscription to be found. Event subscription names must be between * 3 and 100 characters in length and use alphanumeric letters only. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of an event subscription of a domain along with {@link Response}. + * @return properties of an event subscription of a domain. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String domainName, String eventSubscriptionName, Context context) { - return getWithResponseAsync(resourceGroupName, domainName, eventSubscriptionName, context).block(); + public EventSubscriptionInner get(String resourceGroupName, String domainName, String eventSubscriptionName) { + return getWithResponse(resourceGroupName, domainName, eventSubscriptionName, Context.NONE).getValue(); } /** - * Asynchronously creates a new event subscription or updates an existing event subscription. + * Create or update an event subscription to a domain. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain topic. @@ -589,7 +605,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Asynchronously creates a new event subscription or updates an existing event subscription. + * Create or update an event subscription to a domain. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain topic. @@ -654,7 +672,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Asynchronously creates a new event subscription or updates an existing event subscription. + * Create or update an event subscription to a domain. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain topic. @@ -686,7 +706,9 @@ private PollerFlux, EventSubscriptionInner> b } /** - * Asynchronously creates a new event subscription or updates an existing event subscription. + * Create or update an event subscription to a domain. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain topic. @@ -721,7 +743,9 @@ private PollerFlux, EventSubscriptionInner> b } /** - * Asynchronously creates a new event subscription or updates an existing event subscription. + * Create or update an event subscription to a domain. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain topic. @@ -739,12 +763,15 @@ public SyncPoller, EventSubscriptionInner> be String domainName, String eventSubscriptionName, EventSubscriptionInner eventSubscriptionInfo) { - return beginCreateOrUpdateAsync(resourceGroupName, domainName, eventSubscriptionName, eventSubscriptionInfo) + return this + .beginCreateOrUpdateAsync(resourceGroupName, domainName, eventSubscriptionName, eventSubscriptionInfo) .getSyncPoller(); } /** - * Asynchronously creates a new event subscription or updates an existing event subscription. + * Create or update an event subscription to a domain. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain topic. @@ -764,13 +791,16 @@ public SyncPoller, EventSubscriptionInner> be String eventSubscriptionName, EventSubscriptionInner eventSubscriptionInfo, Context context) { - return beginCreateOrUpdateAsync( + return this + .beginCreateOrUpdateAsync( resourceGroupName, domainName, eventSubscriptionName, eventSubscriptionInfo, context) .getSyncPoller(); } /** - * Asynchronously creates a new event subscription or updates an existing event subscription. + * Create or update an event subscription to a domain. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain topic. @@ -794,7 +824,9 @@ private Mono createOrUpdateAsync( } /** - * Asynchronously creates a new event subscription or updates an existing event subscription. + * Create or update an event subscription to a domain. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain topic. @@ -821,7 +853,9 @@ private Mono createOrUpdateAsync( } /** - * Asynchronously creates a new event subscription or updates an existing event subscription. + * Create or update an event subscription to a domain. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain topic. @@ -843,7 +877,9 @@ public EventSubscriptionInner createOrUpdate( } /** - * Asynchronously creates a new event subscription or updates an existing event subscription. + * Create or update an event subscription to a domain. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain topic. @@ -868,7 +904,9 @@ public EventSubscriptionInner createOrUpdate( } /** - * Delete an existing event subscription for a domain. + * Delete an event subscription for a domain. + * + *

Delete an existing event subscription for a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -921,7 +959,9 @@ private Mono>> deleteWithResponseAsync( } /** - * Delete an existing event subscription for a domain. + * Delete an event subscription for a domain. + * + *

Delete an existing event subscription for a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -972,7 +1012,9 @@ private Mono>> deleteWithResponseAsync( } /** - * Delete an existing event subscription for a domain. + * Delete an event subscription for a domain. + * + *

Delete an existing event subscription for a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -995,7 +1037,9 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Delete an existing event subscription for a domain. + * Delete an event subscription for a domain. + * + *

Delete an existing event subscription for a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -1019,7 +1063,9 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Delete an existing event subscription for a domain. + * Delete an event subscription for a domain. + * + *

Delete an existing event subscription for a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -1033,11 +1079,13 @@ private PollerFlux, Void> beginDeleteAsync( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String domainName, String eventSubscriptionName) { - return beginDeleteAsync(resourceGroupName, domainName, eventSubscriptionName).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, domainName, eventSubscriptionName).getSyncPoller(); } /** - * Delete an existing event subscription for a domain. + * Delete an event subscription for a domain. + * + *

Delete an existing event subscription for a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -1052,11 +1100,13 @@ public SyncPoller, Void> beginDelete( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String domainName, String eventSubscriptionName, Context context) { - return beginDeleteAsync(resourceGroupName, domainName, eventSubscriptionName, context).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, domainName, eventSubscriptionName, context).getSyncPoller(); } /** - * Delete an existing event subscription for a domain. + * Delete an event subscription for a domain. + * + *

Delete an existing event subscription for a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -1075,7 +1125,9 @@ private Mono deleteAsync(String resourceGroupName, String domainName, Stri } /** - * Delete an existing event subscription for a domain. + * Delete an event subscription for a domain. + * + *

Delete an existing event subscription for a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -1096,7 +1148,9 @@ private Mono deleteAsync( } /** - * Delete an existing event subscription for a domain. + * Delete an event subscription for a domain. + * + *

Delete an existing event subscription for a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -1112,7 +1166,9 @@ public void delete(String resourceGroupName, String domainName, String eventSubs } /** - * Delete an existing event subscription for a domain. + * Delete an event subscription for a domain. + * + *

Delete an existing event subscription for a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -1129,7 +1185,9 @@ public void delete(String resourceGroupName, String domainName, String eventSubs } /** - * Update an existing event subscription for a topic. + * Update an event subscription for a domain. + * + *

Update an existing event subscription for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -1196,7 +1254,9 @@ private Mono>> updateWithResponseAsync( } /** - * Update an existing event subscription for a topic. + * Update an event subscription for a domain. + * + *

Update an existing event subscription for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -1262,7 +1322,9 @@ private Mono>> updateWithResponseAsync( } /** - * Update an existing event subscription for a topic. + * Update an event subscription for a domain. + * + *

Update an existing event subscription for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -1293,7 +1355,9 @@ private PollerFlux, EventSubscriptionInner> b } /** - * Update an existing event subscription for a topic. + * Update an event subscription for a domain. + * + *

Update an existing event subscription for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -1327,7 +1391,9 @@ private PollerFlux, EventSubscriptionInner> b } /** - * Update an existing event subscription for a topic. + * Update an event subscription for a domain. + * + *

Update an existing event subscription for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -1344,12 +1410,15 @@ public SyncPoller, EventSubscriptionInner> be String domainName, String eventSubscriptionName, EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters) { - return beginUpdateAsync(resourceGroupName, domainName, eventSubscriptionName, eventSubscriptionUpdateParameters) + return this + .beginUpdateAsync(resourceGroupName, domainName, eventSubscriptionName, eventSubscriptionUpdateParameters) .getSyncPoller(); } /** - * Update an existing event subscription for a topic. + * Update an event subscription for a domain. + * + *

Update an existing event subscription for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -1368,13 +1437,16 @@ public SyncPoller, EventSubscriptionInner> be String eventSubscriptionName, EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters, Context context) { - return beginUpdateAsync( + return this + .beginUpdateAsync( resourceGroupName, domainName, eventSubscriptionName, eventSubscriptionUpdateParameters, context) .getSyncPoller(); } /** - * Update an existing event subscription for a topic. + * Update an event subscription for a domain. + * + *

Update an existing event subscription for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -1397,7 +1469,9 @@ private Mono updateAsync( } /** - * Update an existing event subscription for a topic. + * Update an event subscription for a domain. + * + *

Update an existing event subscription for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -1423,7 +1497,9 @@ private Mono updateAsync( } /** - * Update an existing event subscription for a topic. + * Update an event subscription for a domain. + * + *

Update an existing event subscription for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -1445,7 +1521,9 @@ public EventSubscriptionInner update( } /** - * Update an existing event subscription for a topic. + * Update an event subscription for a domain. + * + *

Update an existing event subscription for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -1470,7 +1548,9 @@ public EventSubscriptionInner update( } /** - * Get the full endpoint URL for an event subscription for domain. + * Get full URL of an event subscription for domain. + * + *

Get the full endpoint URL for an event subscription for domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain topic. @@ -1525,7 +1605,9 @@ private Mono> getFullUrlWithResponseAsyn } /** - * Get the full endpoint URL for an event subscription for domain. + * Get full URL of an event subscription for domain. + * + *

Get the full endpoint URL for an event subscription for domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain topic. @@ -1578,7 +1660,9 @@ private Mono> getFullUrlWithResponseAsyn } /** - * Get the full endpoint URL for an event subscription for domain. + * Get full URL of an event subscription for domain. + * + *

Get the full endpoint URL for an event subscription for domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain topic. @@ -1596,42 +1680,48 @@ private Mono getFullUrlAsync( } /** - * Get the full endpoint URL for an event subscription for domain. + * Get full URL of an event subscription for domain. + * + *

Get the full endpoint URL for an event subscription for domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain topic. * @param eventSubscriptionName Name of the event subscription. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the full endpoint URL for an event subscription for domain. + * @return the full endpoint URL for an event subscription for domain along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public EventSubscriptionFullUrlInner getFullUrl( - String resourceGroupName, String domainName, String eventSubscriptionName) { - return getFullUrlAsync(resourceGroupName, domainName, eventSubscriptionName).block(); + public Response getFullUrlWithResponse( + String resourceGroupName, String domainName, String eventSubscriptionName, Context context) { + return getFullUrlWithResponseAsync(resourceGroupName, domainName, eventSubscriptionName, context).block(); } /** - * Get the full endpoint URL for an event subscription for domain. + * Get full URL of an event subscription for domain. + * + *

Get the full endpoint URL for an event subscription for domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain topic. * @param eventSubscriptionName Name of the event subscription. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the full endpoint URL for an event subscription for domain along with {@link Response}. + * @return the full endpoint URL for an event subscription for domain. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getFullUrlWithResponse( - String resourceGroupName, String domainName, String eventSubscriptionName, Context context) { - return getFullUrlWithResponseAsync(resourceGroupName, domainName, eventSubscriptionName, context).block(); + public EventSubscriptionFullUrlInner getFullUrl( + String resourceGroupName, String domainName, String eventSubscriptionName) { + return getFullUrlWithResponse(resourceGroupName, domainName, eventSubscriptionName, Context.NONE).getValue(); } /** - * List all event subscriptions that have been created for a specific topic. + * List all event subscriptions for a specific domain. + * + *

List all event subscriptions that have been created for a specific topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -1699,7 +1789,9 @@ private Mono> listSinglePageAsync( } /** - * List all event subscriptions that have been created for a specific topic. + * List all event subscriptions for a specific domain. + * + *

List all event subscriptions that have been created for a specific topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -1765,7 +1857,9 @@ private Mono> listSinglePageAsync( } /** - * List all event subscriptions that have been created for a specific topic. + * List all event subscriptions for a specific domain. + * + *

List all event subscriptions that have been created for a specific topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -1791,7 +1885,9 @@ private PagedFlux listAsync( } /** - * List all event subscriptions that have been created for a specific topic. + * List all event subscriptions for a specific domain. + * + *

List all event subscriptions that have been created for a specific topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -1810,7 +1906,9 @@ private PagedFlux listAsync(String resourceGroupName, St } /** - * List all event subscriptions that have been created for a specific topic. + * List all event subscriptions for a specific domain. + * + *

List all event subscriptions that have been created for a specific topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -1837,7 +1935,9 @@ private PagedFlux listAsync( } /** - * List all event subscriptions that have been created for a specific topic. + * List all event subscriptions for a specific domain. + * + *

List all event subscriptions that have been created for a specific topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -1854,7 +1954,9 @@ public PagedIterable list(String resourceGroupName, Stri } /** - * List all event subscriptions that have been created for a specific topic. + * List all event subscriptions for a specific domain. + * + *

List all event subscriptions that have been created for a specific topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -1881,7 +1983,8 @@ public PagedIterable list( /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1917,7 +2020,8 @@ private Mono> listNextSinglePageAsync(Stri /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainEventSubscriptionsImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainEventSubscriptionsImpl.java index 36e7815569c0..4c6d81e77a35 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainEventSubscriptionsImpl.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainEventSubscriptionsImpl.java @@ -33,17 +33,6 @@ public DomainEventSubscriptionsImpl( this.serviceManager = serviceManager; } - public DeliveryAttributeListResult getDeliveryAttributes( - String resourceGroupName, String domainName, String eventSubscriptionName) { - DeliveryAttributeListResultInner inner = - this.serviceClient().getDeliveryAttributes(resourceGroupName, domainName, eventSubscriptionName); - if (inner != null) { - return new DeliveryAttributeListResultImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getDeliveryAttributesWithResponse( String resourceGroupName, String domainName, String eventSubscriptionName, Context context) { Response inner = @@ -61,10 +50,12 @@ public Response getDeliveryAttributesWithResponse( } } - public EventSubscription get(String resourceGroupName, String domainName, String eventSubscriptionName) { - EventSubscriptionInner inner = this.serviceClient().get(resourceGroupName, domainName, eventSubscriptionName); + public DeliveryAttributeListResult getDeliveryAttributes( + String resourceGroupName, String domainName, String eventSubscriptionName) { + DeliveryAttributeListResultInner inner = + this.serviceClient().getDeliveryAttributes(resourceGroupName, domainName, eventSubscriptionName); if (inner != null) { - return new EventSubscriptionImpl(inner, this.manager()); + return new DeliveryAttributeListResultImpl(inner, this.manager()); } else { return null; } @@ -85,6 +76,15 @@ public Response getWithResponse( } } + public EventSubscription get(String resourceGroupName, String domainName, String eventSubscriptionName) { + EventSubscriptionInner inner = this.serviceClient().get(resourceGroupName, domainName, eventSubscriptionName); + if (inner != null) { + return new EventSubscriptionImpl(inner, this.manager()); + } else { + return null; + } + } + public EventSubscription createOrUpdate( String resourceGroupName, String domainName, @@ -160,17 +160,6 @@ public EventSubscription update( } } - public EventSubscriptionFullUrl getFullUrl( - String resourceGroupName, String domainName, String eventSubscriptionName) { - EventSubscriptionFullUrlInner inner = - this.serviceClient().getFullUrl(resourceGroupName, domainName, eventSubscriptionName); - if (inner != null) { - return new EventSubscriptionFullUrlImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getFullUrlWithResponse( String resourceGroupName, String domainName, String eventSubscriptionName, Context context) { Response inner = @@ -186,6 +175,17 @@ public Response getFullUrlWithResponse( } } + public EventSubscriptionFullUrl getFullUrl( + String resourceGroupName, String domainName, String eventSubscriptionName) { + EventSubscriptionFullUrlInner inner = + this.serviceClient().getFullUrl(resourceGroupName, domainName, eventSubscriptionName); + if (inner != null) { + return new EventSubscriptionFullUrlImpl(inner, this.manager()); + } else { + return null; + } + } + public PagedIterable list(String resourceGroupName, String domainName) { PagedIterable inner = this.serviceClient().list(resourceGroupName, domainName); return Utils.mapPage(inner, inner1 -> new EventSubscriptionImpl(inner1, this.manager())); diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainImpl.java index 7eff0b3e65f6..83f0d29776c1 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainImpl.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainImpl.java @@ -233,16 +233,12 @@ public Domain refresh(Context context) { return this; } - public DomainSharedAccessKeys listSharedAccessKeys() { - return serviceManager.domains().listSharedAccessKeys(resourceGroupName, domainName); - } - public Response listSharedAccessKeysWithResponse(Context context) { return serviceManager.domains().listSharedAccessKeysWithResponse(resourceGroupName, domainName, context); } - public DomainSharedAccessKeys regenerateKey(DomainRegenerateKeyRequest regenerateKeyRequest) { - return serviceManager.domains().regenerateKey(resourceGroupName, domainName, regenerateKeyRequest); + public DomainSharedAccessKeys listSharedAccessKeys() { + return serviceManager.domains().listSharedAccessKeys(resourceGroupName, domainName); } public Response regenerateKeyWithResponse( @@ -252,6 +248,10 @@ public Response regenerateKeyWithResponse( .regenerateKeyWithResponse(resourceGroupName, domainName, regenerateKeyRequest, context); } + public DomainSharedAccessKeys regenerateKey(DomainRegenerateKeyRequest regenerateKeyRequest) { + return serviceManager.domains().regenerateKey(resourceGroupName, domainName, regenerateKeyRequest); + } + public DomainImpl withRegion(Region location) { this.innerModel().withLocation(location.toString()); return this; diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainTopicEventSubscriptionsClientImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainTopicEventSubscriptionsClientImpl.java index c69446db44d7..8ded393b9f3d 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainTopicEventSubscriptionsClientImpl.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainTopicEventSubscriptionsClientImpl.java @@ -72,11 +72,10 @@ public final class DomainTopicEventSubscriptionsClientImpl implements DomainTopi */ @Host("{$host}") @ServiceInterface(name = "EventGridManagementC") - private interface DomainTopicEventSubscriptionsService { + public interface DomainTopicEventSubscriptionsService { @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains" - + "/{domainName}/topics/{topicName}/eventSubscriptions/{eventSubscriptionName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/topics/{topicName}/eventSubscriptions/{eventSubscriptionName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get( @@ -92,8 +91,7 @@ Mono> get( @Headers({"Content-Type: application/json"}) @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains" - + "/{domainName}/topics/{topicName}/eventSubscriptions/{eventSubscriptionName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/topics/{topicName}/eventSubscriptions/{eventSubscriptionName}") @ExpectedResponses({200, 201}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> createOrUpdate( @@ -110,8 +108,7 @@ Mono>> createOrUpdate( @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains" - + "/{domainName}/topics/{topicName}/eventSubscriptions/{eventSubscriptionName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/topics/{topicName}/eventSubscriptions/{eventSubscriptionName}") @ExpectedResponses({200, 202, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> delete( @@ -126,8 +123,7 @@ Mono>> delete( @Headers({"Content-Type: application/json"}) @Patch( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains" - + "/{domainName}/topics/{topicName}/eventSubscriptions/{eventSubscriptionName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/topics/{topicName}/eventSubscriptions/{eventSubscriptionName}") @ExpectedResponses({201}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> update( @@ -144,8 +140,7 @@ Mono>> update( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains" - + "/{domainName}/topics/{topicName}/eventSubscriptions/{eventSubscriptionName}/getFullUrl") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/topics/{topicName}/eventSubscriptions/{eventSubscriptionName}/getFullUrl") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> getFullUrl( @@ -161,8 +156,7 @@ Mono> getFullUrl( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains" - + "/{domainName}/topics/{topicName}/eventSubscriptions") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/topics/{topicName}/eventSubscriptions") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> list( @@ -179,8 +173,7 @@ Mono> list( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains" - + "/{domainName}/topics/{topicName}/eventSubscriptions/{eventSubscriptionName}/getDeliveryAttributes") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/topics/{topicName}/eventSubscriptions/{eventSubscriptionName}/getDeliveryAttributes") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> getDeliveryAttributes( @@ -206,7 +199,9 @@ Mono> listNext( } /** - * Get properties of a nested event subscription for a domain topic. + * Get a nested event subscription for domain topic. + * + *

Get properties of a nested event subscription for a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -266,7 +261,9 @@ private Mono> getWithResponseAsync( } /** - * Get properties of a nested event subscription for a domain topic. + * Get a nested event subscription for domain topic. + * + *

Get properties of a nested event subscription for a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -324,7 +321,9 @@ private Mono> getWithResponseAsync( } /** - * Get properties of a nested event subscription for a domain topic. + * Get a nested event subscription for domain topic. + * + *

Get properties of a nested event subscription for a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -343,44 +342,51 @@ private Mono getAsync( } /** - * Get properties of a nested event subscription for a domain topic. + * Get a nested event subscription for domain topic. + * + *

Get properties of a nested event subscription for a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. * @param topicName Name of the domain topic. * @param eventSubscriptionName Name of the event subscription. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a nested event subscription for a domain topic. + * @return properties of a nested event subscription for a domain topic along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public EventSubscriptionInner get( - String resourceGroupName, String domainName, String topicName, String eventSubscriptionName) { - return getAsync(resourceGroupName, domainName, topicName, eventSubscriptionName).block(); + public Response getWithResponse( + String resourceGroupName, String domainName, String topicName, String eventSubscriptionName, Context context) { + return getWithResponseAsync(resourceGroupName, domainName, topicName, eventSubscriptionName, context).block(); } /** - * Get properties of a nested event subscription for a domain topic. + * Get a nested event subscription for domain topic. + * + *

Get properties of a nested event subscription for a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. * @param topicName Name of the domain topic. * @param eventSubscriptionName Name of the event subscription. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a nested event subscription for a domain topic along with {@link Response}. + * @return properties of a nested event subscription for a domain topic. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String domainName, String topicName, String eventSubscriptionName, Context context) { - return getWithResponseAsync(resourceGroupName, domainName, topicName, eventSubscriptionName, context).block(); + public EventSubscriptionInner get( + String resourceGroupName, String domainName, String topicName, String eventSubscriptionName) { + return getWithResponse(resourceGroupName, domainName, topicName, eventSubscriptionName, Context.NONE) + .getValue(); } /** - * Asynchronously creates a new event subscription or updates an existing event subscription. + * Create or update a nested event subscription to a domain topic. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -452,7 +458,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Asynchronously creates a new event subscription or updates an existing event subscription. + * Create or update a nested event subscription to a domain topic. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -523,7 +531,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Asynchronously creates a new event subscription or updates an existing event subscription. + * Create or update a nested event subscription to a domain topic. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -557,7 +567,9 @@ private PollerFlux, EventSubscriptionInner> b } /** - * Asynchronously creates a new event subscription or updates an existing event subscription. + * Create or update a nested event subscription to a domain topic. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -594,7 +606,9 @@ private PollerFlux, EventSubscriptionInner> b } /** - * Asynchronously creates a new event subscription or updates an existing event subscription. + * Create or update a nested event subscription to a domain topic. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -614,13 +628,16 @@ public SyncPoller, EventSubscriptionInner> be String topicName, String eventSubscriptionName, EventSubscriptionInner eventSubscriptionInfo) { - return beginCreateOrUpdateAsync( + return this + .beginCreateOrUpdateAsync( resourceGroupName, domainName, topicName, eventSubscriptionName, eventSubscriptionInfo) .getSyncPoller(); } /** - * Asynchronously creates a new event subscription or updates an existing event subscription. + * Create or update a nested event subscription to a domain topic. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -642,13 +659,16 @@ public SyncPoller, EventSubscriptionInner> be String eventSubscriptionName, EventSubscriptionInner eventSubscriptionInfo, Context context) { - return beginCreateOrUpdateAsync( + return this + .beginCreateOrUpdateAsync( resourceGroupName, domainName, topicName, eventSubscriptionName, eventSubscriptionInfo, context) .getSyncPoller(); } /** - * Asynchronously creates a new event subscription or updates an existing event subscription. + * Create or update a nested event subscription to a domain topic. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -675,7 +695,9 @@ private Mono createOrUpdateAsync( } /** - * Asynchronously creates a new event subscription or updates an existing event subscription. + * Create or update a nested event subscription to a domain topic. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -704,7 +726,9 @@ private Mono createOrUpdateAsync( } /** - * Asynchronously creates a new event subscription or updates an existing event subscription. + * Create or update a nested event subscription to a domain topic. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -730,7 +754,9 @@ public EventSubscriptionInner createOrUpdate( } /** - * Asynchronously creates a new event subscription or updates an existing event subscription. + * Create or update a nested event subscription to a domain topic. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -758,7 +784,9 @@ public EventSubscriptionInner createOrUpdate( } /** - * Delete a nested existing event subscription for a domain topic. + * Delete a nested event subscription for a domain topic. + * + *

Delete a nested existing event subscription for a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -816,7 +844,9 @@ private Mono>> deleteWithResponseAsync( } /** - * Delete a nested existing event subscription for a domain topic. + * Delete a nested event subscription for a domain topic. + * + *

Delete a nested existing event subscription for a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -872,7 +902,9 @@ private Mono>> deleteWithResponseAsync( } /** - * Delete a nested existing event subscription for a domain topic. + * Delete a nested event subscription for a domain topic. + * + *

Delete a nested existing event subscription for a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -896,7 +928,9 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Delete a nested existing event subscription for a domain topic. + * Delete a nested event subscription for a domain topic. + * + *

Delete a nested existing event subscription for a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -921,7 +955,9 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Delete a nested existing event subscription for a domain topic. + * Delete a nested event subscription for a domain topic. + * + *

Delete a nested existing event subscription for a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -936,11 +972,13 @@ private PollerFlux, Void> beginDeleteAsync( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String domainName, String topicName, String eventSubscriptionName) { - return beginDeleteAsync(resourceGroupName, domainName, topicName, eventSubscriptionName).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, domainName, topicName, eventSubscriptionName).getSyncPoller(); } /** - * Delete a nested existing event subscription for a domain topic. + * Delete a nested event subscription for a domain topic. + * + *

Delete a nested existing event subscription for a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -956,12 +994,15 @@ public SyncPoller, Void> beginDelete( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String domainName, String topicName, String eventSubscriptionName, Context context) { - return beginDeleteAsync(resourceGroupName, domainName, topicName, eventSubscriptionName, context) + return this + .beginDeleteAsync(resourceGroupName, domainName, topicName, eventSubscriptionName, context) .getSyncPoller(); } /** - * Delete a nested existing event subscription for a domain topic. + * Delete a nested event subscription for a domain topic. + * + *

Delete a nested existing event subscription for a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -982,7 +1023,9 @@ private Mono deleteAsync( } /** - * Delete a nested existing event subscription for a domain topic. + * Delete a nested event subscription for a domain topic. + * + *

Delete a nested existing event subscription for a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -1004,7 +1047,9 @@ private Mono deleteAsync( } /** - * Delete a nested existing event subscription for a domain topic. + * Delete a nested event subscription for a domain topic. + * + *

Delete a nested existing event subscription for a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -1021,7 +1066,9 @@ public void delete(String resourceGroupName, String domainName, String topicName } /** - * Delete a nested existing event subscription for a domain topic. + * Delete a nested event subscription for a domain topic. + * + *

Delete a nested existing event subscription for a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -1040,7 +1087,9 @@ public void delete( } /** - * Update an existing event subscription for a domain topic. + * Update a nested event subscription for a domain topic. + * + *

Update an existing event subscription for a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -1113,7 +1162,9 @@ private Mono>> updateWithResponseAsync( } /** - * Update an existing event subscription for a domain topic. + * Update a nested event subscription for a domain topic. + * + *

Update an existing event subscription for a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -1185,7 +1236,9 @@ private Mono>> updateWithResponseAsync( } /** - * Update an existing event subscription for a domain topic. + * Update a nested event subscription for a domain topic. + * + *

Update an existing event subscription for a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -1218,7 +1271,9 @@ private PollerFlux, EventSubscriptionInner> b } /** - * Update an existing event subscription for a domain topic. + * Update a nested event subscription for a domain topic. + * + *

Update an existing event subscription for a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -1259,7 +1314,9 @@ private PollerFlux, EventSubscriptionInner> b } /** - * Update an existing event subscription for a domain topic. + * Update a nested event subscription for a domain topic. + * + *

Update an existing event subscription for a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -1278,13 +1335,16 @@ public SyncPoller, EventSubscriptionInner> be String topicName, String eventSubscriptionName, EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters) { - return beginUpdateAsync( + return this + .beginUpdateAsync( resourceGroupName, domainName, topicName, eventSubscriptionName, eventSubscriptionUpdateParameters) .getSyncPoller(); } /** - * Update an existing event subscription for a domain topic. + * Update a nested event subscription for a domain topic. + * + *

Update an existing event subscription for a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -1305,7 +1365,8 @@ public SyncPoller, EventSubscriptionInner> be String eventSubscriptionName, EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters, Context context) { - return beginUpdateAsync( + return this + .beginUpdateAsync( resourceGroupName, domainName, topicName, @@ -1316,7 +1377,9 @@ public SyncPoller, EventSubscriptionInner> be } /** - * Update an existing event subscription for a domain topic. + * Update a nested event subscription for a domain topic. + * + *

Update an existing event subscription for a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -1342,7 +1405,9 @@ private Mono updateAsync( } /** - * Update an existing event subscription for a domain topic. + * Update a nested event subscription for a domain topic. + * + *

Update an existing event subscription for a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -1375,7 +1440,9 @@ private Mono updateAsync( } /** - * Update an existing event subscription for a domain topic. + * Update a nested event subscription for a domain topic. + * + *

Update an existing event subscription for a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -1400,7 +1467,9 @@ public EventSubscriptionInner update( } /** - * Update an existing event subscription for a domain topic. + * Update a nested event subscription for a domain topic. + * + *

Update an existing event subscription for a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -1432,7 +1501,9 @@ public EventSubscriptionInner update( } /** - * Get the full endpoint URL for a nested event subscription for domain topic. + * Get full URL of a nested event subscription for domain topic. + * + *

Get the full endpoint URL for a nested event subscription for domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -1492,7 +1563,9 @@ private Mono> getFullUrlWithResponseAsyn } /** - * Get the full endpoint URL for a nested event subscription for domain topic. + * Get full URL of a nested event subscription for domain topic. + * + *

Get the full endpoint URL for a nested event subscription for domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -1550,7 +1623,9 @@ private Mono> getFullUrlWithResponseAsyn } /** - * Get the full endpoint URL for a nested event subscription for domain topic. + * Get full URL of a nested event subscription for domain topic. + * + *

Get the full endpoint URL for a nested event subscription for domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -1570,45 +1645,52 @@ private Mono getFullUrlAsync( } /** - * Get the full endpoint URL for a nested event subscription for domain topic. + * Get full URL of a nested event subscription for domain topic. + * + *

Get the full endpoint URL for a nested event subscription for domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. * @param topicName Name of the domain topic. * @param eventSubscriptionName Name of the event subscription. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the full endpoint URL for a nested event subscription for domain topic. + * @return the full endpoint URL for a nested event subscription for domain topic along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public EventSubscriptionFullUrlInner getFullUrl( - String resourceGroupName, String domainName, String topicName, String eventSubscriptionName) { - return getFullUrlAsync(resourceGroupName, domainName, topicName, eventSubscriptionName).block(); + public Response getFullUrlWithResponse( + String resourceGroupName, String domainName, String topicName, String eventSubscriptionName, Context context) { + return getFullUrlWithResponseAsync(resourceGroupName, domainName, topicName, eventSubscriptionName, context) + .block(); } /** - * Get the full endpoint URL for a nested event subscription for domain topic. + * Get full URL of a nested event subscription for domain topic. + * + *

Get the full endpoint URL for a nested event subscription for domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. * @param topicName Name of the domain topic. * @param eventSubscriptionName Name of the event subscription. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the full endpoint URL for a nested event subscription for domain topic along with {@link Response}. + * @return the full endpoint URL for a nested event subscription for domain topic. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getFullUrlWithResponse( - String resourceGroupName, String domainName, String topicName, String eventSubscriptionName, Context context) { - return getFullUrlWithResponseAsync(resourceGroupName, domainName, topicName, eventSubscriptionName, context) - .block(); + public EventSubscriptionFullUrlInner getFullUrl( + String resourceGroupName, String domainName, String topicName, String eventSubscriptionName) { + return getFullUrlWithResponse(resourceGroupName, domainName, topicName, eventSubscriptionName, Context.NONE) + .getValue(); } /** - * List all event subscriptions that have been created for a specific domain topic. + * List all nested event subscriptions for a specific domain topic. + * + *

List all event subscriptions that have been created for a specific domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -1681,7 +1763,9 @@ private Mono> listSinglePageAsync( } /** - * List all event subscriptions that have been created for a specific domain topic. + * List all nested event subscriptions for a specific domain topic. + * + *

List all event subscriptions that have been created for a specific domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -1752,7 +1836,9 @@ private Mono> listSinglePageAsync( } /** - * List all event subscriptions that have been created for a specific domain topic. + * List all nested event subscriptions for a specific domain topic. + * + *

List all event subscriptions that have been created for a specific domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -1779,7 +1865,9 @@ private PagedFlux listAsync( } /** - * List all event subscriptions that have been created for a specific domain topic. + * List all nested event subscriptions for a specific domain topic. + * + *

List all event subscriptions that have been created for a specific domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -1799,7 +1887,9 @@ private PagedFlux listAsync(String resourceGroupName, St } /** - * List all event subscriptions that have been created for a specific domain topic. + * List all nested event subscriptions for a specific domain topic. + * + *

List all event subscriptions that have been created for a specific domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -1827,7 +1917,9 @@ private PagedFlux listAsync( } /** - * List all event subscriptions that have been created for a specific domain topic. + * List all nested event subscriptions for a specific domain topic. + * + *

List all event subscriptions that have been created for a specific domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -1845,7 +1937,9 @@ public PagedIterable list(String resourceGroupName, Stri } /** - * List all event subscriptions that have been created for a specific domain topic. + * List all nested event subscriptions for a specific domain topic. + * + *

List all event subscriptions that have been created for a specific domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -1871,7 +1965,9 @@ public PagedIterable list( } /** - * Get all delivery attributes for an event subscription for domain topic. + * Get delivery attributes for an event subscription for domain topic. + * + *

Get all delivery attributes for an event subscription for domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -1931,7 +2027,9 @@ private Mono> getDeliveryAttributesWi } /** - * Get all delivery attributes for an event subscription for domain topic. + * Get delivery attributes for an event subscription for domain topic. + * + *

Get all delivery attributes for an event subscription for domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -1989,7 +2087,9 @@ private Mono> getDeliveryAttributesWi } /** - * Get all delivery attributes for an event subscription for domain topic. + * Get delivery attributes for an event subscription for domain topic. + * + *

Get all delivery attributes for an event subscription for domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -2009,48 +2109,55 @@ private Mono getDeliveryAttributesAsync( } /** - * Get all delivery attributes for an event subscription for domain topic. + * Get delivery attributes for an event subscription for domain topic. + * + *

Get all delivery attributes for an event subscription for domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. * @param topicName Name of the domain topic. * @param eventSubscriptionName Name of the event subscription. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all delivery attributes for an event subscription for domain topic. + * @return all delivery attributes for an event subscription for domain topic along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DeliveryAttributeListResultInner getDeliveryAttributes( - String resourceGroupName, String domainName, String topicName, String eventSubscriptionName) { - return getDeliveryAttributesAsync(resourceGroupName, domainName, topicName, eventSubscriptionName).block(); + public Response getDeliveryAttributesWithResponse( + String resourceGroupName, String domainName, String topicName, String eventSubscriptionName, Context context) { + return getDeliveryAttributesWithResponseAsync( + resourceGroupName, domainName, topicName, eventSubscriptionName, context) + .block(); } /** - * Get all delivery attributes for an event subscription for domain topic. + * Get delivery attributes for an event subscription for domain topic. + * + *

Get all delivery attributes for an event subscription for domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. * @param topicName Name of the domain topic. * @param eventSubscriptionName Name of the event subscription. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all delivery attributes for an event subscription for domain topic along with {@link Response}. + * @return all delivery attributes for an event subscription for domain topic. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getDeliveryAttributesWithResponse( - String resourceGroupName, String domainName, String topicName, String eventSubscriptionName, Context context) { - return getDeliveryAttributesWithResponseAsync( - resourceGroupName, domainName, topicName, eventSubscriptionName, context) - .block(); + public DeliveryAttributeListResultInner getDeliveryAttributes( + String resourceGroupName, String domainName, String topicName, String eventSubscriptionName) { + return getDeliveryAttributesWithResponse( + resourceGroupName, domainName, topicName, eventSubscriptionName, Context.NONE) + .getValue(); } /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2086,7 +2193,8 @@ private Mono> listNextSinglePageAsync(Stri /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainTopicEventSubscriptionsImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainTopicEventSubscriptionsImpl.java index dad50b101e7d..2edc7a1f21af 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainTopicEventSubscriptionsImpl.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainTopicEventSubscriptionsImpl.java @@ -33,17 +33,6 @@ public DomainTopicEventSubscriptionsImpl( this.serviceManager = serviceManager; } - public EventSubscription get( - String resourceGroupName, String domainName, String topicName, String eventSubscriptionName) { - EventSubscriptionInner inner = - this.serviceClient().get(resourceGroupName, domainName, topicName, eventSubscriptionName); - if (inner != null) { - return new EventSubscriptionImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String domainName, String topicName, String eventSubscriptionName, Context context) { Response inner = @@ -61,6 +50,17 @@ public Response getWithResponse( } } + public EventSubscription get( + String resourceGroupName, String domainName, String topicName, String eventSubscriptionName) { + EventSubscriptionInner inner = + this.serviceClient().get(resourceGroupName, domainName, topicName, eventSubscriptionName); + if (inner != null) { + return new EventSubscriptionImpl(inner, this.manager()); + } else { + return null; + } + } + public EventSubscription createOrUpdate( String resourceGroupName, String domainName, @@ -148,17 +148,6 @@ public EventSubscription update( } } - public EventSubscriptionFullUrl getFullUrl( - String resourceGroupName, String domainName, String topicName, String eventSubscriptionName) { - EventSubscriptionFullUrlInner inner = - this.serviceClient().getFullUrl(resourceGroupName, domainName, topicName, eventSubscriptionName); - if (inner != null) { - return new EventSubscriptionFullUrlImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getFullUrlWithResponse( String resourceGroupName, String domainName, String topicName, String eventSubscriptionName, Context context) { Response inner = @@ -176,6 +165,17 @@ public Response getFullUrlWithResponse( } } + public EventSubscriptionFullUrl getFullUrl( + String resourceGroupName, String domainName, String topicName, String eventSubscriptionName) { + EventSubscriptionFullUrlInner inner = + this.serviceClient().getFullUrl(resourceGroupName, domainName, topicName, eventSubscriptionName); + if (inner != null) { + return new EventSubscriptionFullUrlImpl(inner, this.manager()); + } else { + return null; + } + } + public PagedIterable list(String resourceGroupName, String domainName, String topicName) { PagedIterable inner = this.serviceClient().list(resourceGroupName, domainName, topicName); @@ -189,17 +189,6 @@ public PagedIterable list( return Utils.mapPage(inner, inner1 -> new EventSubscriptionImpl(inner1, this.manager())); } - public DeliveryAttributeListResult getDeliveryAttributes( - String resourceGroupName, String domainName, String topicName, String eventSubscriptionName) { - DeliveryAttributeListResultInner inner = - this.serviceClient().getDeliveryAttributes(resourceGroupName, domainName, topicName, eventSubscriptionName); - if (inner != null) { - return new DeliveryAttributeListResultImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getDeliveryAttributesWithResponse( String resourceGroupName, String domainName, String topicName, String eventSubscriptionName, Context context) { Response inner = @@ -218,6 +207,17 @@ public Response getDeliveryAttributesWithResponse( } } + public DeliveryAttributeListResult getDeliveryAttributes( + String resourceGroupName, String domainName, String topicName, String eventSubscriptionName) { + DeliveryAttributeListResultInner inner = + this.serviceClient().getDeliveryAttributes(resourceGroupName, domainName, topicName, eventSubscriptionName); + if (inner != null) { + return new DeliveryAttributeListResultImpl(inner, this.manager()); + } else { + return null; + } + } + private DomainTopicEventSubscriptionsClient serviceClient() { return this.innerClient; } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainTopicsClientImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainTopicsClientImpl.java index d96f9596c1be..7ebae4fad9e8 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainTopicsClientImpl.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainTopicsClientImpl.java @@ -62,11 +62,10 @@ public final class DomainTopicsClientImpl implements DomainTopicsClient { */ @Host("{$host}") @ServiceInterface(name = "EventGridManagementC") - private interface DomainTopicsService { + public interface DomainTopicsService { @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains" - + "/{domainName}/topics/{domainTopicName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/topics/{domainTopicName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get( @@ -81,8 +80,7 @@ Mono> get( @Headers({"Content-Type: application/json"}) @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains" - + "/{domainName}/topics/{domainTopicName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/topics/{domainTopicName}") @ExpectedResponses({201}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> createOrUpdate( @@ -97,8 +95,7 @@ Mono>> createOrUpdate( @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains" - + "/{domainName}/topics/{domainTopicName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/topics/{domainTopicName}") @ExpectedResponses({200, 202, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> delete( @@ -112,8 +109,7 @@ Mono>> delete( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains" - + "/{domainName}/topics") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/topics") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByDomain( @@ -139,7 +135,9 @@ Mono> listByDomainNext( } /** - * Get properties of a domain topic. + * Get a domain topic. + * + *

Get properties of a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -193,7 +191,9 @@ private Mono> getWithResponseAsync( } /** - * Get properties of a domain topic. + * Get a domain topic. + * + *

Get properties of a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -245,7 +245,9 @@ private Mono> getWithResponseAsync( } /** - * Get properties of a domain topic. + * Get a domain topic. + * + *

Get properties of a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -262,41 +264,47 @@ private Mono getAsync(String resourceGroupName, String domainN } /** - * Get properties of a domain topic. + * Get a domain topic. + * + *

Get properties of a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. * @param domainTopicName Name of the topic. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a domain topic. + * @return properties of a domain topic along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DomainTopicInner get(String resourceGroupName, String domainName, String domainTopicName) { - return getAsync(resourceGroupName, domainName, domainTopicName).block(); + public Response getWithResponse( + String resourceGroupName, String domainName, String domainTopicName, Context context) { + return getWithResponseAsync(resourceGroupName, domainName, domainTopicName, context).block(); } /** - * Get properties of a domain topic. + * Get a domain topic. + * + *

Get properties of a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. * @param domainTopicName Name of the topic. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a domain topic along with {@link Response}. + * @return properties of a domain topic. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String domainName, String domainTopicName, Context context) { - return getWithResponseAsync(resourceGroupName, domainName, domainTopicName, context).block(); + public DomainTopicInner get(String resourceGroupName, String domainName, String domainTopicName) { + return getWithResponse(resourceGroupName, domainName, domainTopicName, Context.NONE).getValue(); } /** - * Asynchronously creates or updates a new domain topic with the specified parameters. + * Create or update a domain topic. + * + *

Asynchronously creates or updates a new domain topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -350,7 +358,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Asynchronously creates or updates a new domain topic with the specified parameters. + * Create or update a domain topic. + * + *

Asynchronously creates or updates a new domain topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -402,7 +412,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Asynchronously creates or updates a new domain topic with the specified parameters. + * Create or update a domain topic. + * + *

Asynchronously creates or updates a new domain topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -428,7 +440,9 @@ private PollerFlux, DomainTopicInner> beginCreateOr } /** - * Asynchronously creates or updates a new domain topic with the specified parameters. + * Create or update a domain topic. + * + *

Asynchronously creates or updates a new domain topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -452,7 +466,9 @@ private PollerFlux, DomainTopicInner> beginCreateOr } /** - * Asynchronously creates or updates a new domain topic with the specified parameters. + * Create or update a domain topic. + * + *

Asynchronously creates or updates a new domain topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -465,11 +481,13 @@ private PollerFlux, DomainTopicInner> beginCreateOr @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DomainTopicInner> beginCreateOrUpdate( String resourceGroupName, String domainName, String domainTopicName) { - return beginCreateOrUpdateAsync(resourceGroupName, domainName, domainTopicName).getSyncPoller(); + return this.beginCreateOrUpdateAsync(resourceGroupName, domainName, domainTopicName).getSyncPoller(); } /** - * Asynchronously creates or updates a new domain topic with the specified parameters. + * Create or update a domain topic. + * + *

Asynchronously creates or updates a new domain topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -483,11 +501,13 @@ public SyncPoller, DomainTopicInner> beginCreateOrU @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DomainTopicInner> beginCreateOrUpdate( String resourceGroupName, String domainName, String domainTopicName, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, domainName, domainTopicName, context).getSyncPoller(); + return this.beginCreateOrUpdateAsync(resourceGroupName, domainName, domainTopicName, context).getSyncPoller(); } /** - * Asynchronously creates or updates a new domain topic with the specified parameters. + * Create or update a domain topic. + * + *

Asynchronously creates or updates a new domain topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -506,7 +526,9 @@ private Mono createOrUpdateAsync( } /** - * Asynchronously creates or updates a new domain topic with the specified parameters. + * Create or update a domain topic. + * + *

Asynchronously creates or updates a new domain topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -526,7 +548,9 @@ private Mono createOrUpdateAsync( } /** - * Asynchronously creates or updates a new domain topic with the specified parameters. + * Create or update a domain topic. + * + *

Asynchronously creates or updates a new domain topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -542,7 +566,9 @@ public DomainTopicInner createOrUpdate(String resourceGroupName, String domainNa } /** - * Asynchronously creates or updates a new domain topic with the specified parameters. + * Create or update a domain topic. + * + *

Asynchronously creates or updates a new domain topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -560,7 +586,9 @@ public DomainTopicInner createOrUpdate( } /** - * Delete existing domain topic. + * Delete a domain topic. + * + *

Delete existing domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -612,7 +640,9 @@ private Mono>> deleteWithResponseAsync( } /** - * Delete existing domain topic. + * Delete a domain topic. + * + *

Delete existing domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -662,7 +692,9 @@ private Mono>> deleteWithResponseAsync( } /** - * Delete existing domain topic. + * Delete a domain topic. + * + *

Delete existing domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -683,7 +715,9 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Delete existing domain topic. + * Delete a domain topic. + * + *

Delete existing domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -706,7 +740,9 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Delete existing domain topic. + * Delete a domain topic. + * + *

Delete existing domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -719,11 +755,13 @@ private PollerFlux, Void> beginDeleteAsync( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String domainName, String domainTopicName) { - return beginDeleteAsync(resourceGroupName, domainName, domainTopicName).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, domainName, domainTopicName).getSyncPoller(); } /** - * Delete existing domain topic. + * Delete a domain topic. + * + *

Delete existing domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -737,11 +775,13 @@ public SyncPoller, Void> beginDelete( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String domainName, String domainTopicName, Context context) { - return beginDeleteAsync(resourceGroupName, domainName, domainTopicName, context).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, domainName, domainTopicName, context).getSyncPoller(); } /** - * Delete existing domain topic. + * Delete a domain topic. + * + *

Delete existing domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -759,7 +799,9 @@ private Mono deleteAsync(String resourceGroupName, String domainName, Stri } /** - * Delete existing domain topic. + * Delete a domain topic. + * + *

Delete existing domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -779,7 +821,9 @@ private Mono deleteAsync( } /** - * Delete existing domain topic. + * Delete a domain topic. + * + *

Delete existing domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -794,7 +838,9 @@ public void delete(String resourceGroupName, String domainName, String domainTop } /** - * Delete existing domain topic. + * Delete a domain topic. + * + *

Delete existing domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -810,7 +856,9 @@ public void delete(String resourceGroupName, String domainName, String domainTop } /** - * List all the topics in a domain. + * List domain topics. + * + *

List all the topics in a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Domain name. @@ -878,7 +926,9 @@ private Mono> listByDomainSinglePageAsync( } /** - * List all the topics in a domain. + * List domain topics. + * + *

List all the topics in a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Domain name. @@ -944,7 +994,9 @@ private Mono> listByDomainSinglePageAsync( } /** - * List all the topics in a domain. + * List domain topics. + * + *

List all the topics in a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Domain name. @@ -970,7 +1022,9 @@ private PagedFlux listByDomainAsync( } /** - * List all the topics in a domain. + * List domain topics. + * + *

List all the topics in a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Domain name. @@ -989,7 +1043,9 @@ private PagedFlux listByDomainAsync(String resourceGroupName, } /** - * List all the topics in a domain. + * List domain topics. + * + *

List all the topics in a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Domain name. @@ -1016,7 +1072,9 @@ private PagedFlux listByDomainAsync( } /** - * List all the topics in a domain. + * List domain topics. + * + *

List all the topics in a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Domain name. @@ -1033,7 +1091,9 @@ public PagedIterable listByDomain(String resourceGroupName, St } /** - * List all the topics in a domain. + * List domain topics. + * + *

List all the topics in a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Domain name. @@ -1060,7 +1120,8 @@ public PagedIterable listByDomain( /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1096,7 +1157,8 @@ private Mono> listByDomainNextSinglePageAsync(St /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainTopicsImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainTopicsImpl.java index eb9dc68631e0..ca8f32c78e69 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainTopicsImpl.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainTopicsImpl.java @@ -27,15 +27,6 @@ public DomainTopicsImpl( this.serviceManager = serviceManager; } - public DomainTopic get(String resourceGroupName, String domainName, String domainTopicName) { - DomainTopicInner inner = this.serviceClient().get(resourceGroupName, domainName, domainTopicName); - if (inner != null) { - return new DomainTopicImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String domainName, String domainTopicName, Context context) { Response inner = @@ -51,6 +42,15 @@ public Response getWithResponse( } } + public DomainTopic get(String resourceGroupName, String domainName, String domainTopicName) { + DomainTopicInner inner = this.serviceClient().get(resourceGroupName, domainName, domainTopicName); + if (inner != null) { + return new DomainTopicImpl(inner, this.manager()); + } else { + return null; + } + } + public DomainTopic createOrUpdate(String resourceGroupName, String domainName, String domainTopicName) { DomainTopicInner inner = this.serviceClient().createOrUpdate(resourceGroupName, domainName, domainTopicName); if (inner != null) { diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainsClientImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainsClientImpl.java index 1eea8c7a5282..b1c5e28a7033 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainsClientImpl.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainsClientImpl.java @@ -67,11 +67,10 @@ public final class DomainsClientImpl implements DomainsClient { */ @Host("{$host}") @ServiceInterface(name = "EventGridManagementC") - private interface DomainsService { + public interface DomainsService { @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains" - + "/{domainName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> getByResourceGroup( @@ -85,8 +84,7 @@ Mono> getByResourceGroup( @Headers({"Content-Type: application/json"}) @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains" - + "/{domainName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}") @ExpectedResponses({201}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> createOrUpdate( @@ -101,8 +99,7 @@ Mono>> createOrUpdate( @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains" - + "/{domainName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}") @ExpectedResponses({200, 202, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> delete( @@ -115,8 +112,7 @@ Mono>> delete( @Headers({"Content-Type: application/json"}) @Patch( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains" - + "/{domainName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}") @ExpectedResponses({200, 201}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> update( @@ -158,8 +154,7 @@ Mono> listByResourceGroup( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains" - + "/{domainName}/listKeys") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/listKeys") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listSharedAccessKeys( @@ -173,8 +168,7 @@ Mono> listSharedAccessKeys( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains" - + "/{domainName}/regenerateKey") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/regenerateKey") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> regenerateKey( @@ -209,7 +203,9 @@ Mono> listByResourceGroupNext( } /** - * Get properties of a domain. + * Get a domain. + * + *

Get properties of a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -257,7 +253,9 @@ private Mono> getByResourceGroupWithResponseAsync( } /** - * Get properties of a domain. + * Get a domain. + * + *

Get properties of a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -303,7 +301,9 @@ private Mono> getByResourceGroupWithResponseAsync( } /** - * Get properties of a domain. + * Get a domain. + * + *

Get properties of a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -319,39 +319,45 @@ private Mono getByResourceGroupAsync(String resourceGroupName, Stri } /** - * Get properties of a domain. + * Get a domain. + * + *

Get properties of a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a domain. + * @return properties of a domain along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DomainInner getByResourceGroup(String resourceGroupName, String domainName) { - return getByResourceGroupAsync(resourceGroupName, domainName).block(); + public Response getByResourceGroupWithResponse( + String resourceGroupName, String domainName, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, domainName, context).block(); } /** - * Get properties of a domain. + * Get a domain. + * + *

Get properties of a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a domain along with {@link Response}. + * @return properties of a domain. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse( - String resourceGroupName, String domainName, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, domainName, context).block(); + public DomainInner getByResourceGroup(String resourceGroupName, String domainName) { + return getByResourceGroupWithResponse(resourceGroupName, domainName, Context.NONE).getValue(); } /** - * Asynchronously creates or updates a new domain with the specified parameters. + * Create or update a domain. + * + *

Asynchronously creates or updates a new domain with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -406,7 +412,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Asynchronously creates or updates a new domain with the specified parameters. + * Create or update a domain. + * + *

Asynchronously creates or updates a new domain with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -459,7 +467,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Asynchronously creates or updates a new domain with the specified parameters. + * Create or update a domain. + * + *

Asynchronously creates or updates a new domain with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -481,7 +491,9 @@ private PollerFlux, DomainInner> beginCreateOrUpdateAsyn } /** - * Asynchronously creates or updates a new domain with the specified parameters. + * Create or update a domain. + * + *

Asynchronously creates or updates a new domain with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -505,7 +517,9 @@ private PollerFlux, DomainInner> beginCreateOrUpdateAsyn } /** - * Asynchronously creates or updates a new domain with the specified parameters. + * Create or update a domain. + * + *

Asynchronously creates or updates a new domain with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -518,11 +532,13 @@ private PollerFlux, DomainInner> beginCreateOrUpdateAsyn @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DomainInner> beginCreateOrUpdate( String resourceGroupName, String domainName, DomainInner domainInfo) { - return beginCreateOrUpdateAsync(resourceGroupName, domainName, domainInfo).getSyncPoller(); + return this.beginCreateOrUpdateAsync(resourceGroupName, domainName, domainInfo).getSyncPoller(); } /** - * Asynchronously creates or updates a new domain with the specified parameters. + * Create or update a domain. + * + *

Asynchronously creates or updates a new domain with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -536,11 +552,13 @@ public SyncPoller, DomainInner> beginCreateOrUpdate( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DomainInner> beginCreateOrUpdate( String resourceGroupName, String domainName, DomainInner domainInfo, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, domainName, domainInfo, context).getSyncPoller(); + return this.beginCreateOrUpdateAsync(resourceGroupName, domainName, domainInfo, context).getSyncPoller(); } /** - * Asynchronously creates or updates a new domain with the specified parameters. + * Create or update a domain. + * + *

Asynchronously creates or updates a new domain with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -558,7 +576,9 @@ private Mono createOrUpdateAsync(String resourceGroupName, String d } /** - * Asynchronously creates or updates a new domain with the specified parameters. + * Create or update a domain. + * + *

Asynchronously creates or updates a new domain with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -578,7 +598,9 @@ private Mono createOrUpdateAsync( } /** - * Asynchronously creates or updates a new domain with the specified parameters. + * Create or update a domain. + * + *

Asynchronously creates or updates a new domain with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -594,7 +616,9 @@ public DomainInner createOrUpdate(String resourceGroupName, String domainName, D } /** - * Asynchronously creates or updates a new domain with the specified parameters. + * Create or update a domain. + * + *

Asynchronously creates or updates a new domain with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -612,7 +636,9 @@ public DomainInner createOrUpdate( } /** - * Delete existing domain. + * Delete a domain. + * + *

Delete existing domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -657,7 +683,9 @@ private Mono>> deleteWithResponseAsync(String resource } /** - * Delete existing domain. + * Delete a domain. + * + *

Delete existing domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -701,7 +729,9 @@ private Mono>> deleteWithResponseAsync( } /** - * Delete existing domain. + * Delete a domain. + * + *

Delete existing domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -720,7 +750,9 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup } /** - * Delete existing domain. + * Delete a domain. + * + *

Delete existing domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -741,7 +773,9 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Delete existing domain. + * Delete a domain. + * + *

Delete existing domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -752,11 +786,13 @@ private PollerFlux, Void> beginDeleteAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String resourceGroupName, String domainName) { - return beginDeleteAsync(resourceGroupName, domainName).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, domainName).getSyncPoller(); } /** - * Delete existing domain. + * Delete a domain. + * + *

Delete existing domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -769,11 +805,13 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String domainName, Context context) { - return beginDeleteAsync(resourceGroupName, domainName, context).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, domainName, context).getSyncPoller(); } /** - * Delete existing domain. + * Delete a domain. + * + *

Delete existing domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -788,7 +826,9 @@ private Mono deleteAsync(String resourceGroupName, String domainName) { } /** - * Delete existing domain. + * Delete a domain. + * + *

Delete existing domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -806,7 +846,9 @@ private Mono deleteAsync(String resourceGroupName, String domainName, Cont } /** - * Delete existing domain. + * Delete a domain. + * + *

Delete existing domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -820,7 +862,9 @@ public void delete(String resourceGroupName, String domainName) { } /** - * Delete existing domain. + * Delete a domain. + * + *

Delete existing domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -835,7 +879,9 @@ public void delete(String resourceGroupName, String domainName, Context context) } /** - * Asynchronously updates a domain with the specified parameters. + * Update a domain. + * + *

Asynchronously updates a domain with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -892,7 +938,9 @@ private Mono>> updateWithResponseAsync( } /** - * Asynchronously updates a domain with the specified parameters. + * Update a domain. + * + *

Asynchronously updates a domain with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -947,7 +995,9 @@ private Mono>> updateWithResponseAsync( } /** - * Asynchronously updates a domain with the specified parameters. + * Update a domain. + * + *

Asynchronously updates a domain with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -969,7 +1019,9 @@ private PollerFlux, DomainInner> beginUpdateAsync( } /** - * Asynchronously updates a domain with the specified parameters. + * Update a domain. + * + *

Asynchronously updates a domain with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -993,7 +1045,9 @@ private PollerFlux, DomainInner> beginUpdateAsync( } /** - * Asynchronously updates a domain with the specified parameters. + * Update a domain. + * + *

Asynchronously updates a domain with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -1006,11 +1060,13 @@ private PollerFlux, DomainInner> beginUpdateAsync( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DomainInner> beginUpdate( String resourceGroupName, String domainName, DomainUpdateParameters domainUpdateParameters) { - return beginUpdateAsync(resourceGroupName, domainName, domainUpdateParameters).getSyncPoller(); + return this.beginUpdateAsync(resourceGroupName, domainName, domainUpdateParameters).getSyncPoller(); } /** - * Asynchronously updates a domain with the specified parameters. + * Update a domain. + * + *

Asynchronously updates a domain with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -1024,11 +1080,13 @@ public SyncPoller, DomainInner> beginUpdate( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DomainInner> beginUpdate( String resourceGroupName, String domainName, DomainUpdateParameters domainUpdateParameters, Context context) { - return beginUpdateAsync(resourceGroupName, domainName, domainUpdateParameters, context).getSyncPoller(); + return this.beginUpdateAsync(resourceGroupName, domainName, domainUpdateParameters, context).getSyncPoller(); } /** - * Asynchronously updates a domain with the specified parameters. + * Update a domain. + * + *

Asynchronously updates a domain with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -1047,7 +1105,9 @@ private Mono updateAsync( } /** - * Asynchronously updates a domain with the specified parameters. + * Update a domain. + * + *

Asynchronously updates a domain with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -1067,7 +1127,9 @@ private Mono updateAsync( } /** - * Asynchronously updates a domain with the specified parameters. + * Update a domain. + * + *

Asynchronously updates a domain with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -1084,7 +1146,9 @@ public DomainInner update( } /** - * Asynchronously updates a domain with the specified parameters. + * Update a domain. + * + *

Asynchronously updates a domain with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -1102,7 +1166,9 @@ public DomainInner update( } /** - * List all the domains under an Azure subscription. + * List domains under an Azure subscription. + * + *

List all the domains under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -1158,7 +1224,9 @@ private Mono> listSinglePageAsync(String filter, Inte } /** - * List all the domains under an Azure subscription. + * List domains under an Azure subscription. + * + *

List all the domains under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -1212,7 +1280,9 @@ private Mono> listSinglePageAsync(String filter, Inte } /** - * List all the domains under an Azure subscription. + * List domains under an Azure subscription. + * + *

List all the domains under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -1234,7 +1304,9 @@ private PagedFlux listAsync(String filter, Integer top) { } /** - * List all the domains under an Azure subscription. + * List domains under an Azure subscription. + * + *

List all the domains under an Azure subscription. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1249,7 +1321,9 @@ private PagedFlux listAsync() { } /** - * List all the domains under an Azure subscription. + * List domains under an Azure subscription. + * + *

List all the domains under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -1273,7 +1347,9 @@ private PagedFlux listAsync(String filter, Integer top, Context con } /** - * List all the domains under an Azure subscription. + * List domains under an Azure subscription. + * + *

List all the domains under an Azure subscription. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1287,7 +1363,9 @@ public PagedIterable list() { } /** - * List all the domains under an Azure subscription. + * List domains under an Azure subscription. + * + *

List all the domains under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -1309,7 +1387,9 @@ public PagedIterable list(String filter, Integer top, Context conte } /** - * List all the domains under a resource group. + * List domains under a resource group. + * + *

List all the domains under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -1372,7 +1452,9 @@ private Mono> listByResourceGroupSinglePageAsync( } /** - * List all the domains under a resource group. + * List domains under a resource group. + * + *

List all the domains under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -1433,7 +1515,9 @@ private Mono> listByResourceGroupSinglePageAsync( } /** - * List all the domains under a resource group. + * List domains under a resource group. + * + *

List all the domains under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -1457,7 +1541,9 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupName } /** - * List all the domains under a resource group. + * List domains under a resource group. + * + *

List all the domains under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1475,7 +1561,9 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupName } /** - * List all the domains under a resource group. + * List domains under a resource group. + * + *

List all the domains under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -1501,7 +1589,9 @@ private PagedFlux listByResourceGroupAsync( } /** - * List all the domains under a resource group. + * List domains under a resource group. + * + *

List all the domains under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1517,7 +1607,9 @@ public PagedIterable listByResourceGroup(String resourceGroupName) } /** - * List all the domains under a resource group. + * List domains under a resource group. + * + *

List all the domains under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -1541,7 +1633,9 @@ public PagedIterable listByResourceGroup( } /** - * List the two keys used to publish to a domain. + * List keys for a domain. + * + *

List the two keys used to publish to a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -1589,7 +1683,9 @@ private Mono> listSharedAccessKeysWithResp } /** - * List the two keys used to publish to a domain. + * List keys for a domain. + * + *

List the two keys used to publish to a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -1635,7 +1731,9 @@ private Mono> listSharedAccessKeysWithResp } /** - * List the two keys used to publish to a domain. + * List keys for a domain. + * + *

List the two keys used to publish to a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -1651,39 +1749,45 @@ private Mono listSharedAccessKeysAsync(String resou } /** - * List the two keys used to publish to a domain. + * List keys for a domain. + * + *

List the two keys used to publish to a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return shared access keys of the Domain. + * @return shared access keys of the Domain along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DomainSharedAccessKeysInner listSharedAccessKeys(String resourceGroupName, String domainName) { - return listSharedAccessKeysAsync(resourceGroupName, domainName).block(); + public Response listSharedAccessKeysWithResponse( + String resourceGroupName, String domainName, Context context) { + return listSharedAccessKeysWithResponseAsync(resourceGroupName, domainName, context).block(); } /** - * List the two keys used to publish to a domain. + * List keys for a domain. + * + *

List the two keys used to publish to a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return shared access keys of the Domain along with {@link Response}. + * @return shared access keys of the Domain. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response listSharedAccessKeysWithResponse( - String resourceGroupName, String domainName, Context context) { - return listSharedAccessKeysWithResponseAsync(resourceGroupName, domainName, context).block(); + public DomainSharedAccessKeysInner listSharedAccessKeys(String resourceGroupName, String domainName) { + return listSharedAccessKeysWithResponse(resourceGroupName, domainName, Context.NONE).getValue(); } /** - * Regenerate a shared access key for a domain. + * Regenerate key for a domain. + * + *

Regenerate a shared access key for a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -1739,7 +1843,9 @@ private Mono> regenerateKeyWithResponseAsy } /** - * Regenerate a shared access key for a domain. + * Regenerate key for a domain. + * + *

Regenerate a shared access key for a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -1793,7 +1899,9 @@ private Mono> regenerateKeyWithResponseAsy } /** - * Regenerate a shared access key for a domain. + * Regenerate key for a domain. + * + *

Regenerate a shared access key for a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -1811,44 +1919,49 @@ private Mono regenerateKeyAsync( } /** - * Regenerate a shared access key for a domain. + * Regenerate key for a domain. + * + *

Regenerate a shared access key for a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. * @param regenerateKeyRequest Request body to regenerate key. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return shared access keys of the Domain. + * @return shared access keys of the Domain along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DomainSharedAccessKeysInner regenerateKey( - String resourceGroupName, String domainName, DomainRegenerateKeyRequest regenerateKeyRequest) { - return regenerateKeyAsync(resourceGroupName, domainName, regenerateKeyRequest).block(); + public Response regenerateKeyWithResponse( + String resourceGroupName, String domainName, DomainRegenerateKeyRequest regenerateKeyRequest, Context context) { + return regenerateKeyWithResponseAsync(resourceGroupName, domainName, regenerateKeyRequest, context).block(); } /** - * Regenerate a shared access key for a domain. + * Regenerate key for a domain. + * + *

Regenerate a shared access key for a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. * @param regenerateKeyRequest Request body to regenerate key. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return shared access keys of the Domain along with {@link Response}. + * @return shared access keys of the Domain. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response regenerateKeyWithResponse( - String resourceGroupName, String domainName, DomainRegenerateKeyRequest regenerateKeyRequest, Context context) { - return regenerateKeyWithResponseAsync(resourceGroupName, domainName, regenerateKeyRequest, context).block(); + public DomainSharedAccessKeysInner regenerateKey( + String resourceGroupName, String domainName, DomainRegenerateKeyRequest regenerateKeyRequest) { + return regenerateKeyWithResponse(resourceGroupName, domainName, regenerateKeyRequest, Context.NONE).getValue(); } /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1885,7 +1998,8 @@ private Mono> listBySubscriptionNextSinglePageAsync(S /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1922,7 +2036,8 @@ private Mono> listBySubscriptionNextSinglePageAsync(S /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1959,7 +2074,8 @@ private Mono> listByResourceGroupNextSinglePageAsync( /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainsImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainsImpl.java index a76bc6fe93a0..3b1d4e54c4ca 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainsImpl.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/DomainsImpl.java @@ -29,15 +29,6 @@ public DomainsImpl(DomainsClient innerClient, com.azure.resourcemanager.eventgri this.serviceManager = serviceManager; } - public Domain getByResourceGroup(String resourceGroupName, String domainName) { - DomainInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, domainName); - if (inner != null) { - return new DomainImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getByResourceGroupWithResponse( String resourceGroupName, String domainName, Context context) { Response inner = @@ -53,6 +44,15 @@ public Response getByResourceGroupWithResponse( } } + public Domain getByResourceGroup(String resourceGroupName, String domainName) { + DomainInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, domainName); + if (inner != null) { + return new DomainImpl(inner, this.manager()); + } else { + return null; + } + } + public void deleteByResourceGroup(String resourceGroupName, String domainName) { this.serviceClient().delete(resourceGroupName, domainName); } @@ -83,15 +83,6 @@ public PagedIterable listByResourceGroup( return Utils.mapPage(inner, inner1 -> new DomainImpl(inner1, this.manager())); } - public DomainSharedAccessKeys listSharedAccessKeys(String resourceGroupName, String domainName) { - DomainSharedAccessKeysInner inner = this.serviceClient().listSharedAccessKeys(resourceGroupName, domainName); - if (inner != null) { - return new DomainSharedAccessKeysImpl(inner, this.manager()); - } else { - return null; - } - } - public Response listSharedAccessKeysWithResponse( String resourceGroupName, String domainName, Context context) { Response inner = @@ -107,10 +98,8 @@ public Response listSharedAccessKeysWithResponse( } } - public DomainSharedAccessKeys regenerateKey( - String resourceGroupName, String domainName, DomainRegenerateKeyRequest regenerateKeyRequest) { - DomainSharedAccessKeysInner inner = - this.serviceClient().regenerateKey(resourceGroupName, domainName, regenerateKeyRequest); + public DomainSharedAccessKeys listSharedAccessKeys(String resourceGroupName, String domainName) { + DomainSharedAccessKeysInner inner = this.serviceClient().listSharedAccessKeys(resourceGroupName, domainName); if (inner != null) { return new DomainSharedAccessKeysImpl(inner, this.manager()); } else { @@ -135,6 +124,17 @@ public Response regenerateKeyWithResponse( } } + public DomainSharedAccessKeys regenerateKey( + String resourceGroupName, String domainName, DomainRegenerateKeyRequest regenerateKeyRequest) { + DomainSharedAccessKeysInner inner = + this.serviceClient().regenerateKey(resourceGroupName, domainName, regenerateKeyRequest); + if (inner != null) { + return new DomainSharedAccessKeysImpl(inner, this.manager()); + } else { + return null; + } + } + public Domain getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/EventGridManagementClientBuilder.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/EventGridManagementClientBuilder.java index 6168736725f6..e7b9b8cd4d9d 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/EventGridManagementClientBuilder.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/EventGridManagementClientBuilder.java @@ -18,9 +18,8 @@ @ServiceClientBuilder(serviceClients = {EventGridManagementClientImpl.class}) public final class EventGridManagementClientBuilder { /* - * Subscription credentials that uniquely identify a Microsoft Azure - * subscription. The subscription ID forms part of the URI for every - * service call. + * Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part + * of the URI for every service call. */ private String subscriptionId; @@ -122,24 +121,26 @@ public EventGridManagementClientBuilder serializerAdapter(SerializerAdapter seri * @return an instance of EventGridManagementClientImpl. */ public EventGridManagementClientImpl buildClient() { - if (endpoint == null) { - this.endpoint = "https://management.azure.com"; - } - if (environment == null) { - this.environment = AzureEnvironment.AZURE; - } - if (pipeline == null) { - this.pipeline = new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build(); - } - if (defaultPollInterval == null) { - this.defaultPollInterval = Duration.ofSeconds(30); - } - if (serializerAdapter == null) { - this.serializerAdapter = SerializerFactory.createDefaultManagementSerializerAdapter(); - } + String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com"; + AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE; + HttpPipeline localPipeline = + (pipeline != null) + ? pipeline + : new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build(); + Duration localDefaultPollInterval = + (defaultPollInterval != null) ? defaultPollInterval : Duration.ofSeconds(30); + SerializerAdapter localSerializerAdapter = + (serializerAdapter != null) + ? serializerAdapter + : SerializerFactory.createDefaultManagementSerializerAdapter(); EventGridManagementClientImpl client = new EventGridManagementClientImpl( - pipeline, serializerAdapter, defaultPollInterval, environment, subscriptionId, endpoint); + localPipeline, + localSerializerAdapter, + localDefaultPollInterval, + localEnvironment, + subscriptionId, + localEndpoint); return client; } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/EventSubscriptionImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/EventSubscriptionImpl.java index 7da4960c208a..a74f947e36fc 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/EventSubscriptionImpl.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/EventSubscriptionImpl.java @@ -207,20 +207,16 @@ public EventSubscription refresh(Context context) { return this; } - public DeliveryAttributeListResult getDeliveryAttributes() { - return serviceManager - .topicEventSubscriptions() - .getDeliveryAttributes(resourceGroupName, topicName, eventSubscriptionName); - } - public Response getDeliveryAttributesWithResponse(Context context) { return serviceManager .topicEventSubscriptions() .getDeliveryAttributesWithResponse(resourceGroupName, topicName, eventSubscriptionName, context); } - public EventSubscriptionFullUrl getFullUrl() { - return serviceManager.topicEventSubscriptions().getFullUrl(resourceGroupName, topicName, eventSubscriptionName); + public DeliveryAttributeListResult getDeliveryAttributes() { + return serviceManager + .topicEventSubscriptions() + .getDeliveryAttributes(resourceGroupName, topicName, eventSubscriptionName); } public Response getFullUrlWithResponse(Context context) { @@ -229,6 +225,10 @@ public Response getFullUrlWithResponse(Context context .getFullUrlWithResponse(resourceGroupName, topicName, eventSubscriptionName, context); } + public EventSubscriptionFullUrl getFullUrl() { + return serviceManager.topicEventSubscriptions().getFullUrl(resourceGroupName, topicName, eventSubscriptionName); + } + public EventSubscriptionImpl withDestination(EventSubscriptionDestination destination) { if (isInCreateMode()) { this.innerModel().withDestination(destination); diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/EventSubscriptionsClientImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/EventSubscriptionsClientImpl.java index b33aa6a14d57..5a52121ff808 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/EventSubscriptionsClientImpl.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/EventSubscriptionsClientImpl.java @@ -68,7 +68,7 @@ public final class EventSubscriptionsClientImpl implements EventSubscriptionsCli */ @Host("{$host}") @ServiceInterface(name = "EventGridManagementC") - private interface EventSubscriptionsService { + public interface EventSubscriptionsService { @Headers({"Content-Type: application/json"}) @Get("/{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}") @ExpectedResponses({200}) @@ -145,8 +145,7 @@ Mono> list( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/topicTypes/{topicTypeName}" - + "/eventSubscriptions") + "/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/topicTypes/{topicTypeName}/eventSubscriptions") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listGlobalBySubscriptionForTopicType( @@ -161,8 +160,7 @@ Mono> listGlobalBySubscriptionForTopicTyp @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/eventSubscriptions") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/eventSubscriptions") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByResourceGroup( @@ -177,8 +175,7 @@ Mono> listByResourceGroup( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/topicTypes/{topicTypeName}/eventSubscriptions") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topicTypes/{topicTypeName}/eventSubscriptions") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listGlobalByResourceGroupForTopicType( @@ -208,8 +205,7 @@ Mono> listRegionalBySubscription( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/locations" - + "/{location}/eventSubscriptions") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/locations/{location}/eventSubscriptions") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listRegionalByResourceGroup( @@ -225,8 +221,7 @@ Mono> listRegionalByResourceGroup( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/locations/{location}/topicTypes" - + "/{topicTypeName}/eventSubscriptions") + "/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/locations/{location}/topicTypes/{topicTypeName}/eventSubscriptions") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listRegionalBySubscriptionForTopicType( @@ -242,8 +237,7 @@ Mono> listRegionalBySubscriptionForTopicT @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/locations" - + "/{location}/topicTypes/{topicTypeName}/eventSubscriptions") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/locations/{location}/topicTypes/{topicTypeName}/eventSubscriptions") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listRegionalByResourceGroupForTopicType( @@ -260,8 +254,7 @@ Mono> listRegionalByResourceGroupForTopic @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{providerNamespace}" - + "/{resourceTypeName}/{resourceName}/providers/Microsoft.EventGrid/eventSubscriptions") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{providerNamespace}/{resourceTypeName}/{resourceName}/providers/Microsoft.EventGrid/eventSubscriptions") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByResource( @@ -279,8 +272,7 @@ Mono> listByResource( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains" - + "/{domainName}/topics/{topicName}/providers/Microsoft.EventGrid/eventSubscriptions") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/topics/{topicName}/providers/Microsoft.EventGrid/eventSubscriptions") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByDomainTopic( @@ -409,7 +401,9 @@ Mono> listByDomainTopicNext( } /** - * Get properties of an event subscription. + * Get an event subscription. + * + *

Get properties of an event subscription. * * @param scope The scope of the event subscription. The scope can be a subscription, or a resource group, or a top * level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -456,7 +450,9 @@ private Mono> getWithResponseAsync(String scope } /** - * Get properties of an event subscription. + * Get an event subscription. + * + *

Get properties of an event subscription. * * @param scope The scope of the event subscription. The scope can be a subscription, or a resource group, or a top * level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -496,7 +492,9 @@ private Mono> getWithResponseAsync( } /** - * Get properties of an event subscription. + * Get an event subscription. + * + *

Get properties of an event subscription. * * @param scope The scope of the event subscription. The scope can be a subscription, or a resource group, or a top * level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -518,7 +516,9 @@ private Mono getAsync(String scope, String eventSubscrip } /** - * Get properties of an event subscription. + * Get an event subscription. + * + *

Get properties of an event subscription. * * @param scope The scope of the event subscription. The scope can be a subscription, or a resource group, or a top * level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -529,18 +529,22 @@ private Mono getAsync(String scope, String eventSubscrip * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' * for an EventGrid topic. * @param eventSubscriptionName Name of the event subscription. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of an event subscription. + * @return properties of an event subscription along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public EventSubscriptionInner get(String scope, String eventSubscriptionName) { - return getAsync(scope, eventSubscriptionName).block(); + public Response getWithResponse( + String scope, String eventSubscriptionName, Context context) { + return getWithResponseAsync(scope, eventSubscriptionName, context).block(); } /** - * Get properties of an event subscription. + * Get an event subscription. + * + *

Get properties of an event subscription. * * @param scope The scope of the event subscription. The scope can be a subscription, or a resource group, or a top * level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -551,21 +555,21 @@ public EventSubscriptionInner get(String scope, String eventSubscriptionName) { * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' * for an EventGrid topic. * @param eventSubscriptionName Name of the event subscription. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of an event subscription along with {@link Response}. + * @return properties of an event subscription. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String scope, String eventSubscriptionName, Context context) { - return getWithResponseAsync(scope, eventSubscriptionName, context).block(); + public EventSubscriptionInner get(String scope, String eventSubscriptionName) { + return getWithResponse(scope, eventSubscriptionName, Context.NONE).getValue(); } /** - * Asynchronously creates a new event subscription or updates an existing event subscription based on the specified - * scope. + * Create or update an event subscription. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription based on the + * specified scope. * * @param scope The identifier of the resource to which the event subscription needs to be created or updated. The * scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider @@ -622,8 +626,10 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Asynchronously creates a new event subscription or updates an existing event subscription based on the specified - * scope. + * Create or update an event subscription. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription based on the + * specified scope. * * @param scope The identifier of the resource to which the event subscription needs to be created or updated. The * scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider @@ -678,8 +684,10 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Asynchronously creates a new event subscription or updates an existing event subscription based on the specified - * scope. + * Create or update an event subscription. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription based on the + * specified scope. * * @param scope The identifier of the resource to which the event subscription needs to be created or updated. The * scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider @@ -713,8 +721,10 @@ private PollerFlux, EventSubscriptionInner> b } /** - * Asynchronously creates a new event subscription or updates an existing event subscription based on the specified - * scope. + * Create or update an event subscription. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription based on the + * specified scope. * * @param scope The identifier of the resource to which the event subscription needs to be created or updated. The * scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider @@ -750,8 +760,10 @@ private PollerFlux, EventSubscriptionInner> b } /** - * Asynchronously creates a new event subscription or updates an existing event subscription based on the specified - * scope. + * Create or update an event subscription. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription based on the + * specified scope. * * @param scope The identifier of the resource to which the event subscription needs to be created or updated. The * scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider @@ -772,12 +784,14 @@ private PollerFlux, EventSubscriptionInner> b @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, EventSubscriptionInner> beginCreateOrUpdate( String scope, String eventSubscriptionName, EventSubscriptionInner eventSubscriptionInfo) { - return beginCreateOrUpdateAsync(scope, eventSubscriptionName, eventSubscriptionInfo).getSyncPoller(); + return this.beginCreateOrUpdateAsync(scope, eventSubscriptionName, eventSubscriptionInfo).getSyncPoller(); } /** - * Asynchronously creates a new event subscription or updates an existing event subscription based on the specified - * scope. + * Create or update an event subscription. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription based on the + * specified scope. * * @param scope The identifier of the resource to which the event subscription needs to be created or updated. The * scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider @@ -799,12 +813,16 @@ public SyncPoller, EventSubscriptionInner> be @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, EventSubscriptionInner> beginCreateOrUpdate( String scope, String eventSubscriptionName, EventSubscriptionInner eventSubscriptionInfo, Context context) { - return beginCreateOrUpdateAsync(scope, eventSubscriptionName, eventSubscriptionInfo, context).getSyncPoller(); + return this + .beginCreateOrUpdateAsync(scope, eventSubscriptionName, eventSubscriptionInfo, context) + .getSyncPoller(); } /** - * Asynchronously creates a new event subscription or updates an existing event subscription based on the specified - * scope. + * Create or update an event subscription. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription based on the + * specified scope. * * @param scope The identifier of the resource to which the event subscription needs to be created or updated. The * scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider @@ -831,8 +849,10 @@ private Mono createOrUpdateAsync( } /** - * Asynchronously creates a new event subscription or updates an existing event subscription based on the specified - * scope. + * Create or update an event subscription. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription based on the + * specified scope. * * @param scope The identifier of the resource to which the event subscription needs to be created or updated. The * scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider @@ -860,8 +880,10 @@ private Mono createOrUpdateAsync( } /** - * Asynchronously creates a new event subscription or updates an existing event subscription based on the specified - * scope. + * Create or update an event subscription. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription based on the + * specified scope. * * @param scope The identifier of the resource to which the event subscription needs to be created or updated. The * scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider @@ -886,8 +908,10 @@ public EventSubscriptionInner createOrUpdate( } /** - * Asynchronously creates a new event subscription or updates an existing event subscription based on the specified - * scope. + * Create or update an event subscription. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription based on the + * specified scope. * * @param scope The identifier of the resource to which the event subscription needs to be created or updated. The * scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider @@ -913,7 +937,9 @@ public EventSubscriptionInner createOrUpdate( } /** - * Delete an existing event subscription. + * Delete an event subscription. + * + *

Delete an existing event subscription. * * @param scope The scope of the event subscription. The scope can be a subscription, or a resource group, or a top * level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -958,7 +984,9 @@ private Mono>> deleteWithResponseAsync(String scope, S } /** - * Delete an existing event subscription. + * Delete an event subscription. + * + *

Delete an existing event subscription. * * @param scope The scope of the event subscription. The scope can be a subscription, or a resource group, or a top * level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -997,7 +1025,9 @@ private Mono>> deleteWithResponseAsync( } /** - * Delete an existing event subscription. + * Delete an event subscription. + * + *

Delete an existing event subscription. * * @param scope The scope of the event subscription. The scope can be a subscription, or a resource group, or a top * level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -1023,7 +1053,9 @@ private PollerFlux, Void> beginDeleteAsync(String scope, String } /** - * Delete an existing event subscription. + * Delete an event subscription. + * + *

Delete an existing event subscription. * * @param scope The scope of the event subscription. The scope can be a subscription, or a resource group, or a top * level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -1051,7 +1083,9 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Delete an existing event subscription. + * Delete an event subscription. + * + *

Delete an existing event subscription. * * @param scope The scope of the event subscription. The scope can be a subscription, or a resource group, or a top * level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -1069,11 +1103,13 @@ private PollerFlux, Void> beginDeleteAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String scope, String eventSubscriptionName) { - return beginDeleteAsync(scope, eventSubscriptionName).getSyncPoller(); + return this.beginDeleteAsync(scope, eventSubscriptionName).getSyncPoller(); } /** - * Delete an existing event subscription. + * Delete an event subscription. + * + *

Delete an existing event subscription. * * @param scope The scope of the event subscription. The scope can be a subscription, or a resource group, or a top * level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -1092,11 +1128,13 @@ public SyncPoller, Void> beginDelete(String scope, String event */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String scope, String eventSubscriptionName, Context context) { - return beginDeleteAsync(scope, eventSubscriptionName, context).getSyncPoller(); + return this.beginDeleteAsync(scope, eventSubscriptionName, context).getSyncPoller(); } /** - * Delete an existing event subscription. + * Delete an event subscription. + * + *

Delete an existing event subscription. * * @param scope The scope of the event subscription. The scope can be a subscription, or a resource group, or a top * level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -1118,7 +1156,9 @@ private Mono deleteAsync(String scope, String eventSubscriptionName) { } /** - * Delete an existing event subscription. + * Delete an event subscription. + * + *

Delete an existing event subscription. * * @param scope The scope of the event subscription. The scope can be a subscription, or a resource group, or a top * level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -1143,7 +1183,9 @@ private Mono deleteAsync(String scope, String eventSubscriptionName, Conte } /** - * Delete an existing event subscription. + * Delete an event subscription. + * + *

Delete an existing event subscription. * * @param scope The scope of the event subscription. The scope can be a subscription, or a resource group, or a top * level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -1164,7 +1206,9 @@ public void delete(String scope, String eventSubscriptionName) { } /** - * Delete an existing event subscription. + * Delete an event subscription. + * + *

Delete an existing event subscription. * * @param scope The scope of the event subscription. The scope can be a subscription, or a resource group, or a top * level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -1186,7 +1230,9 @@ public void delete(String scope, String eventSubscriptionName, Context context) } /** - * Asynchronously updates an existing event subscription. + * Update an event subscription. + * + *

Asynchronously updates an existing event subscription. * * @param scope The scope of existing event subscription. The scope can be a subscription, or a resource group, or a * top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -1246,7 +1292,9 @@ private Mono>> updateWithResponseAsync( } /** - * Asynchronously updates an existing event subscription. + * Update an event subscription. + * + *

Asynchronously updates an existing event subscription. * * @param scope The scope of existing event subscription. The scope can be a subscription, or a resource group, or a * top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -1305,7 +1353,9 @@ private Mono>> updateWithResponseAsync( } /** - * Asynchronously updates an existing event subscription. + * Update an event subscription. + * + *

Asynchronously updates an existing event subscription. * * @param scope The scope of existing event subscription. The scope can be a subscription, or a resource group, or a * top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -1340,7 +1390,9 @@ private PollerFlux, EventSubscriptionInner> b } /** - * Asynchronously updates an existing event subscription. + * Update an event subscription. + * + *

Asynchronously updates an existing event subscription. * * @param scope The scope of existing event subscription. The scope can be a subscription, or a resource group, or a * top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -1378,7 +1430,9 @@ private PollerFlux, EventSubscriptionInner> b } /** - * Asynchronously updates an existing event subscription. + * Update an event subscription. + * + *

Asynchronously updates an existing event subscription. * * @param scope The scope of existing event subscription. The scope can be a subscription, or a resource group, or a * top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -1400,11 +1454,13 @@ public SyncPoller, EventSubscriptionInner> be String scope, String eventSubscriptionName, EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters) { - return beginUpdateAsync(scope, eventSubscriptionName, eventSubscriptionUpdateParameters).getSyncPoller(); + return this.beginUpdateAsync(scope, eventSubscriptionName, eventSubscriptionUpdateParameters).getSyncPoller(); } /** - * Asynchronously updates an existing event subscription. + * Update an event subscription. + * + *

Asynchronously updates an existing event subscription. * * @param scope The scope of existing event subscription. The scope can be a subscription, or a resource group, or a * top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -1428,12 +1484,15 @@ public SyncPoller, EventSubscriptionInner> be String eventSubscriptionName, EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters, Context context) { - return beginUpdateAsync(scope, eventSubscriptionName, eventSubscriptionUpdateParameters, context) + return this + .beginUpdateAsync(scope, eventSubscriptionName, eventSubscriptionUpdateParameters, context) .getSyncPoller(); } /** - * Asynchronously updates an existing event subscription. + * Update an event subscription. + * + *

Asynchronously updates an existing event subscription. * * @param scope The scope of existing event subscription. The scope can be a subscription, or a resource group, or a * top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -1461,7 +1520,9 @@ private Mono updateAsync( } /** - * Asynchronously updates an existing event subscription. + * Update an event subscription. + * + *

Asynchronously updates an existing event subscription. * * @param scope The scope of existing event subscription. The scope can be a subscription, or a resource group, or a * top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -1491,7 +1552,9 @@ private Mono updateAsync( } /** - * Asynchronously updates an existing event subscription. + * Update an event subscription. + * + *

Asynchronously updates an existing event subscription. * * @param scope The scope of existing event subscription. The scope can be a subscription, or a resource group, or a * top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -1517,7 +1580,9 @@ public EventSubscriptionInner update( } /** - * Asynchronously updates an existing event subscription. + * Update an event subscription. + * + *

Asynchronously updates an existing event subscription. * * @param scope The scope of existing event subscription. The scope can be a subscription, or a resource group, or a * top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -1545,7 +1610,9 @@ public EventSubscriptionInner update( } /** - * Get the full endpoint URL for an event subscription. + * Get full URL of an event subscription. + * + *

Get the full endpoint URL for an event subscription. * * @param scope The scope of the event subscription. The scope can be a subscription, or a resource group, or a top * level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -1594,7 +1661,9 @@ private Mono> getFullUrlWithResponseAsyn } /** - * Get the full endpoint URL for an event subscription. + * Get full URL of an event subscription. + * + *

Get the full endpoint URL for an event subscription. * * @param scope The scope of the event subscription. The scope can be a subscription, or a resource group, or a top * level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -1636,7 +1705,9 @@ private Mono> getFullUrlWithResponseAsyn } /** - * Get the full endpoint URL for an event subscription. + * Get full URL of an event subscription. + * + *

Get the full endpoint URL for an event subscription. * * @param scope The scope of the event subscription. The scope can be a subscription, or a resource group, or a top * level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -1659,7 +1730,9 @@ private Mono getFullUrlAsync(String scope, String } /** - * Get the full endpoint URL for an event subscription. + * Get full URL of an event subscription. + * + *

Get the full endpoint URL for an event subscription. * * @param scope The scope of the event subscription. The scope can be a subscription, or a resource group, or a top * level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -1670,18 +1743,22 @@ private Mono getFullUrlAsync(String scope, String * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' * for an EventGrid topic. * @param eventSubscriptionName Name of the event subscription. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the full endpoint URL for an event subscription. + * @return the full endpoint URL for an event subscription along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public EventSubscriptionFullUrlInner getFullUrl(String scope, String eventSubscriptionName) { - return getFullUrlAsync(scope, eventSubscriptionName).block(); + public Response getFullUrlWithResponse( + String scope, String eventSubscriptionName, Context context) { + return getFullUrlWithResponseAsync(scope, eventSubscriptionName, context).block(); } /** - * Get the full endpoint URL for an event subscription. + * Get full URL of an event subscription. + * + *

Get the full endpoint URL for an event subscription. * * @param scope The scope of the event subscription. The scope can be a subscription, or a resource group, or a top * level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -1692,20 +1769,20 @@ public EventSubscriptionFullUrlInner getFullUrl(String scope, String eventSubscr * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' * for an EventGrid topic. * @param eventSubscriptionName Name of the event subscription. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the full endpoint URL for an event subscription along with {@link Response}. + * @return the full endpoint URL for an event subscription. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getFullUrlWithResponse( - String scope, String eventSubscriptionName, Context context) { - return getFullUrlWithResponseAsync(scope, eventSubscriptionName, context).block(); + public EventSubscriptionFullUrlInner getFullUrl(String scope, String eventSubscriptionName) { + return getFullUrlWithResponse(scope, eventSubscriptionName, Context.NONE).getValue(); } /** - * List all aggregated global event subscriptions under a specific Azure subscription. + * Get an aggregated list of all global event subscriptions under an Azure subscription. + * + *

List all aggregated global event subscriptions under a specific Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -1761,7 +1838,9 @@ private Mono> listSinglePageAsync(String f } /** - * List all aggregated global event subscriptions under a specific Azure subscription. + * Get an aggregated list of all global event subscriptions under an Azure subscription. + * + *

List all aggregated global event subscriptions under a specific Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -1816,7 +1895,9 @@ private Mono> listSinglePageAsync( } /** - * List all aggregated global event subscriptions under a specific Azure subscription. + * Get an aggregated list of all global event subscriptions under an Azure subscription. + * + *

List all aggregated global event subscriptions under a specific Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -1838,7 +1919,9 @@ private PagedFlux listAsync(String filter, Integer top) } /** - * List all aggregated global event subscriptions under a specific Azure subscription. + * Get an aggregated list of all global event subscriptions under an Azure subscription. + * + *

List all aggregated global event subscriptions under a specific Azure subscription. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1853,7 +1936,9 @@ private PagedFlux listAsync() { } /** - * List all aggregated global event subscriptions under a specific Azure subscription. + * Get an aggregated list of all global event subscriptions under an Azure subscription. + * + *

List all aggregated global event subscriptions under a specific Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -1877,7 +1962,9 @@ private PagedFlux listAsync(String filter, Integer top, } /** - * List all aggregated global event subscriptions under a specific Azure subscription. + * Get an aggregated list of all global event subscriptions under an Azure subscription. + * + *

List all aggregated global event subscriptions under a specific Azure subscription. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1891,7 +1978,9 @@ public PagedIterable list() { } /** - * List all aggregated global event subscriptions under a specific Azure subscription. + * Get an aggregated list of all global event subscriptions under an Azure subscription. + * + *

List all aggregated global event subscriptions under a specific Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -1913,7 +2002,9 @@ public PagedIterable list(String filter, Integer top, Co } /** - * List all global event subscriptions under an Azure subscription for a topic type. + * List all global event subscriptions for a topic type. + * + *

List all global event subscriptions under an Azure subscription for a topic type. * * @param topicTypeName Name of the topic type. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -1975,7 +2066,9 @@ private Mono> listGlobalBySubscriptionForT } /** - * List all global event subscriptions under an Azure subscription for a topic type. + * List all global event subscriptions for a topic type. + * + *

List all global event subscriptions under an Azure subscription for a topic type. * * @param topicTypeName Name of the topic type. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -2035,7 +2128,9 @@ private Mono> listGlobalBySubscriptionForT } /** - * List all global event subscriptions under an Azure subscription for a topic type. + * List all global event subscriptions for a topic type. + * + *

List all global event subscriptions under an Azure subscription for a topic type. * * @param topicTypeName Name of the topic type. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -2060,7 +2155,9 @@ private PagedFlux listGlobalBySubscriptionForTopicTypeAs } /** - * List all global event subscriptions under an Azure subscription for a topic type. + * List all global event subscriptions for a topic type. + * + *

List all global event subscriptions under an Azure subscription for a topic type. * * @param topicTypeName Name of the topic type. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2078,7 +2175,9 @@ private PagedFlux listGlobalBySubscriptionForTopicTypeAs } /** - * List all global event subscriptions under an Azure subscription for a topic type. + * List all global event subscriptions for a topic type. + * + *

List all global event subscriptions under an Azure subscription for a topic type. * * @param topicTypeName Name of the topic type. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -2104,7 +2203,9 @@ private PagedFlux listGlobalBySubscriptionForTopicTypeAs } /** - * List all global event subscriptions under an Azure subscription for a topic type. + * List all global event subscriptions for a topic type. + * + *

List all global event subscriptions under an Azure subscription for a topic type. * * @param topicTypeName Name of the topic type. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2120,7 +2221,9 @@ public PagedIterable listGlobalBySubscriptionForTopicTyp } /** - * List all global event subscriptions under an Azure subscription for a topic type. + * List all global event subscriptions for a topic type. + * + *

List all global event subscriptions under an Azure subscription for a topic type. * * @param topicTypeName Name of the topic type. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -2144,7 +2247,9 @@ public PagedIterable listGlobalBySubscriptionForTopicTyp } /** - * List all global event subscriptions under a specific Azure subscription and resource group. + * List all global event subscriptions under an Azure subscription and resource group. + * + *

List all global event subscriptions under a specific Azure subscription and resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -2207,7 +2312,9 @@ private Mono> listByResourceGroupSinglePag } /** - * List all global event subscriptions under a specific Azure subscription and resource group. + * List all global event subscriptions under an Azure subscription and resource group. + * + *

List all global event subscriptions under a specific Azure subscription and resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -2268,7 +2375,9 @@ private Mono> listByResourceGroupSinglePag } /** - * List all global event subscriptions under a specific Azure subscription and resource group. + * List all global event subscriptions under an Azure subscription and resource group. + * + *

List all global event subscriptions under a specific Azure subscription and resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -2293,7 +2402,9 @@ private PagedFlux listByResourceGroupAsync( } /** - * List all global event subscriptions under a specific Azure subscription and resource group. + * List all global event subscriptions under an Azure subscription and resource group. + * + *

List all global event subscriptions under a specific Azure subscription and resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2311,7 +2422,9 @@ private PagedFlux listByResourceGroupAsync(String resour } /** - * List all global event subscriptions under a specific Azure subscription and resource group. + * List all global event subscriptions under an Azure subscription and resource group. + * + *

List all global event subscriptions under a specific Azure subscription and resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -2337,7 +2450,9 @@ private PagedFlux listByResourceGroupAsync( } /** - * List all global event subscriptions under a specific Azure subscription and resource group. + * List all global event subscriptions under an Azure subscription and resource group. + * + *

List all global event subscriptions under a specific Azure subscription and resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2353,7 +2468,9 @@ public PagedIterable listByResourceGroup(String resource } /** - * List all global event subscriptions under a specific Azure subscription and resource group. + * List all global event subscriptions under an Azure subscription and resource group. + * + *

List all global event subscriptions under a specific Azure subscription and resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -2377,7 +2494,9 @@ public PagedIterable listByResourceGroup( } /** - * List all global event subscriptions under a resource group for a specific topic type. + * List all global event subscriptions under a resource group for a topic type. + * + *

List all global event subscriptions under a resource group for a specific topic type. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicTypeName Name of the topic type. @@ -2445,7 +2564,9 @@ private Mono> listGlobalByResourceGroupFor } /** - * List all global event subscriptions under a resource group for a specific topic type. + * List all global event subscriptions under a resource group for a topic type. + * + *

List all global event subscriptions under a resource group for a specific topic type. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicTypeName Name of the topic type. @@ -2511,7 +2632,9 @@ private Mono> listGlobalByResourceGroupFor } /** - * List all global event subscriptions under a resource group for a specific topic type. + * List all global event subscriptions under a resource group for a topic type. + * + *

List all global event subscriptions under a resource group for a specific topic type. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicTypeName Name of the topic type. @@ -2537,7 +2660,9 @@ private PagedFlux listGlobalByResourceGroupForTopicTypeA } /** - * List all global event subscriptions under a resource group for a specific topic type. + * List all global event subscriptions under a resource group for a topic type. + * + *

List all global event subscriptions under a resource group for a specific topic type. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicTypeName Name of the topic type. @@ -2557,7 +2682,9 @@ private PagedFlux listGlobalByResourceGroupForTopicTypeA } /** - * List all global event subscriptions under a resource group for a specific topic type. + * List all global event subscriptions under a resource group for a topic type. + * + *

List all global event subscriptions under a resource group for a specific topic type. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicTypeName Name of the topic type. @@ -2586,7 +2713,9 @@ private PagedFlux listGlobalByResourceGroupForTopicTypeA } /** - * List all global event subscriptions under a resource group for a specific topic type. + * List all global event subscriptions under a resource group for a topic type. + * + *

List all global event subscriptions under a resource group for a specific topic type. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicTypeName Name of the topic type. @@ -2605,7 +2734,9 @@ public PagedIterable listGlobalByResourceGroupForTopicTy } /** - * List all global event subscriptions under a resource group for a specific topic type. + * List all global event subscriptions under a resource group for a topic type. + * + *

List all global event subscriptions under a resource group for a specific topic type. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicTypeName Name of the topic type. @@ -2631,7 +2762,9 @@ public PagedIterable listGlobalByResourceGroupForTopicTy } /** - * List all event subscriptions from the given location under a specific Azure subscription. + * List all regional event subscriptions under an Azure subscription. + * + *

List all event subscriptions from the given location under a specific Azure subscription. * * @param location Name of the location. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -2693,7 +2826,9 @@ private Mono> listRegionalBySubscriptionSi } /** - * List all event subscriptions from the given location under a specific Azure subscription. + * List all regional event subscriptions under an Azure subscription. + * + *

List all event subscriptions from the given location under a specific Azure subscription. * * @param location Name of the location. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -2753,7 +2888,9 @@ private Mono> listRegionalBySubscriptionSi } /** - * List all event subscriptions from the given location under a specific Azure subscription. + * List all regional event subscriptions under an Azure subscription. + * + *

List all event subscriptions from the given location under a specific Azure subscription. * * @param location Name of the location. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -2778,7 +2915,9 @@ private PagedFlux listRegionalBySubscriptionAsync( } /** - * List all event subscriptions from the given location under a specific Azure subscription. + * List all regional event subscriptions under an Azure subscription. + * + *

List all event subscriptions from the given location under a specific Azure subscription. * * @param location Name of the location. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2796,7 +2935,9 @@ private PagedFlux listRegionalBySubscriptionAsync(String } /** - * List all event subscriptions from the given location under a specific Azure subscription. + * List all regional event subscriptions under an Azure subscription. + * + *

List all event subscriptions from the given location under a specific Azure subscription. * * @param location Name of the location. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -2822,7 +2963,9 @@ private PagedFlux listRegionalBySubscriptionAsync( } /** - * List all event subscriptions from the given location under a specific Azure subscription. + * List all regional event subscriptions under an Azure subscription. + * + *

List all event subscriptions from the given location under a specific Azure subscription. * * @param location Name of the location. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2838,7 +2981,9 @@ public PagedIterable listRegionalBySubscription(String l } /** - * List all event subscriptions from the given location under a specific Azure subscription. + * List all regional event subscriptions under an Azure subscription. + * + *

List all event subscriptions from the given location under a specific Azure subscription. * * @param location Name of the location. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -2862,7 +3007,9 @@ public PagedIterable listRegionalBySubscription( } /** - * List all event subscriptions from the given location under a specific Azure subscription and resource group. + * List all regional event subscriptions under an Azure subscription and resource group. + * + *

List all event subscriptions from the given location under a specific Azure subscription and resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param location Name of the location. @@ -2930,7 +3077,9 @@ private Mono> listRegionalByResourceGroupS } /** - * List all event subscriptions from the given location under a specific Azure subscription and resource group. + * List all regional event subscriptions under an Azure subscription and resource group. + * + *

List all event subscriptions from the given location under a specific Azure subscription and resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param location Name of the location. @@ -2996,7 +3145,9 @@ private Mono> listRegionalByResourceGroupS } /** - * List all event subscriptions from the given location under a specific Azure subscription and resource group. + * List all regional event subscriptions under an Azure subscription and resource group. + * + *

List all event subscriptions from the given location under a specific Azure subscription and resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param location Name of the location. @@ -3022,7 +3173,9 @@ private PagedFlux listRegionalByResourceGroupAsync( } /** - * List all event subscriptions from the given location under a specific Azure subscription and resource group. + * List all regional event subscriptions under an Azure subscription and resource group. + * + *

List all event subscriptions from the given location under a specific Azure subscription and resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param location Name of the location. @@ -3042,7 +3195,9 @@ private PagedFlux listRegionalByResourceGroupAsync( } /** - * List all event subscriptions from the given location under a specific Azure subscription and resource group. + * List all regional event subscriptions under an Azure subscription and resource group. + * + *

List all event subscriptions from the given location under a specific Azure subscription and resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param location Name of the location. @@ -3069,7 +3224,9 @@ private PagedFlux listRegionalByResourceGroupAsync( } /** - * List all event subscriptions from the given location under a specific Azure subscription and resource group. + * List all regional event subscriptions under an Azure subscription and resource group. + * + *

List all event subscriptions from the given location under a specific Azure subscription and resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param location Name of the location. @@ -3087,7 +3244,9 @@ public PagedIterable listRegionalByResourceGroup( } /** - * List all event subscriptions from the given location under a specific Azure subscription and resource group. + * List all regional event subscriptions under an Azure subscription and resource group. + * + *

List all event subscriptions from the given location under a specific Azure subscription and resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param location Name of the location. @@ -3112,7 +3271,9 @@ public PagedIterable listRegionalByResourceGroup( } /** - * List all event subscriptions from the given location under a specific Azure subscription and topic type. + * List all regional event subscriptions under an Azure subscription for a topic type. + * + *

List all event subscriptions from the given location under a specific Azure subscription and topic type. * * @param location Name of the location. * @param topicTypeName Name of the topic type. @@ -3179,7 +3340,9 @@ private Mono> listRegionalBySubscriptionFo } /** - * List all event subscriptions from the given location under a specific Azure subscription and topic type. + * List all regional event subscriptions under an Azure subscription for a topic type. + * + *

List all event subscriptions from the given location under a specific Azure subscription and topic type. * * @param location Name of the location. * @param topicTypeName Name of the topic type. @@ -3244,7 +3407,9 @@ private Mono> listRegionalBySubscriptionFo } /** - * List all event subscriptions from the given location under a specific Azure subscription and topic type. + * List all regional event subscriptions under an Azure subscription for a topic type. + * + *

List all event subscriptions from the given location under a specific Azure subscription and topic type. * * @param location Name of the location. * @param topicTypeName Name of the topic type. @@ -3270,7 +3435,9 @@ private PagedFlux listRegionalBySubscriptionForTopicType } /** - * List all event subscriptions from the given location under a specific Azure subscription and topic type. + * List all regional event subscriptions under an Azure subscription for a topic type. + * + *

List all event subscriptions from the given location under a specific Azure subscription and topic type. * * @param location Name of the location. * @param topicTypeName Name of the topic type. @@ -3290,7 +3457,9 @@ private PagedFlux listRegionalBySubscriptionForTopicType } /** - * List all event subscriptions from the given location under a specific Azure subscription and topic type. + * List all regional event subscriptions under an Azure subscription for a topic type. + * + *

List all event subscriptions from the given location under a specific Azure subscription and topic type. * * @param location Name of the location. * @param topicTypeName Name of the topic type. @@ -3317,7 +3486,9 @@ private PagedFlux listRegionalBySubscriptionForTopicType } /** - * List all event subscriptions from the given location under a specific Azure subscription and topic type. + * List all regional event subscriptions under an Azure subscription for a topic type. + * + *

List all event subscriptions from the given location under a specific Azure subscription and topic type. * * @param location Name of the location. * @param topicTypeName Name of the topic type. @@ -3335,7 +3506,9 @@ public PagedIterable listRegionalBySubscriptionForTopicT } /** - * List all event subscriptions from the given location under a specific Azure subscription and topic type. + * List all regional event subscriptions under an Azure subscription for a topic type. + * + *

List all event subscriptions from the given location under a specific Azure subscription and topic type. * * @param location Name of the location. * @param topicTypeName Name of the topic type. @@ -3361,8 +3534,10 @@ public PagedIterable listRegionalBySubscriptionForTopicT } /** - * List all event subscriptions from the given location under a specific Azure subscription and resource group and - * topic type. + * List all regional event subscriptions under an Azure subscription and resource group for a topic type. + * + *

List all event subscriptions from the given location under a specific Azure subscription and resource group + * and topic type. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param location Name of the location. @@ -3435,8 +3610,10 @@ private Mono> listRegionalByResourceGroupF } /** - * List all event subscriptions from the given location under a specific Azure subscription and resource group and - * topic type. + * List all regional event subscriptions under an Azure subscription and resource group for a topic type. + * + *

List all event subscriptions from the given location under a specific Azure subscription and resource group + * and topic type. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param location Name of the location. @@ -3507,8 +3684,10 @@ private Mono> listRegionalByResourceGroupF } /** - * List all event subscriptions from the given location under a specific Azure subscription and resource group and - * topic type. + * List all regional event subscriptions under an Azure subscription and resource group for a topic type. + * + *

List all event subscriptions from the given location under a specific Azure subscription and resource group + * and topic type. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param location Name of the location. @@ -3537,8 +3716,10 @@ private PagedFlux listRegionalByResourceGroupForTopicTyp } /** - * List all event subscriptions from the given location under a specific Azure subscription and resource group and - * topic type. + * List all regional event subscriptions under an Azure subscription and resource group for a topic type. + * + *

List all event subscriptions from the given location under a specific Azure subscription and resource group + * and topic type. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param location Name of the location. @@ -3561,8 +3742,10 @@ private PagedFlux listRegionalByResourceGroupForTopicTyp } /** - * List all event subscriptions from the given location under a specific Azure subscription and resource group and - * topic type. + * List all regional event subscriptions under an Azure subscription and resource group for a topic type. + * + *

List all event subscriptions from the given location under a specific Azure subscription and resource group + * and topic type. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param location Name of the location. @@ -3592,8 +3775,10 @@ private PagedFlux listRegionalByResourceGroupForTopicTyp } /** - * List all event subscriptions from the given location under a specific Azure subscription and resource group and - * topic type. + * List all regional event subscriptions under an Azure subscription and resource group for a topic type. + * + *

List all event subscriptions from the given location under a specific Azure subscription and resource group + * and topic type. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param location Name of the location. @@ -3613,8 +3798,10 @@ public PagedIterable listRegionalByResourceGroupForTopic } /** - * List all event subscriptions from the given location under a specific Azure subscription and resource group and - * topic type. + * List all regional event subscriptions under an Azure subscription and resource group for a topic type. + * + *

List all event subscriptions from the given location under a specific Azure subscription and resource group + * and topic type. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param location Name of the location. @@ -3642,7 +3829,9 @@ public PagedIterable listRegionalByResourceGroupForTopic } /** - * List all event subscriptions that have been created for a specific resource. + * List all event subscriptions. + * + *

List all event subscriptions that have been created for a specific resource. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param providerNamespace Namespace of the provider of the topic. @@ -3727,7 +3916,9 @@ private Mono> listByResourceSinglePageAsyn } /** - * List all event subscriptions that have been created for a specific resource. + * List all event subscriptions. + * + *

List all event subscriptions that have been created for a specific resource. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param providerNamespace Namespace of the provider of the topic. @@ -3811,7 +4002,9 @@ private Mono> listByResourceSinglePageAsyn } /** - * List all event subscriptions that have been created for a specific resource. + * List all event subscriptions. + * + *

List all event subscriptions that have been created for a specific resource. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param providerNamespace Namespace of the provider of the topic. @@ -3846,7 +4039,9 @@ private PagedFlux listByResourceAsync( } /** - * List all event subscriptions that have been created for a specific resource. + * List all event subscriptions. + * + *

List all event subscriptions that have been created for a specific resource. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param providerNamespace Namespace of the provider of the topic. @@ -3870,7 +4065,9 @@ private PagedFlux listByResourceAsync( } /** - * List all event subscriptions that have been created for a specific resource. + * List all event subscriptions. + * + *

List all event subscriptions that have been created for a specific resource. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param providerNamespace Namespace of the provider of the topic. @@ -3907,7 +4104,9 @@ private PagedFlux listByResourceAsync( } /** - * List all event subscriptions that have been created for a specific resource. + * List all event subscriptions. + * + *

List all event subscriptions that have been created for a specific resource. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param providerNamespace Namespace of the provider of the topic. @@ -3928,7 +4127,9 @@ public PagedIterable listByResource( } /** - * List all event subscriptions that have been created for a specific resource. + * List all event subscriptions. + * + *

List all event subscriptions that have been created for a specific resource. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param providerNamespace Namespace of the provider of the topic. @@ -3963,7 +4164,9 @@ public PagedIterable listByResource( } /** - * List all event subscriptions that have been created for a specific domain topic. + * List all event subscriptions for a specific domain topic. + * + *

List all event subscriptions that have been created for a specific domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -4036,7 +4239,9 @@ private Mono> listByDomainTopicSinglePageA } /** - * List all event subscriptions that have been created for a specific domain topic. + * List all event subscriptions for a specific domain topic. + * + *

List all event subscriptions that have been created for a specific domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -4107,7 +4312,9 @@ private Mono> listByDomainTopicSinglePageA } /** - * List all event subscriptions that have been created for a specific domain topic. + * List all event subscriptions for a specific domain topic. + * + *

List all event subscriptions that have been created for a specific domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -4134,7 +4341,9 @@ private PagedFlux listByDomainTopicAsync( } /** - * List all event subscriptions that have been created for a specific domain topic. + * List all event subscriptions for a specific domain topic. + * + *

List all event subscriptions that have been created for a specific domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -4155,7 +4364,9 @@ private PagedFlux listByDomainTopicAsync( } /** - * List all event subscriptions that have been created for a specific domain topic. + * List all event subscriptions for a specific domain topic. + * + *

List all event subscriptions that have been created for a specific domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -4183,7 +4394,9 @@ private PagedFlux listByDomainTopicAsync( } /** - * List all event subscriptions that have been created for a specific domain topic. + * List all event subscriptions for a specific domain topic. + * + *

List all event subscriptions that have been created for a specific domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -4202,7 +4415,9 @@ public PagedIterable listByDomainTopic( } /** - * List all event subscriptions that have been created for a specific domain topic. + * List all event subscriptions for a specific domain topic. + * + *

List all event subscriptions that have been created for a specific domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -4229,7 +4444,9 @@ public PagedIterable listByDomainTopic( } /** - * Get all delivery attributes for an event subscription. + * Get delivery attributes for an event subscription. + * + *

Get all delivery attributes for an event subscription. * * @param scope The scope of the event subscription. The scope can be a subscription, or a resource group, or a top * level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -4278,7 +4495,9 @@ private Mono> getDeliveryAttributesWi } /** - * Get all delivery attributes for an event subscription. + * Get delivery attributes for an event subscription. + * + *

Get all delivery attributes for an event subscription. * * @param scope The scope of the event subscription. The scope can be a subscription, or a resource group, or a top * level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -4320,7 +4539,9 @@ private Mono> getDeliveryAttributesWi } /** - * Get all delivery attributes for an event subscription. + * Get delivery attributes for an event subscription. + * + *

Get all delivery attributes for an event subscription. * * @param scope The scope of the event subscription. The scope can be a subscription, or a resource group, or a top * level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -4344,7 +4565,9 @@ private Mono getDeliveryAttributesAsync( } /** - * Get all delivery attributes for an event subscription. + * Get delivery attributes for an event subscription. + * + *

Get all delivery attributes for an event subscription. * * @param scope The scope of the event subscription. The scope can be a subscription, or a resource group, or a top * level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -4355,18 +4578,22 @@ private Mono getDeliveryAttributesAsync( * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' * for an EventGrid topic. * @param eventSubscriptionName Name of the event subscription. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all delivery attributes for an event subscription. + * @return all delivery attributes for an event subscription along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DeliveryAttributeListResultInner getDeliveryAttributes(String scope, String eventSubscriptionName) { - return getDeliveryAttributesAsync(scope, eventSubscriptionName).block(); + public Response getDeliveryAttributesWithResponse( + String scope, String eventSubscriptionName, Context context) { + return getDeliveryAttributesWithResponseAsync(scope, eventSubscriptionName, context).block(); } /** - * Get all delivery attributes for an event subscription. + * Get delivery attributes for an event subscription. + * + *

Get all delivery attributes for an event subscription. * * @param scope The scope of the event subscription. The scope can be a subscription, or a resource group, or a top * level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -4377,22 +4604,21 @@ public DeliveryAttributeListResultInner getDeliveryAttributes(String scope, Stri * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' * for an EventGrid topic. * @param eventSubscriptionName Name of the event subscription. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all delivery attributes for an event subscription along with {@link Response}. + * @return all delivery attributes for an event subscription. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getDeliveryAttributesWithResponse( - String scope, String eventSubscriptionName, Context context) { - return getDeliveryAttributesWithResponseAsync(scope, eventSubscriptionName, context).block(); + public DeliveryAttributeListResultInner getDeliveryAttributes(String scope, String eventSubscriptionName) { + return getDeliveryAttributesWithResponse(scope, eventSubscriptionName, Context.NONE).getValue(); } /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -4429,7 +4655,8 @@ private Mono> listGlobalBySubscriptionNext /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -4467,7 +4694,8 @@ private Mono> listGlobalBySubscriptionNext /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -4507,7 +4735,8 @@ private Mono> listGlobalBySubscriptionForT /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -4545,7 +4774,8 @@ private Mono> listGlobalBySubscriptionForT /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -4582,7 +4812,8 @@ private Mono> listGlobalByResourceGroupNex /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -4620,7 +4851,8 @@ private Mono> listGlobalByResourceGroupNex /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -4661,7 +4893,8 @@ private Mono> listGlobalByResourceGroupFor /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -4699,7 +4932,8 @@ private Mono> listGlobalByResourceGroupFor /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -4736,7 +4970,8 @@ private Mono> listRegionalBySubscriptionNe /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -4774,7 +5009,8 @@ private Mono> listRegionalBySubscriptionNe /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -4813,7 +5049,8 @@ private Mono> listRegionalByResourceGroupN /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -4851,7 +5088,8 @@ private Mono> listRegionalByResourceGroupN /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -4892,7 +5130,8 @@ private Mono> listRegionalBySubscriptionFo /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -4930,7 +5169,8 @@ private Mono> listRegionalBySubscriptionFo /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -4971,7 +5211,8 @@ private Mono> listRegionalByResourceGroupF /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -5009,7 +5250,8 @@ private Mono> listRegionalByResourceGroupF /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -5045,7 +5287,8 @@ private Mono> listByResourceNextSinglePage /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -5083,7 +5326,8 @@ private Mono> listByResourceNextSinglePage /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -5119,7 +5363,8 @@ private Mono> listByDomainTopicNextSingleP /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/EventSubscriptionsImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/EventSubscriptionsImpl.java index 9a52b2e25867..0a2942680519 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/EventSubscriptionsImpl.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/EventSubscriptionsImpl.java @@ -32,15 +32,6 @@ public EventSubscriptionsImpl( this.serviceManager = serviceManager; } - public EventSubscription get(String scope, String eventSubscriptionName) { - EventSubscriptionInner inner = this.serviceClient().get(scope, eventSubscriptionName); - if (inner != null) { - return new EventSubscriptionImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse(String scope, String eventSubscriptionName, Context context) { Response inner = this.serviceClient().getWithResponse(scope, eventSubscriptionName, context); @@ -55,6 +46,15 @@ public Response getWithResponse(String scope, String eventSub } } + public EventSubscription get(String scope, String eventSubscriptionName) { + EventSubscriptionInner inner = this.serviceClient().get(scope, eventSubscriptionName); + if (inner != null) { + return new EventSubscriptionImpl(inner, this.manager()); + } else { + return null; + } + } + public EventSubscription createOrUpdate( String scope, String eventSubscriptionName, EventSubscriptionInner eventSubscriptionInfo) { EventSubscriptionInner inner = @@ -112,15 +112,6 @@ public EventSubscription update( } } - public EventSubscriptionFullUrl getFullUrl(String scope, String eventSubscriptionName) { - EventSubscriptionFullUrlInner inner = this.serviceClient().getFullUrl(scope, eventSubscriptionName); - if (inner != null) { - return new EventSubscriptionFullUrlImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getFullUrlWithResponse( String scope, String eventSubscriptionName, Context context) { Response inner = @@ -136,6 +127,15 @@ public Response getFullUrlWithResponse( } } + public EventSubscriptionFullUrl getFullUrl(String scope, String eventSubscriptionName) { + EventSubscriptionFullUrlInner inner = this.serviceClient().getFullUrl(scope, eventSubscriptionName); + if (inner != null) { + return new EventSubscriptionFullUrlImpl(inner, this.manager()); + } else { + return null; + } + } + public PagedIterable list() { PagedIterable inner = this.serviceClient().list(); return Utils.mapPage(inner, inner1 -> new EventSubscriptionImpl(inner1, this.manager())); @@ -280,16 +280,6 @@ public PagedIterable listByDomainTopic( return Utils.mapPage(inner, inner1 -> new EventSubscriptionImpl(inner1, this.manager())); } - public DeliveryAttributeListResult getDeliveryAttributes(String scope, String eventSubscriptionName) { - DeliveryAttributeListResultInner inner = - this.serviceClient().getDeliveryAttributes(scope, eventSubscriptionName); - if (inner != null) { - return new DeliveryAttributeListResultImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getDeliveryAttributesWithResponse( String scope, String eventSubscriptionName, Context context) { Response inner = @@ -305,6 +295,16 @@ public Response getDeliveryAttributesWithResponse( } } + public DeliveryAttributeListResult getDeliveryAttributes(String scope, String eventSubscriptionName) { + DeliveryAttributeListResultInner inner = + this.serviceClient().getDeliveryAttributes(scope, eventSubscriptionName); + if (inner != null) { + return new DeliveryAttributeListResultImpl(inner, this.manager()); + } else { + return null; + } + } + private EventSubscriptionsClient serviceClient() { return this.innerClient; } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/ExtensionTopicsClientImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/ExtensionTopicsClientImpl.java index c1877c9cc5ea..dcbcbad042fb 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/ExtensionTopicsClientImpl.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/ExtensionTopicsClientImpl.java @@ -50,7 +50,7 @@ public final class ExtensionTopicsClientImpl implements ExtensionTopicsClient { */ @Host("{$host}") @ServiceInterface(name = "EventGridManagementC") - private interface ExtensionTopicsService { + public interface ExtensionTopicsService { @Headers({"Content-Type: application/json"}) @Get("/{scope}/providers/Microsoft.EventGrid/extensionTopics/default") @ExpectedResponses({200}) @@ -64,7 +64,9 @@ Mono> get( } /** - * Get the properties of an extension topic. + * Get properties of an extension topic. + * + *

Get the properties of an extension topic. * * @param scope The identifier of the resource to which extension topic is queried. The scope can be a subscription, * or a resource group, or a top level resource belonging to a resource provider namespace. For example, use @@ -97,7 +99,9 @@ private Mono> getWithResponseAsync(String scope) { } /** - * Get the properties of an extension topic. + * Get properties of an extension topic. + * + *

Get the properties of an extension topic. * * @param scope The identifier of the resource to which extension topic is queried. The scope can be a subscription, * or a resource group, or a top level resource belonging to a resource provider namespace. For example, use @@ -129,7 +133,9 @@ private Mono> getWithResponseAsync(String scope, C } /** - * Get the properties of an extension topic. + * Get properties of an extension topic. + * + *

Get the properties of an extension topic. * * @param scope The identifier of the resource to which extension topic is queried. The scope can be a subscription, * or a resource group, or a top level resource belonging to a resource provider namespace. For example, use @@ -148,7 +154,9 @@ private Mono getAsync(String scope) { } /** - * Get the properties of an extension topic. + * Get properties of an extension topic. + * + *

Get the properties of an extension topic. * * @param scope The identifier of the resource to which extension topic is queried. The scope can be a subscription, * or a resource group, or a top level resource belonging to a resource provider namespace. For example, use @@ -156,18 +164,21 @@ private Mono getAsync(String scope) { * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' * for Azure resource. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the properties of an extension topic. + * @return the properties of an extension topic along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ExtensionTopicInner get(String scope) { - return getAsync(scope).block(); + public Response getWithResponse(String scope, Context context) { + return getWithResponseAsync(scope, context).block(); } /** - * Get the properties of an extension topic. + * Get properties of an extension topic. + * + *

Get the properties of an extension topic. * * @param scope The identifier of the resource to which extension topic is queried. The scope can be a subscription, * or a resource group, or a top level resource belonging to a resource provider namespace. For example, use @@ -175,14 +186,13 @@ public ExtensionTopicInner get(String scope) { * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' * for Azure resource. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the properties of an extension topic along with {@link Response}. + * @return the properties of an extension topic. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String scope, Context context) { - return getWithResponseAsync(scope, context).block(); + public ExtensionTopicInner get(String scope) { + return getWithResponse(scope, Context.NONE).getValue(); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/ExtensionTopicsImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/ExtensionTopicsImpl.java index b702f31be8c3..9c9d1b068df0 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/ExtensionTopicsImpl.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/ExtensionTopicsImpl.java @@ -26,15 +26,6 @@ public ExtensionTopicsImpl( this.serviceManager = serviceManager; } - public ExtensionTopic get(String scope) { - ExtensionTopicInner inner = this.serviceClient().get(scope); - if (inner != null) { - return new ExtensionTopicImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse(String scope, Context context) { Response inner = this.serviceClient().getWithResponse(scope, context); if (inner != null) { @@ -48,6 +39,15 @@ public Response getWithResponse(String scope, Context context) { } } + public ExtensionTopic get(String scope) { + ExtensionTopicInner inner = this.serviceClient().get(scope); + if (inner != null) { + return new ExtensionTopicImpl(inner, this.manager()); + } else { + return null; + } + } + private ExtensionTopicsClient serviceClient() { return this.innerClient; } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/OperationsClientImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/OperationsClientImpl.java index b68f492c567b..4fe75500c53e 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/OperationsClientImpl.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/OperationsClientImpl.java @@ -54,7 +54,7 @@ public final class OperationsClientImpl implements OperationsClient { */ @Host("{$host}") @ServiceInterface(name = "EventGridManagementC") - private interface OperationsService { + public interface OperationsService { @Headers({"Content-Type: application/json"}) @Get("/providers/Microsoft.EventGrid/operations") @ExpectedResponses({200}) @@ -67,7 +67,9 @@ Mono> list( } /** - * List the available operations supported by the Microsoft.EventGrid resource provider. + * List available operations. + * + *

List the available operations supported by the Microsoft.EventGrid resource provider. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -94,7 +96,9 @@ private Mono> listSinglePageAsync() { } /** - * List the available operations supported by the Microsoft.EventGrid resource provider. + * List available operations. + * + *

List the available operations supported by the Microsoft.EventGrid resource provider. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -122,7 +126,9 @@ private Mono> listSinglePageAsync(Context context) } /** - * List the available operations supported by the Microsoft.EventGrid resource provider. + * List available operations. + * + *

List the available operations supported by the Microsoft.EventGrid resource provider. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -134,7 +140,9 @@ private PagedFlux listAsync() { } /** - * List the available operations supported by the Microsoft.EventGrid resource provider. + * List available operations. + * + *

List the available operations supported by the Microsoft.EventGrid resource provider. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -148,7 +156,9 @@ private PagedFlux listAsync(Context context) { } /** - * List the available operations supported by the Microsoft.EventGrid resource provider. + * List available operations. + * + *

List the available operations supported by the Microsoft.EventGrid resource provider. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -160,7 +170,9 @@ public PagedIterable list() { } /** - * List the available operations supported by the Microsoft.EventGrid resource provider. + * List available operations. + * + *

List the available operations supported by the Microsoft.EventGrid resource provider. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerConfigurationsClientImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerConfigurationsClientImpl.java index e4de198e69fd..a1db4efb5354 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerConfigurationsClientImpl.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerConfigurationsClientImpl.java @@ -68,11 +68,10 @@ public final class PartnerConfigurationsClientImpl implements PartnerConfigurati */ @Host("{$host}") @ServiceInterface(name = "EventGridManagementC") - private interface PartnerConfigurationsService { + public interface PartnerConfigurationsService { @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/partnerConfigurations/default") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerConfigurations/default") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> getByResourceGroup( @@ -85,8 +84,7 @@ Mono> getByResourceGroup( @Headers({"Content-Type: application/json"}) @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/partnerConfigurations/default") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerConfigurations/default") @ExpectedResponses({200, 201}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> createOrUpdate( @@ -100,8 +98,7 @@ Mono>> createOrUpdate( @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/partnerConfigurations/default") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerConfigurations/default") @ExpectedResponses({200, 202, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> delete( @@ -113,8 +110,7 @@ Mono>> delete( @Headers({"Content-Type: application/json"}) @Patch( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/partnerConfigurations/default") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerConfigurations/default") @ExpectedResponses({200, 201}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> update( @@ -128,8 +124,7 @@ Mono>> update( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/partnerConfigurations") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerConfigurations") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByResourceGroup( @@ -155,8 +150,7 @@ Mono> list( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/partnerConfigurations/default/authorizePartner") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerConfigurations/default/authorizePartner") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> authorizePartner( @@ -170,8 +164,7 @@ Mono> authorizePartner( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/partnerConfigurations/default/unauthorizePartner") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerConfigurations/default/unauthorizePartner") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> unauthorizePartner( @@ -195,7 +188,9 @@ Mono> listBySubscriptionNext( } /** - * Get properties of a partner configuration. + * Get a partner configuration. + * + *

Get properties of a partner configuration. * * @param resourceGroupName The name of the resource group within the user's subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -238,7 +233,9 @@ private Mono> getByResourceGroupWithResponse } /** - * Get properties of a partner configuration. + * Get a partner configuration. + * + *

Get properties of a partner configuration. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param context The context to associate with this operation. @@ -280,7 +277,9 @@ private Mono> getByResourceGroupWithResponse } /** - * Get properties of a partner configuration. + * Get a partner configuration. + * + *

Get properties of a partner configuration. * * @param resourceGroupName The name of the resource group within the user's subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -294,37 +293,43 @@ private Mono getByResourceGroupAsync(String resourceG } /** - * Get properties of a partner configuration. + * Get a partner configuration. + * + *

Get properties of a partner configuration. * * @param resourceGroupName The name of the resource group within the user's subscription. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a partner configuration. + * @return properties of a partner configuration along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PartnerConfigurationInner getByResourceGroup(String resourceGroupName) { - return getByResourceGroupAsync(resourceGroupName).block(); + public Response getByResourceGroupWithResponse( + String resourceGroupName, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, context).block(); } /** - * Get properties of a partner configuration. + * Get a partner configuration. + * + *

Get properties of a partner configuration. * * @param resourceGroupName The name of the resource group within the user's subscription. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a partner configuration along with {@link Response}. + * @return properties of a partner configuration. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse( - String resourceGroupName, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, context).block(); + public PartnerConfigurationInner getByResourceGroup(String resourceGroupName) { + return getByResourceGroupWithResponse(resourceGroupName, Context.NONE).getValue(); } /** - * Synchronously creates or updates a partner configuration with the specified parameters. + * Create or update a partner configuration. + * + *

Synchronously creates or updates a partner configuration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerConfigurationInfo Partner configuration information. @@ -376,7 +381,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Synchronously creates or updates a partner configuration with the specified parameters. + * Create or update a partner configuration. + * + *

Synchronously creates or updates a partner configuration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerConfigurationInfo Partner configuration information. @@ -426,7 +433,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Synchronously creates or updates a partner configuration with the specified parameters. + * Create or update a partner configuration. + * + *

Synchronously creates or updates a partner configuration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerConfigurationInfo Partner configuration information. @@ -451,7 +460,9 @@ private PollerFlux, PartnerConfigurationIn } /** - * Synchronously creates or updates a partner configuration with the specified parameters. + * Create or update a partner configuration. + * + *

Synchronously creates or updates a partner configuration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerConfigurationInfo Partner configuration information. @@ -478,7 +489,9 @@ private PollerFlux, PartnerConfigurationIn } /** - * Synchronously creates or updates a partner configuration with the specified parameters. + * Create or update a partner configuration. + * + *

Synchronously creates or updates a partner configuration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerConfigurationInfo Partner configuration information. @@ -490,11 +503,13 @@ private PollerFlux, PartnerConfigurationIn @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, PartnerConfigurationInner> beginCreateOrUpdate( String resourceGroupName, PartnerConfigurationInner partnerConfigurationInfo) { - return beginCreateOrUpdateAsync(resourceGroupName, partnerConfigurationInfo).getSyncPoller(); + return this.beginCreateOrUpdateAsync(resourceGroupName, partnerConfigurationInfo).getSyncPoller(); } /** - * Synchronously creates or updates a partner configuration with the specified parameters. + * Create or update a partner configuration. + * + *

Synchronously creates or updates a partner configuration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerConfigurationInfo Partner configuration information. @@ -507,11 +522,13 @@ public SyncPoller, PartnerConfigurationInn @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, PartnerConfigurationInner> beginCreateOrUpdate( String resourceGroupName, PartnerConfigurationInner partnerConfigurationInfo, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, partnerConfigurationInfo, context).getSyncPoller(); + return this.beginCreateOrUpdateAsync(resourceGroupName, partnerConfigurationInfo, context).getSyncPoller(); } /** - * Synchronously creates or updates a partner configuration with the specified parameters. + * Create or update a partner configuration. + * + *

Synchronously creates or updates a partner configuration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerConfigurationInfo Partner configuration information. @@ -529,7 +546,9 @@ private Mono createOrUpdateAsync( } /** - * Synchronously creates or updates a partner configuration with the specified parameters. + * Create or update a partner configuration. + * + *

Synchronously creates or updates a partner configuration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerConfigurationInfo Partner configuration information. @@ -548,7 +567,9 @@ private Mono createOrUpdateAsync( } /** - * Synchronously creates or updates a partner configuration with the specified parameters. + * Create or update a partner configuration. + * + *

Synchronously creates or updates a partner configuration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerConfigurationInfo Partner configuration information. @@ -564,7 +585,9 @@ public PartnerConfigurationInner createOrUpdate( } /** - * Synchronously creates or updates a partner configuration with the specified parameters. + * Create or update a partner configuration. + * + *

Synchronously creates or updates a partner configuration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerConfigurationInfo Partner configuration information. @@ -581,7 +604,9 @@ public PartnerConfigurationInner createOrUpdate( } /** - * Delete existing partner configuration. + * Delete a partner configuration. + * + *

Delete existing partner configuration. * * @param resourceGroupName The name of the resource group within the user's subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -621,7 +646,9 @@ private Mono>> deleteWithResponseAsync(String resource } /** - * Delete existing partner configuration. + * Delete a partner configuration. + * + *

Delete existing partner configuration. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param context The context to associate with this operation. @@ -659,7 +686,9 @@ private Mono>> deleteWithResponseAsync(String resource } /** - * Delete existing partner configuration. + * Delete a partner configuration. + * + *

Delete existing partner configuration. * * @param resourceGroupName The name of the resource group within the user's subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -677,7 +706,9 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup } /** - * Delete existing partner configuration. + * Delete a partner configuration. + * + *

Delete existing partner configuration. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param context The context to associate with this operation. @@ -696,7 +727,9 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup } /** - * Delete existing partner configuration. + * Delete a partner configuration. + * + *

Delete existing partner configuration. * * @param resourceGroupName The name of the resource group within the user's subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -706,11 +739,13 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String resourceGroupName) { - return beginDeleteAsync(resourceGroupName).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName).getSyncPoller(); } /** - * Delete existing partner configuration. + * Delete a partner configuration. + * + *

Delete existing partner configuration. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param context The context to associate with this operation. @@ -721,11 +756,13 @@ public SyncPoller, Void> beginDelete(String resourceGroupName) */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String resourceGroupName, Context context) { - return beginDeleteAsync(resourceGroupName, context).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, context).getSyncPoller(); } /** - * Delete existing partner configuration. + * Delete a partner configuration. + * + *

Delete existing partner configuration. * * @param resourceGroupName The name of the resource group within the user's subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -739,7 +776,9 @@ private Mono deleteAsync(String resourceGroupName) { } /** - * Delete existing partner configuration. + * Delete a partner configuration. + * + *

Delete existing partner configuration. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param context The context to associate with this operation. @@ -754,7 +793,9 @@ private Mono deleteAsync(String resourceGroupName, Context context) { } /** - * Delete existing partner configuration. + * Delete a partner configuration. + * + *

Delete existing partner configuration. * * @param resourceGroupName The name of the resource group within the user's subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -767,7 +808,9 @@ public void delete(String resourceGroupName) { } /** - * Delete existing partner configuration. + * Delete a partner configuration. + * + *

Delete existing partner configuration. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param context The context to associate with this operation. @@ -781,7 +824,9 @@ public void delete(String resourceGroupName, Context context) { } /** - * Synchronously updates a partner configuration with the specified parameters. + * Update a partner configuration. + * + *

Synchronously updates a partner configuration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerConfigurationUpdateParameters Partner configuration update information. @@ -834,7 +879,9 @@ private Mono>> updateWithResponseAsync( } /** - * Synchronously updates a partner configuration with the specified parameters. + * Update a partner configuration. + * + *

Synchronously updates a partner configuration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerConfigurationUpdateParameters Partner configuration update information. @@ -887,7 +934,9 @@ private Mono>> updateWithResponseAsync( } /** - * Synchronously updates a partner configuration with the specified parameters. + * Update a partner configuration. + * + *

Synchronously updates a partner configuration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerConfigurationUpdateParameters Partner configuration update information. @@ -912,7 +961,9 @@ private PollerFlux, PartnerConfigurationIn } /** - * Synchronously updates a partner configuration with the specified parameters. + * Update a partner configuration. + * + *

Synchronously updates a partner configuration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerConfigurationUpdateParameters Partner configuration update information. @@ -941,7 +992,9 @@ private PollerFlux, PartnerConfigurationIn } /** - * Synchronously updates a partner configuration with the specified parameters. + * Update a partner configuration. + * + *

Synchronously updates a partner configuration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerConfigurationUpdateParameters Partner configuration update information. @@ -953,11 +1006,13 @@ private PollerFlux, PartnerConfigurationIn @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, PartnerConfigurationInner> beginUpdate( String resourceGroupName, PartnerConfigurationUpdateParameters partnerConfigurationUpdateParameters) { - return beginUpdateAsync(resourceGroupName, partnerConfigurationUpdateParameters).getSyncPoller(); + return this.beginUpdateAsync(resourceGroupName, partnerConfigurationUpdateParameters).getSyncPoller(); } /** - * Synchronously updates a partner configuration with the specified parameters. + * Update a partner configuration. + * + *

Synchronously updates a partner configuration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerConfigurationUpdateParameters Partner configuration update information. @@ -972,11 +1027,13 @@ public SyncPoller, PartnerConfigurationInn String resourceGroupName, PartnerConfigurationUpdateParameters partnerConfigurationUpdateParameters, Context context) { - return beginUpdateAsync(resourceGroupName, partnerConfigurationUpdateParameters, context).getSyncPoller(); + return this.beginUpdateAsync(resourceGroupName, partnerConfigurationUpdateParameters, context).getSyncPoller(); } /** - * Synchronously updates a partner configuration with the specified parameters. + * Update a partner configuration. + * + *

Synchronously updates a partner configuration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerConfigurationUpdateParameters Partner configuration update information. @@ -994,7 +1051,9 @@ private Mono updateAsync( } /** - * Synchronously updates a partner configuration with the specified parameters. + * Update a partner configuration. + * + *

Synchronously updates a partner configuration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerConfigurationUpdateParameters Partner configuration update information. @@ -1015,7 +1074,9 @@ private Mono updateAsync( } /** - * Synchronously updates a partner configuration with the specified parameters. + * Update a partner configuration. + * + *

Synchronously updates a partner configuration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerConfigurationUpdateParameters Partner configuration update information. @@ -1031,7 +1092,9 @@ public PartnerConfigurationInner update( } /** - * Synchronously updates a partner configuration with the specified parameters. + * Update a partner configuration. + * + *

Synchronously updates a partner configuration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerConfigurationUpdateParameters Partner configuration update information. @@ -1050,7 +1113,9 @@ public PartnerConfigurationInner update( } /** - * List all the partner configurations under a resource group. + * List partner configurations under a resource group. + * + *

List all the partner configurations under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1098,7 +1163,9 @@ private Mono> listByResourceGroupSingle } /** - * List all the partner configurations under a resource group. + * List partner configurations under a resource group. + * + *

List all the partner configurations under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param context The context to associate with this operation. @@ -1144,7 +1211,9 @@ private Mono> listByResourceGroupSingle } /** - * List all the partner configurations under a resource group. + * List partner configurations under a resource group. + * + *

List all the partner configurations under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1158,7 +1227,9 @@ private PagedFlux listByResourceGroupAsync(String res } /** - * List all the partner configurations under a resource group. + * List partner configurations under a resource group. + * + *

List all the partner configurations under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param context The context to associate with this operation. @@ -1173,7 +1244,9 @@ private PagedFlux listByResourceGroupAsync(String res } /** - * List all the partner configurations under a resource group. + * List partner configurations under a resource group. + * + *

List all the partner configurations under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1187,7 +1260,9 @@ public PagedIterable listByResourceGroup(String resou } /** - * List all the partner configurations under a resource group. + * List partner configurations under a resource group. + * + *

List all the partner configurations under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param context The context to associate with this operation. @@ -1202,7 +1277,9 @@ public PagedIterable listByResourceGroup(String resou } /** - * List all the partner configurations under an Azure subscription. + * List partner configurations under an Azure subscription. + * + *

List all the partner configurations under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -1258,7 +1335,9 @@ private Mono> listSinglePageAsync(Strin } /** - * List all the partner configurations under an Azure subscription. + * List partner configurations under an Azure subscription. + * + *

List all the partner configurations under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -1313,7 +1392,9 @@ private Mono> listSinglePageAsync( } /** - * List all the partner configurations under an Azure subscription. + * List partner configurations under an Azure subscription. + * + *

List all the partner configurations under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -1335,7 +1416,9 @@ private PagedFlux listAsync(String filter, Integer to } /** - * List all the partner configurations under an Azure subscription. + * List partner configurations under an Azure subscription. + * + *

List all the partner configurations under an Azure subscription. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1350,7 +1433,9 @@ private PagedFlux listAsync() { } /** - * List all the partner configurations under an Azure subscription. + * List partner configurations under an Azure subscription. + * + *

List all the partner configurations under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -1374,7 +1459,9 @@ private PagedFlux listAsync(String filter, Integer to } /** - * List all the partner configurations under an Azure subscription. + * List partner configurations under an Azure subscription. + * + *

List all the partner configurations under an Azure subscription. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1388,7 +1475,9 @@ public PagedIterable list() { } /** - * List all the partner configurations under an Azure subscription. + * List partner configurations under an Azure subscription. + * + *

List all the partner configurations under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -1410,7 +1499,9 @@ public PagedIterable list(String filter, Integer top, } /** - * Authorize a single partner either by partner registration immutable Id or by partner name. + * Authorize a partner. + * + *

Authorize a single partner either by partner registration immutable Id or by partner name. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerInfo The information of the partner to be authorized. @@ -1460,7 +1551,9 @@ private Mono> authorizePartnerWithResponseAs } /** - * Authorize a single partner either by partner registration immutable Id or by partner name. + * Authorize a partner. + * + *

Authorize a single partner either by partner registration immutable Id or by partner name. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerInfo The information of the partner to be authorized. @@ -1508,7 +1601,9 @@ private Mono> authorizePartnerWithResponseAs } /** - * Authorize a single partner either by partner registration immutable Id or by partner name. + * Authorize a partner. + * + *

Authorize a single partner either by partner registration immutable Id or by partner name. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerInfo The information of the partner to be authorized. @@ -1524,39 +1619,45 @@ private Mono authorizePartnerAsync(String resourceGro } /** - * Authorize a single partner either by partner registration immutable Id or by partner name. + * Authorize a partner. + * + *

Authorize a single partner either by partner registration immutable Id or by partner name. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerInfo The information of the partner to be authorized. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return partner configuration information. + * @return partner configuration information along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PartnerConfigurationInner authorizePartner(String resourceGroupName, Partner partnerInfo) { - return authorizePartnerAsync(resourceGroupName, partnerInfo).block(); + public Response authorizePartnerWithResponse( + String resourceGroupName, Partner partnerInfo, Context context) { + return authorizePartnerWithResponseAsync(resourceGroupName, partnerInfo, context).block(); } /** - * Authorize a single partner either by partner registration immutable Id or by partner name. + * Authorize a partner. + * + *

Authorize a single partner either by partner registration immutable Id or by partner name. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerInfo The information of the partner to be authorized. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return partner configuration information along with {@link Response}. + * @return partner configuration information. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response authorizePartnerWithResponse( - String resourceGroupName, Partner partnerInfo, Context context) { - return authorizePartnerWithResponseAsync(resourceGroupName, partnerInfo, context).block(); + public PartnerConfigurationInner authorizePartner(String resourceGroupName, Partner partnerInfo) { + return authorizePartnerWithResponse(resourceGroupName, partnerInfo, Context.NONE).getValue(); } /** - * Unauthorize a single partner either by partner registration immutable Id or by partner name. + * Unauthorize a partner. + * + *

Unauthorize a single partner either by partner registration immutable Id or by partner name. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerInfo The information of the partner to be unauthorized. @@ -1606,7 +1707,9 @@ private Mono> unauthorizePartnerWithResponse } /** - * Unauthorize a single partner either by partner registration immutable Id or by partner name. + * Unauthorize a partner. + * + *

Unauthorize a single partner either by partner registration immutable Id or by partner name. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerInfo The information of the partner to be unauthorized. @@ -1654,7 +1757,9 @@ private Mono> unauthorizePartnerWithResponse } /** - * Unauthorize a single partner either by partner registration immutable Id or by partner name. + * Unauthorize a partner. + * + *

Unauthorize a single partner either by partner registration immutable Id or by partner name. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerInfo The information of the partner to be unauthorized. @@ -1670,41 +1775,46 @@ private Mono unauthorizePartnerAsync(String resourceG } /** - * Unauthorize a single partner either by partner registration immutable Id or by partner name. + * Unauthorize a partner. + * + *

Unauthorize a single partner either by partner registration immutable Id or by partner name. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerInfo The information of the partner to be unauthorized. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return partner configuration information. + * @return partner configuration information along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PartnerConfigurationInner unauthorizePartner(String resourceGroupName, Partner partnerInfo) { - return unauthorizePartnerAsync(resourceGroupName, partnerInfo).block(); + public Response unauthorizePartnerWithResponse( + String resourceGroupName, Partner partnerInfo, Context context) { + return unauthorizePartnerWithResponseAsync(resourceGroupName, partnerInfo, context).block(); } /** - * Unauthorize a single partner either by partner registration immutable Id or by partner name. + * Unauthorize a partner. + * + *

Unauthorize a single partner either by partner registration immutable Id or by partner name. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerInfo The information of the partner to be unauthorized. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return partner configuration information along with {@link Response}. + * @return partner configuration information. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response unauthorizePartnerWithResponse( - String resourceGroupName, Partner partnerInfo, Context context) { - return unauthorizePartnerWithResponseAsync(resourceGroupName, partnerInfo, context).block(); + public PartnerConfigurationInner unauthorizePartner(String resourceGroupName, Partner partnerInfo) { + return unauthorizePartnerWithResponse(resourceGroupName, partnerInfo, Context.NONE).getValue(); } /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1741,7 +1851,8 @@ private Mono> listBySubscriptionNextSin /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerConfigurationsImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerConfigurationsImpl.java index c07b91121b0c..9b6198315b8c 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerConfigurationsImpl.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerConfigurationsImpl.java @@ -29,15 +29,6 @@ public PartnerConfigurationsImpl( this.serviceManager = serviceManager; } - public PartnerConfiguration getByResourceGroup(String resourceGroupName) { - PartnerConfigurationInner inner = this.serviceClient().getByResourceGroup(resourceGroupName); - if (inner != null) { - return new PartnerConfigurationImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getByResourceGroupWithResponse(String resourceGroupName, Context context) { Response inner = this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, context); @@ -52,6 +43,15 @@ public Response getByResourceGroupWithResponse(String reso } } + public PartnerConfiguration getByResourceGroup(String resourceGroupName) { + PartnerConfigurationInner inner = this.serviceClient().getByResourceGroup(resourceGroupName); + if (inner != null) { + return new PartnerConfigurationImpl(inner, this.manager()); + } else { + return null; + } + } + public PartnerConfiguration createOrUpdate( String resourceGroupName, PartnerConfigurationInner partnerConfigurationInfo) { PartnerConfigurationInner inner = @@ -127,15 +127,6 @@ public PagedIterable list(String filter, Integer top, Cont return Utils.mapPage(inner, inner1 -> new PartnerConfigurationImpl(inner1, this.manager())); } - public PartnerConfiguration authorizePartner(String resourceGroupName, Partner partnerInfo) { - PartnerConfigurationInner inner = this.serviceClient().authorizePartner(resourceGroupName, partnerInfo); - if (inner != null) { - return new PartnerConfigurationImpl(inner, this.manager()); - } else { - return null; - } - } - public Response authorizePartnerWithResponse( String resourceGroupName, Partner partnerInfo, Context context) { Response inner = @@ -151,8 +142,8 @@ public Response authorizePartnerWithResponse( } } - public PartnerConfiguration unauthorizePartner(String resourceGroupName, Partner partnerInfo) { - PartnerConfigurationInner inner = this.serviceClient().unauthorizePartner(resourceGroupName, partnerInfo); + public PartnerConfiguration authorizePartner(String resourceGroupName, Partner partnerInfo) { + PartnerConfigurationInner inner = this.serviceClient().authorizePartner(resourceGroupName, partnerInfo); if (inner != null) { return new PartnerConfigurationImpl(inner, this.manager()); } else { @@ -175,6 +166,15 @@ public Response unauthorizePartnerWithResponse( } } + public PartnerConfiguration unauthorizePartner(String resourceGroupName, Partner partnerInfo) { + PartnerConfigurationInner inner = this.serviceClient().unauthorizePartner(resourceGroupName, partnerInfo); + if (inner != null) { + return new PartnerConfigurationImpl(inner, this.manager()); + } else { + return null; + } + } + private PartnerConfigurationsClient serviceClient() { return this.innerClient; } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerNamespaceImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerNamespaceImpl.java index f5e17fcfa3dd..7e0d314fe3f9 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerNamespaceImpl.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerNamespaceImpl.java @@ -212,20 +212,14 @@ public PartnerNamespace refresh(Context context) { return this; } - public PartnerNamespaceSharedAccessKeys listSharedAccessKeys() { - return serviceManager.partnerNamespaces().listSharedAccessKeys(resourceGroupName, partnerNamespaceName); - } - public Response listSharedAccessKeysWithResponse(Context context) { return serviceManager .partnerNamespaces() .listSharedAccessKeysWithResponse(resourceGroupName, partnerNamespaceName, context); } - public PartnerNamespaceSharedAccessKeys regenerateKey(PartnerNamespaceRegenerateKeyRequest regenerateKeyRequest) { - return serviceManager - .partnerNamespaces() - .regenerateKey(resourceGroupName, partnerNamespaceName, regenerateKeyRequest); + public PartnerNamespaceSharedAccessKeys listSharedAccessKeys() { + return serviceManager.partnerNamespaces().listSharedAccessKeys(resourceGroupName, partnerNamespaceName); } public Response regenerateKeyWithResponse( @@ -235,6 +229,12 @@ public Response regenerateKeyWithResponse( .regenerateKeyWithResponse(resourceGroupName, partnerNamespaceName, regenerateKeyRequest, context); } + public PartnerNamespaceSharedAccessKeys regenerateKey(PartnerNamespaceRegenerateKeyRequest regenerateKeyRequest) { + return serviceManager + .partnerNamespaces() + .regenerateKey(resourceGroupName, partnerNamespaceName, regenerateKeyRequest); + } + public PartnerNamespaceImpl withRegion(Region location) { this.innerModel().withLocation(location.toString()); return this; diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerNamespacesClientImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerNamespacesClientImpl.java index 721536961de8..8f2559f43841 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerNamespacesClientImpl.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerNamespacesClientImpl.java @@ -68,11 +68,10 @@ public final class PartnerNamespacesClientImpl implements PartnerNamespacesClien */ @Host("{$host}") @ServiceInterface(name = "EventGridManagementC") - private interface PartnerNamespacesService { + public interface PartnerNamespacesService { @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/partnerNamespaces/{partnerNamespaceName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> getByResourceGroup( @@ -86,8 +85,7 @@ Mono> getByResourceGroup( @Headers({"Content-Type: application/json"}) @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/partnerNamespaces/{partnerNamespaceName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}") @ExpectedResponses({201}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> createOrUpdate( @@ -102,8 +100,7 @@ Mono>> createOrUpdate( @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/partnerNamespaces/{partnerNamespaceName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}") @ExpectedResponses({200, 202, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> delete( @@ -116,8 +113,7 @@ Mono>> delete( @Headers({"Content-Type: application/json"}) @Patch( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/partnerNamespaces/{partnerNamespaceName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}") @ExpectedResponses({200, 201}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> update( @@ -145,8 +141,7 @@ Mono> list( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/partnerNamespaces") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByResourceGroup( @@ -161,8 +156,7 @@ Mono> listByResourceGroup( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/partnerNamespaces/{partnerNamespaceName}/listKeys") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}/listKeys") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listSharedAccessKeys( @@ -176,8 +170,7 @@ Mono> listSharedAccessKeys( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/partnerNamespaces/{partnerNamespaceName}/regenerateKey") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}/regenerateKey") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> regenerateKey( @@ -212,7 +205,9 @@ Mono> listByResourceGroupNext( } /** - * Get properties of a partner namespace. + * Get a partner namespace. + * + *

Get properties of a partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -261,7 +256,9 @@ private Mono> getByResourceGroupWithResponseAsyn } /** - * Get properties of a partner namespace. + * Get a partner namespace. + * + *

Get properties of a partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -308,7 +305,9 @@ private Mono> getByResourceGroupWithResponseAsyn } /** - * Get properties of a partner namespace. + * Get a partner namespace. + * + *

Get properties of a partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -324,39 +323,45 @@ private Mono getByResourceGroupAsync(String resourceGroup } /** - * Get properties of a partner namespace. + * Get a partner namespace. + * + *

Get properties of a partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a partner namespace. + * @return properties of a partner namespace along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PartnerNamespaceInner getByResourceGroup(String resourceGroupName, String partnerNamespaceName) { - return getByResourceGroupAsync(resourceGroupName, partnerNamespaceName).block(); + public Response getByResourceGroupWithResponse( + String resourceGroupName, String partnerNamespaceName, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, partnerNamespaceName, context).block(); } /** - * Get properties of a partner namespace. + * Get a partner namespace. + * + *

Get properties of a partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a partner namespace along with {@link Response}. + * @return properties of a partner namespace. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse( - String resourceGroupName, String partnerNamespaceName, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, partnerNamespaceName, context).block(); + public PartnerNamespaceInner getByResourceGroup(String resourceGroupName, String partnerNamespaceName) { + return getByResourceGroupWithResponse(resourceGroupName, partnerNamespaceName, Context.NONE).getValue(); } /** - * Asynchronously creates a new partner namespace with the specified parameters. + * Create a partner namespace. + * + *

Asynchronously creates a new partner namespace with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -413,7 +418,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Asynchronously creates a new partner namespace with the specified parameters. + * Create a partner namespace. + * + *

Asynchronously creates a new partner namespace with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -471,7 +478,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Asynchronously creates a new partner namespace with the specified parameters. + * Create a partner namespace. + * + *

Asynchronously creates a new partner namespace with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -497,7 +506,9 @@ private PollerFlux, PartnerNamespaceInner> beg } /** - * Asynchronously creates a new partner namespace with the specified parameters. + * Create a partner namespace. + * + *

Asynchronously creates a new partner namespace with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -524,7 +535,9 @@ private PollerFlux, PartnerNamespaceInner> beg } /** - * Asynchronously creates a new partner namespace with the specified parameters. + * Create a partner namespace. + * + *

Asynchronously creates a new partner namespace with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -537,11 +550,15 @@ private PollerFlux, PartnerNamespaceInner> beg @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, PartnerNamespaceInner> beginCreateOrUpdate( String resourceGroupName, String partnerNamespaceName, PartnerNamespaceInner partnerNamespaceInfo) { - return beginCreateOrUpdateAsync(resourceGroupName, partnerNamespaceName, partnerNamespaceInfo).getSyncPoller(); + return this + .beginCreateOrUpdateAsync(resourceGroupName, partnerNamespaceName, partnerNamespaceInfo) + .getSyncPoller(); } /** - * Asynchronously creates a new partner namespace with the specified parameters. + * Create a partner namespace. + * + *

Asynchronously creates a new partner namespace with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -558,12 +575,15 @@ public SyncPoller, PartnerNamespaceInner> begi String partnerNamespaceName, PartnerNamespaceInner partnerNamespaceInfo, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, partnerNamespaceName, partnerNamespaceInfo, context) + return this + .beginCreateOrUpdateAsync(resourceGroupName, partnerNamespaceName, partnerNamespaceInfo, context) .getSyncPoller(); } /** - * Asynchronously creates a new partner namespace with the specified parameters. + * Create a partner namespace. + * + *

Asynchronously creates a new partner namespace with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -582,7 +602,9 @@ private Mono createOrUpdateAsync( } /** - * Asynchronously creates a new partner namespace with the specified parameters. + * Create a partner namespace. + * + *

Asynchronously creates a new partner namespace with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -605,7 +627,9 @@ private Mono createOrUpdateAsync( } /** - * Asynchronously creates a new partner namespace with the specified parameters. + * Create a partner namespace. + * + *

Asynchronously creates a new partner namespace with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -622,7 +646,9 @@ public PartnerNamespaceInner createOrUpdate( } /** - * Asynchronously creates a new partner namespace with the specified parameters. + * Create a partner namespace. + * + *

Asynchronously creates a new partner namespace with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -643,7 +669,9 @@ public PartnerNamespaceInner createOrUpdate( } /** - * Delete existing partner namespace. + * Delete a partner namespace. + * + *

Delete existing partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -690,7 +718,9 @@ private Mono>> deleteWithResponseAsync( } /** - * Delete existing partner namespace. + * Delete a partner namespace. + * + *

Delete existing partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -735,7 +765,9 @@ private Mono>> deleteWithResponseAsync( } /** - * Delete existing partner namespace. + * Delete a partner namespace. + * + *

Delete existing partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -754,7 +786,9 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup } /** - * Delete existing partner namespace. + * Delete a partner namespace. + * + *

Delete existing partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -776,7 +810,9 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Delete existing partner namespace. + * Delete a partner namespace. + * + *

Delete existing partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -787,11 +823,13 @@ private PollerFlux, Void> beginDeleteAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String resourceGroupName, String partnerNamespaceName) { - return beginDeleteAsync(resourceGroupName, partnerNamespaceName).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, partnerNamespaceName).getSyncPoller(); } /** - * Delete existing partner namespace. + * Delete a partner namespace. + * + *

Delete existing partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -804,11 +842,13 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String partnerNamespaceName, Context context) { - return beginDeleteAsync(resourceGroupName, partnerNamespaceName, context).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, partnerNamespaceName, context).getSyncPoller(); } /** - * Delete existing partner namespace. + * Delete a partner namespace. + * + *

Delete existing partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -825,7 +865,9 @@ private Mono deleteAsync(String resourceGroupName, String partnerNamespace } /** - * Delete existing partner namespace. + * Delete a partner namespace. + * + *

Delete existing partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -843,7 +885,9 @@ private Mono deleteAsync(String resourceGroupName, String partnerNamespace } /** - * Delete existing partner namespace. + * Delete a partner namespace. + * + *

Delete existing partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -857,7 +901,9 @@ public void delete(String resourceGroupName, String partnerNamespaceName) { } /** - * Delete existing partner namespace. + * Delete a partner namespace. + * + *

Delete existing partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -872,7 +918,9 @@ public void delete(String resourceGroupName, String partnerNamespaceName, Contex } /** - * Asynchronously updates a partner namespace with the specified parameters. + * Update a partner namespace. + * + *

Asynchronously updates a partner namespace with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -933,7 +981,9 @@ private Mono>> updateWithResponseAsync( } /** - * Asynchronously updates a partner namespace with the specified parameters. + * Update a partner namespace. + * + *

Asynchronously updates a partner namespace with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -993,7 +1043,9 @@ private Mono>> updateWithResponseAsync( } /** - * Asynchronously updates a partner namespace with the specified parameters. + * Update a partner namespace. + * + *

Asynchronously updates a partner namespace with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -1021,7 +1073,9 @@ private PollerFlux, PartnerNamespaceInner> beg } /** - * Asynchronously updates a partner namespace with the specified parameters. + * Update a partner namespace. + * + *

Asynchronously updates a partner namespace with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -1048,7 +1102,9 @@ private PollerFlux, PartnerNamespaceInner> beg } /** - * Asynchronously updates a partner namespace with the specified parameters. + * Update a partner namespace. + * + *

Asynchronously updates a partner namespace with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -1063,12 +1119,15 @@ public SyncPoller, PartnerNamespaceInner> begi String resourceGroupName, String partnerNamespaceName, PartnerNamespaceUpdateParameters partnerNamespaceUpdateParameters) { - return beginUpdateAsync(resourceGroupName, partnerNamespaceName, partnerNamespaceUpdateParameters) + return this + .beginUpdateAsync(resourceGroupName, partnerNamespaceName, partnerNamespaceUpdateParameters) .getSyncPoller(); } /** - * Asynchronously updates a partner namespace with the specified parameters. + * Update a partner namespace. + * + *

Asynchronously updates a partner namespace with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -1085,12 +1144,15 @@ public SyncPoller, PartnerNamespaceInner> begi String partnerNamespaceName, PartnerNamespaceUpdateParameters partnerNamespaceUpdateParameters, Context context) { - return beginUpdateAsync(resourceGroupName, partnerNamespaceName, partnerNamespaceUpdateParameters, context) + return this + .beginUpdateAsync(resourceGroupName, partnerNamespaceName, partnerNamespaceUpdateParameters, context) .getSyncPoller(); } /** - * Asynchronously updates a partner namespace with the specified parameters. + * Update a partner namespace. + * + *

Asynchronously updates a partner namespace with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -1111,7 +1173,9 @@ private Mono updateAsync( } /** - * Asynchronously updates a partner namespace with the specified parameters. + * Update a partner namespace. + * + *

Asynchronously updates a partner namespace with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -1134,7 +1198,9 @@ private Mono updateAsync( } /** - * Asynchronously updates a partner namespace with the specified parameters. + * Update a partner namespace. + * + *

Asynchronously updates a partner namespace with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -1153,7 +1219,9 @@ public PartnerNamespaceInner update( } /** - * Asynchronously updates a partner namespace with the specified parameters. + * Update a partner namespace. + * + *

Asynchronously updates a partner namespace with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -1174,7 +1242,9 @@ public PartnerNamespaceInner update( } /** - * List all the partner namespaces under an Azure subscription. + * List partner namespaces under an Azure subscription. + * + *

List all the partner namespaces under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -1230,7 +1300,9 @@ private Mono> listSinglePageAsync(String fi } /** - * List all the partner namespaces under an Azure subscription. + * List partner namespaces under an Azure subscription. + * + *

List all the partner namespaces under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -1285,7 +1357,9 @@ private Mono> listSinglePageAsync( } /** - * List all the partner namespaces under an Azure subscription. + * List partner namespaces under an Azure subscription. + * + *

List all the partner namespaces under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -1307,7 +1381,9 @@ private PagedFlux listAsync(String filter, Integer top) { } /** - * List all the partner namespaces under an Azure subscription. + * List partner namespaces under an Azure subscription. + * + *

List all the partner namespaces under an Azure subscription. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1322,7 +1398,9 @@ private PagedFlux listAsync() { } /** - * List all the partner namespaces under an Azure subscription. + * List partner namespaces under an Azure subscription. + * + *

List all the partner namespaces under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -1346,7 +1424,9 @@ private PagedFlux listAsync(String filter, Integer top, C } /** - * List all the partner namespaces under an Azure subscription. + * List partner namespaces under an Azure subscription. + * + *

List all the partner namespaces under an Azure subscription. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1360,7 +1440,9 @@ public PagedIterable list() { } /** - * List all the partner namespaces under an Azure subscription. + * List partner namespaces under an Azure subscription. + * + *

List all the partner namespaces under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -1382,7 +1464,9 @@ public PagedIterable list(String filter, Integer top, Con } /** - * List all the partner namespaces under a resource group. + * List partner namespaces under a resource group. + * + *

List all the partner namespaces under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -1445,7 +1529,9 @@ private Mono> listByResourceGroupSinglePage } /** - * List all the partner namespaces under a resource group. + * List partner namespaces under a resource group. + * + *

List all the partner namespaces under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -1506,7 +1592,9 @@ private Mono> listByResourceGroupSinglePage } /** - * List all the partner namespaces under a resource group. + * List partner namespaces under a resource group. + * + *

List all the partner namespaces under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -1531,7 +1619,9 @@ private PagedFlux listByResourceGroupAsync( } /** - * List all the partner namespaces under a resource group. + * List partner namespaces under a resource group. + * + *

List all the partner namespaces under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1549,7 +1639,9 @@ private PagedFlux listByResourceGroupAsync(String resourc } /** - * List all the partner namespaces under a resource group. + * List partner namespaces under a resource group. + * + *

List all the partner namespaces under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -1575,7 +1667,9 @@ private PagedFlux listByResourceGroupAsync( } /** - * List all the partner namespaces under a resource group. + * List partner namespaces under a resource group. + * + *

List all the partner namespaces under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1591,7 +1685,9 @@ public PagedIterable listByResourceGroup(String resourceG } /** - * List all the partner namespaces under a resource group. + * List partner namespaces under a resource group. + * + *

List all the partner namespaces under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -1615,7 +1711,9 @@ public PagedIterable listByResourceGroup( } /** - * List the two keys used to publish to a partner namespace. + * List keys for a partner namespace. + * + *

List the two keys used to publish to a partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -1665,7 +1763,9 @@ private Mono> listSharedAccessKe } /** - * List the two keys used to publish to a partner namespace. + * List keys for a partner namespace. + * + *

List the two keys used to publish to a partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -1713,7 +1813,9 @@ private Mono> listSharedAccessKe } /** - * List the two keys used to publish to a partner namespace. + * List keys for a partner namespace. + * + *

List the two keys used to publish to a partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -1730,40 +1832,46 @@ private Mono listSharedAccessKeysAsync( } /** - * List the two keys used to publish to a partner namespace. + * List keys for a partner namespace. + * + *

List the two keys used to publish to a partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return shared access keys of the partner namespace. + * @return shared access keys of the partner namespace along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PartnerNamespaceSharedAccessKeysInner listSharedAccessKeys( - String resourceGroupName, String partnerNamespaceName) { - return listSharedAccessKeysAsync(resourceGroupName, partnerNamespaceName).block(); + public Response listSharedAccessKeysWithResponse( + String resourceGroupName, String partnerNamespaceName, Context context) { + return listSharedAccessKeysWithResponseAsync(resourceGroupName, partnerNamespaceName, context).block(); } /** - * List the two keys used to publish to a partner namespace. + * List keys for a partner namespace. + * + *

List the two keys used to publish to a partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return shared access keys of the partner namespace along with {@link Response}. + * @return shared access keys of the partner namespace. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response listSharedAccessKeysWithResponse( - String resourceGroupName, String partnerNamespaceName, Context context) { - return listSharedAccessKeysWithResponseAsync(resourceGroupName, partnerNamespaceName, context).block(); + public PartnerNamespaceSharedAccessKeysInner listSharedAccessKeys( + String resourceGroupName, String partnerNamespaceName) { + return listSharedAccessKeysWithResponse(resourceGroupName, partnerNamespaceName, Context.NONE).getValue(); } /** - * Regenerate a shared access key for a partner namespace. + * Regenerate key for a partner namespace. + * + *

Regenerate a shared access key for a partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -1823,7 +1931,9 @@ private Mono> regenerateKeyWithR } /** - * Regenerate a shared access key for a partner namespace. + * Regenerate key for a partner namespace. + * + *

Regenerate a shared access key for a partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -1882,7 +1992,9 @@ private Mono> regenerateKeyWithR } /** - * Regenerate a shared access key for a partner namespace. + * Regenerate key for a partner namespace. + * + *

Regenerate a shared access key for a partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -1902,50 +2014,56 @@ private Mono regenerateKeyAsync( } /** - * Regenerate a shared access key for a partner namespace. + * Regenerate key for a partner namespace. + * + *

Regenerate a shared access key for a partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. * @param regenerateKeyRequest Request body to regenerate key. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return shared access keys of the partner namespace. + * @return shared access keys of the partner namespace along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PartnerNamespaceSharedAccessKeysInner regenerateKey( + public Response regenerateKeyWithResponse( String resourceGroupName, String partnerNamespaceName, - PartnerNamespaceRegenerateKeyRequest regenerateKeyRequest) { - return regenerateKeyAsync(resourceGroupName, partnerNamespaceName, regenerateKeyRequest).block(); + PartnerNamespaceRegenerateKeyRequest regenerateKeyRequest, + Context context) { + return regenerateKeyWithResponseAsync(resourceGroupName, partnerNamespaceName, regenerateKeyRequest, context) + .block(); } /** - * Regenerate a shared access key for a partner namespace. + * Regenerate key for a partner namespace. + * + *

Regenerate a shared access key for a partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. * @param regenerateKeyRequest Request body to regenerate key. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return shared access keys of the partner namespace along with {@link Response}. + * @return shared access keys of the partner namespace. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response regenerateKeyWithResponse( + public PartnerNamespaceSharedAccessKeysInner regenerateKey( String resourceGroupName, String partnerNamespaceName, - PartnerNamespaceRegenerateKeyRequest regenerateKeyRequest, - Context context) { - return regenerateKeyWithResponseAsync(resourceGroupName, partnerNamespaceName, regenerateKeyRequest, context) - .block(); + PartnerNamespaceRegenerateKeyRequest regenerateKeyRequest) { + return regenerateKeyWithResponse(resourceGroupName, partnerNamespaceName, regenerateKeyRequest, Context.NONE) + .getValue(); } /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1982,7 +2100,8 @@ private Mono> listBySubscriptionNextSingleP /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2020,7 +2139,8 @@ private Mono> listBySubscriptionNextSingleP /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2057,7 +2177,8 @@ private Mono> listByResourceGroupNextSingle /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerNamespacesImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerNamespacesImpl.java index d27d8efe1722..89929772913c 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerNamespacesImpl.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerNamespacesImpl.java @@ -30,15 +30,6 @@ public PartnerNamespacesImpl( this.serviceManager = serviceManager; } - public PartnerNamespace getByResourceGroup(String resourceGroupName, String partnerNamespaceName) { - PartnerNamespaceInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, partnerNamespaceName); - if (inner != null) { - return new PartnerNamespaceImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getByResourceGroupWithResponse( String resourceGroupName, String partnerNamespaceName, Context context) { Response inner = @@ -54,6 +45,15 @@ public Response getByResourceGroupWithResponse( } } + public PartnerNamespace getByResourceGroup(String resourceGroupName, String partnerNamespaceName) { + PartnerNamespaceInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, partnerNamespaceName); + if (inner != null) { + return new PartnerNamespaceImpl(inner, this.manager()); + } else { + return null; + } + } + public void deleteByResourceGroup(String resourceGroupName, String partnerNamespaceName) { this.serviceClient().delete(resourceGroupName, partnerNamespaceName); } @@ -84,17 +84,6 @@ public PagedIterable listByResourceGroup( return Utils.mapPage(inner, inner1 -> new PartnerNamespaceImpl(inner1, this.manager())); } - public PartnerNamespaceSharedAccessKeys listSharedAccessKeys( - String resourceGroupName, String partnerNamespaceName) { - PartnerNamespaceSharedAccessKeysInner inner = - this.serviceClient().listSharedAccessKeys(resourceGroupName, partnerNamespaceName); - if (inner != null) { - return new PartnerNamespaceSharedAccessKeysImpl(inner, this.manager()); - } else { - return null; - } - } - public Response listSharedAccessKeysWithResponse( String resourceGroupName, String partnerNamespaceName, Context context) { Response inner = @@ -110,12 +99,10 @@ public Response listSharedAccessKeysWithRespon } } - public PartnerNamespaceSharedAccessKeys regenerateKey( - String resourceGroupName, - String partnerNamespaceName, - PartnerNamespaceRegenerateKeyRequest regenerateKeyRequest) { + public PartnerNamespaceSharedAccessKeys listSharedAccessKeys( + String resourceGroupName, String partnerNamespaceName) { PartnerNamespaceSharedAccessKeysInner inner = - this.serviceClient().regenerateKey(resourceGroupName, partnerNamespaceName, regenerateKeyRequest); + this.serviceClient().listSharedAccessKeys(resourceGroupName, partnerNamespaceName); if (inner != null) { return new PartnerNamespaceSharedAccessKeysImpl(inner, this.manager()); } else { @@ -143,6 +130,19 @@ public Response regenerateKeyWithResponse( } } + public PartnerNamespaceSharedAccessKeys regenerateKey( + String resourceGroupName, + String partnerNamespaceName, + PartnerNamespaceRegenerateKeyRequest regenerateKeyRequest) { + PartnerNamespaceSharedAccessKeysInner inner = + this.serviceClient().regenerateKey(resourceGroupName, partnerNamespaceName, regenerateKeyRequest); + if (inner != null) { + return new PartnerNamespaceSharedAccessKeysImpl(inner, this.manager()); + } else { + return null; + } + } + public PartnerNamespace getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerRegistrationsClientImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerRegistrationsClientImpl.java index 0a9baf387d05..1c907882e86c 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerRegistrationsClientImpl.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerRegistrationsClientImpl.java @@ -66,11 +66,10 @@ public final class PartnerRegistrationsClientImpl implements PartnerRegistration */ @Host("{$host}") @ServiceInterface(name = "EventGridManagementC") - private interface PartnerRegistrationsService { + public interface PartnerRegistrationsService { @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/partnerRegistrations/{partnerRegistrationName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerRegistrations/{partnerRegistrationName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> getByResourceGroup( @@ -84,8 +83,7 @@ Mono> getByResourceGroup( @Headers({"Content-Type: application/json"}) @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/partnerRegistrations/{partnerRegistrationName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerRegistrations/{partnerRegistrationName}") @ExpectedResponses({200, 202}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> createOrUpdate( @@ -100,8 +98,7 @@ Mono>> createOrUpdate( @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/partnerRegistrations/{partnerRegistrationName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerRegistrations/{partnerRegistrationName}") @ExpectedResponses({200, 202, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> delete( @@ -114,8 +111,7 @@ Mono>> delete( @Headers({"Content-Type: application/json"}) @Patch( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/partnerRegistrations/{partnerRegistrationName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerRegistrations/{partnerRegistrationName}") @ExpectedResponses({200, 201}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> update( @@ -143,8 +139,7 @@ Mono> list( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/partnerRegistrations") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerRegistrations") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByResourceGroup( @@ -179,7 +174,9 @@ Mono> listByResourceGroupNext( } /** - * Gets a partner registration with the specified parameters. + * Get a partner registration. + * + *

Gets a partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. @@ -230,7 +227,9 @@ private Mono> getByResourceGroupWithResponseA } /** - * Gets a partner registration with the specified parameters. + * Get a partner registration. + * + *

Gets a partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. @@ -279,7 +278,9 @@ private Mono> getByResourceGroupWithResponseA } /** - * Gets a partner registration with the specified parameters. + * Get a partner registration. + * + *

Gets a partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. @@ -296,39 +297,45 @@ private Mono getByResourceGroupAsync( } /** - * Gets a partner registration with the specified parameters. + * Get a partner registration. + * + *

Gets a partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a partner registration with the specified parameters. + * @return a partner registration with the specified parameters along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PartnerRegistrationInner getByResourceGroup(String resourceGroupName, String partnerRegistrationName) { - return getByResourceGroupAsync(resourceGroupName, partnerRegistrationName).block(); + public Response getByResourceGroupWithResponse( + String resourceGroupName, String partnerRegistrationName, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, partnerRegistrationName, context).block(); } /** - * Gets a partner registration with the specified parameters. + * Get a partner registration. + * + *

Gets a partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a partner registration with the specified parameters along with {@link Response}. + * @return a partner registration with the specified parameters. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse( - String resourceGroupName, String partnerRegistrationName, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, partnerRegistrationName, context).block(); + public PartnerRegistrationInner getByResourceGroup(String resourceGroupName, String partnerRegistrationName) { + return getByResourceGroupWithResponse(resourceGroupName, partnerRegistrationName, Context.NONE).getValue(); } /** - * Creates a new partner registration with the specified parameters. + * Create a partner registration. + * + *

Creates a new partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. @@ -388,7 +395,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Creates a new partner registration with the specified parameters. + * Create a partner registration. + * + *

Creates a new partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. @@ -449,7 +458,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Creates a new partner registration with the specified parameters. + * Create a partner registration. + * + *

Creates a new partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. @@ -475,7 +486,9 @@ private PollerFlux, PartnerRegistrationInne } /** - * Creates a new partner registration with the specified parameters. + * Create a partner registration. + * + *

Creates a new partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. @@ -507,7 +520,9 @@ private PollerFlux, PartnerRegistrationInne } /** - * Creates a new partner registration with the specified parameters. + * Create a partner registration. + * + *

Creates a new partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. @@ -520,12 +535,15 @@ private PollerFlux, PartnerRegistrationInne @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, PartnerRegistrationInner> beginCreateOrUpdate( String resourceGroupName, String partnerRegistrationName, PartnerRegistrationInner partnerRegistrationInfo) { - return beginCreateOrUpdateAsync(resourceGroupName, partnerRegistrationName, partnerRegistrationInfo) + return this + .beginCreateOrUpdateAsync(resourceGroupName, partnerRegistrationName, partnerRegistrationInfo) .getSyncPoller(); } /** - * Creates a new partner registration with the specified parameters. + * Create a partner registration. + * + *

Creates a new partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. @@ -542,12 +560,15 @@ public SyncPoller, PartnerRegistrationInner String partnerRegistrationName, PartnerRegistrationInner partnerRegistrationInfo, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, partnerRegistrationName, partnerRegistrationInfo, context) + return this + .beginCreateOrUpdateAsync(resourceGroupName, partnerRegistrationName, partnerRegistrationInfo, context) .getSyncPoller(); } /** - * Creates a new partner registration with the specified parameters. + * Create a partner registration. + * + *

Creates a new partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. @@ -566,7 +587,9 @@ private Mono createOrUpdateAsync( } /** - * Creates a new partner registration with the specified parameters. + * Create a partner registration. + * + *

Creates a new partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. @@ -589,7 +612,9 @@ private Mono createOrUpdateAsync( } /** - * Creates a new partner registration with the specified parameters. + * Create a partner registration. + * + *

Creates a new partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. @@ -606,7 +631,9 @@ public PartnerRegistrationInner createOrUpdate( } /** - * Creates a new partner registration with the specified parameters. + * Create a partner registration. + * + *

Creates a new partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. @@ -628,7 +655,9 @@ public PartnerRegistrationInner createOrUpdate( } /** - * Deletes a partner registration with the specified parameters. + * Delete a partner registration. + * + *

Deletes a partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. @@ -676,7 +705,9 @@ private Mono>> deleteWithResponseAsync( } /** - * Deletes a partner registration with the specified parameters. + * Delete a partner registration. + * + *

Deletes a partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. @@ -722,7 +753,9 @@ private Mono>> deleteWithResponseAsync( } /** - * Deletes a partner registration with the specified parameters. + * Delete a partner registration. + * + *

Deletes a partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. @@ -742,7 +775,9 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Deletes a partner registration with the specified parameters. + * Delete a partner registration. + * + *

Deletes a partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. @@ -764,7 +799,9 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Deletes a partner registration with the specified parameters. + * Delete a partner registration. + * + *

Deletes a partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. @@ -775,11 +812,13 @@ private PollerFlux, Void> beginDeleteAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String resourceGroupName, String partnerRegistrationName) { - return beginDeleteAsync(resourceGroupName, partnerRegistrationName).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, partnerRegistrationName).getSyncPoller(); } /** - * Deletes a partner registration with the specified parameters. + * Delete a partner registration. + * + *

Deletes a partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. @@ -792,11 +831,13 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String partnerRegistrationName, Context context) { - return beginDeleteAsync(resourceGroupName, partnerRegistrationName, context).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, partnerRegistrationName, context).getSyncPoller(); } /** - * Deletes a partner registration with the specified parameters. + * Delete a partner registration. + * + *

Deletes a partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. @@ -813,7 +854,9 @@ private Mono deleteAsync(String resourceGroupName, String partnerRegistrat } /** - * Deletes a partner registration with the specified parameters. + * Delete a partner registration. + * + *

Deletes a partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. @@ -831,7 +874,9 @@ private Mono deleteAsync(String resourceGroupName, String partnerRegistrat } /** - * Deletes a partner registration with the specified parameters. + * Delete a partner registration. + * + *

Deletes a partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. @@ -845,7 +890,9 @@ public void delete(String resourceGroupName, String partnerRegistrationName) { } /** - * Deletes a partner registration with the specified parameters. + * Delete a partner registration. + * + *

Deletes a partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. @@ -860,7 +907,9 @@ public void delete(String resourceGroupName, String partnerRegistrationName, Con } /** - * Updates a partner registration with the specified parameters. + * Update a partner registration. + * + *

Updates a partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. @@ -922,7 +971,9 @@ private Mono>> updateWithResponseAsync( } /** - * Updates a partner registration with the specified parameters. + * Update a partner registration. + * + *

Updates a partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. @@ -983,7 +1034,9 @@ private Mono>> updateWithResponseAsync( } /** - * Updates a partner registration with the specified parameters. + * Update a partner registration. + * + *

Updates a partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. @@ -1011,7 +1064,9 @@ private PollerFlux, PartnerRegistrationInne } /** - * Updates a partner registration with the specified parameters. + * Update a partner registration. + * + *

Updates a partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. @@ -1043,7 +1098,9 @@ private PollerFlux, PartnerRegistrationInne } /** - * Updates a partner registration with the specified parameters. + * Update a partner registration. + * + *

Updates a partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. @@ -1058,12 +1115,15 @@ public SyncPoller, PartnerRegistrationInner String resourceGroupName, String partnerRegistrationName, PartnerRegistrationUpdateParameters partnerRegistrationUpdateParameters) { - return beginUpdateAsync(resourceGroupName, partnerRegistrationName, partnerRegistrationUpdateParameters) + return this + .beginUpdateAsync(resourceGroupName, partnerRegistrationName, partnerRegistrationUpdateParameters) .getSyncPoller(); } /** - * Updates a partner registration with the specified parameters. + * Update a partner registration. + * + *

Updates a partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. @@ -1080,13 +1140,15 @@ public SyncPoller, PartnerRegistrationInner String partnerRegistrationName, PartnerRegistrationUpdateParameters partnerRegistrationUpdateParameters, Context context) { - return beginUpdateAsync( - resourceGroupName, partnerRegistrationName, partnerRegistrationUpdateParameters, context) + return this + .beginUpdateAsync(resourceGroupName, partnerRegistrationName, partnerRegistrationUpdateParameters, context) .getSyncPoller(); } /** - * Updates a partner registration with the specified parameters. + * Update a partner registration. + * + *

Updates a partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. @@ -1107,7 +1169,9 @@ private Mono updateAsync( } /** - * Updates a partner registration with the specified parameters. + * Update a partner registration. + * + *

Updates a partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. @@ -1131,7 +1195,9 @@ private Mono updateAsync( } /** - * Updates a partner registration with the specified parameters. + * Update a partner registration. + * + *

Updates a partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. @@ -1150,7 +1216,9 @@ public PartnerRegistrationInner update( } /** - * Updates a partner registration with the specified parameters. + * Update a partner registration. + * + *

Updates a partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. @@ -1172,7 +1240,9 @@ public PartnerRegistrationInner update( } /** - * List all the partner registrations under an Azure subscription. + * List partner registrations under an Azure subscription. + * + *

List all the partner registrations under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -1228,7 +1298,9 @@ private Mono> listSinglePageAsync(String } /** - * List all the partner registrations under an Azure subscription. + * List partner registrations under an Azure subscription. + * + *

List all the partner registrations under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -1283,7 +1355,9 @@ private Mono> listSinglePageAsync( } /** - * List all the partner registrations under an Azure subscription. + * List partner registrations under an Azure subscription. + * + *

List all the partner registrations under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -1305,7 +1379,9 @@ private PagedFlux listAsync(String filter, Integer top } /** - * List all the partner registrations under an Azure subscription. + * List partner registrations under an Azure subscription. + * + *

List all the partner registrations under an Azure subscription. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1320,7 +1396,9 @@ private PagedFlux listAsync() { } /** - * List all the partner registrations under an Azure subscription. + * List partner registrations under an Azure subscription. + * + *

List all the partner registrations under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -1344,7 +1422,9 @@ private PagedFlux listAsync(String filter, Integer top } /** - * List all the partner registrations under an Azure subscription. + * List partner registrations under an Azure subscription. + * + *

List all the partner registrations under an Azure subscription. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1358,7 +1438,9 @@ public PagedIterable list() { } /** - * List all the partner registrations under an Azure subscription. + * List partner registrations under an Azure subscription. + * + *

List all the partner registrations under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -1380,7 +1462,9 @@ public PagedIterable list(String filter, Integer top, } /** - * List all the partner registrations under a resource group. + * List partner registrations under a resource group. + * + *

List all the partner registrations under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -1443,7 +1527,9 @@ private Mono> listByResourceGroupSingleP } /** - * List all the partner registrations under a resource group. + * List partner registrations under a resource group. + * + *

List all the partner registrations under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -1504,7 +1590,9 @@ private Mono> listByResourceGroupSingleP } /** - * List all the partner registrations under a resource group. + * List partner registrations under a resource group. + * + *

List all the partner registrations under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -1529,7 +1617,9 @@ private PagedFlux listByResourceGroupAsync( } /** - * List all the partner registrations under a resource group. + * List partner registrations under a resource group. + * + *

List all the partner registrations under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1547,7 +1637,9 @@ private PagedFlux listByResourceGroupAsync(String reso } /** - * List all the partner registrations under a resource group. + * List partner registrations under a resource group. + * + *

List all the partner registrations under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -1573,7 +1665,9 @@ private PagedFlux listByResourceGroupAsync( } /** - * List all the partner registrations under a resource group. + * List partner registrations under a resource group. + * + *

List all the partner registrations under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1589,7 +1683,9 @@ public PagedIterable listByResourceGroup(String resour } /** - * List all the partner registrations under a resource group. + * List partner registrations under a resource group. + * + *

List all the partner registrations under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -1615,7 +1711,8 @@ public PagedIterable listByResourceGroup( /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1652,7 +1749,8 @@ private Mono> listBySubscriptionNextSing /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1690,7 +1788,8 @@ private Mono> listBySubscriptionNextSing /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1727,7 +1826,8 @@ private Mono> listByResourceGroupNextSin /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerRegistrationsImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerRegistrationsImpl.java index 7e90c58371b4..fc37966d0445 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerRegistrationsImpl.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerRegistrationsImpl.java @@ -27,16 +27,6 @@ public PartnerRegistrationsImpl( this.serviceManager = serviceManager; } - public PartnerRegistration getByResourceGroup(String resourceGroupName, String partnerRegistrationName) { - PartnerRegistrationInner inner = - this.serviceClient().getByResourceGroup(resourceGroupName, partnerRegistrationName); - if (inner != null) { - return new PartnerRegistrationImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getByResourceGroupWithResponse( String resourceGroupName, String partnerRegistrationName, Context context) { Response inner = @@ -52,6 +42,16 @@ public Response getByResourceGroupWithResponse( } } + public PartnerRegistration getByResourceGroup(String resourceGroupName, String partnerRegistrationName) { + PartnerRegistrationInner inner = + this.serviceClient().getByResourceGroup(resourceGroupName, partnerRegistrationName); + if (inner != null) { + return new PartnerRegistrationImpl(inner, this.manager()); + } else { + return null; + } + } + public void deleteByResourceGroup(String resourceGroupName, String partnerRegistrationName) { this.serviceClient().delete(resourceGroupName, partnerRegistrationName); } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerTopicEventSubscriptionsClientImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerTopicEventSubscriptionsClientImpl.java index 9edb594cbab0..1c8ab252ea8d 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerTopicEventSubscriptionsClientImpl.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerTopicEventSubscriptionsClientImpl.java @@ -72,11 +72,10 @@ public final class PartnerTopicEventSubscriptionsClientImpl implements PartnerTo */ @Host("{$host}") @ServiceInterface(name = "EventGridManagementC") - private interface PartnerTopicEventSubscriptionsService { + public interface PartnerTopicEventSubscriptionsService { @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/partnerTopics/{partnerTopicName}/eventSubscriptions/{eventSubscriptionName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerTopics/{partnerTopicName}/eventSubscriptions/{eventSubscriptionName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get( @@ -91,8 +90,7 @@ Mono> get( @Headers({"Content-Type: application/json"}) @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/partnerTopics/{partnerTopicName}/eventSubscriptions/{eventSubscriptionName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerTopics/{partnerTopicName}/eventSubscriptions/{eventSubscriptionName}") @ExpectedResponses({200, 201}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> createOrUpdate( @@ -108,8 +106,7 @@ Mono>> createOrUpdate( @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/partnerTopics/{partnerTopicName}/eventSubscriptions/{eventSubscriptionName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerTopics/{partnerTopicName}/eventSubscriptions/{eventSubscriptionName}") @ExpectedResponses({200, 202, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> delete( @@ -123,8 +120,7 @@ Mono>> delete( @Headers({"Content-Type: application/json"}) @Patch( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/partnerTopics/{partnerTopicName}/eventSubscriptions/{eventSubscriptionName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerTopics/{partnerTopicName}/eventSubscriptions/{eventSubscriptionName}") @ExpectedResponses({201}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> update( @@ -140,8 +136,7 @@ Mono>> update( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/partnerTopics/{partnerTopicName}/eventSubscriptions/{eventSubscriptionName}/getFullUrl") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerTopics/{partnerTopicName}/eventSubscriptions/{eventSubscriptionName}/getFullUrl") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> getFullUrl( @@ -156,8 +151,7 @@ Mono> getFullUrl( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/partnerTopics/{partnerTopicName}/eventSubscriptions") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerTopics/{partnerTopicName}/eventSubscriptions") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByPartnerTopic( @@ -173,8 +167,7 @@ Mono> listByPartnerTopic( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/partnerTopics/{partnerTopicName}/eventSubscriptions/{eventSubscriptionName}/getDeliveryAttributes") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerTopics/{partnerTopicName}/eventSubscriptions/{eventSubscriptionName}/getDeliveryAttributes") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> getDeliveryAttributes( @@ -199,7 +192,9 @@ Mono> listByPartnerTopicNext( } /** - * Get properties of an event subscription of a partner topic. + * Get an event subscription of a partner topic. + * + *

Get properties of an event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -256,7 +251,9 @@ private Mono> getWithResponseAsync( } /** - * Get properties of an event subscription of a partner topic. + * Get an event subscription of a partner topic. + * + *

Get properties of an event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -311,7 +308,9 @@ private Mono> getWithResponseAsync( } /** - * Get properties of an event subscription of a partner topic. + * Get an event subscription of a partner topic. + * + *

Get properties of an event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -330,43 +329,49 @@ private Mono getAsync( } /** - * Get properties of an event subscription of a partner topic. + * Get an event subscription of a partner topic. + * + *

Get properties of an event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. * @param eventSubscriptionName Name of the event subscription to be found. Event subscription names must be between * 3 and 100 characters in length and use alphanumeric letters only. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of an event subscription of a partner topic. + * @return properties of an event subscription of a partner topic along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public EventSubscriptionInner get(String resourceGroupName, String partnerTopicName, String eventSubscriptionName) { - return getAsync(resourceGroupName, partnerTopicName, eventSubscriptionName).block(); + public Response getWithResponse( + String resourceGroupName, String partnerTopicName, String eventSubscriptionName, Context context) { + return getWithResponseAsync(resourceGroupName, partnerTopicName, eventSubscriptionName, context).block(); } /** - * Get properties of an event subscription of a partner topic. + * Get an event subscription of a partner topic. + * + *

Get properties of an event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. * @param eventSubscriptionName Name of the event subscription to be found. Event subscription names must be between * 3 and 100 characters in length and use alphanumeric letters only. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of an event subscription of a partner topic along with {@link Response}. + * @return properties of an event subscription of a partner topic. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String partnerTopicName, String eventSubscriptionName, Context context) { - return getWithResponseAsync(resourceGroupName, partnerTopicName, eventSubscriptionName, context).block(); + public EventSubscriptionInner get(String resourceGroupName, String partnerTopicName, String eventSubscriptionName) { + return getWithResponse(resourceGroupName, partnerTopicName, eventSubscriptionName, Context.NONE).getValue(); } /** - * Asynchronously creates or updates an event subscription of a partner topic with the specified parameters. + * Create or update an event subscription of a partner topic. + * + *

Asynchronously creates or updates an event subscription of a partner topic with the specified parameters. * Existing event subscriptions will be updated with this API. * * @param resourceGroupName The name of the resource group within the user's subscription. @@ -434,7 +439,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Asynchronously creates or updates an event subscription of a partner topic with the specified parameters. + * Create or update an event subscription of a partner topic. + * + *

Asynchronously creates or updates an event subscription of a partner topic with the specified parameters. * Existing event subscriptions will be updated with this API. * * @param resourceGroupName The name of the resource group within the user's subscription. @@ -501,7 +508,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Asynchronously creates or updates an event subscription of a partner topic with the specified parameters. + * Create or update an event subscription of a partner topic. + * + *

Asynchronously creates or updates an event subscription of a partner topic with the specified parameters. * Existing event subscriptions will be updated with this API. * * @param resourceGroupName The name of the resource group within the user's subscription. @@ -534,7 +543,9 @@ private PollerFlux, EventSubscriptionInner> b } /** - * Asynchronously creates or updates an event subscription of a partner topic with the specified parameters. + * Create or update an event subscription of a partner topic. + * + *

Asynchronously creates or updates an event subscription of a partner topic with the specified parameters. * Existing event subscriptions will be updated with this API. * * @param resourceGroupName The name of the resource group within the user's subscription. @@ -570,7 +581,9 @@ private PollerFlux, EventSubscriptionInner> b } /** - * Asynchronously creates or updates an event subscription of a partner topic with the specified parameters. + * Create or update an event subscription of a partner topic. + * + *

Asynchronously creates or updates an event subscription of a partner topic with the specified parameters. * Existing event subscriptions will be updated with this API. * * @param resourceGroupName The name of the resource group within the user's subscription. @@ -589,13 +602,15 @@ public SyncPoller, EventSubscriptionInner> be String partnerTopicName, String eventSubscriptionName, EventSubscriptionInner eventSubscriptionInfo) { - return beginCreateOrUpdateAsync( - resourceGroupName, partnerTopicName, eventSubscriptionName, eventSubscriptionInfo) + return this + .beginCreateOrUpdateAsync(resourceGroupName, partnerTopicName, eventSubscriptionName, eventSubscriptionInfo) .getSyncPoller(); } /** - * Asynchronously creates or updates an event subscription of a partner topic with the specified parameters. + * Create or update an event subscription of a partner topic. + * + *

Asynchronously creates or updates an event subscription of a partner topic with the specified parameters. * Existing event subscriptions will be updated with this API. * * @param resourceGroupName The name of the resource group within the user's subscription. @@ -616,13 +631,16 @@ public SyncPoller, EventSubscriptionInner> be String eventSubscriptionName, EventSubscriptionInner eventSubscriptionInfo, Context context) { - return beginCreateOrUpdateAsync( + return this + .beginCreateOrUpdateAsync( resourceGroupName, partnerTopicName, eventSubscriptionName, eventSubscriptionInfo, context) .getSyncPoller(); } /** - * Asynchronously creates or updates an event subscription of a partner topic with the specified parameters. + * Create or update an event subscription of a partner topic. + * + *

Asynchronously creates or updates an event subscription of a partner topic with the specified parameters. * Existing event subscriptions will be updated with this API. * * @param resourceGroupName The name of the resource group within the user's subscription. @@ -648,7 +666,9 @@ private Mono createOrUpdateAsync( } /** - * Asynchronously creates or updates an event subscription of a partner topic with the specified parameters. + * Create or update an event subscription of a partner topic. + * + *

Asynchronously creates or updates an event subscription of a partner topic with the specified parameters. * Existing event subscriptions will be updated with this API. * * @param resourceGroupName The name of the resource group within the user's subscription. @@ -676,7 +696,9 @@ private Mono createOrUpdateAsync( } /** - * Asynchronously creates or updates an event subscription of a partner topic with the specified parameters. + * Create or update an event subscription of a partner topic. + * + *

Asynchronously creates or updates an event subscription of a partner topic with the specified parameters. * Existing event subscriptions will be updated with this API. * * @param resourceGroupName The name of the resource group within the user's subscription. @@ -700,7 +722,9 @@ public EventSubscriptionInner createOrUpdate( } /** - * Asynchronously creates or updates an event subscription of a partner topic with the specified parameters. + * Create or update an event subscription of a partner topic. + * + *

Asynchronously creates or updates an event subscription of a partner topic with the specified parameters. * Existing event subscriptions will be updated with this API. * * @param resourceGroupName The name of the resource group within the user's subscription. @@ -727,7 +751,9 @@ public EventSubscriptionInner createOrUpdate( } /** - * Delete an existing event subscription of a partner topic. + * Delete an event subscription of a partner topic. + * + *

Delete an existing event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -781,7 +807,9 @@ private Mono>> deleteWithResponseAsync( } /** - * Delete an existing event subscription of a partner topic. + * Delete an event subscription of a partner topic. + * + *

Delete an existing event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -833,7 +861,9 @@ private Mono>> deleteWithResponseAsync( } /** - * Delete an existing event subscription of a partner topic. + * Delete an event subscription of a partner topic. + * + *

Delete an existing event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -856,7 +886,9 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Delete an existing event subscription of a partner topic. + * Delete an event subscription of a partner topic. + * + *

Delete an existing event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -880,7 +912,9 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Delete an existing event subscription of a partner topic. + * Delete an event subscription of a partner topic. + * + *

Delete an existing event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -894,11 +928,13 @@ private PollerFlux, Void> beginDeleteAsync( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String partnerTopicName, String eventSubscriptionName) { - return beginDeleteAsync(resourceGroupName, partnerTopicName, eventSubscriptionName).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, partnerTopicName, eventSubscriptionName).getSyncPoller(); } /** - * Delete an existing event subscription of a partner topic. + * Delete an event subscription of a partner topic. + * + *

Delete an existing event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -913,11 +949,15 @@ public SyncPoller, Void> beginDelete( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String partnerTopicName, String eventSubscriptionName, Context context) { - return beginDeleteAsync(resourceGroupName, partnerTopicName, eventSubscriptionName, context).getSyncPoller(); + return this + .beginDeleteAsync(resourceGroupName, partnerTopicName, eventSubscriptionName, context) + .getSyncPoller(); } /** - * Delete an existing event subscription of a partner topic. + * Delete an event subscription of a partner topic. + * + *

Delete an existing event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -936,7 +976,9 @@ private Mono deleteAsync(String resourceGroupName, String partnerTopicName } /** - * Delete an existing event subscription of a partner topic. + * Delete an event subscription of a partner topic. + * + *

Delete an existing event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -957,7 +999,9 @@ private Mono deleteAsync( } /** - * Delete an existing event subscription of a partner topic. + * Delete an event subscription of a partner topic. + * + *

Delete an existing event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -973,7 +1017,9 @@ public void delete(String resourceGroupName, String partnerTopicName, String eve } /** - * Delete an existing event subscription of a partner topic. + * Delete an event subscription of a partner topic. + * + *

Delete an existing event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -991,7 +1037,9 @@ public void delete( } /** - * Update an existing event subscription of a partner topic. + * Update event subscription of a partner topic. + * + *

Update an existing event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -1060,7 +1108,9 @@ private Mono>> updateWithResponseAsync( } /** - * Update an existing event subscription of a partner topic. + * Update event subscription of a partner topic. + * + *

Update an existing event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -1128,7 +1178,9 @@ private Mono>> updateWithResponseAsync( } /** - * Update an existing event subscription of a partner topic. + * Update event subscription of a partner topic. + * + *

Update an existing event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -1160,7 +1212,9 @@ private PollerFlux, EventSubscriptionInner> b } /** - * Update an existing event subscription of a partner topic. + * Update event subscription of a partner topic. + * + *

Update an existing event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -1195,7 +1249,9 @@ private PollerFlux, EventSubscriptionInner> b } /** - * Update an existing event subscription of a partner topic. + * Update event subscription of a partner topic. + * + *

Update an existing event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -1213,13 +1269,16 @@ public SyncPoller, EventSubscriptionInner> be String partnerTopicName, String eventSubscriptionName, EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters) { - return beginUpdateAsync( + return this + .beginUpdateAsync( resourceGroupName, partnerTopicName, eventSubscriptionName, eventSubscriptionUpdateParameters) .getSyncPoller(); } /** - * Update an existing event subscription of a partner topic. + * Update event subscription of a partner topic. + * + *

Update an existing event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -1239,13 +1298,16 @@ public SyncPoller, EventSubscriptionInner> be String eventSubscriptionName, EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters, Context context) { - return beginUpdateAsync( + return this + .beginUpdateAsync( resourceGroupName, partnerTopicName, eventSubscriptionName, eventSubscriptionUpdateParameters, context) .getSyncPoller(); } /** - * Update an existing event subscription of a partner topic. + * Update event subscription of a partner topic. + * + *

Update an existing event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -1270,7 +1332,9 @@ private Mono updateAsync( } /** - * Update an existing event subscription of a partner topic. + * Update event subscription of a partner topic. + * + *

Update an existing event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -1297,7 +1361,9 @@ private Mono updateAsync( } /** - * Update an existing event subscription of a partner topic. + * Update event subscription of a partner topic. + * + *

Update an existing event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -1321,7 +1387,9 @@ public EventSubscriptionInner update( } /** - * Update an existing event subscription of a partner topic. + * Update event subscription of a partner topic. + * + *

Update an existing event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -1347,7 +1415,9 @@ public EventSubscriptionInner update( } /** - * Get the full endpoint URL for an event subscription of a partner topic. + * Get full URL of an event subscription of a partner topic. + * + *

Get the full endpoint URL for an event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -1404,7 +1474,9 @@ private Mono> getFullUrlWithResponseAsyn } /** - * Get the full endpoint URL for an event subscription of a partner topic. + * Get full URL of an event subscription of a partner topic. + * + *

Get the full endpoint URL for an event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -1459,7 +1531,9 @@ private Mono> getFullUrlWithResponseAsyn } /** - * Get the full endpoint URL for an event subscription of a partner topic. + * Get full URL of an event subscription of a partner topic. + * + *

Get the full endpoint URL for an event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -1479,44 +1553,51 @@ private Mono getFullUrlAsync( } /** - * Get the full endpoint URL for an event subscription of a partner topic. + * Get full URL of an event subscription of a partner topic. + * + *

Get the full endpoint URL for an event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names must be * between 3 and 100 characters in length and use alphanumeric letters only. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the full endpoint URL for an event subscription of a partner topic. + * @return the full endpoint URL for an event subscription of a partner topic along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public EventSubscriptionFullUrlInner getFullUrl( - String resourceGroupName, String partnerTopicName, String eventSubscriptionName) { - return getFullUrlAsync(resourceGroupName, partnerTopicName, eventSubscriptionName).block(); + public Response getFullUrlWithResponse( + String resourceGroupName, String partnerTopicName, String eventSubscriptionName, Context context) { + return getFullUrlWithResponseAsync(resourceGroupName, partnerTopicName, eventSubscriptionName, context).block(); } /** - * Get the full endpoint URL for an event subscription of a partner topic. + * Get full URL of an event subscription of a partner topic. + * + *

Get the full endpoint URL for an event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names must be * between 3 and 100 characters in length and use alphanumeric letters only. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the full endpoint URL for an event subscription of a partner topic along with {@link Response}. + * @return the full endpoint URL for an event subscription of a partner topic. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getFullUrlWithResponse( - String resourceGroupName, String partnerTopicName, String eventSubscriptionName, Context context) { - return getFullUrlWithResponseAsync(resourceGroupName, partnerTopicName, eventSubscriptionName, context).block(); + public EventSubscriptionFullUrlInner getFullUrl( + String resourceGroupName, String partnerTopicName, String eventSubscriptionName) { + return getFullUrlWithResponse(resourceGroupName, partnerTopicName, eventSubscriptionName, Context.NONE) + .getValue(); } /** - * List event subscriptions that belong to a specific partner topic. + * List event subscriptions of a partner topic. + * + *

List event subscriptions that belong to a specific partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -1585,7 +1666,9 @@ private Mono> listByPartnerTopicSinglePage } /** - * List event subscriptions that belong to a specific partner topic. + * List event subscriptions of a partner topic. + * + *

List event subscriptions that belong to a specific partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -1652,7 +1735,9 @@ private Mono> listByPartnerTopicSinglePage } /** - * List event subscriptions that belong to a specific partner topic. + * List event subscriptions of a partner topic. + * + *

List event subscriptions that belong to a specific partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -1678,7 +1763,9 @@ private PagedFlux listByPartnerTopicAsync( } /** - * List event subscriptions that belong to a specific partner topic. + * List event subscriptions of a partner topic. + * + *

List event subscriptions that belong to a specific partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -1698,7 +1785,9 @@ private PagedFlux listByPartnerTopicAsync( } /** - * List event subscriptions that belong to a specific partner topic. + * List event subscriptions of a partner topic. + * + *

List event subscriptions that belong to a specific partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -1725,7 +1814,9 @@ private PagedFlux listByPartnerTopicAsync( } /** - * List event subscriptions that belong to a specific partner topic. + * List event subscriptions of a partner topic. + * + *

List event subscriptions that belong to a specific partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -1742,7 +1833,9 @@ public PagedIterable listByPartnerTopic(String resourceG } /** - * List event subscriptions that belong to a specific partner topic. + * List event subscriptions of a partner topic. + * + *

List event subscriptions that belong to a specific partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -1767,7 +1860,9 @@ public PagedIterable listByPartnerTopic( } /** - * Get all delivery attributes for an event subscription of a partner topic. + * Get delivery attributes for an event subscription of a partner topic. + * + *

Get all delivery attributes for an event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -1824,7 +1919,9 @@ private Mono> getDeliveryAttributesWi } /** - * Get all delivery attributes for an event subscription of a partner topic. + * Get delivery attributes for an event subscription of a partner topic. + * + *

Get all delivery attributes for an event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -1879,7 +1976,9 @@ private Mono> getDeliveryAttributesWi } /** - * Get all delivery attributes for an event subscription of a partner topic. + * Get delivery attributes for an event subscription of a partner topic. + * + *

Get all delivery attributes for an event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -1899,48 +1998,55 @@ private Mono getDeliveryAttributesAsync( } /** - * Get all delivery attributes for an event subscription of a partner topic. + * Get delivery attributes for an event subscription of a partner topic. + * + *

Get all delivery attributes for an event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names must be * between 3 and 100 characters in length and use alphanumeric letters only. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all delivery attributes for an event subscription of a partner topic. + * @return all delivery attributes for an event subscription of a partner topic along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DeliveryAttributeListResultInner getDeliveryAttributes( - String resourceGroupName, String partnerTopicName, String eventSubscriptionName) { - return getDeliveryAttributesAsync(resourceGroupName, partnerTopicName, eventSubscriptionName).block(); + public Response getDeliveryAttributesWithResponse( + String resourceGroupName, String partnerTopicName, String eventSubscriptionName, Context context) { + return getDeliveryAttributesWithResponseAsync( + resourceGroupName, partnerTopicName, eventSubscriptionName, context) + .block(); } /** - * Get all delivery attributes for an event subscription of a partner topic. + * Get delivery attributes for an event subscription of a partner topic. + * + *

Get all delivery attributes for an event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names must be * between 3 and 100 characters in length and use alphanumeric letters only. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all delivery attributes for an event subscription of a partner topic along with {@link Response}. + * @return all delivery attributes for an event subscription of a partner topic. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getDeliveryAttributesWithResponse( - String resourceGroupName, String partnerTopicName, String eventSubscriptionName, Context context) { - return getDeliveryAttributesWithResponseAsync( - resourceGroupName, partnerTopicName, eventSubscriptionName, context) - .block(); + public DeliveryAttributeListResultInner getDeliveryAttributes( + String resourceGroupName, String partnerTopicName, String eventSubscriptionName) { + return getDeliveryAttributesWithResponse( + resourceGroupName, partnerTopicName, eventSubscriptionName, Context.NONE) + .getValue(); } /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1977,7 +2083,8 @@ private Mono> listByPartnerTopicNextSingle /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerTopicEventSubscriptionsImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerTopicEventSubscriptionsImpl.java index f3d87c7f89cb..38884f7ae289 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerTopicEventSubscriptionsImpl.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerTopicEventSubscriptionsImpl.java @@ -33,16 +33,6 @@ public PartnerTopicEventSubscriptionsImpl( this.serviceManager = serviceManager; } - public EventSubscription get(String resourceGroupName, String partnerTopicName, String eventSubscriptionName) { - EventSubscriptionInner inner = - this.serviceClient().get(resourceGroupName, partnerTopicName, eventSubscriptionName); - if (inner != null) { - return new EventSubscriptionImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String partnerTopicName, String eventSubscriptionName, Context context) { Response inner = @@ -58,6 +48,16 @@ public Response getWithResponse( } } + public EventSubscription get(String resourceGroupName, String partnerTopicName, String eventSubscriptionName) { + EventSubscriptionInner inner = + this.serviceClient().get(resourceGroupName, partnerTopicName, eventSubscriptionName); + if (inner != null) { + return new EventSubscriptionImpl(inner, this.manager()); + } else { + return null; + } + } + public EventSubscription createOrUpdate( String resourceGroupName, String partnerTopicName, @@ -139,17 +139,6 @@ public EventSubscription update( } } - public EventSubscriptionFullUrl getFullUrl( - String resourceGroupName, String partnerTopicName, String eventSubscriptionName) { - EventSubscriptionFullUrlInner inner = - this.serviceClient().getFullUrl(resourceGroupName, partnerTopicName, eventSubscriptionName); - if (inner != null) { - return new EventSubscriptionFullUrlImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getFullUrlWithResponse( String resourceGroupName, String partnerTopicName, String eventSubscriptionName, Context context) { Response inner = @@ -167,6 +156,17 @@ public Response getFullUrlWithResponse( } } + public EventSubscriptionFullUrl getFullUrl( + String resourceGroupName, String partnerTopicName, String eventSubscriptionName) { + EventSubscriptionFullUrlInner inner = + this.serviceClient().getFullUrl(resourceGroupName, partnerTopicName, eventSubscriptionName); + if (inner != null) { + return new EventSubscriptionFullUrlImpl(inner, this.manager()); + } else { + return null; + } + } + public PagedIterable listByPartnerTopic(String resourceGroupName, String partnerTopicName) { PagedIterable inner = this.serviceClient().listByPartnerTopic(resourceGroupName, partnerTopicName); @@ -180,17 +180,6 @@ public PagedIterable listByPartnerTopic( return Utils.mapPage(inner, inner1 -> new EventSubscriptionImpl(inner1, this.manager())); } - public DeliveryAttributeListResult getDeliveryAttributes( - String resourceGroupName, String partnerTopicName, String eventSubscriptionName) { - DeliveryAttributeListResultInner inner = - this.serviceClient().getDeliveryAttributes(resourceGroupName, partnerTopicName, eventSubscriptionName); - if (inner != null) { - return new DeliveryAttributeListResultImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getDeliveryAttributesWithResponse( String resourceGroupName, String partnerTopicName, String eventSubscriptionName, Context context) { Response inner = @@ -208,6 +197,17 @@ public Response getDeliveryAttributesWithResponse( } } + public DeliveryAttributeListResult getDeliveryAttributes( + String resourceGroupName, String partnerTopicName, String eventSubscriptionName) { + DeliveryAttributeListResultInner inner = + this.serviceClient().getDeliveryAttributes(resourceGroupName, partnerTopicName, eventSubscriptionName); + if (inner != null) { + return new DeliveryAttributeListResultImpl(inner, this.manager()); + } else { + return null; + } + } + private PartnerTopicEventSubscriptionsClient serviceClient() { return this.innerClient; } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerTopicImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerTopicImpl.java index aa23add5531c..bae8ca1f9d2b 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerTopicImpl.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerTopicImpl.java @@ -201,22 +201,22 @@ public PartnerTopic refresh(Context context) { return this; } - public PartnerTopic activate() { - return serviceManager.partnerTopics().activate(resourceGroupName, partnerTopicName); - } - public Response activateWithResponse(Context context) { return serviceManager.partnerTopics().activateWithResponse(resourceGroupName, partnerTopicName, context); } - public PartnerTopic deactivate() { - return serviceManager.partnerTopics().deactivate(resourceGroupName, partnerTopicName); + public PartnerTopic activate() { + return serviceManager.partnerTopics().activate(resourceGroupName, partnerTopicName); } public Response deactivateWithResponse(Context context) { return serviceManager.partnerTopics().deactivateWithResponse(resourceGroupName, partnerTopicName, context); } + public PartnerTopic deactivate() { + return serviceManager.partnerTopics().deactivate(resourceGroupName, partnerTopicName); + } + public PartnerTopicImpl withRegion(Region location) { this.innerModel().withLocation(location.toString()); return this; diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerTopicsClientImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerTopicsClientImpl.java index 660b06c68df5..0aca5259cdae 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerTopicsClientImpl.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerTopicsClientImpl.java @@ -66,11 +66,10 @@ public final class PartnerTopicsClientImpl implements PartnerTopicsClient { */ @Host("{$host}") @ServiceInterface(name = "EventGridManagementC") - private interface PartnerTopicsService { + public interface PartnerTopicsService { @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/partnerTopics/{partnerTopicName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerTopics/{partnerTopicName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> getByResourceGroup( @@ -84,8 +83,7 @@ Mono> getByResourceGroup( @Headers({"Content-Type: application/json"}) @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/partnerTopics/{partnerTopicName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerTopics/{partnerTopicName}") @ExpectedResponses({200, 201}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> createOrUpdate( @@ -100,8 +98,7 @@ Mono> createOrUpdate( @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/partnerTopics/{partnerTopicName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerTopics/{partnerTopicName}") @ExpectedResponses({200, 202, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> delete( @@ -114,8 +111,7 @@ Mono>> delete( @Headers({"Content-Type: application/json"}) @Patch( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/partnerTopics/{partnerTopicName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerTopics/{partnerTopicName}") @ExpectedResponses({200, 201}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> update( @@ -143,8 +139,7 @@ Mono> list( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/partnerTopics") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerTopics") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByResourceGroup( @@ -159,8 +154,7 @@ Mono> listByResourceGroup( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/partnerTopics/{partnerTopicName}/activate") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerTopics/{partnerTopicName}/activate") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> activate( @@ -174,8 +168,7 @@ Mono> activate( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/partnerTopics/{partnerTopicName}/deactivate") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerTopics/{partnerTopicName}/deactivate") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> deactivate( @@ -209,7 +202,9 @@ Mono> listByResourceGroupNext( } /** - * Get properties of a partner topic. + * Get a partner topic. + * + *

Get properties of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -258,7 +253,9 @@ private Mono> getByResourceGroupWithResponseAsync( } /** - * Get properties of a partner topic. + * Get a partner topic. + * + *

Get properties of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -305,7 +302,9 @@ private Mono> getByResourceGroupWithResponseAsync( } /** - * Get properties of a partner topic. + * Get a partner topic. + * + *

Get properties of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -321,39 +320,45 @@ private Mono getByResourceGroupAsync(String resourceGroupName } /** - * Get properties of a partner topic. + * Get a partner topic. + * + *

Get properties of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a partner topic. + * @return properties of a partner topic along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PartnerTopicInner getByResourceGroup(String resourceGroupName, String partnerTopicName) { - return getByResourceGroupAsync(resourceGroupName, partnerTopicName).block(); + public Response getByResourceGroupWithResponse( + String resourceGroupName, String partnerTopicName, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, partnerTopicName, context).block(); } /** - * Get properties of a partner topic. + * Get a partner topic. + * + *

Get properties of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a partner topic along with {@link Response}. + * @return properties of a partner topic. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse( - String resourceGroupName, String partnerTopicName, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, partnerTopicName, context).block(); + public PartnerTopicInner getByResourceGroup(String resourceGroupName, String partnerTopicName) { + return getByResourceGroupWithResponse(resourceGroupName, partnerTopicName, Context.NONE).getValue(); } /** - * Asynchronously creates a new partner topic with the specified parameters. + * Create a partner topic. + * + *

Asynchronously creates a new partner topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -410,7 +415,9 @@ private Mono> createOrUpdateWithResponseAsync( } /** - * Asynchronously creates a new partner topic with the specified parameters. + * Create a partner topic. + * + *

Asynchronously creates a new partner topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -465,7 +472,9 @@ private Mono> createOrUpdateWithResponseAsync( } /** - * Asynchronously creates a new partner topic with the specified parameters. + * Create a partner topic. + * + *

Asynchronously creates a new partner topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -483,42 +492,49 @@ private Mono createOrUpdateAsync( } /** - * Asynchronously creates a new partner topic with the specified parameters. + * Create a partner topic. + * + *

Asynchronously creates a new partner topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. * @param partnerTopicInfo Partner Topic information. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return event Grid Partner Topic. + * @return event Grid Partner Topic along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PartnerTopicInner createOrUpdate( - String resourceGroupName, String partnerTopicName, PartnerTopicInner partnerTopicInfo) { - return createOrUpdateAsync(resourceGroupName, partnerTopicName, partnerTopicInfo).block(); + public Response createOrUpdateWithResponse( + String resourceGroupName, String partnerTopicName, PartnerTopicInner partnerTopicInfo, Context context) { + return createOrUpdateWithResponseAsync(resourceGroupName, partnerTopicName, partnerTopicInfo, context).block(); } /** - * Asynchronously creates a new partner topic with the specified parameters. + * Create a partner topic. + * + *

Asynchronously creates a new partner topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. * @param partnerTopicInfo Partner Topic information. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return event Grid Partner Topic along with {@link Response}. + * @return event Grid Partner Topic. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceGroupName, String partnerTopicName, PartnerTopicInner partnerTopicInfo, Context context) { - return createOrUpdateWithResponseAsync(resourceGroupName, partnerTopicName, partnerTopicInfo, context).block(); + public PartnerTopicInner createOrUpdate( + String resourceGroupName, String partnerTopicName, PartnerTopicInner partnerTopicInfo) { + return createOrUpdateWithResponse(resourceGroupName, partnerTopicName, partnerTopicInfo, Context.NONE) + .getValue(); } /** - * Delete existing partner topic. + * Delete a partner topic. + * + *

Delete existing partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -565,7 +581,9 @@ private Mono>> deleteWithResponseAsync( } /** - * Delete existing partner topic. + * Delete a partner topic. + * + *

Delete existing partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -610,7 +628,9 @@ private Mono>> deleteWithResponseAsync( } /** - * Delete existing partner topic. + * Delete a partner topic. + * + *

Delete existing partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -629,7 +649,9 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup } /** - * Delete existing partner topic. + * Delete a partner topic. + * + *

Delete existing partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -650,7 +672,9 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Delete existing partner topic. + * Delete a partner topic. + * + *

Delete existing partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -661,11 +685,13 @@ private PollerFlux, Void> beginDeleteAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String resourceGroupName, String partnerTopicName) { - return beginDeleteAsync(resourceGroupName, partnerTopicName).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, partnerTopicName).getSyncPoller(); } /** - * Delete existing partner topic. + * Delete a partner topic. + * + *

Delete existing partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -678,11 +704,13 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String partnerTopicName, Context context) { - return beginDeleteAsync(resourceGroupName, partnerTopicName, context).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, partnerTopicName, context).getSyncPoller(); } /** - * Delete existing partner topic. + * Delete a partner topic. + * + *

Delete existing partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -699,7 +727,9 @@ private Mono deleteAsync(String resourceGroupName, String partnerTopicName } /** - * Delete existing partner topic. + * Delete a partner topic. + * + *

Delete existing partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -717,7 +747,9 @@ private Mono deleteAsync(String resourceGroupName, String partnerTopicName } /** - * Delete existing partner topic. + * Delete a partner topic. + * + *

Delete existing partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -731,7 +763,9 @@ public void delete(String resourceGroupName, String partnerTopicName) { } /** - * Delete existing partner topic. + * Delete a partner topic. + * + *

Delete existing partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -746,7 +780,9 @@ public void delete(String resourceGroupName, String partnerTopicName, Context co } /** - * Asynchronously updates a partner topic with the specified parameters. + * Update a partner topic. + * + *

Asynchronously updates a partner topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -805,7 +841,9 @@ private Mono> updateWithResponseAsync( } /** - * Asynchronously updates a partner topic with the specified parameters. + * Update a partner topic. + * + *

Asynchronously updates a partner topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -865,7 +903,9 @@ private Mono> updateWithResponseAsync( } /** - * Asynchronously updates a partner topic with the specified parameters. + * Update a partner topic. + * + *

Asynchronously updates a partner topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -883,46 +923,53 @@ private Mono updateAsync( } /** - * Asynchronously updates a partner topic with the specified parameters. + * Update a partner topic. + * + *

Asynchronously updates a partner topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. * @param partnerTopicUpdateParameters PartnerTopic update information. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PartnerTopicInner update( - String resourceGroupName, String partnerTopicName, PartnerTopicUpdateParameters partnerTopicUpdateParameters) { - return updateAsync(resourceGroupName, partnerTopicName, partnerTopicUpdateParameters).block(); + public Response updateWithResponse( + String resourceGroupName, + String partnerTopicName, + PartnerTopicUpdateParameters partnerTopicUpdateParameters, + Context context) { + return updateWithResponseAsync(resourceGroupName, partnerTopicName, partnerTopicUpdateParameters, context) + .block(); } /** - * Asynchronously updates a partner topic with the specified parameters. + * Update a partner topic. + * + *

Asynchronously updates a partner topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. * @param partnerTopicUpdateParameters PartnerTopic update information. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response}. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse( - String resourceGroupName, - String partnerTopicName, - PartnerTopicUpdateParameters partnerTopicUpdateParameters, - Context context) { - return updateWithResponseAsync(resourceGroupName, partnerTopicName, partnerTopicUpdateParameters, context) - .block(); + public PartnerTopicInner update( + String resourceGroupName, String partnerTopicName, PartnerTopicUpdateParameters partnerTopicUpdateParameters) { + return updateWithResponse(resourceGroupName, partnerTopicName, partnerTopicUpdateParameters, Context.NONE) + .getValue(); } /** - * List all the partner topics under an Azure subscription. + * List partner topics under an Azure subscription. + * + *

List all the partner topics under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -978,7 +1025,9 @@ private Mono> listSinglePageAsync(String filter } /** - * List all the partner topics under an Azure subscription. + * List partner topics under an Azure subscription. + * + *

List all the partner topics under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -1032,7 +1081,9 @@ private Mono> listSinglePageAsync(String filter } /** - * List all the partner topics under an Azure subscription. + * List partner topics under an Azure subscription. + * + *

List all the partner topics under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -1054,7 +1105,9 @@ private PagedFlux listAsync(String filter, Integer top) { } /** - * List all the partner topics under an Azure subscription. + * List partner topics under an Azure subscription. + * + *

List all the partner topics under an Azure subscription. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1069,7 +1122,9 @@ private PagedFlux listAsync() { } /** - * List all the partner topics under an Azure subscription. + * List partner topics under an Azure subscription. + * + *

List all the partner topics under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -1093,7 +1148,9 @@ private PagedFlux listAsync(String filter, Integer top, Conte } /** - * List all the partner topics under an Azure subscription. + * List partner topics under an Azure subscription. + * + *

List all the partner topics under an Azure subscription. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1107,7 +1164,9 @@ public PagedIterable list() { } /** - * List all the partner topics under an Azure subscription. + * List partner topics under an Azure subscription. + * + *

List all the partner topics under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -1129,7 +1188,9 @@ public PagedIterable list(String filter, Integer top, Context } /** - * List all the partner topics under a resource group. + * List partner topics under a resource group. + * + *

List all the partner topics under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -1192,7 +1253,9 @@ private Mono> listByResourceGroupSinglePageAsyn } /** - * List all the partner topics under a resource group. + * List partner topics under a resource group. + * + *

List all the partner topics under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -1253,7 +1316,9 @@ private Mono> listByResourceGroupSinglePageAsyn } /** - * List all the partner topics under a resource group. + * List partner topics under a resource group. + * + *

List all the partner topics under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -1278,7 +1343,9 @@ private PagedFlux listByResourceGroupAsync( } /** - * List all the partner topics under a resource group. + * List partner topics under a resource group. + * + *

List all the partner topics under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1296,7 +1363,9 @@ private PagedFlux listByResourceGroupAsync(String resourceGro } /** - * List all the partner topics under a resource group. + * List partner topics under a resource group. + * + *

List all the partner topics under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -1322,7 +1391,9 @@ private PagedFlux listByResourceGroupAsync( } /** - * List all the partner topics under a resource group. + * List partner topics under a resource group. + * + *

List all the partner topics under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1338,7 +1409,9 @@ public PagedIterable listByResourceGroup(String resourceGroup } /** - * List all the partner topics under a resource group. + * List partner topics under a resource group. + * + *

List all the partner topics under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -1362,7 +1435,9 @@ public PagedIterable listByResourceGroup( } /** - * Activate a newly created partner topic. + * Activate a partner topic. + * + *

Activate a newly created partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -1411,7 +1486,9 @@ private Mono> activateWithResponseAsync( } /** - * Activate a newly created partner topic. + * Activate a partner topic. + * + *

Activate a newly created partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -1458,7 +1535,9 @@ private Mono> activateWithResponseAsync( } /** - * Activate a newly created partner topic. + * Activate a partner topic. + * + *

Activate a newly created partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -1474,39 +1553,45 @@ private Mono activateAsync(String resourceGroupName, String p } /** - * Activate a newly created partner topic. + * Activate a partner topic. + * + *

Activate a newly created partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return event Grid Partner Topic. + * @return event Grid Partner Topic along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PartnerTopicInner activate(String resourceGroupName, String partnerTopicName) { - return activateAsync(resourceGroupName, partnerTopicName).block(); + public Response activateWithResponse( + String resourceGroupName, String partnerTopicName, Context context) { + return activateWithResponseAsync(resourceGroupName, partnerTopicName, context).block(); } /** - * Activate a newly created partner topic. + * Activate a partner topic. + * + *

Activate a newly created partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return event Grid Partner Topic along with {@link Response}. + * @return event Grid Partner Topic. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response activateWithResponse( - String resourceGroupName, String partnerTopicName, Context context) { - return activateWithResponseAsync(resourceGroupName, partnerTopicName, context).block(); + public PartnerTopicInner activate(String resourceGroupName, String partnerTopicName) { + return activateWithResponse(resourceGroupName, partnerTopicName, Context.NONE).getValue(); } /** - * Deactivate specific partner topic. + * Deactivate a partner topic. + * + *

Deactivate specific partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -1555,7 +1640,9 @@ private Mono> deactivateWithResponseAsync( } /** - * Deactivate specific partner topic. + * Deactivate a partner topic. + * + *

Deactivate specific partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -1602,7 +1689,9 @@ private Mono> deactivateWithResponseAsync( } /** - * Deactivate specific partner topic. + * Deactivate a partner topic. + * + *

Deactivate specific partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -1618,41 +1707,46 @@ private Mono deactivateAsync(String resourceGroupName, String } /** - * Deactivate specific partner topic. + * Deactivate a partner topic. + * + *

Deactivate specific partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return event Grid Partner Topic. + * @return event Grid Partner Topic along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PartnerTopicInner deactivate(String resourceGroupName, String partnerTopicName) { - return deactivateAsync(resourceGroupName, partnerTopicName).block(); + public Response deactivateWithResponse( + String resourceGroupName, String partnerTopicName, Context context) { + return deactivateWithResponseAsync(resourceGroupName, partnerTopicName, context).block(); } /** - * Deactivate specific partner topic. + * Deactivate a partner topic. + * + *

Deactivate specific partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return event Grid Partner Topic along with {@link Response}. + * @return event Grid Partner Topic. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deactivateWithResponse( - String resourceGroupName, String partnerTopicName, Context context) { - return deactivateWithResponseAsync(resourceGroupName, partnerTopicName, context).block(); + public PartnerTopicInner deactivate(String resourceGroupName, String partnerTopicName) { + return deactivateWithResponse(resourceGroupName, partnerTopicName, Context.NONE).getValue(); } /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1689,7 +1783,8 @@ private Mono> listBySubscriptionNextSinglePageA /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1727,7 +1822,8 @@ private Mono> listBySubscriptionNextSinglePageA /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1764,7 +1860,8 @@ private Mono> listByResourceGroupNextSinglePage /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerTopicsImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerTopicsImpl.java index 488882cd5a8a..1bdb4705f3c8 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerTopicsImpl.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerTopicsImpl.java @@ -27,15 +27,6 @@ public PartnerTopicsImpl( this.serviceManager = serviceManager; } - public PartnerTopic getByResourceGroup(String resourceGroupName, String partnerTopicName) { - PartnerTopicInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, partnerTopicName); - if (inner != null) { - return new PartnerTopicImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getByResourceGroupWithResponse( String resourceGroupName, String partnerTopicName, Context context) { Response inner = @@ -51,6 +42,15 @@ public Response getByResourceGroupWithResponse( } } + public PartnerTopic getByResourceGroup(String resourceGroupName, String partnerTopicName) { + PartnerTopicInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, partnerTopicName); + if (inner != null) { + return new PartnerTopicImpl(inner, this.manager()); + } else { + return null; + } + } + public void deleteByResourceGroup(String resourceGroupName, String partnerTopicName) { this.serviceClient().delete(resourceGroupName, partnerTopicName); } @@ -81,15 +81,6 @@ public PagedIterable listByResourceGroup( return Utils.mapPage(inner, inner1 -> new PartnerTopicImpl(inner1, this.manager())); } - public PartnerTopic activate(String resourceGroupName, String partnerTopicName) { - PartnerTopicInner inner = this.serviceClient().activate(resourceGroupName, partnerTopicName); - if (inner != null) { - return new PartnerTopicImpl(inner, this.manager()); - } else { - return null; - } - } - public Response activateWithResponse( String resourceGroupName, String partnerTopicName, Context context) { Response inner = @@ -105,8 +96,8 @@ public Response activateWithResponse( } } - public PartnerTopic deactivate(String resourceGroupName, String partnerTopicName) { - PartnerTopicInner inner = this.serviceClient().deactivate(resourceGroupName, partnerTopicName); + public PartnerTopic activate(String resourceGroupName, String partnerTopicName) { + PartnerTopicInner inner = this.serviceClient().activate(resourceGroupName, partnerTopicName); if (inner != null) { return new PartnerTopicImpl(inner, this.manager()); } else { @@ -129,6 +120,15 @@ public Response deactivateWithResponse( } } + public PartnerTopic deactivate(String resourceGroupName, String partnerTopicName) { + PartnerTopicInner inner = this.serviceClient().deactivate(resourceGroupName, partnerTopicName); + if (inner != null) { + return new PartnerTopicImpl(inner, this.manager()); + } else { + return null; + } + } + public PartnerTopic getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PrivateEndpointConnectionsClientImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PrivateEndpointConnectionsClientImpl.java index c118fe99db2c..a9a9d2abaf9c 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PrivateEndpointConnectionsClientImpl.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PrivateEndpointConnectionsClientImpl.java @@ -66,11 +66,10 @@ public final class PrivateEndpointConnectionsClientImpl implements PrivateEndpoi */ @Host("{$host}") @ServiceInterface(name = "EventGridManagementC") - private interface PrivateEndpointConnectionsService { + public interface PrivateEndpointConnectionsService { @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/{parentType}/{parentName}/privateEndpointConnections/{privateEndpointConnectionName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/{parentType}/{parentName}/privateEndpointConnections/{privateEndpointConnectionName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get( @@ -86,8 +85,7 @@ Mono> get( @Headers({"Content-Type: application/json"}) @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/{parentType}/{parentName}/privateEndpointConnections/{privateEndpointConnectionName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/{parentType}/{parentName}/privateEndpointConnections/{privateEndpointConnectionName}") @ExpectedResponses({200, 201}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> update( @@ -104,8 +102,7 @@ Mono>> update( @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/{parentType}/{parentName}/privateEndpointConnections/{privateEndpointConnectionName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/{parentType}/{parentName}/privateEndpointConnections/{privateEndpointConnectionName}") @ExpectedResponses({202, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> delete( @@ -120,8 +117,7 @@ Mono>> delete( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/{parentType}/{parentName}/privateEndpointConnections") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/{parentType}/{parentName}/privateEndpointConnections") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByResource( @@ -148,7 +144,9 @@ Mono> listByResourceNext( } /** - * Get a specific private endpoint connection under a topic, domain, or partner namespace. + * Get a specific private endpoint connection. + * + *

Get a specific private endpoint connection under a topic, domain, or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -215,7 +213,9 @@ private Mono> getWithResponseAsync( } /** - * Get a specific private endpoint connection under a topic, domain, or partner namespace. + * Get a specific private endpoint connection. + * + *

Get a specific private endpoint connection under a topic, domain, or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -281,7 +281,9 @@ private Mono> getWithResponseAsync( } /** - * Get a specific private endpoint connection under a topic, domain, or partner namespace. + * Get a specific private endpoint connection. + * + *

Get a specific private endpoint connection under a topic, domain, or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -306,7 +308,9 @@ private Mono getAsync( } /** - * Get a specific private endpoint connection under a topic, domain, or partner namespace. + * Get a specific private endpoint connection. + * + *

Get a specific private endpoint connection under a topic, domain, or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -314,22 +318,28 @@ private Mono getAsync( * @param parentName The name of the parent resource (namely, either, the topic name, domain name, or partner * namespace name). * @param privateEndpointConnectionName The name of the private endpoint connection connection. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a specific private endpoint connection under a topic, domain, or partner namespace. + * @return a specific private endpoint connection under a topic, domain, or partner namespace along with {@link + * Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PrivateEndpointConnectionInner get( + public Response getWithResponse( String resourceGroupName, PrivateEndpointConnectionsParentType parentType, String parentName, - String privateEndpointConnectionName) { - return getAsync(resourceGroupName, parentType, parentName, privateEndpointConnectionName).block(); + String privateEndpointConnectionName, + Context context) { + return getWithResponseAsync(resourceGroupName, parentType, parentName, privateEndpointConnectionName, context) + .block(); } /** - * Get a specific private endpoint connection under a topic, domain, or partner namespace. + * Get a specific private endpoint connection. + * + *

Get a specific private endpoint connection under a topic, domain, or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -337,26 +347,25 @@ public PrivateEndpointConnectionInner get( * @param parentName The name of the parent resource (namely, either, the topic name, domain name, or partner * namespace name). * @param privateEndpointConnectionName The name of the private endpoint connection connection. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a specific private endpoint connection under a topic, domain, or partner namespace along with {@link - * Response}. + * @return a specific private endpoint connection under a topic, domain, or partner namespace. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( + public PrivateEndpointConnectionInner get( String resourceGroupName, PrivateEndpointConnectionsParentType parentType, String parentName, - String privateEndpointConnectionName, - Context context) { - return getWithResponseAsync(resourceGroupName, parentType, parentName, privateEndpointConnectionName, context) - .block(); + String privateEndpointConnectionName) { + return getWithResponse(resourceGroupName, parentType, parentName, privateEndpointConnectionName, Context.NONE) + .getValue(); } /** - * Update a specific private endpoint connection under a topic, domain or partner namespace. + * Update a specific private endpoint connection. + * + *

Update a specific private endpoint connection under a topic, domain or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -433,7 +442,9 @@ private Mono>> updateWithResponseAsync( } /** - * Update a specific private endpoint connection under a topic, domain or partner namespace. + * Update a specific private endpoint connection. + * + *

Update a specific private endpoint connection under a topic, domain or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -509,7 +520,9 @@ private Mono>> updateWithResponseAsync( } /** - * Update a specific private endpoint connection under a topic, domain or partner namespace. + * Update a specific private endpoint connection. + * + *

Update a specific private endpoint connection under a topic, domain or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -544,7 +557,9 @@ private PollerFlux, PrivateEndpointCo } /** - * Update a specific private endpoint connection under a topic, domain or partner namespace. + * Update a specific private endpoint connection. + * + *

Update a specific private endpoint connection under a topic, domain or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -587,7 +602,9 @@ private PollerFlux, PrivateEndpointCo } /** - * Update a specific private endpoint connection under a topic, domain or partner namespace. + * Update a specific private endpoint connection. + * + *

Update a specific private endpoint connection under a topic, domain or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -608,13 +625,16 @@ public SyncPoller, PrivateEndpointCon String parentName, String privateEndpointConnectionName, PrivateEndpointConnectionInner privateEndpointConnection) { - return beginUpdateAsync( + return this + .beginUpdateAsync( resourceGroupName, parentType, parentName, privateEndpointConnectionName, privateEndpointConnection) .getSyncPoller(); } /** - * Update a specific private endpoint connection under a topic, domain or partner namespace. + * Update a specific private endpoint connection. + * + *

Update a specific private endpoint connection under a topic, domain or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -637,7 +657,8 @@ public SyncPoller, PrivateEndpointCon String privateEndpointConnectionName, PrivateEndpointConnectionInner privateEndpointConnection, Context context) { - return beginUpdateAsync( + return this + .beginUpdateAsync( resourceGroupName, parentType, parentName, @@ -648,7 +669,9 @@ public SyncPoller, PrivateEndpointCon } /** - * Update a specific private endpoint connection under a topic, domain or partner namespace. + * Update a specific private endpoint connection. + * + *

Update a specific private endpoint connection under a topic, domain or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -676,7 +699,9 @@ private Mono updateAsync( } /** - * Update a specific private endpoint connection under a topic, domain or partner namespace. + * Update a specific private endpoint connection. + * + *

Update a specific private endpoint connection under a topic, domain or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -711,7 +736,9 @@ private Mono updateAsync( } /** - * Update a specific private endpoint connection under a topic, domain or partner namespace. + * Update a specific private endpoint connection. + * + *

Update a specific private endpoint connection under a topic, domain or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -738,7 +765,9 @@ public PrivateEndpointConnectionInner update( } /** - * Update a specific private endpoint connection under a topic, domain or partner namespace. + * Update a specific private endpoint connection. + * + *

Update a specific private endpoint connection under a topic, domain or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -772,7 +801,9 @@ public PrivateEndpointConnectionInner update( } /** - * Delete a specific private endpoint connection under a topic, domain, or partner namespace. + * Delete a specific private endpoint connection. + * + *

Delete a specific private endpoint connection under a topic, domain, or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -836,7 +867,9 @@ private Mono>> deleteWithResponseAsync( } /** - * Delete a specific private endpoint connection under a topic, domain, or partner namespace. + * Delete a specific private endpoint connection. + * + *

Delete a specific private endpoint connection under a topic, domain, or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -899,7 +932,9 @@ private Mono>> deleteWithResponseAsync( } /** - * Delete a specific private endpoint connection under a topic, domain, or partner namespace. + * Delete a specific private endpoint connection. + * + *

Delete a specific private endpoint connection under a topic, domain, or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -927,7 +962,9 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Delete a specific private endpoint connection under a topic, domain, or partner namespace. + * Delete a specific private endpoint connection. + * + *

Delete a specific private endpoint connection under a topic, domain, or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -957,7 +994,9 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Delete a specific private endpoint connection under a topic, domain, or partner namespace. + * Delete a specific private endpoint connection. + * + *

Delete a specific private endpoint connection under a topic, domain, or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -976,12 +1015,15 @@ public SyncPoller, Void> beginDelete( PrivateEndpointConnectionsParentType parentType, String parentName, String privateEndpointConnectionName) { - return beginDeleteAsync(resourceGroupName, parentType, parentName, privateEndpointConnectionName) + return this + .beginDeleteAsync(resourceGroupName, parentType, parentName, privateEndpointConnectionName) .getSyncPoller(); } /** - * Delete a specific private endpoint connection under a topic, domain, or partner namespace. + * Delete a specific private endpoint connection. + * + *

Delete a specific private endpoint connection under a topic, domain, or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -1002,12 +1044,15 @@ public SyncPoller, Void> beginDelete( String parentName, String privateEndpointConnectionName, Context context) { - return beginDeleteAsync(resourceGroupName, parentType, parentName, privateEndpointConnectionName, context) + return this + .beginDeleteAsync(resourceGroupName, parentType, parentName, privateEndpointConnectionName, context) .getSyncPoller(); } /** - * Delete a specific private endpoint connection under a topic, domain, or partner namespace. + * Delete a specific private endpoint connection. + * + *

Delete a specific private endpoint connection under a topic, domain, or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -1032,7 +1077,9 @@ private Mono deleteAsync( } /** - * Delete a specific private endpoint connection under a topic, domain, or partner namespace. + * Delete a specific private endpoint connection. + * + *

Delete a specific private endpoint connection under a topic, domain, or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -1059,7 +1106,9 @@ private Mono deleteAsync( } /** - * Delete a specific private endpoint connection under a topic, domain, or partner namespace. + * Delete a specific private endpoint connection. + * + *

Delete a specific private endpoint connection under a topic, domain, or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -1081,7 +1130,9 @@ public void delete( } /** - * Delete a specific private endpoint connection under a topic, domain, or partner namespace. + * Delete a specific private endpoint connection. + * + *

Delete a specific private endpoint connection under a topic, domain, or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -1105,7 +1156,9 @@ public void delete( } /** - * Get all private endpoint connections under a topic, domain, or partner namespace. + * Lists all private endpoint connections under a resource. + * + *

Get all private endpoint connections under a topic, domain, or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -1184,7 +1237,9 @@ private Mono> listByResourceSingle } /** - * Get all private endpoint connections under a topic, domain, or partner namespace. + * Lists all private endpoint connections under a resource. + * + *

Get all private endpoint connections under a topic, domain, or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -1262,7 +1317,9 @@ private Mono> listByResourceSingle } /** - * Get all private endpoint connections under a topic, domain, or partner namespace. + * Lists all private endpoint connections under a resource. + * + *

Get all private endpoint connections under a topic, domain, or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -1296,7 +1353,9 @@ private PagedFlux listByResourceAsync( } /** - * Get all private endpoint connections under a topic, domain, or partner namespace. + * Lists all private endpoint connections under a resource. + * + *

Get all private endpoint connections under a topic, domain, or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -1320,7 +1379,9 @@ private PagedFlux listByResourceAsync( } /** - * Get all private endpoint connections under a topic, domain, or partner namespace. + * Lists all private endpoint connections under a resource. + * + *

Get all private endpoint connections under a topic, domain, or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -1356,7 +1417,9 @@ private PagedFlux listByResourceAsync( } /** - * Get all private endpoint connections under a topic, domain, or partner namespace. + * Lists all private endpoint connections under a resource. + * + *

Get all private endpoint connections under a topic, domain, or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -1378,7 +1441,9 @@ public PagedIterable listByResource( } /** - * Get all private endpoint connections under a topic, domain, or partner namespace. + * Lists all private endpoint connections under a resource. + * + *

Get all private endpoint connections under a topic, domain, or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -1415,7 +1480,8 @@ public PagedIterable listByResource( /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1451,7 +1517,8 @@ private Mono> listByResourceNextSi /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PrivateEndpointConnectionsImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PrivateEndpointConnectionsImpl.java index 0902cf8cae16..911d984a9baf 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PrivateEndpointConnectionsImpl.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PrivateEndpointConnectionsImpl.java @@ -29,20 +29,6 @@ public PrivateEndpointConnectionsImpl( this.serviceManager = serviceManager; } - public PrivateEndpointConnection get( - String resourceGroupName, - PrivateEndpointConnectionsParentType parentType, - String parentName, - String privateEndpointConnectionName) { - PrivateEndpointConnectionInner inner = - this.serviceClient().get(resourceGroupName, parentType, parentName, privateEndpointConnectionName); - if (inner != null) { - return new PrivateEndpointConnectionImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, PrivateEndpointConnectionsParentType parentType, @@ -64,6 +50,20 @@ public Response getWithResponse( } } + public PrivateEndpointConnection get( + String resourceGroupName, + PrivateEndpointConnectionsParentType parentType, + String parentName, + String privateEndpointConnectionName) { + PrivateEndpointConnectionInner inner = + this.serviceClient().get(resourceGroupName, parentType, parentName, privateEndpointConnectionName); + if (inner != null) { + return new PrivateEndpointConnectionImpl(inner, this.manager()); + } else { + return null; + } + } + public PrivateEndpointConnection update( String resourceGroupName, PrivateEndpointConnectionsParentType parentType, diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PrivateLinkResourcesClientImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PrivateLinkResourcesClientImpl.java index cfe733ed3d42..acdd32ddada4 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PrivateLinkResourcesClientImpl.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PrivateLinkResourcesClientImpl.java @@ -27,6 +27,7 @@ import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.eventgrid.fluent.PrivateLinkResourcesClient; import com.azure.resourcemanager.eventgrid.fluent.models.PrivateLinkResourceInner; +import com.azure.resourcemanager.eventgrid.models.PrivateEndpointConnectionsParentType; import com.azure.resourcemanager.eventgrid.models.PrivateLinkResourcesListResult; import reactor.core.publisher.Mono; @@ -56,18 +57,17 @@ public final class PrivateLinkResourcesClientImpl implements PrivateLinkResource */ @Host("{$host}") @ServiceInterface(name = "EventGridManagementC") - private interface PrivateLinkResourcesService { + public interface PrivateLinkResourcesService { @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/{parentType}/{parentName}/privateLinkResources/{privateLinkResourceName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/{parentType}/{parentName}/privateLinkResources/{privateLinkResourceName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get( @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("parentType") String parentType, + @PathParam("parentType") PrivateEndpointConnectionsParentType parentType, @PathParam("parentName") String parentName, @PathParam("privateLinkResourceName") String privateLinkResourceName, @QueryParam("api-version") String apiVersion, @@ -76,15 +76,14 @@ Mono> get( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/{parentType}/{parentName}/privateLinkResources") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/{parentType}/{parentName}/privateLinkResources") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByResource( @HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("parentType") String parentType, + @PathParam("parentType") PrivateEndpointConnectionsParentType parentType, @PathParam("parentName") String parentName, @QueryParam("api-version") String apiVersion, @QueryParam("$filter") String filter, @@ -104,7 +103,9 @@ Mono> listByResourceNext( } /** - * Get properties of a private link resource. + * Get a private link resource. + * + *

Get properties of a private link resource. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -120,7 +121,10 @@ Mono> listByResourceNext( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( - String resourceGroupName, String parentType, String parentName, String privateLinkResourceName) { + String resourceGroupName, + PrivateEndpointConnectionsParentType parentType, + String parentName, + String privateLinkResourceName) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -167,7 +171,9 @@ private Mono> getWithResponseAsync( } /** - * Get properties of a private link resource. + * Get a private link resource. + * + *

Get properties of a private link resource. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -185,7 +191,7 @@ private Mono> getWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( String resourceGroupName, - String parentType, + PrivateEndpointConnectionsParentType parentType, String parentName, String privateLinkResourceName, Context context) { @@ -232,7 +238,9 @@ private Mono> getWithResponseAsync( } /** - * Get properties of a private link resource. + * Get a private link resource. + * + *

Get properties of a private link resource. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -247,13 +255,18 @@ private Mono> getWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync( - String resourceGroupName, String parentType, String parentName, String privateLinkResourceName) { + String resourceGroupName, + PrivateEndpointConnectionsParentType parentType, + String parentName, + String privateLinkResourceName) { return getWithResponseAsync(resourceGroupName, parentType, parentName, privateLinkResourceName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Get properties of a private link resource. + * Get a private link resource. + * + *

Get properties of a private link resource. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -261,19 +274,27 @@ private Mono getAsync( * @param parentName The name of the parent resource (namely, either, the topic name, domain name, or partner * namespace name). * @param privateLinkResourceName The name of private link resource. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a private link resource. + * @return properties of a private link resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PrivateLinkResourceInner get( - String resourceGroupName, String parentType, String parentName, String privateLinkResourceName) { - return getAsync(resourceGroupName, parentType, parentName, privateLinkResourceName).block(); + public Response getWithResponse( + String resourceGroupName, + PrivateEndpointConnectionsParentType parentType, + String parentName, + String privateLinkResourceName, + Context context) { + return getWithResponseAsync(resourceGroupName, parentType, parentName, privateLinkResourceName, context) + .block(); } /** - * Get properties of a private link resource. + * Get a private link resource. + * + *

Get properties of a private link resource. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -281,25 +302,25 @@ public PrivateLinkResourceInner get( * @param parentName The name of the parent resource (namely, either, the topic name, domain name, or partner * namespace name). * @param privateLinkResourceName The name of private link resource. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a private link resource along with {@link Response}. + * @return properties of a private link resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( + public PrivateLinkResourceInner get( String resourceGroupName, - String parentType, + PrivateEndpointConnectionsParentType parentType, String parentName, - String privateLinkResourceName, - Context context) { - return getWithResponseAsync(resourceGroupName, parentType, parentName, privateLinkResourceName, context) - .block(); + String privateLinkResourceName) { + return getWithResponse(resourceGroupName, parentType, parentName, privateLinkResourceName, Context.NONE) + .getValue(); } /** - * List all the private link resources under a topic, domain, or partner namespace. + * List private link resources under specific topic, domain, or partner namespace. + * + *

List all the private link resources under a topic, domain, or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -322,7 +343,11 @@ public Response getWithResponse( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceSinglePageAsync( - String resourceGroupName, String parentType, String parentName, String filter, Integer top) { + String resourceGroupName, + PrivateEndpointConnectionsParentType parentType, + String parentName, + String filter, + Integer top) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -374,7 +399,9 @@ private Mono> listByResourceSinglePageAs } /** - * List all the private link resources under a topic, domain, or partner namespace. + * List private link resources under specific topic, domain, or partner namespace. + * + *

List all the private link resources under a topic, domain, or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -398,7 +425,12 @@ private Mono> listByResourceSinglePageAs */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceSinglePageAsync( - String resourceGroupName, String parentType, String parentName, String filter, Integer top, Context context) { + String resourceGroupName, + PrivateEndpointConnectionsParentType parentType, + String parentName, + String filter, + Integer top, + Context context) { if (this.client.getEndpoint() == null) { return Mono .error( @@ -447,7 +479,9 @@ private Mono> listByResourceSinglePageAs } /** - * List all the private link resources under a topic, domain, or partner namespace. + * List private link resources under specific topic, domain, or partner namespace. + * + *

List all the private link resources under a topic, domain, or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -469,14 +503,20 @@ private Mono> listByResourceSinglePageAs */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceAsync( - String resourceGroupName, String parentType, String parentName, String filter, Integer top) { + String resourceGroupName, + PrivateEndpointConnectionsParentType parentType, + String parentName, + String filter, + Integer top) { return new PagedFlux<>( () -> listByResourceSinglePageAsync(resourceGroupName, parentType, parentName, filter, top), nextLink -> listByResourceNextSinglePageAsync(nextLink)); } /** - * List all the private link resources under a topic, domain, or partner namespace. + * List private link resources under specific topic, domain, or partner namespace. + * + *

List all the private link resources under a topic, domain, or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -490,7 +530,7 @@ private PagedFlux listByResourceAsync( */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceAsync( - String resourceGroupName, String parentType, String parentName) { + String resourceGroupName, PrivateEndpointConnectionsParentType parentType, String parentName) { final String filter = null; final Integer top = null; return new PagedFlux<>( @@ -499,7 +539,9 @@ private PagedFlux listByResourceAsync( } /** - * List all the private link resources under a topic, domain, or partner namespace. + * List private link resources under specific topic, domain, or partner namespace. + * + *

List all the private link resources under a topic, domain, or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -522,14 +564,21 @@ private PagedFlux listByResourceAsync( */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceAsync( - String resourceGroupName, String parentType, String parentName, String filter, Integer top, Context context) { + String resourceGroupName, + PrivateEndpointConnectionsParentType parentType, + String parentName, + String filter, + Integer top, + Context context) { return new PagedFlux<>( () -> listByResourceSinglePageAsync(resourceGroupName, parentType, parentName, filter, top, context), nextLink -> listByResourceNextSinglePageAsync(nextLink, context)); } /** - * List all the private link resources under a topic, domain, or partner namespace. + * List private link resources under specific topic, domain, or partner namespace. + * + *

List all the private link resources under a topic, domain, or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -543,14 +592,16 @@ private PagedFlux listByResourceAsync( */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResource( - String resourceGroupName, String parentType, String parentName) { + String resourceGroupName, PrivateEndpointConnectionsParentType parentType, String parentName) { final String filter = null; final Integer top = null; return new PagedIterable<>(listByResourceAsync(resourceGroupName, parentType, parentName, filter, top)); } /** - * List all the private link resources under a topic, domain, or partner namespace. + * List private link resources under specific topic, domain, or partner namespace. + * + *

List all the private link resources under a topic, domain, or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -573,7 +624,12 @@ public PagedIterable listByResource( */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listByResource( - String resourceGroupName, String parentType, String parentName, String filter, Integer top, Context context) { + String resourceGroupName, + PrivateEndpointConnectionsParentType parentType, + String parentName, + String filter, + Integer top, + Context context) { return new PagedIterable<>( listByResourceAsync(resourceGroupName, parentType, parentName, filter, top, context)); } @@ -581,7 +637,8 @@ public PagedIterable listByResource( /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -617,7 +674,8 @@ private Mono> listByResourceNextSinglePa /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PrivateLinkResourcesImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PrivateLinkResourcesImpl.java index d7a1eb06fc7b..9b9479a8bcb1 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PrivateLinkResourcesImpl.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PrivateLinkResourcesImpl.java @@ -11,6 +11,7 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.eventgrid.fluent.PrivateLinkResourcesClient; import com.azure.resourcemanager.eventgrid.fluent.models.PrivateLinkResourceInner; +import com.azure.resourcemanager.eventgrid.models.PrivateEndpointConnectionsParentType; import com.azure.resourcemanager.eventgrid.models.PrivateLinkResource; import com.azure.resourcemanager.eventgrid.models.PrivateLinkResources; @@ -27,20 +28,9 @@ public PrivateLinkResourcesImpl( this.serviceManager = serviceManager; } - public PrivateLinkResource get( - String resourceGroupName, String parentType, String parentName, String privateLinkResourceName) { - PrivateLinkResourceInner inner = - this.serviceClient().get(resourceGroupName, parentType, parentName, privateLinkResourceName); - if (inner != null) { - return new PrivateLinkResourceImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, - String parentType, + PrivateEndpointConnectionsParentType parentType, String parentName, String privateLinkResourceName, Context context) { @@ -59,15 +49,34 @@ public Response getWithResponse( } } + public PrivateLinkResource get( + String resourceGroupName, + PrivateEndpointConnectionsParentType parentType, + String parentName, + String privateLinkResourceName) { + PrivateLinkResourceInner inner = + this.serviceClient().get(resourceGroupName, parentType, parentName, privateLinkResourceName); + if (inner != null) { + return new PrivateLinkResourceImpl(inner, this.manager()); + } else { + return null; + } + } + public PagedIterable listByResource( - String resourceGroupName, String parentType, String parentName) { + String resourceGroupName, PrivateEndpointConnectionsParentType parentType, String parentName) { PagedIterable inner = this.serviceClient().listByResource(resourceGroupName, parentType, parentName); return Utils.mapPage(inner, inner1 -> new PrivateLinkResourceImpl(inner1, this.manager())); } public PagedIterable listByResource( - String resourceGroupName, String parentType, String parentName, String filter, Integer top, Context context) { + String resourceGroupName, + PrivateEndpointConnectionsParentType parentType, + String parentName, + String filter, + Integer top, + Context context) { PagedIterable inner = this.serviceClient().listByResource(resourceGroupName, parentType, parentName, filter, top, context); return Utils.mapPage(inner, inner1 -> new PrivateLinkResourceImpl(inner1, this.manager())); diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/SystemTopicEventSubscriptionsClientImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/SystemTopicEventSubscriptionsClientImpl.java index 11cbb56cd12b..e5dfede7d3c9 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/SystemTopicEventSubscriptionsClientImpl.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/SystemTopicEventSubscriptionsClientImpl.java @@ -72,11 +72,10 @@ public final class SystemTopicEventSubscriptionsClientImpl implements SystemTopi */ @Host("{$host}") @ServiceInterface(name = "EventGridManagementC") - private interface SystemTopicEventSubscriptionsService { + public interface SystemTopicEventSubscriptionsService { @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/systemTopics/{systemTopicName}/eventSubscriptions/{eventSubscriptionName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/systemTopics/{systemTopicName}/eventSubscriptions/{eventSubscriptionName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get( @@ -91,8 +90,7 @@ Mono> get( @Headers({"Content-Type: application/json"}) @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/systemTopics/{systemTopicName}/eventSubscriptions/{eventSubscriptionName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/systemTopics/{systemTopicName}/eventSubscriptions/{eventSubscriptionName}") @ExpectedResponses({201}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> createOrUpdate( @@ -108,8 +106,7 @@ Mono>> createOrUpdate( @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/systemTopics/{systemTopicName}/eventSubscriptions/{eventSubscriptionName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/systemTopics/{systemTopicName}/eventSubscriptions/{eventSubscriptionName}") @ExpectedResponses({200, 202, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> delete( @@ -123,8 +120,7 @@ Mono>> delete( @Headers({"Content-Type: application/json"}) @Patch( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/systemTopics/{systemTopicName}/eventSubscriptions/{eventSubscriptionName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/systemTopics/{systemTopicName}/eventSubscriptions/{eventSubscriptionName}") @ExpectedResponses({201}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> update( @@ -140,8 +136,7 @@ Mono>> update( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/systemTopics/{systemTopicName}/eventSubscriptions/{eventSubscriptionName}/getFullUrl") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/systemTopics/{systemTopicName}/eventSubscriptions/{eventSubscriptionName}/getFullUrl") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> getFullUrl( @@ -156,8 +151,7 @@ Mono> getFullUrl( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/systemTopics/{systemTopicName}/eventSubscriptions") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/systemTopics/{systemTopicName}/eventSubscriptions") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listBySystemTopic( @@ -173,8 +167,7 @@ Mono> listBySystemTopic( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/systemTopics/{systemTopicName}/eventSubscriptions/{eventSubscriptionName}/getDeliveryAttributes") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/systemTopics/{systemTopicName}/eventSubscriptions/{eventSubscriptionName}/getDeliveryAttributes") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> getDeliveryAttributes( @@ -199,7 +192,9 @@ Mono> listBySystemTopicNext( } /** - * Get an event subscription. + * Get an event subscription of a system topic. + * + *

Get an event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -255,7 +250,9 @@ private Mono> getWithResponseAsync( } /** - * Get an event subscription. + * Get an event subscription of a system topic. + * + *

Get an event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -309,7 +306,9 @@ private Mono> getWithResponseAsync( } /** - * Get an event subscription. + * Get an event subscription of a system topic. + * + *

Get an event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -328,43 +327,49 @@ private Mono getAsync( } /** - * Get an event subscription. + * Get an event subscription of a system topic. + * + *

Get an event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names must be * between 3 and 100 characters in length and use alphanumeric letters only. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an event subscription. + * @return an event subscription along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public EventSubscriptionInner get(String resourceGroupName, String systemTopicName, String eventSubscriptionName) { - return getAsync(resourceGroupName, systemTopicName, eventSubscriptionName).block(); + public Response getWithResponse( + String resourceGroupName, String systemTopicName, String eventSubscriptionName, Context context) { + return getWithResponseAsync(resourceGroupName, systemTopicName, eventSubscriptionName, context).block(); } /** - * Get an event subscription. + * Get an event subscription of a system topic. + * + *

Get an event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names must be * between 3 and 100 characters in length and use alphanumeric letters only. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an event subscription along with {@link Response}. + * @return an event subscription. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String systemTopicName, String eventSubscriptionName, Context context) { - return getWithResponseAsync(resourceGroupName, systemTopicName, eventSubscriptionName, context).block(); + public EventSubscriptionInner get(String resourceGroupName, String systemTopicName, String eventSubscriptionName) { + return getWithResponse(resourceGroupName, systemTopicName, eventSubscriptionName, Context.NONE).getValue(); } /** - * Asynchronously creates or updates an event subscription with the specified parameters. Existing event + * Create or update an event subscription for a system topic. + * + *

Asynchronously creates or updates an event subscription with the specified parameters. Existing event * subscriptions will be updated with this API. * * @param resourceGroupName The name of the resource group within the user's subscription. @@ -432,7 +437,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Asynchronously creates or updates an event subscription with the specified parameters. Existing event + * Create or update an event subscription for a system topic. + * + *

Asynchronously creates or updates an event subscription with the specified parameters. Existing event * subscriptions will be updated with this API. * * @param resourceGroupName The name of the resource group within the user's subscription. @@ -499,7 +506,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Asynchronously creates or updates an event subscription with the specified parameters. Existing event + * Create or update an event subscription for a system topic. + * + *

Asynchronously creates or updates an event subscription with the specified parameters. Existing event * subscriptions will be updated with this API. * * @param resourceGroupName The name of the resource group within the user's subscription. @@ -532,7 +541,9 @@ private PollerFlux, EventSubscriptionInner> b } /** - * Asynchronously creates or updates an event subscription with the specified parameters. Existing event + * Create or update an event subscription for a system topic. + * + *

Asynchronously creates or updates an event subscription with the specified parameters. Existing event * subscriptions will be updated with this API. * * @param resourceGroupName The name of the resource group within the user's subscription. @@ -568,7 +579,9 @@ private PollerFlux, EventSubscriptionInner> b } /** - * Asynchronously creates or updates an event subscription with the specified parameters. Existing event + * Create or update an event subscription for a system topic. + * + *

Asynchronously creates or updates an event subscription with the specified parameters. Existing event * subscriptions will be updated with this API. * * @param resourceGroupName The name of the resource group within the user's subscription. @@ -587,13 +600,15 @@ public SyncPoller, EventSubscriptionInner> be String systemTopicName, String eventSubscriptionName, EventSubscriptionInner eventSubscriptionInfo) { - return beginCreateOrUpdateAsync( - resourceGroupName, systemTopicName, eventSubscriptionName, eventSubscriptionInfo) + return this + .beginCreateOrUpdateAsync(resourceGroupName, systemTopicName, eventSubscriptionName, eventSubscriptionInfo) .getSyncPoller(); } /** - * Asynchronously creates or updates an event subscription with the specified parameters. Existing event + * Create or update an event subscription for a system topic. + * + *

Asynchronously creates or updates an event subscription with the specified parameters. Existing event * subscriptions will be updated with this API. * * @param resourceGroupName The name of the resource group within the user's subscription. @@ -614,13 +629,16 @@ public SyncPoller, EventSubscriptionInner> be String eventSubscriptionName, EventSubscriptionInner eventSubscriptionInfo, Context context) { - return beginCreateOrUpdateAsync( + return this + .beginCreateOrUpdateAsync( resourceGroupName, systemTopicName, eventSubscriptionName, eventSubscriptionInfo, context) .getSyncPoller(); } /** - * Asynchronously creates or updates an event subscription with the specified parameters. Existing event + * Create or update an event subscription for a system topic. + * + *

Asynchronously creates or updates an event subscription with the specified parameters. Existing event * subscriptions will be updated with this API. * * @param resourceGroupName The name of the resource group within the user's subscription. @@ -646,7 +664,9 @@ private Mono createOrUpdateAsync( } /** - * Asynchronously creates or updates an event subscription with the specified parameters. Existing event + * Create or update an event subscription for a system topic. + * + *

Asynchronously creates or updates an event subscription with the specified parameters. Existing event * subscriptions will be updated with this API. * * @param resourceGroupName The name of the resource group within the user's subscription. @@ -674,7 +694,9 @@ private Mono createOrUpdateAsync( } /** - * Asynchronously creates or updates an event subscription with the specified parameters. Existing event + * Create or update an event subscription for a system topic. + * + *

Asynchronously creates or updates an event subscription with the specified parameters. Existing event * subscriptions will be updated with this API. * * @param resourceGroupName The name of the resource group within the user's subscription. @@ -698,7 +720,9 @@ public EventSubscriptionInner createOrUpdate( } /** - * Asynchronously creates or updates an event subscription with the specified parameters. Existing event + * Create or update an event subscription for a system topic. + * + *

Asynchronously creates or updates an event subscription with the specified parameters. Existing event * subscriptions will be updated with this API. * * @param resourceGroupName The name of the resource group within the user's subscription. @@ -725,7 +749,9 @@ public EventSubscriptionInner createOrUpdate( } /** - * Delete an existing event subscription of a system topic. + * Delete an event subscription of a system topic. + * + *

Delete an existing event subscription of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -779,7 +805,9 @@ private Mono>> deleteWithResponseAsync( } /** - * Delete an existing event subscription of a system topic. + * Delete an event subscription of a system topic. + * + *

Delete an existing event subscription of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -831,7 +859,9 @@ private Mono>> deleteWithResponseAsync( } /** - * Delete an existing event subscription of a system topic. + * Delete an event subscription of a system topic. + * + *

Delete an existing event subscription of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -854,7 +884,9 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Delete an existing event subscription of a system topic. + * Delete an event subscription of a system topic. + * + *

Delete an existing event subscription of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -878,7 +910,9 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Delete an existing event subscription of a system topic. + * Delete an event subscription of a system topic. + * + *

Delete an existing event subscription of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -892,11 +926,13 @@ private PollerFlux, Void> beginDeleteAsync( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String systemTopicName, String eventSubscriptionName) { - return beginDeleteAsync(resourceGroupName, systemTopicName, eventSubscriptionName).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, systemTopicName, eventSubscriptionName).getSyncPoller(); } /** - * Delete an existing event subscription of a system topic. + * Delete an event subscription of a system topic. + * + *

Delete an existing event subscription of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -911,11 +947,15 @@ public SyncPoller, Void> beginDelete( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String systemTopicName, String eventSubscriptionName, Context context) { - return beginDeleteAsync(resourceGroupName, systemTopicName, eventSubscriptionName, context).getSyncPoller(); + return this + .beginDeleteAsync(resourceGroupName, systemTopicName, eventSubscriptionName, context) + .getSyncPoller(); } /** - * Delete an existing event subscription of a system topic. + * Delete an event subscription of a system topic. + * + *

Delete an existing event subscription of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -934,7 +974,9 @@ private Mono deleteAsync(String resourceGroupName, String systemTopicName, } /** - * Delete an existing event subscription of a system topic. + * Delete an event subscription of a system topic. + * + *

Delete an existing event subscription of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -955,7 +997,9 @@ private Mono deleteAsync( } /** - * Delete an existing event subscription of a system topic. + * Delete an event subscription of a system topic. + * + *

Delete an existing event subscription of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -971,7 +1015,9 @@ public void delete(String resourceGroupName, String systemTopicName, String even } /** - * Delete an existing event subscription of a system topic. + * Delete an event subscription of a system topic. + * + *

Delete an existing event subscription of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -989,7 +1035,9 @@ public void delete( } /** - * Update an existing event subscription of a system topic. + * Update event subscription of a system topic. + * + *

Update an existing event subscription of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -1058,7 +1106,9 @@ private Mono>> updateWithResponseAsync( } /** - * Update an existing event subscription of a system topic. + * Update event subscription of a system topic. + * + *

Update an existing event subscription of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -1126,7 +1176,9 @@ private Mono>> updateWithResponseAsync( } /** - * Update an existing event subscription of a system topic. + * Update event subscription of a system topic. + * + *

Update an existing event subscription of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -1158,7 +1210,9 @@ private PollerFlux, EventSubscriptionInner> b } /** - * Update an existing event subscription of a system topic. + * Update event subscription of a system topic. + * + *

Update an existing event subscription of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -1193,7 +1247,9 @@ private PollerFlux, EventSubscriptionInner> b } /** - * Update an existing event subscription of a system topic. + * Update event subscription of a system topic. + * + *

Update an existing event subscription of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -1211,13 +1267,16 @@ public SyncPoller, EventSubscriptionInner> be String systemTopicName, String eventSubscriptionName, EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters) { - return beginUpdateAsync( + return this + .beginUpdateAsync( resourceGroupName, systemTopicName, eventSubscriptionName, eventSubscriptionUpdateParameters) .getSyncPoller(); } /** - * Update an existing event subscription of a system topic. + * Update event subscription of a system topic. + * + *

Update an existing event subscription of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -1237,13 +1296,16 @@ public SyncPoller, EventSubscriptionInner> be String eventSubscriptionName, EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters, Context context) { - return beginUpdateAsync( + return this + .beginUpdateAsync( resourceGroupName, systemTopicName, eventSubscriptionName, eventSubscriptionUpdateParameters, context) .getSyncPoller(); } /** - * Update an existing event subscription of a system topic. + * Update event subscription of a system topic. + * + *

Update an existing event subscription of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -1268,7 +1330,9 @@ private Mono updateAsync( } /** - * Update an existing event subscription of a system topic. + * Update event subscription of a system topic. + * + *

Update an existing event subscription of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -1295,7 +1359,9 @@ private Mono updateAsync( } /** - * Update an existing event subscription of a system topic. + * Update event subscription of a system topic. + * + *

Update an existing event subscription of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -1318,7 +1384,9 @@ public EventSubscriptionInner update( } /** - * Update an existing event subscription of a system topic. + * Update event subscription of a system topic. + * + *

Update an existing event subscription of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -1344,7 +1412,9 @@ public EventSubscriptionInner update( } /** - * Get the full endpoint URL for an event subscription of a system topic. + * Get full URL of an event subscription of a system topic + * + *

Get the full endpoint URL for an event subscription of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -1401,7 +1471,9 @@ private Mono> getFullUrlWithResponseAsyn } /** - * Get the full endpoint URL for an event subscription of a system topic. + * Get full URL of an event subscription of a system topic + * + *

Get the full endpoint URL for an event subscription of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -1456,7 +1528,9 @@ private Mono> getFullUrlWithResponseAsyn } /** - * Get the full endpoint URL for an event subscription of a system topic. + * Get full URL of an event subscription of a system topic + * + *

Get the full endpoint URL for an event subscription of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -1476,44 +1550,51 @@ private Mono getFullUrlAsync( } /** - * Get the full endpoint URL for an event subscription of a system topic. + * Get full URL of an event subscription of a system topic + * + *

Get the full endpoint URL for an event subscription of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names must be * between 3 and 100 characters in length and use alphanumeric letters only. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the full endpoint URL for an event subscription of a system topic. + * @return the full endpoint URL for an event subscription of a system topic along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public EventSubscriptionFullUrlInner getFullUrl( - String resourceGroupName, String systemTopicName, String eventSubscriptionName) { - return getFullUrlAsync(resourceGroupName, systemTopicName, eventSubscriptionName).block(); + public Response getFullUrlWithResponse( + String resourceGroupName, String systemTopicName, String eventSubscriptionName, Context context) { + return getFullUrlWithResponseAsync(resourceGroupName, systemTopicName, eventSubscriptionName, context).block(); } /** - * Get the full endpoint URL for an event subscription of a system topic. + * Get full URL of an event subscription of a system topic + * + *

Get the full endpoint URL for an event subscription of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names must be * between 3 and 100 characters in length and use alphanumeric letters only. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the full endpoint URL for an event subscription of a system topic along with {@link Response}. + * @return the full endpoint URL for an event subscription of a system topic. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getFullUrlWithResponse( - String resourceGroupName, String systemTopicName, String eventSubscriptionName, Context context) { - return getFullUrlWithResponseAsync(resourceGroupName, systemTopicName, eventSubscriptionName, context).block(); + public EventSubscriptionFullUrlInner getFullUrl( + String resourceGroupName, String systemTopicName, String eventSubscriptionName) { + return getFullUrlWithResponse(resourceGroupName, systemTopicName, eventSubscriptionName, Context.NONE) + .getValue(); } /** - * List event subscriptions that belong to a specific system topic. + * List event subscriptions of a system topic. + * + *

List event subscriptions that belong to a specific system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -1582,7 +1663,9 @@ private Mono> listBySystemTopicSinglePageA } /** - * List event subscriptions that belong to a specific system topic. + * List event subscriptions of a system topic. + * + *

List event subscriptions that belong to a specific system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -1649,7 +1732,9 @@ private Mono> listBySystemTopicSinglePageA } /** - * List event subscriptions that belong to a specific system topic. + * List event subscriptions of a system topic. + * + *

List event subscriptions that belong to a specific system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -1675,7 +1760,9 @@ private PagedFlux listBySystemTopicAsync( } /** - * List event subscriptions that belong to a specific system topic. + * List event subscriptions of a system topic. + * + *

List event subscriptions that belong to a specific system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -1694,7 +1781,9 @@ private PagedFlux listBySystemTopicAsync(String resource } /** - * List event subscriptions that belong to a specific system topic. + * List event subscriptions of a system topic. + * + *

List event subscriptions that belong to a specific system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -1721,7 +1810,9 @@ private PagedFlux listBySystemTopicAsync( } /** - * List event subscriptions that belong to a specific system topic. + * List event subscriptions of a system topic. + * + *

List event subscriptions that belong to a specific system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -1738,7 +1829,9 @@ public PagedIterable listBySystemTopic(String resourceGr } /** - * List event subscriptions that belong to a specific system topic. + * List event subscriptions of a system topic. + * + *

List event subscriptions that belong to a specific system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -1763,7 +1856,9 @@ public PagedIterable listBySystemTopic( } /** - * Get all delivery attributes for an event subscription. + * Get delivery attributes for an event subscription. + * + *

Get all delivery attributes for an event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -1820,7 +1915,9 @@ private Mono> getDeliveryAttributesWi } /** - * Get all delivery attributes for an event subscription. + * Get delivery attributes for an event subscription. + * + *

Get all delivery attributes for an event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -1875,7 +1972,9 @@ private Mono> getDeliveryAttributesWi } /** - * Get all delivery attributes for an event subscription. + * Get delivery attributes for an event subscription. + * + *

Get all delivery attributes for an event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -1894,48 +1993,55 @@ private Mono getDeliveryAttributesAsync( } /** - * Get all delivery attributes for an event subscription. + * Get delivery attributes for an event subscription. + * + *

Get all delivery attributes for an event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names must be * between 3 and 100 characters in length and use alphanumeric letters only. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all delivery attributes for an event subscription. + * @return all delivery attributes for an event subscription along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DeliveryAttributeListResultInner getDeliveryAttributes( - String resourceGroupName, String systemTopicName, String eventSubscriptionName) { - return getDeliveryAttributesAsync(resourceGroupName, systemTopicName, eventSubscriptionName).block(); + public Response getDeliveryAttributesWithResponse( + String resourceGroupName, String systemTopicName, String eventSubscriptionName, Context context) { + return getDeliveryAttributesWithResponseAsync( + resourceGroupName, systemTopicName, eventSubscriptionName, context) + .block(); } /** - * Get all delivery attributes for an event subscription. + * Get delivery attributes for an event subscription. + * + *

Get all delivery attributes for an event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names must be * between 3 and 100 characters in length and use alphanumeric letters only. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all delivery attributes for an event subscription along with {@link Response}. + * @return all delivery attributes for an event subscription. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getDeliveryAttributesWithResponse( - String resourceGroupName, String systemTopicName, String eventSubscriptionName, Context context) { - return getDeliveryAttributesWithResponseAsync( - resourceGroupName, systemTopicName, eventSubscriptionName, context) - .block(); + public DeliveryAttributeListResultInner getDeliveryAttributes( + String resourceGroupName, String systemTopicName, String eventSubscriptionName) { + return getDeliveryAttributesWithResponse( + resourceGroupName, systemTopicName, eventSubscriptionName, Context.NONE) + .getValue(); } /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1971,7 +2077,8 @@ private Mono> listBySystemTopicNextSingleP /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/SystemTopicEventSubscriptionsImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/SystemTopicEventSubscriptionsImpl.java index 5ab57a2d839c..f81133421698 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/SystemTopicEventSubscriptionsImpl.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/SystemTopicEventSubscriptionsImpl.java @@ -33,16 +33,6 @@ public SystemTopicEventSubscriptionsImpl( this.serviceManager = serviceManager; } - public EventSubscription get(String resourceGroupName, String systemTopicName, String eventSubscriptionName) { - EventSubscriptionInner inner = - this.serviceClient().get(resourceGroupName, systemTopicName, eventSubscriptionName); - if (inner != null) { - return new EventSubscriptionImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String systemTopicName, String eventSubscriptionName, Context context) { Response inner = @@ -58,6 +48,16 @@ public Response getWithResponse( } } + public EventSubscription get(String resourceGroupName, String systemTopicName, String eventSubscriptionName) { + EventSubscriptionInner inner = + this.serviceClient().get(resourceGroupName, systemTopicName, eventSubscriptionName); + if (inner != null) { + return new EventSubscriptionImpl(inner, this.manager()); + } else { + return null; + } + } + public EventSubscription createOrUpdate( String resourceGroupName, String systemTopicName, @@ -139,17 +139,6 @@ public EventSubscription update( } } - public EventSubscriptionFullUrl getFullUrl( - String resourceGroupName, String systemTopicName, String eventSubscriptionName) { - EventSubscriptionFullUrlInner inner = - this.serviceClient().getFullUrl(resourceGroupName, systemTopicName, eventSubscriptionName); - if (inner != null) { - return new EventSubscriptionFullUrlImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getFullUrlWithResponse( String resourceGroupName, String systemTopicName, String eventSubscriptionName, Context context) { Response inner = @@ -167,6 +156,17 @@ public Response getFullUrlWithResponse( } } + public EventSubscriptionFullUrl getFullUrl( + String resourceGroupName, String systemTopicName, String eventSubscriptionName) { + EventSubscriptionFullUrlInner inner = + this.serviceClient().getFullUrl(resourceGroupName, systemTopicName, eventSubscriptionName); + if (inner != null) { + return new EventSubscriptionFullUrlImpl(inner, this.manager()); + } else { + return null; + } + } + public PagedIterable listBySystemTopic(String resourceGroupName, String systemTopicName) { PagedIterable inner = this.serviceClient().listBySystemTopic(resourceGroupName, systemTopicName); @@ -180,17 +180,6 @@ public PagedIterable listBySystemTopic( return Utils.mapPage(inner, inner1 -> new EventSubscriptionImpl(inner1, this.manager())); } - public DeliveryAttributeListResult getDeliveryAttributes( - String resourceGroupName, String systemTopicName, String eventSubscriptionName) { - DeliveryAttributeListResultInner inner = - this.serviceClient().getDeliveryAttributes(resourceGroupName, systemTopicName, eventSubscriptionName); - if (inner != null) { - return new DeliveryAttributeListResultImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getDeliveryAttributesWithResponse( String resourceGroupName, String systemTopicName, String eventSubscriptionName, Context context) { Response inner = @@ -208,6 +197,17 @@ public Response getDeliveryAttributesWithResponse( } } + public DeliveryAttributeListResult getDeliveryAttributes( + String resourceGroupName, String systemTopicName, String eventSubscriptionName) { + DeliveryAttributeListResultInner inner = + this.serviceClient().getDeliveryAttributes(resourceGroupName, systemTopicName, eventSubscriptionName); + if (inner != null) { + return new DeliveryAttributeListResultImpl(inner, this.manager()); + } else { + return null; + } + } + private SystemTopicEventSubscriptionsClient serviceClient() { return this.innerClient; } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/SystemTopicsClientImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/SystemTopicsClientImpl.java index 54a1a7df25bd..4bf673cf6196 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/SystemTopicsClientImpl.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/SystemTopicsClientImpl.java @@ -65,11 +65,10 @@ public final class SystemTopicsClientImpl implements SystemTopicsClient { */ @Host("{$host}") @ServiceInterface(name = "EventGridManagementC") - private interface SystemTopicsService { + public interface SystemTopicsService { @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/systemTopics/{systemTopicName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/systemTopics/{systemTopicName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> getByResourceGroup( @@ -83,8 +82,7 @@ Mono> getByResourceGroup( @Headers({"Content-Type: application/json"}) @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/systemTopics/{systemTopicName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/systemTopics/{systemTopicName}") @ExpectedResponses({200, 201}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> createOrUpdate( @@ -99,8 +97,7 @@ Mono>> createOrUpdate( @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/systemTopics/{systemTopicName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/systemTopics/{systemTopicName}") @ExpectedResponses({200, 202, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> delete( @@ -113,8 +110,7 @@ Mono>> delete( @Headers({"Content-Type: application/json"}) @Patch( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/systemTopics/{systemTopicName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/systemTopics/{systemTopicName}") @ExpectedResponses({200, 201}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> update( @@ -142,8 +138,7 @@ Mono> list( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid" - + "/systemTopics") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/systemTopics") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByResourceGroup( @@ -178,7 +173,9 @@ Mono> listByResourceGroupNext( } /** - * Get properties of a system topic. + * Get a system topic. + * + *

Get properties of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -227,7 +224,9 @@ private Mono> getByResourceGroupWithResponseAsync( } /** - * Get properties of a system topic. + * Get a system topic. + * + *

Get properties of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -274,7 +273,9 @@ private Mono> getByResourceGroupWithResponseAsync( } /** - * Get properties of a system topic. + * Get a system topic. + * + *

Get properties of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -290,39 +291,45 @@ private Mono getByResourceGroupAsync(String resourceGroupName, } /** - * Get properties of a system topic. + * Get a system topic. + * + *

Get properties of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a system topic. + * @return properties of a system topic along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SystemTopicInner getByResourceGroup(String resourceGroupName, String systemTopicName) { - return getByResourceGroupAsync(resourceGroupName, systemTopicName).block(); + public Response getByResourceGroupWithResponse( + String resourceGroupName, String systemTopicName, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, systemTopicName, context).block(); } /** - * Get properties of a system topic. + * Get a system topic. + * + *

Get properties of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a system topic along with {@link Response}. + * @return properties of a system topic. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse( - String resourceGroupName, String systemTopicName, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, systemTopicName, context).block(); + public SystemTopicInner getByResourceGroup(String resourceGroupName, String systemTopicName) { + return getByResourceGroupWithResponse(resourceGroupName, systemTopicName, Context.NONE).getValue(); } /** - * Asynchronously creates a new system topic with the specified parameters. + * Create a system topic. + * + *

Asynchronously creates a new system topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -379,7 +386,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Asynchronously creates a new system topic with the specified parameters. + * Create a system topic. + * + *

Asynchronously creates a new system topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -434,7 +443,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Asynchronously creates a new system topic with the specified parameters. + * Create a system topic. + * + *

Asynchronously creates a new system topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -460,7 +471,9 @@ private PollerFlux, SystemTopicInner> beginCreateOr } /** - * Asynchronously creates a new system topic with the specified parameters. + * Create a system topic. + * + *

Asynchronously creates a new system topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -484,7 +497,9 @@ private PollerFlux, SystemTopicInner> beginCreateOr } /** - * Asynchronously creates a new system topic with the specified parameters. + * Create a system topic. + * + *

Asynchronously creates a new system topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -497,11 +512,13 @@ private PollerFlux, SystemTopicInner> beginCreateOr @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SystemTopicInner> beginCreateOrUpdate( String resourceGroupName, String systemTopicName, SystemTopicInner systemTopicInfo) { - return beginCreateOrUpdateAsync(resourceGroupName, systemTopicName, systemTopicInfo).getSyncPoller(); + return this.beginCreateOrUpdateAsync(resourceGroupName, systemTopicName, systemTopicInfo).getSyncPoller(); } /** - * Asynchronously creates a new system topic with the specified parameters. + * Create a system topic. + * + *

Asynchronously creates a new system topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -515,11 +532,15 @@ public SyncPoller, SystemTopicInner> beginCreateOrU @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SystemTopicInner> beginCreateOrUpdate( String resourceGroupName, String systemTopicName, SystemTopicInner systemTopicInfo, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, systemTopicName, systemTopicInfo, context).getSyncPoller(); + return this + .beginCreateOrUpdateAsync(resourceGroupName, systemTopicName, systemTopicInfo, context) + .getSyncPoller(); } /** - * Asynchronously creates a new system topic with the specified parameters. + * Create a system topic. + * + *

Asynchronously creates a new system topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -538,7 +559,9 @@ private Mono createOrUpdateAsync( } /** - * Asynchronously creates a new system topic with the specified parameters. + * Create a system topic. + * + *

Asynchronously creates a new system topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -558,7 +581,9 @@ private Mono createOrUpdateAsync( } /** - * Asynchronously creates a new system topic with the specified parameters. + * Create a system topic. + * + *

Asynchronously creates a new system topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -575,7 +600,9 @@ public SystemTopicInner createOrUpdate( } /** - * Asynchronously creates a new system topic with the specified parameters. + * Create a system topic. + * + *

Asynchronously creates a new system topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -593,7 +620,9 @@ public SystemTopicInner createOrUpdate( } /** - * Delete existing system topic. + * Delete a system topic. + * + *

Delete existing system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -639,7 +668,9 @@ private Mono>> deleteWithResponseAsync(String resource } /** - * Delete existing system topic. + * Delete a system topic. + * + *

Delete existing system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -684,7 +715,9 @@ private Mono>> deleteWithResponseAsync( } /** - * Delete existing system topic. + * Delete a system topic. + * + *

Delete existing system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -703,7 +736,9 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup } /** - * Delete existing system topic. + * Delete a system topic. + * + *

Delete existing system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -724,7 +759,9 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Delete existing system topic. + * Delete a system topic. + * + *

Delete existing system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -735,11 +772,13 @@ private PollerFlux, Void> beginDeleteAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String resourceGroupName, String systemTopicName) { - return beginDeleteAsync(resourceGroupName, systemTopicName).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, systemTopicName).getSyncPoller(); } /** - * Delete existing system topic. + * Delete a system topic. + * + *

Delete existing system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -752,11 +791,13 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String systemTopicName, Context context) { - return beginDeleteAsync(resourceGroupName, systemTopicName, context).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, systemTopicName, context).getSyncPoller(); } /** - * Delete existing system topic. + * Delete a system topic. + * + *

Delete existing system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -773,7 +814,9 @@ private Mono deleteAsync(String resourceGroupName, String systemTopicName) } /** - * Delete existing system topic. + * Delete a system topic. + * + *

Delete existing system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -791,7 +834,9 @@ private Mono deleteAsync(String resourceGroupName, String systemTopicName, } /** - * Delete existing system topic. + * Delete a system topic. + * + *

Delete existing system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -805,7 +850,9 @@ public void delete(String resourceGroupName, String systemTopicName) { } /** - * Delete existing system topic. + * Delete a system topic. + * + *

Delete existing system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -820,7 +867,9 @@ public void delete(String resourceGroupName, String systemTopicName, Context con } /** - * Asynchronously updates a system topic with the specified parameters. + * Update a system topic. + * + *

Asynchronously updates a system topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -879,7 +928,9 @@ private Mono>> updateWithResponseAsync( } /** - * Asynchronously updates a system topic with the specified parameters. + * Update a system topic. + * + *

Asynchronously updates a system topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -939,7 +990,9 @@ private Mono>> updateWithResponseAsync( } /** - * Asynchronously updates a system topic with the specified parameters. + * Update a system topic. + * + *

Asynchronously updates a system topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -965,7 +1018,9 @@ private PollerFlux, SystemTopicInner> beginUpdateAs } /** - * Asynchronously updates a system topic with the specified parameters. + * Update a system topic. + * + *

Asynchronously updates a system topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -992,7 +1047,9 @@ private PollerFlux, SystemTopicInner> beginUpdateAs } /** - * Asynchronously updates a system topic with the specified parameters. + * Update a system topic. + * + *

Asynchronously updates a system topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -1005,11 +1062,13 @@ private PollerFlux, SystemTopicInner> beginUpdateAs @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SystemTopicInner> beginUpdate( String resourceGroupName, String systemTopicName, SystemTopicUpdateParameters systemTopicUpdateParameters) { - return beginUpdateAsync(resourceGroupName, systemTopicName, systemTopicUpdateParameters).getSyncPoller(); + return this.beginUpdateAsync(resourceGroupName, systemTopicName, systemTopicUpdateParameters).getSyncPoller(); } /** - * Asynchronously updates a system topic with the specified parameters. + * Update a system topic. + * + *

Asynchronously updates a system topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -1026,12 +1085,15 @@ public SyncPoller, SystemTopicInner> beginUpdate( String systemTopicName, SystemTopicUpdateParameters systemTopicUpdateParameters, Context context) { - return beginUpdateAsync(resourceGroupName, systemTopicName, systemTopicUpdateParameters, context) + return this + .beginUpdateAsync(resourceGroupName, systemTopicName, systemTopicUpdateParameters, context) .getSyncPoller(); } /** - * Asynchronously updates a system topic with the specified parameters. + * Update a system topic. + * + *

Asynchronously updates a system topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -1050,7 +1112,9 @@ private Mono updateAsync( } /** - * Asynchronously updates a system topic with the specified parameters. + * Update a system topic. + * + *

Asynchronously updates a system topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -1073,7 +1137,9 @@ private Mono updateAsync( } /** - * Asynchronously updates a system topic with the specified parameters. + * Update a system topic. + * + *

Asynchronously updates a system topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -1090,7 +1156,9 @@ public SystemTopicInner update( } /** - * Asynchronously updates a system topic with the specified parameters. + * Update a system topic. + * + *

Asynchronously updates a system topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -1111,7 +1179,9 @@ public SystemTopicInner update( } /** - * List all the system topics under an Azure subscription. + * List system topics under an Azure subscription. + * + *

List all the system topics under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -1167,7 +1237,9 @@ private Mono> listSinglePageAsync(String filter, } /** - * List all the system topics under an Azure subscription. + * List system topics under an Azure subscription. + * + *

List all the system topics under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -1221,7 +1293,9 @@ private Mono> listSinglePageAsync(String filter, } /** - * List all the system topics under an Azure subscription. + * List system topics under an Azure subscription. + * + *

List all the system topics under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -1243,7 +1317,9 @@ private PagedFlux listAsync(String filter, Integer top) { } /** - * List all the system topics under an Azure subscription. + * List system topics under an Azure subscription. + * + *

List all the system topics under an Azure subscription. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1258,7 +1334,9 @@ private PagedFlux listAsync() { } /** - * List all the system topics under an Azure subscription. + * List system topics under an Azure subscription. + * + *

List all the system topics under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -1282,7 +1360,9 @@ private PagedFlux listAsync(String filter, Integer top, Contex } /** - * List all the system topics under an Azure subscription. + * List system topics under an Azure subscription. + * + *

List all the system topics under an Azure subscription. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1296,7 +1376,9 @@ public PagedIterable list() { } /** - * List all the system topics under an Azure subscription. + * List system topics under an Azure subscription. + * + *

List all the system topics under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -1318,7 +1400,9 @@ public PagedIterable list(String filter, Integer top, Context } /** - * List all the system topics under a resource group. + * List system topics under a resource group. + * + *

List all the system topics under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -1381,7 +1465,9 @@ private Mono> listByResourceGroupSinglePageAsync } /** - * List all the system topics under a resource group. + * List system topics under a resource group. + * + *

List all the system topics under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -1442,7 +1528,9 @@ private Mono> listByResourceGroupSinglePageAsync } /** - * List all the system topics under a resource group. + * List system topics under a resource group. + * + *

List all the system topics under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -1466,7 +1554,9 @@ private PagedFlux listByResourceGroupAsync(String resourceGrou } /** - * List all the system topics under a resource group. + * List system topics under a resource group. + * + *

List all the system topics under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1484,7 +1574,9 @@ private PagedFlux listByResourceGroupAsync(String resourceGrou } /** - * List all the system topics under a resource group. + * List system topics under a resource group. + * + *

List all the system topics under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -1510,7 +1602,9 @@ private PagedFlux listByResourceGroupAsync( } /** - * List all the system topics under a resource group. + * List system topics under a resource group. + * + *

List all the system topics under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1526,7 +1620,9 @@ public PagedIterable listByResourceGroup(String resourceGroupN } /** - * List all the system topics under a resource group. + * List system topics under a resource group. + * + *

List all the system topics under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -1552,7 +1648,8 @@ public PagedIterable listByResourceGroup( /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1589,7 +1686,8 @@ private Mono> listBySubscriptionNextSinglePageAs /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1627,7 +1725,8 @@ private Mono> listBySubscriptionNextSinglePageAs /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1664,7 +1763,8 @@ private Mono> listByResourceGroupNextSinglePageA /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/SystemTopicsImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/SystemTopicsImpl.java index a65d3279f734..d3e7b011a969 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/SystemTopicsImpl.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/SystemTopicsImpl.java @@ -27,15 +27,6 @@ public SystemTopicsImpl( this.serviceManager = serviceManager; } - public SystemTopic getByResourceGroup(String resourceGroupName, String systemTopicName) { - SystemTopicInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, systemTopicName); - if (inner != null) { - return new SystemTopicImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getByResourceGroupWithResponse( String resourceGroupName, String systemTopicName, Context context) { Response inner = @@ -51,6 +42,15 @@ public Response getByResourceGroupWithResponse( } } + public SystemTopic getByResourceGroup(String resourceGroupName, String systemTopicName) { + SystemTopicInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, systemTopicName); + if (inner != null) { + return new SystemTopicImpl(inner, this.manager()); + } else { + return null; + } + } + public void deleteByResourceGroup(String resourceGroupName, String systemTopicName) { this.serviceClient().delete(resourceGroupName, systemTopicName); } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/TopicEventSubscriptionsClientImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/TopicEventSubscriptionsClientImpl.java index 2d89bdccd5e4..fef739889920 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/TopicEventSubscriptionsClientImpl.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/TopicEventSubscriptionsClientImpl.java @@ -69,11 +69,10 @@ public final class TopicEventSubscriptionsClientImpl implements TopicEventSubscr */ @Host("{$host}") @ServiceInterface(name = "EventGridManagementC") - private interface TopicEventSubscriptionsService { + public interface TopicEventSubscriptionsService { @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics" - + "/{topicName}/eventSubscriptions/{eventSubscriptionName}/getDeliveryAttributes") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}/eventSubscriptions/{eventSubscriptionName}/getDeliveryAttributes") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> getDeliveryAttributes( @@ -88,8 +87,7 @@ Mono> getDeliveryAttributes( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics" - + "/{topicName}/eventSubscriptions/{eventSubscriptionName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}/eventSubscriptions/{eventSubscriptionName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> get( @@ -104,8 +102,7 @@ Mono> get( @Headers({"Content-Type: application/json"}) @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics" - + "/{topicName}/eventSubscriptions/{eventSubscriptionName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}/eventSubscriptions/{eventSubscriptionName}") @ExpectedResponses({200, 201}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> createOrUpdate( @@ -121,8 +118,7 @@ Mono>> createOrUpdate( @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics" - + "/{topicName}/eventSubscriptions/{eventSubscriptionName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}/eventSubscriptions/{eventSubscriptionName}") @ExpectedResponses({200, 202, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> delete( @@ -136,8 +132,7 @@ Mono>> delete( @Headers({"Content-Type: application/json"}) @Patch( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics" - + "/{topicName}/eventSubscriptions/{eventSubscriptionName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}/eventSubscriptions/{eventSubscriptionName}") @ExpectedResponses({201}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> update( @@ -153,8 +148,7 @@ Mono>> update( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics" - + "/{topicName}/eventSubscriptions/{eventSubscriptionName}/getFullUrl") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}/eventSubscriptions/{eventSubscriptionName}/getFullUrl") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> getFullUrl( @@ -169,8 +163,7 @@ Mono> getFullUrl( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics" - + "/{topicName}/eventSubscriptions") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}/eventSubscriptions") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> list( @@ -196,7 +189,9 @@ Mono> listNext( } /** - * Get all delivery attributes for an event subscription for topic. + * Get delivery attributes for an event subscription for topic. + * + *

Get all delivery attributes for an event subscription for topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the domain topic. @@ -251,7 +246,9 @@ private Mono> getDeliveryAttributesWi } /** - * Get all delivery attributes for an event subscription for topic. + * Get delivery attributes for an event subscription for topic. + * + *

Get all delivery attributes for an event subscription for topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the domain topic. @@ -304,7 +301,9 @@ private Mono> getDeliveryAttributesWi } /** - * Get all delivery attributes for an event subscription for topic. + * Get delivery attributes for an event subscription for topic. + * + *

Get all delivery attributes for an event subscription for topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the domain topic. @@ -322,43 +321,50 @@ private Mono getDeliveryAttributesAsync( } /** - * Get all delivery attributes for an event subscription for topic. + * Get delivery attributes for an event subscription for topic. + * + *

Get all delivery attributes for an event subscription for topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the domain topic. * @param eventSubscriptionName Name of the event subscription. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all delivery attributes for an event subscription for topic. + * @return all delivery attributes for an event subscription for topic along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DeliveryAttributeListResultInner getDeliveryAttributes( - String resourceGroupName, String topicName, String eventSubscriptionName) { - return getDeliveryAttributesAsync(resourceGroupName, topicName, eventSubscriptionName).block(); + public Response getDeliveryAttributesWithResponse( + String resourceGroupName, String topicName, String eventSubscriptionName, Context context) { + return getDeliveryAttributesWithResponseAsync(resourceGroupName, topicName, eventSubscriptionName, context) + .block(); } /** - * Get all delivery attributes for an event subscription for topic. + * Get delivery attributes for an event subscription for topic. + * + *

Get all delivery attributes for an event subscription for topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the domain topic. * @param eventSubscriptionName Name of the event subscription. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all delivery attributes for an event subscription for topic along with {@link Response}. + * @return all delivery attributes for an event subscription for topic. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getDeliveryAttributesWithResponse( - String resourceGroupName, String topicName, String eventSubscriptionName, Context context) { - return getDeliveryAttributesWithResponseAsync(resourceGroupName, topicName, eventSubscriptionName, context) - .block(); + public DeliveryAttributeListResultInner getDeliveryAttributes( + String resourceGroupName, String topicName, String eventSubscriptionName) { + return getDeliveryAttributesWithResponse(resourceGroupName, topicName, eventSubscriptionName, Context.NONE) + .getValue(); } /** - * Get properties of an event subscription of a topic. + * Get an event subscription of a topic. + * + *

Get properties of an event subscription of a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the partner topic. @@ -414,7 +420,9 @@ private Mono> getWithResponseAsync( } /** - * Get properties of an event subscription of a topic. + * Get an event subscription of a topic. + * + *

Get properties of an event subscription of a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the partner topic. @@ -468,7 +476,9 @@ private Mono> getWithResponseAsync( } /** - * Get properties of an event subscription of a topic. + * Get an event subscription of a topic. + * + *

Get properties of an event subscription of a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the partner topic. @@ -487,43 +497,49 @@ private Mono getAsync( } /** - * Get properties of an event subscription of a topic. + * Get an event subscription of a topic. + * + *

Get properties of an event subscription of a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the partner topic. * @param eventSubscriptionName Name of the event subscription to be found. Event subscription names must be between * 3 and 100 characters in length and use alphanumeric letters only. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of an event subscription of a topic. + * @return properties of an event subscription of a topic along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public EventSubscriptionInner get(String resourceGroupName, String topicName, String eventSubscriptionName) { - return getAsync(resourceGroupName, topicName, eventSubscriptionName).block(); + public Response getWithResponse( + String resourceGroupName, String topicName, String eventSubscriptionName, Context context) { + return getWithResponseAsync(resourceGroupName, topicName, eventSubscriptionName, context).block(); } /** - * Get properties of an event subscription of a topic. + * Get an event subscription of a topic. + * + *

Get properties of an event subscription of a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the partner topic. * @param eventSubscriptionName Name of the event subscription to be found. Event subscription names must be between * 3 and 100 characters in length and use alphanumeric letters only. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of an event subscription of a topic along with {@link Response}. + * @return properties of an event subscription of a topic. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String topicName, String eventSubscriptionName, Context context) { - return getWithResponseAsync(resourceGroupName, topicName, eventSubscriptionName, context).block(); + public EventSubscriptionInner get(String resourceGroupName, String topicName, String eventSubscriptionName) { + return getWithResponse(resourceGroupName, topicName, eventSubscriptionName, Context.NONE).getValue(); } /** - * Asynchronously creates a new event subscription or updates an existing event subscription. + * Create or update an event subscription to a topic. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the domain topic. @@ -589,7 +605,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Asynchronously creates a new event subscription or updates an existing event subscription. + * Create or update an event subscription to a topic. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the domain topic. @@ -654,7 +672,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Asynchronously creates a new event subscription or updates an existing event subscription. + * Create or update an event subscription to a topic. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the domain topic. @@ -685,7 +705,9 @@ private PollerFlux, EventSubscriptionInner> b } /** - * Asynchronously creates a new event subscription or updates an existing event subscription. + * Create or update an event subscription to a topic. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the domain topic. @@ -720,7 +742,9 @@ private PollerFlux, EventSubscriptionInner> b } /** - * Asynchronously creates a new event subscription or updates an existing event subscription. + * Create or update an event subscription to a topic. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the domain topic. @@ -738,12 +762,15 @@ public SyncPoller, EventSubscriptionInner> be String topicName, String eventSubscriptionName, EventSubscriptionInner eventSubscriptionInfo) { - return beginCreateOrUpdateAsync(resourceGroupName, topicName, eventSubscriptionName, eventSubscriptionInfo) + return this + .beginCreateOrUpdateAsync(resourceGroupName, topicName, eventSubscriptionName, eventSubscriptionInfo) .getSyncPoller(); } /** - * Asynchronously creates a new event subscription or updates an existing event subscription. + * Create or update an event subscription to a topic. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the domain topic. @@ -763,13 +790,16 @@ public SyncPoller, EventSubscriptionInner> be String eventSubscriptionName, EventSubscriptionInner eventSubscriptionInfo, Context context) { - return beginCreateOrUpdateAsync( + return this + .beginCreateOrUpdateAsync( resourceGroupName, topicName, eventSubscriptionName, eventSubscriptionInfo, context) .getSyncPoller(); } /** - * Asynchronously creates a new event subscription or updates an existing event subscription. + * Create or update an event subscription to a topic. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the domain topic. @@ -793,7 +823,9 @@ private Mono createOrUpdateAsync( } /** - * Asynchronously creates a new event subscription or updates an existing event subscription. + * Create or update an event subscription to a topic. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the domain topic. @@ -820,7 +852,9 @@ private Mono createOrUpdateAsync( } /** - * Asynchronously creates a new event subscription or updates an existing event subscription. + * Create or update an event subscription to a topic. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the domain topic. @@ -842,7 +876,9 @@ public EventSubscriptionInner createOrUpdate( } /** - * Asynchronously creates a new event subscription or updates an existing event subscription. + * Create or update an event subscription to a topic. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the domain topic. @@ -867,7 +903,9 @@ public EventSubscriptionInner createOrUpdate( } /** - * Delete an existing event subscription for a topic. + * Delete an event subscription for a topic. + * + *

Delete an existing event subscription for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -920,7 +958,9 @@ private Mono>> deleteWithResponseAsync( } /** - * Delete an existing event subscription for a topic. + * Delete an event subscription for a topic. + * + *

Delete an existing event subscription for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -971,7 +1011,9 @@ private Mono>> deleteWithResponseAsync( } /** - * Delete an existing event subscription for a topic. + * Delete an event subscription for a topic. + * + *

Delete an existing event subscription for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -994,7 +1036,9 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Delete an existing event subscription for a topic. + * Delete an event subscription for a topic. + * + *

Delete an existing event subscription for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -1018,7 +1062,9 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Delete an existing event subscription for a topic. + * Delete an event subscription for a topic. + * + *

Delete an existing event subscription for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -1032,11 +1078,13 @@ private PollerFlux, Void> beginDeleteAsync( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String topicName, String eventSubscriptionName) { - return beginDeleteAsync(resourceGroupName, topicName, eventSubscriptionName).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, topicName, eventSubscriptionName).getSyncPoller(); } /** - * Delete an existing event subscription for a topic. + * Delete an event subscription for a topic. + * + *

Delete an existing event subscription for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -1051,11 +1099,13 @@ public SyncPoller, Void> beginDelete( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String topicName, String eventSubscriptionName, Context context) { - return beginDeleteAsync(resourceGroupName, topicName, eventSubscriptionName, context).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, topicName, eventSubscriptionName, context).getSyncPoller(); } /** - * Delete an existing event subscription for a topic. + * Delete an event subscription for a topic. + * + *

Delete an existing event subscription for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -1074,7 +1124,9 @@ private Mono deleteAsync(String resourceGroupName, String topicName, Strin } /** - * Delete an existing event subscription for a topic. + * Delete an event subscription for a topic. + * + *

Delete an existing event subscription for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -1095,7 +1147,9 @@ private Mono deleteAsync( } /** - * Delete an existing event subscription for a topic. + * Delete an event subscription for a topic. + * + *

Delete an existing event subscription for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -1111,7 +1165,9 @@ public void delete(String resourceGroupName, String topicName, String eventSubsc } /** - * Delete an existing event subscription for a topic. + * Delete an event subscription for a topic. + * + *

Delete an existing event subscription for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -1128,7 +1184,9 @@ public void delete(String resourceGroupName, String topicName, String eventSubsc } /** - * Update an existing event subscription for a topic. + * Update an event subscription for a topic. + * + *

Update an existing event subscription for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the domain. @@ -1195,7 +1253,9 @@ private Mono>> updateWithResponseAsync( } /** - * Update an existing event subscription for a topic. + * Update an event subscription for a topic. + * + *

Update an existing event subscription for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the domain. @@ -1261,7 +1321,9 @@ private Mono>> updateWithResponseAsync( } /** - * Update an existing event subscription for a topic. + * Update an event subscription for a topic. + * + *

Update an existing event subscription for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the domain. @@ -1292,7 +1354,9 @@ private PollerFlux, EventSubscriptionInner> b } /** - * Update an existing event subscription for a topic. + * Update an event subscription for a topic. + * + *

Update an existing event subscription for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the domain. @@ -1326,7 +1390,9 @@ private PollerFlux, EventSubscriptionInner> b } /** - * Update an existing event subscription for a topic. + * Update an event subscription for a topic. + * + *

Update an existing event subscription for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the domain. @@ -1343,12 +1409,15 @@ public SyncPoller, EventSubscriptionInner> be String topicName, String eventSubscriptionName, EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters) { - return beginUpdateAsync(resourceGroupName, topicName, eventSubscriptionName, eventSubscriptionUpdateParameters) + return this + .beginUpdateAsync(resourceGroupName, topicName, eventSubscriptionName, eventSubscriptionUpdateParameters) .getSyncPoller(); } /** - * Update an existing event subscription for a topic. + * Update an event subscription for a topic. + * + *

Update an existing event subscription for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the domain. @@ -1367,13 +1436,16 @@ public SyncPoller, EventSubscriptionInner> be String eventSubscriptionName, EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters, Context context) { - return beginUpdateAsync( + return this + .beginUpdateAsync( resourceGroupName, topicName, eventSubscriptionName, eventSubscriptionUpdateParameters, context) .getSyncPoller(); } /** - * Update an existing event subscription for a topic. + * Update an event subscription for a topic. + * + *

Update an existing event subscription for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the domain. @@ -1396,7 +1468,9 @@ private Mono updateAsync( } /** - * Update an existing event subscription for a topic. + * Update an event subscription for a topic. + * + *

Update an existing event subscription for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the domain. @@ -1422,7 +1496,9 @@ private Mono updateAsync( } /** - * Update an existing event subscription for a topic. + * Update an event subscription for a topic. + * + *

Update an existing event subscription for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the domain. @@ -1444,7 +1520,9 @@ public EventSubscriptionInner update( } /** - * Update an existing event subscription for a topic. + * Update an event subscription for a topic. + * + *

Update an existing event subscription for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the domain. @@ -1469,7 +1547,9 @@ public EventSubscriptionInner update( } /** - * Get the full endpoint URL for an event subscription for topic. + * Get full URL of an event subscription for topic. + * + *

Get the full endpoint URL for an event subscription for topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the domain topic. @@ -1524,7 +1604,9 @@ private Mono> getFullUrlWithResponseAsyn } /** - * Get the full endpoint URL for an event subscription for topic. + * Get full URL of an event subscription for topic. + * + *

Get the full endpoint URL for an event subscription for topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the domain topic. @@ -1577,7 +1659,9 @@ private Mono> getFullUrlWithResponseAsyn } /** - * Get the full endpoint URL for an event subscription for topic. + * Get full URL of an event subscription for topic. + * + *

Get the full endpoint URL for an event subscription for topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the domain topic. @@ -1595,42 +1679,48 @@ private Mono getFullUrlAsync( } /** - * Get the full endpoint URL for an event subscription for topic. + * Get full URL of an event subscription for topic. + * + *

Get the full endpoint URL for an event subscription for topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the domain topic. * @param eventSubscriptionName Name of the event subscription. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the full endpoint URL for an event subscription for topic. + * @return the full endpoint URL for an event subscription for topic along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public EventSubscriptionFullUrlInner getFullUrl( - String resourceGroupName, String topicName, String eventSubscriptionName) { - return getFullUrlAsync(resourceGroupName, topicName, eventSubscriptionName).block(); + public Response getFullUrlWithResponse( + String resourceGroupName, String topicName, String eventSubscriptionName, Context context) { + return getFullUrlWithResponseAsync(resourceGroupName, topicName, eventSubscriptionName, context).block(); } /** - * Get the full endpoint URL for an event subscription for topic. + * Get full URL of an event subscription for topic. + * + *

Get the full endpoint URL for an event subscription for topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the domain topic. * @param eventSubscriptionName Name of the event subscription. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the full endpoint URL for an event subscription for topic along with {@link Response}. + * @return the full endpoint URL for an event subscription for topic. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getFullUrlWithResponse( - String resourceGroupName, String topicName, String eventSubscriptionName, Context context) { - return getFullUrlWithResponseAsync(resourceGroupName, topicName, eventSubscriptionName, context).block(); + public EventSubscriptionFullUrlInner getFullUrl( + String resourceGroupName, String topicName, String eventSubscriptionName) { + return getFullUrlWithResponse(resourceGroupName, topicName, eventSubscriptionName, Context.NONE).getValue(); } /** - * List all event subscriptions that have been created for a specific topic. + * List all event subscriptions for a specific topic. + * + *

List all event subscriptions that have been created for a specific topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -1698,7 +1788,9 @@ private Mono> listSinglePageAsync( } /** - * List all event subscriptions that have been created for a specific topic. + * List all event subscriptions for a specific topic. + * + *

List all event subscriptions that have been created for a specific topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -1764,7 +1856,9 @@ private Mono> listSinglePageAsync( } /** - * List all event subscriptions that have been created for a specific topic. + * List all event subscriptions for a specific topic. + * + *

List all event subscriptions that have been created for a specific topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -1790,7 +1884,9 @@ private PagedFlux listAsync( } /** - * List all event subscriptions that have been created for a specific topic. + * List all event subscriptions for a specific topic. + * + *

List all event subscriptions that have been created for a specific topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -1809,7 +1905,9 @@ private PagedFlux listAsync(String resourceGroupName, St } /** - * List all event subscriptions that have been created for a specific topic. + * List all event subscriptions for a specific topic. + * + *

List all event subscriptions that have been created for a specific topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -1836,7 +1934,9 @@ private PagedFlux listAsync( } /** - * List all event subscriptions that have been created for a specific topic. + * List all event subscriptions for a specific topic. + * + *

List all event subscriptions that have been created for a specific topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -1853,7 +1953,9 @@ public PagedIterable list(String resourceGroupName, Stri } /** - * List all event subscriptions that have been created for a specific topic. + * List all event subscriptions for a specific topic. + * + *

List all event subscriptions that have been created for a specific topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -1880,7 +1982,8 @@ public PagedIterable list( /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1916,7 +2019,8 @@ private Mono> listNextSinglePageAsync(Stri /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/TopicEventSubscriptionsImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/TopicEventSubscriptionsImpl.java index f17c40ac130c..aac8ec27c9f7 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/TopicEventSubscriptionsImpl.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/TopicEventSubscriptionsImpl.java @@ -32,17 +32,6 @@ public TopicEventSubscriptionsImpl( this.serviceManager = serviceManager; } - public DeliveryAttributeListResult getDeliveryAttributes( - String resourceGroupName, String topicName, String eventSubscriptionName) { - DeliveryAttributeListResultInner inner = - this.serviceClient().getDeliveryAttributes(resourceGroupName, topicName, eventSubscriptionName); - if (inner != null) { - return new DeliveryAttributeListResultImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getDeliveryAttributesWithResponse( String resourceGroupName, String topicName, String eventSubscriptionName, Context context) { Response inner = @@ -60,10 +49,12 @@ public Response getDeliveryAttributesWithResponse( } } - public EventSubscription get(String resourceGroupName, String topicName, String eventSubscriptionName) { - EventSubscriptionInner inner = this.serviceClient().get(resourceGroupName, topicName, eventSubscriptionName); + public DeliveryAttributeListResult getDeliveryAttributes( + String resourceGroupName, String topicName, String eventSubscriptionName) { + DeliveryAttributeListResultInner inner = + this.serviceClient().getDeliveryAttributes(resourceGroupName, topicName, eventSubscriptionName); if (inner != null) { - return new EventSubscriptionImpl(inner, this.manager()); + return new DeliveryAttributeListResultImpl(inner, this.manager()); } else { return null; } @@ -84,6 +75,15 @@ public Response getWithResponse( } } + public EventSubscription get(String resourceGroupName, String topicName, String eventSubscriptionName) { + EventSubscriptionInner inner = this.serviceClient().get(resourceGroupName, topicName, eventSubscriptionName); + if (inner != null) { + return new EventSubscriptionImpl(inner, this.manager()); + } else { + return null; + } + } + public void delete(String resourceGroupName, String topicName, String eventSubscriptionName) { this.serviceClient().delete(resourceGroupName, topicName, eventSubscriptionName); } @@ -92,17 +92,6 @@ public void delete(String resourceGroupName, String topicName, String eventSubsc this.serviceClient().delete(resourceGroupName, topicName, eventSubscriptionName, context); } - public EventSubscriptionFullUrl getFullUrl( - String resourceGroupName, String topicName, String eventSubscriptionName) { - EventSubscriptionFullUrlInner inner = - this.serviceClient().getFullUrl(resourceGroupName, topicName, eventSubscriptionName); - if (inner != null) { - return new EventSubscriptionFullUrlImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getFullUrlWithResponse( String resourceGroupName, String topicName, String eventSubscriptionName, Context context) { Response inner = @@ -118,6 +107,17 @@ public Response getFullUrlWithResponse( } } + public EventSubscriptionFullUrl getFullUrl( + String resourceGroupName, String topicName, String eventSubscriptionName) { + EventSubscriptionFullUrlInner inner = + this.serviceClient().getFullUrl(resourceGroupName, topicName, eventSubscriptionName); + if (inner != null) { + return new EventSubscriptionFullUrlImpl(inner, this.manager()); + } else { + return null; + } + } + public PagedIterable list(String resourceGroupName, String topicName) { PagedIterable inner = this.serviceClient().list(resourceGroupName, topicName); return Utils.mapPage(inner, inner1 -> new EventSubscriptionImpl(inner1, this.manager())); diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/TopicImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/TopicImpl.java index 260352a2b106..3e8be5dc8368 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/TopicImpl.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/TopicImpl.java @@ -225,14 +225,14 @@ public Topic refresh(Context context) { return this; } - public TopicSharedAccessKeys listSharedAccessKeys() { - return serviceManager.topics().listSharedAccessKeys(resourceGroupName, topicName); - } - public Response listSharedAccessKeysWithResponse(Context context) { return serviceManager.topics().listSharedAccessKeysWithResponse(resourceGroupName, topicName, context); } + public TopicSharedAccessKeys listSharedAccessKeys() { + return serviceManager.topics().listSharedAccessKeys(resourceGroupName, topicName); + } + public TopicSharedAccessKeys regenerateKey(TopicRegenerateKeyRequest regenerateKeyRequest) { return serviceManager.topics().regenerateKey(resourceGroupName, topicName, regenerateKeyRequest); } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/TopicTypesClientImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/TopicTypesClientImpl.java index 37096dcad7cb..b3ec8bf35e75 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/TopicTypesClientImpl.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/TopicTypesClientImpl.java @@ -57,7 +57,7 @@ public final class TopicTypesClientImpl implements TopicTypesClient { */ @Host("{$host}") @ServiceInterface(name = "EventGridManagementC") - private interface TopicTypesService { + public interface TopicTypesService { @Headers({"Content-Type: application/json"}) @Get("/providers/Microsoft.EventGrid/topicTypes") @ExpectedResponses({200}) @@ -92,7 +92,9 @@ Mono> listEventTypes( } /** - * List all registered topic types. + * List topic types. + * + *

List all registered topic types. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -119,7 +121,9 @@ private Mono> listSinglePageAsync() { } /** - * List all registered topic types. + * List topic types. + * + *

List all registered topic types. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -147,7 +151,9 @@ private Mono> listSinglePageAsync(Context cont } /** - * List all registered topic types. + * List topic types. + * + *

List all registered topic types. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -159,7 +165,9 @@ private PagedFlux listAsync() { } /** - * List all registered topic types. + * List topic types. + * + *

List all registered topic types. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -173,7 +181,9 @@ private PagedFlux listAsync(Context context) { } /** - * List all registered topic types. + * List topic types. + * + *

List all registered topic types. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -185,7 +195,9 @@ public PagedIterable list() { } /** - * List all registered topic types. + * List topic types. + * + *

List all registered topic types. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -199,7 +211,9 @@ public PagedIterable list(Context context) { } /** - * Get information about a topic type. + * Get a topic type. + * + *

Get information about a topic type. * * @param topicTypeName Name of the topic type. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -227,7 +241,9 @@ private Mono> getWithResponseAsync(String topicType } /** - * Get information about a topic type. + * Get a topic type. + * + *

Get information about a topic type. * * @param topicTypeName Name of the topic type. * @param context The context to associate with this operation. @@ -253,7 +269,9 @@ private Mono> getWithResponseAsync(String topicType } /** - * Get information about a topic type. + * Get a topic type. + * + *

Get information about a topic type. * * @param topicTypeName Name of the topic type. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -267,36 +285,42 @@ private Mono getAsync(String topicTypeName) { } /** - * Get information about a topic type. + * Get a topic type. + * + *

Get information about a topic type. * * @param topicTypeName Name of the topic type. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about a topic type. + * @return information about a topic type along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public TopicTypeInfoInner get(String topicTypeName) { - return getAsync(topicTypeName).block(); + public Response getWithResponse(String topicTypeName, Context context) { + return getWithResponseAsync(topicTypeName, context).block(); } /** - * Get information about a topic type. + * Get a topic type. + * + *

Get information about a topic type. * * @param topicTypeName Name of the topic type. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about a topic type along with {@link Response}. + * @return information about a topic type. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String topicTypeName, Context context) { - return getWithResponseAsync(topicTypeName, context).block(); + public TopicTypeInfoInner get(String topicTypeName) { + return getWithResponse(topicTypeName, Context.NONE).getValue(); } /** - * List event types for a topic type. + * List event types. + * + *

List event types for a topic type. * * @param topicTypeName Name of the topic type. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -331,7 +355,9 @@ private Mono> listEventTypesSinglePageAsync(String } /** - * List event types for a topic type. + * List event types. + * + *

List event types for a topic type. * * @param topicTypeName Name of the topic type. * @param context The context to associate with this operation. @@ -363,7 +389,9 @@ private Mono> listEventTypesSinglePageAsync(String } /** - * List event types for a topic type. + * List event types. + * + *

List event types for a topic type. * * @param topicTypeName Name of the topic type. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -377,7 +405,9 @@ private PagedFlux listEventTypesAsync(String topicTypeName) { } /** - * List event types for a topic type. + * List event types. + * + *

List event types for a topic type. * * @param topicTypeName Name of the topic type. * @param context The context to associate with this operation. @@ -392,7 +422,9 @@ private PagedFlux listEventTypesAsync(String topicTypeName, Cont } /** - * List event types for a topic type. + * List event types. + * + *

List event types for a topic type. * * @param topicTypeName Name of the topic type. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -406,7 +438,9 @@ public PagedIterable listEventTypes(String topicTypeName) { } /** - * List event types for a topic type. + * List event types. + * + *

List event types for a topic type. * * @param topicTypeName Name of the topic type. * @param context The context to associate with this operation. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/TopicTypesImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/TopicTypesImpl.java index 3bb53536c894..fa82346092ab 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/TopicTypesImpl.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/TopicTypesImpl.java @@ -39,15 +39,6 @@ public PagedIterable list(Context context) { return Utils.mapPage(inner, inner1 -> new TopicTypeInfoImpl(inner1, this.manager())); } - public TopicTypeInfo get(String topicTypeName) { - TopicTypeInfoInner inner = this.serviceClient().get(topicTypeName); - if (inner != null) { - return new TopicTypeInfoImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse(String topicTypeName, Context context) { Response inner = this.serviceClient().getWithResponse(topicTypeName, context); if (inner != null) { @@ -61,6 +52,15 @@ public Response getWithResponse(String topicTypeName, Context con } } + public TopicTypeInfo get(String topicTypeName) { + TopicTypeInfoInner inner = this.serviceClient().get(topicTypeName); + if (inner != null) { + return new TopicTypeInfoImpl(inner, this.manager()); + } else { + return null; + } + } + public PagedIterable listEventTypes(String topicTypeName) { PagedIterable inner = this.serviceClient().listEventTypes(topicTypeName); return Utils.mapPage(inner, inner1 -> new EventTypeImpl(inner1, this.manager())); diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/TopicsClientImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/TopicsClientImpl.java index bbb111022b1f..982142212efe 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/TopicsClientImpl.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/TopicsClientImpl.java @@ -69,11 +69,10 @@ public final class TopicsClientImpl implements TopicsClient { */ @Host("{$host}") @ServiceInterface(name = "EventGridManagementC") - private interface TopicsService { + public interface TopicsService { @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics" - + "/{topicName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> getByResourceGroup( @@ -87,8 +86,7 @@ Mono> getByResourceGroup( @Headers({"Content-Type: application/json"}) @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics" - + "/{topicName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}") @ExpectedResponses({201}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> createOrUpdate( @@ -103,8 +101,7 @@ Mono>> createOrUpdate( @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics" - + "/{topicName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}") @ExpectedResponses({202, 204}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> delete( @@ -117,8 +114,7 @@ Mono>> delete( @Headers({"Content-Type: application/json"}) @Patch( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics" - + "/{topicName}") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}") @ExpectedResponses({200, 201}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> update( @@ -160,8 +156,7 @@ Mono> listByResourceGroup( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics" - + "/{topicName}/listKeys") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}/listKeys") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listSharedAccessKeys( @@ -175,8 +170,7 @@ Mono> listSharedAccessKeys( @Headers({"Content-Type: application/json"}) @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics" - + "/{topicName}/regenerateKey") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}/regenerateKey") @ExpectedResponses({200, 202}) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> regenerateKey( @@ -191,8 +185,7 @@ Mono>> regenerateKey( @Headers({"Content-Type: application/json"}) @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{providerNamespace}" - + "/{resourceTypeName}/{resourceName}/providers/Microsoft.EventGrid/eventTypes") + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{providerNamespace}/{resourceTypeName}/{resourceName}/providers/Microsoft.EventGrid/eventTypes") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listEventTypes( @@ -228,7 +221,9 @@ Mono> listByResourceGroupNext( } /** - * Get properties of a topic. + * Get a topic. + * + *

Get properties of a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -275,7 +270,9 @@ private Mono> getByResourceGroupWithResponseAsync(String re } /** - * Get properties of a topic. + * Get a topic. + * + *

Get properties of a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -321,7 +318,9 @@ private Mono> getByResourceGroupWithResponseAsync( } /** - * Get properties of a topic. + * Get a topic. + * + *

Get properties of a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -337,39 +336,45 @@ private Mono getByResourceGroupAsync(String resourceGroupName, Strin } /** - * Get properties of a topic. + * Get a topic. + * + *

Get properties of a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a topic. + * @return properties of a topic along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public TopicInner getByResourceGroup(String resourceGroupName, String topicName) { - return getByResourceGroupAsync(resourceGroupName, topicName).block(); + public Response getByResourceGroupWithResponse( + String resourceGroupName, String topicName, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, topicName, context).block(); } /** - * Get properties of a topic. + * Get a topic. + * + *

Get properties of a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a topic along with {@link Response}. + * @return properties of a topic. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse( - String resourceGroupName, String topicName, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, topicName, context).block(); + public TopicInner getByResourceGroup(String resourceGroupName, String topicName) { + return getByResourceGroupWithResponse(resourceGroupName, topicName, Context.NONE).getValue(); } /** - * Asynchronously creates a new topic with the specified parameters. + * Create a topic. + * + *

Asynchronously creates a new topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -424,7 +429,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Asynchronously creates a new topic with the specified parameters. + * Create a topic. + * + *

Asynchronously creates a new topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -477,7 +484,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Asynchronously creates a new topic with the specified parameters. + * Create a topic. + * + *

Asynchronously creates a new topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -499,7 +508,9 @@ private PollerFlux, TopicInner> beginCreateOrUpdateAsync( } /** - * Asynchronously creates a new topic with the specified parameters. + * Create a topic. + * + *

Asynchronously creates a new topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -523,7 +534,9 @@ private PollerFlux, TopicInner> beginCreateOrUpdateAsync( } /** - * Asynchronously creates a new topic with the specified parameters. + * Create a topic. + * + *

Asynchronously creates a new topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -536,11 +549,13 @@ private PollerFlux, TopicInner> beginCreateOrUpdateAsync( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, TopicInner> beginCreateOrUpdate( String resourceGroupName, String topicName, TopicInner topicInfo) { - return beginCreateOrUpdateAsync(resourceGroupName, topicName, topicInfo).getSyncPoller(); + return this.beginCreateOrUpdateAsync(resourceGroupName, topicName, topicInfo).getSyncPoller(); } /** - * Asynchronously creates a new topic with the specified parameters. + * Create a topic. + * + *

Asynchronously creates a new topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -554,11 +569,13 @@ public SyncPoller, TopicInner> beginCreateOrUpdate( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, TopicInner> beginCreateOrUpdate( String resourceGroupName, String topicName, TopicInner topicInfo, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, topicName, topicInfo, context).getSyncPoller(); + return this.beginCreateOrUpdateAsync(resourceGroupName, topicName, topicInfo, context).getSyncPoller(); } /** - * Asynchronously creates a new topic with the specified parameters. + * Create a topic. + * + *

Asynchronously creates a new topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -576,7 +593,9 @@ private Mono createOrUpdateAsync(String resourceGroupName, String to } /** - * Asynchronously creates a new topic with the specified parameters. + * Create a topic. + * + *

Asynchronously creates a new topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -596,7 +615,9 @@ private Mono createOrUpdateAsync( } /** - * Asynchronously creates a new topic with the specified parameters. + * Create a topic. + * + *

Asynchronously creates a new topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -612,7 +633,9 @@ public TopicInner createOrUpdate(String resourceGroupName, String topicName, Top } /** - * Asynchronously creates a new topic with the specified parameters. + * Create a topic. + * + *

Asynchronously creates a new topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -630,7 +653,9 @@ public TopicInner createOrUpdate( } /** - * Delete existing topic. + * Delete a topic. + * + *

Delete existing topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -675,7 +700,9 @@ private Mono>> deleteWithResponseAsync(String resource } /** - * Delete existing topic. + * Delete a topic. + * + *

Delete existing topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -719,7 +746,9 @@ private Mono>> deleteWithResponseAsync( } /** - * Delete existing topic. + * Delete a topic. + * + *

Delete existing topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -738,7 +767,9 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup } /** - * Delete existing topic. + * Delete a topic. + * + *

Delete existing topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -759,7 +790,9 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Delete existing topic. + * Delete a topic. + * + *

Delete existing topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -770,11 +803,13 @@ private PollerFlux, Void> beginDeleteAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String resourceGroupName, String topicName) { - return beginDeleteAsync(resourceGroupName, topicName).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, topicName).getSyncPoller(); } /** - * Delete existing topic. + * Delete a topic. + * + *

Delete existing topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -786,11 +821,13 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String resourceGroupName, String topicName, Context context) { - return beginDeleteAsync(resourceGroupName, topicName, context).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, topicName, context).getSyncPoller(); } /** - * Delete existing topic. + * Delete a topic. + * + *

Delete existing topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -805,7 +842,9 @@ private Mono deleteAsync(String resourceGroupName, String topicName) { } /** - * Delete existing topic. + * Delete a topic. + * + *

Delete existing topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -823,7 +862,9 @@ private Mono deleteAsync(String resourceGroupName, String topicName, Conte } /** - * Delete existing topic. + * Delete a topic. + * + *

Delete existing topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -837,7 +878,9 @@ public void delete(String resourceGroupName, String topicName) { } /** - * Delete existing topic. + * Delete a topic. + * + *

Delete existing topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -852,7 +895,9 @@ public void delete(String resourceGroupName, String topicName, Context context) } /** - * Asynchronously updates a topic with the specified parameters. + * Update a topic. + * + *

Asynchronously updates a topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -908,7 +953,9 @@ private Mono>> updateWithResponseAsync( } /** - * Asynchronously updates a topic with the specified parameters. + * Update a topic. + * + *

Asynchronously updates a topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -962,7 +1009,9 @@ private Mono>> updateWithResponseAsync( } /** - * Asynchronously updates a topic with the specified parameters. + * Update a topic. + * + *

Asynchronously updates a topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -984,7 +1033,9 @@ private PollerFlux, TopicInner> beginUpdateAsync( } /** - * Asynchronously updates a topic with the specified parameters. + * Update a topic. + * + *

Asynchronously updates a topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -1008,7 +1059,9 @@ private PollerFlux, TopicInner> beginUpdateAsync( } /** - * Asynchronously updates a topic with the specified parameters. + * Update a topic. + * + *

Asynchronously updates a topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -1021,11 +1074,13 @@ private PollerFlux, TopicInner> beginUpdateAsync( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, TopicInner> beginUpdate( String resourceGroupName, String topicName, TopicUpdateParameters topicUpdateParameters) { - return beginUpdateAsync(resourceGroupName, topicName, topicUpdateParameters).getSyncPoller(); + return this.beginUpdateAsync(resourceGroupName, topicName, topicUpdateParameters).getSyncPoller(); } /** - * Asynchronously updates a topic with the specified parameters. + * Update a topic. + * + *

Asynchronously updates a topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -1039,11 +1094,13 @@ public SyncPoller, TopicInner> beginUpdate( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, TopicInner> beginUpdate( String resourceGroupName, String topicName, TopicUpdateParameters topicUpdateParameters, Context context) { - return beginUpdateAsync(resourceGroupName, topicName, topicUpdateParameters, context).getSyncPoller(); + return this.beginUpdateAsync(resourceGroupName, topicName, topicUpdateParameters, context).getSyncPoller(); } /** - * Asynchronously updates a topic with the specified parameters. + * Update a topic. + * + *

Asynchronously updates a topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -1062,7 +1119,9 @@ private Mono updateAsync( } /** - * Asynchronously updates a topic with the specified parameters. + * Update a topic. + * + *

Asynchronously updates a topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -1082,7 +1141,9 @@ private Mono updateAsync( } /** - * Asynchronously updates a topic with the specified parameters. + * Update a topic. + * + *

Asynchronously updates a topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -1098,7 +1159,9 @@ public TopicInner update(String resourceGroupName, String topicName, TopicUpdate } /** - * Asynchronously updates a topic with the specified parameters. + * Update a topic. + * + *

Asynchronously updates a topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -1116,7 +1179,9 @@ public TopicInner update( } /** - * List all the topics under an Azure subscription. + * List topics under an Azure subscription. + * + *

List all the topics under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -1172,7 +1237,9 @@ private Mono> listSinglePageAsync(String filter, Integ } /** - * List all the topics under an Azure subscription. + * List topics under an Azure subscription. + * + *

List all the topics under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -1226,7 +1293,9 @@ private Mono> listSinglePageAsync(String filter, Integ } /** - * List all the topics under an Azure subscription. + * List topics under an Azure subscription. + * + *

List all the topics under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -1248,7 +1317,9 @@ private PagedFlux listAsync(String filter, Integer top) { } /** - * List all the topics under an Azure subscription. + * List topics under an Azure subscription. + * + *

List all the topics under an Azure subscription. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1263,7 +1334,9 @@ private PagedFlux listAsync() { } /** - * List all the topics under an Azure subscription. + * List topics under an Azure subscription. + * + *

List all the topics under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -1287,7 +1360,9 @@ private PagedFlux listAsync(String filter, Integer top, Context cont } /** - * List all the topics under an Azure subscription. + * List topics under an Azure subscription. + * + *

List all the topics under an Azure subscription. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1301,7 +1376,9 @@ public PagedIterable list() { } /** - * List all the topics under an Azure subscription. + * List topics under an Azure subscription. + * + *

List all the topics under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -1323,7 +1400,9 @@ public PagedIterable list(String filter, Integer top, Context contex } /** - * List all the topics under a resource group. + * List topics under a resource group. + * + *

List all the topics under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -1386,7 +1465,9 @@ private Mono> listByResourceGroupSinglePageAsync( } /** - * List all the topics under a resource group. + * List topics under a resource group. + * + *

List all the topics under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -1447,7 +1528,9 @@ private Mono> listByResourceGroupSinglePageAsync( } /** - * List all the topics under a resource group. + * List topics under a resource group. + * + *

List all the topics under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -1471,7 +1554,9 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupName, } /** - * List all the topics under a resource group. + * List topics under a resource group. + * + *

List all the topics under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1489,7 +1574,9 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupName) } /** - * List all the topics under a resource group. + * List topics under a resource group. + * + *

List all the topics under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -1515,7 +1602,9 @@ private PagedFlux listByResourceGroupAsync( } /** - * List all the topics under a resource group. + * List topics under a resource group. + * + *

List all the topics under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1531,7 +1620,9 @@ public PagedIterable listByResourceGroup(String resourceGroupName) { } /** - * List all the topics under a resource group. + * List topics under a resource group. + * + *

List all the topics under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -1555,7 +1646,9 @@ public PagedIterable listByResourceGroup( } /** - * List the two keys used to publish to a topic. + * List keys for a topic. + * + *

List the two keys used to publish to a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -1603,7 +1696,9 @@ private Mono> listSharedAccessKeysWithRespo } /** - * List the two keys used to publish to a topic. + * List keys for a topic. + * + *

List the two keys used to publish to a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -1649,7 +1744,9 @@ private Mono> listSharedAccessKeysWithRespo } /** - * List the two keys used to publish to a topic. + * List keys for a topic. + * + *

List the two keys used to publish to a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -1665,39 +1762,45 @@ private Mono listSharedAccessKeysAsync(String resour } /** - * List the two keys used to publish to a topic. + * List keys for a topic. + * + *

List the two keys used to publish to a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return shared access keys of the Topic. + * @return shared access keys of the Topic along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public TopicSharedAccessKeysInner listSharedAccessKeys(String resourceGroupName, String topicName) { - return listSharedAccessKeysAsync(resourceGroupName, topicName).block(); + public Response listSharedAccessKeysWithResponse( + String resourceGroupName, String topicName, Context context) { + return listSharedAccessKeysWithResponseAsync(resourceGroupName, topicName, context).block(); } /** - * List the two keys used to publish to a topic. + * List keys for a topic. + * + *

List the two keys used to publish to a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return shared access keys of the Topic along with {@link Response}. + * @return shared access keys of the Topic. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response listSharedAccessKeysWithResponse( - String resourceGroupName, String topicName, Context context) { - return listSharedAccessKeysWithResponseAsync(resourceGroupName, topicName, context).block(); + public TopicSharedAccessKeysInner listSharedAccessKeys(String resourceGroupName, String topicName) { + return listSharedAccessKeysWithResponse(resourceGroupName, topicName, Context.NONE).getValue(); } /** - * Regenerate a shared access key for a topic. + * Regenerate key for a topic. + * + *

Regenerate a shared access key for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -1753,7 +1856,9 @@ private Mono>> regenerateKeyWithResponseAsync( } /** - * Regenerate a shared access key for a topic. + * Regenerate key for a topic. + * + *

Regenerate a shared access key for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -1807,7 +1912,9 @@ private Mono>> regenerateKeyWithResponseAsync( } /** - * Regenerate a shared access key for a topic. + * Regenerate key for a topic. + * + *

Regenerate a shared access key for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -1833,7 +1940,9 @@ private PollerFlux, TopicSharedAccessKeys } /** - * Regenerate a shared access key for a topic. + * Regenerate key for a topic. + * + *

Regenerate a shared access key for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -1861,7 +1970,9 @@ private PollerFlux, TopicSharedAccessKeys } /** - * Regenerate a shared access key for a topic. + * Regenerate key for a topic. + * + *

Regenerate a shared access key for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -1874,11 +1985,13 @@ private PollerFlux, TopicSharedAccessKeys @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, TopicSharedAccessKeysInner> beginRegenerateKey( String resourceGroupName, String topicName, TopicRegenerateKeyRequest regenerateKeyRequest) { - return beginRegenerateKeyAsync(resourceGroupName, topicName, regenerateKeyRequest).getSyncPoller(); + return this.beginRegenerateKeyAsync(resourceGroupName, topicName, regenerateKeyRequest).getSyncPoller(); } /** - * Regenerate a shared access key for a topic. + * Regenerate key for a topic. + * + *

Regenerate a shared access key for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -1892,11 +2005,15 @@ public SyncPoller, TopicSharedAccessKeysI @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, TopicSharedAccessKeysInner> beginRegenerateKey( String resourceGroupName, String topicName, TopicRegenerateKeyRequest regenerateKeyRequest, Context context) { - return beginRegenerateKeyAsync(resourceGroupName, topicName, regenerateKeyRequest, context).getSyncPoller(); + return this + .beginRegenerateKeyAsync(resourceGroupName, topicName, regenerateKeyRequest, context) + .getSyncPoller(); } /** - * Regenerate a shared access key for a topic. + * Regenerate key for a topic. + * + *

Regenerate a shared access key for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -1915,7 +2032,9 @@ private Mono regenerateKeyAsync( } /** - * Regenerate a shared access key for a topic. + * Regenerate key for a topic. + * + *

Regenerate a shared access key for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -1935,7 +2054,9 @@ private Mono regenerateKeyAsync( } /** - * Regenerate a shared access key for a topic. + * Regenerate key for a topic. + * + *

Regenerate a shared access key for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -1952,7 +2073,9 @@ public TopicSharedAccessKeysInner regenerateKey( } /** - * Regenerate a shared access key for a topic. + * Regenerate key for a topic. + * + *

Regenerate a shared access key for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -1970,7 +2093,9 @@ public TopicSharedAccessKeysInner regenerateKey( } /** - * List event types for a topic. + * List topic event types. + * + *

List event types for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param providerNamespace Namespace of the provider of the topic. @@ -2035,7 +2160,9 @@ private Mono> listEventTypesSinglePageAsync( } /** - * List event types for a topic. + * List topic event types. + * + *

List event types for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param providerNamespace Namespace of the provider of the topic. @@ -2102,7 +2229,9 @@ private Mono> listEventTypesSinglePageAsync( } /** - * List event types for a topic. + * List topic event types. + * + *

List event types for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param providerNamespace Namespace of the provider of the topic. @@ -2121,7 +2250,9 @@ private PagedFlux listEventTypesAsync( } /** - * List event types for a topic. + * List topic event types. + * + *

List event types for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param providerNamespace Namespace of the provider of the topic. @@ -2147,7 +2278,9 @@ private PagedFlux listEventTypesAsync( } /** - * List event types for a topic. + * List topic event types. + * + *

List event types for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param providerNamespace Namespace of the provider of the topic. @@ -2166,7 +2299,9 @@ public PagedIterable listEventTypes( } /** - * List event types for a topic. + * List topic event types. + * + *

List event types for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param providerNamespace Namespace of the provider of the topic. @@ -2192,7 +2327,8 @@ public PagedIterable listEventTypes( /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2229,7 +2365,8 @@ private Mono> listBySubscriptionNextSinglePageAsync(St /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2266,7 +2403,8 @@ private Mono> listBySubscriptionNextSinglePageAsync(St /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2303,7 +2441,8 @@ private Mono> listByResourceGroupNextSinglePageAsync(S /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/TopicsImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/TopicsImpl.java index 212bdfaf07dd..395ecbf8ab24 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/TopicsImpl.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/TopicsImpl.java @@ -31,15 +31,6 @@ public TopicsImpl(TopicsClient innerClient, com.azure.resourcemanager.eventgrid. this.serviceManager = serviceManager; } - public Topic getByResourceGroup(String resourceGroupName, String topicName) { - TopicInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, topicName); - if (inner != null) { - return new TopicImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getByResourceGroupWithResponse(String resourceGroupName, String topicName, Context context) { Response inner = this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, topicName, context); @@ -54,6 +45,15 @@ public Response getByResourceGroupWithResponse(String resourceGroupName, } } + public Topic getByResourceGroup(String resourceGroupName, String topicName) { + TopicInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, topicName); + if (inner != null) { + return new TopicImpl(inner, this.manager()); + } else { + return null; + } + } + public void deleteByResourceGroup(String resourceGroupName, String topicName) { this.serviceClient().delete(resourceGroupName, topicName); } @@ -84,15 +84,6 @@ public PagedIterable listByResourceGroup( return Utils.mapPage(inner, inner1 -> new TopicImpl(inner1, this.manager())); } - public TopicSharedAccessKeys listSharedAccessKeys(String resourceGroupName, String topicName) { - TopicSharedAccessKeysInner inner = this.serviceClient().listSharedAccessKeys(resourceGroupName, topicName); - if (inner != null) { - return new TopicSharedAccessKeysImpl(inner, this.manager()); - } else { - return null; - } - } - public Response listSharedAccessKeysWithResponse( String resourceGroupName, String topicName, Context context) { Response inner = @@ -108,6 +99,15 @@ public Response listSharedAccessKeysWithResponse( } } + public TopicSharedAccessKeys listSharedAccessKeys(String resourceGroupName, String topicName) { + TopicSharedAccessKeysInner inner = this.serviceClient().listSharedAccessKeys(resourceGroupName, topicName); + if (inner != null) { + return new TopicSharedAccessKeysImpl(inner, this.manager()); + } else { + return null; + } + } + public TopicSharedAccessKeys regenerateKey( String resourceGroupName, String topicName, TopicRegenerateKeyRequest regenerateKeyRequest) { TopicSharedAccessKeysInner inner = diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/VerifiedPartnersClientImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/VerifiedPartnersClientImpl.java index 373311e3720a..d6e2a926e079 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/VerifiedPartnersClientImpl.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/VerifiedPartnersClientImpl.java @@ -55,7 +55,7 @@ public final class VerifiedPartnersClientImpl implements VerifiedPartnersClient */ @Host("{$host}") @ServiceInterface(name = "EventGridManagementC") - private interface VerifiedPartnersService { + public interface VerifiedPartnersService { @Headers({"Content-Type: application/json"}) @Get("/providers/Microsoft.EventGrid/verifiedPartners/{verifiedPartnerName}") @ExpectedResponses({200}) @@ -91,7 +91,9 @@ Mono> listNext( } /** - * Get properties of a verified partner. + * Get a verified partner. + * + *

Get properties of a verified partner. * * @param verifiedPartnerName Name of the verified partner. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -126,7 +128,9 @@ private Mono> getWithResponseAsync(String verifie } /** - * Get properties of a verified partner. + * Get a verified partner. + * + *

Get properties of a verified partner. * * @param verifiedPartnerName Name of the verified partner. * @param context The context to associate with this operation. @@ -154,7 +158,9 @@ private Mono> getWithResponseAsync(String verifie } /** - * Get properties of a verified partner. + * Get a verified partner. + * + *

Get properties of a verified partner. * * @param verifiedPartnerName Name of the verified partner. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -168,36 +174,42 @@ private Mono getAsync(String verifiedPartnerName) { } /** - * Get properties of a verified partner. + * Get a verified partner. + * + *

Get properties of a verified partner. * * @param verifiedPartnerName Name of the verified partner. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a verified partner. + * @return properties of a verified partner along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public VerifiedPartnerInner get(String verifiedPartnerName) { - return getAsync(verifiedPartnerName).block(); + public Response getWithResponse(String verifiedPartnerName, Context context) { + return getWithResponseAsync(verifiedPartnerName, context).block(); } /** - * Get properties of a verified partner. + * Get a verified partner. + * + *

Get properties of a verified partner. * * @param verifiedPartnerName Name of the verified partner. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a verified partner along with {@link Response}. + * @return properties of a verified partner. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String verifiedPartnerName, Context context) { - return getWithResponseAsync(verifiedPartnerName, context).block(); + public VerifiedPartnerInner get(String verifiedPartnerName) { + return getWithResponse(verifiedPartnerName, Context.NONE).getValue(); } /** - * Get a list of all verified partners. + * List all verified partners. + * + *

Get a list of all verified partners. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -239,7 +251,9 @@ private Mono> listSinglePageAsync(String fil } /** - * Get a list of all verified partners. + * List all verified partners. + * + *

Get a list of all verified partners. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -280,7 +294,9 @@ private Mono> listSinglePageAsync(String fil } /** - * Get a list of all verified partners. + * List all verified partners. + * + *

Get a list of all verified partners. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -301,7 +317,9 @@ private PagedFlux listAsync(String filter, Integer top) { } /** - * Get a list of all verified partners. + * List all verified partners. + * + *

Get a list of all verified partners. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -315,7 +333,9 @@ private PagedFlux listAsync() { } /** - * Get a list of all verified partners. + * List all verified partners. + * + *

Get a list of all verified partners. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -338,7 +358,9 @@ private PagedFlux listAsync(String filter, Integer top, Co } /** - * Get a list of all verified partners. + * List all verified partners. + * + *

Get a list of all verified partners. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -352,7 +374,9 @@ public PagedIterable list() { } /** - * Get a list of all verified partners. + * List all verified partners. + * + *

Get a list of all verified partners. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -376,7 +400,8 @@ public PagedIterable list(String filter, Integer top, Cont /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -412,7 +437,8 @@ private Mono> listNextSinglePageAsync(String /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/VerifiedPartnersImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/VerifiedPartnersImpl.java index 9a3b453524f4..6389402e4051 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/VerifiedPartnersImpl.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/VerifiedPartnersImpl.java @@ -27,15 +27,6 @@ public VerifiedPartnersImpl( this.serviceManager = serviceManager; } - public VerifiedPartner get(String verifiedPartnerName) { - VerifiedPartnerInner inner = this.serviceClient().get(verifiedPartnerName); - if (inner != null) { - return new VerifiedPartnerImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse(String verifiedPartnerName, Context context) { Response inner = this.serviceClient().getWithResponse(verifiedPartnerName, context); if (inner != null) { @@ -49,6 +40,15 @@ public Response getWithResponse(String verifiedPartnerName, Con } } + public VerifiedPartner get(String verifiedPartnerName) { + VerifiedPartnerInner inner = this.serviceClient().get(verifiedPartnerName); + if (inner != null) { + return new VerifiedPartnerImpl(inner, this.manager()); + } else { + return null; + } + } + public PagedIterable list() { PagedIterable inner = this.serviceClient().list(); return Utils.mapPage(inner, inner1 -> new VerifiedPartnerImpl(inner1, this.manager())); diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/AdvancedFilter.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/AdvancedFilter.java index 25bc0c73aa91..09b0301d3970 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/AdvancedFilter.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/AdvancedFilter.java @@ -51,6 +51,10 @@ public class AdvancedFilter { @JsonProperty(value = "key") private String key; + /** Creates an instance of AdvancedFilter class. */ + public AdvancedFilter() { + } + /** * Get the key property: The field/property in the event based on which you want to filter. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/AdvancedFilterOperatorType.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/AdvancedFilterOperatorType.java index 529f7a86db76..321af1061a76 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/AdvancedFilterOperatorType.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/AdvancedFilterOperatorType.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for AdvancedFilterOperatorType. */ +/** The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others. */ public final class AdvancedFilterOperatorType extends ExpandableStringEnum { /** Static value NumberIn for AdvancedFilterOperatorType. */ public static final AdvancedFilterOperatorType NUMBER_IN = fromString("NumberIn"); @@ -68,6 +68,15 @@ public final class AdvancedFilterOperatorType extends ExpandableStringEnumGet the full endpoint URL of a partner destination channel. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the full endpoint URL of a partner destination channel. + * @return the full endpoint URL of a partner destination channel along with {@link Response}. */ - EventSubscriptionFullUrl getFullUrl(); + Response getFullUrlWithResponse(Context context); /** - * Get the full endpoint URL of a partner destination channel. + * Get full URL of partner destination channel. + * + *

Get the full endpoint URL of a partner destination channel. * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the full endpoint URL of a partner destination channel along with {@link Response}. + * @return the full endpoint URL of a partner destination channel. */ - Response getFullUrlWithResponse(Context context); + EventSubscriptionFullUrl getFullUrl(); } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/ChannelProvisioningState.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/ChannelProvisioningState.java index d1e15cad2aeb..bc3d0a9b6fdd 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/ChannelProvisioningState.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/ChannelProvisioningState.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for ChannelProvisioningState. */ +/** Provisioning state of the channel. */ public final class ChannelProvisioningState extends ExpandableStringEnum { /** Static value Creating for ChannelProvisioningState. */ public static final ChannelProvisioningState CREATING = fromString("Creating"); @@ -32,6 +32,15 @@ public final class ChannelProvisioningState extends ExpandableStringEnum { /** Static value PartnerTopic for ChannelType. */ public static final ChannelType PARTNER_TOPIC = fromString("PartnerTopic"); + /** + * Creates a new instance of ChannelType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ChannelType() { + } + /** * Creates or finds a ChannelType from its string representation. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/ChannelUpdateParameters.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/ChannelUpdateParameters.java index f0c9801d6c43..38b01fe7af8e 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/ChannelUpdateParameters.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/ChannelUpdateParameters.java @@ -18,6 +18,10 @@ public final class ChannelUpdateParameters { @JsonProperty(value = "properties") private ChannelUpdateParametersProperties innerProperties; + /** Creates an instance of ChannelUpdateParameters class. */ + public ChannelUpdateParameters() { + } + /** * Get the innerProperties property: Properties of the channel update parameters. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/Channels.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/Channels.java index 40927a767e9d..c9f138386869 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/Channels.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/Channels.java @@ -11,35 +11,41 @@ /** Resource collection API of Channels. */ public interface Channels { /** - * Get properties of a channel. + * Get a channel. + * + *

Get properties of a channel. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. * @param channelName Name of the channel. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a channel. + * @return properties of a channel along with {@link Response}. */ - Channel get(String resourceGroupName, String partnerNamespaceName, String channelName); + Response getWithResponse( + String resourceGroupName, String partnerNamespaceName, String channelName, Context context); /** - * Get properties of a channel. + * Get a channel. + * + *

Get properties of a channel. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. * @param channelName Name of the channel. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a channel along with {@link Response}. + * @return properties of a channel. */ - Response getWithResponse( - String resourceGroupName, String partnerNamespaceName, String channelName, Context context); + Channel get(String resourceGroupName, String partnerNamespaceName, String channelName); /** - * Delete an existing channel. + * Delete a channel. + * + *

Delete an existing channel. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -51,7 +57,9 @@ Response getWithResponse( void delete(String resourceGroupName, String partnerNamespaceName, String channelName); /** - * Delete an existing channel. + * Delete a channel. + * + *

Delete an existing channel. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -64,44 +72,50 @@ Response getWithResponse( void delete(String resourceGroupName, String partnerNamespaceName, String channelName, Context context); /** - * Synchronously updates a channel with the specified parameters. + * Update a Channel. + * + *

Synchronously updates a channel with the specified parameters. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. * @param channelName Name of the channel. * @param channelUpdateParameters Channel update information. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ - void update( + Response updateWithResponse( String resourceGroupName, String partnerNamespaceName, String channelName, - ChannelUpdateParameters channelUpdateParameters); + ChannelUpdateParameters channelUpdateParameters, + Context context); /** - * Synchronously updates a channel with the specified parameters. + * Update a Channel. + * + *

Synchronously updates a channel with the specified parameters. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. * @param channelName Name of the channel. * @param channelUpdateParameters Channel update information. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ - Response updateWithResponse( + void update( String resourceGroupName, String partnerNamespaceName, String channelName, - ChannelUpdateParameters channelUpdateParameters, - Context context); + ChannelUpdateParameters channelUpdateParameters); /** - * List all the channels in a partner namespace. + * List channels. + * + *

List all the channels in a partner namespace. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -113,7 +127,9 @@ Response updateWithResponse( PagedIterable listByPartnerNamespace(String resourceGroupName, String partnerNamespaceName); /** - * List all the channels in a partner namespace. + * List channels. + * + *

List all the channels in a partner namespace. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -135,35 +151,41 @@ PagedIterable listByPartnerNamespace( String resourceGroupName, String partnerNamespaceName, String filter, Integer top, Context context); /** - * Get the full endpoint URL of a partner destination channel. + * Get full URL of partner destination channel. + * + *

Get the full endpoint URL of a partner destination channel. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. * @param channelName Name of the Channel. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the full endpoint URL of a partner destination channel. + * @return the full endpoint URL of a partner destination channel along with {@link Response}. */ - EventSubscriptionFullUrl getFullUrl(String resourceGroupName, String partnerNamespaceName, String channelName); + Response getFullUrlWithResponse( + String resourceGroupName, String partnerNamespaceName, String channelName, Context context); /** - * Get the full endpoint URL of a partner destination channel. + * Get full URL of partner destination channel. + * + *

Get the full endpoint URL of a partner destination channel. * * @param resourceGroupName The name of the resource group within the partners subscription. * @param partnerNamespaceName Name of the partner namespace. * @param channelName Name of the Channel. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the full endpoint URL of a partner destination channel along with {@link Response}. + * @return the full endpoint URL of a partner destination channel. */ - Response getFullUrlWithResponse( - String resourceGroupName, String partnerNamespaceName, String channelName, Context context); + EventSubscriptionFullUrl getFullUrl(String resourceGroupName, String partnerNamespaceName, String channelName); /** - * Get properties of a channel. + * Get a channel. + * + *

Get properties of a channel. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -174,7 +196,9 @@ Response getFullUrlWithResponse( Channel getById(String id); /** - * Get properties of a channel. + * Get a channel. + * + *

Get properties of a channel. * * @param id the resource ID. * @param context The context to associate with this operation. @@ -186,7 +210,9 @@ Response getFullUrlWithResponse( Response getByIdWithResponse(String id, Context context); /** - * Delete an existing channel. + * Delete a channel. + * + *

Delete an existing channel. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -196,7 +222,9 @@ Response getFullUrlWithResponse( void deleteById(String id); /** - * Delete an existing channel. + * Delete a channel. + * + *

Delete an existing channel. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/ChannelsListResult.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/ChannelsListResult.java index eb5fa58d8567..2ea9be33c6ae 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/ChannelsListResult.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/ChannelsListResult.java @@ -24,6 +24,10 @@ public final class ChannelsListResult { @JsonProperty(value = "nextLink") private String nextLink; + /** Creates an instance of ChannelsListResult class. */ + public ChannelsListResult() { + } + /** * Get the value property: A collection of Channels. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/ConnectionState.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/ConnectionState.java index e69fea9176cb..d46794587fd9 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/ConnectionState.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/ConnectionState.java @@ -28,6 +28,10 @@ public final class ConnectionState { @JsonProperty(value = "actionsRequired") private String actionsRequired; + /** Creates an instance of ConnectionState class. */ + public ConnectionState() { + } + /** * Get the status property: Status of the connection. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/DataResidencyBoundary.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/DataResidencyBoundary.java index b2bf043a701d..949b22be4193 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/DataResidencyBoundary.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/DataResidencyBoundary.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for DataResidencyBoundary. */ +/** Data Residency Boundary of the resource. */ public final class DataResidencyBoundary extends ExpandableStringEnum { /** Static value WithinGeopair for DataResidencyBoundary. */ public static final DataResidencyBoundary WITHIN_GEOPAIR = fromString("WithinGeopair"); @@ -16,6 +16,15 @@ public final class DataResidencyBoundary extends ExpandableStringEnum { /** Static value StorageBlob for DeadLetterEndPointType. */ public static final DeadLetterEndPointType STORAGE_BLOB = fromString("StorageBlob"); + /** + * Creates a new instance of DeadLetterEndPointType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public DeadLetterEndPointType() { + } + /** * Creates or finds a DeadLetterEndPointType from its string representation. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/DeadLetterWithResourceIdentity.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/DeadLetterWithResourceIdentity.java index 0dd8a3741878..6f26a5719a54 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/DeadLetterWithResourceIdentity.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/DeadLetterWithResourceIdentity.java @@ -9,7 +9,7 @@ /** Information about the deadletter destination with resource identity. */ @Fluent -public class DeadLetterWithResourceIdentity { +public final class DeadLetterWithResourceIdentity { /* * The identity to use when dead-lettering events. */ @@ -17,15 +17,17 @@ public class DeadLetterWithResourceIdentity { private EventSubscriptionIdentity identity; /* - * Information about the destination where events have to be delivered for - * the event subscription. - * Uses the managed identity setup on the parent resource (namely, topic or - * domain) to acquire the authentication tokens being used during delivery - * / dead-lettering. + * Information about the destination where events have to be delivered for the event subscription. + * Uses the managed identity setup on the parent resource (namely, topic or domain) to acquire the authentication + * tokens being used during delivery / dead-lettering. */ @JsonProperty(value = "deadLetterDestination") private DeadLetterDestination deadLetterDestination; + /** Creates an instance of DeadLetterWithResourceIdentity class. */ + public DeadLetterWithResourceIdentity() { + } + /** * Get the identity property: The identity to use when dead-lettering events. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/DeliveryAttributeMapping.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/DeliveryAttributeMapping.java index 1591af341a64..70fa67b888da 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/DeliveryAttributeMapping.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/DeliveryAttributeMapping.java @@ -29,6 +29,10 @@ public class DeliveryAttributeMapping { @JsonProperty(value = "name") private String name; + /** Creates an instance of DeliveryAttributeMapping class. */ + public DeliveryAttributeMapping() { + } + /** * Get the name property: Name of the delivery attribute or header. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/DeliveryAttributeMappingType.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/DeliveryAttributeMappingType.java index 1416952ba26e..b9c3481395b3 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/DeliveryAttributeMappingType.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/DeliveryAttributeMappingType.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for DeliveryAttributeMappingType. */ +/** Type of the delivery attribute or header name. */ public final class DeliveryAttributeMappingType extends ExpandableStringEnum { /** Static value Static for DeliveryAttributeMappingType. */ public static final DeliveryAttributeMappingType STATIC = fromString("Static"); @@ -16,6 +16,15 @@ public final class DeliveryAttributeMappingType extends ExpandableStringEnumList the two keys used to publish to a domain. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -621,18 +612,20 @@ interface WithDataResidencyBoundary { Response listSharedAccessKeysWithResponse(Context context); /** - * Regenerate a shared access key for a domain. + * List keys for a domain. + * + *

List the two keys used to publish to a domain. * - * @param regenerateKeyRequest Request body to regenerate key. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return shared access keys of the Domain. */ - DomainSharedAccessKeys regenerateKey(DomainRegenerateKeyRequest regenerateKeyRequest); + DomainSharedAccessKeys listSharedAccessKeys(); /** - * Regenerate a shared access key for a domain. + * Regenerate key for a domain. + * + *

Regenerate a shared access key for a domain. * * @param regenerateKeyRequest Request body to regenerate key. * @param context The context to associate with this operation. @@ -643,4 +636,17 @@ interface WithDataResidencyBoundary { */ Response regenerateKeyWithResponse( DomainRegenerateKeyRequest regenerateKeyRequest, Context context); + + /** + * Regenerate key for a domain. + * + *

Regenerate a shared access key for a domain. + * + * @param regenerateKeyRequest Request body to regenerate key. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return shared access keys of the Domain. + */ + DomainSharedAccessKeys regenerateKey(DomainRegenerateKeyRequest regenerateKeyRequest); } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/DomainEventSubscriptions.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/DomainEventSubscriptions.java index ea32735047cd..08bf7ec8b748 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/DomainEventSubscriptions.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/DomainEventSubscriptions.java @@ -12,66 +12,76 @@ /** Resource collection API of DomainEventSubscriptions. */ public interface DomainEventSubscriptions { /** - * Get all delivery attributes for an event subscription for domain. + * Get delivery attributes for an event subscription for domain. + * + *

Get all delivery attributes for an event subscription for domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain topic. * @param eventSubscriptionName Name of the event subscription. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all delivery attributes for an event subscription for domain. + * @return all delivery attributes for an event subscription for domain along with {@link Response}. */ - DeliveryAttributeListResult getDeliveryAttributes( - String resourceGroupName, String domainName, String eventSubscriptionName); + Response getDeliveryAttributesWithResponse( + String resourceGroupName, String domainName, String eventSubscriptionName, Context context); /** - * Get all delivery attributes for an event subscription for domain. + * Get delivery attributes for an event subscription for domain. + * + *

Get all delivery attributes for an event subscription for domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain topic. * @param eventSubscriptionName Name of the event subscription. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all delivery attributes for an event subscription for domain along with {@link Response}. + * @return all delivery attributes for an event subscription for domain. */ - Response getDeliveryAttributesWithResponse( - String resourceGroupName, String domainName, String eventSubscriptionName, Context context); + DeliveryAttributeListResult getDeliveryAttributes( + String resourceGroupName, String domainName, String eventSubscriptionName); /** - * Get properties of an event subscription of a domain. + * Get an event subscription of a domain. + * + *

Get properties of an event subscription of a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the partner topic. * @param eventSubscriptionName Name of the event subscription to be found. Event subscription names must be between * 3 and 100 characters in length and use alphanumeric letters only. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of an event subscription of a domain. + * @return properties of an event subscription of a domain along with {@link Response}. */ - EventSubscription get(String resourceGroupName, String domainName, String eventSubscriptionName); + Response getWithResponse( + String resourceGroupName, String domainName, String eventSubscriptionName, Context context); /** - * Get properties of an event subscription of a domain. + * Get an event subscription of a domain. + * + *

Get properties of an event subscription of a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the partner topic. * @param eventSubscriptionName Name of the event subscription to be found. Event subscription names must be between * 3 and 100 characters in length and use alphanumeric letters only. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of an event subscription of a domain along with {@link Response}. + * @return properties of an event subscription of a domain. */ - Response getWithResponse( - String resourceGroupName, String domainName, String eventSubscriptionName, Context context); + EventSubscription get(String resourceGroupName, String domainName, String eventSubscriptionName); /** - * Asynchronously creates a new event subscription or updates an existing event subscription. + * Create or update an event subscription to a domain. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain topic. @@ -90,7 +100,9 @@ EventSubscription createOrUpdate( EventSubscriptionInner eventSubscriptionInfo); /** - * Asynchronously creates a new event subscription or updates an existing event subscription. + * Create or update an event subscription to a domain. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain topic. @@ -111,7 +123,9 @@ EventSubscription createOrUpdate( Context context); /** - * Delete an existing event subscription for a domain. + * Delete an event subscription for a domain. + * + *

Delete an existing event subscription for a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -124,7 +138,9 @@ EventSubscription createOrUpdate( void delete(String resourceGroupName, String domainName, String eventSubscriptionName); /** - * Delete an existing event subscription for a domain. + * Delete an event subscription for a domain. + * + *

Delete an existing event subscription for a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -138,7 +154,9 @@ EventSubscription createOrUpdate( void delete(String resourceGroupName, String domainName, String eventSubscriptionName, Context context); /** - * Update an existing event subscription for a topic. + * Update an event subscription for a domain. + * + *

Update an existing event subscription for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -156,7 +174,9 @@ EventSubscription update( EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters); /** - * Update an existing event subscription for a topic. + * Update an event subscription for a domain. + * + *

Update an existing event subscription for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -176,35 +196,41 @@ EventSubscription update( Context context); /** - * Get the full endpoint URL for an event subscription for domain. + * Get full URL of an event subscription for domain. + * + *

Get the full endpoint URL for an event subscription for domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain topic. * @param eventSubscriptionName Name of the event subscription. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the full endpoint URL for an event subscription for domain. + * @return the full endpoint URL for an event subscription for domain along with {@link Response}. */ - EventSubscriptionFullUrl getFullUrl(String resourceGroupName, String domainName, String eventSubscriptionName); + Response getFullUrlWithResponse( + String resourceGroupName, String domainName, String eventSubscriptionName, Context context); /** - * Get the full endpoint URL for an event subscription for domain. + * Get full URL of an event subscription for domain. + * + *

Get the full endpoint URL for an event subscription for domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain topic. * @param eventSubscriptionName Name of the event subscription. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the full endpoint URL for an event subscription for domain along with {@link Response}. + * @return the full endpoint URL for an event subscription for domain. */ - Response getFullUrlWithResponse( - String resourceGroupName, String domainName, String eventSubscriptionName, Context context); + EventSubscriptionFullUrl getFullUrl(String resourceGroupName, String domainName, String eventSubscriptionName); /** - * List all event subscriptions that have been created for a specific topic. + * List all event subscriptions for a specific domain. + * + *

List all event subscriptions that have been created for a specific topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -216,7 +242,9 @@ Response getFullUrlWithResponse( PagedIterable list(String resourceGroupName, String domainName); /** - * List all event subscriptions that have been created for a specific topic. + * List all event subscriptions for a specific domain. + * + *

List all event subscriptions that have been created for a specific topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/DomainProvisioningState.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/DomainProvisioningState.java index 212b0449ea85..e1b873c70a34 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/DomainProvisioningState.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/DomainProvisioningState.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for DomainProvisioningState. */ +/** Provisioning state of the Event Grid Domain Resource. */ public final class DomainProvisioningState extends ExpandableStringEnum { /** Static value Creating for DomainProvisioningState. */ public static final DomainProvisioningState CREATING = fromString("Creating"); @@ -28,6 +28,15 @@ public final class DomainProvisioningState extends ExpandableStringEnumGet properties of a nested event subscription for a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. * @param topicName Name of the domain topic. * @param eventSubscriptionName Name of the event subscription. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a nested event subscription for a domain topic. + * @return properties of a nested event subscription for a domain topic along with {@link Response}. */ - EventSubscription get(String resourceGroupName, String domainName, String topicName, String eventSubscriptionName); + Response getWithResponse( + String resourceGroupName, String domainName, String topicName, String eventSubscriptionName, Context context); /** - * Get properties of a nested event subscription for a domain topic. + * Get a nested event subscription for domain topic. + * + *

Get properties of a nested event subscription for a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. * @param topicName Name of the domain topic. * @param eventSubscriptionName Name of the event subscription. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a nested event subscription for a domain topic along with {@link Response}. + * @return properties of a nested event subscription for a domain topic. */ - Response getWithResponse( - String resourceGroupName, String domainName, String topicName, String eventSubscriptionName, Context context); + EventSubscription get(String resourceGroupName, String domainName, String topicName, String eventSubscriptionName); /** - * Asynchronously creates a new event subscription or updates an existing event subscription. + * Create or update a nested event subscription to a domain topic. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -63,7 +69,9 @@ EventSubscription createOrUpdate( EventSubscriptionInner eventSubscriptionInfo); /** - * Asynchronously creates a new event subscription or updates an existing event subscription. + * Create or update a nested event subscription to a domain topic. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -86,7 +94,9 @@ EventSubscription createOrUpdate( Context context); /** - * Delete a nested existing event subscription for a domain topic. + * Delete a nested event subscription for a domain topic. + * + *

Delete a nested existing event subscription for a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -100,7 +110,9 @@ EventSubscription createOrUpdate( void delete(String resourceGroupName, String domainName, String topicName, String eventSubscriptionName); /** - * Delete a nested existing event subscription for a domain topic. + * Delete a nested event subscription for a domain topic. + * + *

Delete a nested existing event subscription for a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -116,7 +128,9 @@ void delete( String resourceGroupName, String domainName, String topicName, String eventSubscriptionName, Context context); /** - * Update an existing event subscription for a domain topic. + * Update a nested event subscription for a domain topic. + * + *

Update an existing event subscription for a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -136,7 +150,9 @@ EventSubscription update( EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters); /** - * Update an existing event subscription for a domain topic. + * Update a nested event subscription for a domain topic. + * + *

Update an existing event subscription for a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -158,38 +174,44 @@ EventSubscription update( Context context); /** - * Get the full endpoint URL for a nested event subscription for domain topic. + * Get full URL of a nested event subscription for domain topic. + * + *

Get the full endpoint URL for a nested event subscription for domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. * @param topicName Name of the domain topic. * @param eventSubscriptionName Name of the event subscription. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the full endpoint URL for a nested event subscription for domain topic. + * @return the full endpoint URL for a nested event subscription for domain topic along with {@link Response}. */ - EventSubscriptionFullUrl getFullUrl( - String resourceGroupName, String domainName, String topicName, String eventSubscriptionName); + Response getFullUrlWithResponse( + String resourceGroupName, String domainName, String topicName, String eventSubscriptionName, Context context); /** - * Get the full endpoint URL for a nested event subscription for domain topic. + * Get full URL of a nested event subscription for domain topic. + * + *

Get the full endpoint URL for a nested event subscription for domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. * @param topicName Name of the domain topic. * @param eventSubscriptionName Name of the event subscription. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the full endpoint URL for a nested event subscription for domain topic along with {@link Response}. + * @return the full endpoint URL for a nested event subscription for domain topic. */ - Response getFullUrlWithResponse( - String resourceGroupName, String domainName, String topicName, String eventSubscriptionName, Context context); + EventSubscriptionFullUrl getFullUrl( + String resourceGroupName, String domainName, String topicName, String eventSubscriptionName); /** - * List all event subscriptions that have been created for a specific domain topic. + * List all nested event subscriptions for a specific domain topic. + * + *

List all event subscriptions that have been created for a specific domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -202,7 +224,9 @@ Response getFullUrlWithResponse( PagedIterable list(String resourceGroupName, String domainName, String topicName); /** - * List all event subscriptions that have been created for a specific domain topic. + * List all nested event subscriptions for a specific domain topic. + * + *

List all event subscriptions that have been created for a specific domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -225,33 +249,37 @@ PagedIterable list( String resourceGroupName, String domainName, String topicName, String filter, Integer top, Context context); /** - * Get all delivery attributes for an event subscription for domain topic. + * Get delivery attributes for an event subscription for domain topic. + * + *

Get all delivery attributes for an event subscription for domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. * @param topicName Name of the domain topic. * @param eventSubscriptionName Name of the event subscription. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all delivery attributes for an event subscription for domain topic. + * @return all delivery attributes for an event subscription for domain topic along with {@link Response}. */ - DeliveryAttributeListResult getDeliveryAttributes( - String resourceGroupName, String domainName, String topicName, String eventSubscriptionName); + Response getDeliveryAttributesWithResponse( + String resourceGroupName, String domainName, String topicName, String eventSubscriptionName, Context context); /** - * Get all delivery attributes for an event subscription for domain topic. + * Get delivery attributes for an event subscription for domain topic. + * + *

Get all delivery attributes for an event subscription for domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. * @param topicName Name of the domain topic. * @param eventSubscriptionName Name of the event subscription. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all delivery attributes for an event subscription for domain topic along with {@link Response}. + * @return all delivery attributes for an event subscription for domain topic. */ - Response getDeliveryAttributesWithResponse( - String resourceGroupName, String domainName, String topicName, String eventSubscriptionName, Context context); + DeliveryAttributeListResult getDeliveryAttributes( + String resourceGroupName, String domainName, String topicName, String eventSubscriptionName); } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/DomainTopicProvisioningState.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/DomainTopicProvisioningState.java index 1b691f4a40fa..9e85d1809ba0 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/DomainTopicProvisioningState.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/DomainTopicProvisioningState.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for DomainTopicProvisioningState. */ +/** Provisioning state of the domain topic. */ public final class DomainTopicProvisioningState extends ExpandableStringEnum { /** Static value Creating for DomainTopicProvisioningState. */ public static final DomainTopicProvisioningState CREATING = fromString("Creating"); @@ -28,6 +28,15 @@ public final class DomainTopicProvisioningState extends ExpandableStringEnumGet properties of a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. * @param domainTopicName Name of the topic. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a domain topic. + * @return properties of a domain topic along with {@link Response}. */ - DomainTopic get(String resourceGroupName, String domainName, String domainTopicName); + Response getWithResponse( + String resourceGroupName, String domainName, String domainTopicName, Context context); /** - * Get properties of a domain topic. + * Get a domain topic. + * + *

Get properties of a domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. * @param domainTopicName Name of the topic. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a domain topic along with {@link Response}. + * @return properties of a domain topic. */ - Response getWithResponse( - String resourceGroupName, String domainName, String domainTopicName, Context context); + DomainTopic get(String resourceGroupName, String domainName, String domainTopicName); /** - * Asynchronously creates or updates a new domain topic with the specified parameters. + * Create or update a domain topic. + * + *

Asynchronously creates or updates a new domain topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -52,7 +58,9 @@ Response getWithResponse( DomainTopic createOrUpdate(String resourceGroupName, String domainName, String domainTopicName); /** - * Asynchronously creates or updates a new domain topic with the specified parameters. + * Create or update a domain topic. + * + *

Asynchronously creates or updates a new domain topic with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -66,7 +74,9 @@ Response getWithResponse( DomainTopic createOrUpdate(String resourceGroupName, String domainName, String domainTopicName, Context context); /** - * Delete existing domain topic. + * Delete a domain topic. + * + *

Delete existing domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -78,7 +88,9 @@ Response getWithResponse( void delete(String resourceGroupName, String domainName, String domainTopicName); /** - * Delete existing domain topic. + * Delete a domain topic. + * + *

Delete existing domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -91,7 +103,9 @@ Response getWithResponse( void delete(String resourceGroupName, String domainName, String domainTopicName, Context context); /** - * List all the topics in a domain. + * List domain topics. + * + *

List all the topics in a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Domain name. @@ -103,7 +117,9 @@ Response getWithResponse( PagedIterable listByDomain(String resourceGroupName, String domainName); /** - * List all the topics in a domain. + * List domain topics. + * + *

List all the topics in a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Domain name. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/DomainTopicsListResult.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/DomainTopicsListResult.java index d6387f5ada4a..be0f5137f1cd 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/DomainTopicsListResult.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/DomainTopicsListResult.java @@ -24,6 +24,10 @@ public final class DomainTopicsListResult { @JsonProperty(value = "nextLink") private String nextLink; + /** Creates an instance of DomainTopicsListResult class. */ + public DomainTopicsListResult() { + } + /** * Get the value property: A collection of Domain Topics. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/DomainUpdateParameters.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/DomainUpdateParameters.java index 356b8e20d97d..deda60156c65 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/DomainUpdateParameters.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/DomainUpdateParameters.java @@ -33,6 +33,10 @@ public final class DomainUpdateParameters { @JsonProperty(value = "identity") private IdentityInfo identity; + /** Creates an instance of DomainUpdateParameters class. */ + public DomainUpdateParameters() { + } + /** * Get the tags property: Tags of the domains resource. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/Domains.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/Domains.java index a92f8a0c8fc2..35ca6f2b36d6 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/Domains.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/Domains.java @@ -11,32 +11,38 @@ /** Resource collection API of Domains. */ public interface Domains { /** - * Get properties of a domain. + * Get a domain. + * + *

Get properties of a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a domain. + * @return properties of a domain along with {@link Response}. */ - Domain getByResourceGroup(String resourceGroupName, String domainName); + Response getByResourceGroupWithResponse(String resourceGroupName, String domainName, Context context); /** - * Get properties of a domain. + * Get a domain. + * + *

Get properties of a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a domain along with {@link Response}. + * @return properties of a domain. */ - Response getByResourceGroupWithResponse(String resourceGroupName, String domainName, Context context); + Domain getByResourceGroup(String resourceGroupName, String domainName); /** - * Delete existing domain. + * Delete a domain. + * + *

Delete existing domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -47,7 +53,9 @@ public interface Domains { void deleteByResourceGroup(String resourceGroupName, String domainName); /** - * Delete existing domain. + * Delete a domain. + * + *

Delete existing domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -59,7 +67,9 @@ public interface Domains { void delete(String resourceGroupName, String domainName, Context context); /** - * List all the domains under an Azure subscription. + * List domains under an Azure subscription. + * + *

List all the domains under an Azure subscription. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -68,7 +78,9 @@ public interface Domains { PagedIterable list(); /** - * List all the domains under an Azure subscription. + * List domains under an Azure subscription. + * + *

List all the domains under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -87,7 +99,9 @@ public interface Domains { PagedIterable list(String filter, Integer top, Context context); /** - * List all the domains under a resource group. + * List domains under a resource group. + * + *

List all the domains under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -98,7 +112,9 @@ public interface Domains { PagedIterable listByResourceGroup(String resourceGroupName); /** - * List all the domains under a resource group. + * List domains under a resource group. + * + *

List all the domains under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -118,19 +134,9 @@ public interface Domains { PagedIterable listByResourceGroup(String resourceGroupName, String filter, Integer top, Context context); /** - * List the two keys used to publish to a domain. + * List keys for a domain. * - * @param resourceGroupName The name of the resource group within the user's subscription. - * @param domainName Name of the domain. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return shared access keys of the Domain. - */ - DomainSharedAccessKeys listSharedAccessKeys(String resourceGroupName, String domainName); - - /** - * List the two keys used to publish to a domain. + *

List the two keys used to publish to a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -144,21 +150,23 @@ Response listSharedAccessKeysWithResponse( String resourceGroupName, String domainName, Context context); /** - * Regenerate a shared access key for a domain. + * List keys for a domain. + * + *

List the two keys used to publish to a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. - * @param regenerateKeyRequest Request body to regenerate key. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return shared access keys of the Domain. */ - DomainSharedAccessKeys regenerateKey( - String resourceGroupName, String domainName, DomainRegenerateKeyRequest regenerateKeyRequest); + DomainSharedAccessKeys listSharedAccessKeys(String resourceGroupName, String domainName); /** - * Regenerate a shared access key for a domain. + * Regenerate key for a domain. + * + *

Regenerate a shared access key for a domain. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the domain. @@ -173,7 +181,25 @@ Response regenerateKeyWithResponse( String resourceGroupName, String domainName, DomainRegenerateKeyRequest regenerateKeyRequest, Context context); /** - * Get properties of a domain. + * Regenerate key for a domain. + * + *

Regenerate a shared access key for a domain. + * + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param domainName Name of the domain. + * @param regenerateKeyRequest Request body to regenerate key. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return shared access keys of the Domain. + */ + DomainSharedAccessKeys regenerateKey( + String resourceGroupName, String domainName, DomainRegenerateKeyRequest regenerateKeyRequest); + + /** + * Get a domain. + * + *

Get properties of a domain. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -184,7 +210,9 @@ Response regenerateKeyWithResponse( Domain getById(String id); /** - * Get properties of a domain. + * Get a domain. + * + *

Get properties of a domain. * * @param id the resource ID. * @param context The context to associate with this operation. @@ -196,7 +224,9 @@ Response regenerateKeyWithResponse( Response getByIdWithResponse(String id, Context context); /** - * Delete existing domain. + * Delete a domain. + * + *

Delete existing domain. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -206,7 +236,9 @@ Response regenerateKeyWithResponse( void deleteById(String id); /** - * Delete existing domain. + * Delete a domain. + * + *

Delete existing domain. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/DomainsListResult.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/DomainsListResult.java index 3a2cda2b82ca..a5d10788875d 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/DomainsListResult.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/DomainsListResult.java @@ -24,6 +24,10 @@ public final class DomainsListResult { @JsonProperty(value = "nextLink") private String nextLink; + /** Creates an instance of DomainsListResult class. */ + public DomainsListResult() { + } + /** * Get the value property: A collection of Domains. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/DynamicDeliveryAttributeMapping.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/DynamicDeliveryAttributeMapping.java index b3a3a44e039d..c82e31c9f963 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/DynamicDeliveryAttributeMapping.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/DynamicDeliveryAttributeMapping.java @@ -21,6 +21,10 @@ public final class DynamicDeliveryAttributeMapping extends DeliveryAttributeMapp @JsonProperty(value = "properties") private DynamicDeliveryAttributeMappingProperties innerProperties; + /** Creates an instance of DynamicDeliveryAttributeMapping class. */ + public DynamicDeliveryAttributeMapping() { + } + /** * Get the innerProperties property: Properties of dynamic delivery attribute mapping. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/EndpointType.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/EndpointType.java index d4740d2a882e..319d1deb0d0c 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/EndpointType.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/EndpointType.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for EndpointType. */ +/** Type of the endpoint for the event subscription destination. */ public final class EndpointType extends ExpandableStringEnum { /** Static value WebHook for EndpointType. */ public static final EndpointType WEB_HOOK = fromString("WebHook"); @@ -31,6 +31,15 @@ public final class EndpointType extends ExpandableStringEnum { /** Static value AzureFunction for EndpointType. */ public static final EndpointType AZURE_FUNCTION = fromString("AzureFunction"); + /** + * Creates a new instance of EndpointType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public EndpointType() { + } + /** * Creates or finds a EndpointType from its string representation. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/EventDefinitionKind.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/EventDefinitionKind.java index 8d7fec095d82..4be9190f7a95 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/EventDefinitionKind.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/EventDefinitionKind.java @@ -8,11 +8,20 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for EventDefinitionKind. */ +/** The kind of event type used. */ public final class EventDefinitionKind extends ExpandableStringEnum { /** Static value Inline for EventDefinitionKind. */ public static final EventDefinitionKind INLINE = fromString("Inline"); + /** + * Creates a new instance of EventDefinitionKind value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public EventDefinitionKind() { + } + /** * Creates or finds a EventDefinitionKind from its string representation. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/EventDeliverySchema.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/EventDeliverySchema.java index fda4bd90184e..1e9f075877cc 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/EventDeliverySchema.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/EventDeliverySchema.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for EventDeliverySchema. */ +/** The event delivery schema for the event subscription. */ public final class EventDeliverySchema extends ExpandableStringEnum { /** Static value EventGridSchema for EventDeliverySchema. */ public static final EventDeliverySchema EVENT_GRID_SCHEMA = fromString("EventGridSchema"); @@ -19,6 +19,15 @@ public final class EventDeliverySchema extends ExpandableStringEnumGet all delivery attributes for an event subscription for topic. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -487,16 +480,20 @@ interface WithDeadLetterWithResourceIdentity { Response getDeliveryAttributesWithResponse(Context context); /** - * Get the full endpoint URL for an event subscription for topic. + * Get delivery attributes for an event subscription for topic. + * + *

Get all delivery attributes for an event subscription for topic. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the full endpoint URL for an event subscription for topic. + * @return all delivery attributes for an event subscription for topic. */ - EventSubscriptionFullUrl getFullUrl(); + DeliveryAttributeListResult getDeliveryAttributes(); /** - * Get the full endpoint URL for an event subscription for topic. + * Get full URL of an event subscription for topic. + * + *

Get the full endpoint URL for an event subscription for topic. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -505,4 +502,15 @@ interface WithDeadLetterWithResourceIdentity { * @return the full endpoint URL for an event subscription for topic along with {@link Response}. */ Response getFullUrlWithResponse(Context context); + + /** + * Get full URL of an event subscription for topic. + * + *

Get the full endpoint URL for an event subscription for topic. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the full endpoint URL for an event subscription for topic. + */ + EventSubscriptionFullUrl getFullUrl(); } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/EventSubscriptionDestination.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/EventSubscriptionDestination.java index 7a53b4d754ff..e5ed339baea4 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/EventSubscriptionDestination.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/EventSubscriptionDestination.java @@ -27,6 +27,10 @@ }) @Immutable public class EventSubscriptionDestination { + /** Creates an instance of EventSubscriptionDestination class. */ + public EventSubscriptionDestination() { + } + /** * Validates the instance. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/EventSubscriptionFilter.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/EventSubscriptionFilter.java index 0abcd796e0aa..c214a5b9b751 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/EventSubscriptionFilter.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/EventSubscriptionFilter.java @@ -12,8 +12,7 @@ @Fluent public final class EventSubscriptionFilter { /* - * An optional string to filter events for an event subscription based on a - * resource path prefix. + * An optional string to filter events for an event subscription based on a resource path prefix. * The format of this depends on the publisher of the events. * Wildcard characters are not supported in this path. */ @@ -21,43 +20,42 @@ public final class EventSubscriptionFilter { private String subjectBeginsWith; /* - * An optional string to filter events for an event subscription based on a - * resource path suffix. + * An optional string to filter events for an event subscription based on a resource path suffix. * Wildcard characters are not supported in this path. */ @JsonProperty(value = "subjectEndsWith") private String subjectEndsWith; /* - * A list of applicable event types that need to be part of the event - * subscription. If it is desired to subscribe to all default event types, - * set the IncludedEventTypes to null. + * A list of applicable event types that need to be part of the event subscription. If it is desired to subscribe + * to all default event types, set the IncludedEventTypes to null. */ @JsonProperty(value = "includedEventTypes") private List includedEventTypes; /* - * Specifies if the SubjectBeginsWith and SubjectEndsWith properties of the - * filter + * Specifies if the SubjectBeginsWith and SubjectEndsWith properties of the filter * should be compared in a case sensitive manner. */ @JsonProperty(value = "isSubjectCaseSensitive") private Boolean isSubjectCaseSensitive; /* - * Allows advanced filters to be evaluated against an array of values - * instead of expecting a singular value. + * Allows advanced filters to be evaluated against an array of values instead of expecting a singular value. */ @JsonProperty(value = "enableAdvancedFilteringOnArrays") private Boolean enableAdvancedFilteringOnArrays; /* - * An array of advanced filters that are used for filtering event - * subscriptions. + * An array of advanced filters that are used for filtering event subscriptions. */ @JsonProperty(value = "advancedFilters") private List advancedFilters; + /** Creates an instance of EventSubscriptionFilter class. */ + public EventSubscriptionFilter() { + } + /** * Get the subjectBeginsWith property: An optional string to filter events for an event subscription based on a * resource path prefix. The format of this depends on the publisher of the events. Wildcard characters are not diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/EventSubscriptionIdentity.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/EventSubscriptionIdentity.java index 541e7335257c..012aae4d42d7 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/EventSubscriptionIdentity.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/EventSubscriptionIdentity.java @@ -9,11 +9,10 @@ /** The identity information with the event subscription. */ @Fluent -public class EventSubscriptionIdentity { +public final class EventSubscriptionIdentity { /* - * The type of managed identity used. The type 'SystemAssigned, - * UserAssigned' includes both an implicitly created identity and a set of - * user-assigned identities. The type 'None' will remove any identity. + * The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both an implicitly created + * identity and a set of user-assigned identities. The type 'None' will remove any identity. */ @JsonProperty(value = "type") private EventSubscriptionIdentityType type; @@ -24,6 +23,10 @@ public class EventSubscriptionIdentity { @JsonProperty(value = "userAssignedIdentity") private String userAssignedIdentity; + /** Creates an instance of EventSubscriptionIdentity class. */ + public EventSubscriptionIdentity() { + } + /** * Get the type property: The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both * an implicitly created identity and a set of user-assigned identities. The type 'None' will remove any identity. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/EventSubscriptionIdentityType.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/EventSubscriptionIdentityType.java index e2857f578025..bac4a907a147 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/EventSubscriptionIdentityType.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/EventSubscriptionIdentityType.java @@ -8,7 +8,10 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for EventSubscriptionIdentityType. */ +/** + * The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both an implicitly created + * identity and a set of user-assigned identities. The type 'None' will remove any identity. + */ public final class EventSubscriptionIdentityType extends ExpandableStringEnum { /** Static value SystemAssigned for EventSubscriptionIdentityType. */ public static final EventSubscriptionIdentityType SYSTEM_ASSIGNED = fromString("SystemAssigned"); @@ -16,6 +19,15 @@ public final class EventSubscriptionIdentityType extends ExpandableStringEnum { /** Static value Creating for EventSubscriptionProvisioningState. */ public static final EventSubscriptionProvisioningState CREATING = fromString("Creating"); @@ -31,6 +31,15 @@ public final class EventSubscriptionProvisioningState extends ExpandableStringEn /** Static value AwaitingManualAction for EventSubscriptionProvisioningState. */ public static final EventSubscriptionProvisioningState AWAITING_MANUAL_ACTION = fromString("AwaitingManualAction"); + /** + * Creates a new instance of EventSubscriptionProvisioningState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public EventSubscriptionProvisioningState() { + } + /** * Creates or finds a EventSubscriptionProvisioningState from its string representation. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/EventSubscriptionUpdateParameters.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/EventSubscriptionUpdateParameters.java index e74c4afe84b6..bca865b86e73 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/EventSubscriptionUpdateParameters.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/EventSubscriptionUpdateParameters.java @@ -13,20 +13,17 @@ @Fluent public final class EventSubscriptionUpdateParameters { /* - * Information about the destination where events have to be delivered for - * the event subscription. - * Uses Azure Event Grid's identity to acquire the authentication tokens - * being used during delivery / dead-lettering. + * Information about the destination where events have to be delivered for the event subscription. + * Uses Azure Event Grid's identity to acquire the authentication tokens being used during delivery / + * dead-lettering. */ @JsonProperty(value = "destination") private EventSubscriptionDestination destination; /* - * Information about the destination where events have to be delivered for - * the event subscription. - * Uses the managed identity setup on the parent resource (topic / domain) - * to acquire the authentication tokens being used during delivery / - * dead-lettering. + * Information about the destination where events have to be delivered for the event subscription. + * Uses the managed identity setup on the parent resource (topic / domain) to acquire the authentication tokens + * being used during delivery / dead-lettering. */ @JsonProperty(value = "deliveryWithResourceIdentity") private DeliveryWithResourceIdentity deliveryWithResourceIdentity; @@ -56,33 +53,34 @@ public final class EventSubscriptionUpdateParameters { private EventDeliverySchema eventDeliverySchema; /* - * The retry policy for events. This can be used to configure maximum - * number of delivery attempts and time to live for events. + * The retry policy for events. This can be used to configure maximum number of delivery attempts and time to live + * for events. */ @JsonProperty(value = "retryPolicy") private RetryPolicy retryPolicy; /* - * The dead letter destination of the event subscription. Any event that - * cannot be delivered to its' destination is sent to the dead letter - * destination. - * Uses Azure Event Grid's identity to acquire the authentication tokens - * being used during delivery / dead-lettering. + * The dead letter destination of the event subscription. Any event that cannot be delivered to its' destination is + * sent to the dead letter destination. + * Uses Azure Event Grid's identity to acquire the authentication tokens being used during delivery / + * dead-lettering. */ @JsonProperty(value = "deadLetterDestination") private DeadLetterDestination deadLetterDestination; /* - * The dead letter destination of the event subscription. Any event that - * cannot be delivered to its' destination is sent to the dead letter - * destination. - * Uses the managed identity setup on the parent resource (topic / domain) - * to acquire the authentication tokens being used during delivery / - * dead-lettering. + * The dead letter destination of the event subscription. Any event that cannot be delivered to its' destination is + * sent to the dead letter destination. + * Uses the managed identity setup on the parent resource (topic / domain) to acquire the authentication tokens + * being used during delivery / dead-lettering. */ @JsonProperty(value = "deadLetterWithResourceIdentity") private DeadLetterWithResourceIdentity deadLetterWithResourceIdentity; + /** Creates an instance of EventSubscriptionUpdateParameters class. */ + public EventSubscriptionUpdateParameters() { + } + /** * Get the destination property: Information about the destination where events have to be delivered for the event * subscription. Uses Azure Event Grid's identity to acquire the authentication tokens being used during delivery / diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/EventSubscriptions.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/EventSubscriptions.java index d067f34d4551..b90c6a6885ec 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/EventSubscriptions.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/EventSubscriptions.java @@ -12,7 +12,9 @@ /** Resource collection API of EventSubscriptions. */ public interface EventSubscriptions { /** - * Get properties of an event subscription. + * Get an event subscription. + * + *

Get properties of an event subscription. * * @param scope The scope of the event subscription. The scope can be a subscription, or a resource group, or a top * level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -23,15 +25,18 @@ public interface EventSubscriptions { * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' * for an EventGrid topic. * @param eventSubscriptionName Name of the event subscription. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of an event subscription. + * @return properties of an event subscription along with {@link Response}. */ - EventSubscription get(String scope, String eventSubscriptionName); + Response getWithResponse(String scope, String eventSubscriptionName, Context context); /** - * Get properties of an event subscription. + * Get an event subscription. + * + *

Get properties of an event subscription. * * @param scope The scope of the event subscription. The scope can be a subscription, or a resource group, or a top * level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -42,17 +47,18 @@ public interface EventSubscriptions { * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' * for an EventGrid topic. * @param eventSubscriptionName Name of the event subscription. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of an event subscription along with {@link Response}. + * @return properties of an event subscription. */ - Response getWithResponse(String scope, String eventSubscriptionName, Context context); + EventSubscription get(String scope, String eventSubscriptionName); /** - * Asynchronously creates a new event subscription or updates an existing event subscription based on the specified - * scope. + * Create or update an event subscription. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription based on the + * specified scope. * * @param scope The identifier of the resource to which the event subscription needs to be created or updated. The * scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider @@ -74,8 +80,10 @@ EventSubscription createOrUpdate( String scope, String eventSubscriptionName, EventSubscriptionInner eventSubscriptionInfo); /** - * Asynchronously creates a new event subscription or updates an existing event subscription based on the specified - * scope. + * Create or update an event subscription. + * + *

Asynchronously creates a new event subscription or updates an existing event subscription based on the + * specified scope. * * @param scope The identifier of the resource to which the event subscription needs to be created or updated. The * scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider @@ -98,7 +106,9 @@ EventSubscription createOrUpdate( String scope, String eventSubscriptionName, EventSubscriptionInner eventSubscriptionInfo, Context context); /** - * Delete an existing event subscription. + * Delete an event subscription. + * + *

Delete an existing event subscription. * * @param scope The scope of the event subscription. The scope can be a subscription, or a resource group, or a top * level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -116,7 +126,9 @@ EventSubscription createOrUpdate( void deleteByResourceGroup(String scope, String eventSubscriptionName); /** - * Delete an existing event subscription. + * Delete an event subscription. + * + *

Delete an existing event subscription. * * @param scope The scope of the event subscription. The scope can be a subscription, or a resource group, or a top * level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -135,7 +147,9 @@ EventSubscription createOrUpdate( void delete(String scope, String eventSubscriptionName, Context context); /** - * Asynchronously updates an existing event subscription. + * Update an event subscription. + * + *

Asynchronously updates an existing event subscription. * * @param scope The scope of existing event subscription. The scope can be a subscription, or a resource group, or a * top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -158,7 +172,9 @@ EventSubscription update( EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters); /** - * Asynchronously updates an existing event subscription. + * Update an event subscription. + * + *

Asynchronously updates an existing event subscription. * * @param scope The scope of existing event subscription. The scope can be a subscription, or a resource group, or a * top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -183,7 +199,9 @@ EventSubscription update( Context context); /** - * Get the full endpoint URL for an event subscription. + * Get full URL of an event subscription. + * + *

Get the full endpoint URL for an event subscription. * * @param scope The scope of the event subscription. The scope can be a subscription, or a resource group, or a top * level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -194,15 +212,19 @@ EventSubscription update( * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' * for an EventGrid topic. * @param eventSubscriptionName Name of the event subscription. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the full endpoint URL for an event subscription. + * @return the full endpoint URL for an event subscription along with {@link Response}. */ - EventSubscriptionFullUrl getFullUrl(String scope, String eventSubscriptionName); + Response getFullUrlWithResponse( + String scope, String eventSubscriptionName, Context context); /** - * Get the full endpoint URL for an event subscription. + * Get full URL of an event subscription. + * + *

Get the full endpoint URL for an event subscription. * * @param scope The scope of the event subscription. The scope can be a subscription, or a resource group, or a top * level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -213,17 +235,17 @@ EventSubscription update( * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' * for an EventGrid topic. * @param eventSubscriptionName Name of the event subscription. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the full endpoint URL for an event subscription along with {@link Response}. + * @return the full endpoint URL for an event subscription. */ - Response getFullUrlWithResponse( - String scope, String eventSubscriptionName, Context context); + EventSubscriptionFullUrl getFullUrl(String scope, String eventSubscriptionName); /** - * List all aggregated global event subscriptions under a specific Azure subscription. + * Get an aggregated list of all global event subscriptions under an Azure subscription. + * + *

List all aggregated global event subscriptions under a specific Azure subscription. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -232,7 +254,9 @@ Response getFullUrlWithResponse( PagedIterable list(); /** - * List all aggregated global event subscriptions under a specific Azure subscription. + * Get an aggregated list of all global event subscriptions under an Azure subscription. + * + *

List all aggregated global event subscriptions under a specific Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -251,7 +275,9 @@ Response getFullUrlWithResponse( PagedIterable list(String filter, Integer top, Context context); /** - * List all global event subscriptions under an Azure subscription for a topic type. + * List all global event subscriptions for a topic type. + * + *

List all global event subscriptions under an Azure subscription for a topic type. * * @param topicTypeName Name of the topic type. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -262,7 +288,9 @@ Response getFullUrlWithResponse( PagedIterable listGlobalBySubscriptionForTopicType(String topicTypeName); /** - * List all global event subscriptions under an Azure subscription for a topic type. + * List all global event subscriptions for a topic type. + * + *

List all global event subscriptions under an Azure subscription for a topic type. * * @param topicTypeName Name of the topic type. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -283,7 +311,9 @@ PagedIterable listGlobalBySubscriptionForTopicType( String topicTypeName, String filter, Integer top, Context context); /** - * List all global event subscriptions under a specific Azure subscription and resource group. + * List all global event subscriptions under an Azure subscription and resource group. + * + *

List all global event subscriptions under a specific Azure subscription and resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -294,7 +324,9 @@ PagedIterable listGlobalBySubscriptionForTopicType( PagedIterable listByResourceGroup(String resourceGroupName); /** - * List all global event subscriptions under a specific Azure subscription and resource group. + * List all global event subscriptions under an Azure subscription and resource group. + * + *

List all global event subscriptions under a specific Azure subscription and resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -315,7 +347,9 @@ PagedIterable listByResourceGroup( String resourceGroupName, String filter, Integer top, Context context); /** - * List all global event subscriptions under a resource group for a specific topic type. + * List all global event subscriptions under a resource group for a topic type. + * + *

List all global event subscriptions under a resource group for a specific topic type. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicTypeName Name of the topic type. @@ -328,7 +362,9 @@ PagedIterable listGlobalByResourceGroupForTopicType( String resourceGroupName, String topicTypeName); /** - * List all global event subscriptions under a resource group for a specific topic type. + * List all global event subscriptions under a resource group for a topic type. + * + *

List all global event subscriptions under a resource group for a specific topic type. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicTypeName Name of the topic type. @@ -350,7 +386,9 @@ PagedIterable listGlobalByResourceGroupForTopicType( String resourceGroupName, String topicTypeName, String filter, Integer top, Context context); /** - * List all event subscriptions from the given location under a specific Azure subscription. + * List all regional event subscriptions under an Azure subscription. + * + *

List all event subscriptions from the given location under a specific Azure subscription. * * @param location Name of the location. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -361,7 +399,9 @@ PagedIterable listGlobalByResourceGroupForTopicType( PagedIterable listRegionalBySubscription(String location); /** - * List all event subscriptions from the given location under a specific Azure subscription. + * List all regional event subscriptions under an Azure subscription. + * + *

List all event subscriptions from the given location under a specific Azure subscription. * * @param location Name of the location. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -382,7 +422,9 @@ PagedIterable listRegionalBySubscription( String location, String filter, Integer top, Context context); /** - * List all event subscriptions from the given location under a specific Azure subscription and resource group. + * List all regional event subscriptions under an Azure subscription and resource group. + * + *

List all event subscriptions from the given location under a specific Azure subscription and resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param location Name of the location. @@ -394,7 +436,9 @@ PagedIterable listRegionalBySubscription( PagedIterable listRegionalByResourceGroup(String resourceGroupName, String location); /** - * List all event subscriptions from the given location under a specific Azure subscription and resource group. + * List all regional event subscriptions under an Azure subscription and resource group. + * + *

List all event subscriptions from the given location under a specific Azure subscription and resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param location Name of the location. @@ -416,7 +460,9 @@ PagedIterable listRegionalByResourceGroup( String resourceGroupName, String location, String filter, Integer top, Context context); /** - * List all event subscriptions from the given location under a specific Azure subscription and topic type. + * List all regional event subscriptions under an Azure subscription for a topic type. + * + *

List all event subscriptions from the given location under a specific Azure subscription and topic type. * * @param location Name of the location. * @param topicTypeName Name of the topic type. @@ -428,7 +474,9 @@ PagedIterable listRegionalByResourceGroup( PagedIterable listRegionalBySubscriptionForTopicType(String location, String topicTypeName); /** - * List all event subscriptions from the given location under a specific Azure subscription and topic type. + * List all regional event subscriptions under an Azure subscription for a topic type. + * + *

List all event subscriptions from the given location under a specific Azure subscription and topic type. * * @param location Name of the location. * @param topicTypeName Name of the topic type. @@ -450,8 +498,10 @@ PagedIterable listRegionalBySubscriptionForTopicType( String location, String topicTypeName, String filter, Integer top, Context context); /** - * List all event subscriptions from the given location under a specific Azure subscription and resource group and - * topic type. + * List all regional event subscriptions under an Azure subscription and resource group for a topic type. + * + *

List all event subscriptions from the given location under a specific Azure subscription and resource group + * and topic type. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param location Name of the location. @@ -465,8 +515,10 @@ PagedIterable listRegionalByResourceGroupForTopicType( String resourceGroupName, String location, String topicTypeName); /** - * List all event subscriptions from the given location under a specific Azure subscription and resource group and - * topic type. + * List all regional event subscriptions under an Azure subscription and resource group for a topic type. + * + *

List all event subscriptions from the given location under a specific Azure subscription and resource group + * and topic type. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param location Name of the location. @@ -489,7 +541,9 @@ PagedIterable listRegionalByResourceGroupForTopicType( String resourceGroupName, String location, String topicTypeName, String filter, Integer top, Context context); /** - * List all event subscriptions that have been created for a specific resource. + * List all event subscriptions. + * + *

List all event subscriptions that have been created for a specific resource. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param providerNamespace Namespace of the provider of the topic. @@ -504,7 +558,9 @@ PagedIterable listByResource( String resourceGroupName, String providerNamespace, String resourceTypeName, String resourceName); /** - * List all event subscriptions that have been created for a specific resource. + * List all event subscriptions. + * + *

List all event subscriptions that have been created for a specific resource. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param providerNamespace Namespace of the provider of the topic. @@ -534,7 +590,9 @@ PagedIterable listByResource( Context context); /** - * List all event subscriptions that have been created for a specific domain topic. + * List all event subscriptions for a specific domain topic. + * + *

List all event subscriptions that have been created for a specific domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -547,7 +605,9 @@ PagedIterable listByResource( PagedIterable listByDomainTopic(String resourceGroupName, String domainName, String topicName); /** - * List all event subscriptions that have been created for a specific domain topic. + * List all event subscriptions for a specific domain topic. + * + *

List all event subscriptions that have been created for a specific domain topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. @@ -570,7 +630,9 @@ PagedIterable listByDomainTopic( String resourceGroupName, String domainName, String topicName, String filter, Integer top, Context context); /** - * Get all delivery attributes for an event subscription. + * Get delivery attributes for an event subscription. + * + *

Get all delivery attributes for an event subscription. * * @param scope The scope of the event subscription. The scope can be a subscription, or a resource group, or a top * level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -581,15 +643,19 @@ PagedIterable listByDomainTopic( * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' * for an EventGrid topic. * @param eventSubscriptionName Name of the event subscription. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all delivery attributes for an event subscription. + * @return all delivery attributes for an event subscription along with {@link Response}. */ - DeliveryAttributeListResult getDeliveryAttributes(String scope, String eventSubscriptionName); + Response getDeliveryAttributesWithResponse( + String scope, String eventSubscriptionName, Context context); /** - * Get all delivery attributes for an event subscription. + * Get delivery attributes for an event subscription. + * + *

Get all delivery attributes for an event subscription. * * @param scope The scope of the event subscription. The scope can be a subscription, or a resource group, or a top * level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use @@ -600,12 +666,10 @@ PagedIterable listByDomainTopic( * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' * for an EventGrid topic. * @param eventSubscriptionName Name of the event subscription. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all delivery attributes for an event subscription along with {@link Response}. + * @return all delivery attributes for an event subscription. */ - Response getDeliveryAttributesWithResponse( - String scope, String eventSubscriptionName, Context context); + DeliveryAttributeListResult getDeliveryAttributes(String scope, String eventSubscriptionName); } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/EventSubscriptionsListResult.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/EventSubscriptionsListResult.java index 99b4aeca32b2..083c2729bb7e 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/EventSubscriptionsListResult.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/EventSubscriptionsListResult.java @@ -24,6 +24,10 @@ public final class EventSubscriptionsListResult { @JsonProperty(value = "nextLink") private String nextLink; + /** Creates an instance of EventSubscriptionsListResult class. */ + public EventSubscriptionsListResult() { + } + /** * Get the value property: A collection of EventSubscriptions. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/EventTypeInfo.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/EventTypeInfo.java index 1b323bc376f4..7bfeb73f62be 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/EventTypeInfo.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/EventTypeInfo.java @@ -19,16 +19,20 @@ public final class EventTypeInfo { private EventDefinitionKind kind; /* - * A collection of inline event types for the resource. The inline event - * type keys are of type string which represents the name of the event. + * A collection of inline event types for the resource. The inline event type keys are of type string which + * represents the name of the event. * An example of a valid inline event name is "Contoso.OrderCreated". - * The inline event type values are of type InlineEventProperties and will - * contain additional information for every inline event type. + * The inline event type values are of type InlineEventProperties and will contain additional information for every + * inline event type. */ @JsonProperty(value = "inlineEventTypes") @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map inlineEventTypes; + /** Creates an instance of EventTypeInfo class. */ + public EventTypeInfo() { + } + /** * Get the kind property: The kind of event type used. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/EventTypesListResult.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/EventTypesListResult.java index 7bdaba8e6396..56fb25bd056b 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/EventTypesListResult.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/EventTypesListResult.java @@ -18,6 +18,10 @@ public final class EventTypesListResult { @JsonProperty(value = "value") private List value; + /** Creates an instance of EventTypesListResult class. */ + public EventTypesListResult() { + } + /** * Get the value property: A collection of event types. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/ExtensionTopics.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/ExtensionTopics.java index a3e20cf90e36..e1605175f91c 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/ExtensionTopics.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/ExtensionTopics.java @@ -10,7 +10,9 @@ /** Resource collection API of ExtensionTopics. */ public interface ExtensionTopics { /** - * Get the properties of an extension topic. + * Get properties of an extension topic. + * + *

Get the properties of an extension topic. * * @param scope The identifier of the resource to which extension topic is queried. The scope can be a subscription, * or a resource group, or a top level resource belonging to a resource provider namespace. For example, use @@ -18,15 +20,18 @@ public interface ExtensionTopics { * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' * for Azure resource. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the properties of an extension topic. + * @return the properties of an extension topic along with {@link Response}. */ - ExtensionTopic get(String scope); + Response getWithResponse(String scope, Context context); /** - * Get the properties of an extension topic. + * Get properties of an extension topic. + * + *

Get the properties of an extension topic. * * @param scope The identifier of the resource to which extension topic is queried. The scope can be a subscription, * or a resource group, or a top level resource belonging to a resource provider namespace. For example, use @@ -34,11 +39,10 @@ public interface ExtensionTopics { * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' * for Azure resource. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the properties of an extension topic along with {@link Response}. + * @return the properties of an extension topic. */ - Response getWithResponse(String scope, Context context); + ExtensionTopic get(String scope); } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/HybridConnectionEventSubscriptionDestination.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/HybridConnectionEventSubscriptionDestination.java index 1329b5986044..41e77846b1ca 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/HybridConnectionEventSubscriptionDestination.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/HybridConnectionEventSubscriptionDestination.java @@ -22,6 +22,10 @@ public final class HybridConnectionEventSubscriptionDestination extends EventSub @JsonProperty(value = "properties") private HybridConnectionEventSubscriptionDestinationProperties innerProperties; + /** Creates an instance of HybridConnectionEventSubscriptionDestination class. */ + public HybridConnectionEventSubscriptionDestination() { + } + /** * Get the innerProperties property: Hybrid connection Properties of the event subscription destination. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/IdentityInfo.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/IdentityInfo.java index 5a7661a620ca..62f350bae373 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/IdentityInfo.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/IdentityInfo.java @@ -13,9 +13,8 @@ @Fluent public final class IdentityInfo { /* - * The type of managed identity used. The type 'SystemAssigned, - * UserAssigned' includes both an implicitly created identity and a set of - * user-assigned identities. The type 'None' will remove any identity. + * The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both an implicitly created + * identity and a set of user-assigned identities. The type 'None' will remove any identity. */ @JsonProperty(value = "type") private IdentityType type; @@ -33,8 +32,8 @@ public final class IdentityInfo { private String tenantId; /* - * The list of user identities associated with the resource. The user - * identity dictionary key references will be ARM resource ids in the form: + * The list of user identities associated with the resource. The user identity dictionary key references will be + * ARM resource ids in the form: * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. * This property is currently not used and reserved for future usage. */ @@ -42,6 +41,10 @@ public final class IdentityInfo { @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map userAssignedIdentities; + /** Creates an instance of IdentityInfo class. */ + public IdentityInfo() { + } + /** * Get the type property: The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both * an implicitly created identity and a set of user-assigned identities. The type 'None' will remove any identity. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/IdentityType.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/IdentityType.java index ba8beba02f43..03e921638079 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/IdentityType.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/IdentityType.java @@ -8,7 +8,10 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for IdentityType. */ +/** + * The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both an implicitly created + * identity and a set of user-assigned identities. The type 'None' will remove any identity. + */ public final class IdentityType extends ExpandableStringEnum { /** Static value None for IdentityType. */ public static final IdentityType NONE = fromString("None"); @@ -22,6 +25,15 @@ public final class IdentityType extends ExpandableStringEnum { /** Static value SystemAssigned, UserAssigned for IdentityType. */ public static final IdentityType SYSTEM_ASSIGNED_USER_ASSIGNED = fromString("SystemAssigned, UserAssigned"); + /** + * Creates a new instance of IdentityType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public IdentityType() { + } + /** * Creates or finds a IdentityType from its string representation. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/InboundIpRule.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/InboundIpRule.java index 87999099805d..dfde7a15a932 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/InboundIpRule.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/InboundIpRule.java @@ -22,6 +22,10 @@ public final class InboundIpRule { @JsonProperty(value = "action") private IpActionType action; + /** Creates an instance of InboundIpRule class. */ + public InboundIpRule() { + } + /** * Get the ipMask property: IP Address in CIDR notation e.g., 10.0.0.0/8. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/InlineEventProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/InlineEventProperties.java index 46bde739e5b3..8295176cf1d5 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/InlineEventProperties.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/InlineEventProperties.java @@ -34,6 +34,10 @@ public final class InlineEventProperties { @JsonProperty(value = "dataSchemaUrl") private String dataSchemaUrl; + /** Creates an instance of InlineEventProperties class. */ + public InlineEventProperties() { + } + /** * Get the description property: The description for the inline event. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/InputSchema.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/InputSchema.java index 7401357e42c5..dd18ca37ce39 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/InputSchema.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/InputSchema.java @@ -8,7 +8,10 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for InputSchema. */ +/** + * This determines the format that Event Grid should expect for incoming events published to the Event Grid Domain + * Resource. + */ public final class InputSchema extends ExpandableStringEnum { /** Static value EventGridSchema for InputSchema. */ public static final InputSchema EVENT_GRID_SCHEMA = fromString("EventGridSchema"); @@ -19,6 +22,15 @@ public final class InputSchema extends ExpandableStringEnum { /** Static value CloudEventSchemaV1_0 for InputSchema. */ public static final InputSchema CLOUD_EVENT_SCHEMA_V1_0 = fromString("CloudEventSchemaV1_0"); + /** + * Creates a new instance of InputSchema value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public InputSchema() { + } + /** * Creates or finds a InputSchema from its string representation. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/InputSchemaMapping.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/InputSchemaMapping.java index 15a03cadfdb0..3adc4a128729 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/InputSchemaMapping.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/InputSchemaMapping.java @@ -23,6 +23,10 @@ @JsonSubTypes({@JsonSubTypes.Type(name = "Json", value = JsonInputSchemaMapping.class)}) @Immutable public class InputSchemaMapping { + /** Creates an instance of InputSchemaMapping class. */ + public InputSchemaMapping() { + } + /** * Validates the instance. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/InputSchemaMappingType.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/InputSchemaMappingType.java index 0020c7a9cd9b..ff7132b9d23c 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/InputSchemaMappingType.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/InputSchemaMappingType.java @@ -8,11 +8,20 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for InputSchemaMappingType. */ +/** Type of the custom mapping. */ public final class InputSchemaMappingType extends ExpandableStringEnum { /** Static value Json for InputSchemaMappingType. */ public static final InputSchemaMappingType JSON = fromString("Json"); + /** + * Creates a new instance of InputSchemaMappingType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public InputSchemaMappingType() { + } + /** * Creates or finds a InputSchemaMappingType from its string representation. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/IpActionType.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/IpActionType.java index 261c315cccd2..967c4460110b 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/IpActionType.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/IpActionType.java @@ -8,11 +8,20 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for IpActionType. */ +/** Action to perform based on the match or no match of the IpMask. */ public final class IpActionType extends ExpandableStringEnum { /** Static value Allow for IpActionType. */ public static final IpActionType ALLOW = fromString("Allow"); + /** + * Creates a new instance of IpActionType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public IpActionType() { + } + /** * Creates or finds a IpActionType from its string representation. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/IsNotNullAdvancedFilter.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/IsNotNullAdvancedFilter.java index 5bf7a9c894b3..1298497d0ed8 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/IsNotNullAdvancedFilter.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/IsNotNullAdvancedFilter.java @@ -13,6 +13,10 @@ @JsonTypeName("IsNotNull") @Fluent public final class IsNotNullAdvancedFilter extends AdvancedFilter { + /** Creates an instance of IsNotNullAdvancedFilter class. */ + public IsNotNullAdvancedFilter() { + } + /** {@inheritDoc} */ @Override public IsNotNullAdvancedFilter withKey(String key) { diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/IsNullOrUndefinedAdvancedFilter.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/IsNullOrUndefinedAdvancedFilter.java index 4adc14266637..cf1f38a1b435 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/IsNullOrUndefinedAdvancedFilter.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/IsNullOrUndefinedAdvancedFilter.java @@ -13,6 +13,10 @@ @JsonTypeName("IsNullOrUndefined") @Fluent public final class IsNullOrUndefinedAdvancedFilter extends AdvancedFilter { + /** Creates an instance of IsNullOrUndefinedAdvancedFilter class. */ + public IsNullOrUndefinedAdvancedFilter() { + } + /** {@inheritDoc} */ @Override public IsNullOrUndefinedAdvancedFilter withKey(String key) { diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/JsonField.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/JsonField.java index 94b29d046a60..fd0180bd44ea 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/JsonField.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/JsonField.java @@ -15,12 +15,15 @@ @Fluent public final class JsonField { /* - * Name of a field in the input event schema that's to be used as the - * source of a mapping. + * Name of a field in the input event schema that's to be used as the source of a mapping. */ @JsonProperty(value = "sourceField") private String sourceField; + /** Creates an instance of JsonField class. */ + public JsonField() { + } + /** * Get the sourceField property: Name of a field in the input event schema that's to be used as the source of a * mapping. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/JsonFieldWithDefault.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/JsonFieldWithDefault.java index e1daa8f89a41..aba8700996f6 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/JsonFieldWithDefault.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/JsonFieldWithDefault.java @@ -16,20 +16,22 @@ @Fluent public final class JsonFieldWithDefault { /* - * Name of a field in the input event schema that's to be used as the - * source of a mapping. + * Name of a field in the input event schema that's to be used as the source of a mapping. */ @JsonProperty(value = "sourceField") private String sourceField; /* - * The default value to be used for mapping when a SourceField is not - * provided or if there's no property with the specified name in the - * published JSON event payload. + * The default value to be used for mapping when a SourceField is not provided or if there's no property with the + * specified name in the published JSON event payload. */ @JsonProperty(value = "defaultValue") private String defaultValue; + /** Creates an instance of JsonFieldWithDefault class. */ + public JsonFieldWithDefault() { + } + /** * Get the sourceField property: Name of a field in the input event schema that's to be used as the source of a * mapping. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/JsonInputSchemaMapping.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/JsonInputSchemaMapping.java index 11edfb7e2898..328e1c24685f 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/JsonInputSchemaMapping.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/JsonInputSchemaMapping.java @@ -24,6 +24,10 @@ public final class JsonInputSchemaMapping extends InputSchemaMapping { @JsonProperty(value = "properties") private JsonInputSchemaMappingProperties innerProperties; + /** Creates an instance of JsonInputSchemaMapping class. */ + public JsonInputSchemaMapping() { + } + /** * Get the innerProperties property: JSON Properties of the input schema mapping. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/NumberGreaterThanAdvancedFilter.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/NumberGreaterThanAdvancedFilter.java index a202a747157d..2cae4d61da26 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/NumberGreaterThanAdvancedFilter.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/NumberGreaterThanAdvancedFilter.java @@ -20,6 +20,10 @@ public final class NumberGreaterThanAdvancedFilter extends AdvancedFilter { @JsonProperty(value = "value") private Double value; + /** Creates an instance of NumberGreaterThanAdvancedFilter class. */ + public NumberGreaterThanAdvancedFilter() { + } + /** * Get the value property: The filter value. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/NumberGreaterThanOrEqualsAdvancedFilter.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/NumberGreaterThanOrEqualsAdvancedFilter.java index 8b7c58af7052..801a7b930f06 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/NumberGreaterThanOrEqualsAdvancedFilter.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/NumberGreaterThanOrEqualsAdvancedFilter.java @@ -20,6 +20,10 @@ public final class NumberGreaterThanOrEqualsAdvancedFilter extends AdvancedFilte @JsonProperty(value = "value") private Double value; + /** Creates an instance of NumberGreaterThanOrEqualsAdvancedFilter class. */ + public NumberGreaterThanOrEqualsAdvancedFilter() { + } + /** * Get the value property: The filter value. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/NumberInAdvancedFilter.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/NumberInAdvancedFilter.java index 82cf70375147..34512cf0a7e6 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/NumberInAdvancedFilter.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/NumberInAdvancedFilter.java @@ -21,6 +21,10 @@ public final class NumberInAdvancedFilter extends AdvancedFilter { @JsonProperty(value = "values") private List values; + /** Creates an instance of NumberInAdvancedFilter class. */ + public NumberInAdvancedFilter() { + } + /** * Get the values property: The set of filter values. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/NumberInRangeAdvancedFilter.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/NumberInRangeAdvancedFilter.java index 08aa08988e6c..a0921d0b30c1 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/NumberInRangeAdvancedFilter.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/NumberInRangeAdvancedFilter.java @@ -21,6 +21,10 @@ public final class NumberInRangeAdvancedFilter extends AdvancedFilter { @JsonProperty(value = "values") private List> values; + /** Creates an instance of NumberInRangeAdvancedFilter class. */ + public NumberInRangeAdvancedFilter() { + } + /** * Get the values property: The set of filter values. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/NumberLessThanAdvancedFilter.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/NumberLessThanAdvancedFilter.java index 24663e8433c2..77504a13fabd 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/NumberLessThanAdvancedFilter.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/NumberLessThanAdvancedFilter.java @@ -20,6 +20,10 @@ public final class NumberLessThanAdvancedFilter extends AdvancedFilter { @JsonProperty(value = "value") private Double value; + /** Creates an instance of NumberLessThanAdvancedFilter class. */ + public NumberLessThanAdvancedFilter() { + } + /** * Get the value property: The filter value. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/NumberLessThanOrEqualsAdvancedFilter.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/NumberLessThanOrEqualsAdvancedFilter.java index f77e3a08e309..0c24be8a6909 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/NumberLessThanOrEqualsAdvancedFilter.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/NumberLessThanOrEqualsAdvancedFilter.java @@ -20,6 +20,10 @@ public final class NumberLessThanOrEqualsAdvancedFilter extends AdvancedFilter { @JsonProperty(value = "value") private Double value; + /** Creates an instance of NumberLessThanOrEqualsAdvancedFilter class. */ + public NumberLessThanOrEqualsAdvancedFilter() { + } + /** * Get the value property: The filter value. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/NumberNotInAdvancedFilter.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/NumberNotInAdvancedFilter.java index 23d73b32a8e1..d5998ded9efc 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/NumberNotInAdvancedFilter.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/NumberNotInAdvancedFilter.java @@ -21,6 +21,10 @@ public final class NumberNotInAdvancedFilter extends AdvancedFilter { @JsonProperty(value = "values") private List values; + /** Creates an instance of NumberNotInAdvancedFilter class. */ + public NumberNotInAdvancedFilter() { + } + /** * Get the values property: The set of filter values. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/NumberNotInRangeAdvancedFilter.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/NumberNotInRangeAdvancedFilter.java index 1c5fb184bd03..f5d1a2681ae4 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/NumberNotInRangeAdvancedFilter.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/NumberNotInRangeAdvancedFilter.java @@ -21,6 +21,10 @@ public final class NumberNotInRangeAdvancedFilter extends AdvancedFilter { @JsonProperty(value = "values") private List> values; + /** Creates an instance of NumberNotInRangeAdvancedFilter class. */ + public NumberNotInRangeAdvancedFilter() { + } + /** * Get the values property: The set of filter values. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/OperationInfo.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/OperationInfo.java index 9ae6fc475deb..e2077d1cd100 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/OperationInfo.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/OperationInfo.java @@ -34,6 +34,10 @@ public final class OperationInfo { @JsonProperty(value = "description") private String description; + /** Creates an instance of OperationInfo class. */ + public OperationInfo() { + } + /** * Get the provider property: Name of the provider. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/Operations.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/Operations.java index b03d1b7969de..2a02c91d1ec0 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/Operations.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/Operations.java @@ -10,7 +10,9 @@ /** Resource collection API of Operations. */ public interface Operations { /** - * List the available operations supported by the Microsoft.EventGrid resource provider. + * List available operations. + * + *

List the available operations supported by the Microsoft.EventGrid resource provider. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -19,7 +21,9 @@ public interface Operations { PagedIterable list(); /** - * List the available operations supported by the Microsoft.EventGrid resource provider. + * List available operations. + * + *

List the available operations supported by the Microsoft.EventGrid resource provider. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/OperationsListResult.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/OperationsListResult.java index 93ccd84c14f1..44f031bd7258 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/OperationsListResult.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/OperationsListResult.java @@ -18,6 +18,10 @@ public final class OperationsListResult { @JsonProperty(value = "value") private List value; + /** Creates an instance of OperationsListResult class. */ + public OperationsListResult() { + } + /** * Get the value property: A collection of operations. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/Partner.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/Partner.java index 1dab1e788fb7..4b0612abfd02 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/Partner.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/Partner.java @@ -25,19 +25,20 @@ public final class Partner { private String partnerName; /* - * Expiration time of the partner authorization. If this timer expires, any - * request from this partner to create, update or delete resources in - * subscriber's - * context will fail. If specified, the allowed values are between 1 to the - * value of defaultMaximumExpirationTimeInDays specified in - * PartnerConfiguration. - * If not specified, the default value will be the value of - * defaultMaximumExpirationTimeInDays specified in PartnerConfiguration or - * 7 if this value is not specified. + * Expiration time of the partner authorization. If this timer expires, any request from this partner to create, + * update or delete resources in subscriber's + * context will fail. If specified, the allowed values are between 1 to the value of + * defaultMaximumExpirationTimeInDays specified in PartnerConfiguration. + * If not specified, the default value will be the value of defaultMaximumExpirationTimeInDays specified in + * PartnerConfiguration or 7 if this value is not specified. */ @JsonProperty(value = "authorizationExpirationTimeInUtc") private OffsetDateTime authorizationExpirationTimeInUtc; + /** Creates an instance of Partner class. */ + public Partner() { + } + /** * Get the partnerRegistrationImmutableId property: The immutableId of the corresponding partner registration. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerAuthorization.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerAuthorization.java index 844c53289946..9c5f6d4b2829 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerAuthorization.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerAuthorization.java @@ -12,10 +12,9 @@ @Fluent public final class PartnerAuthorization { /* - * Time used to validate the authorization expiration time for each - * authorized partner. If DefaultMaximumExpirationTimeInDays is - * not specified, the default is 7 days. Otherwise, allowed values are - * between 1 and 365 days. + * Time used to validate the authorization expiration time for each authorized partner. If + * DefaultMaximumExpirationTimeInDays is + * not specified, the default is 7 days. Otherwise, allowed values are between 1 and 365 days. */ @JsonProperty(value = "defaultMaximumExpirationTimeInDays") private Integer defaultMaximumExpirationTimeInDays; @@ -26,6 +25,10 @@ public final class PartnerAuthorization { @JsonProperty(value = "authorizedPartnersList") private List authorizedPartnersList; + /** Creates an instance of PartnerAuthorization class. */ + public PartnerAuthorization() { + } + /** * Get the defaultMaximumExpirationTimeInDays property: Time used to validate the authorization expiration time for * each authorized partner. If DefaultMaximumExpirationTimeInDays is not specified, the default is 7 days. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerConfigurationProvisioningState.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerConfigurationProvisioningState.java index fe3e305dce31..8ec670e943b5 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerConfigurationProvisioningState.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerConfigurationProvisioningState.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for PartnerConfigurationProvisioningState. */ +/** Provisioning state of the partner configuration. */ public final class PartnerConfigurationProvisioningState extends ExpandableStringEnum { /** Static value Creating for PartnerConfigurationProvisioningState. */ @@ -29,6 +29,15 @@ public final class PartnerConfigurationProvisioningState /** Static value Failed for PartnerConfigurationProvisioningState. */ public static final PartnerConfigurationProvisioningState FAILED = fromString("Failed"); + /** + * Creates a new instance of PartnerConfigurationProvisioningState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public PartnerConfigurationProvisioningState() { + } + /** * Creates or finds a PartnerConfigurationProvisioningState from its string representation. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerConfigurationUpdateParameters.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerConfigurationUpdateParameters.java index 688aa1d111d8..1b01b92e472a 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerConfigurationUpdateParameters.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerConfigurationUpdateParameters.java @@ -26,6 +26,10 @@ public final class PartnerConfigurationUpdateParameters { @JsonProperty(value = "properties") private PartnerConfigurationUpdateParameterProperties innerProperties; + /** Creates an instance of PartnerConfigurationUpdateParameters class. */ + public PartnerConfigurationUpdateParameters() { + } + /** * Get the tags property: Tags of the partner configuration resource. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerConfigurations.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerConfigurations.java index 83cb33f0f0a4..37803cd338f9 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerConfigurations.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerConfigurations.java @@ -12,30 +12,36 @@ /** Resource collection API of PartnerConfigurations. */ public interface PartnerConfigurations { /** - * Get properties of a partner configuration. + * Get a partner configuration. + * + *

Get properties of a partner configuration. * * @param resourceGroupName The name of the resource group within the user's subscription. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a partner configuration. + * @return properties of a partner configuration along with {@link Response}. */ - PartnerConfiguration getByResourceGroup(String resourceGroupName); + Response getByResourceGroupWithResponse(String resourceGroupName, Context context); /** - * Get properties of a partner configuration. + * Get a partner configuration. + * + *

Get properties of a partner configuration. * * @param resourceGroupName The name of the resource group within the user's subscription. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a partner configuration along with {@link Response}. + * @return properties of a partner configuration. */ - Response getByResourceGroupWithResponse(String resourceGroupName, Context context); + PartnerConfiguration getByResourceGroup(String resourceGroupName); /** - * Synchronously creates or updates a partner configuration with the specified parameters. + * Create or update a partner configuration. + * + *

Synchronously creates or updates a partner configuration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerConfigurationInfo Partner configuration information. @@ -47,7 +53,9 @@ public interface PartnerConfigurations { PartnerConfiguration createOrUpdate(String resourceGroupName, PartnerConfigurationInner partnerConfigurationInfo); /** - * Synchronously creates or updates a partner configuration with the specified parameters. + * Create or update a partner configuration. + * + *

Synchronously creates or updates a partner configuration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerConfigurationInfo Partner configuration information. @@ -61,7 +69,9 @@ PartnerConfiguration createOrUpdate( String resourceGroupName, PartnerConfigurationInner partnerConfigurationInfo, Context context); /** - * Delete existing partner configuration. + * Delete a partner configuration. + * + *

Delete existing partner configuration. * * @param resourceGroupName The name of the resource group within the user's subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -71,7 +81,9 @@ PartnerConfiguration createOrUpdate( void delete(String resourceGroupName); /** - * Delete existing partner configuration. + * Delete a partner configuration. + * + *

Delete existing partner configuration. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param context The context to associate with this operation. @@ -82,7 +94,9 @@ PartnerConfiguration createOrUpdate( void delete(String resourceGroupName, Context context); /** - * Synchronously updates a partner configuration with the specified parameters. + * Update a partner configuration. + * + *

Synchronously updates a partner configuration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerConfigurationUpdateParameters Partner configuration update information. @@ -95,7 +109,9 @@ PartnerConfiguration update( String resourceGroupName, PartnerConfigurationUpdateParameters partnerConfigurationUpdateParameters); /** - * Synchronously updates a partner configuration with the specified parameters. + * Update a partner configuration. + * + *

Synchronously updates a partner configuration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerConfigurationUpdateParameters Partner configuration update information. @@ -111,7 +127,9 @@ PartnerConfiguration update( Context context); /** - * List all the partner configurations under a resource group. + * List partner configurations under a resource group. + * + *

List all the partner configurations under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -122,7 +140,9 @@ PartnerConfiguration update( PagedIterable listByResourceGroup(String resourceGroupName); /** - * List all the partner configurations under a resource group. + * List partner configurations under a resource group. + * + *

List all the partner configurations under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param context The context to associate with this operation. @@ -134,7 +154,9 @@ PartnerConfiguration update( PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** - * List all the partner configurations under an Azure subscription. + * List partner configurations under an Azure subscription. + * + *

List all the partner configurations under an Azure subscription. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -143,7 +165,9 @@ PartnerConfiguration update( PagedIterable list(); /** - * List all the partner configurations under an Azure subscription. + * List partner configurations under an Azure subscription. + * + *

List all the partner configurations under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -162,19 +186,9 @@ PartnerConfiguration update( PagedIterable list(String filter, Integer top, Context context); /** - * Authorize a single partner either by partner registration immutable Id or by partner name. + * Authorize a partner. * - * @param resourceGroupName The name of the resource group within the user's subscription. - * @param partnerInfo The information of the partner to be authorized. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return partner configuration information. - */ - PartnerConfiguration authorizePartner(String resourceGroupName, Partner partnerInfo); - - /** - * Authorize a single partner either by partner registration immutable Id or by partner name. + *

Authorize a single partner either by partner registration immutable Id or by partner name. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerInfo The information of the partner to be authorized. @@ -188,19 +202,23 @@ Response authorizePartnerWithResponse( String resourceGroupName, Partner partnerInfo, Context context); /** - * Unauthorize a single partner either by partner registration immutable Id or by partner name. + * Authorize a partner. + * + *

Authorize a single partner either by partner registration immutable Id or by partner name. * * @param resourceGroupName The name of the resource group within the user's subscription. - * @param partnerInfo The information of the partner to be unauthorized. + * @param partnerInfo The information of the partner to be authorized. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return partner configuration information. */ - PartnerConfiguration unauthorizePartner(String resourceGroupName, Partner partnerInfo); + PartnerConfiguration authorizePartner(String resourceGroupName, Partner partnerInfo); /** - * Unauthorize a single partner either by partner registration immutable Id or by partner name. + * Unauthorize a partner. + * + *

Unauthorize a single partner either by partner registration immutable Id or by partner name. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerInfo The information of the partner to be unauthorized. @@ -212,4 +230,18 @@ Response authorizePartnerWithResponse( */ Response unauthorizePartnerWithResponse( String resourceGroupName, Partner partnerInfo, Context context); + + /** + * Unauthorize a partner. + * + *

Unauthorize a single partner either by partner registration immutable Id or by partner name. + * + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerInfo The information of the partner to be unauthorized. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return partner configuration information. + */ + PartnerConfiguration unauthorizePartner(String resourceGroupName, Partner partnerInfo); } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerConfigurationsListResult.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerConfigurationsListResult.java index 1ad5b8a59539..b17f9f77c5ef 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerConfigurationsListResult.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerConfigurationsListResult.java @@ -24,6 +24,10 @@ public final class PartnerConfigurationsListResult { @JsonProperty(value = "nextLink") private String nextLink; + /** Creates an instance of PartnerConfigurationsListResult class. */ + public PartnerConfigurationsListResult() { + } + /** * Get the value property: A collection of partner configurations. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerDetails.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerDetails.java index 03d8ebe3f2c6..90c75bf183de 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerDetails.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerDetails.java @@ -11,27 +11,29 @@ @Fluent public final class PartnerDetails { /* - * This is short description about the partner. The length of this - * description should not exceed 256 characters. + * This is short description about the partner. The length of this description should not exceed 256 characters. */ @JsonProperty(value = "description") private String description; /* - * Long description for the partner's scenarios and integration.Length of - * this description should not exceed 2048 characters. + * Long description for the partner's scenarios and integration.Length of this description should not exceed 2048 + * characters. */ @JsonProperty(value = "longDescription") private String longDescription; /* - * URI of the partner website that can be used by Azure customers to setup - * Event Grid + * URI of the partner website that can be used by Azure customers to setup Event Grid * integration on an event source. */ @JsonProperty(value = "setupUri") private String setupUri; + /** Creates an instance of PartnerDetails class. */ + public PartnerDetails() { + } + /** * Get the description property: This is short description about the partner. The length of this description should * not exceed 256 characters. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerNamespace.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerNamespace.java index 0d0609c285bd..ccc62e340ca2 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerNamespace.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerNamespace.java @@ -245,14 +245,12 @@ interface WithPublicNetworkAccess { /** * Specifies the publicNetworkAccess property: This determines if traffic is allowed over public network. By * default it is enabled. You can further restrict to specific IPs by configuring <seealso - * cref="P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.PartnerNamespaceProperties" - + ".InboundIpRules" + * cref="P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.PartnerNamespaceProperties.InboundIpRules" * />. * * @param publicNetworkAccess This determines if traffic is allowed over public network. By default it is * enabled. You can further restrict to specific IPs by configuring <seealso - * cref="P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.PartnerNamespaceProperties" - + ".InboundIpRules" + * cref="P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.PartnerNamespaceProperties.InboundIpRules" * />. * @return the next definition stage. */ @@ -346,14 +344,12 @@ interface WithPublicNetworkAccess { /** * Specifies the publicNetworkAccess property: This determines if traffic is allowed over public network. By * default it is enabled. You can further restrict to specific IPs by configuring <seealso - * cref="P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts" - + ".PartnerNamespaceUpdateParameterProperties.InboundIpRules" + * cref="P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.PartnerNamespaceUpdateParameterProperties.InboundIpRules" * />. * * @param publicNetworkAccess This determines if traffic is allowed over public network. By default it is * enabled. You can further restrict to specific IPs by configuring <seealso - * cref="P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts" - + ".PartnerNamespaceUpdateParameterProperties.InboundIpRules" + * cref="P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.PartnerNamespaceUpdateParameterProperties.InboundIpRules" * />. * @return the next definition stage. */ @@ -402,16 +398,9 @@ interface WithDisableLocalAuth { PartnerNamespace refresh(Context context); /** - * List the two keys used to publish to a partner namespace. + * List keys for a partner namespace. * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return shared access keys of the partner namespace. - */ - PartnerNamespaceSharedAccessKeys listSharedAccessKeys(); - - /** - * List the two keys used to publish to a partner namespace. + *

List the two keys used to publish to a partner namespace. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -422,18 +411,20 @@ interface WithDisableLocalAuth { Response listSharedAccessKeysWithResponse(Context context); /** - * Regenerate a shared access key for a partner namespace. + * List keys for a partner namespace. + * + *

List the two keys used to publish to a partner namespace. * - * @param regenerateKeyRequest Request body to regenerate key. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return shared access keys of the partner namespace. */ - PartnerNamespaceSharedAccessKeys regenerateKey(PartnerNamespaceRegenerateKeyRequest regenerateKeyRequest); + PartnerNamespaceSharedAccessKeys listSharedAccessKeys(); /** - * Regenerate a shared access key for a partner namespace. + * Regenerate key for a partner namespace. + * + *

Regenerate a shared access key for a partner namespace. * * @param regenerateKeyRequest Request body to regenerate key. * @param context The context to associate with this operation. @@ -444,4 +435,17 @@ interface WithDisableLocalAuth { */ Response regenerateKeyWithResponse( PartnerNamespaceRegenerateKeyRequest regenerateKeyRequest, Context context); + + /** + * Regenerate key for a partner namespace. + * + *

Regenerate a shared access key for a partner namespace. + * + * @param regenerateKeyRequest Request body to regenerate key. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return shared access keys of the partner namespace. + */ + PartnerNamespaceSharedAccessKeys regenerateKey(PartnerNamespaceRegenerateKeyRequest regenerateKeyRequest); } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerNamespaceProvisioningState.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerNamespaceProvisioningState.java index 5e30f143ee9a..6fabc77bf4e8 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerNamespaceProvisioningState.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerNamespaceProvisioningState.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for PartnerNamespaceProvisioningState. */ +/** Provisioning state of the partner namespace. */ public final class PartnerNamespaceProvisioningState extends ExpandableStringEnum { /** Static value Creating for PartnerNamespaceProvisioningState. */ public static final PartnerNamespaceProvisioningState CREATING = fromString("Creating"); @@ -28,6 +28,15 @@ public final class PartnerNamespaceProvisioningState extends ExpandableStringEnu /** Static value Failed for PartnerNamespaceProvisioningState. */ public static final PartnerNamespaceProvisioningState FAILED = fromString("Failed"); + /** + * Creates a new instance of PartnerNamespaceProvisioningState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public PartnerNamespaceProvisioningState() { + } + /** * Creates or finds a PartnerNamespaceProvisioningState from its string representation. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerNamespaceRegenerateKeyRequest.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerNamespaceRegenerateKeyRequest.java index 26987da63678..4c4fc4cff01f 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerNamespaceRegenerateKeyRequest.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerNamespaceRegenerateKeyRequest.java @@ -17,6 +17,10 @@ public final class PartnerNamespaceRegenerateKeyRequest { @JsonProperty(value = "keyName", required = true) private String keyName; + /** Creates an instance of PartnerNamespaceRegenerateKeyRequest class. */ + public PartnerNamespaceRegenerateKeyRequest() { + } + /** * Get the keyName property: Key name to regenerate (key1 or key2). * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerNamespaceUpdateParameters.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerNamespaceUpdateParameters.java index fbe06cce76fd..649610bb05cb 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerNamespaceUpdateParameters.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerNamespaceUpdateParameters.java @@ -27,6 +27,10 @@ public final class PartnerNamespaceUpdateParameters { @JsonProperty(value = "properties") private PartnerNamespaceUpdateParameterProperties innerProperties; + /** Creates an instance of PartnerNamespaceUpdateParameters class. */ + public PartnerNamespaceUpdateParameters() { + } + /** * Get the tags property: Tags of the Partner Namespace. * @@ -59,8 +63,7 @@ private PartnerNamespaceUpdateParameterProperties innerProperties() { /** * Get the publicNetworkAccess property: This determines if traffic is allowed over public network. By default it is * enabled. You can further restrict to specific IPs by configuring <seealso - * cref="P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.PartnerNamespaceUpdateParameterProperties" - + ".InboundIpRules" + * cref="P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.PartnerNamespaceUpdateParameterProperties.InboundIpRules" * />. * * @return the publicNetworkAccess value. @@ -72,8 +75,7 @@ public PublicNetworkAccess publicNetworkAccess() { /** * Set the publicNetworkAccess property: This determines if traffic is allowed over public network. By default it is * enabled. You can further restrict to specific IPs by configuring <seealso - * cref="P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.PartnerNamespaceUpdateParameterProperties" - + ".InboundIpRules" + * cref="P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.PartnerNamespaceUpdateParameterProperties.InboundIpRules" * />. * * @param publicNetworkAccess the publicNetworkAccess value to set. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerNamespaces.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerNamespaces.java index 5474468f8b12..7dc8dc3df7c3 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerNamespaces.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerNamespaces.java @@ -11,33 +11,39 @@ /** Resource collection API of PartnerNamespaces. */ public interface PartnerNamespaces { /** - * Get properties of a partner namespace. + * Get a partner namespace. + * + *

Get properties of a partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a partner namespace. + * @return properties of a partner namespace along with {@link Response}. */ - PartnerNamespace getByResourceGroup(String resourceGroupName, String partnerNamespaceName); + Response getByResourceGroupWithResponse( + String resourceGroupName, String partnerNamespaceName, Context context); /** - * Get properties of a partner namespace. + * Get a partner namespace. + * + *

Get properties of a partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a partner namespace along with {@link Response}. + * @return properties of a partner namespace. */ - Response getByResourceGroupWithResponse( - String resourceGroupName, String partnerNamespaceName, Context context); + PartnerNamespace getByResourceGroup(String resourceGroupName, String partnerNamespaceName); /** - * Delete existing partner namespace. + * Delete a partner namespace. + * + *

Delete existing partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -48,7 +54,9 @@ Response getByResourceGroupWithResponse( void deleteByResourceGroup(String resourceGroupName, String partnerNamespaceName); /** - * Delete existing partner namespace. + * Delete a partner namespace. + * + *

Delete existing partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. @@ -60,7 +68,9 @@ Response getByResourceGroupWithResponse( void delete(String resourceGroupName, String partnerNamespaceName, Context context); /** - * List all the partner namespaces under an Azure subscription. + * List partner namespaces under an Azure subscription. + * + *

List all the partner namespaces under an Azure subscription. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -69,7 +79,9 @@ Response getByResourceGroupWithResponse( PagedIterable list(); /** - * List all the partner namespaces under an Azure subscription. + * List partner namespaces under an Azure subscription. + * + *

List all the partner namespaces under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -88,7 +100,9 @@ Response getByResourceGroupWithResponse( PagedIterable list(String filter, Integer top, Context context); /** - * List all the partner namespaces under a resource group. + * List partner namespaces under a resource group. + * + *

List all the partner namespaces under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -99,7 +113,9 @@ Response getByResourceGroupWithResponse( PagedIterable listByResourceGroup(String resourceGroupName); /** - * List all the partner namespaces under a resource group. + * List partner namespaces under a resource group. + * + *

List all the partner namespaces under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -120,67 +136,77 @@ PagedIterable listByResourceGroup( String resourceGroupName, String filter, Integer top, Context context); /** - * List the two keys used to publish to a partner namespace. + * List keys for a partner namespace. + * + *

List the two keys used to publish to a partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return shared access keys of the partner namespace. + * @return shared access keys of the partner namespace along with {@link Response}. */ - PartnerNamespaceSharedAccessKeys listSharedAccessKeys(String resourceGroupName, String partnerNamespaceName); + Response listSharedAccessKeysWithResponse( + String resourceGroupName, String partnerNamespaceName, Context context); /** - * List the two keys used to publish to a partner namespace. + * List keys for a partner namespace. + * + *

List the two keys used to publish to a partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return shared access keys of the partner namespace along with {@link Response}. + * @return shared access keys of the partner namespace. */ - Response listSharedAccessKeysWithResponse( - String resourceGroupName, String partnerNamespaceName, Context context); + PartnerNamespaceSharedAccessKeys listSharedAccessKeys(String resourceGroupName, String partnerNamespaceName); /** - * Regenerate a shared access key for a partner namespace. + * Regenerate key for a partner namespace. + * + *

Regenerate a shared access key for a partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. * @param regenerateKeyRequest Request body to regenerate key. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return shared access keys of the partner namespace. + * @return shared access keys of the partner namespace along with {@link Response}. */ - PartnerNamespaceSharedAccessKeys regenerateKey( + Response regenerateKeyWithResponse( String resourceGroupName, String partnerNamespaceName, - PartnerNamespaceRegenerateKeyRequest regenerateKeyRequest); + PartnerNamespaceRegenerateKeyRequest regenerateKeyRequest, + Context context); /** - * Regenerate a shared access key for a partner namespace. + * Regenerate key for a partner namespace. + * + *

Regenerate a shared access key for a partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerNamespaceName Name of the partner namespace. * @param regenerateKeyRequest Request body to regenerate key. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return shared access keys of the partner namespace along with {@link Response}. + * @return shared access keys of the partner namespace. */ - Response regenerateKeyWithResponse( + PartnerNamespaceSharedAccessKeys regenerateKey( String resourceGroupName, String partnerNamespaceName, - PartnerNamespaceRegenerateKeyRequest regenerateKeyRequest, - Context context); + PartnerNamespaceRegenerateKeyRequest regenerateKeyRequest); /** - * Get properties of a partner namespace. + * Get a partner namespace. + * + *

Get properties of a partner namespace. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -191,7 +217,9 @@ Response regenerateKeyWithResponse( PartnerNamespace getById(String id); /** - * Get properties of a partner namespace. + * Get a partner namespace. + * + *

Get properties of a partner namespace. * * @param id the resource ID. * @param context The context to associate with this operation. @@ -203,7 +231,9 @@ Response regenerateKeyWithResponse( Response getByIdWithResponse(String id, Context context); /** - * Delete existing partner namespace. + * Delete a partner namespace. + * + *

Delete existing partner namespace. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -213,7 +243,9 @@ Response regenerateKeyWithResponse( void deleteById(String id); /** - * Delete existing partner namespace. + * Delete a partner namespace. + * + *

Delete existing partner namespace. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerNamespacesListResult.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerNamespacesListResult.java index e16560cab918..cd906731ea74 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerNamespacesListResult.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerNamespacesListResult.java @@ -24,6 +24,10 @@ public final class PartnerNamespacesListResult { @JsonProperty(value = "nextLink") private String nextLink; + /** Creates an instance of PartnerNamespacesListResult class. */ + public PartnerNamespacesListResult() { + } + /** * Get the value property: A collection of partner namespaces. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerRegistrationProvisioningState.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerRegistrationProvisioningState.java index d50d185e7475..6fb2683eb4e7 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerRegistrationProvisioningState.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerRegistrationProvisioningState.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for PartnerRegistrationProvisioningState. */ +/** Provisioning state of the partner registration. */ public final class PartnerRegistrationProvisioningState extends ExpandableStringEnum { /** Static value Creating for PartnerRegistrationProvisioningState. */ @@ -29,6 +29,15 @@ public final class PartnerRegistrationProvisioningState /** Static value Failed for PartnerRegistrationProvisioningState. */ public static final PartnerRegistrationProvisioningState FAILED = fromString("Failed"); + /** + * Creates a new instance of PartnerRegistrationProvisioningState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public PartnerRegistrationProvisioningState() { + } + /** * Creates or finds a PartnerRegistrationProvisioningState from its string representation. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerRegistrationUpdateParameters.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerRegistrationUpdateParameters.java index 2367423c25fb..013baae7252d 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerRegistrationUpdateParameters.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerRegistrationUpdateParameters.java @@ -19,6 +19,10 @@ public final class PartnerRegistrationUpdateParameters { @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map tags; + /** Creates an instance of PartnerRegistrationUpdateParameters class. */ + public PartnerRegistrationUpdateParameters() { + } + /** * Get the tags property: Tags of the partner registration resource. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerRegistrations.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerRegistrations.java index b3deea489bdb..852ba04c6d7b 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerRegistrations.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerRegistrations.java @@ -11,33 +11,39 @@ /** Resource collection API of PartnerRegistrations. */ public interface PartnerRegistrations { /** - * Gets a partner registration with the specified parameters. + * Get a partner registration. + * + *

Gets a partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a partner registration with the specified parameters. + * @return a partner registration with the specified parameters along with {@link Response}. */ - PartnerRegistration getByResourceGroup(String resourceGroupName, String partnerRegistrationName); + Response getByResourceGroupWithResponse( + String resourceGroupName, String partnerRegistrationName, Context context); /** - * Gets a partner registration with the specified parameters. + * Get a partner registration. + * + *

Gets a partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a partner registration with the specified parameters along with {@link Response}. + * @return a partner registration with the specified parameters. */ - Response getByResourceGroupWithResponse( - String resourceGroupName, String partnerRegistrationName, Context context); + PartnerRegistration getByResourceGroup(String resourceGroupName, String partnerRegistrationName); /** - * Deletes a partner registration with the specified parameters. + * Delete a partner registration. + * + *

Deletes a partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. @@ -48,7 +54,9 @@ Response getByResourceGroupWithResponse( void deleteByResourceGroup(String resourceGroupName, String partnerRegistrationName); /** - * Deletes a partner registration with the specified parameters. + * Delete a partner registration. + * + *

Deletes a partner registration with the specified parameters. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerRegistrationName Name of the partner registration. @@ -60,7 +68,9 @@ Response getByResourceGroupWithResponse( void delete(String resourceGroupName, String partnerRegistrationName, Context context); /** - * List all the partner registrations under an Azure subscription. + * List partner registrations under an Azure subscription. + * + *

List all the partner registrations under an Azure subscription. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -69,7 +79,9 @@ Response getByResourceGroupWithResponse( PagedIterable list(); /** - * List all the partner registrations under an Azure subscription. + * List partner registrations under an Azure subscription. + * + *

List all the partner registrations under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -88,7 +100,9 @@ Response getByResourceGroupWithResponse( PagedIterable list(String filter, Integer top, Context context); /** - * List all the partner registrations under a resource group. + * List partner registrations under a resource group. + * + *

List all the partner registrations under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -99,7 +113,9 @@ Response getByResourceGroupWithResponse( PagedIterable listByResourceGroup(String resourceGroupName); /** - * List all the partner registrations under a resource group. + * List partner registrations under a resource group. + * + *

List all the partner registrations under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -120,7 +136,9 @@ PagedIterable listByResourceGroup( String resourceGroupName, String filter, Integer top, Context context); /** - * Gets a partner registration with the specified parameters. + * Get a partner registration. + * + *

Gets a partner registration with the specified parameters. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -131,7 +149,9 @@ PagedIterable listByResourceGroup( PartnerRegistration getById(String id); /** - * Gets a partner registration with the specified parameters. + * Get a partner registration. + * + *

Gets a partner registration with the specified parameters. * * @param id the resource ID. * @param context The context to associate with this operation. @@ -143,7 +163,9 @@ PagedIterable listByResourceGroup( Response getByIdWithResponse(String id, Context context); /** - * Deletes a partner registration with the specified parameters. + * Delete a partner registration. + * + *

Deletes a partner registration with the specified parameters. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -153,7 +175,9 @@ PagedIterable listByResourceGroup( void deleteById(String id); /** - * Deletes a partner registration with the specified parameters. + * Delete a partner registration. + * + *

Deletes a partner registration with the specified parameters. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerRegistrationsListResult.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerRegistrationsListResult.java index 60b48e4d449d..0903a9ffb0a4 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerRegistrationsListResult.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerRegistrationsListResult.java @@ -24,6 +24,10 @@ public final class PartnerRegistrationsListResult { @JsonProperty(value = "nextLink") private String nextLink; + /** Creates an instance of PartnerRegistrationsListResult class. */ + public PartnerRegistrationsListResult() { + } + /** * Get the value property: A collection of partner registrations. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerTopic.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerTopic.java index 123f8050f687..12fe14b97638 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerTopic.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerTopic.java @@ -387,16 +387,9 @@ interface WithIdentity { PartnerTopic refresh(Context context); /** - * Activate a newly created partner topic. + * Activate a partner topic. * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return event Grid Partner Topic. - */ - PartnerTopic activate(); - - /** - * Activate a newly created partner topic. + *

Activate a newly created partner topic. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -407,16 +400,20 @@ interface WithIdentity { Response activateWithResponse(Context context); /** - * Deactivate specific partner topic. + * Activate a partner topic. + * + *

Activate a newly created partner topic. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return event Grid Partner Topic. */ - PartnerTopic deactivate(); + PartnerTopic activate(); /** - * Deactivate specific partner topic. + * Deactivate a partner topic. + * + *

Deactivate specific partner topic. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -425,4 +422,15 @@ interface WithIdentity { * @return event Grid Partner Topic along with {@link Response}. */ Response deactivateWithResponse(Context context); + + /** + * Deactivate a partner topic. + * + *

Deactivate specific partner topic. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return event Grid Partner Topic. + */ + PartnerTopic deactivate(); } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerTopicActivationState.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerTopicActivationState.java index 5fee0d0f59a2..9642ddabd965 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerTopicActivationState.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerTopicActivationState.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for PartnerTopicActivationState. */ +/** Activation state of the partner topic. */ public final class PartnerTopicActivationState extends ExpandableStringEnum { /** Static value NeverActivated for PartnerTopicActivationState. */ public static final PartnerTopicActivationState NEVER_ACTIVATED = fromString("NeverActivated"); @@ -19,6 +19,15 @@ public final class PartnerTopicActivationState extends ExpandableStringEnumGet properties of an event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. * @param eventSubscriptionName Name of the event subscription to be found. Event subscription names must be between * 3 and 100 characters in length and use alphanumeric letters only. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of an event subscription of a partner topic. + * @return properties of an event subscription of a partner topic along with {@link Response}. */ - EventSubscription get(String resourceGroupName, String partnerTopicName, String eventSubscriptionName); + Response getWithResponse( + String resourceGroupName, String partnerTopicName, String eventSubscriptionName, Context context); /** - * Get properties of an event subscription of a partner topic. + * Get an event subscription of a partner topic. + * + *

Get properties of an event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. * @param eventSubscriptionName Name of the event subscription to be found. Event subscription names must be between * 3 and 100 characters in length and use alphanumeric letters only. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of an event subscription of a partner topic along with {@link Response}. + * @return properties of an event subscription of a partner topic. */ - Response getWithResponse( - String resourceGroupName, String partnerTopicName, String eventSubscriptionName, Context context); + EventSubscription get(String resourceGroupName, String partnerTopicName, String eventSubscriptionName); /** - * Asynchronously creates or updates an event subscription of a partner topic with the specified parameters. + * Create or update an event subscription of a partner topic. + * + *

Asynchronously creates or updates an event subscription of a partner topic with the specified parameters. * Existing event subscriptions will be updated with this API. * * @param resourceGroupName The name of the resource group within the user's subscription. @@ -62,7 +68,9 @@ EventSubscription createOrUpdate( EventSubscriptionInner eventSubscriptionInfo); /** - * Asynchronously creates or updates an event subscription of a partner topic with the specified parameters. + * Create or update an event subscription of a partner topic. + * + *

Asynchronously creates or updates an event subscription of a partner topic with the specified parameters. * Existing event subscriptions will be updated with this API. * * @param resourceGroupName The name of the resource group within the user's subscription. @@ -84,7 +92,9 @@ EventSubscription createOrUpdate( Context context); /** - * Delete an existing event subscription of a partner topic. + * Delete an event subscription of a partner topic. + * + *

Delete an existing event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -97,7 +107,9 @@ EventSubscription createOrUpdate( void delete(String resourceGroupName, String partnerTopicName, String eventSubscriptionName); /** - * Delete an existing event subscription of a partner topic. + * Delete an event subscription of a partner topic. + * + *

Delete an existing event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -111,7 +123,9 @@ EventSubscription createOrUpdate( void delete(String resourceGroupName, String partnerTopicName, String eventSubscriptionName, Context context); /** - * Update an existing event subscription of a partner topic. + * Update event subscription of a partner topic. + * + *

Update an existing event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -130,7 +144,9 @@ EventSubscription update( EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters); /** - * Update an existing event subscription of a partner topic. + * Update event subscription of a partner topic. + * + *

Update an existing event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -151,38 +167,44 @@ EventSubscription update( Context context); /** - * Get the full endpoint URL for an event subscription of a partner topic. + * Get full URL of an event subscription of a partner topic. + * + *

Get the full endpoint URL for an event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names must be * between 3 and 100 characters in length and use alphanumeric letters only. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the full endpoint URL for an event subscription of a partner topic. + * @return the full endpoint URL for an event subscription of a partner topic along with {@link Response}. */ - EventSubscriptionFullUrl getFullUrl( - String resourceGroupName, String partnerTopicName, String eventSubscriptionName); + Response getFullUrlWithResponse( + String resourceGroupName, String partnerTopicName, String eventSubscriptionName, Context context); /** - * Get the full endpoint URL for an event subscription of a partner topic. + * Get full URL of an event subscription of a partner topic. + * + *

Get the full endpoint URL for an event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names must be * between 3 and 100 characters in length and use alphanumeric letters only. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the full endpoint URL for an event subscription of a partner topic along with {@link Response}. + * @return the full endpoint URL for an event subscription of a partner topic. */ - Response getFullUrlWithResponse( - String resourceGroupName, String partnerTopicName, String eventSubscriptionName, Context context); + EventSubscriptionFullUrl getFullUrl( + String resourceGroupName, String partnerTopicName, String eventSubscriptionName); /** - * List event subscriptions that belong to a specific partner topic. + * List event subscriptions of a partner topic. + * + *

List event subscriptions that belong to a specific partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -194,7 +216,9 @@ Response getFullUrlWithResponse( PagedIterable listByPartnerTopic(String resourceGroupName, String partnerTopicName); /** - * List event subscriptions that belong to a specific partner topic. + * List event subscriptions of a partner topic. + * + *

List event subscriptions that belong to a specific partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -216,33 +240,37 @@ PagedIterable listByPartnerTopic( String resourceGroupName, String partnerTopicName, String filter, Integer top, Context context); /** - * Get all delivery attributes for an event subscription of a partner topic. + * Get delivery attributes for an event subscription of a partner topic. + * + *

Get all delivery attributes for an event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names must be * between 3 and 100 characters in length and use alphanumeric letters only. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all delivery attributes for an event subscription of a partner topic. + * @return all delivery attributes for an event subscription of a partner topic along with {@link Response}. */ - DeliveryAttributeListResult getDeliveryAttributes( - String resourceGroupName, String partnerTopicName, String eventSubscriptionName); + Response getDeliveryAttributesWithResponse( + String resourceGroupName, String partnerTopicName, String eventSubscriptionName, Context context); /** - * Get all delivery attributes for an event subscription of a partner topic. + * Get delivery attributes for an event subscription of a partner topic. + * + *

Get all delivery attributes for an event subscription of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names must be * between 3 and 100 characters in length and use alphanumeric letters only. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all delivery attributes for an event subscription of a partner topic along with {@link Response}. + * @return all delivery attributes for an event subscription of a partner topic. */ - Response getDeliveryAttributesWithResponse( - String resourceGroupName, String partnerTopicName, String eventSubscriptionName, Context context); + DeliveryAttributeListResult getDeliveryAttributes( + String resourceGroupName, String partnerTopicName, String eventSubscriptionName); } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerTopicInfo.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerTopicInfo.java index d95098b175c4..593463a171f0 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerTopicInfo.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerTopicInfo.java @@ -11,16 +11,14 @@ @Fluent public final class PartnerTopicInfo { /* - * Azure subscription ID of the subscriber. The partner topic associated - * with the channel will be + * Azure subscription ID of the subscriber. The partner topic associated with the channel will be * created under this Azure subscription. */ @JsonProperty(value = "azureSubscriptionId") private String azureSubscriptionId; /* - * Azure Resource Group of the subscriber. The partner topic associated - * with the channel will be + * Azure Resource Group of the subscriber. The partner topic associated with the channel will be * created under this resource group. */ @JsonProperty(value = "resourceGroupName") @@ -33,23 +31,25 @@ public final class PartnerTopicInfo { private String name; /* - * Event Type Information for the partner topic. This information is - * provided by the publisher and can be used by the + * Event Type Information for the partner topic. This information is provided by the publisher and can be used by + * the * subscriber to view different types of events that are published. */ @JsonProperty(value = "eventTypeInfo") private EventTypeInfo eventTypeInfo; /* - * The source information is provided by the publisher to determine the - * scope or context from which the events - * are originating. This information can be used by the subscriber during - * the approval process of the + * The source information is provided by the publisher to determine the scope or context from which the events + * are originating. This information can be used by the subscriber during the approval process of the * created partner topic. */ @JsonProperty(value = "source") private String source; + /** Creates an instance of PartnerTopicInfo class. */ + public PartnerTopicInfo() { + } + /** * Get the azureSubscriptionId property: Azure subscription ID of the subscriber. The partner topic associated with * the channel will be created under this Azure subscription. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerTopicProvisioningState.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerTopicProvisioningState.java index 3e5a8719d4ab..92855de5499a 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerTopicProvisioningState.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerTopicProvisioningState.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for PartnerTopicProvisioningState. */ +/** Provisioning state of the partner topic. */ public final class PartnerTopicProvisioningState extends ExpandableStringEnum { /** Static value Creating for PartnerTopicProvisioningState. */ public static final PartnerTopicProvisioningState CREATING = fromString("Creating"); @@ -32,6 +32,15 @@ public final class PartnerTopicProvisioningState extends ExpandableStringEnum { /** Static value SourceEventAttribute for PartnerTopicRoutingMode. */ public static final PartnerTopicRoutingMode SOURCE_EVENT_ATTRIBUTE = fromString("SourceEventAttribute"); @@ -16,6 +20,15 @@ public final class PartnerTopicRoutingMode extends ExpandableStringEnumGet properties of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a partner topic. + * @return properties of a partner topic along with {@link Response}. */ - PartnerTopic getByResourceGroup(String resourceGroupName, String partnerTopicName); + Response getByResourceGroupWithResponse( + String resourceGroupName, String partnerTopicName, Context context); /** - * Get properties of a partner topic. + * Get a partner topic. + * + *

Get properties of a partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a partner topic along with {@link Response}. + * @return properties of a partner topic. */ - Response getByResourceGroupWithResponse( - String resourceGroupName, String partnerTopicName, Context context); + PartnerTopic getByResourceGroup(String resourceGroupName, String partnerTopicName); /** - * Delete existing partner topic. + * Delete a partner topic. + * + *

Delete existing partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -48,7 +54,9 @@ Response getByResourceGroupWithResponse( void deleteByResourceGroup(String resourceGroupName, String partnerTopicName); /** - * Delete existing partner topic. + * Delete a partner topic. + * + *

Delete existing partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. @@ -60,7 +68,9 @@ Response getByResourceGroupWithResponse( void delete(String resourceGroupName, String partnerTopicName, Context context); /** - * List all the partner topics under an Azure subscription. + * List partner topics under an Azure subscription. + * + *

List all the partner topics under an Azure subscription. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -69,7 +79,9 @@ Response getByResourceGroupWithResponse( PagedIterable list(); /** - * List all the partner topics under an Azure subscription. + * List partner topics under an Azure subscription. + * + *

List all the partner topics under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -88,7 +100,9 @@ Response getByResourceGroupWithResponse( PagedIterable list(String filter, Integer top, Context context); /** - * List all the partner topics under a resource group. + * List partner topics under a resource group. + * + *

List all the partner topics under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -99,7 +113,9 @@ Response getByResourceGroupWithResponse( PagedIterable listByResourceGroup(String resourceGroupName); /** - * List all the partner topics under a resource group. + * List partner topics under a resource group. + * + *

List all the partner topics under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -120,57 +136,67 @@ PagedIterable listByResourceGroup( String resourceGroupName, String filter, Integer top, Context context); /** - * Activate a newly created partner topic. + * Activate a partner topic. + * + *

Activate a newly created partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return event Grid Partner Topic. + * @return event Grid Partner Topic along with {@link Response}. */ - PartnerTopic activate(String resourceGroupName, String partnerTopicName); + Response activateWithResponse(String resourceGroupName, String partnerTopicName, Context context); /** - * Activate a newly created partner topic. + * Activate a partner topic. + * + *

Activate a newly created partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return event Grid Partner Topic along with {@link Response}. + * @return event Grid Partner Topic. */ - Response activateWithResponse(String resourceGroupName, String partnerTopicName, Context context); + PartnerTopic activate(String resourceGroupName, String partnerTopicName); /** - * Deactivate specific partner topic. + * Deactivate a partner topic. + * + *

Deactivate specific partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return event Grid Partner Topic. + * @return event Grid Partner Topic along with {@link Response}. */ - PartnerTopic deactivate(String resourceGroupName, String partnerTopicName); + Response deactivateWithResponse(String resourceGroupName, String partnerTopicName, Context context); /** - * Deactivate specific partner topic. + * Deactivate a partner topic. + * + *

Deactivate specific partner topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param partnerTopicName Name of the partner topic. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return event Grid Partner Topic along with {@link Response}. + * @return event Grid Partner Topic. */ - Response deactivateWithResponse(String resourceGroupName, String partnerTopicName, Context context); + PartnerTopic deactivate(String resourceGroupName, String partnerTopicName); /** - * Get properties of a partner topic. + * Get a partner topic. + * + *

Get properties of a partner topic. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -181,7 +207,9 @@ PagedIterable listByResourceGroup( PartnerTopic getById(String id); /** - * Get properties of a partner topic. + * Get a partner topic. + * + *

Get properties of a partner topic. * * @param id the resource ID. * @param context The context to associate with this operation. @@ -193,7 +221,9 @@ PagedIterable listByResourceGroup( Response getByIdWithResponse(String id, Context context); /** - * Delete existing partner topic. + * Delete a partner topic. + * + *

Delete existing partner topic. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -203,7 +233,9 @@ PagedIterable listByResourceGroup( void deleteById(String id); /** - * Delete existing partner topic. + * Delete a partner topic. + * + *

Delete existing partner topic. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerTopicsListResult.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerTopicsListResult.java index 95c3bc4c7657..faec1aa2b4f0 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerTopicsListResult.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerTopicsListResult.java @@ -24,6 +24,10 @@ public final class PartnerTopicsListResult { @JsonProperty(value = "nextLink") private String nextLink; + /** Creates an instance of PartnerTopicsListResult class. */ + public PartnerTopicsListResult() { + } + /** * Get the value property: A collection of partner topics. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerUpdateTopicInfo.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerUpdateTopicInfo.java index e252485b2b75..551e75910a33 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerUpdateTopicInfo.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PartnerUpdateTopicInfo.java @@ -16,6 +16,10 @@ public final class PartnerUpdateTopicInfo { @JsonProperty(value = "eventTypeInfo") private EventTypeInfo eventTypeInfo; + /** Creates an instance of PartnerUpdateTopicInfo class. */ + public PartnerUpdateTopicInfo() { + } + /** * Get the eventTypeInfo property: Event type info for the partner topic. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PersistedConnectionStatus.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PersistedConnectionStatus.java index d0ac0f674af1..090a3fd21270 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PersistedConnectionStatus.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PersistedConnectionStatus.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for PersistedConnectionStatus. */ +/** Status of the connection. */ public final class PersistedConnectionStatus extends ExpandableStringEnum { /** Static value Pending for PersistedConnectionStatus. */ public static final PersistedConnectionStatus PENDING = fromString("Pending"); @@ -22,6 +22,15 @@ public final class PersistedConnectionStatus extends ExpandableStringEnumGet a specific private endpoint connection under a topic, domain, or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -20,19 +22,24 @@ public interface PrivateEndpointConnections { * @param parentName The name of the parent resource (namely, either, the topic name, domain name, or partner * namespace name). * @param privateEndpointConnectionName The name of the private endpoint connection connection. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a specific private endpoint connection under a topic, domain, or partner namespace. + * @return a specific private endpoint connection under a topic, domain, or partner namespace along with {@link + * Response}. */ - PrivateEndpointConnection get( + Response getWithResponse( String resourceGroupName, PrivateEndpointConnectionsParentType parentType, String parentName, - String privateEndpointConnectionName); + String privateEndpointConnectionName, + Context context); /** - * Get a specific private endpoint connection under a topic, domain, or partner namespace. + * Get a specific private endpoint connection. + * + *

Get a specific private endpoint connection under a topic, domain, or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -40,22 +47,21 @@ PrivateEndpointConnection get( * @param parentName The name of the parent resource (namely, either, the topic name, domain name, or partner * namespace name). * @param privateEndpointConnectionName The name of the private endpoint connection connection. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a specific private endpoint connection under a topic, domain, or partner namespace along with {@link - * Response}. + * @return a specific private endpoint connection under a topic, domain, or partner namespace. */ - Response getWithResponse( + PrivateEndpointConnection get( String resourceGroupName, PrivateEndpointConnectionsParentType parentType, String parentName, - String privateEndpointConnectionName, - Context context); + String privateEndpointConnectionName); /** - * Update a specific private endpoint connection under a topic, domain or partner namespace. + * Update a specific private endpoint connection. + * + *

Update a specific private endpoint connection under a topic, domain or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -77,7 +83,9 @@ PrivateEndpointConnection update( PrivateEndpointConnectionInner privateEndpointConnection); /** - * Update a specific private endpoint connection under a topic, domain or partner namespace. + * Update a specific private endpoint connection. + * + *

Update a specific private endpoint connection under a topic, domain or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -101,7 +109,9 @@ PrivateEndpointConnection update( Context context); /** - * Delete a specific private endpoint connection under a topic, domain, or partner namespace. + * Delete a specific private endpoint connection. + * + *

Delete a specific private endpoint connection under a topic, domain, or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -120,7 +130,9 @@ void delete( String privateEndpointConnectionName); /** - * Delete a specific private endpoint connection under a topic, domain, or partner namespace. + * Delete a specific private endpoint connection. + * + *

Delete a specific private endpoint connection under a topic, domain, or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -141,7 +153,9 @@ void delete( Context context); /** - * Get all private endpoint connections under a topic, domain, or partner namespace. + * Lists all private endpoint connections under a resource. + * + *

Get all private endpoint connections under a topic, domain, or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -158,7 +172,9 @@ PagedIterable listByResource( String resourceGroupName, PrivateEndpointConnectionsParentType parentType, String parentName); /** - * Get all private endpoint connections under a topic, domain, or partner namespace. + * Lists all private endpoint connections under a resource. + * + *

Get all private endpoint connections under a topic, domain, or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PrivateEndpointConnectionsParentType.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PrivateEndpointConnectionsParentType.java index c6ae6fd4ebce..136bb22a1426 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PrivateEndpointConnectionsParentType.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PrivateEndpointConnectionsParentType.java @@ -20,6 +20,15 @@ public final class PrivateEndpointConnectionsParentType /** Static value partnerNamespaces for PrivateEndpointConnectionsParentType. */ public static final PrivateEndpointConnectionsParentType PARTNER_NAMESPACES = fromString("partnerNamespaces"); + /** + * Creates a new instance of PrivateEndpointConnectionsParentType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public PrivateEndpointConnectionsParentType() { + } + /** * Creates or finds a PrivateEndpointConnectionsParentType from its string representation. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PrivateLinkResources.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PrivateLinkResources.java index d2ef3c9c693a..392678dcc787 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PrivateLinkResources.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PrivateLinkResources.java @@ -11,7 +11,9 @@ /** Resource collection API of PrivateLinkResources. */ public interface PrivateLinkResources { /** - * Get properties of a private link resource. + * Get a private link resource. + * + *

Get properties of a private link resource. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -19,16 +21,23 @@ public interface PrivateLinkResources { * @param parentName The name of the parent resource (namely, either, the topic name, domain name, or partner * namespace name). * @param privateLinkResourceName The name of private link resource. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a private link resource. + * @return properties of a private link resource along with {@link Response}. */ - PrivateLinkResource get( - String resourceGroupName, String parentType, String parentName, String privateLinkResourceName); + Response getWithResponse( + String resourceGroupName, + PrivateEndpointConnectionsParentType parentType, + String parentName, + String privateLinkResourceName, + Context context); /** - * Get properties of a private link resource. + * Get a private link resource. + * + *

Get properties of a private link resource. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -36,21 +45,21 @@ PrivateLinkResource get( * @param parentName The name of the parent resource (namely, either, the topic name, domain name, or partner * namespace name). * @param privateLinkResourceName The name of private link resource. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a private link resource along with {@link Response}. + * @return properties of a private link resource. */ - Response getWithResponse( + PrivateLinkResource get( String resourceGroupName, - String parentType, + PrivateEndpointConnectionsParentType parentType, String parentName, - String privateLinkResourceName, - Context context); + String privateLinkResourceName); /** - * List all the private link resources under a topic, domain, or partner namespace. + * List private link resources under specific topic, domain, or partner namespace. + * + *

List all the private link resources under a topic, domain, or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -62,10 +71,13 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return result of the List private link resources operation as paginated response with {@link PagedIterable}. */ - PagedIterable listByResource(String resourceGroupName, String parentType, String parentName); + PagedIterable listByResource( + String resourceGroupName, PrivateEndpointConnectionsParentType parentType, String parentName); /** - * List all the private link resources under a topic, domain, or partner namespace. + * List private link resources under specific topic, domain, or partner namespace. + * + *

List all the private link resources under a topic, domain, or partner namespace. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', or @@ -87,5 +99,10 @@ Response getWithResponse( * @return result of the List private link resources operation as paginated response with {@link PagedIterable}. */ PagedIterable listByResource( - String resourceGroupName, String parentType, String parentName, String filter, Integer top, Context context); + String resourceGroupName, + PrivateEndpointConnectionsParentType parentType, + String parentName, + String filter, + Integer top, + Context context); } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PrivateLinkResourcesListResult.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PrivateLinkResourcesListResult.java index 62e72259114a..78a1a8b3df44 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PrivateLinkResourcesListResult.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PrivateLinkResourcesListResult.java @@ -24,6 +24,10 @@ public final class PrivateLinkResourcesListResult { @JsonProperty(value = "nextLink") private String nextLink; + /** Creates an instance of PrivateLinkResourcesListResult class. */ + public PrivateLinkResourcesListResult() { + } + /** * Get the value property: A collection of private link resources. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PublicNetworkAccess.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PublicNetworkAccess.java index f788007a0403..63e4664de323 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PublicNetworkAccess.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/PublicNetworkAccess.java @@ -8,7 +8,11 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for PublicNetworkAccess. */ +/** + * This determines if traffic is allowed over public network. By default it is enabled. You can further restrict to + * specific IPs by configuring <seealso + * cref="P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.DomainProperties.InboundIpRules" />. + */ public final class PublicNetworkAccess extends ExpandableStringEnum { /** Static value Enabled for PublicNetworkAccess. */ public static final PublicNetworkAccess ENABLED = fromString("Enabled"); @@ -16,6 +20,15 @@ public final class PublicNetworkAccess extends ExpandableStringEnum { /** Static value NeverActivated for ReadinessState. */ public static final ReadinessState NEVER_ACTIVATED = fromString("NeverActivated"); @@ -16,6 +16,15 @@ public final class ReadinessState extends ExpandableStringEnum { /** Static value Activated for ReadinessState. */ public static final ReadinessState ACTIVATED = fromString("Activated"); + /** + * Creates a new instance of ReadinessState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ReadinessState() { + } + /** * Creates or finds a ReadinessState from its string representation. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/ResourceProvisioningState.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/ResourceProvisioningState.java index 52d6f422b1bc..3f4910540bfa 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/ResourceProvisioningState.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/ResourceProvisioningState.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for ResourceProvisioningState. */ +/** Provisioning state of the Private Endpoint Connection. */ public final class ResourceProvisioningState extends ExpandableStringEnum { /** Static value Creating for ResourceProvisioningState. */ public static final ResourceProvisioningState CREATING = fromString("Creating"); @@ -28,6 +28,15 @@ public final class ResourceProvisioningState extends ExpandableStringEnum { /** Static value RegionalResource for ResourceRegionType. */ public static final ResourceRegionType REGIONAL_RESOURCE = fromString("RegionalResource"); @@ -16,6 +16,15 @@ public final class ResourceRegionType extends ExpandableStringEnum values; + /** Creates an instance of StringBeginsWithAdvancedFilter class. */ + public StringBeginsWithAdvancedFilter() { + } + /** * Get the values property: The set of filter values. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/StringContainsAdvancedFilter.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/StringContainsAdvancedFilter.java index fb8fd446b8e7..645728b43cd7 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/StringContainsAdvancedFilter.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/StringContainsAdvancedFilter.java @@ -21,6 +21,10 @@ public final class StringContainsAdvancedFilter extends AdvancedFilter { @JsonProperty(value = "values") private List values; + /** Creates an instance of StringContainsAdvancedFilter class. */ + public StringContainsAdvancedFilter() { + } + /** * Get the values property: The set of filter values. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/StringEndsWithAdvancedFilter.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/StringEndsWithAdvancedFilter.java index ca634cbd4c27..00ea8814cd99 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/StringEndsWithAdvancedFilter.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/StringEndsWithAdvancedFilter.java @@ -21,6 +21,10 @@ public final class StringEndsWithAdvancedFilter extends AdvancedFilter { @JsonProperty(value = "values") private List values; + /** Creates an instance of StringEndsWithAdvancedFilter class. */ + public StringEndsWithAdvancedFilter() { + } + /** * Get the values property: The set of filter values. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/StringInAdvancedFilter.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/StringInAdvancedFilter.java index 56e353527c08..930f28cde17a 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/StringInAdvancedFilter.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/StringInAdvancedFilter.java @@ -21,6 +21,10 @@ public final class StringInAdvancedFilter extends AdvancedFilter { @JsonProperty(value = "values") private List values; + /** Creates an instance of StringInAdvancedFilter class. */ + public StringInAdvancedFilter() { + } + /** * Get the values property: The set of filter values. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/StringNotBeginsWithAdvancedFilter.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/StringNotBeginsWithAdvancedFilter.java index ac4918f4310f..16ff223a3e40 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/StringNotBeginsWithAdvancedFilter.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/StringNotBeginsWithAdvancedFilter.java @@ -21,6 +21,10 @@ public final class StringNotBeginsWithAdvancedFilter extends AdvancedFilter { @JsonProperty(value = "values") private List values; + /** Creates an instance of StringNotBeginsWithAdvancedFilter class. */ + public StringNotBeginsWithAdvancedFilter() { + } + /** * Get the values property: The set of filter values. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/StringNotContainsAdvancedFilter.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/StringNotContainsAdvancedFilter.java index 3ec12e337d25..9278eafcff3d 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/StringNotContainsAdvancedFilter.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/StringNotContainsAdvancedFilter.java @@ -21,6 +21,10 @@ public final class StringNotContainsAdvancedFilter extends AdvancedFilter { @JsonProperty(value = "values") private List values; + /** Creates an instance of StringNotContainsAdvancedFilter class. */ + public StringNotContainsAdvancedFilter() { + } + /** * Get the values property: The set of filter values. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/StringNotEndsWithAdvancedFilter.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/StringNotEndsWithAdvancedFilter.java index e377f5e22f18..cf86ad634f3b 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/StringNotEndsWithAdvancedFilter.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/StringNotEndsWithAdvancedFilter.java @@ -21,6 +21,10 @@ public final class StringNotEndsWithAdvancedFilter extends AdvancedFilter { @JsonProperty(value = "values") private List values; + /** Creates an instance of StringNotEndsWithAdvancedFilter class. */ + public StringNotEndsWithAdvancedFilter() { + } + /** * Get the values property: The set of filter values. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/StringNotInAdvancedFilter.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/StringNotInAdvancedFilter.java index 955b540b2c4e..681f84eb85d3 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/StringNotInAdvancedFilter.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/StringNotInAdvancedFilter.java @@ -21,6 +21,10 @@ public final class StringNotInAdvancedFilter extends AdvancedFilter { @JsonProperty(value = "values") private List values; + /** Creates an instance of StringNotInAdvancedFilter class. */ + public StringNotInAdvancedFilter() { + } + /** * Get the values property: The set of filter values. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/SystemTopicEventSubscriptions.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/SystemTopicEventSubscriptions.java index d06ef8adf3c1..b444647091d4 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/SystemTopicEventSubscriptions.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/SystemTopicEventSubscriptions.java @@ -12,37 +12,43 @@ /** Resource collection API of SystemTopicEventSubscriptions. */ public interface SystemTopicEventSubscriptions { /** - * Get an event subscription. + * Get an event subscription of a system topic. + * + *

Get an event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names must be * between 3 and 100 characters in length and use alphanumeric letters only. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an event subscription. + * @return an event subscription along with {@link Response}. */ - EventSubscription get(String resourceGroupName, String systemTopicName, String eventSubscriptionName); + Response getWithResponse( + String resourceGroupName, String systemTopicName, String eventSubscriptionName, Context context); /** - * Get an event subscription. + * Get an event subscription of a system topic. + * + *

Get an event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names must be * between 3 and 100 characters in length and use alphanumeric letters only. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an event subscription along with {@link Response}. + * @return an event subscription. */ - Response getWithResponse( - String resourceGroupName, String systemTopicName, String eventSubscriptionName, Context context); + EventSubscription get(String resourceGroupName, String systemTopicName, String eventSubscriptionName); /** - * Asynchronously creates or updates an event subscription with the specified parameters. Existing event + * Create or update an event subscription for a system topic. + * + *

Asynchronously creates or updates an event subscription with the specified parameters. Existing event * subscriptions will be updated with this API. * * @param resourceGroupName The name of the resource group within the user's subscription. @@ -62,7 +68,9 @@ EventSubscription createOrUpdate( EventSubscriptionInner eventSubscriptionInfo); /** - * Asynchronously creates or updates an event subscription with the specified parameters. Existing event + * Create or update an event subscription for a system topic. + * + *

Asynchronously creates or updates an event subscription with the specified parameters. Existing event * subscriptions will be updated with this API. * * @param resourceGroupName The name of the resource group within the user's subscription. @@ -84,7 +92,9 @@ EventSubscription createOrUpdate( Context context); /** - * Delete an existing event subscription of a system topic. + * Delete an event subscription of a system topic. + * + *

Delete an existing event subscription of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -97,7 +107,9 @@ EventSubscription createOrUpdate( void delete(String resourceGroupName, String systemTopicName, String eventSubscriptionName); /** - * Delete an existing event subscription of a system topic. + * Delete an event subscription of a system topic. + * + *

Delete an existing event subscription of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -111,7 +123,9 @@ EventSubscription createOrUpdate( void delete(String resourceGroupName, String systemTopicName, String eventSubscriptionName, Context context); /** - * Update an existing event subscription of a system topic. + * Update event subscription of a system topic. + * + *

Update an existing event subscription of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -130,7 +144,9 @@ EventSubscription update( EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters); /** - * Update an existing event subscription of a system topic. + * Update event subscription of a system topic. + * + *

Update an existing event subscription of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -151,37 +167,43 @@ EventSubscription update( Context context); /** - * Get the full endpoint URL for an event subscription of a system topic. + * Get full URL of an event subscription of a system topic + * + *

Get the full endpoint URL for an event subscription of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names must be * between 3 and 100 characters in length and use alphanumeric letters only. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the full endpoint URL for an event subscription of a system topic. + * @return the full endpoint URL for an event subscription of a system topic along with {@link Response}. */ - EventSubscriptionFullUrl getFullUrl(String resourceGroupName, String systemTopicName, String eventSubscriptionName); + Response getFullUrlWithResponse( + String resourceGroupName, String systemTopicName, String eventSubscriptionName, Context context); /** - * Get the full endpoint URL for an event subscription of a system topic. + * Get full URL of an event subscription of a system topic + * + *

Get the full endpoint URL for an event subscription of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names must be * between 3 and 100 characters in length and use alphanumeric letters only. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the full endpoint URL for an event subscription of a system topic along with {@link Response}. + * @return the full endpoint URL for an event subscription of a system topic. */ - Response getFullUrlWithResponse( - String resourceGroupName, String systemTopicName, String eventSubscriptionName, Context context); + EventSubscriptionFullUrl getFullUrl(String resourceGroupName, String systemTopicName, String eventSubscriptionName); /** - * List event subscriptions that belong to a specific system topic. + * List event subscriptions of a system topic. + * + *

List event subscriptions that belong to a specific system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -193,7 +215,9 @@ Response getFullUrlWithResponse( PagedIterable listBySystemTopic(String resourceGroupName, String systemTopicName); /** - * List event subscriptions that belong to a specific system topic. + * List event subscriptions of a system topic. + * + *

List event subscriptions that belong to a specific system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -215,33 +239,37 @@ PagedIterable listBySystemTopic( String resourceGroupName, String systemTopicName, String filter, Integer top, Context context); /** - * Get all delivery attributes for an event subscription. + * Get delivery attributes for an event subscription. + * + *

Get all delivery attributes for an event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names must be * between 3 and 100 characters in length and use alphanumeric letters only. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all delivery attributes for an event subscription. + * @return all delivery attributes for an event subscription along with {@link Response}. */ - DeliveryAttributeListResult getDeliveryAttributes( - String resourceGroupName, String systemTopicName, String eventSubscriptionName); + Response getDeliveryAttributesWithResponse( + String resourceGroupName, String systemTopicName, String eventSubscriptionName, Context context); /** - * Get all delivery attributes for an event subscription. + * Get delivery attributes for an event subscription. + * + *

Get all delivery attributes for an event subscription. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names must be * between 3 and 100 characters in length and use alphanumeric letters only. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all delivery attributes for an event subscription along with {@link Response}. + * @return all delivery attributes for an event subscription. */ - Response getDeliveryAttributesWithResponse( - String resourceGroupName, String systemTopicName, String eventSubscriptionName, Context context); + DeliveryAttributeListResult getDeliveryAttributes( + String resourceGroupName, String systemTopicName, String eventSubscriptionName); } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/SystemTopicUpdateParameters.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/SystemTopicUpdateParameters.java index a6be75cee914..997b6d619a0c 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/SystemTopicUpdateParameters.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/SystemTopicUpdateParameters.java @@ -25,6 +25,10 @@ public final class SystemTopicUpdateParameters { @JsonProperty(value = "identity") private IdentityInfo identity; + /** Creates an instance of SystemTopicUpdateParameters class. */ + public SystemTopicUpdateParameters() { + } + /** * Get the tags property: Tags of the system topic. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/SystemTopics.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/SystemTopics.java index 86543dbc27c2..0237ef370e8c 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/SystemTopics.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/SystemTopics.java @@ -11,33 +11,39 @@ /** Resource collection API of SystemTopics. */ public interface SystemTopics { /** - * Get properties of a system topic. + * Get a system topic. + * + *

Get properties of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a system topic. + * @return properties of a system topic along with {@link Response}. */ - SystemTopic getByResourceGroup(String resourceGroupName, String systemTopicName); + Response getByResourceGroupWithResponse( + String resourceGroupName, String systemTopicName, Context context); /** - * Get properties of a system topic. + * Get a system topic. + * + *

Get properties of a system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a system topic along with {@link Response}. + * @return properties of a system topic. */ - Response getByResourceGroupWithResponse( - String resourceGroupName, String systemTopicName, Context context); + SystemTopic getByResourceGroup(String resourceGroupName, String systemTopicName); /** - * Delete existing system topic. + * Delete a system topic. + * + *

Delete existing system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -48,7 +54,9 @@ Response getByResourceGroupWithResponse( void deleteByResourceGroup(String resourceGroupName, String systemTopicName); /** - * Delete existing system topic. + * Delete a system topic. + * + *

Delete existing system topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param systemTopicName Name of the system topic. @@ -60,7 +68,9 @@ Response getByResourceGroupWithResponse( void delete(String resourceGroupName, String systemTopicName, Context context); /** - * List all the system topics under an Azure subscription. + * List system topics under an Azure subscription. + * + *

List all the system topics under an Azure subscription. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -69,7 +79,9 @@ Response getByResourceGroupWithResponse( PagedIterable list(); /** - * List all the system topics under an Azure subscription. + * List system topics under an Azure subscription. + * + *

List all the system topics under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -88,7 +100,9 @@ Response getByResourceGroupWithResponse( PagedIterable list(String filter, Integer top, Context context); /** - * List all the system topics under a resource group. + * List system topics under a resource group. + * + *

List all the system topics under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -99,7 +113,9 @@ Response getByResourceGroupWithResponse( PagedIterable listByResourceGroup(String resourceGroupName); /** - * List all the system topics under a resource group. + * List system topics under a resource group. + * + *

List all the system topics under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -120,7 +136,9 @@ PagedIterable listByResourceGroup( String resourceGroupName, String filter, Integer top, Context context); /** - * Get properties of a system topic. + * Get a system topic. + * + *

Get properties of a system topic. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -131,7 +149,9 @@ PagedIterable listByResourceGroup( SystemTopic getById(String id); /** - * Get properties of a system topic. + * Get a system topic. + * + *

Get properties of a system topic. * * @param id the resource ID. * @param context The context to associate with this operation. @@ -143,7 +163,9 @@ PagedIterable listByResourceGroup( Response getByIdWithResponse(String id, Context context); /** - * Delete existing system topic. + * Delete a system topic. + * + *

Delete existing system topic. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -153,7 +175,9 @@ PagedIterable listByResourceGroup( void deleteById(String id); /** - * Delete existing system topic. + * Delete a system topic. + * + *

Delete existing system topic. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/SystemTopicsListResult.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/SystemTopicsListResult.java index c5bc12a38381..ce3cfd0bb4e7 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/SystemTopicsListResult.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/SystemTopicsListResult.java @@ -24,6 +24,10 @@ public final class SystemTopicsListResult { @JsonProperty(value = "nextLink") private String nextLink; + /** Creates an instance of SystemTopicsListResult class. */ + public SystemTopicsListResult() { + } + /** * Get the value property: A collection of system Topics. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/Topic.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/Topic.java index 15b0d11bf934..5946f2719265 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/Topic.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/Topic.java @@ -392,14 +392,12 @@ interface WithPublicNetworkAccess { /** * Specifies the publicNetworkAccess property: This determines if traffic is allowed over public network. By * default it is enabled. You can further restrict to specific IPs by configuring <seealso - * cref="P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.TopicUpdateParameterProperties" - + ".InboundIpRules" + * cref="P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.TopicUpdateParameterProperties.InboundIpRules" * />. * * @param publicNetworkAccess This determines if traffic is allowed over public network. By default it is * enabled. You can further restrict to specific IPs by configuring <seealso - * cref="P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.TopicUpdateParameterProperties" - + ".InboundIpRules" + * cref="P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.TopicUpdateParameterProperties.InboundIpRules" * />. * @return the next definition stage. */ @@ -458,27 +456,33 @@ interface WithDataResidencyBoundary { Topic refresh(Context context); /** - * List the two keys used to publish to a topic. + * List keys for a topic. * + *

List the two keys used to publish to a topic. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return shared access keys of the Topic. + * @return shared access keys of the Topic along with {@link Response}. */ - TopicSharedAccessKeys listSharedAccessKeys(); + Response listSharedAccessKeysWithResponse(Context context); /** - * List the two keys used to publish to a topic. + * List keys for a topic. + * + *

List the two keys used to publish to a topic. * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return shared access keys of the Topic along with {@link Response}. + * @return shared access keys of the Topic. */ - Response listSharedAccessKeysWithResponse(Context context); + TopicSharedAccessKeys listSharedAccessKeys(); /** - * Regenerate a shared access key for a topic. + * Regenerate key for a topic. + * + *

Regenerate a shared access key for a topic. * * @param regenerateKeyRequest Request body to regenerate key. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -489,7 +493,9 @@ interface WithDataResidencyBoundary { TopicSharedAccessKeys regenerateKey(TopicRegenerateKeyRequest regenerateKeyRequest); /** - * Regenerate a shared access key for a topic. + * Regenerate key for a topic. + * + *

Regenerate a shared access key for a topic. * * @param regenerateKeyRequest Request body to regenerate key. * @param context The context to associate with this operation. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/TopicEventSubscriptions.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/TopicEventSubscriptions.java index 01b106201a24..65ea4ced6773 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/TopicEventSubscriptions.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/TopicEventSubscriptions.java @@ -11,66 +11,76 @@ /** Resource collection API of TopicEventSubscriptions. */ public interface TopicEventSubscriptions { /** - * Get all delivery attributes for an event subscription for topic. + * Get delivery attributes for an event subscription for topic. + * + *

Get all delivery attributes for an event subscription for topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the domain topic. * @param eventSubscriptionName Name of the event subscription. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all delivery attributes for an event subscription for topic. + * @return all delivery attributes for an event subscription for topic along with {@link Response}. */ - DeliveryAttributeListResult getDeliveryAttributes( - String resourceGroupName, String topicName, String eventSubscriptionName); + Response getDeliveryAttributesWithResponse( + String resourceGroupName, String topicName, String eventSubscriptionName, Context context); /** - * Get all delivery attributes for an event subscription for topic. + * Get delivery attributes for an event subscription for topic. + * + *

Get all delivery attributes for an event subscription for topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the domain topic. * @param eventSubscriptionName Name of the event subscription. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all delivery attributes for an event subscription for topic along with {@link Response}. + * @return all delivery attributes for an event subscription for topic. */ - Response getDeliveryAttributesWithResponse( - String resourceGroupName, String topicName, String eventSubscriptionName, Context context); + DeliveryAttributeListResult getDeliveryAttributes( + String resourceGroupName, String topicName, String eventSubscriptionName); /** - * Get properties of an event subscription of a topic. + * Get an event subscription of a topic. + * + *

Get properties of an event subscription of a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the partner topic. * @param eventSubscriptionName Name of the event subscription to be found. Event subscription names must be between * 3 and 100 characters in length and use alphanumeric letters only. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of an event subscription of a topic. + * @return properties of an event subscription of a topic along with {@link Response}. */ - EventSubscription get(String resourceGroupName, String topicName, String eventSubscriptionName); + Response getWithResponse( + String resourceGroupName, String topicName, String eventSubscriptionName, Context context); /** - * Get properties of an event subscription of a topic. + * Get an event subscription of a topic. + * + *

Get properties of an event subscription of a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the partner topic. * @param eventSubscriptionName Name of the event subscription to be found. Event subscription names must be between * 3 and 100 characters in length and use alphanumeric letters only. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of an event subscription of a topic along with {@link Response}. + * @return properties of an event subscription of a topic. */ - Response getWithResponse( - String resourceGroupName, String topicName, String eventSubscriptionName, Context context); + EventSubscription get(String resourceGroupName, String topicName, String eventSubscriptionName); /** - * Delete an existing event subscription for a topic. + * Delete an event subscription for a topic. + * + *

Delete an existing event subscription for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -83,7 +93,9 @@ Response getWithResponse( void delete(String resourceGroupName, String topicName, String eventSubscriptionName); /** - * Delete an existing event subscription for a topic. + * Delete an event subscription for a topic. + * + *

Delete an existing event subscription for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -97,35 +109,41 @@ Response getWithResponse( void delete(String resourceGroupName, String topicName, String eventSubscriptionName, Context context); /** - * Get the full endpoint URL for an event subscription for topic. + * Get full URL of an event subscription for topic. + * + *

Get the full endpoint URL for an event subscription for topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the domain topic. * @param eventSubscriptionName Name of the event subscription. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the full endpoint URL for an event subscription for topic. + * @return the full endpoint URL for an event subscription for topic along with {@link Response}. */ - EventSubscriptionFullUrl getFullUrl(String resourceGroupName, String topicName, String eventSubscriptionName); + Response getFullUrlWithResponse( + String resourceGroupName, String topicName, String eventSubscriptionName, Context context); /** - * Get the full endpoint URL for an event subscription for topic. + * Get full URL of an event subscription for topic. + * + *

Get the full endpoint URL for an event subscription for topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the domain topic. * @param eventSubscriptionName Name of the event subscription. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the full endpoint URL for an event subscription for topic along with {@link Response}. + * @return the full endpoint URL for an event subscription for topic. */ - Response getFullUrlWithResponse( - String resourceGroupName, String topicName, String eventSubscriptionName, Context context); + EventSubscriptionFullUrl getFullUrl(String resourceGroupName, String topicName, String eventSubscriptionName); /** - * List all event subscriptions that have been created for a specific topic. + * List all event subscriptions for a specific topic. + * + *

List all event subscriptions that have been created for a specific topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -137,7 +155,9 @@ Response getFullUrlWithResponse( PagedIterable list(String resourceGroupName, String topicName); /** - * List all event subscriptions that have been created for a specific topic. + * List all event subscriptions for a specific topic. + * + *

List all event subscriptions that have been created for a specific topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -159,7 +179,9 @@ PagedIterable list( String resourceGroupName, String topicName, String filter, Integer top, Context context); /** - * Get properties of an event subscription of a topic. + * Get an event subscription of a topic. + * + *

Get properties of an event subscription of a topic. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -170,7 +192,9 @@ PagedIterable list( EventSubscription getById(String id); /** - * Get properties of an event subscription of a topic. + * Get an event subscription of a topic. + * + *

Get properties of an event subscription of a topic. * * @param id the resource ID. * @param context The context to associate with this operation. @@ -182,7 +206,9 @@ PagedIterable list( Response getByIdWithResponse(String id, Context context); /** - * Delete an existing event subscription for a topic. + * Delete an event subscription for a topic. + * + *

Delete an existing event subscription for a topic. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -192,7 +218,9 @@ PagedIterable list( void deleteById(String id); /** - * Delete an existing event subscription for a topic. + * Delete an event subscription for a topic. + * + *

Delete an existing event subscription for a topic. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/TopicProvisioningState.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/TopicProvisioningState.java index 912bdf60f06c..7e2e7cb843e4 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/TopicProvisioningState.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/TopicProvisioningState.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for TopicProvisioningState. */ +/** Provisioning state of the topic. */ public final class TopicProvisioningState extends ExpandableStringEnum { /** Static value Creating for TopicProvisioningState. */ public static final TopicProvisioningState CREATING = fromString("Creating"); @@ -28,6 +28,15 @@ public final class TopicProvisioningState extends ExpandableStringEnum { /** Static value Creating for TopicTypeProvisioningState. */ public static final TopicTypeProvisioningState CREATING = fromString("Creating"); @@ -28,6 +28,15 @@ public final class TopicTypeProvisioningState extends ExpandableStringEnumList all registered topic types. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -20,7 +22,9 @@ public interface TopicTypes { PagedIterable list(); /** - * List all registered topic types. + * List topic types. + * + *

List all registered topic types. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -31,30 +35,36 @@ public interface TopicTypes { PagedIterable list(Context context); /** - * Get information about a topic type. + * Get a topic type. + * + *

Get information about a topic type. * * @param topicTypeName Name of the topic type. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about a topic type. + * @return information about a topic type along with {@link Response}. */ - TopicTypeInfo get(String topicTypeName); + Response getWithResponse(String topicTypeName, Context context); /** - * Get information about a topic type. + * Get a topic type. + * + *

Get information about a topic type. * * @param topicTypeName Name of the topic type. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information about a topic type along with {@link Response}. + * @return information about a topic type. */ - Response getWithResponse(String topicTypeName, Context context); + TopicTypeInfo get(String topicTypeName); /** - * List event types for a topic type. + * List event types. + * + *

List event types for a topic type. * * @param topicTypeName Name of the topic type. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -65,7 +75,9 @@ public interface TopicTypes { PagedIterable listEventTypes(String topicTypeName); /** - * List event types for a topic type. + * List event types. + * + *

List event types for a topic type. * * @param topicTypeName Name of the topic type. * @param context The context to associate with this operation. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/TopicTypesListResult.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/TopicTypesListResult.java index 796ab401e98f..b5c308951b25 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/TopicTypesListResult.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/TopicTypesListResult.java @@ -18,6 +18,10 @@ public final class TopicTypesListResult { @JsonProperty(value = "value") private List value; + /** Creates an instance of TopicTypesListResult class. */ + public TopicTypesListResult() { + } + /** * Get the value property: A collection of topic types. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/TopicUpdateParameters.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/TopicUpdateParameters.java index a37026799b3b..f618639b985e 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/TopicUpdateParameters.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/TopicUpdateParameters.java @@ -33,6 +33,10 @@ public final class TopicUpdateParameters { @JsonProperty(value = "properties") private TopicUpdateParameterProperties innerProperties; + /** Creates an instance of TopicUpdateParameters class. */ + public TopicUpdateParameters() { + } + /** * Get the tags property: Tags of the Topic resource. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/Topics.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/Topics.java index ea31e77dacfb..6660026d993f 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/Topics.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/Topics.java @@ -11,32 +11,38 @@ /** Resource collection API of Topics. */ public interface Topics { /** - * Get properties of a topic. + * Get a topic. + * + *

Get properties of a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a topic. + * @return properties of a topic along with {@link Response}. */ - Topic getByResourceGroup(String resourceGroupName, String topicName); + Response getByResourceGroupWithResponse(String resourceGroupName, String topicName, Context context); /** - * Get properties of a topic. + * Get a topic. + * + *

Get properties of a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a topic along with {@link Response}. + * @return properties of a topic. */ - Response getByResourceGroupWithResponse(String resourceGroupName, String topicName, Context context); + Topic getByResourceGroup(String resourceGroupName, String topicName); /** - * Delete existing topic. + * Delete a topic. + * + *

Delete existing topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -47,7 +53,9 @@ public interface Topics { void deleteByResourceGroup(String resourceGroupName, String topicName); /** - * Delete existing topic. + * Delete a topic. + * + *

Delete existing topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -59,7 +67,9 @@ public interface Topics { void delete(String resourceGroupName, String topicName, Context context); /** - * List all the topics under an Azure subscription. + * List topics under an Azure subscription. + * + *

List all the topics under an Azure subscription. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -68,7 +78,9 @@ public interface Topics { PagedIterable list(); /** - * List all the topics under an Azure subscription. + * List topics under an Azure subscription. + * + *

List all the topics under an Azure subscription. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' @@ -87,7 +99,9 @@ public interface Topics { PagedIterable list(String filter, Integer top, Context context); /** - * List all the topics under a resource group. + * List topics under a resource group. + * + *

List all the topics under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -98,7 +112,9 @@ public interface Topics { PagedIterable listByResourceGroup(String resourceGroupName); /** - * List all the topics under a resource group. + * List topics under a resource group. + * + *

List all the topics under a resource group. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the @@ -118,33 +134,39 @@ public interface Topics { PagedIterable listByResourceGroup(String resourceGroupName, String filter, Integer top, Context context); /** - * List the two keys used to publish to a topic. + * List keys for a topic. + * + *

List the two keys used to publish to a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return shared access keys of the Topic. + * @return shared access keys of the Topic along with {@link Response}. */ - TopicSharedAccessKeys listSharedAccessKeys(String resourceGroupName, String topicName); + Response listSharedAccessKeysWithResponse( + String resourceGroupName, String topicName, Context context); /** - * List the two keys used to publish to a topic. + * List keys for a topic. + * + *

List the two keys used to publish to a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return shared access keys of the Topic along with {@link Response}. + * @return shared access keys of the Topic. */ - Response listSharedAccessKeysWithResponse( - String resourceGroupName, String topicName, Context context); + TopicSharedAccessKeys listSharedAccessKeys(String resourceGroupName, String topicName); /** - * Regenerate a shared access key for a topic. + * Regenerate key for a topic. + * + *

Regenerate a shared access key for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -158,7 +180,9 @@ TopicSharedAccessKeys regenerateKey( String resourceGroupName, String topicName, TopicRegenerateKeyRequest regenerateKeyRequest); /** - * Regenerate a shared access key for a topic. + * Regenerate key for a topic. + * + *

Regenerate a shared access key for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicName Name of the topic. @@ -173,7 +197,9 @@ TopicSharedAccessKeys regenerateKey( String resourceGroupName, String topicName, TopicRegenerateKeyRequest regenerateKeyRequest, Context context); /** - * List event types for a topic. + * List topic event types. + * + *

List event types for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param providerNamespace Namespace of the provider of the topic. @@ -188,7 +214,9 @@ PagedIterable listEventTypes( String resourceGroupName, String providerNamespace, String resourceTypeName, String resourceName); /** - * List event types for a topic. + * List topic event types. + * + *

List event types for a topic. * * @param resourceGroupName The name of the resource group within the user's subscription. * @param providerNamespace Namespace of the provider of the topic. @@ -208,7 +236,9 @@ PagedIterable listEventTypes( Context context); /** - * Get properties of a topic. + * Get a topic. + * + *

Get properties of a topic. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -219,7 +249,9 @@ PagedIterable listEventTypes( Topic getById(String id); /** - * Get properties of a topic. + * Get a topic. + * + *

Get properties of a topic. * * @param id the resource ID. * @param context The context to associate with this operation. @@ -231,7 +263,9 @@ PagedIterable listEventTypes( Response getByIdWithResponse(String id, Context context); /** - * Delete existing topic. + * Delete a topic. + * + *

Delete existing topic. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -241,7 +275,9 @@ PagedIterable listEventTypes( void deleteById(String id); /** - * Delete existing topic. + * Delete a topic. + * + *

Delete existing topic. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/TopicsListResult.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/TopicsListResult.java index 0afb08cd8b9d..6055857ac78c 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/TopicsListResult.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/TopicsListResult.java @@ -24,6 +24,10 @@ public final class TopicsListResult { @JsonProperty(value = "nextLink") private String nextLink; + /** Creates an instance of TopicsListResult class. */ + public TopicsListResult() { + } + /** * Get the value property: A collection of Topics. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/UserIdentityProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/UserIdentityProperties.java index fb0774156220..f0339c0a2787 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/UserIdentityProperties.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/UserIdentityProperties.java @@ -22,6 +22,10 @@ public final class UserIdentityProperties { @JsonProperty(value = "clientId") private String clientId; + /** Creates an instance of UserIdentityProperties class. */ + public UserIdentityProperties() { + } + /** * Get the principalId property: The principal id of user assigned identity. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/VerifiedPartnerProvisioningState.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/VerifiedPartnerProvisioningState.java index 64d48f03fcc9..800ad603238b 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/VerifiedPartnerProvisioningState.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/VerifiedPartnerProvisioningState.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for VerifiedPartnerProvisioningState. */ +/** Provisioning state of the verified partner. */ public final class VerifiedPartnerProvisioningState extends ExpandableStringEnum { /** Static value Creating for VerifiedPartnerProvisioningState. */ public static final VerifiedPartnerProvisioningState CREATING = fromString("Creating"); @@ -28,6 +28,15 @@ public final class VerifiedPartnerProvisioningState extends ExpandableStringEnum /** Static value Failed for VerifiedPartnerProvisioningState. */ public static final VerifiedPartnerProvisioningState FAILED = fromString("Failed"); + /** + * Creates a new instance of VerifiedPartnerProvisioningState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public VerifiedPartnerProvisioningState() { + } + /** * Creates or finds a VerifiedPartnerProvisioningState from its string representation. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/VerifiedPartners.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/VerifiedPartners.java index 44ace74eb65d..3f0fe090b686 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/VerifiedPartners.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/VerifiedPartners.java @@ -11,30 +11,36 @@ /** Resource collection API of VerifiedPartners. */ public interface VerifiedPartners { /** - * Get properties of a verified partner. + * Get a verified partner. + * + *

Get properties of a verified partner. * * @param verifiedPartnerName Name of the verified partner. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a verified partner. + * @return properties of a verified partner along with {@link Response}. */ - VerifiedPartner get(String verifiedPartnerName); + Response getWithResponse(String verifiedPartnerName, Context context); /** - * Get properties of a verified partner. + * Get a verified partner. + * + *

Get properties of a verified partner. * * @param verifiedPartnerName Name of the verified partner. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a verified partner along with {@link Response}. + * @return properties of a verified partner. */ - Response getWithResponse(String verifiedPartnerName, Context context); + VerifiedPartner get(String verifiedPartnerName); /** - * Get a list of all verified partners. + * List all verified partners. + * + *

Get a list of all verified partners. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -43,7 +49,9 @@ public interface VerifiedPartners { PagedIterable list(); /** - * Get a list of all verified partners. + * List all verified partners. + * + *

Get a list of all verified partners. * * @param filter The query used to filter the search results using OData syntax. Filtering is permitted on the * 'name' property only and with limited number of OData operations. These operations are: the 'contains' diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/VerifiedPartnersListResult.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/VerifiedPartnersListResult.java index 0117a8856119..caec6ac17ca6 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/VerifiedPartnersListResult.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/VerifiedPartnersListResult.java @@ -24,6 +24,10 @@ public final class VerifiedPartnersListResult { @JsonProperty(value = "nextLink") private String nextLink; + /** Creates an instance of VerifiedPartnersListResult class. */ + public VerifiedPartnersListResult() { + } + /** * Get the value property: A collection of verified partners. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/WebhookEventSubscriptionDestination.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/WebhookEventSubscriptionDestination.java index ef48fc8958a1..42fb0236a321 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/WebhookEventSubscriptionDestination.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/models/WebhookEventSubscriptionDestination.java @@ -22,6 +22,10 @@ public final class WebhookEventSubscriptionDestination extends EventSubscription @JsonProperty(value = "properties") private WebhookEventSubscriptionDestinationProperties innerProperties; + /** Creates an instance of WebhookEventSubscriptionDestination class. */ + public WebhookEventSubscriptionDestination() { + } + /** * Get the innerProperties property: WebHook Properties of the event subscription destination. * diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/ChannelsDeleteSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/ChannelsDeleteSamples.java index ccf4042f7837..fb1ea15ab1a8 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/ChannelsDeleteSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/ChannelsDeleteSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for Channels Delete. */ public final class ChannelsDeleteSamples { /* @@ -19,6 +17,10 @@ public final class ChannelsDeleteSamples { public static void channelsDelete(com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .channels() - .delete("examplerg", "examplePartnerNamespaceName1", "exampleEventChannelName1", Context.NONE); + .delete( + "examplerg", + "examplePartnerNamespaceName1", + "exampleEventChannelName1", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/ChannelsGetFullUrlSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/ChannelsGetFullUrlSamples.java index 3dd796004d1d..1c9de7c58715 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/ChannelsGetFullUrlSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/ChannelsGetFullUrlSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for Channels GetFullUrl. */ public final class ChannelsGetFullUrlSamples { /* @@ -17,6 +15,9 @@ public final class ChannelsGetFullUrlSamples { * @param manager Entry point to EventGridManager. */ public static void channelsGetFullUrl(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.channels().getFullUrlWithResponse("examplerg", "examplenamespace", "examplechannel", Context.NONE); + manager + .channels() + .getFullUrlWithResponse( + "examplerg", "examplenamespace", "examplechannel", com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/ChannelsGetSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/ChannelsGetSamples.java index bb70dbd3a2c6..d5839a74ff03 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/ChannelsGetSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/ChannelsGetSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for Channels Get. */ public final class ChannelsGetSamples { /* @@ -19,6 +17,7 @@ public final class ChannelsGetSamples { public static void channelsGet(com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .channels() - .getWithResponse("examplerg", "examplePartnerNamespaceName1", "exampleChannelName1", Context.NONE); + .getWithResponse( + "examplerg", "examplePartnerNamespaceName1", "exampleChannelName1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/ChannelsListByPartnerNamespaceSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/ChannelsListByPartnerNamespaceSamples.java index fe2626baa1c9..c28920b717ac 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/ChannelsListByPartnerNamespaceSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/ChannelsListByPartnerNamespaceSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for Channels ListByPartnerNamespace. */ public final class ChannelsListByPartnerNamespaceSamples { /* @@ -19,6 +17,7 @@ public final class ChannelsListByPartnerNamespaceSamples { public static void channelsListByPartnerNamespace(com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .channels() - .listByPartnerNamespace("examplerg", "examplePartnerNamespaceName1", null, null, Context.NONE); + .listByPartnerNamespace( + "examplerg", "examplePartnerNamespaceName1", null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/ChannelsUpdateSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/ChannelsUpdateSamples.java index 076babb64362..a8e2e28e55db 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/ChannelsUpdateSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/ChannelsUpdateSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.models.ChannelUpdateParameters; import java.time.OffsetDateTime; @@ -27,6 +26,6 @@ public static void channelsUpdate(com.azure.resourcemanager.eventgrid.EventGridM "exampleChannelName1", new ChannelUpdateParameters() .withExpirationTimeIfNotActivatedUtc(OffsetDateTime.parse("2022-03-23T23:06:11.785Z")), - Context.NONE); + com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainEventSubscriptionsCreateOrUpdateSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainEventSubscriptionsCreateOrUpdateSamples.java index e4cc7be3eee5..30046c82f52c 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainEventSubscriptionsCreateOrUpdateSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainEventSubscriptionsCreateOrUpdateSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.fluent.models.EventSubscriptionInner; import com.azure.resourcemanager.eventgrid.models.EventSubscriptionFilter; import com.azure.resourcemanager.eventgrid.models.WebhookEventSubscriptionDestination; @@ -35,6 +34,6 @@ public static void domainEventSubscriptionsCreateOrUpdate( .withSubjectBeginsWith("ExamplePrefix") .withSubjectEndsWith("ExampleSuffix") .withIsSubjectCaseSensitive(false)), - Context.NONE); + com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainEventSubscriptionsDeleteSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainEventSubscriptionsDeleteSamples.java index 08cff6d55973..4cad184a7dda 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainEventSubscriptionsDeleteSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainEventSubscriptionsDeleteSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for DomainEventSubscriptions Delete. */ public final class DomainEventSubscriptionsDeleteSamples { /* @@ -17,6 +15,8 @@ public final class DomainEventSubscriptionsDeleteSamples { * @param manager Entry point to EventGridManager. */ public static void domainEventSubscriptionsDelete(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.domainEventSubscriptions().delete("examplerg", "exampleDomain1", "examplesubscription1", Context.NONE); + manager + .domainEventSubscriptions() + .delete("examplerg", "exampleDomain1", "examplesubscription1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainEventSubscriptionsGetDeliveryAttributesSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainEventSubscriptionsGetDeliveryAttributesSamples.java index de69651ca598..0f0bbf72531e 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainEventSubscriptionsGetDeliveryAttributesSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainEventSubscriptionsGetDeliveryAttributesSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for DomainEventSubscriptions GetDeliveryAttributes. */ public final class DomainEventSubscriptionsGetDeliveryAttributesSamples { /* @@ -20,6 +18,7 @@ public static void domainEventSubscriptionsGetDeliveryAttributes( com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .domainEventSubscriptions() - .getDeliveryAttributesWithResponse("examplerg", "exampleDomain1", "examplesubscription1", Context.NONE); + .getDeliveryAttributesWithResponse( + "examplerg", "exampleDomain1", "examplesubscription1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainEventSubscriptionsGetFullUrlSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainEventSubscriptionsGetFullUrlSamples.java index 19183a409da2..6a982a692ef4 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainEventSubscriptionsGetFullUrlSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainEventSubscriptionsGetFullUrlSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for DomainEventSubscriptions GetFullUrl. */ public final class DomainEventSubscriptionsGetFullUrlSamples { /* @@ -20,6 +18,7 @@ public static void domainEventSubscriptionsGetFullUrl( com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .domainEventSubscriptions() - .getFullUrlWithResponse("examplerg", "exampleDomain1", "examplesubscription1", Context.NONE); + .getFullUrlWithResponse( + "examplerg", "exampleDomain1", "examplesubscription1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainEventSubscriptionsGetSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainEventSubscriptionsGetSamples.java index cf5eadfd7581..a73adcd9f707 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainEventSubscriptionsGetSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainEventSubscriptionsGetSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for DomainEventSubscriptions Get. */ public final class DomainEventSubscriptionsGetSamples { /* @@ -19,6 +17,6 @@ public final class DomainEventSubscriptionsGetSamples { public static void domainEventSubscriptionsGet(com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .domainEventSubscriptions() - .getWithResponse("examplerg", "exampleDomain1", "examplesubscription1", Context.NONE); + .getWithResponse("examplerg", "exampleDomain1", "examplesubscription1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainEventSubscriptionsListSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainEventSubscriptionsListSamples.java index 35508937b5a8..7f73b17bb271 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainEventSubscriptionsListSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainEventSubscriptionsListSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for DomainEventSubscriptions List. */ public final class DomainEventSubscriptionsListSamples { /* @@ -17,6 +15,8 @@ public final class DomainEventSubscriptionsListSamples { * @param manager Entry point to EventGridManager. */ public static void domainEventSubscriptionsList(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.domainEventSubscriptions().list("examplerg", "exampleDomain1", null, null, Context.NONE); + manager + .domainEventSubscriptions() + .list("examplerg", "exampleDomain1", null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainEventSubscriptionsUpdateSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainEventSubscriptionsUpdateSamples.java index fd7d812c416a..6ef5fe9e03f8 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainEventSubscriptionsUpdateSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainEventSubscriptionsUpdateSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.models.EventSubscriptionFilter; import com.azure.resourcemanager.eventgrid.models.EventSubscriptionUpdateParameters; import com.azure.resourcemanager.eventgrid.models.WebhookEventSubscriptionDestination; @@ -36,6 +35,6 @@ public static void domainEventSubscriptionsUpdate(com.azure.resourcemanager.even .withSubjectEndsWith("newSuffix") .withIsSubjectCaseSensitive(true)) .withLabels(Arrays.asList("label1", "label2")), - Context.NONE); + com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainTopicEventSubscriptionsCreateOrUpdateSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainTopicEventSubscriptionsCreateOrUpdateSamples.java index 3e752f0e5ab8..ee860790620f 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainTopicEventSubscriptionsCreateOrUpdateSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainTopicEventSubscriptionsCreateOrUpdateSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.fluent.models.EventSubscriptionInner; import com.azure.resourcemanager.eventgrid.models.EventSubscriptionFilter; import com.azure.resourcemanager.eventgrid.models.WebhookEventSubscriptionDestination; @@ -36,6 +35,6 @@ public static void domainTopicEventSubscriptionsCreateOrUpdate( .withSubjectBeginsWith("ExamplePrefix") .withSubjectEndsWith("ExampleSuffix") .withIsSubjectCaseSensitive(false)), - Context.NONE); + com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainTopicEventSubscriptionsDeleteSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainTopicEventSubscriptionsDeleteSamples.java index ddaff9cf2477..581563a22327 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainTopicEventSubscriptionsDeleteSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainTopicEventSubscriptionsDeleteSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for DomainTopicEventSubscriptions Delete. */ public final class DomainTopicEventSubscriptionsDeleteSamples { /* @@ -20,6 +18,11 @@ public static void domainTopicEventSubscriptionsDelete( com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .domainTopicEventSubscriptions() - .delete("examplerg", "exampleDomain1", "exampleDomainTopic1", "examplesubscription1", Context.NONE); + .delete( + "examplerg", + "exampleDomain1", + "exampleDomainTopic1", + "examplesubscription1", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainTopicEventSubscriptionsGetDeliveryAttributesSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainTopicEventSubscriptionsGetDeliveryAttributesSamples.java index 7f8f9e75253d..956675b4c00c 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainTopicEventSubscriptionsGetDeliveryAttributesSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainTopicEventSubscriptionsGetDeliveryAttributesSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for DomainTopicEventSubscriptions GetDeliveryAttributes. */ public final class DomainTopicEventSubscriptionsGetDeliveryAttributesSamples { /* @@ -21,6 +19,10 @@ public static void domainTopicEventSubscriptionsGetDeliveryAttributes( manager .domainTopicEventSubscriptions() .getDeliveryAttributesWithResponse( - "examplerg", "exampleDomain1", "exampleDomainTopic1", "examplesubscription1", Context.NONE); + "examplerg", + "exampleDomain1", + "exampleDomainTopic1", + "examplesubscription1", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainTopicEventSubscriptionsGetFullUrlSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainTopicEventSubscriptionsGetFullUrlSamples.java index f7eb5b377afb..ab8facbf88e6 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainTopicEventSubscriptionsGetFullUrlSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainTopicEventSubscriptionsGetFullUrlSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for DomainTopicEventSubscriptions GetFullUrl. */ public final class DomainTopicEventSubscriptionsGetFullUrlSamples { /* @@ -21,6 +19,10 @@ public static void domainTopicEventSubscriptionsGetFullUrl( manager .domainTopicEventSubscriptions() .getFullUrlWithResponse( - "examplerg", "exampleDomain1", "exampleDomainTopic1", "examplesubscription1", Context.NONE); + "examplerg", + "exampleDomain1", + "exampleDomainTopic1", + "examplesubscription1", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainTopicEventSubscriptionsGetSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainTopicEventSubscriptionsGetSamples.java index e1db95d5dec0..d0b926ffb831 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainTopicEventSubscriptionsGetSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainTopicEventSubscriptionsGetSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for DomainTopicEventSubscriptions Get. */ public final class DomainTopicEventSubscriptionsGetSamples { /* @@ -20,6 +18,10 @@ public static void domainTopicEventSubscriptionsGet(com.azure.resourcemanager.ev manager .domainTopicEventSubscriptions() .getWithResponse( - "examplerg", "exampleDomain1", "exampleDomainTopic1", "examplesubscription1", Context.NONE); + "examplerg", + "exampleDomain1", + "exampleDomainTopic1", + "examplesubscription1", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainTopicEventSubscriptionsListSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainTopicEventSubscriptionsListSamples.java index 0b2a1b28fe14..8d7ba29eb83e 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainTopicEventSubscriptionsListSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainTopicEventSubscriptionsListSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for DomainTopicEventSubscriptions List. */ public final class DomainTopicEventSubscriptionsListSamples { /* @@ -19,6 +17,6 @@ public final class DomainTopicEventSubscriptionsListSamples { public static void domainTopicEventSubscriptionsList(com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .domainTopicEventSubscriptions() - .list("examplerg", "exampleDomain1", "exampleDomainTopic1", null, null, Context.NONE); + .list("examplerg", "exampleDomain1", "exampleDomainTopic1", null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainTopicEventSubscriptionsUpdateSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainTopicEventSubscriptionsUpdateSamples.java index bf14bde2e359..e82b01f93b74 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainTopicEventSubscriptionsUpdateSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainTopicEventSubscriptionsUpdateSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.models.EventSubscriptionFilter; import com.azure.resourcemanager.eventgrid.models.EventSubscriptionUpdateParameters; import com.azure.resourcemanager.eventgrid.models.WebhookEventSubscriptionDestination; @@ -38,6 +37,6 @@ public static void domainTopicEventSubscriptionsUpdate( .withSubjectEndsWith("newSuffix") .withIsSubjectCaseSensitive(true)) .withLabels(Arrays.asList("label1", "label2")), - Context.NONE); + com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainTopicsCreateOrUpdateSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainTopicsCreateOrUpdateSamples.java index 59224cf90f28..f06458369219 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainTopicsCreateOrUpdateSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainTopicsCreateOrUpdateSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for DomainTopics CreateOrUpdate. */ public final class DomainTopicsCreateOrUpdateSamples { /* @@ -17,6 +15,8 @@ public final class DomainTopicsCreateOrUpdateSamples { * @param manager Entry point to EventGridManager. */ public static void domainTopicsCreateOrUpdate(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.domainTopics().createOrUpdate("examplerg", "exampledomain1", "exampledomaintopic1", Context.NONE); + manager + .domainTopics() + .createOrUpdate("examplerg", "exampledomain1", "exampledomaintopic1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainTopicsDeleteSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainTopicsDeleteSamples.java index abb4cdf8af41..0b4693f92565 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainTopicsDeleteSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainTopicsDeleteSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for DomainTopics Delete. */ public final class DomainTopicsDeleteSamples { /* @@ -17,6 +15,8 @@ public final class DomainTopicsDeleteSamples { * @param manager Entry point to EventGridManager. */ public static void domainTopicsDelete(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.domainTopics().delete("examplerg", "exampledomain1", "exampledomaintopic1", Context.NONE); + manager + .domainTopics() + .delete("examplerg", "exampledomain1", "exampledomaintopic1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainTopicsGetSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainTopicsGetSamples.java index 735b4318c9ff..1726eb866f5c 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainTopicsGetSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainTopicsGetSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for DomainTopics Get. */ public final class DomainTopicsGetSamples { /* @@ -17,6 +15,8 @@ public final class DomainTopicsGetSamples { * @param manager Entry point to EventGridManager. */ public static void domainTopicsGet(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.domainTopics().getWithResponse("examplerg", "exampledomain2", "topic1", Context.NONE); + manager + .domainTopics() + .getWithResponse("examplerg", "exampledomain2", "topic1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainTopicsListByDomainSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainTopicsListByDomainSamples.java index b2caafae6b76..a6c8ad4cdb00 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainTopicsListByDomainSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainTopicsListByDomainSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for DomainTopics ListByDomain. */ public final class DomainTopicsListByDomainSamples { /* @@ -17,6 +15,8 @@ public final class DomainTopicsListByDomainSamples { * @param manager Entry point to EventGridManager. */ public static void domainTopicsListByDomain(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.domainTopics().listByDomain("examplerg", "exampledomain2", null, null, Context.NONE); + manager + .domainTopics() + .listByDomain("examplerg", "exampledomain2", null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainsDeleteSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainsDeleteSamples.java index 945a4bdf45d7..a78244830e8a 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainsDeleteSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainsDeleteSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for Domains Delete. */ public final class DomainsDeleteSamples { /* @@ -17,6 +15,6 @@ public final class DomainsDeleteSamples { * @param manager Entry point to EventGridManager. */ public static void domainsDelete(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.domains().delete("examplerg", "exampledomain1", Context.NONE); + manager.domains().delete("examplerg", "exampledomain1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainsGetByResourceGroupSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainsGetByResourceGroupSamples.java index fba9bd963695..3d780a4560a0 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainsGetByResourceGroupSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainsGetByResourceGroupSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for Domains GetByResourceGroup. */ public final class DomainsGetByResourceGroupSamples { /* @@ -17,6 +15,8 @@ public final class DomainsGetByResourceGroupSamples { * @param manager Entry point to EventGridManager. */ public static void domainsGet(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.domains().getByResourceGroupWithResponse("examplerg", "exampledomain2", Context.NONE); + manager + .domains() + .getByResourceGroupWithResponse("examplerg", "exampledomain2", com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainsListByResourceGroupSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainsListByResourceGroupSamples.java index a450ea256941..00ad99ff3939 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainsListByResourceGroupSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainsListByResourceGroupSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for Domains ListByResourceGroup. */ public final class DomainsListByResourceGroupSamples { /* @@ -17,6 +15,6 @@ public final class DomainsListByResourceGroupSamples { * @param manager Entry point to EventGridManager. */ public static void domainsListByResourceGroup(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.domains().listByResourceGroup("examplerg", null, null, Context.NONE); + manager.domains().listByResourceGroup("examplerg", null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainsListSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainsListSamples.java index 4a8db8e28669..6c5ac54c7fb9 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainsListSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainsListSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for Domains List. */ public final class DomainsListSamples { /* @@ -17,6 +15,6 @@ public final class DomainsListSamples { * @param manager Entry point to EventGridManager. */ public static void domainsListBySubscription(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.domains().list(null, null, Context.NONE); + manager.domains().list(null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainsListSharedAccessKeysSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainsListSharedAccessKeysSamples.java index 06e0d9c3d138..928e9f16275c 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainsListSharedAccessKeysSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainsListSharedAccessKeysSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for Domains ListSharedAccessKeys. */ public final class DomainsListSharedAccessKeysSamples { /* @@ -17,6 +15,8 @@ public final class DomainsListSharedAccessKeysSamples { * @param manager Entry point to EventGridManager. */ public static void domainsListSharedAccessKeys(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.domains().listSharedAccessKeysWithResponse("examplerg", "exampledomain2", Context.NONE); + manager + .domains() + .listSharedAccessKeysWithResponse("examplerg", "exampledomain2", com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainsRegenerateKeySamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainsRegenerateKeySamples.java index 7d9670204aca..409fb1f0b475 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainsRegenerateKeySamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainsRegenerateKeySamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.models.DomainRegenerateKeyRequest; /** Samples for Domains RegenerateKey. */ @@ -21,6 +20,9 @@ public static void domainsRegenerateKey(com.azure.resourcemanager.eventgrid.Even manager .domains() .regenerateKeyWithResponse( - "examplerg", "exampledomain2", new DomainRegenerateKeyRequest().withKeyName("key1"), Context.NONE); + "examplerg", + "exampledomain2", + new DomainRegenerateKeyRequest().withKeyName("fakeTokenPlaceholder"), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainsUpdateSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainsUpdateSamples.java index bc1a2c588055..3fafc2f53141 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainsUpdateSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/DomainsUpdateSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.models.Domain; import com.azure.resourcemanager.eventgrid.models.InboundIpRule; import com.azure.resourcemanager.eventgrid.models.IpActionType; @@ -25,7 +24,10 @@ public final class DomainsUpdateSamples { */ public static void domainsUpdate(com.azure.resourcemanager.eventgrid.EventGridManager manager) { Domain resource = - manager.domains().getByResourceGroupWithResponse("examplerg", "exampledomain1", Context.NONE).getValue(); + manager + .domains() + .getByResourceGroupWithResponse("examplerg", "exampledomain1", com.azure.core.util.Context.NONE) + .getValue(); resource .update() .withTags(mapOf("tag1", "value1", "tag2", "value2")) diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsCreateOrUpdateSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsCreateOrUpdateSamples.java index c1b979967984..50a13f7bbfef 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsCreateOrUpdateSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsCreateOrUpdateSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.fluent.models.EventSubscriptionInner; import com.azure.resourcemanager.eventgrid.models.AzureFunctionEventSubscriptionDestination; import com.azure.resourcemanager.eventgrid.models.EventHubEventSubscriptionDestination; @@ -43,7 +42,7 @@ public static void eventSubscriptionsCreateOrUpdateForCustomTopicWebhookDestinat .withSubjectBeginsWith("ExamplePrefix") .withSubjectEndsWith("ExampleSuffix") .withIsSubjectCaseSensitive(false)), - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -65,7 +64,7 @@ public static void eventSubscriptionsCreateOrUpdateForSubscription( .withDestination( new WebhookEventSubscriptionDestination().withEndpointUrl("https://requestb.in/15ksip71")) .withFilter(new EventSubscriptionFilter().withIsSubjectCaseSensitive(false)), - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -98,7 +97,7 @@ public static void eventSubscriptionsCreateOrUpdateForCustomTopicServiceBusTopic .withResourceId( "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg") .withBlobContainerName("contosocontainer")), - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -124,7 +123,7 @@ public static void eventSubscriptionsCreateOrUpdateForResource( .withSubjectBeginsWith("ExamplePrefix") .withSubjectEndsWith("ExampleSuffix") .withIsSubjectCaseSensitive(false)), - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -152,7 +151,7 @@ public static void eventSubscriptionsCreateOrUpdateForCustomTopic( .withSubjectBeginsWith("ExamplePrefix") .withSubjectEndsWith("ExampleSuffix") .withIsSubjectCaseSensitive(false)), - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -178,7 +177,7 @@ public static void eventSubscriptionsCreateOrUpdateForResourceGroup( .withSubjectBeginsWith("ExamplePrefix") .withSubjectEndsWith("ExampleSuffix") .withIsSubjectCaseSensitive(false)), - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -211,7 +210,7 @@ public static void eventSubscriptionsCreateOrUpdateForCustomTopicEventHubDestina .withResourceId( "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg") .withBlobContainerName("contosocontainer")), - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -245,7 +244,7 @@ public static void eventSubscriptionsCreateOrUpdateForCustomTopicStorageQueueDes .withResourceId( "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg") .withBlobContainerName("contosocontainer")), - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -278,7 +277,7 @@ public static void eventSubscriptionsCreateOrUpdateForCustomTopicAzureFunctionDe .withResourceId( "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg") .withBlobContainerName("contosocontainer")), - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -311,7 +310,7 @@ public static void eventSubscriptionsCreateOrUpdateForCustomTopicHybridConnectio .withResourceId( "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg") .withBlobContainerName("contosocontainer")), - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -344,6 +343,6 @@ public static void eventSubscriptionsCreateOrUpdateForCustomTopicServiceBusQueue .withResourceId( "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg") .withBlobContainerName("contosocontainer")), - Context.NONE); + com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsDeleteSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsDeleteSamples.java index 22de3b089b7c..2c4b666ea3d9 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsDeleteSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsDeleteSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for EventSubscriptions Delete. */ public final class EventSubscriptionsDeleteSamples { /* @@ -23,7 +21,7 @@ public static void eventSubscriptionsDeleteForCustomTopic( .delete( "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1", "examplesubscription1", - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -41,7 +39,7 @@ public static void eventSubscriptionsDeleteForResourceGroup( .delete( "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg", "examplesubscription2", - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -56,7 +54,10 @@ public static void eventSubscriptionsDeleteForSubscription( com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .eventSubscriptions() - .delete("subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4", "examplesubscription3", Context.NONE); + .delete( + "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "examplesubscription3", + com.azure.core.util.Context.NONE); } /* @@ -74,6 +75,6 @@ public static void eventSubscriptionsDeleteForResource( .delete( "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1", "examplesubscription10", - Context.NONE); + com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsGetDeliveryAttributesSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsGetDeliveryAttributesSamples.java index bb55fe490a9b..e11ef8b0df54 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsGetDeliveryAttributesSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsGetDeliveryAttributesSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for EventSubscriptions GetDeliveryAttributes. */ public final class EventSubscriptionsGetDeliveryAttributesSamples { /* @@ -20,6 +18,7 @@ public static void eventSubscriptionsGetDeliveryAttributes( com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .eventSubscriptions() - .getDeliveryAttributesWithResponse("aaaaaaaaaaaaaaaaaaaaaaaaa", "aaaaaaaaaaaaaaaaaa", Context.NONE); + .getDeliveryAttributesWithResponse( + "aaaaaaaaaaaaaaaaaaaaaaaaa", "aaaaaaaaaaaaaaaaaa", com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsGetFullUrlSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsGetFullUrlSamples.java index f03d85f1e282..b921fcf8011c 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsGetFullUrlSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsGetFullUrlSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for EventSubscriptions GetFullUrl. */ public final class EventSubscriptionsGetFullUrlSamples { /* @@ -23,7 +21,7 @@ public static void eventSubscriptionsGetFullUrlForResource( .getFullUrlWithResponse( "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1", "examplesubscription1", - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -41,7 +39,7 @@ public static void eventSubscriptionsGetFullUrlForResourceGroup( .getFullUrlWithResponse( "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg", "examplesubscription2", - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -57,7 +55,9 @@ public static void eventSubscriptionsGetFullUrlForSubscription( manager .eventSubscriptions() .getFullUrlWithResponse( - "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4", "examplesubscription3", Context.NONE); + "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "examplesubscription3", + com.azure.core.util.Context.NONE); } /* @@ -75,6 +75,6 @@ public static void eventSubscriptionsGetFullUrlForCustomTopic( .getFullUrlWithResponse( "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", "examplesubscription1", - Context.NONE); + com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsGetSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsGetSamples.java index 21d1ef59737a..ab69bda091a2 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsGetSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsGetSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for EventSubscriptions Get. */ public final class EventSubscriptionsGetSamples { /* @@ -23,7 +21,7 @@ public static void eventSubscriptionsGetForCustomTopicHybridConnectionDestinatio .getWithResponse( "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", "examplesubscription1", - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -41,7 +39,7 @@ public static void eventSubscriptionsGetForCustomTopicServiceBusTopicDestination .getWithResponse( "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", "examplesubscription1", - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -59,7 +57,7 @@ public static void eventSubscriptionsGetForResourceGroup( .getWithResponse( "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg", "examplesubscription2", - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -77,7 +75,7 @@ public static void eventSubscriptionsGetForCustomTopicEventHubDestination( .getWithResponse( "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", "examplesubscription1", - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -93,7 +91,9 @@ public static void eventSubscriptionsGetForSubscription( manager .eventSubscriptions() .getWithResponse( - "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4", "examplesubscription3", Context.NONE); + "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4", + "examplesubscription3", + com.azure.core.util.Context.NONE); } /* @@ -111,7 +111,7 @@ public static void eventSubscriptionsGetForCustomTopicWebhookDestination( .getWithResponse( "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", "examplesubscription1", - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -129,7 +129,7 @@ public static void eventSubscriptionsGetForCustomTopicAzureFunctionDestination( .getWithResponse( "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", "examplesubscription1", - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -147,7 +147,7 @@ public static void eventSubscriptionsGetForCustomTopic( .getWithResponse( "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", "examplesubscription1", - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -165,7 +165,7 @@ public static void eventSubscriptionsGetForCustomTopicStorageQueueDestination( .getWithResponse( "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", "examplesubscription1", - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -182,7 +182,7 @@ public static void eventSubscriptionsGetForResource(com.azure.resourcemanager.ev .getWithResponse( "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1", "examplesubscription1", - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -200,6 +200,6 @@ public static void eventSubscriptionsGetForCustomTopicServiceBusQueueDestination .getWithResponse( "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2", "examplesubscription1", - Context.NONE); + com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsListByDomainTopicSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsListByDomainTopicSamples.java index d60a8a595a43..3cc31d597903 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsListByDomainTopicSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsListByDomainTopicSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for EventSubscriptions ListByDomainTopic. */ public final class EventSubscriptionsListByDomainTopicSamples { /* @@ -18,6 +16,8 @@ public final class EventSubscriptionsListByDomainTopicSamples { */ public static void eventSubscriptionsListByDomainTopic( com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.eventSubscriptions().listByDomainTopic("examplerg", "domain1", "topic1", null, null, Context.NONE); + manager + .eventSubscriptions() + .listByDomainTopic("examplerg", "domain1", "topic1", null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsListByResourceGroupSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsListByResourceGroupSamples.java index 199c9bc19cf1..3d1b83899a2e 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsListByResourceGroupSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsListByResourceGroupSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for EventSubscriptions ListByResourceGroup. */ public final class EventSubscriptionsListByResourceGroupSamples { /* @@ -18,6 +16,6 @@ public final class EventSubscriptionsListByResourceGroupSamples { */ public static void eventSubscriptionsListGlobalByResourceGroup( com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.eventSubscriptions().listByResourceGroup("examplerg", null, null, Context.NONE); + manager.eventSubscriptions().listByResourceGroup("examplerg", null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsListByResourceSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsListByResourceSamples.java index 9e5fa918b407..b7662f46d7b9 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsListByResourceSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsListByResourceSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for EventSubscriptions ListByResource. */ public final class EventSubscriptionsListByResourceSamples { /* @@ -19,6 +17,13 @@ public final class EventSubscriptionsListByResourceSamples { public static void eventSubscriptionsListByResource(com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .eventSubscriptions() - .listByResource("examplerg", "Microsoft.EventGrid", "topics", "exampletopic2", null, null, Context.NONE); + .listByResource( + "examplerg", + "Microsoft.EventGrid", + "topics", + "exampletopic2", + null, + null, + com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsListGlobalByResourceGroupForTopicTypeSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsListGlobalByResourceGroupForTopicTypeSamples.java index dea6a3c7170e..869de699a822 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsListGlobalByResourceGroupForTopicTypeSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsListGlobalByResourceGroupForTopicTypeSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for EventSubscriptions ListGlobalByResourceGroupForTopicType. */ public final class EventSubscriptionsListGlobalByResourceGroupForTopicTypeSamples { /* @@ -21,6 +19,6 @@ public static void eventSubscriptionsListGlobalByResourceGroupForTopicType( manager .eventSubscriptions() .listGlobalByResourceGroupForTopicType( - "examplerg", "Microsoft.Resources.ResourceGroups", null, null, Context.NONE); + "examplerg", "Microsoft.Resources.ResourceGroups", null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsListGlobalBySubscriptionForTopicTypeSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsListGlobalBySubscriptionForTopicTypeSamples.java index f6991f37fc12..3ebfc4382b94 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsListGlobalBySubscriptionForTopicTypeSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsListGlobalBySubscriptionForTopicTypeSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for EventSubscriptions ListGlobalBySubscriptionForTopicType. */ public final class EventSubscriptionsListGlobalBySubscriptionForTopicTypeSamples { /* @@ -20,6 +18,7 @@ public static void eventSubscriptionsListGlobalBySubscriptionForTopicType( com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .eventSubscriptions() - .listGlobalBySubscriptionForTopicType("Microsoft.Resources.Subscriptions", null, null, Context.NONE); + .listGlobalBySubscriptionForTopicType( + "Microsoft.Resources.Subscriptions", null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsListRegionalByResourceGroupForTopicTypeSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsListRegionalByResourceGroupForTopicTypeSamples.java index 2f5831c43142..e6aec1e204af 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsListRegionalByResourceGroupForTopicTypeSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsListRegionalByResourceGroupForTopicTypeSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for EventSubscriptions ListRegionalByResourceGroupForTopicType. */ public final class EventSubscriptionsListRegionalByResourceGroupForTopicTypeSamples { /* @@ -21,6 +19,6 @@ public static void eventSubscriptionsListRegionalByResourceGroupForTopicType( manager .eventSubscriptions() .listRegionalByResourceGroupForTopicType( - "examplerg", "westus2", "Microsoft.EventHub.namespaces", null, null, Context.NONE); + "examplerg", "westus2", "Microsoft.EventHub.namespaces", null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsListRegionalByResourceGroupSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsListRegionalByResourceGroupSamples.java index 259ed01aea61..c42893bb6919 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsListRegionalByResourceGroupSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsListRegionalByResourceGroupSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for EventSubscriptions ListRegionalByResourceGroup. */ public final class EventSubscriptionsListRegionalByResourceGroupSamples { /* @@ -18,6 +16,8 @@ public final class EventSubscriptionsListRegionalByResourceGroupSamples { */ public static void eventSubscriptionsListRegionalByResourceGroup( com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.eventSubscriptions().listRegionalByResourceGroup("examplerg", "westus2", null, null, Context.NONE); + manager + .eventSubscriptions() + .listRegionalByResourceGroup("examplerg", "westus2", null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsListRegionalBySubscriptionForTopicTypeSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsListRegionalBySubscriptionForTopicTypeSamples.java index 65bdaaa71f6a..e5b0d0bf7ba8 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsListRegionalBySubscriptionForTopicTypeSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsListRegionalBySubscriptionForTopicTypeSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for EventSubscriptions ListRegionalBySubscriptionForTopicType. */ public final class EventSubscriptionsListRegionalBySubscriptionForTopicTypeSamples { /* @@ -21,6 +19,6 @@ public static void eventSubscriptionsListRegionalBySubscriptionForTopicType( manager .eventSubscriptions() .listRegionalBySubscriptionForTopicType( - "westus2", "Microsoft.EventHub.namespaces", null, null, Context.NONE); + "westus2", "Microsoft.EventHub.namespaces", null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsListRegionalBySubscriptionSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsListRegionalBySubscriptionSamples.java index 7c08a47d4b80..99e5b0c434b3 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsListRegionalBySubscriptionSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsListRegionalBySubscriptionSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for EventSubscriptions ListRegionalBySubscription. */ public final class EventSubscriptionsListRegionalBySubscriptionSamples { /* @@ -18,6 +16,8 @@ public final class EventSubscriptionsListRegionalBySubscriptionSamples { */ public static void eventSubscriptionsListRegionalBySubscription( com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.eventSubscriptions().listRegionalBySubscription("westus2", null, null, Context.NONE); + manager + .eventSubscriptions() + .listRegionalBySubscription("westus2", null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsListSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsListSamples.java index 2ccb248521d7..c5b4359dd2e3 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsListSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsListSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for EventSubscriptions List. */ public final class EventSubscriptionsListSamples { /* @@ -18,6 +16,6 @@ public final class EventSubscriptionsListSamples { */ public static void eventSubscriptionsListGlobalBySubscription( com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.eventSubscriptions().list(null, null, Context.NONE); + manager.eventSubscriptions().list(null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsUpdateSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsUpdateSamples.java index d75510fae202..44fbefb1a130 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsUpdateSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/EventSubscriptionsUpdateSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.models.AzureFunctionEventSubscriptionDestination; import com.azure.resourcemanager.eventgrid.models.EventHubEventSubscriptionDestination; import com.azure.resourcemanager.eventgrid.models.EventSubscriptionFilter; @@ -45,7 +44,7 @@ public static void eventSubscriptionsUpdateForCustomTopicEventHubDestination( .withSubjectEndsWith("newSuffix") .withIsSubjectCaseSensitive(true)) .withLabels(Arrays.asList("label1", "label2")), - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -78,7 +77,7 @@ public static void eventSubscriptionsUpdateForCustomTopicAzureFunctionDestinatio .withResourceId( "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg") .withBlobContainerName("contosocontainer")), - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -105,7 +104,7 @@ public static void eventSubscriptionsUpdateForCustomTopicWebhookDestination( .withSubjectEndsWith("newSuffix") .withIsSubjectCaseSensitive(true)) .withLabels(Arrays.asList("label1", "label2")), - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -140,7 +139,7 @@ public static void eventSubscriptionsUpdateForCustomTopicStorageQueueDestination .withResourceId( "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg") .withBlobContainerName("contosocontainer")), - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -169,7 +168,7 @@ public static void eventSubscriptionsUpdateForCustomTopicServiceBusTopicDestinat .withSubjectEndsWith("newSuffix") .withIsSubjectCaseSensitive(true)) .withLabels(Arrays.asList("label1", "label2")), - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -198,7 +197,7 @@ public static void eventSubscriptionsUpdateForCustomTopicHybridConnectionDestina .withSubjectEndsWith("newSuffix") .withIsSubjectCaseSensitive(true)) .withLabels(Arrays.asList("label1", "label2")), - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -231,7 +230,7 @@ public static void eventSubscriptionsUpdateForCustomTopicServiceBusQueueDestinat .withResourceId( "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg") .withBlobContainerName("contosocontainer")), - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -258,7 +257,7 @@ public static void eventSubscriptionsUpdateForCustomTopic( .withSubjectEndsWith("newSuffix") .withIsSubjectCaseSensitive(true)) .withLabels(Arrays.asList("label1", "label2")), - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -285,7 +284,7 @@ public static void eventSubscriptionsUpdateForResource( .withSubjectEndsWith("newSuffix") .withIsSubjectCaseSensitive(true)) .withLabels(Arrays.asList("label1", "label2")), - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -314,7 +313,7 @@ public static void eventSubscriptionsUpdateForResourceGroup( .withSubjectEndsWith("newSuffix") .withIsSubjectCaseSensitive(true)) .withLabels(Arrays.asList("label1", "label2")), - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -341,6 +340,6 @@ public static void eventSubscriptionsUpdateForSubscription( .withSubjectEndsWith("newSuffix") .withIsSubjectCaseSensitive(true)) .withLabels(Arrays.asList("label1", "label2")), - Context.NONE); + com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/ExtensionTopicsGetSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/ExtensionTopicsGetSamples.java index daf7e159d9eb..86c4754a944c 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/ExtensionTopicsGetSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/ExtensionTopicsGetSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for ExtensionTopics Get. */ public final class ExtensionTopicsGetSamples { /* @@ -21,6 +19,6 @@ public static void extensionTopicsGet(com.azure.resourcemanager.eventgrid.EventG .extensionTopics() .getWithResponse( "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.storage/storageaccounts/exampleResourceName/providers/Microsoft.eventgrid/extensionTopics/default", - Context.NONE); + com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/OperationsListSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/OperationsListSamples.java index db221d6bd482..442b75d918b4 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/OperationsListSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/OperationsListSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for Operations List. */ public final class OperationsListSamples { /* @@ -17,6 +15,6 @@ public final class OperationsListSamples { * @param manager Entry point to EventGridManager. */ public static void operationsList(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.operations().list(Context.NONE); + manager.operations().list(com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerConfigurationsAuthorizePartnerSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerConfigurationsAuthorizePartnerSamples.java index ba825b2ae658..07c392bc30e1 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerConfigurationsAuthorizePartnerSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerConfigurationsAuthorizePartnerSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.models.Partner; import java.time.OffsetDateTime; import java.util.UUID; @@ -29,6 +28,6 @@ public static void partnerConfigurationsAuthorizePartner( .withPartnerRegistrationImmutableId(UUID.fromString("941892bc-f5d0-4d1c-8fb5-477570fc2b71")) .withPartnerName("Contoso.Finance") .withAuthorizationExpirationTimeInUtc(OffsetDateTime.parse("2022-01-28T01:20:55.142Z")), - Context.NONE); + com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerConfigurationsCreateOrUpdateSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerConfigurationsCreateOrUpdateSamples.java index c8d50fd781dd..594a046f0eaf 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerConfigurationsCreateOrUpdateSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerConfigurationsCreateOrUpdateSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.fluent.models.PartnerConfigurationInner; import com.azure.resourcemanager.eventgrid.models.Partner; import com.azure.resourcemanager.eventgrid.models.PartnerAuthorization; @@ -47,6 +46,6 @@ public static void partnerConfigurationsCreateOrUpdate( .withPartnerName("fabrikam.HR") .withAuthorizationExpirationTimeInUtc( OffsetDateTime.parse("2022-02-20T01:00:00.142Z"))))), - Context.NONE); + com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerConfigurationsDeleteSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerConfigurationsDeleteSamples.java index ae3fdb254207..86babd1d0d48 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerConfigurationsDeleteSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerConfigurationsDeleteSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for PartnerConfigurations Delete. */ public final class PartnerConfigurationsDeleteSamples { /* @@ -17,6 +15,6 @@ public final class PartnerConfigurationsDeleteSamples { * @param manager Entry point to EventGridManager. */ public static void partnerConfigurationsDelete(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.partnerConfigurations().delete("examplerg", Context.NONE); + manager.partnerConfigurations().delete("examplerg", com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerConfigurationsGetByResourceGroupSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerConfigurationsGetByResourceGroupSamples.java index d02a8bfa79f7..d951300e5f56 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerConfigurationsGetByResourceGroupSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerConfigurationsGetByResourceGroupSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for PartnerConfigurations GetByResourceGroup. */ public final class PartnerConfigurationsGetByResourceGroupSamples { /* @@ -17,6 +15,6 @@ public final class PartnerConfigurationsGetByResourceGroupSamples { * @param manager Entry point to EventGridManager. */ public static void partnerConfigurationsGet(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.partnerConfigurations().getByResourceGroupWithResponse("examplerg", Context.NONE); + manager.partnerConfigurations().getByResourceGroupWithResponse("examplerg", com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerConfigurationsListByResourceGroupSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerConfigurationsListByResourceGroupSamples.java index 370b64689fa1..679a65b5840c 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerConfigurationsListByResourceGroupSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerConfigurationsListByResourceGroupSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for PartnerConfigurations ListByResourceGroup. */ public final class PartnerConfigurationsListByResourceGroupSamples { /* @@ -18,6 +16,6 @@ public final class PartnerConfigurationsListByResourceGroupSamples { */ public static void partnerConfigurationsListByResourceGroup( com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.partnerConfigurations().listByResourceGroup("examplerg", Context.NONE); + manager.partnerConfigurations().listByResourceGroup("examplerg", com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerConfigurationsListSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerConfigurationsListSamples.java index 779234e4680e..a4eb54395a75 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerConfigurationsListSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerConfigurationsListSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for PartnerConfigurations List. */ public final class PartnerConfigurationsListSamples { /* @@ -18,6 +16,6 @@ public final class PartnerConfigurationsListSamples { */ public static void partnerConfigurationsListBySubscription( com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.partnerConfigurations().list(null, null, Context.NONE); + manager.partnerConfigurations().list(null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerConfigurationsUnauthorizePartnerSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerConfigurationsUnauthorizePartnerSamples.java index abb174e57e53..f96a65906fad 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerConfigurationsUnauthorizePartnerSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerConfigurationsUnauthorizePartnerSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.models.Partner; import java.time.OffsetDateTime; import java.util.UUID; @@ -29,6 +28,6 @@ public static void partnerConfigurationsUnauthorizePartner( .withPartnerRegistrationImmutableId(UUID.fromString("941892bc-f5d0-4d1c-8fb5-477570fc2b71")) .withPartnerName("Contoso.Finance") .withAuthorizationExpirationTimeInUtc(OffsetDateTime.parse("2022-01-28T01:20:55.142Z")), - Context.NONE); + com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerConfigurationsUpdateSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerConfigurationsUpdateSamples.java index bf7b552af655..46cec3004344 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerConfigurationsUpdateSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerConfigurationsUpdateSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.models.PartnerConfigurationUpdateParameters; import java.util.HashMap; import java.util.Map; @@ -27,7 +26,7 @@ public static void partnerConfigurationsUpdate(com.azure.resourcemanager.eventgr new PartnerConfigurationUpdateParameters() .withTags(mapOf("tag1", "value11", "tag2", "value22")) .withDefaultMaximumExpirationTimeInDays(100), - Context.NONE); + com.azure.core.util.Context.NONE); } @SuppressWarnings("unchecked") diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerNamespacesDeleteSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerNamespacesDeleteSamples.java index 9d4d19ead09c..b0e33f2e647e 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerNamespacesDeleteSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerNamespacesDeleteSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for PartnerNamespaces Delete. */ public final class PartnerNamespacesDeleteSamples { /* @@ -17,6 +15,8 @@ public final class PartnerNamespacesDeleteSamples { * @param manager Entry point to EventGridManager. */ public static void partnerNamespacesDelete(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.partnerNamespaces().delete("examplerg", "examplePartnerNamespaceName1", Context.NONE); + manager + .partnerNamespaces() + .delete("examplerg", "examplePartnerNamespaceName1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerNamespacesGetByResourceGroupSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerNamespacesGetByResourceGroupSamples.java index d57c40fb6247..af99089360bf 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerNamespacesGetByResourceGroupSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerNamespacesGetByResourceGroupSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for PartnerNamespaces GetByResourceGroup. */ public final class PartnerNamespacesGetByResourceGroupSamples { /* @@ -19,6 +17,7 @@ public final class PartnerNamespacesGetByResourceGroupSamples { public static void partnerNamespacesGet(com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .partnerNamespaces() - .getByResourceGroupWithResponse("examplerg", "examplePartnerNamespaceName1", Context.NONE); + .getByResourceGroupWithResponse( + "examplerg", "examplePartnerNamespaceName1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerNamespacesListByResourceGroupSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerNamespacesListByResourceGroupSamples.java index a6f4eef75bfc..5a9c55da2f23 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerNamespacesListByResourceGroupSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerNamespacesListByResourceGroupSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for PartnerNamespaces ListByResourceGroup. */ public final class PartnerNamespacesListByResourceGroupSamples { /* @@ -18,6 +16,6 @@ public final class PartnerNamespacesListByResourceGroupSamples { */ public static void partnerNamespacesListByResourceGroup( com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.partnerNamespaces().listByResourceGroup("examplerg", null, null, Context.NONE); + manager.partnerNamespaces().listByResourceGroup("examplerg", null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerNamespacesListSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerNamespacesListSamples.java index 872c6d0a37ab..c93c7b3aa5dc 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerNamespacesListSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerNamespacesListSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for PartnerNamespaces List. */ public final class PartnerNamespacesListSamples { /* @@ -18,6 +16,6 @@ public final class PartnerNamespacesListSamples { */ public static void partnerNamespacesListBySubscription( com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.partnerNamespaces().list(null, null, Context.NONE); + manager.partnerNamespaces().list(null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerNamespacesListSharedAccessKeysSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerNamespacesListSharedAccessKeysSamples.java index da9489166a41..30b2785364a9 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerNamespacesListSharedAccessKeysSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerNamespacesListSharedAccessKeysSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for PartnerNamespaces ListSharedAccessKeys. */ public final class PartnerNamespacesListSharedAccessKeysSamples { /* @@ -20,6 +18,7 @@ public static void partnerNamespacesListSharedAccessKeys( com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .partnerNamespaces() - .listSharedAccessKeysWithResponse("examplerg", "examplePartnerNamespaceName1", Context.NONE); + .listSharedAccessKeysWithResponse( + "examplerg", "examplePartnerNamespaceName1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerNamespacesRegenerateKeySamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerNamespacesRegenerateKeySamples.java index c218e3f2f431..9b4306e04374 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerNamespacesRegenerateKeySamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerNamespacesRegenerateKeySamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.models.PartnerNamespaceRegenerateKeyRequest; /** Samples for PartnerNamespaces RegenerateKey. */ @@ -23,7 +22,7 @@ public static void partnerNamespacesRegenerateKey(com.azure.resourcemanager.even .regenerateKeyWithResponse( "examplerg", "examplePartnerNamespaceName1", - new PartnerNamespaceRegenerateKeyRequest().withKeyName("key1"), - Context.NONE); + new PartnerNamespaceRegenerateKeyRequest().withKeyName("fakeTokenPlaceholder"), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerNamespacesUpdateSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerNamespacesUpdateSamples.java index e793101b9dad..e2bb4b02b32a 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerNamespacesUpdateSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerNamespacesUpdateSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.models.PartnerNamespace; import java.util.HashMap; import java.util.Map; @@ -23,7 +22,8 @@ public static void partnerNamespacesUpdate(com.azure.resourcemanager.eventgrid.E PartnerNamespace resource = manager .partnerNamespaces() - .getByResourceGroupWithResponse("examplerg", "examplePartnerNamespaceName1", Context.NONE) + .getByResourceGroupWithResponse( + "examplerg", "examplePartnerNamespaceName1", com.azure.core.util.Context.NONE) .getValue(); resource.update().withTags(mapOf("tag1", "value1")).apply(); } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerRegistrationsDeleteSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerRegistrationsDeleteSamples.java index 7c75d38c639a..da56e67e4c76 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerRegistrationsDeleteSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerRegistrationsDeleteSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for PartnerRegistrations Delete. */ public final class PartnerRegistrationsDeleteSamples { /* @@ -17,6 +15,8 @@ public final class PartnerRegistrationsDeleteSamples { * @param manager Entry point to EventGridManager. */ public static void partnerRegistrationsDelete(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.partnerRegistrations().delete("examplerg", "examplePartnerRegistrationName1", Context.NONE); + manager + .partnerRegistrations() + .delete("examplerg", "examplePartnerRegistrationName1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerRegistrationsGetByResourceGroupSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerRegistrationsGetByResourceGroupSamples.java index d5d1ea6004bd..230d7d2cde8b 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerRegistrationsGetByResourceGroupSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerRegistrationsGetByResourceGroupSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for PartnerRegistrations GetByResourceGroup. */ public final class PartnerRegistrationsGetByResourceGroupSamples { /* @@ -19,6 +17,7 @@ public final class PartnerRegistrationsGetByResourceGroupSamples { public static void partnerRegistrationsGet(com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .partnerRegistrations() - .getByResourceGroupWithResponse("examplerg", "examplePartnerRegistrationName1", Context.NONE); + .getByResourceGroupWithResponse( + "examplerg", "examplePartnerRegistrationName1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerRegistrationsListByResourceGroupSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerRegistrationsListByResourceGroupSamples.java index edd26213578e..03f1a375dda8 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerRegistrationsListByResourceGroupSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerRegistrationsListByResourceGroupSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for PartnerRegistrations ListByResourceGroup. */ public final class PartnerRegistrationsListByResourceGroupSamples { /* @@ -18,6 +16,6 @@ public final class PartnerRegistrationsListByResourceGroupSamples { */ public static void partnerRegistrationsListByResourceGroup( com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.partnerRegistrations().listByResourceGroup("examplerg", null, null, Context.NONE); + manager.partnerRegistrations().listByResourceGroup("examplerg", null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerRegistrationsListSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerRegistrationsListSamples.java index e0f051d08559..105ffb27fd48 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerRegistrationsListSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerRegistrationsListSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for PartnerRegistrations List. */ public final class PartnerRegistrationsListSamples { /* @@ -18,6 +16,6 @@ public final class PartnerRegistrationsListSamples { */ public static void partnerRegistrationsListBySubscription( com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.partnerRegistrations().list(null, null, Context.NONE); + manager.partnerRegistrations().list(null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerRegistrationsUpdateSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerRegistrationsUpdateSamples.java index 31e1ae9d9ab7..2c3008c81aac 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerRegistrationsUpdateSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerRegistrationsUpdateSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.models.PartnerRegistration; import java.util.HashMap; import java.util.Map; @@ -23,7 +22,8 @@ public static void partnerRegistrationsUpdate(com.azure.resourcemanager.eventgri PartnerRegistration resource = manager .partnerRegistrations() - .getByResourceGroupWithResponse("examplerg", "examplePartnerRegistrationName1", Context.NONE) + .getByResourceGroupWithResponse( + "examplerg", "examplePartnerRegistrationName1", com.azure.core.util.Context.NONE) .getValue(); resource.update().withTags(mapOf("tag1", "value1", "tag2", "value2")).apply(); } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicEventSubscriptionsCreateOrUpdateSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicEventSubscriptionsCreateOrUpdateSamples.java index a999b4c76a7d..e9424835980b 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicEventSubscriptionsCreateOrUpdateSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicEventSubscriptionsCreateOrUpdateSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.fluent.models.EventSubscriptionInner; import com.azure.resourcemanager.eventgrid.models.EventSubscriptionFilter; import com.azure.resourcemanager.eventgrid.models.WebhookEventSubscriptionDestination; @@ -35,6 +34,6 @@ public static void partnerTopicEventSubscriptionsCreateOrUpdate( .withSubjectBeginsWith("ExamplePrefix") .withSubjectEndsWith("ExampleSuffix") .withIsSubjectCaseSensitive(false)), - Context.NONE); + com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicEventSubscriptionsDeleteSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicEventSubscriptionsDeleteSamples.java index 5c4014702870..e0e1c4c722f0 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicEventSubscriptionsDeleteSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicEventSubscriptionsDeleteSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for PartnerTopicEventSubscriptions Delete. */ public final class PartnerTopicEventSubscriptionsDeleteSamples { /* @@ -20,6 +18,6 @@ public static void partnerTopicEventSubscriptionsDelete( com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .partnerTopicEventSubscriptions() - .delete("examplerg", "examplePartnerTopic1", "examplesubscription1", Context.NONE); + .delete("examplerg", "examplePartnerTopic1", "examplesubscription1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicEventSubscriptionsGetDeliveryAttributesSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicEventSubscriptionsGetDeliveryAttributesSamples.java index 2724906a99a4..a247c561eaa4 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicEventSubscriptionsGetDeliveryAttributesSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicEventSubscriptionsGetDeliveryAttributesSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for PartnerTopicEventSubscriptions GetDeliveryAttributes. */ public final class PartnerTopicEventSubscriptionsGetDeliveryAttributesSamples { /* @@ -21,6 +19,6 @@ public static void partnerTopicEventSubscriptionsGetDeliveryAttributes( manager .partnerTopicEventSubscriptions() .getDeliveryAttributesWithResponse( - "examplerg", "examplePartnerTopic1", "examplesubscription1", Context.NONE); + "examplerg", "examplePartnerTopic1", "examplesubscription1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicEventSubscriptionsGetFullUrlSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicEventSubscriptionsGetFullUrlSamples.java index 419fb78f11b3..b895446cb28a 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicEventSubscriptionsGetFullUrlSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicEventSubscriptionsGetFullUrlSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for PartnerTopicEventSubscriptions GetFullUrl. */ public final class PartnerTopicEventSubscriptionsGetFullUrlSamples { /* @@ -20,6 +18,7 @@ public static void partnerTopicEventSubscriptionsGetFullUrl( com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .partnerTopicEventSubscriptions() - .getFullUrlWithResponse("examplerg", "examplePartnerTopic1", "examplesubscription1", Context.NONE); + .getFullUrlWithResponse( + "examplerg", "examplePartnerTopic1", "examplesubscription1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicEventSubscriptionsGetSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicEventSubscriptionsGetSamples.java index 2608487d7f73..444437d497d7 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicEventSubscriptionsGetSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicEventSubscriptionsGetSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for PartnerTopicEventSubscriptions Get. */ public final class PartnerTopicEventSubscriptionsGetSamples { /* @@ -19,6 +17,7 @@ public final class PartnerTopicEventSubscriptionsGetSamples { public static void partnerTopicEventSubscriptionsGet(com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .partnerTopicEventSubscriptions() - .getWithResponse("examplerg", "examplePartnerTopic1", "examplesubscription1", Context.NONE); + .getWithResponse( + "examplerg", "examplePartnerTopic1", "examplesubscription1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicEventSubscriptionsListByPartnerTopicSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicEventSubscriptionsListByPartnerTopicSamples.java index e837b5508701..1de72d024c02 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicEventSubscriptionsListByPartnerTopicSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicEventSubscriptionsListByPartnerTopicSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for PartnerTopicEventSubscriptions ListByPartnerTopic. */ public final class PartnerTopicEventSubscriptionsListByPartnerTopicSamples { /* @@ -20,6 +18,6 @@ public static void partnerTopicEventSubscriptionsListByPartnerTopic( com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .partnerTopicEventSubscriptions() - .listByPartnerTopic("examplerg", "examplePartnerTopic1", null, null, Context.NONE); + .listByPartnerTopic("examplerg", "examplePartnerTopic1", null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicEventSubscriptionsUpdateSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicEventSubscriptionsUpdateSamples.java index 45807a959324..17af24eeb7ae 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicEventSubscriptionsUpdateSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicEventSubscriptionsUpdateSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.models.EventSubscriptionFilter; import com.azure.resourcemanager.eventgrid.models.EventSubscriptionUpdateParameters; import com.azure.resourcemanager.eventgrid.models.WebhookEventSubscriptionDestination; @@ -37,6 +36,6 @@ public static void partnerTopicEventSubscriptionsUpdate( .withSubjectEndsWith("newSuffix") .withIsSubjectCaseSensitive(true)) .withLabels(Arrays.asList("label1", "label2")), - Context.NONE); + com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicsActivateSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicsActivateSamples.java index 1f962a0230bf..de7000fc2da7 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicsActivateSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicsActivateSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for PartnerTopics Activate. */ public final class PartnerTopicsActivateSamples { /* @@ -17,6 +15,8 @@ public final class PartnerTopicsActivateSamples { * @param manager Entry point to EventGridManager. */ public static void partnerTopicsActivate(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.partnerTopics().activateWithResponse("examplerg", "examplePartnerTopic1", Context.NONE); + manager + .partnerTopics() + .activateWithResponse("examplerg", "examplePartnerTopic1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicsDeactivateSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicsDeactivateSamples.java index bd698bdd1e83..3c2687fa5756 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicsDeactivateSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicsDeactivateSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for PartnerTopics Deactivate. */ public final class PartnerTopicsDeactivateSamples { /* @@ -17,6 +15,8 @@ public final class PartnerTopicsDeactivateSamples { * @param manager Entry point to EventGridManager. */ public static void partnerTopicsDeactivate(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.partnerTopics().deactivateWithResponse("examplerg", "examplePartnerTopic1", Context.NONE); + manager + .partnerTopics() + .deactivateWithResponse("examplerg", "examplePartnerTopic1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicsDeleteSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicsDeleteSamples.java index 9e7f511e2564..a96d5a667098 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicsDeleteSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicsDeleteSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for PartnerTopics Delete. */ public final class PartnerTopicsDeleteSamples { /* @@ -17,6 +15,6 @@ public final class PartnerTopicsDeleteSamples { * @param manager Entry point to EventGridManager. */ public static void partnerTopicsDelete(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.partnerTopics().delete("examplerg", "examplePartnerTopicName1", Context.NONE); + manager.partnerTopics().delete("examplerg", "examplePartnerTopicName1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicsGetByResourceGroupSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicsGetByResourceGroupSamples.java index fd8b94ae52c6..fb4792acbe81 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicsGetByResourceGroupSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicsGetByResourceGroupSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for PartnerTopics GetByResourceGroup. */ public final class PartnerTopicsGetByResourceGroupSamples { /* @@ -17,6 +15,8 @@ public final class PartnerTopicsGetByResourceGroupSamples { * @param manager Entry point to EventGridManager. */ public static void partnerTopicsGet(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.partnerTopics().getByResourceGroupWithResponse("examplerg", "examplePartnerTopicName1", Context.NONE); + manager + .partnerTopics() + .getByResourceGroupWithResponse("examplerg", "examplePartnerTopicName1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicsListByResourceGroupSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicsListByResourceGroupSamples.java index 85bc256ba117..cc9d32b89de7 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicsListByResourceGroupSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicsListByResourceGroupSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for PartnerTopics ListByResourceGroup. */ public final class PartnerTopicsListByResourceGroupSamples { /* @@ -17,6 +15,6 @@ public final class PartnerTopicsListByResourceGroupSamples { * @param manager Entry point to EventGridManager. */ public static void partnerTopicsListByResourceGroup(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.partnerTopics().listByResourceGroup("examplerg", null, null, Context.NONE); + manager.partnerTopics().listByResourceGroup("examplerg", null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicsListSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicsListSamples.java index d1894a9d1e70..045bc55442f1 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicsListSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicsListSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for PartnerTopics List. */ public final class PartnerTopicsListSamples { /* @@ -17,6 +15,6 @@ public final class PartnerTopicsListSamples { * @param manager Entry point to EventGridManager. */ public static void partnerTopicsListBySubscription(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.partnerTopics().list(null, null, Context.NONE); + manager.partnerTopics().list(null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicsUpdateSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicsUpdateSamples.java index 9742acd6e5d9..342ee439eff0 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicsUpdateSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PartnerTopicsUpdateSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.models.PartnerTopic; import java.util.HashMap; import java.util.Map; @@ -23,7 +22,8 @@ public static void partnerTopicsUpdate(com.azure.resourcemanager.eventgrid.Event PartnerTopic resource = manager .partnerTopics() - .getByResourceGroupWithResponse("examplerg", "examplePartnerTopicName1", Context.NONE) + .getByResourceGroupWithResponse( + "examplerg", "examplePartnerTopicName1", com.azure.core.util.Context.NONE) .getValue(); resource.update().withTags(mapOf("tag1", "value1", "tag2", "value2")).apply(); } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PrivateEndpointConnectionsDeleteSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PrivateEndpointConnectionsDeleteSamples.java index 83549ccf887b..a8a3fd1361fa 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PrivateEndpointConnectionsDeleteSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PrivateEndpointConnectionsDeleteSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.models.PrivateEndpointConnectionsParentType; /** Samples for PrivateEndpointConnections Delete. */ @@ -25,6 +24,6 @@ public static void privateEndpointConnectionsDelete(com.azure.resourcemanager.ev PrivateEndpointConnectionsParentType.TOPICS, "exampletopic1", "BMTPE5.8A30D251-4C61-489D-A1AA-B37C4A329B8B", - Context.NONE); + com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PrivateEndpointConnectionsGetSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PrivateEndpointConnectionsGetSamples.java index 2f4209d58424..728b8332dfeb 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PrivateEndpointConnectionsGetSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PrivateEndpointConnectionsGetSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.models.PrivateEndpointConnectionsParentType; /** Samples for PrivateEndpointConnections Get. */ @@ -25,6 +24,6 @@ public static void privateEndpointConnectionsGet(com.azure.resourcemanager.event PrivateEndpointConnectionsParentType.TOPICS, "exampletopic1", "BMTPE5.8A30D251-4C61-489D-A1AA-B37C4A329B8B", - Context.NONE); + com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PrivateEndpointConnectionsListByResourceSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PrivateEndpointConnectionsListByResourceSamples.java index 542495ecc50a..dfe61fa22239 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PrivateEndpointConnectionsListByResourceSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PrivateEndpointConnectionsListByResourceSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.models.PrivateEndpointConnectionsParentType; /** Samples for PrivateEndpointConnections ListByResource. */ @@ -22,6 +21,11 @@ public static void privateEndpointConnectionsListByResource( manager .privateEndpointConnections() .listByResource( - "examplerg", PrivateEndpointConnectionsParentType.TOPICS, "exampletopic1", null, null, Context.NONE); + "examplerg", + PrivateEndpointConnectionsParentType.TOPICS, + "exampletopic1", + null, + null, + com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PrivateEndpointConnectionsUpdateSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PrivateEndpointConnectionsUpdateSamples.java index ed4da046b6e9..a2c8a3944a61 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PrivateEndpointConnectionsUpdateSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PrivateEndpointConnectionsUpdateSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.fluent.models.PrivateEndpointConnectionInner; import com.azure.resourcemanager.eventgrid.models.ConnectionState; import com.azure.resourcemanager.eventgrid.models.PersistedConnectionStatus; @@ -34,6 +33,6 @@ public static void privateEndpointConnectionsUpdate(com.azure.resourcemanager.ev .withStatus(PersistedConnectionStatus.APPROVED) .withDescription("approving connection") .withActionsRequired("None")), - Context.NONE); + com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PrivateLinkResourcesGetSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PrivateLinkResourcesGetSamples.java index 4cc2a035d230..d173f8975e7e 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PrivateLinkResourcesGetSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PrivateLinkResourcesGetSamples.java @@ -4,7 +4,7 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; +import com.azure.resourcemanager.eventgrid.models.PrivateEndpointConnectionsParentType; /** Samples for PrivateLinkResources Get. */ public final class PrivateLinkResourcesGetSamples { @@ -17,6 +17,13 @@ public final class PrivateLinkResourcesGetSamples { * @param manager Entry point to EventGridManager. */ public static void privateLinkResourcesGet(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.privateLinkResources().getWithResponse("examplerg", "topics", "exampletopic1", "topic", Context.NONE); + manager + .privateLinkResources() + .getWithResponse( + "examplerg", + PrivateEndpointConnectionsParentType.TOPICS, + "exampletopic1", + "topic", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PrivateLinkResourcesListByResourceSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PrivateLinkResourcesListByResourceSamples.java index 3c2addcd3c8c..0a19950d7339 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PrivateLinkResourcesListByResourceSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/PrivateLinkResourcesListByResourceSamples.java @@ -4,7 +4,7 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; +import com.azure.resourcemanager.eventgrid.models.PrivateEndpointConnectionsParentType; /** Samples for PrivateLinkResources ListByResource. */ public final class PrivateLinkResourcesListByResourceSamples { @@ -18,6 +18,14 @@ public final class PrivateLinkResourcesListByResourceSamples { */ public static void privateLinkResourcesListByResource( com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.privateLinkResources().listByResource("examplerg", "topics", "exampletopic1", null, null, Context.NONE); + manager + .privateLinkResources() + .listByResource( + "examplerg", + PrivateEndpointConnectionsParentType.TOPICS, + "exampletopic1", + null, + null, + com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/SystemTopicEventSubscriptionsCreateOrUpdateSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/SystemTopicEventSubscriptionsCreateOrUpdateSamples.java index fcd932af83bc..efb8be698e77 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/SystemTopicEventSubscriptionsCreateOrUpdateSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/SystemTopicEventSubscriptionsCreateOrUpdateSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.fluent.models.EventSubscriptionInner; import com.azure.resourcemanager.eventgrid.models.EventSubscriptionFilter; import com.azure.resourcemanager.eventgrid.models.WebhookEventSubscriptionDestination; @@ -35,6 +34,6 @@ public static void systemTopicEventSubscriptionsCreateOrUpdate( .withSubjectBeginsWith("ExamplePrefix") .withSubjectEndsWith("ExampleSuffix") .withIsSubjectCaseSensitive(false)), - Context.NONE); + com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/SystemTopicEventSubscriptionsDeleteSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/SystemTopicEventSubscriptionsDeleteSamples.java index 46721dc23f38..a2d3388a3e28 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/SystemTopicEventSubscriptionsDeleteSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/SystemTopicEventSubscriptionsDeleteSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for SystemTopicEventSubscriptions Delete. */ public final class SystemTopicEventSubscriptionsDeleteSamples { /* @@ -20,6 +18,6 @@ public static void systemTopicEventSubscriptionsDelete( com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .systemTopicEventSubscriptions() - .delete("examplerg", "exampleSystemTopic1", "examplesubscription1", Context.NONE); + .delete("examplerg", "exampleSystemTopic1", "examplesubscription1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/SystemTopicEventSubscriptionsGetDeliveryAttributesSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/SystemTopicEventSubscriptionsGetDeliveryAttributesSamples.java index 65fccff7c8af..c98748a10745 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/SystemTopicEventSubscriptionsGetDeliveryAttributesSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/SystemTopicEventSubscriptionsGetDeliveryAttributesSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for SystemTopicEventSubscriptions GetDeliveryAttributes. */ public final class SystemTopicEventSubscriptionsGetDeliveryAttributesSamples { /* @@ -21,6 +19,6 @@ public static void systemTopicEventSubscriptionsGetDeliveryAttributes( manager .systemTopicEventSubscriptions() .getDeliveryAttributesWithResponse( - "examplerg", "exampleSystemTopic1", "examplesubscription1", Context.NONE); + "examplerg", "exampleSystemTopic1", "examplesubscription1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/SystemTopicEventSubscriptionsGetFullUrlSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/SystemTopicEventSubscriptionsGetFullUrlSamples.java index 3dbdf0c2b2b2..2c17284eaa95 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/SystemTopicEventSubscriptionsGetFullUrlSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/SystemTopicEventSubscriptionsGetFullUrlSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for SystemTopicEventSubscriptions GetFullUrl. */ public final class SystemTopicEventSubscriptionsGetFullUrlSamples { /* @@ -20,6 +18,7 @@ public static void systemTopicEventSubscriptionsGetFullUrl( com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .systemTopicEventSubscriptions() - .getFullUrlWithResponse("examplerg", "exampleSystemTopic1", "examplesubscription1", Context.NONE); + .getFullUrlWithResponse( + "examplerg", "exampleSystemTopic1", "examplesubscription1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/SystemTopicEventSubscriptionsGetSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/SystemTopicEventSubscriptionsGetSamples.java index d7a6ea5b4bcc..6972fdce9aa5 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/SystemTopicEventSubscriptionsGetSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/SystemTopicEventSubscriptionsGetSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for SystemTopicEventSubscriptions Get. */ public final class SystemTopicEventSubscriptionsGetSamples { /* @@ -19,6 +17,7 @@ public final class SystemTopicEventSubscriptionsGetSamples { public static void systemTopicEventSubscriptionsGet(com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .systemTopicEventSubscriptions() - .getWithResponse("examplerg", "exampleSystemTopic1", "examplesubscription1", Context.NONE); + .getWithResponse( + "examplerg", "exampleSystemTopic1", "examplesubscription1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/SystemTopicEventSubscriptionsListBySystemTopicSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/SystemTopicEventSubscriptionsListBySystemTopicSamples.java index 7f02746a6ad6..3f39b6f99cc5 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/SystemTopicEventSubscriptionsListBySystemTopicSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/SystemTopicEventSubscriptionsListBySystemTopicSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for SystemTopicEventSubscriptions ListBySystemTopic. */ public final class SystemTopicEventSubscriptionsListBySystemTopicSamples { /* @@ -20,6 +18,6 @@ public static void systemTopicEventSubscriptionsListBySystemTopic( com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .systemTopicEventSubscriptions() - .listBySystemTopic("examplerg", "exampleSystemTopic1", null, null, Context.NONE); + .listBySystemTopic("examplerg", "exampleSystemTopic1", null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/SystemTopicEventSubscriptionsUpdateSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/SystemTopicEventSubscriptionsUpdateSamples.java index 5df7b5e68f61..d92df99ac7dd 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/SystemTopicEventSubscriptionsUpdateSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/SystemTopicEventSubscriptionsUpdateSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.models.EventSubscriptionFilter; import com.azure.resourcemanager.eventgrid.models.EventSubscriptionUpdateParameters; import com.azure.resourcemanager.eventgrid.models.WebhookEventSubscriptionDestination; @@ -37,6 +36,6 @@ public static void systemTopicEventSubscriptionsUpdate( .withSubjectEndsWith("newSuffix") .withIsSubjectCaseSensitive(true)) .withLabels(Arrays.asList("label1", "label2")), - Context.NONE); + com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/SystemTopicsDeleteSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/SystemTopicsDeleteSamples.java index 9255474b0fab..6cab6c5e3b35 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/SystemTopicsDeleteSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/SystemTopicsDeleteSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for SystemTopics Delete. */ public final class SystemTopicsDeleteSamples { /* @@ -17,6 +15,6 @@ public final class SystemTopicsDeleteSamples { * @param manager Entry point to EventGridManager. */ public static void systemTopicsDelete(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.systemTopics().delete("examplerg", "exampleSystemTopic1", Context.NONE); + manager.systemTopics().delete("examplerg", "exampleSystemTopic1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/SystemTopicsGetByResourceGroupSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/SystemTopicsGetByResourceGroupSamples.java index 3c0d56811c2b..b2a9896e7eba 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/SystemTopicsGetByResourceGroupSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/SystemTopicsGetByResourceGroupSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for SystemTopics GetByResourceGroup. */ public final class SystemTopicsGetByResourceGroupSamples { /* @@ -17,6 +15,8 @@ public final class SystemTopicsGetByResourceGroupSamples { * @param manager Entry point to EventGridManager. */ public static void systemTopicsGet(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.systemTopics().getByResourceGroupWithResponse("examplerg", "exampleSystemTopic2", Context.NONE); + manager + .systemTopics() + .getByResourceGroupWithResponse("examplerg", "exampleSystemTopic2", com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/SystemTopicsListByResourceGroupSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/SystemTopicsListByResourceGroupSamples.java index 18a6d97a20e4..ca43f4501163 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/SystemTopicsListByResourceGroupSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/SystemTopicsListByResourceGroupSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for SystemTopics ListByResourceGroup. */ public final class SystemTopicsListByResourceGroupSamples { /* @@ -17,6 +15,6 @@ public final class SystemTopicsListByResourceGroupSamples { * @param manager Entry point to EventGridManager. */ public static void systemTopicsListByResourceGroup(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.systemTopics().listByResourceGroup("examplerg", null, null, Context.NONE); + manager.systemTopics().listByResourceGroup("examplerg", null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/SystemTopicsListSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/SystemTopicsListSamples.java index 2224e6541a88..77d963b3768f 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/SystemTopicsListSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/SystemTopicsListSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for SystemTopics List. */ public final class SystemTopicsListSamples { /* @@ -17,6 +15,6 @@ public final class SystemTopicsListSamples { * @param manager Entry point to EventGridManager. */ public static void systemTopicsListBySubscription(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.systemTopics().list(null, null, Context.NONE); + manager.systemTopics().list(null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/SystemTopicsUpdateSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/SystemTopicsUpdateSamples.java index 5498028179ec..212cf9377844 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/SystemTopicsUpdateSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/SystemTopicsUpdateSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.models.SystemTopic; import java.util.HashMap; import java.util.Map; @@ -23,7 +22,7 @@ public static void systemTopicsUpdate(com.azure.resourcemanager.eventgrid.EventG SystemTopic resource = manager .systemTopics() - .getByResourceGroupWithResponse("examplerg", "exampleSystemTopic1", Context.NONE) + .getByResourceGroupWithResponse("examplerg", "exampleSystemTopic1", com.azure.core.util.Context.NONE) .getValue(); resource.update().withTags(mapOf("tag1", "value1", "tag2", "value2")).apply(); } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicEventSubscriptionsDeleteSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicEventSubscriptionsDeleteSamples.java index 25b1e5f5c396..2d8b27a1720e 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicEventSubscriptionsDeleteSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicEventSubscriptionsDeleteSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for TopicEventSubscriptions Delete. */ public final class TopicEventSubscriptionsDeleteSamples { /* @@ -17,6 +15,8 @@ public final class TopicEventSubscriptionsDeleteSamples { * @param manager Entry point to EventGridManager. */ public static void topicEventSubscriptionsDelete(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.topicEventSubscriptions().delete("examplerg", "exampleTopic1", "examplesubscription1", Context.NONE); + manager + .topicEventSubscriptions() + .delete("examplerg", "exampleTopic1", "examplesubscription1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicEventSubscriptionsGetDeliveryAttributesSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicEventSubscriptionsGetDeliveryAttributesSamples.java index e35b1c2c9c52..d6f236ef46f6 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicEventSubscriptionsGetDeliveryAttributesSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicEventSubscriptionsGetDeliveryAttributesSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for TopicEventSubscriptions GetDeliveryAttributes. */ public final class TopicEventSubscriptionsGetDeliveryAttributesSamples { /* @@ -20,6 +18,7 @@ public static void topicEventSubscriptionsGetDeliveryAttributes( com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .topicEventSubscriptions() - .getDeliveryAttributesWithResponse("examplerg", "exampleTopic1", "examplesubscription1", Context.NONE); + .getDeliveryAttributesWithResponse( + "examplerg", "exampleTopic1", "examplesubscription1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicEventSubscriptionsGetFullUrlSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicEventSubscriptionsGetFullUrlSamples.java index 485af3d84e2f..b69e458bd201 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicEventSubscriptionsGetFullUrlSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicEventSubscriptionsGetFullUrlSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for TopicEventSubscriptions GetFullUrl. */ public final class TopicEventSubscriptionsGetFullUrlSamples { /* @@ -19,6 +17,7 @@ public final class TopicEventSubscriptionsGetFullUrlSamples { public static void topicEventSubscriptionsGetFullUrl(com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .topicEventSubscriptions() - .getFullUrlWithResponse("examplerg", "exampleTopic1", "examplesubscription1", Context.NONE); + .getFullUrlWithResponse( + "examplerg", "exampleTopic1", "examplesubscription1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicEventSubscriptionsGetSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicEventSubscriptionsGetSamples.java index a842ae6f6b36..1f004d1387be 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicEventSubscriptionsGetSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicEventSubscriptionsGetSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for TopicEventSubscriptions Get. */ public final class TopicEventSubscriptionsGetSamples { /* @@ -19,6 +17,6 @@ public final class TopicEventSubscriptionsGetSamples { public static void topicEventSubscriptionsGet(com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .topicEventSubscriptions() - .getWithResponse("examplerg", "exampleTopic1", "examplesubscription1", Context.NONE); + .getWithResponse("examplerg", "exampleTopic1", "examplesubscription1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicEventSubscriptionsListSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicEventSubscriptionsListSamples.java index ecdd66ffd6be..03349de78691 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicEventSubscriptionsListSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicEventSubscriptionsListSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for TopicEventSubscriptions List. */ public final class TopicEventSubscriptionsListSamples { /* @@ -17,6 +15,8 @@ public final class TopicEventSubscriptionsListSamples { * @param manager Entry point to EventGridManager. */ public static void topicEventSubscriptionsList(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.topicEventSubscriptions().list("examplerg", "exampleTopic1", null, null, Context.NONE); + manager + .topicEventSubscriptions() + .list("examplerg", "exampleTopic1", null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicEventSubscriptionsUpdateSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicEventSubscriptionsUpdateSamples.java index 764e05c7a7dc..484ccb801938 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicEventSubscriptionsUpdateSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicEventSubscriptionsUpdateSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.models.EventSubscription; import com.azure.resourcemanager.eventgrid.models.EventSubscriptionFilter; import com.azure.resourcemanager.eventgrid.models.WebhookEventSubscriptionDestination; @@ -24,7 +23,8 @@ public static void topicEventSubscriptionsUpdate(com.azure.resourcemanager.event EventSubscription resource = manager .topicEventSubscriptions() - .getWithResponse("examplerg", "exampleTopic1", "exampleEventSubscriptionName1", Context.NONE) + .getWithResponse( + "examplerg", "exampleTopic1", "exampleEventSubscriptionName1", com.azure.core.util.Context.NONE) .getValue(); resource .update() diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicTypesGetSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicTypesGetSamples.java index 6e7490842404..fd7963113375 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicTypesGetSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicTypesGetSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for TopicTypes Get. */ public final class TopicTypesGetSamples { /* @@ -17,6 +15,6 @@ public final class TopicTypesGetSamples { * @param manager Entry point to EventGridManager. */ public static void topicTypesGet(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.topicTypes().getWithResponse("Microsoft.Storage.StorageAccounts", Context.NONE); + manager.topicTypes().getWithResponse("Microsoft.Storage.StorageAccounts", com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicTypesListEventTypesSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicTypesListEventTypesSamples.java index f05d84c7c64b..6bed7db264ad 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicTypesListEventTypesSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicTypesListEventTypesSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for TopicTypes ListEventTypes. */ public final class TopicTypesListEventTypesSamples { /* @@ -17,6 +15,6 @@ public final class TopicTypesListEventTypesSamples { * @param manager Entry point to EventGridManager. */ public static void topicTypesListEventTypes(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.topicTypes().listEventTypes("Microsoft.Storage.StorageAccounts", Context.NONE); + manager.topicTypes().listEventTypes("Microsoft.Storage.StorageAccounts", com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicTypesListSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicTypesListSamples.java index c0d07ed8608e..99de36f9e47b 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicTypesListSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicTypesListSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for TopicTypes List. */ public final class TopicTypesListSamples { /* @@ -17,6 +15,6 @@ public final class TopicTypesListSamples { * @param manager Entry point to EventGridManager. */ public static void topicTypesList(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.topicTypes().list(Context.NONE); + manager.topicTypes().list(com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicsDeleteSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicsDeleteSamples.java index 7f431683afb8..8616dc9fa744 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicsDeleteSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicsDeleteSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for Topics Delete. */ public final class TopicsDeleteSamples { /* @@ -17,6 +15,6 @@ public final class TopicsDeleteSamples { * @param manager Entry point to EventGridManager. */ public static void topicsDelete(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.topics().delete("examplerg", "exampletopic1", Context.NONE); + manager.topics().delete("examplerg", "exampletopic1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicsGetByResourceGroupSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicsGetByResourceGroupSamples.java index b5a6f19e38eb..1b7d6fd8e947 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicsGetByResourceGroupSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicsGetByResourceGroupSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for Topics GetByResourceGroup. */ public final class TopicsGetByResourceGroupSamples { /* @@ -17,6 +15,6 @@ public final class TopicsGetByResourceGroupSamples { * @param manager Entry point to EventGridManager. */ public static void topicsGet(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.topics().getByResourceGroupWithResponse("examplerg", "exampletopic2", Context.NONE); + manager.topics().getByResourceGroupWithResponse("examplerg", "exampletopic2", com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicsListByResourceGroupSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicsListByResourceGroupSamples.java index b15b23aa3292..704ba3633865 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicsListByResourceGroupSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicsListByResourceGroupSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for Topics ListByResourceGroup. */ public final class TopicsListByResourceGroupSamples { /* @@ -17,6 +15,6 @@ public final class TopicsListByResourceGroupSamples { * @param manager Entry point to EventGridManager. */ public static void topicsListByResourceGroup(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.topics().listByResourceGroup("examplerg", null, null, Context.NONE); + manager.topics().listByResourceGroup("examplerg", null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicsListEventTypesSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicsListEventTypesSamples.java index 43add6ea6a6d..b170f426315d 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicsListEventTypesSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicsListEventTypesSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for Topics ListEventTypes. */ public final class TopicsListEventTypesSamples { /* @@ -19,6 +17,11 @@ public final class TopicsListEventTypesSamples { public static void topicsListEventTypes(com.azure.resourcemanager.eventgrid.EventGridManager manager) { manager .topics() - .listEventTypes("examplerg", "Microsoft.Storage", "storageAccounts", "ExampleStorageAccount", Context.NONE); + .listEventTypes( + "examplerg", + "Microsoft.Storage", + "storageAccounts", + "ExampleStorageAccount", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicsListSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicsListSamples.java index 682bd301cdbe..f513fcc1f890 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicsListSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicsListSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for Topics List. */ public final class TopicsListSamples { /* @@ -17,6 +15,6 @@ public final class TopicsListSamples { * @param manager Entry point to EventGridManager. */ public static void topicsListBySubscription(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.topics().list(null, null, Context.NONE); + manager.topics().list(null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicsListSharedAccessKeysSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicsListSharedAccessKeysSamples.java index b6d5f9932c67..bb8a995a7a22 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicsListSharedAccessKeysSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicsListSharedAccessKeysSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for Topics ListSharedAccessKeys. */ public final class TopicsListSharedAccessKeysSamples { /* @@ -17,6 +15,8 @@ public final class TopicsListSharedAccessKeysSamples { * @param manager Entry point to EventGridManager. */ public static void topicsListSharedAccessKeys(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.topics().listSharedAccessKeysWithResponse("examplerg", "exampletopic2", Context.NONE); + manager + .topics() + .listSharedAccessKeysWithResponse("examplerg", "exampletopic2", com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicsRegenerateKeySamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicsRegenerateKeySamples.java index 4adc07406bf0..1504ae725ada 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicsRegenerateKeySamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicsRegenerateKeySamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.models.TopicRegenerateKeyRequest; /** Samples for Topics RegenerateKey. */ @@ -21,6 +20,9 @@ public static void topicsRegenerateKey(com.azure.resourcemanager.eventgrid.Event manager .topics() .regenerateKey( - "examplerg", "exampletopic2", new TopicRegenerateKeyRequest().withKeyName("key1"), Context.NONE); + "examplerg", + "exampletopic2", + new TopicRegenerateKeyRequest().withKeyName("fakeTokenPlaceholder"), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicsUpdateSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicsUpdateSamples.java index 433f2cfb244e..c8c54fa43806 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicsUpdateSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/TopicsUpdateSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.eventgrid.models.InboundIpRule; import com.azure.resourcemanager.eventgrid.models.IpActionType; import com.azure.resourcemanager.eventgrid.models.PublicNetworkAccess; @@ -25,7 +24,10 @@ public final class TopicsUpdateSamples { */ public static void topicsUpdate(com.azure.resourcemanager.eventgrid.EventGridManager manager) { Topic resource = - manager.topics().getByResourceGroupWithResponse("examplerg", "exampletopic1", Context.NONE).getValue(); + manager + .topics() + .getByResourceGroupWithResponse("examplerg", "exampletopic1", com.azure.core.util.Context.NONE) + .getValue(); resource .update() .withTags(mapOf("tag1", "value1", "tag2", "value2")) diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/VerifiedPartnersGetSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/VerifiedPartnersGetSamples.java index 9f37aea34e06..a3bad6a67d9e 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/VerifiedPartnersGetSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/VerifiedPartnersGetSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for VerifiedPartners Get. */ public final class VerifiedPartnersGetSamples { /* @@ -17,6 +15,6 @@ public final class VerifiedPartnersGetSamples { * @param manager Entry point to EventGridManager. */ public static void verifiedPartnersGet(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.verifiedPartners().getWithResponse("Contoso.Finance", Context.NONE); + manager.verifiedPartners().getWithResponse("Contoso.Finance", com.azure.core.util.Context.NONE); } } diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/VerifiedPartnersListSamples.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/VerifiedPartnersListSamples.java index 05cbe202c6bd..fd5994f28cc9 100644 --- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/VerifiedPartnersListSamples.java +++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/samples/java/com/azure/resourcemanager/eventgrid/generated/VerifiedPartnersListSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.eventgrid.generated; -import com.azure.core.util.Context; - /** Samples for VerifiedPartners List. */ public final class VerifiedPartnersListSamples { /* @@ -17,6 +15,6 @@ public final class VerifiedPartnersListSamples { * @param manager Entry point to EventGridManager. */ public static void verifiedPartnersList(com.azure.resourcemanager.eventgrid.EventGridManager manager) { - manager.verifiedPartners().list(null, null, Context.NONE); + manager.verifiedPartners().list(null, null, com.azure.core.util.Context.NONE); } }