diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/CHANGELOG.md b/sdk/eventgrid/azure-resourcemanager-eventgrid/CHANGELOG.md
index b363935eebaf..6bd7d87e1d09 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/CHANGELOG.md
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/CHANGELOG.md
@@ -1,14 +1,875 @@
# Release History
-## 1.2.0-beta.8 (Unreleased)
+## 1.0.0-beta.1 (2025-02-08)
-### Features Added
+- 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-2025-02. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Breaking Changes
-### Bugs Fixed
+#### `models.TopicTypePropertiesSupportedScopesForSourceItem` was removed
+
+#### `models.EventSubscription$DefinitionStages` was modified
+
+* `withExistingScope(java.lang.String)` was removed in stage 1
+
+#### `models.EventSubscription$Definition` was modified
+
+* `withExistingScope(java.lang.String)` was removed
+
+#### `models.EventSubscriptions` was modified
+
+* `deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was removed
+* `getById(java.lang.String)` was removed
+* `define(java.lang.String)` was removed
+* `deleteById(java.lang.String)` was removed
+* `getByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was removed
+
+### Features Added
+
+* `models.PermissionBinding$DefinitionStages` was added
+
+* `models.CaCertificates` was added
+
+* `models.Subscription$Definition` was added
+
+* `models.Namespace$UpdateStages` was added
+
+* `models.SkuName` was added
+
+* `models.DeliveryMode` was added
+
+* `models.Channels` was added
+
+* `models.PartnerNamespaceSharedAccessKeys` was added
+
+* `models.StringEndsWithFilter` was added
+
+* `models.Namespaces` was added
+
+* `models.InlineEventProperties` was added
+
+* `models.Channel` was added
+
+* `models.PartnerNamespace` was added
+
+* `models.PartnerConfiguration` was added
+
+* `models.Channel$UpdateStages` was added
+
+* `models.PartnerRegistration$UpdateStages` was added
+
+* `models.BoolEqualsFilter` was added
+
+* `models.UpdateTopicSpacesConfigurationInfo` was added
+
+* `models.DeliveryConfiguration` was added
+
+* `models.PartnerConfigurationUpdateParameters` was added
+
+* `models.TopicSpace$Update` was added
+
+* `models.CaCertificateProvisioningState` was added
+
+* `models.MonitorAlertSeverity` was added
+
+* `models.PermissionBinding$UpdateStages` was added
+
+* `models.UpdateTopicsConfigurationInfo` was added
+
+* `models.StringNotEndsWithFilter` was added
+
+* `models.PermissionType` was added
+
+* `models.FilterOperatorType` was added
+
+* `models.PermissionBindingProvisioningState` was added
+
+* `models.NumberLessThanFilter` was added
+
+* `models.StringNotBeginsWithFilter` was added
+
+* `models.PartnerTopic$Definition` was added
+
+* `models.DataResidencyBoundary` was added
+
+* `models.StringContainsFilter` was added
+
+* `models.Filter` was added
+
+* `models.SubscriptionsListResult` was added
+
+* `models.NamespaceTopicsListResult` was added
+
+* `models.NamespaceTopic$Update` was added
+
+* `models.StringNotInFilter` was added
+
+* `models.CaCertificate$Definition` was added
+
+* `models.CaCertificate$DefinitionStages` was added
+
+* `models.TopicSpaces` was added
+
+* `models.Namespace` was added
+
+* `models.ClientCertificateAuthentication` was added
+
+* `models.Client$Update` was added
+
+* `models.RoutingEnrichments` was added
+
+* `models.ClientGroups` was added
+
+* `models.NamespaceTopics` was added
+
+* `models.NamespaceTopicEventSubscriptions` was added
+
+* `models.NumberNotInFilter` was added
+
+* `models.TopicsConfiguration` was added
+
+* `models.PartnerConfigurations` was added
+
+* `models.PartnerRegistration$Definition` was added
+
+* `models.StringBeginsWithFilter` was added
+
+* `models.VerifiedPartners` was added
+
+* `models.TopicSpace` was added
+
+* `models.NamespaceSharedAccessKeys` was added
+
+* `models.PartnerTopicActivationState` was added
+
+* `models.TopicSpacesListResult` was added
+
+* `models.ClientGroup` was added
+
+* `models.PartnerRegistrationProvisioningState` was added
+
+* `models.TopicSpace$Definition` was added
+
+* `models.StringInFilter` was added
+
+* `models.CaCertificate$Update` was added
+
+* `models.TopicSpacesConfiguration` was added
+
+* `models.DomainEventSubscriptions` was added
+
+* `models.PartnerTopics` was added
+
+* `models.ChannelProvisioningState` was added
+
+* `models.NamespaceSku` was added
+
+* `models.ChannelsListResult` was added
+
+* `models.DeliverySchema` was added
+
+* `models.NumberInFilter` was added
+
+* `models.CaCertificate` was added
+
+* `models.PartnerRegistration` was added
+
+* `models.TopicSpaceProvisioningState` was added
+
+* `models.PartnerTopicRoutingMode` was added
+
+* `models.ClientGroupProvisioningState` was added
+
+* `models.TlsVersion` was added
+
+* `models.NumberLessThanOrEqualsFilter` was added
+
+* `models.PartnerTopicInfo` was added
+
+* `models.PartnerNamespace$DefinitionStages` was added
+
+* `models.Channel$Update` was added
+
+* `models.CaCertificatesListResult` was added
+
+* `models.StaticStringRoutingEnrichment` was added
+
+* `models.PartnerTopicProvisioningState` was added
+
+* `models.CustomDomainConfiguration` was added
+
+* `models.StringNotContainsFilter` was added
+
+* `models.PartnerTopic` was added
+
+* `models.EventDefinitionKind` was added
+
+* `models.PartnerNamespace$Definition` was added
+
+* `models.EventInputSchema` was added
+
+* `models.PartnerNamespaceRegenerateKeyRequest` was added
+
+* `models.NamespaceTopicProvisioningState` was added
+
+* `models.PartnerAuthorization` was added
+
+* `models.StaticRoutingEnrichmentType` was added
+
+* `models.VerifiedPartnersListResult` was added
+
+* `models.PartnerConfigurationProvisioningState` was added
+
+* `models.Subscription$Update` was added
+
+* `models.CaCertificate$UpdateStages` was added
+
+* `models.NamespaceTopic$Definition` was added
+
+* `models.NumberGreaterThanOrEqualsFilter` was added
+
+* `models.Clients` was added
+
+* `models.Subscription$DefinitionStages` was added
+
+* `models.CustomDomainValidationState` was added
+
+* `models.NamespacesListResult` was added
+
+* `models.PartnerNamespaces` was added
+
+* `models.TopicEventSubscriptions` was added
+
+* `models.DynamicRoutingEnrichment` was added
+
+* `models.Client` was added
+
+* `models.DomainTopicEventSubscriptions` was added
+
+* `models.TopicSpace$DefinitionStages` was added
+
+* `models.PermissionBindings` was added
+
+* `models.PartnerConfigurationsListResult` was added
+
+* `models.PartnerUpdateTopicInfo` was added
+
+* `models.PermissionBinding` was added
+
+* `models.NamespaceTopic` was added
+
+* `models.IsNotNullFilter` was added
+
+* `models.Namespace$Definition` was added
+
+* `models.ClientState` was added
+
+* `models.QueueInfo` was added
+
+* `models.PartnerRegistration$Update` was added
+
+* `models.PartnerTopicUpdateParameters` was added
+
+* `models.PushInfo` was added
+
+* `models.ClientProvisioningState` was added
+
+* `models.PartnerDetails` was added
+
+* `models.FiltersConfiguration` was added
+
+* `models.ClientGroup$UpdateStages` was added
+
+* `models.PermissionBinding$Update` was added
+
+* `models.RoutingIdentityType` was added
+
+* `models.CustomDomainOwnershipValidationResult` was added
+
+* `models.SubscriptionFullUrl` was added
+
+* `models.Namespace$Update` was added
+
+* `models.PartnerRegistration$DefinitionStages` was added
+
+* `models.Namespace$DefinitionStages` was added
+
+* `models.PublisherType` was added
+
+* `models.SubscriptionProvisioningState` was added
+
+* `models.PartnerTopicEventSubscriptions` was added
+
+* `models.NamespaceUpdateParameters` was added
+
+* `models.PartnerNamespace$Update` was added
+
+* `models.NumberGreaterThanFilter` was added
+
+* `models.NamespaceProvisioningState` was added
+
+* `models.TopicTypeAdditionalEnforcedPermission` was added
+
+* `models.PermissionBindingsListResult` was added
+
+* `models.ClientCertificateValidationScheme` was added
+
+* `models.ClientsListResult` was added
+
+* `models.MonitorAlertEventSubscriptionDestination` was added
+
+* `models.PartnerTopic$Update` was added
+
+* `models.EventTypeInfo` was added
+
+* `models.Subscription` was added
+
+* `models.PartnerNamespacesListResult` was added
+
+* `models.TopicSpace$UpdateStages` was added
+
+* `models.ClientGroupsListResult` was added
+
+* `models.Client$UpdateStages` was added
+
+* `models.NamespaceTopic$DefinitionStages` was added
+
+* `models.Client$DefinitionStages` was added
+
+* `models.Client$Definition` was added
+
+* `models.RoutingIdentityInfo` was added
+
+* `models.PartnerTopic$DefinitionStages` was added
+
+* `models.ReadinessState` was added
+
+* `models.NamespaceTopicEventSubscriptionDestination` was added
+
+* `models.ClientGroup$Update` was added
+
+* `models.PartnerNamespaceUpdateParameters` was added
+
+* `models.Channel$Definition` was added
+
+* `models.TopicSpacesConfigurationState` was added
+
+* `models.PartnerTopic$UpdateStages` was added
+
+* `models.ClientGroup$Definition` was added
+
+* `models.SubscriptionUpdateParameters` was added
+
+* `models.NamespaceTopic$UpdateStages` was added
+
+* `models.NamespaceTopicUpdateParameters` was added
+
+* `models.PartnerRegistrationsListResult` was added
+
+* `models.PartnerRegistrationUpdateParameters` was added
+
+* `models.Channel$DefinitionStages` was added
+
+* `models.VerifiedPartnerProvisioningState` was added
+
+* `models.CustomDomainIdentity` was added
+
+* `models.TopicTypeSourceScope` was added
+
+* `models.StaticRoutingEnrichment` was added
+
+* `models.CustomDomainIdentityType` was added
+
+* `models.NumberInRangeFilter` was added
+
+* `models.IsNullOrUndefinedFilter` was added
+
+* `models.Subscription$UpdateStages` was added
+
+* `models.ChannelType` was added
+
+* `models.ChannelUpdateParameters` was added
+
+* `models.PermissionBinding$Definition` was added
+
+* `models.NamespaceRegenerateKeyRequest` was added
+
+* `models.PartnerNamespaceProvisioningState` was added
+
+* `models.PartnerTopicsListResult` was added
+
+* `models.NumberNotInRangeFilter` was added
+
+* `models.PartnerRegistrations` was added
+
+* `models.VerifiedPartner` was added
+
+* `models.PartnerNamespace$UpdateStages` was added
+
+* `models.Partner` was added
+
+* `models.ClientGroup$DefinitionStages` was added
+
+#### `models.EventSubscriptionsListResult` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.PrivateEndpoint` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.SystemTopic` was modified
+
+* `resourceGroupName()` was added
+
+#### `models.StringNotBeginsWithAdvancedFilter` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `operatorType()` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.ConnectionState` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.WebhookEventSubscriptionDestination` was modified
+
+* `minimumTlsVersionAllowed()` was added
+* `endpointType()` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+* `withMinimumTlsVersionAllowed(models.TlsVersion)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.StringEndsWithAdvancedFilter` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `operatorType()` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.NumberInRangeAdvancedFilter` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `operatorType()` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.IsNotNullAdvancedFilter` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+* `operatorType()` was added
+
+#### `models.EventSubscription$Definition` was modified
+
+* `withExistingTopic(java.lang.String,java.lang.String)` was added
+
+#### `models.ServiceBusQueueEventSubscriptionDestination` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `endpointType()` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.PrivateEndpointConnectionListResult` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.UserIdentityProperties` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.TopicUpdateParameters` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `withMinimumTlsVersionAllowed(models.TlsVersion)` was added
+* `eventTypeInfo()` was added
+* `withEventTypeInfo(models.EventTypeInfo)` was added
+* `dataResidencyBoundary()` was added
+* `withDataResidencyBoundary(models.DataResidencyBoundary)` was added
+* `minimumTlsVersionAllowed()` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.IsNullOrUndefinedAdvancedFilter` was modified
+
+* `operatorType()` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.OperationsListResult` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.Domain$Update` was modified
+
+* `withDataResidencyBoundary(models.DataResidencyBoundary)` was added
+* `withMinimumTlsVersionAllowed(models.TlsVersion)` was added
+* `withEventTypeInfo(models.EventTypeInfo)` was added
+
+#### `models.DomainsListResult` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.Topic$Definition` was modified
+
+* `withEventTypeInfo(models.EventTypeInfo)` was added
+* `withDataResidencyBoundary(models.DataResidencyBoundary)` was added
+* `withMinimumTlsVersionAllowed(models.TlsVersion)` was added
+
+#### `models.StringBeginsWithAdvancedFilter` was modified
+
+* `operatorType()` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.DeliveryAttributeMapping` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+* `type()` was added
+
+#### `models.DomainUpdateParameters` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `minimumTlsVersionAllowed()` was added
+* `dataResidencyBoundary()` was added
+* `withEventTypeInfo(models.EventTypeInfo)` was added
+* `eventTypeInfo()` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+* `withDataResidencyBoundary(models.DataResidencyBoundary)` was added
+* `withMinimumTlsVersionAllowed(models.TlsVersion)` was added
+
+#### `models.StringNotEndsWithAdvancedFilter` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `operatorType()` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.NumberGreaterThanAdvancedFilter` was modified
+
+* `operatorType()` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.BoolEqualsAdvancedFilter` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+* `operatorType()` was added
+
+#### `models.StringNotInAdvancedFilter` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+* `operatorType()` was added
+
+#### `models.TopicsListResult` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.Topic$Update` was modified
+
+* `withDataResidencyBoundary(models.DataResidencyBoundary)` was added
+* `withMinimumTlsVersionAllowed(models.TlsVersion)` was added
+* `withEventTypeInfo(models.EventTypeInfo)` was added
+
+#### `models.NumberLessThanAdvancedFilter` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `operatorType()` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.StaticDeliveryAttributeMapping` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+* `type()` was added
+
+#### `models.EventSubscriptionDestination` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `endpointType()` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.DomainTopicsListResult` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.DeliveryWithResourceIdentity` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.EventSubscription` was modified
+
+* `resourceGroupName()` was added
+
+#### `models.AzureFunctionEventSubscriptionDestination` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `endpointType()` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.Domain` was modified
+
+* `dataResidencyBoundary()` was added
+* `minimumTlsVersionAllowed()` was added
+* `eventTypeInfo()` was added
+* `resourceGroupName()` was added
+
+#### `models.DeadLetterDestination` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+* `endpointType()` was added
+
+#### `models.DynamicDeliveryAttributeMapping` was modified
+
+* `type()` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.StorageBlobDeadLetterDestination` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `endpointType()` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.JsonField` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.EventSubscriptions` was modified
+
+* `update(java.lang.String,java.lang.String,models.EventSubscriptionUpdateParameters,com.azure.core.util.Context)` was added
+* `update(java.lang.String,java.lang.String,models.EventSubscriptionUpdateParameters)` was added
+* `createOrUpdate(java.lang.String,java.lang.String,fluent.models.EventSubscriptionInner)` was added
+* `createOrUpdate(java.lang.String,java.lang.String,fluent.models.EventSubscriptionInner,com.azure.core.util.Context)` was added
+
+#### `EventGridManager` was modified
+
+* `caCertificates()` was added
+* `namespaceTopicEventSubscriptions()` was added
+* `domainTopicEventSubscriptions()` was added
+* `clients()` was added
+* `partnerTopicEventSubscriptions()` was added
+* `permissionBindings()` was added
+* `domainEventSubscriptions()` was added
+* `authenticate(com.azure.core.http.HttpPipeline,com.azure.core.management.profile.AzureProfile)` was added
+* `partnerNamespaces()` was added
+* `clientGroups()` was added
+* `partnerRegistrations()` was added
+* `namespaceTopics()` was added
+* `partnerConfigurations()` was added
+* `namespaces()` was added
+* `topicEventSubscriptions()` was added
+* `verifiedPartners()` was added
+* `partnerTopics()` was added
+* `topicSpaces()` was added
+* `channels()` was added
+
+#### `models.RetryPolicy` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.JsonInputSchemaMapping` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `inputSchemaMappingType()` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.EventTypesListResult` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.EventSubscriptionIdentity` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.Topic` was modified
+
+* `resourceGroupName()` was added
+* `dataResidencyBoundary()` was added
+* `minimumTlsVersionAllowed()` was added
+* `eventTypeInfo()` was added
+
+#### `models.EventSubscriptionFilter` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.InboundIpRule` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.DeadLetterWithResourceIdentity` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.PrivateLinkResourcesListResult` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.StorageQueueEventSubscriptionDestination` was modified
+
+* `endpointType()` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.OperationInfo` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.StringInAdvancedFilter` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `operatorType()` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.StringContainsAdvancedFilter` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `operatorType()` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.DomainRegenerateKeyRequest` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.NumberNotInRangeAdvancedFilter` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `operatorType()` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.IdentityInfo` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.NumberNotInAdvancedFilter` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `operatorType()` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.ServiceBusTopicEventSubscriptionDestination` was modified
+
+* `endpointType()` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.SystemTopicUpdateParameters` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.AdvancedFilter` was modified
+
+* `operatorType()` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.Operation` was modified
+
+* `isDataAction()` was added
+
+#### `models.TopicRegenerateKeyRequest` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.SystemTopicsListResult` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.NumberGreaterThanOrEqualsAdvancedFilter` was modified
+
+* `operatorType()` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.HybridConnectionEventSubscriptionDestination` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `endpointType()` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.InputSchemaMapping` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+* `inputSchemaMappingType()` was added
+
+#### `models.TopicTypeInfo` was modified
+
+* `areRegionalAndGlobalSourcesSupported()` was added
+* `additionalEnforcedPermissions()` was added
+
+#### `models.StringNotContainsAdvancedFilter` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `operatorType()` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.EventHubEventSubscriptionDestination` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+* `endpointType()` was added
+
+#### `models.TopicTypesListResult` was modified
+
+* `toJson(com.azure.json.JsonWriter)` was added
+* `fromJson(com.azure.json.JsonReader)` was added
+
+#### `models.NumberLessThanOrEqualsAdvancedFilter` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+* `operatorType()` was added
+
+#### `models.Domain$Definition` was modified
+
+* `withEventTypeInfo(models.EventTypeInfo)` was added
+* `withMinimumTlsVersionAllowed(models.TlsVersion)` was added
+* `withDataResidencyBoundary(models.DataResidencyBoundary)` was added
+
+#### `models.JsonFieldWithDefault` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `EventGridManager$Configurable` was modified
+
+* `withRetryOptions(com.azure.core.http.policy.RetryOptions)` was added
+
+#### `models.NumberInAdvancedFilter` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `operatorType()` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.EventSubscriptionUpdateParameters` was modified
-### Other Changes
+* `fromJson(com.azure.json.JsonReader)` was added
+* `toJson(com.azure.json.JsonWriter)` was added
## 1.2.0-beta.7 (2024-12-04)
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/README.md b/sdk/eventgrid/azure-resourcemanager-eventgrid/README.md
index 04787cc2ac2e..a5609bd0f140 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/README.md
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/README.md
@@ -2,7 +2,7 @@
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-2024-06-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+This package contains Microsoft Azure SDK for EventGrid Management SDK. Azure EventGrid Management Client. Package tag package-2025-02. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-eventgrid
- 1.2.0-beta.7
+ 1.2.0-beta.8
```
[//]: # ({x-version-update-end})
@@ -101,4 +101,4 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
[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 d9e23efe0d8b..bb996d209b7d 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/SAMPLE.md
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/SAMPLE.md
@@ -124,12 +124,6 @@
- [Update](#namespaces_update)
- [ValidateCustomDomainOwnership](#namespaces_validatecustomdomainownership)
-## NetworkSecurityPerimeterConfigurations
-
-- [Get](#networksecurityperimeterconfigurations_get)
-- [List](#networksecurityperimeterconfigurations_list)
-- [Reconcile](#networksecurityperimeterconfigurations_reconcile)
-
## Operations
- [List](#operations_list)
@@ -145,16 +139,6 @@
- [UnauthorizePartner](#partnerconfigurations_unauthorizepartner)
- [Update](#partnerconfigurations_update)
-## PartnerDestinations
-
-- [Activate](#partnerdestinations_activate)
-- [CreateOrUpdate](#partnerdestinations_createorupdate)
-- [Delete](#partnerdestinations_delete)
-- [GetByResourceGroup](#partnerdestinations_getbyresourcegroup)
-- [List](#partnerdestinations_list)
-- [ListByResourceGroup](#partnerdestinations_listbyresourcegroup)
-- [Update](#partnerdestinations_update)
-
## PartnerNamespaces
- [CreateOrUpdate](#partnernamespaces_createorupdate)
@@ -281,8 +265,7 @@
*/
public final class CaCertificatesCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* CaCertificates_CreateOrUpdate.json
*/
/**
@@ -310,8 +293,8 @@ public final class CaCertificatesCreateOrUpdateSamples {
public final class CaCertificatesDeleteSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * CaCertificates_Delete.json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/CaCertificates_Delete.
+ * json
*/
/**
* Sample code: CaCertificates_Delete.
@@ -335,8 +318,7 @@ public final class CaCertificatesDeleteSamples {
public final class CaCertificatesGetSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * CaCertificates_Get.json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/CaCertificates_Get.json
*/
/**
* Sample code: CaCertificates_Get.
@@ -359,8 +341,7 @@ public final class CaCertificatesGetSamples {
*/
public final class CaCertificatesListByNamespaceSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* CaCertificates_ListByNamespace.json
*/
/**
@@ -388,8 +369,8 @@ import java.time.OffsetDateTime;
public final class ChannelsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * Channels_CreateOrUpdate.json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/Channels_CreateOrUpdate.
+ * json
*/
/**
* Sample code: Channels_CreateOrUpdate.
@@ -401,7 +382,7 @@ public final class ChannelsCreateOrUpdateSamples {
.define("exampleChannelName1")
.withExistingPartnerNamespace("examplerg", "examplePartnerNamespaceName1")
.withChannelType(ChannelType.PARTNER_TOPIC)
- .withPartnerTopicInfo(new PartnerTopicInfo().withAzureSubscriptionId("8f6b6269-84f2-4d09-9e31-1127efcd1e40")
+ .withPartnerTopicInfo(new PartnerTopicInfo().withAzureSubscriptionId("5b4b650e-28b9-4790-b3ab-ddbd88d727c4")
.withResourceGroupName("examplerg2")
.withName("examplePartnerTopic1")
.withSource("ContosoCorp.Accounts.User1"))
@@ -421,8 +402,7 @@ public final class ChannelsCreateOrUpdateSamples {
public final class ChannelsDeleteSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Channels_Delete.
- * json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/Channels_Delete.json
*/
/**
* Sample code: Channels_Delete.
@@ -446,8 +426,7 @@ public final class ChannelsDeleteSamples {
public final class ChannelsGetSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Channels_Get.
- * json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/Channels_Get.json
*/
/**
* Sample code: Channels_Get.
@@ -471,8 +450,7 @@ public final class ChannelsGetSamples {
public final class ChannelsGetFullUrlSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * Channels_GetFullUrl.json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/Channels_GetFullUrl.json
*/
/**
* Sample code: Channels_GetFullUrl.
@@ -495,8 +473,7 @@ public final class ChannelsGetFullUrlSamples {
*/
public final class ChannelsListByPartnerNamespaceSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* Channels_ListByPartnerNamespace.json
*/
/**
@@ -524,8 +501,7 @@ import java.time.OffsetDateTime;
public final class ChannelsUpdateSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Channels_Update.
- * json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/Channels_Update.json
*/
/**
* Sample code: Channels_Update.
@@ -550,8 +526,7 @@ public final class ChannelsUpdateSamples {
*/
public final class ClientGroupsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* ClientGroups_CreateOrUpdate.json
*/
/**
@@ -579,8 +554,7 @@ public final class ClientGroupsCreateOrUpdateSamples {
public final class ClientGroupsDeleteSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * ClientGroups_Delete.json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/ClientGroups_Delete.json
*/
/**
* Sample code: ClientGroups_Delete.
@@ -603,8 +577,7 @@ public final class ClientGroupsDeleteSamples {
public final class ClientGroupsGetSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/ClientGroups_Get
- * .json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/ClientGroups_Get.json
*/
/**
* Sample code: ClientGroups_Get.
@@ -627,8 +600,7 @@ public final class ClientGroupsGetSamples {
*/
public final class ClientGroupsListByNamespaceSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* ClientGroups_ListByNamespace.json
*/
/**
@@ -661,8 +633,8 @@ import java.util.Map;
public final class ClientsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * Clients_CreateOrUpdate.json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/Clients_CreateOrUpdate.
+ * json
*/
/**
* Sample code: Clients_CreateOrUpdate.
@@ -708,8 +680,7 @@ public final class ClientsCreateOrUpdateSamples {
public final class ClientsDeleteSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Clients_Delete.
- * json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/Clients_Delete.json
*/
/**
* Sample code: Clients_Delete.
@@ -732,7 +703,7 @@ public final class ClientsDeleteSamples {
public final class ClientsGetSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Clients_Get.json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/Clients_Get.json
*/
/**
* Sample code: Clients_Get.
@@ -756,8 +727,8 @@ public final class ClientsGetSamples {
public final class ClientsListByNamespaceSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * Clients_ListByNamespace.json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/Clients_ListByNamespace.
+ * json
*/
/**
* Sample code: Clients_ListByNamespace.
@@ -782,8 +753,7 @@ import com.azure.resourcemanager.eventgrid.models.WebhookEventSubscriptionDestin
*/
public final class DomainEventSubscriptionsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* DomainEventSubscriptions_CreateOrUpdate.json
*/
/**
@@ -814,8 +784,7 @@ public final class DomainEventSubscriptionsCreateOrUpdateSamples {
*/
public final class DomainEventSubscriptionsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* DomainEventSubscriptions_Delete.json
*/
/**
@@ -838,8 +807,7 @@ public final class DomainEventSubscriptionsDeleteSamples {
*/
public final class DomainEventSubscriptionsGetSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* DomainEventSubscriptions_Get.json
*/
/**
@@ -862,8 +830,7 @@ public final class DomainEventSubscriptionsGetSamples {
*/
public final class DomainEventSubscriptionsGetDeliveryAttributesSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* DomainEventSubscriptions_GetDeliveryAttributes.json
*/
/**
@@ -888,8 +855,7 @@ public final class DomainEventSubscriptionsGetDeliveryAttributesSamples {
*/
public final class DomainEventSubscriptionsGetFullUrlSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* DomainEventSubscriptions_GetFullUrl.json
*/
/**
@@ -914,8 +880,7 @@ public final class DomainEventSubscriptionsGetFullUrlSamples {
*/
public final class DomainEventSubscriptionsListSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* DomainEventSubscriptions_List.json
*/
/**
@@ -943,8 +908,7 @@ import java.util.Arrays;
*/
public final class DomainEventSubscriptionsUpdateSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* DomainEventSubscriptions_Update.json
*/
/**
@@ -979,8 +943,7 @@ import com.azure.resourcemanager.eventgrid.models.WebhookEventSubscriptionDestin
*/
public final class DomainTopicEventSubscriptionsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* DomainTopicEventSubscriptions_CreateOrUpdate.json
*/
/**
@@ -1011,8 +974,7 @@ public final class DomainTopicEventSubscriptionsCreateOrUpdateSamples {
*/
public final class DomainTopicEventSubscriptionsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* DomainTopicEventSubscriptions_Delete.json
*/
/**
@@ -1037,8 +999,7 @@ public final class DomainTopicEventSubscriptionsDeleteSamples {
*/
public final class DomainTopicEventSubscriptionsGetSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* DomainTopicEventSubscriptions_Get.json
*/
/**
@@ -1062,8 +1023,7 @@ public final class DomainTopicEventSubscriptionsGetSamples {
*/
public final class DomainTopicEventSubscriptionsGetDeliveryAttributesSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* DomainTopicEventSubscriptions_GetDeliveryAttributes.json
*/
/**
@@ -1088,8 +1048,7 @@ public final class DomainTopicEventSubscriptionsGetDeliveryAttributesSamples {
*/
public final class DomainTopicEventSubscriptionsGetFullUrlSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* DomainTopicEventSubscriptions_GetFullUrl.json
*/
/**
@@ -1114,8 +1073,7 @@ public final class DomainTopicEventSubscriptionsGetFullUrlSamples {
*/
public final class DomainTopicEventSubscriptionsListSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* DomainTopicEventSubscriptions_List.json
*/
/**
@@ -1143,8 +1101,7 @@ import java.util.Arrays;
*/
public final class DomainTopicEventSubscriptionsUpdateSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* DomainTopicEventSubscriptions_Update.json
*/
/**
@@ -1176,8 +1133,7 @@ public final class DomainTopicEventSubscriptionsUpdateSamples {
*/
public final class DomainTopicsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* DomainTopics_CreateOrUpdate.json
*/
/**
@@ -1201,8 +1157,7 @@ public final class DomainTopicsCreateOrUpdateSamples {
public final class DomainTopicsDeleteSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * DomainTopics_Delete.json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/DomainTopics_Delete.json
*/
/**
* Sample code: DomainTopics_Delete.
@@ -1225,8 +1180,7 @@ public final class DomainTopicsDeleteSamples {
public final class DomainTopicsGetSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/DomainTopics_Get
- * .json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/DomainTopics_Get.json
*/
/**
* Sample code: DomainTopics_Get.
@@ -1249,8 +1203,8 @@ public final class DomainTopicsGetSamples {
public final class DomainTopicsListByDomainSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * DomainTopics_ListByDomain.json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/DomainTopics_ListByDomain
+ * .json
*/
/**
* Sample code: DomainTopics_ListByDomain.
@@ -1280,8 +1234,8 @@ import java.util.Map;
public final class DomainsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * Domains_CreateOrUpdate.json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/Domains_CreateOrUpdate.
+ * json
*/
/**
* Sample code: Domains_CreateOrUpdate.
@@ -1324,8 +1278,7 @@ public final class DomainsCreateOrUpdateSamples {
public final class DomainsDeleteSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Domains_Delete.
- * json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/Domains_Delete.json
*/
/**
* Sample code: Domains_Delete.
@@ -1347,7 +1300,7 @@ public final class DomainsDeleteSamples {
public final class DomainsGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Domains_Get.json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/Domains_Get.json
*/
/**
* Sample code: Domains_Get.
@@ -1369,8 +1322,7 @@ public final class DomainsGetByResourceGroupSamples {
*/
public final class DomainsListSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* Domains_ListBySubscription.json
*/
/**
@@ -1392,8 +1344,7 @@ public final class DomainsListSamples {
*/
public final class DomainsListByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* Domains_ListByResourceGroup.json
*/
/**
@@ -1415,8 +1366,7 @@ public final class DomainsListByResourceGroupSamples {
*/
public final class DomainsListSharedAccessKeysSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* Domains_ListSharedAccessKeys.json
*/
/**
@@ -1442,8 +1392,8 @@ import com.azure.resourcemanager.eventgrid.models.DomainRegenerateKeyRequest;
public final class DomainsRegenerateKeySamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * Domains_RegenerateKey.json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/Domains_RegenerateKey.
+ * json
*/
/**
* Sample code: Domains_RegenerateKey.
@@ -1475,8 +1425,7 @@ import java.util.Map;
public final class DomainsUpdateSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Domains_Update.
- * json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/Domains_Update.json
*/
/**
* Sample code: Domains_Update.
@@ -1529,8 +1478,7 @@ import com.azure.resourcemanager.eventgrid.models.WebhookEventSubscriptionDestin
*/
public final class EventSubscriptionsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_CreateOrUpdateForCustomTopic_WebhookDestination.json
*/
/**
@@ -1542,10 +1490,10 @@ public final class EventSubscriptionsCreateOrUpdateSamples {
com.azure.resourcemanager.eventgrid.EventGridManager manager) {
manager.eventSubscriptions()
.createOrUpdate(
- "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1",
+ "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1",
"examplesubscription1",
- new EventSubscriptionInner().withDestination(new EventHubEventSubscriptionDestination().withResourceId(
- "/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.EventHub/namespaces/ContosoNamespace/eventhubs/EH1"))
+ new EventSubscriptionInner().withDestination(new WebhookEventSubscriptionDestination().withEndpointUrl(
+ "https://azurefunctionexample.azurewebsites.net/runtime/webhooks/EventGrid?functionName=EventGridTrigger1&code=PASSWORDCODE"))
.withFilter(new EventSubscriptionFilter().withSubjectBeginsWith("ExamplePrefix")
.withSubjectEndsWith("ExampleSuffix")
.withIsSubjectCaseSensitive(false)),
@@ -1553,8 +1501,7 @@ public final class EventSubscriptionsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_CreateOrUpdateForSubscription.json
*/
/**
@@ -1565,7 +1512,7 @@ public final class EventSubscriptionsCreateOrUpdateSamples {
public static void
eventSubscriptionsCreateOrUpdateForSubscription(com.azure.resourcemanager.eventgrid.EventGridManager manager) {
manager.eventSubscriptions()
- .createOrUpdate("subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40", "examplesubscription3",
+ .createOrUpdate("subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4", "examplesubscription3",
new EventSubscriptionInner()
.withDestination(
new WebhookEventSubscriptionDestination().withEndpointUrl("https://requestb.in/15ksip71"))
@@ -1574,8 +1521,7 @@ public final class EventSubscriptionsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_CreateOrUpdateForCustomTopic_ServiceBusTopicDestination.json
*/
/**
@@ -1587,7 +1533,7 @@ public final class EventSubscriptionsCreateOrUpdateSamples {
com.azure.resourcemanager.eventgrid.EventGridManager manager) {
manager.eventSubscriptions()
.createOrUpdate(
- "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1",
+ "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1",
"examplesubscription1",
new EventSubscriptionInner()
.withDestination(new ServiceBusTopicEventSubscriptionDestination().withResourceId(
@@ -1602,8 +1548,7 @@ public final class EventSubscriptionsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_CreateOrUpdateForResource.json
*/
/**
@@ -1615,7 +1560,7 @@ public final class EventSubscriptionsCreateOrUpdateSamples {
eventSubscriptionsCreateOrUpdateForResource(com.azure.resourcemanager.eventgrid.EventGridManager manager) {
manager.eventSubscriptions()
.createOrUpdate(
- "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1",
+ "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1",
"examplesubscription10",
new EventSubscriptionInner()
.withDestination(
@@ -1627,8 +1572,7 @@ public final class EventSubscriptionsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_CreateOrUpdateForCustomTopic.json
*/
/**
@@ -1640,7 +1584,7 @@ public final class EventSubscriptionsCreateOrUpdateSamples {
eventSubscriptionsCreateOrUpdateForCustomTopic(com.azure.resourcemanager.eventgrid.EventGridManager manager) {
manager.eventSubscriptions()
.createOrUpdate(
- "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1",
+ "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1",
"examplesubscription1",
new EventSubscriptionInner().withDestination(new EventHubEventSubscriptionDestination().withResourceId(
"/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.EventHub/namespaces/ContosoNamespace/eventhubs/EH1"))
@@ -1651,8 +1595,7 @@ public final class EventSubscriptionsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_CreateOrUpdateForResourceGroup.json
*/
/**
@@ -1663,7 +1606,7 @@ public final class EventSubscriptionsCreateOrUpdateSamples {
public static void
eventSubscriptionsCreateOrUpdateForResourceGroup(com.azure.resourcemanager.eventgrid.EventGridManager manager) {
manager.eventSubscriptions()
- .createOrUpdate("subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg",
+ .createOrUpdate("subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg",
"examplesubscription2",
new EventSubscriptionInner()
.withDestination(
@@ -1675,8 +1618,7 @@ public final class EventSubscriptionsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_CreateOrUpdateForCustomTopic_EventHubDestination.json
*/
/**
@@ -1688,7 +1630,7 @@ public final class EventSubscriptionsCreateOrUpdateSamples {
com.azure.resourcemanager.eventgrid.EventGridManager manager) {
manager.eventSubscriptions()
.createOrUpdate(
- "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1",
+ "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1",
"examplesubscription1",
new EventSubscriptionInner().withDestination(new EventHubEventSubscriptionDestination().withResourceId(
"/subscriptions/55f3dcd4-cac7-43b4-990b-a139d62a1eb2/resourceGroups/TestRG/providers/Microsoft.EventHub/namespaces/ContosoNamespace/eventhubs/EH1"))
@@ -1702,8 +1644,7 @@ public final class EventSubscriptionsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_CreateOrUpdateForCustomTopic_StorageQueueDestination.json
*/
/**
@@ -1715,13 +1656,12 @@ public final class EventSubscriptionsCreateOrUpdateSamples {
com.azure.resourcemanager.eventgrid.EventGridManager manager) {
manager.eventSubscriptions()
.createOrUpdate(
- "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1",
+ "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1",
"examplesubscription1",
new EventSubscriptionInner()
.withDestination(new StorageQueueEventSubscriptionDestination().withResourceId(
"/subscriptions/d33c5f7a-02ea-40f4-bf52-07f17e84d6a8/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/contosostg")
- .withQueueName("queue1")
- .withQueueMessageTimeToLiveInSeconds(300L))
+ .withQueueName("queue1"))
.withFilter(new EventSubscriptionFilter().withSubjectBeginsWith("ExamplePrefix")
.withSubjectEndsWith("ExampleSuffix")
.withIsSubjectCaseSensitive(false))
@@ -1732,8 +1672,7 @@ public final class EventSubscriptionsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_CreateOrUpdateForCustomTopic_AzureFunctionDestination.json
*/
/**
@@ -1745,7 +1684,7 @@ public final class EventSubscriptionsCreateOrUpdateSamples {
com.azure.resourcemanager.eventgrid.EventGridManager manager) {
manager.eventSubscriptions()
.createOrUpdate(
- "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1",
+ "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1",
"examplesubscription1",
new EventSubscriptionInner()
.withDestination(new AzureFunctionEventSubscriptionDestination().withResourceId(
@@ -1760,8 +1699,7 @@ public final class EventSubscriptionsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_CreateOrUpdateForCustomTopic_HybridConnectionDestination.json
*/
/**
@@ -1773,7 +1711,7 @@ public final class EventSubscriptionsCreateOrUpdateSamples {
com.azure.resourcemanager.eventgrid.EventGridManager manager) {
manager.eventSubscriptions()
.createOrUpdate(
- "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1",
+ "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1",
"examplesubscription1",
new EventSubscriptionInner()
.withDestination(new HybridConnectionEventSubscriptionDestination().withResourceId(
@@ -1788,8 +1726,7 @@ public final class EventSubscriptionsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_CreateOrUpdateForCustomTopic_ServiceBusQueueDestination.json
*/
/**
@@ -1801,7 +1738,7 @@ public final class EventSubscriptionsCreateOrUpdateSamples {
com.azure.resourcemanager.eventgrid.EventGridManager manager) {
manager.eventSubscriptions()
.createOrUpdate(
- "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1",
+ "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1",
"examplesubscription1",
new EventSubscriptionInner()
.withDestination(new ServiceBusQueueEventSubscriptionDestination().withResourceId(
@@ -1825,8 +1762,7 @@ public final class EventSubscriptionsCreateOrUpdateSamples {
*/
public final class EventSubscriptionsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_DeleteForCustomTopic.json
*/
/**
@@ -1838,13 +1774,12 @@ public final class EventSubscriptionsDeleteSamples {
eventSubscriptionsDeleteForCustomTopic(com.azure.resourcemanager.eventgrid.EventGridManager manager) {
manager.eventSubscriptions()
.delete(
- "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1",
+ "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1",
"examplesubscription1", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_DeleteForResourceGroup.json
*/
/**
@@ -1855,13 +1790,12 @@ public final class EventSubscriptionsDeleteSamples {
public static void
eventSubscriptionsDeleteForResourceGroup(com.azure.resourcemanager.eventgrid.EventGridManager manager) {
manager.eventSubscriptions()
- .delete("subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg",
+ .delete("subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg",
"examplesubscription2", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_DeleteForSubscription.json
*/
/**
@@ -1872,13 +1806,12 @@ public final class EventSubscriptionsDeleteSamples {
public static void
eventSubscriptionsDeleteForSubscription(com.azure.resourcemanager.eventgrid.EventGridManager manager) {
manager.eventSubscriptions()
- .delete("subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40", "examplesubscription3",
+ .delete("subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4", "examplesubscription3",
com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_DeleteForResource.json
*/
/**
@@ -1890,7 +1823,7 @@ public final class EventSubscriptionsDeleteSamples {
eventSubscriptionsDeleteForResource(com.azure.resourcemanager.eventgrid.EventGridManager manager) {
manager.eventSubscriptions()
.delete(
- "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1",
+ "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1",
"examplesubscription10", com.azure.core.util.Context.NONE);
}
}
@@ -1904,8 +1837,7 @@ public final class EventSubscriptionsDeleteSamples {
*/
public final class EventSubscriptionsGetSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_GetForCustomTopic_HybridConnectionDestination.json
*/
/**
@@ -1917,13 +1849,12 @@ public final class EventSubscriptionsGetSamples {
com.azure.resourcemanager.eventgrid.EventGridManager manager) {
manager.eventSubscriptions()
.getWithResponse(
- "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2",
+ "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2",
"examplesubscription1", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_GetForCustomTopic_ServiceBusTopicDestination.json
*/
/**
@@ -1935,13 +1866,12 @@ public final class EventSubscriptionsGetSamples {
com.azure.resourcemanager.eventgrid.EventGridManager manager) {
manager.eventSubscriptions()
.getWithResponse(
- "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2",
+ "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2",
"examplesubscription1", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_GetForResourceGroup.json
*/
/**
@@ -1952,13 +1882,12 @@ public final class EventSubscriptionsGetSamples {
public static void
eventSubscriptionsGetForResourceGroup(com.azure.resourcemanager.eventgrid.EventGridManager manager) {
manager.eventSubscriptions()
- .getWithResponse("subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg",
+ .getWithResponse("subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg",
"examplesubscription2", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_GetForCustomTopic_EventHubDestination.json
*/
/**
@@ -1970,13 +1899,12 @@ public final class EventSubscriptionsGetSamples {
com.azure.resourcemanager.eventgrid.EventGridManager manager) {
manager.eventSubscriptions()
.getWithResponse(
- "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2",
+ "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2",
"examplesubscription1", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_GetForSubscription.json
*/
/**
@@ -1987,13 +1915,12 @@ public final class EventSubscriptionsGetSamples {
public static void
eventSubscriptionsGetForSubscription(com.azure.resourcemanager.eventgrid.EventGridManager manager) {
manager.eventSubscriptions()
- .getWithResponse("subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40", "examplesubscription3",
+ .getWithResponse("subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4", "examplesubscription3",
com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_GetForCustomTopic_WebhookDestination.json
*/
/**
@@ -2005,13 +1932,12 @@ public final class EventSubscriptionsGetSamples {
com.azure.resourcemanager.eventgrid.EventGridManager manager) {
manager.eventSubscriptions()
.getWithResponse(
- "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2",
+ "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2",
"examplesubscription1", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_GetForCustomTopic_AzureFunctionDestination.json
*/
/**
@@ -2023,13 +1949,12 @@ public final class EventSubscriptionsGetSamples {
com.azure.resourcemanager.eventgrid.EventGridManager manager) {
manager.eventSubscriptions()
.getWithResponse(
- "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2",
+ "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2",
"examplesubscription1", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_GetForCustomTopic.json
*/
/**
@@ -2041,13 +1966,12 @@ public final class EventSubscriptionsGetSamples {
eventSubscriptionsGetForCustomTopic(com.azure.resourcemanager.eventgrid.EventGridManager manager) {
manager.eventSubscriptions()
.getWithResponse(
- "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2",
+ "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2",
"examplesubscription1", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_GetForCustomTopic_StorageQueueDestination.json
*/
/**
@@ -2059,13 +1983,12 @@ public final class EventSubscriptionsGetSamples {
com.azure.resourcemanager.eventgrid.EventGridManager manager) {
manager.eventSubscriptions()
.getWithResponse(
- "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2",
+ "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2",
"examplesubscription1", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_GetForResource.json
*/
/**
@@ -2076,13 +1999,12 @@ public final class EventSubscriptionsGetSamples {
public static void eventSubscriptionsGetForResource(com.azure.resourcemanager.eventgrid.EventGridManager manager) {
manager.eventSubscriptions()
.getWithResponse(
- "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1",
+ "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1",
"examplesubscription1", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_GetForCustomTopic_ServiceBusQueueDestination.json
*/
/**
@@ -2094,7 +2016,7 @@ public final class EventSubscriptionsGetSamples {
com.azure.resourcemanager.eventgrid.EventGridManager manager) {
manager.eventSubscriptions()
.getWithResponse(
- "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2",
+ "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2",
"examplesubscription1", com.azure.core.util.Context.NONE);
}
}
@@ -2108,8 +2030,7 @@ public final class EventSubscriptionsGetSamples {
*/
public final class EventSubscriptionsGetDeliveryAttributesSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_GetDeliveryAttributes.json
*/
/**
@@ -2120,9 +2041,8 @@ public final class EventSubscriptionsGetDeliveryAttributesSamples {
public static void
eventSubscriptionsGetDeliveryAttributes(com.azure.resourcemanager.eventgrid.EventGridManager manager) {
manager.eventSubscriptions()
- .getDeliveryAttributesWithResponse(
- "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2",
- "examplesubscription1", com.azure.core.util.Context.NONE);
+ .getDeliveryAttributesWithResponse("aaaaaaaaaaaaaaaaaaaaaaaaa", "aaaaaaaaaaaaaaaaaa",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -2135,8 +2055,7 @@ public final class EventSubscriptionsGetDeliveryAttributesSamples {
*/
public final class EventSubscriptionsGetFullUrlSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_GetFullUrlForResource.json
*/
/**
@@ -2148,13 +2067,12 @@ public final class EventSubscriptionsGetFullUrlSamples {
eventSubscriptionsGetFullUrlForResource(com.azure.resourcemanager.eventgrid.EventGridManager manager) {
manager.eventSubscriptions()
.getFullUrlWithResponse(
- "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1",
+ "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1",
"examplesubscription1", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_GetFullUrlForResourceGroup.json
*/
/**
@@ -2165,13 +2083,12 @@ public final class EventSubscriptionsGetFullUrlSamples {
public static void
eventSubscriptionsGetFullUrlForResourceGroup(com.azure.resourcemanager.eventgrid.EventGridManager manager) {
manager.eventSubscriptions()
- .getFullUrlWithResponse("subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg",
+ .getFullUrlWithResponse("subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg",
"examplesubscription2", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_GetFullUrlForSubscription.json
*/
/**
@@ -2182,13 +2099,12 @@ public final class EventSubscriptionsGetFullUrlSamples {
public static void
eventSubscriptionsGetFullUrlForSubscription(com.azure.resourcemanager.eventgrid.EventGridManager manager) {
manager.eventSubscriptions()
- .getFullUrlWithResponse("subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40", "examplesubscription3",
+ .getFullUrlWithResponse("subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4", "examplesubscription3",
com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_GetFullUrlForCustomTopic.json
*/
/**
@@ -2200,7 +2116,7 @@ public final class EventSubscriptionsGetFullUrlSamples {
eventSubscriptionsGetFullUrlForCustomTopic(com.azure.resourcemanager.eventgrid.EventGridManager manager) {
manager.eventSubscriptions()
.getFullUrlWithResponse(
- "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2",
+ "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2",
"examplesubscription1", com.azure.core.util.Context.NONE);
}
}
@@ -2214,8 +2130,7 @@ public final class EventSubscriptionsGetFullUrlSamples {
*/
public final class EventSubscriptionsListSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_ListGlobalBySubscription.json
*/
/**
@@ -2238,8 +2153,7 @@ public final class EventSubscriptionsListSamples {
*/
public final class EventSubscriptionsListByDomainTopicSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_ListByDomainTopic.json
*/
/**
@@ -2263,8 +2177,7 @@ public final class EventSubscriptionsListByDomainTopicSamples {
*/
public final class EventSubscriptionsListByResourceSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_ListByResource.json
*/
/**
@@ -2288,8 +2201,7 @@ public final class EventSubscriptionsListByResourceSamples {
*/
public final class EventSubscriptionsListByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_ListGlobalByResourceGroup.json
*/
/**
@@ -2312,8 +2224,7 @@ public final class EventSubscriptionsListByResourceGroupSamples {
*/
public final class EventSubscriptionsListGlobalByResourceGroupForTopicTypeSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_ListGlobalByResourceGroupForTopicType.json
*/
/**
@@ -2338,8 +2249,7 @@ public final class EventSubscriptionsListGlobalByResourceGroupForTopicTypeSample
*/
public final class EventSubscriptionsListGlobalBySubscriptionForTopicTypeSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_ListGlobalBySubscriptionForTopicType.json
*/
/**
@@ -2364,8 +2274,7 @@ public final class EventSubscriptionsListGlobalBySubscriptionForTopicTypeSamples
*/
public final class EventSubscriptionsListRegionalByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_ListRegionalByResourceGroup.json
*/
/**
@@ -2389,8 +2298,7 @@ public final class EventSubscriptionsListRegionalByResourceGroupSamples {
*/
public final class EventSubscriptionsListRegionalByResourceGroupForTopicTypeSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_ListRegionalByResourceGroupForTopicType.json
*/
/**
@@ -2415,8 +2323,7 @@ public final class EventSubscriptionsListRegionalByResourceGroupForTopicTypeSamp
*/
public final class EventSubscriptionsListRegionalBySubscriptionSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_ListRegionalBySubscription.json
*/
/**
@@ -2440,8 +2347,7 @@ public final class EventSubscriptionsListRegionalBySubscriptionSamples {
*/
public final class EventSubscriptionsListRegionalBySubscriptionForTopicTypeSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_ListRegionalBySubscriptionForTopicType.json
*/
/**
@@ -2478,8 +2384,7 @@ import java.util.Arrays;
*/
public final class EventSubscriptionsUpdateSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_UpdateForCustomTopic_EventHubDestination.json
*/
/**
@@ -2491,7 +2396,7 @@ public final class EventSubscriptionsUpdateSamples {
com.azure.resourcemanager.eventgrid.EventGridManager manager) {
manager.eventSubscriptions()
.update(
- "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2",
+ "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2",
"examplesubscription1",
new EventSubscriptionUpdateParameters()
.withDestination(new EventHubEventSubscriptionDestination().withResourceId(
@@ -2504,8 +2409,7 @@ public final class EventSubscriptionsUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_UpdateForCustomTopic_AzureFunctionDestination.json
*/
/**
@@ -2517,7 +2421,7 @@ public final class EventSubscriptionsUpdateSamples {
com.azure.resourcemanager.eventgrid.EventGridManager manager) {
manager.eventSubscriptions()
.update(
- "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1",
+ "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1",
"examplesubscription1",
new EventSubscriptionUpdateParameters()
.withDestination(new AzureFunctionEventSubscriptionDestination().withResourceId(
@@ -2532,8 +2436,7 @@ public final class EventSubscriptionsUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_UpdateForCustomTopic_WebhookDestination.json
*/
/**
@@ -2545,7 +2448,7 @@ public final class EventSubscriptionsUpdateSamples {
com.azure.resourcemanager.eventgrid.EventGridManager manager) {
manager.eventSubscriptions()
.update(
- "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2",
+ "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2",
"examplesubscription1",
new EventSubscriptionUpdateParameters()
.withDestination(
@@ -2558,8 +2461,7 @@ public final class EventSubscriptionsUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_UpdateForCustomTopic_StorageQueueDestination.json
*/
/**
@@ -2571,7 +2473,7 @@ public final class EventSubscriptionsUpdateSamples {
com.azure.resourcemanager.eventgrid.EventGridManager manager) {
manager.eventSubscriptions()
.update(
- "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1",
+ "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1",
"examplesubscription1",
new EventSubscriptionUpdateParameters()
.withDestination(new StorageQueueEventSubscriptionDestination().withResourceId(
@@ -2588,8 +2490,7 @@ public final class EventSubscriptionsUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_UpdateForCustomTopic_ServiceBusTopicDestination.json
*/
/**
@@ -2601,7 +2502,7 @@ public final class EventSubscriptionsUpdateSamples {
com.azure.resourcemanager.eventgrid.EventGridManager manager) {
manager.eventSubscriptions()
.update(
- "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2",
+ "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2",
"examplesubscription1",
new EventSubscriptionUpdateParameters()
.withDestination(new ServiceBusTopicEventSubscriptionDestination().withResourceId(
@@ -2614,8 +2515,7 @@ public final class EventSubscriptionsUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_UpdateForCustomTopic_HybridConnectionDestination.json
*/
/**
@@ -2627,7 +2527,7 @@ public final class EventSubscriptionsUpdateSamples {
com.azure.resourcemanager.eventgrid.EventGridManager manager) {
manager.eventSubscriptions()
.update(
- "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2",
+ "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2",
"examplesubscription1",
new EventSubscriptionUpdateParameters()
.withDestination(new HybridConnectionEventSubscriptionDestination().withResourceId(
@@ -2640,8 +2540,7 @@ public final class EventSubscriptionsUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_UpdateForCustomTopic_ServiceBusQueueDestination.json
*/
/**
@@ -2653,7 +2552,7 @@ public final class EventSubscriptionsUpdateSamples {
com.azure.resourcemanager.eventgrid.EventGridManager manager) {
manager.eventSubscriptions()
.update(
- "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1",
+ "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic1",
"examplesubscription1",
new EventSubscriptionUpdateParameters()
.withDestination(new ServiceBusQueueEventSubscriptionDestination().withResourceId(
@@ -2668,8 +2567,7 @@ public final class EventSubscriptionsUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_UpdateForCustomTopic.json
*/
/**
@@ -2681,7 +2579,7 @@ public final class EventSubscriptionsUpdateSamples {
eventSubscriptionsUpdateForCustomTopic(com.azure.resourcemanager.eventgrid.EventGridManager manager) {
manager.eventSubscriptions()
.update(
- "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2",
+ "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampletopic2",
"examplesubscription1",
new EventSubscriptionUpdateParameters()
.withDestination(
@@ -2694,8 +2592,7 @@ public final class EventSubscriptionsUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_UpdateForResource.json
*/
/**
@@ -2707,7 +2604,7 @@ public final class EventSubscriptionsUpdateSamples {
eventSubscriptionsUpdateForResource(com.azure.resourcemanager.eventgrid.EventGridManager manager) {
manager.eventSubscriptions()
.update(
- "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1",
+ "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventHub/namespaces/examplenamespace1",
"examplesubscription1",
new EventSubscriptionUpdateParameters()
.withDestination(
@@ -2720,8 +2617,7 @@ public final class EventSubscriptionsUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_UpdateForResourceGroup.json
*/
/**
@@ -2732,7 +2628,7 @@ public final class EventSubscriptionsUpdateSamples {
public static void
eventSubscriptionsUpdateForResourceGroup(com.azure.resourcemanager.eventgrid.EventGridManager manager) {
manager.eventSubscriptions()
- .update("subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg",
+ .update("subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg",
"examplesubscription2",
new EventSubscriptionUpdateParameters()
.withDestination(new EventHubEventSubscriptionDestination().withResourceId(
@@ -2745,8 +2641,7 @@ public final class EventSubscriptionsUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* EventSubscriptions_UpdateForSubscription.json
*/
/**
@@ -2757,7 +2652,7 @@ public final class EventSubscriptionsUpdateSamples {
public static void
eventSubscriptionsUpdateForSubscription(com.azure.resourcemanager.eventgrid.EventGridManager manager) {
manager.eventSubscriptions()
- .update("subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40", "examplesubscription3",
+ .update("subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4", "examplesubscription3",
new EventSubscriptionUpdateParameters()
.withDestination(
new WebhookEventSubscriptionDestination().withEndpointUrl("https://requestb.in/15ksip71"))
@@ -2779,8 +2674,7 @@ public final class EventSubscriptionsUpdateSamples {
public final class ExtensionTopicsGetSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * ExtensionTopics_Get.json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/ExtensionTopics_Get.json
*/
/**
* Sample code: ExtensionTopics_Get.
@@ -2790,7 +2684,7 @@ public final class ExtensionTopicsGetSamples {
public static void extensionTopicsGet(com.azure.resourcemanager.eventgrid.EventGridManager manager) {
manager.extensionTopics()
.getWithResponse(
- "subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/microsoft.storage/storageaccounts/exampleResourceName/providers/Microsoft.eventgrid/extensionTopics/default",
+ "subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/microsoft.storage/storageaccounts/exampleResourceName/providers/Microsoft.eventgrid/extensionTopics/default",
com.azure.core.util.Context.NONE);
}
}
@@ -2810,8 +2704,7 @@ import java.time.Duration;
*/
public final class NamespaceTopicEventSubscriptionsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* NamespaceTopicEventSubscriptions_CreateOrUpdate.json
*/
/**
@@ -2842,8 +2735,7 @@ public final class NamespaceTopicEventSubscriptionsCreateOrUpdateSamples {
*/
public final class NamespaceTopicEventSubscriptionsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* NamespaceTopicEventSubscriptions_Delete.json
*/
/**
@@ -2868,8 +2760,7 @@ public final class NamespaceTopicEventSubscriptionsDeleteSamples {
*/
public final class NamespaceTopicEventSubscriptionsGetSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* NamespaceTopicEventSubscriptions_Get.json
*/
/**
@@ -2894,8 +2785,7 @@ public final class NamespaceTopicEventSubscriptionsGetSamples {
*/
public final class NamespaceTopicEventSubscriptionsGetDeliveryAttributesSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* NamespaceTopicEventSubscriptions_GetDeliveryAttributes.json
*/
/**
@@ -2920,8 +2810,7 @@ public final class NamespaceTopicEventSubscriptionsGetDeliveryAttributesSamples
*/
public final class NamespaceTopicEventSubscriptionsGetFullUrlSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* NamespaceTopicEventSubscriptions_GetFullUrl.json
*/
/**
@@ -2946,8 +2835,7 @@ public final class NamespaceTopicEventSubscriptionsGetFullUrlSamples {
*/
public final class NamespaceTopicEventSubscriptionsListByNamespaceTopicSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* NamespaceTopicEventSubscriptions_ListByNamespaceTopic.json
*/
/**
@@ -2979,8 +2867,7 @@ import java.time.Duration;
*/
public final class NamespaceTopicEventSubscriptionsUpdateSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* NamespaceTopicEventSubscriptions_Update.json
*/
/**
@@ -3016,8 +2903,7 @@ import com.azure.resourcemanager.eventgrid.models.PublisherType;
*/
public final class NamespaceTopicsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* NamespaceTopics_CreateOrUpdate.json
*/
/**
@@ -3046,8 +2932,8 @@ public final class NamespaceTopicsCreateOrUpdateSamples {
public final class NamespaceTopicsDeleteSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * NamespaceTopics_Delete.json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/NamespaceTopics_Delete.
+ * json
*/
/**
* Sample code: NamespaceTopics_Delete.
@@ -3070,8 +2956,7 @@ public final class NamespaceTopicsDeleteSamples {
public final class NamespaceTopicsGetSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * NamespaceTopics_Get.json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/NamespaceTopics_Get.json
*/
/**
* Sample code: NamespaceTopics_Get.
@@ -3094,8 +2979,7 @@ public final class NamespaceTopicsGetSamples {
*/
public final class NamespaceTopicsListByNamespaceSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* NamespaceTopics_ListByNamespace.json
*/
/**
@@ -3118,8 +3002,7 @@ public final class NamespaceTopicsListByNamespaceSamples {
*/
public final class NamespaceTopicsListSharedAccessKeysSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* NamespaceTopics_ListSharedAccessKeys.json
*/
/**
@@ -3146,8 +3029,7 @@ import com.azure.resourcemanager.eventgrid.models.TopicRegenerateKeyRequest;
*/
public final class NamespaceTopicsRegenerateKeySamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* NamespaceTopics_RegenerateKey.json
*/
/**
@@ -3174,8 +3056,8 @@ import com.azure.resourcemanager.eventgrid.models.NamespaceTopic;
public final class NamespaceTopicsUpdateSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * NamespaceTopics_Update.json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/NamespaceTopics_Update.
+ * json
*/
/**
* Sample code: NamespaceTopics_Update.
@@ -3206,8 +3088,8 @@ import java.util.Map;
public final class NamespacesCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * Namespaces_CreateOrUpdate.json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/Namespaces_CreateOrUpdate
+ * .json
*/
/**
* Sample code: Namespaces_CreateOrUpdate.
@@ -3250,8 +3132,7 @@ public final class NamespacesCreateOrUpdateSamples {
public final class NamespacesDeleteSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * Namespaces_Delete.json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/Namespaces_Delete.json
*/
/**
* Sample code: Namespaces_Delete.
@@ -3273,8 +3154,7 @@ public final class NamespacesDeleteSamples {
public final class NamespacesGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Namespaces_Get.
- * json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/Namespaces_Get.json
*/
/**
* Sample code: Namespaces_Get.
@@ -3296,8 +3176,7 @@ public final class NamespacesGetByResourceGroupSamples {
*/
public final class NamespacesListSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* Namespaces_ListBySubscription.json
*/
/**
@@ -3319,8 +3198,7 @@ public final class NamespacesListSamples {
*/
public final class NamespacesListByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* Namespaces_ListByResourceGroup.json
*/
/**
@@ -3342,8 +3220,7 @@ public final class NamespacesListByResourceGroupSamples {
*/
public final class NamespacesListSharedAccessKeysSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* Namespaces_ListSharedAccessKeys.json
*/
/**
@@ -3369,8 +3246,8 @@ import com.azure.resourcemanager.eventgrid.models.NamespaceRegenerateKeyRequest;
public final class NamespacesRegenerateKeySamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * Namespaces_RegenerateKey.json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/Namespaces_RegenerateKey.
+ * json
*/
/**
* Sample code: Namespaces_RegenerateKey.
@@ -3399,8 +3276,7 @@ import java.util.Map;
public final class NamespacesUpdateSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * Namespaces_Update.json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/Namespaces_Update.json
*/
/**
* Sample code: Namespaces_Update.
@@ -3436,8 +3312,7 @@ public final class NamespacesUpdateSamples {
*/
public final class NamespacesValidateCustomDomainOwnershipSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* Namespaces_ValidateCustomDomainOwnership.json
*/
/**
@@ -3453,90 +3328,6 @@ public final class NamespacesValidateCustomDomainOwnershipSamples {
}
```
-### NetworkSecurityPerimeterConfigurations_Get
-
-```java
-import com.azure.resourcemanager.eventgrid.models.NetworkSecurityPerimeterResourceType;
-
-/**
- * Samples for NetworkSecurityPerimeterConfigurations Get.
- */
-public final class NetworkSecurityPerimeterConfigurationsGetSamples {
- /*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * NetworkSecurityPerimeterConfigurations_Get.json
- */
- /**
- * Sample code: NetworkSecurityPerimeterConfigurations_Get.
- *
- * @param manager Entry point to EventGridManager.
- */
- public static void
- networkSecurityPerimeterConfigurationsGet(com.azure.resourcemanager.eventgrid.EventGridManager manager) {
- manager.networkSecurityPerimeterConfigurations()
- .getWithResponse("examplerg", NetworkSecurityPerimeterResourceType.TOPICS, "exampleResourceName",
- "8f6b6269-84f2-4d09-9e31-1127efcd1e40perimeter", "someAssociation", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### NetworkSecurityPerimeterConfigurations_List
-
-```java
-import com.azure.resourcemanager.eventgrid.models.NetworkSecurityPerimeterResourceType;
-
-/**
- * Samples for NetworkSecurityPerimeterConfigurations List.
- */
-public final class NetworkSecurityPerimeterConfigurationsListSamples {
- /*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * NetworkSecurityPerimeterConfigurations_List.json
- */
- /**
- * Sample code: NetworkSecurityPerimeterConfigurations_List.
- *
- * @param manager Entry point to EventGridManager.
- */
- public static void
- networkSecurityPerimeterConfigurationsList(com.azure.resourcemanager.eventgrid.EventGridManager manager) {
- manager.networkSecurityPerimeterConfigurations()
- .list("examplerg", NetworkSecurityPerimeterResourceType.TOPICS, "exampleResourceName",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### NetworkSecurityPerimeterConfigurations_Reconcile
-
-```java
-import com.azure.resourcemanager.eventgrid.models.NetworkSecurityPerimeterResourceType;
-
-/**
- * Samples for NetworkSecurityPerimeterConfigurations Reconcile.
- */
-public final class NetworkSecurityPerimeterConfigurationsReconcileSamples {
- /*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * NetworkSecurityPerimeterConfigurations_Reconcile.json
- */
- /**
- * Sample code: NetworkSecurityPerimeterConfigurations_Reconcile.
- *
- * @param manager Entry point to EventGridManager.
- */
- public static void
- networkSecurityPerimeterConfigurationsReconcile(com.azure.resourcemanager.eventgrid.EventGridManager manager) {
- manager.networkSecurityPerimeterConfigurations()
- .reconcile("examplerg", NetworkSecurityPerimeterResourceType.TOPICS, "exampleResourceName",
- "8f6b6269-84f2-4d09-9e31-1127efcd1e40perimeter", "someAssociation", com.azure.core.util.Context.NONE);
- }
-}
-```
-
### Operations_List
```java
@@ -3546,8 +3337,7 @@ public final class NetworkSecurityPerimeterConfigurationsReconcileSamples {
public final class OperationsListSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Operations_List.
- * json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/Operations_List.json
*/
/**
* Sample code: Operations_List.
@@ -3572,8 +3362,7 @@ import java.util.UUID;
*/
public final class PartnerConfigurationsAuthorizePartnerSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* PartnerConfigurations_AuthorizePartner.json
*/
/**
@@ -3609,8 +3398,7 @@ import java.util.UUID;
*/
public final class PartnerConfigurationsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* PartnerConfigurations_CreateOrUpdate.json
*/
/**
@@ -3649,8 +3437,7 @@ public final class PartnerConfigurationsCreateOrUpdateSamples {
*/
public final class PartnerConfigurationsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* PartnerConfigurations_Delete.json
*/
/**
@@ -3673,8 +3460,8 @@ public final class PartnerConfigurationsDeleteSamples {
public final class PartnerConfigurationsGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * PartnerConfigurations_Get.json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/PartnerConfigurations_Get
+ * .json
*/
/**
* Sample code: PartnerConfigurations_Get.
@@ -3695,8 +3482,7 @@ public final class PartnerConfigurationsGetByResourceGroupSamples {
*/
public final class PartnerConfigurationsListSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* PartnerConfigurations_ListBySubscription.json
*/
/**
@@ -3719,8 +3505,7 @@ public final class PartnerConfigurationsListSamples {
*/
public final class PartnerConfigurationsListByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* PartnerConfigurations_ListByResourceGroup.json
*/
/**
@@ -3747,8 +3532,7 @@ import java.util.UUID;
*/
public final class PartnerConfigurationsUnauthorizePartnerSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* PartnerConfigurations_UnauthorizePartner.json
*/
/**
@@ -3781,8 +3565,7 @@ import java.util.Map;
*/
public final class PartnerConfigurationsUpdateSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* PartnerConfigurations_Update.json
*/
/**
@@ -3812,205 +3595,6 @@ public final class PartnerConfigurationsUpdateSamples {
}
```
-### PartnerDestinations_Activate
-
-```java
-/**
- * Samples for PartnerDestinations Activate.
- */
-public final class PartnerDestinationsActivateSamples {
- /*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * PartnerDestinations_Activate.json
- */
- /**
- * Sample code: PartnerDestinations_Activate.
- *
- * @param manager Entry point to EventGridManager.
- */
- public static void partnerDestinationsActivate(com.azure.resourcemanager.eventgrid.EventGridManager manager) {
- manager.partnerDestinations()
- .activateWithResponse("examplerg", "examplePartnerDestination1", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### PartnerDestinations_CreateOrUpdate
-
-```java
-import java.time.OffsetDateTime;
-import java.util.UUID;
-
-/**
- * Samples for PartnerDestinations CreateOrUpdate.
- */
-public final class PartnerDestinationsCreateOrUpdateSamples {
- /*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * PartnerDestinations_CreateOrUpdate.json
- */
- /**
- * Sample code: PartnerDestinations_CreateOrUpdate.
- *
- * @param manager Entry point to EventGridManager.
- */
- public static void partnerDestinationsCreateOrUpdate(com.azure.resourcemanager.eventgrid.EventGridManager manager) {
- manager.partnerDestinations()
- .define("examplePartnerDestinationName1")
- .withRegion("westus2")
- .withExistingResourceGroup("examplerg")
- .withPartnerRegistrationImmutableId(UUID.fromString("0bd70ee2-7d95-447e-ab1f-c4f320019404"))
- .withEndpointServiceContext("This is an example")
- .withExpirationTimeIfNotActivatedUtc(OffsetDateTime.parse("2022-03-14T19:33:43.430Z"))
- .withEndpointBaseUrl("https://www.example/endpoint")
- .withMessageForActivation("Sample Activation message")
- .create();
- }
-}
-```
-
-### PartnerDestinations_Delete
-
-```java
-/**
- * Samples for PartnerDestinations Delete.
- */
-public final class PartnerDestinationsDeleteSamples {
- /*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * PartnerDestinations_Delete.json
- */
- /**
- * Sample code: PartnerDestinations_Delete.
- *
- * @param manager Entry point to EventGridManager.
- */
- public static void partnerDestinationsDelete(com.azure.resourcemanager.eventgrid.EventGridManager manager) {
- manager.partnerDestinations()
- .delete("examplerg", "examplePartnerDestinationName1", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### PartnerDestinations_GetByResourceGroup
-
-```java
-/**
- * Samples for PartnerDestinations GetByResourceGroup.
- */
-public final class PartnerDestinationsGetByResourceGroupSamples {
- /*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * PartnerDestinations_Get.json
- */
- /**
- * Sample code: PartnerDestinations_Get.
- *
- * @param manager Entry point to EventGridManager.
- */
- public static void partnerDestinationsGet(com.azure.resourcemanager.eventgrid.EventGridManager manager) {
- manager.partnerDestinations()
- .getByResourceGroupWithResponse("examplerg", "examplePartnerDestinationName1",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### PartnerDestinations_List
-
-```java
-/**
- * Samples for PartnerDestinations List.
- */
-public final class PartnerDestinationsListSamples {
- /*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * PartnerDestinations_ListBySubscription.json
- */
- /**
- * Sample code: PartnerDestinations_ListBySubscription.
- *
- * @param manager Entry point to EventGridManager.
- */
- public static void
- partnerDestinationsListBySubscription(com.azure.resourcemanager.eventgrid.EventGridManager manager) {
- manager.partnerDestinations().list(null, null, com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### PartnerDestinations_ListByResourceGroup
-
-```java
-/**
- * Samples for PartnerDestinations ListByResourceGroup.
- */
-public final class PartnerDestinationsListByResourceGroupSamples {
- /*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * PartnerDestinations_ListByResourceGroup.json
- */
- /**
- * Sample code: PartnerDestinations_ListByResourceGroup.
- *
- * @param manager Entry point to EventGridManager.
- */
- public static void
- partnerDestinationsListByResourceGroup(com.azure.resourcemanager.eventgrid.EventGridManager manager) {
- manager.partnerDestinations().listByResourceGroup("examplerg", null, null, com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### PartnerDestinations_Update
-
-```java
-import com.azure.resourcemanager.eventgrid.models.PartnerDestination;
-import java.util.HashMap;
-import java.util.Map;
-
-/**
- * Samples for PartnerDestinations Update.
- */
-public final class PartnerDestinationsUpdateSamples {
- /*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * PartnerDestinations_Update.json
- */
- /**
- * Sample code: PartnerDestinations_Update.
- *
- * @param manager Entry point to EventGridManager.
- */
- public static void partnerDestinationsUpdate(com.azure.resourcemanager.eventgrid.EventGridManager manager) {
- PartnerDestination resource = manager.partnerDestinations()
- .getByResourceGroupWithResponse("examplerg", "examplePartnerDestinationName1",
- com.azure.core.util.Context.NONE)
- .getValue();
- resource.update().withTags(mapOf("tag1", "value1", "tag2", "value2")).apply();
- }
-
- // Use "Map.of" if available
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
-```
-
### PartnerNamespaces_CreateOrUpdate
```java
@@ -4022,8 +3606,7 @@ import java.util.Map;
*/
public final class PartnerNamespacesCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* PartnerNamespaces_CreateOrUpdate.json
*/
/**
@@ -4038,7 +3621,7 @@ public final class PartnerNamespacesCreateOrUpdateSamples {
.withExistingResourceGroup("examplerg")
.withTags(mapOf("tag1", "value1", "tag2", "value2"))
.withPartnerRegistrationFullyQualifiedId(
- "/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerRegistrations/ContosoCorpAccount1")
+ "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/examplerg/providers/Microsoft.EventGrid/partnerRegistrations/ContosoCorpAccount1")
.create();
}
@@ -4065,8 +3648,8 @@ public final class PartnerNamespacesCreateOrUpdateSamples {
public final class PartnerNamespacesDeleteSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * PartnerNamespaces_Delete.json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/PartnerNamespaces_Delete.
+ * json
*/
/**
* Sample code: PartnerNamespaces_Delete.
@@ -4089,8 +3672,8 @@ public final class PartnerNamespacesDeleteSamples {
public final class PartnerNamespacesGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * PartnerNamespaces_Get.json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/PartnerNamespaces_Get.
+ * json
*/
/**
* Sample code: PartnerNamespaces_Get.
@@ -4113,8 +3696,7 @@ public final class PartnerNamespacesGetByResourceGroupSamples {
*/
public final class PartnerNamespacesListSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* PartnerNamespaces_ListBySubscription.json
*/
/**
@@ -4137,8 +3719,7 @@ public final class PartnerNamespacesListSamples {
*/
public final class PartnerNamespacesListByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* PartnerNamespaces_ListByResourceGroup.json
*/
/**
@@ -4161,8 +3742,7 @@ public final class PartnerNamespacesListByResourceGroupSamples {
*/
public final class PartnerNamespacesListSharedAccessKeysSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* PartnerNamespaces_ListSharedAccessKeys.json
*/
/**
@@ -4189,8 +3769,7 @@ import com.azure.resourcemanager.eventgrid.models.PartnerNamespaceRegenerateKeyR
*/
public final class PartnerNamespacesRegenerateKeySamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* PartnerNamespaces_RegenerateKey.json
*/
/**
@@ -4220,8 +3799,8 @@ import java.util.Map;
public final class PartnerNamespacesUpdateSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * PartnerNamespaces_Update.json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/PartnerNamespaces_Update.
+ * json
*/
/**
* Sample code: PartnerNamespaces_Update.
@@ -4261,8 +3840,7 @@ import java.util.Map;
*/
public final class PartnerRegistrationsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* PartnerRegistrations_CreateOrUpdate.json
*/
/**
@@ -4303,8 +3881,7 @@ public final class PartnerRegistrationsCreateOrUpdateSamples {
*/
public final class PartnerRegistrationsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* PartnerRegistrations_Delete.json
*/
/**
@@ -4328,8 +3905,8 @@ public final class PartnerRegistrationsDeleteSamples {
public final class PartnerRegistrationsGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * PartnerRegistrations_Get.json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/PartnerRegistrations_Get.
+ * json
*/
/**
* Sample code: PartnerRegistrations_Get.
@@ -4352,8 +3929,7 @@ public final class PartnerRegistrationsGetByResourceGroupSamples {
*/
public final class PartnerRegistrationsListSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* PartnerRegistrations_ListBySubscription.json
*/
/**
@@ -4376,8 +3952,7 @@ public final class PartnerRegistrationsListSamples {
*/
public final class PartnerRegistrationsListByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* PartnerRegistrations_ListByResourceGroup.json
*/
/**
@@ -4404,8 +3979,7 @@ import java.util.Map;
*/
public final class PartnerRegistrationsUpdateSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* PartnerRegistrations_Update.json
*/
/**
@@ -4418,7 +3992,7 @@ public final class PartnerRegistrationsUpdateSamples {
.getByResourceGroupWithResponse("examplerg", "examplePartnerRegistrationName1",
com.azure.core.util.Context.NONE)
.getValue();
- resource.update().withTags(mapOf("NewKey", "fakeTokenPlaceholder")).apply();
+ resource.update().withTags(mapOf("tag1", "value1", "tag2", "value2")).apply();
}
// Use "Map.of" if available
@@ -4447,8 +4021,7 @@ import com.azure.resourcemanager.eventgrid.models.WebhookEventSubscriptionDestin
*/
public final class PartnerTopicEventSubscriptionsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* PartnerTopicEventSubscriptions_CreateOrUpdate.json
*/
/**
@@ -4479,8 +4052,7 @@ public final class PartnerTopicEventSubscriptionsCreateOrUpdateSamples {
*/
public final class PartnerTopicEventSubscriptionsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* PartnerTopicEventSubscriptions_Delete.json
*/
/**
@@ -4504,8 +4076,7 @@ public final class PartnerTopicEventSubscriptionsDeleteSamples {
*/
public final class PartnerTopicEventSubscriptionsGetSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* PartnerTopicEventSubscriptions_Get.json
*/
/**
@@ -4529,8 +4100,7 @@ public final class PartnerTopicEventSubscriptionsGetSamples {
*/
public final class PartnerTopicEventSubscriptionsGetDeliveryAttributesSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* PartnerTopicEventSubscriptions_GetDeliveryAttributes.json
*/
/**
@@ -4555,8 +4125,7 @@ public final class PartnerTopicEventSubscriptionsGetDeliveryAttributesSamples {
*/
public final class PartnerTopicEventSubscriptionsGetFullUrlSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* PartnerTopicEventSubscriptions_GetFullUrl.json
*/
/**
@@ -4581,8 +4150,7 @@ public final class PartnerTopicEventSubscriptionsGetFullUrlSamples {
*/
public final class PartnerTopicEventSubscriptionsListByPartnerTopicSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* PartnerTopicEventSubscriptions_ListByPartnerTopic.json
*/
/**
@@ -4611,8 +4179,7 @@ import java.util.Arrays;
*/
public final class PartnerTopicEventSubscriptionsUpdateSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* PartnerTopicEventSubscriptions_Update.json
*/
/**
@@ -4645,8 +4212,8 @@ public final class PartnerTopicEventSubscriptionsUpdateSamples {
public final class PartnerTopicsActivateSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * PartnerTopics_Activate.json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/PartnerTopics_Activate.
+ * json
*/
/**
* Sample code: PartnerTopics_Activate.
@@ -4671,8 +4238,7 @@ import java.util.UUID;
*/
public final class PartnerTopicsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* PartnerTopics_CreateOrUpdate.json
*/
/**
@@ -4704,8 +4270,8 @@ public final class PartnerTopicsCreateOrUpdateSamples {
public final class PartnerTopicsDeactivateSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * PartnerTopics_Deactivate.json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/PartnerTopics_Deactivate.
+ * json
*/
/**
* Sample code: PartnerTopics_Deactivate.
@@ -4728,8 +4294,7 @@ public final class PartnerTopicsDeactivateSamples {
public final class PartnerTopicsDeleteSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * PartnerTopics_Delete.json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/PartnerTopics_Delete.json
*/
/**
* Sample code: PartnerTopics_Delete.
@@ -4751,8 +4316,7 @@ public final class PartnerTopicsDeleteSamples {
public final class PartnerTopicsGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * PartnerTopics_Get.json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/PartnerTopics_Get.json
*/
/**
* Sample code: PartnerTopics_Get.
@@ -4774,8 +4338,7 @@ public final class PartnerTopicsGetByResourceGroupSamples {
*/
public final class PartnerTopicsListSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* PartnerTopics_ListBySubscription.json
*/
/**
@@ -4797,8 +4360,7 @@ public final class PartnerTopicsListSamples {
*/
public final class PartnerTopicsListByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* PartnerTopics_ListByResourceGroup.json
*/
/**
@@ -4825,8 +4387,7 @@ import java.util.Map;
public final class PartnerTopicsUpdateSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * PartnerTopics_Update.json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/PartnerTopics_Update.json
*/
/**
* Sample code: PartnerTopics_Update.
@@ -4864,8 +4425,7 @@ import com.azure.resourcemanager.eventgrid.models.PermissionType;
*/
public final class PermissionBindingsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* PermissionBindings_CreateOrUpdate.json
*/
/**
@@ -4894,8 +4454,8 @@ public final class PermissionBindingsCreateOrUpdateSamples {
public final class PermissionBindingsDeleteSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * PermissionBindings_Delete.json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/PermissionBindings_Delete
+ * .json
*/
/**
* Sample code: PermissionBindings_Delete.
@@ -4919,8 +4479,8 @@ public final class PermissionBindingsDeleteSamples {
public final class PermissionBindingsGetSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * PermissionBindings_Get.json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/PermissionBindings_Get.
+ * json
*/
/**
* Sample code: PermissionBindings_Get.
@@ -4943,8 +4503,7 @@ public final class PermissionBindingsGetSamples {
*/
public final class PermissionBindingsListByNamespaceSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* PermissionBindings_ListByNamespace.json
*/
/**
@@ -4969,8 +4528,7 @@ import com.azure.resourcemanager.eventgrid.models.PrivateEndpointConnectionsPare
*/
public final class PrivateEndpointConnectionsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* PrivateEndpointConnections_Delete.json
*/
/**
@@ -4996,8 +4554,7 @@ import com.azure.resourcemanager.eventgrid.models.PrivateEndpointConnectionsPare
*/
public final class PrivateEndpointConnectionsGetSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* PrivateEndpointConnections_Get.json
*/
/**
@@ -5023,8 +4580,7 @@ import com.azure.resourcemanager.eventgrid.models.PrivateEndpointConnectionsPare
*/
public final class PrivateEndpointConnectionsListByResourceSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* PrivateEndpointConnections_ListByResource.json
*/
/**
@@ -5054,8 +4610,7 @@ import com.azure.resourcemanager.eventgrid.models.PrivateEndpointConnectionsPare
*/
public final class PrivateEndpointConnectionsUpdateSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* PrivateEndpointConnections_Update.json
*/
/**
@@ -5085,8 +4640,8 @@ public final class PrivateEndpointConnectionsUpdateSamples {
public final class PrivateLinkResourcesGetSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * PrivateLinkResources_Get.json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/PrivateLinkResources_Get.
+ * json
*/
/**
* Sample code: PrivateLinkResources_Get.
@@ -5108,8 +4663,7 @@ public final class PrivateLinkResourcesGetSamples {
*/
public final class PrivateLinkResourcesListByResourceSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* PrivateLinkResources_ListByResource.json
*/
/**
@@ -5137,8 +4691,7 @@ import com.azure.resourcemanager.eventgrid.models.WebhookEventSubscriptionDestin
*/
public final class SystemTopicEventSubscriptionsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* SystemTopicEventSubscriptions_CreateOrUpdate.json
*/
/**
@@ -5169,8 +4722,7 @@ public final class SystemTopicEventSubscriptionsCreateOrUpdateSamples {
*/
public final class SystemTopicEventSubscriptionsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* SystemTopicEventSubscriptions_Delete.json
*/
/**
@@ -5194,8 +4746,7 @@ public final class SystemTopicEventSubscriptionsDeleteSamples {
*/
public final class SystemTopicEventSubscriptionsGetSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* SystemTopicEventSubscriptions_Get.json
*/
/**
@@ -5219,8 +4770,7 @@ public final class SystemTopicEventSubscriptionsGetSamples {
*/
public final class SystemTopicEventSubscriptionsGetDeliveryAttributesSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* SystemTopicEventSubscriptions_GetDeliveryAttributes.json
*/
/**
@@ -5245,8 +4795,7 @@ public final class SystemTopicEventSubscriptionsGetDeliveryAttributesSamples {
*/
public final class SystemTopicEventSubscriptionsGetFullUrlSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* SystemTopicEventSubscriptions_GetFullUrl.json
*/
/**
@@ -5271,8 +4820,7 @@ public final class SystemTopicEventSubscriptionsGetFullUrlSamples {
*/
public final class SystemTopicEventSubscriptionsListBySystemTopicSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* SystemTopicEventSubscriptions_ListBySystemTopic.json
*/
/**
@@ -5301,8 +4849,7 @@ import java.util.Arrays;
*/
public final class SystemTopicEventSubscriptionsUpdateSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* SystemTopicEventSubscriptions_Update.json
*/
/**
@@ -5337,8 +4884,7 @@ import java.util.Map;
*/
public final class SystemTopicsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* SystemTopics_CreateOrUpdate.json
*/
/**
@@ -5353,7 +4899,7 @@ public final class SystemTopicsCreateOrUpdateSamples {
.withExistingResourceGroup("examplerg")
.withTags(mapOf("tag1", "value1", "tag2", "value2"))
.withSource(
- "/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/azureeventgridrunnerrgcentraluseuap/providers/microsoft.storage/storageaccounts/pubstgrunnerb71cd29e")
+ "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/azureeventgridrunnerrgcentraluseuap/providers/microsoft.storage/storageaccounts/pubstgrunnerb71cd29e")
.withTopicType("microsoft.storage.storageaccounts")
.create();
}
@@ -5381,8 +4927,7 @@ public final class SystemTopicsCreateOrUpdateSamples {
public final class SystemTopicsDeleteSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * SystemTopics_Delete.json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/SystemTopics_Delete.json
*/
/**
* Sample code: SystemTopics_Delete.
@@ -5404,8 +4949,7 @@ public final class SystemTopicsDeleteSamples {
public final class SystemTopicsGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/SystemTopics_Get
- * .json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/SystemTopics_Get.json
*/
/**
* Sample code: SystemTopics_Get.
@@ -5427,8 +4971,7 @@ public final class SystemTopicsGetByResourceGroupSamples {
*/
public final class SystemTopicsListSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* SystemTopics_ListBySubscription.json
*/
/**
@@ -5450,8 +4993,7 @@ public final class SystemTopicsListSamples {
*/
public final class SystemTopicsListByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* SystemTopics_ListByResourceGroup.json
*/
/**
@@ -5478,8 +5020,7 @@ import java.util.Map;
public final class SystemTopicsUpdateSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * SystemTopics_Update.json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/SystemTopics_Update.json
*/
/**
* Sample code: SystemTopics_Update.
@@ -5518,8 +5059,7 @@ import com.azure.resourcemanager.eventgrid.models.WebhookEventSubscriptionDestin
*/
public final class TopicEventSubscriptionsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* TopicEventSubscriptions_CreateOrUpdate.json
*/
/**
@@ -5549,8 +5089,7 @@ public final class TopicEventSubscriptionsCreateOrUpdateSamples {
*/
public final class TopicEventSubscriptionsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* TopicEventSubscriptions_Delete.json
*/
/**
@@ -5560,7 +5099,7 @@ public final class TopicEventSubscriptionsDeleteSamples {
*/
public static void topicEventSubscriptionsDelete(com.azure.resourcemanager.eventgrid.EventGridManager manager) {
manager.topicEventSubscriptions()
- .delete("examplerg", "exampleTopic1", "examplesubscription1", com.azure.core.util.Context.NONE);
+ .delete("examplerg", "exampleTopic", "examplesubscription", com.azure.core.util.Context.NONE);
}
}
```
@@ -5573,8 +5112,7 @@ public final class TopicEventSubscriptionsDeleteSamples {
*/
public final class TopicEventSubscriptionsGetSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* TopicEventSubscriptions_Get.json
*/
/**
@@ -5597,8 +5135,7 @@ public final class TopicEventSubscriptionsGetSamples {
*/
public final class TopicEventSubscriptionsGetDeliveryAttributesSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* TopicEventSubscriptions_GetDeliveryAttributes.json
*/
/**
@@ -5623,8 +5160,7 @@ public final class TopicEventSubscriptionsGetDeliveryAttributesSamples {
*/
public final class TopicEventSubscriptionsGetFullUrlSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* TopicEventSubscriptions_GetFullUrl.json
*/
/**
@@ -5648,8 +5184,7 @@ public final class TopicEventSubscriptionsGetFullUrlSamples {
*/
public final class TopicEventSubscriptionsListSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* TopicEventSubscriptions_List.json
*/
/**
@@ -5677,8 +5212,7 @@ import java.util.Arrays;
*/
public final class TopicEventSubscriptionsUpdateSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* TopicEventSubscriptions_Update.json
*/
/**
@@ -5712,8 +5246,7 @@ import java.util.Arrays;
*/
public final class TopicSpacesCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* TopicSpaces_CreateOrUpdate.json
*/
/**
@@ -5740,8 +5273,7 @@ public final class TopicSpacesCreateOrUpdateSamples {
public final class TopicSpacesDeleteSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * TopicSpaces_Delete.json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/TopicSpaces_Delete.json
*/
/**
* Sample code: TopicSpaces_Delete.
@@ -5764,8 +5296,7 @@ public final class TopicSpacesDeleteSamples {
public final class TopicSpacesGetSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/TopicSpaces_Get.
- * json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/TopicSpaces_Get.json
*/
/**
* Sample code: TopicSpaces_Get.
@@ -5788,8 +5319,7 @@ public final class TopicSpacesGetSamples {
*/
public final class TopicSpacesListByNamespaceSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* TopicSpaces_ListByNamespace.json
*/
/**
@@ -5813,8 +5343,7 @@ public final class TopicSpacesListByNamespaceSamples {
public final class TopicTypesGetSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/TopicTypes_Get.
- * json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/TopicTypes_Get.json
*/
/**
* Sample code: TopicTypes_Get.
@@ -5836,8 +5365,7 @@ public final class TopicTypesGetSamples {
public final class TopicTypesListSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/TopicTypes_List.
- * json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/TopicTypes_List.json
*/
/**
* Sample code: TopicTypes_List.
@@ -5859,8 +5387,8 @@ public final class TopicTypesListSamples {
public final class TopicTypesListEventTypesSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * TopicTypes_ListEventTypes.json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/TopicTypes_ListEventTypes
+ * .json
*/
/**
* Sample code: TopicTypes_ListEventTypes.
@@ -5876,12 +5404,9 @@ public final class TopicTypesListEventTypesSamples {
### Topics_CreateOrUpdate
```java
-import com.azure.resourcemanager.eventgrid.models.ExtendedLocation;
import com.azure.resourcemanager.eventgrid.models.InboundIpRule;
-import com.azure.resourcemanager.eventgrid.models.InputSchema;
import com.azure.resourcemanager.eventgrid.models.IpActionType;
import com.azure.resourcemanager.eventgrid.models.PublicNetworkAccess;
-import com.azure.resourcemanager.eventgrid.models.ResourceKind;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
@@ -5892,8 +5417,8 @@ import java.util.Map;
public final class TopicsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * Topics_CreateOrUpdate.json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/Topics_CreateOrUpdate.
+ * json
*/
/**
* Sample code: Topics_CreateOrUpdate.
@@ -5913,30 +5438,6 @@ public final class TopicsCreateOrUpdateSamples {
.create();
}
- /*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * Topics_CreateOrUpdateForAzureArc.json
- */
- /**
- * Sample code: Topics_CreateOrUpdateForAzureArc.
- *
- * @param manager Entry point to EventGridManager.
- */
- public static void topicsCreateOrUpdateForAzureArc(com.azure.resourcemanager.eventgrid.EventGridManager manager) {
- manager.topics()
- .define("exampletopic1")
- .withRegion("westus2")
- .withExistingResourceGroup("examplerg")
- .withTags(mapOf("tag1", "value1", "tag2", "value2"))
- .withKind(ResourceKind.AZURE_ARC)
- .withExtendedLocation(new ExtendedLocation().withName(
- "/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourcegroups/examplerg/providers/Microsoft.ExtendedLocation/CustomLocations/exampleCustomLocation")
- .withType("CustomLocation"))
- .withInputSchema(InputSchema.CLOUD_EVENT_SCHEMA_V1_0)
- .create();
- }
-
// Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
@@ -5960,8 +5461,7 @@ public final class TopicsCreateOrUpdateSamples {
public final class TopicsDeleteSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Topics_Delete.
- * json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/Topics_Delete.json
*/
/**
* Sample code: Topics_Delete.
@@ -5969,7 +5469,7 @@ public final class TopicsDeleteSamples {
* @param manager Entry point to EventGridManager.
*/
public static void topicsDelete(com.azure.resourcemanager.eventgrid.EventGridManager manager) {
- manager.topics().delete("examplerg1", "exampletopic1", com.azure.core.util.Context.NONE);
+ manager.topics().delete("examplerg", "exampletopic", com.azure.core.util.Context.NONE);
}
}
```
@@ -5983,7 +5483,7 @@ public final class TopicsDeleteSamples {
public final class TopicsGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Topics_Get.json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/Topics_Get.json
*/
/**
* Sample code: Topics_Get.
@@ -6005,8 +5505,8 @@ public final class TopicsGetByResourceGroupSamples {
public final class TopicsListSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * Topics_ListBySubscription.json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/Topics_ListBySubscription
+ * .json
*/
/**
* Sample code: Topics_ListBySubscription.
@@ -6027,8 +5527,7 @@ public final class TopicsListSamples {
*/
public final class TopicsListByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* Topics_ListByResourceGroup.json
*/
/**
@@ -6051,8 +5550,8 @@ public final class TopicsListByResourceGroupSamples {
public final class TopicsListEventTypesSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * Topics_ListEventTypes.json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/Topics_ListEventTypes.
+ * json
*/
/**
* Sample code: Topics_ListEventTypes.
@@ -6075,8 +5574,7 @@ public final class TopicsListEventTypesSamples {
*/
public final class TopicsListSharedAccessKeysSamples {
/*
- * x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
+ * x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/
* Topics_ListSharedAccessKeys.json
*/
/**
@@ -6102,8 +5600,7 @@ import com.azure.resourcemanager.eventgrid.models.TopicRegenerateKeyRequest;
public final class TopicsRegenerateKeySamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * Topics_RegenerateKey.json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/Topics_RegenerateKey.json
*/
/**
* Sample code: Topics_RegenerateKey.
@@ -6135,8 +5632,7 @@ import java.util.Map;
public final class TopicsUpdateSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/Topics_Update.
- * json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/Topics_Update.json
*/
/**
* Sample code: Topics_Update.
@@ -6179,8 +5675,7 @@ public final class TopicsUpdateSamples {
public final class VerifiedPartnersGetSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * VerifiedPartners_Get.json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/VerifiedPartners_Get.json
*/
/**
* Sample code: VerifiedPartners_Get.
@@ -6202,8 +5697,8 @@ public final class VerifiedPartnersGetSamples {
public final class VerifiedPartnersListSamples {
/*
* x-ms-original-file:
- * specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/
- * VerifiedPartners_List.json
+ * specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2025-02-15/examples/VerifiedPartners_List.
+ * json
*/
/**
* Sample code: VerifiedPartners_List.
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/pom.xml b/sdk/eventgrid/azure-resourcemanager-eventgrid/pom.xml
index 2689ecf4d8e9..e845435cad4f 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/pom.xml
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/pom.xml
@@ -18,7 +18,7 @@
jar
Microsoft Azure SDK for EventGrid Management
- This package contains Microsoft Azure SDK for EventGrid Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure EventGrid Management Client. Package tag package-2024-06-preview.
+ This package contains Microsoft Azure SDK for EventGrid Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure EventGrid Management Client. Package tag package-2025-02.
https://github.com/Azure/azure-sdk-for-java
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 2338b9af943a..a45a0bfc99f7 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
@@ -38,10 +38,8 @@
import com.azure.resourcemanager.eventgrid.implementation.NamespaceTopicEventSubscriptionsImpl;
import com.azure.resourcemanager.eventgrid.implementation.NamespaceTopicsImpl;
import com.azure.resourcemanager.eventgrid.implementation.NamespacesImpl;
-import com.azure.resourcemanager.eventgrid.implementation.NetworkSecurityPerimeterConfigurationsImpl;
import com.azure.resourcemanager.eventgrid.implementation.OperationsImpl;
import com.azure.resourcemanager.eventgrid.implementation.PartnerConfigurationsImpl;
-import com.azure.resourcemanager.eventgrid.implementation.PartnerDestinationsImpl;
import com.azure.resourcemanager.eventgrid.implementation.PartnerNamespacesImpl;
import com.azure.resourcemanager.eventgrid.implementation.PartnerRegistrationsImpl;
import com.azure.resourcemanager.eventgrid.implementation.PartnerTopicEventSubscriptionsImpl;
@@ -69,10 +67,8 @@
import com.azure.resourcemanager.eventgrid.models.NamespaceTopicEventSubscriptions;
import com.azure.resourcemanager.eventgrid.models.NamespaceTopics;
import com.azure.resourcemanager.eventgrid.models.Namespaces;
-import com.azure.resourcemanager.eventgrid.models.NetworkSecurityPerimeterConfigurations;
import com.azure.resourcemanager.eventgrid.models.Operations;
import com.azure.resourcemanager.eventgrid.models.PartnerConfigurations;
-import com.azure.resourcemanager.eventgrid.models.PartnerDestinations;
import com.azure.resourcemanager.eventgrid.models.PartnerNamespaces;
import com.azure.resourcemanager.eventgrid.models.PartnerRegistrations;
import com.azure.resourcemanager.eventgrid.models.PartnerTopicEventSubscriptions;
@@ -111,17 +107,17 @@ public final class EventGridManager {
private DomainTopics domainTopics;
- private DomainTopicEventSubscriptions domainTopicEventSubscriptions;
-
private TopicEventSubscriptions topicEventSubscriptions;
private DomainEventSubscriptions domainEventSubscriptions;
+ private NamespaceTopicEventSubscriptions namespaceTopicEventSubscriptions;
+
private EventSubscriptions eventSubscriptions;
- private SystemTopicEventSubscriptions systemTopicEventSubscriptions;
+ private DomainTopicEventSubscriptions domainTopicEventSubscriptions;
- private NamespaceTopicEventSubscriptions namespaceTopicEventSubscriptions;
+ private SystemTopicEventSubscriptions systemTopicEventSubscriptions;
private PartnerTopicEventSubscriptions partnerTopicEventSubscriptions;
@@ -131,9 +127,9 @@ public final class EventGridManager {
private Operations operations;
- private PartnerConfigurations partnerConfigurations;
+ private Topics topics;
- private PartnerDestinations partnerDestinations;
+ private PartnerConfigurations partnerConfigurations;
private PartnerNamespaces partnerNamespaces;
@@ -141,8 +137,6 @@ public final class EventGridManager {
private PartnerTopics partnerTopics;
- private NetworkSecurityPerimeterConfigurations networkSecurityPerimeterConfigurations;
-
private PermissionBindings permissionBindings;
private PrivateEndpointConnections privateEndpointConnections;
@@ -151,8 +145,6 @@ public final class EventGridManager {
private SystemTopics systemTopics;
- private Topics topics;
-
private ExtensionTopics extensionTopics;
private TopicSpaces topicSpaces;
@@ -325,7 +317,7 @@ public EventGridManager authenticate(TokenCredential credential, AzureProfile pr
.append("-")
.append("com.azure.resourcemanager.eventgrid")
.append("/")
- .append("1.2.0-beta.7");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
@@ -443,19 +435,6 @@ public DomainTopics domainTopics() {
return domainTopics;
}
- /**
- * Gets the resource collection API of DomainTopicEventSubscriptions.
- *
- * @return Resource collection API of DomainTopicEventSubscriptions.
- */
- public DomainTopicEventSubscriptions domainTopicEventSubscriptions() {
- if (this.domainTopicEventSubscriptions == null) {
- this.domainTopicEventSubscriptions
- = new DomainTopicEventSubscriptionsImpl(clientObject.getDomainTopicEventSubscriptions(), this);
- }
- return domainTopicEventSubscriptions;
- }
-
/**
* Gets the resource collection API of TopicEventSubscriptions. It manages EventSubscription.
*
@@ -482,6 +461,19 @@ public DomainEventSubscriptions domainEventSubscriptions() {
return domainEventSubscriptions;
}
+ /**
+ * Gets the resource collection API of NamespaceTopicEventSubscriptions. It manages Subscription.
+ *
+ * @return Resource collection API of NamespaceTopicEventSubscriptions.
+ */
+ public NamespaceTopicEventSubscriptions namespaceTopicEventSubscriptions() {
+ if (this.namespaceTopicEventSubscriptions == null) {
+ this.namespaceTopicEventSubscriptions
+ = new NamespaceTopicEventSubscriptionsImpl(clientObject.getNamespaceTopicEventSubscriptions(), this);
+ }
+ return namespaceTopicEventSubscriptions;
+ }
+
/**
* Gets the resource collection API of EventSubscriptions.
*
@@ -494,6 +486,19 @@ public EventSubscriptions eventSubscriptions() {
return eventSubscriptions;
}
+ /**
+ * Gets the resource collection API of DomainTopicEventSubscriptions.
+ *
+ * @return Resource collection API of DomainTopicEventSubscriptions.
+ */
+ public DomainTopicEventSubscriptions domainTopicEventSubscriptions() {
+ if (this.domainTopicEventSubscriptions == null) {
+ this.domainTopicEventSubscriptions
+ = new DomainTopicEventSubscriptionsImpl(clientObject.getDomainTopicEventSubscriptions(), this);
+ }
+ return domainTopicEventSubscriptions;
+ }
+
/**
* Gets the resource collection API of SystemTopicEventSubscriptions.
*
@@ -507,19 +512,6 @@ public SystemTopicEventSubscriptions systemTopicEventSubscriptions() {
return systemTopicEventSubscriptions;
}
- /**
- * Gets the resource collection API of NamespaceTopicEventSubscriptions. It manages Subscription.
- *
- * @return Resource collection API of NamespaceTopicEventSubscriptions.
- */
- public NamespaceTopicEventSubscriptions namespaceTopicEventSubscriptions() {
- if (this.namespaceTopicEventSubscriptions == null) {
- this.namespaceTopicEventSubscriptions
- = new NamespaceTopicEventSubscriptionsImpl(clientObject.getNamespaceTopicEventSubscriptions(), this);
- }
- return namespaceTopicEventSubscriptions;
- }
-
/**
* Gets the resource collection API of PartnerTopicEventSubscriptions.
*
@@ -570,27 +562,27 @@ public Operations operations() {
}
/**
- * Gets the resource collection API of PartnerConfigurations.
+ * Gets the resource collection API of Topics. It manages Topic.
*
- * @return Resource collection API of PartnerConfigurations.
+ * @return Resource collection API of Topics.
*/
- public PartnerConfigurations partnerConfigurations() {
- if (this.partnerConfigurations == null) {
- this.partnerConfigurations = new PartnerConfigurationsImpl(clientObject.getPartnerConfigurations(), this);
+ public Topics topics() {
+ if (this.topics == null) {
+ this.topics = new TopicsImpl(clientObject.getTopics(), this);
}
- return partnerConfigurations;
+ return topics;
}
/**
- * Gets the resource collection API of PartnerDestinations. It manages PartnerDestination.
+ * Gets the resource collection API of PartnerConfigurations.
*
- * @return Resource collection API of PartnerDestinations.
+ * @return Resource collection API of PartnerConfigurations.
*/
- public PartnerDestinations partnerDestinations() {
- if (this.partnerDestinations == null) {
- this.partnerDestinations = new PartnerDestinationsImpl(clientObject.getPartnerDestinations(), this);
+ public PartnerConfigurations partnerConfigurations() {
+ if (this.partnerConfigurations == null) {
+ this.partnerConfigurations = new PartnerConfigurationsImpl(clientObject.getPartnerConfigurations(), this);
}
- return partnerDestinations;
+ return partnerConfigurations;
}
/**
@@ -629,19 +621,6 @@ public PartnerTopics partnerTopics() {
return partnerTopics;
}
- /**
- * Gets the resource collection API of NetworkSecurityPerimeterConfigurations.
- *
- * @return Resource collection API of NetworkSecurityPerimeterConfigurations.
- */
- public NetworkSecurityPerimeterConfigurations networkSecurityPerimeterConfigurations() {
- if (this.networkSecurityPerimeterConfigurations == null) {
- this.networkSecurityPerimeterConfigurations = new NetworkSecurityPerimeterConfigurationsImpl(
- clientObject.getNetworkSecurityPerimeterConfigurations(), this);
- }
- return networkSecurityPerimeterConfigurations;
- }
-
/**
* Gets the resource collection API of PermissionBindings. It manages PermissionBinding.
*
@@ -691,18 +670,6 @@ public SystemTopics systemTopics() {
return systemTopics;
}
- /**
- * Gets the resource collection API of Topics. It manages Topic.
- *
- * @return Resource collection API of Topics.
- */
- public Topics topics() {
- if (this.topics == null) {
- this.topics = new TopicsImpl(clientObject.getTopics(), this);
- }
- return topics;
- }
-
/**
* Gets the resource collection API of ExtensionTopics.
*
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 30d395925e87..08db51948397 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
@@ -20,43 +20,6 @@
* An instance of this class provides access to all the operations defined in DomainTopicEventSubscriptionsClient.
*/
public interface DomainTopicEventSubscriptionsClient {
- /**
- * 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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getDeliveryAttributesWithResponse(String resourceGroupName,
- String domainName, String topicName, String eventSubscriptionName, Context context);
-
- /**
- * 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.
- * @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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DeliveryAttributeListResultInner getDeliveryAttributes(String resourceGroupName, String domainName,
- String topicName, String eventSubscriptionName);
-
/**
* Get a nested event subscription for domain topic.
*
@@ -407,4 +370,41 @@ EventSubscriptionFullUrlInner getFullUrl(String resourceGroupName, String domain
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String domainName, String topicName,
String filter, Integer top, Context context);
+
+ /**
+ * 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}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getDeliveryAttributesWithResponse(String resourceGroupName,
+ String domainName, String topicName, String eventSubscriptionName, Context context);
+
+ /**
+ * 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.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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/EventGridManagementClient.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/EventGridManagementClient.java
index 6c64aea9724d..e7ebcda2962e 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/EventGridManagementClient.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/EventGridManagementClient.java
@@ -89,13 +89,6 @@ public interface EventGridManagementClient {
*/
DomainTopicsClient getDomainTopics();
- /**
- * Gets the DomainTopicEventSubscriptionsClient object to access its operations.
- *
- * @return the DomainTopicEventSubscriptionsClient object.
- */
- DomainTopicEventSubscriptionsClient getDomainTopicEventSubscriptions();
-
/**
* Gets the TopicEventSubscriptionsClient object to access its operations.
*
@@ -110,6 +103,13 @@ public interface EventGridManagementClient {
*/
DomainEventSubscriptionsClient getDomainEventSubscriptions();
+ /**
+ * Gets the NamespaceTopicEventSubscriptionsClient object to access its operations.
+ *
+ * @return the NamespaceTopicEventSubscriptionsClient object.
+ */
+ NamespaceTopicEventSubscriptionsClient getNamespaceTopicEventSubscriptions();
+
/**
* Gets the EventSubscriptionsClient object to access its operations.
*
@@ -118,18 +118,18 @@ public interface EventGridManagementClient {
EventSubscriptionsClient getEventSubscriptions();
/**
- * Gets the SystemTopicEventSubscriptionsClient object to access its operations.
+ * Gets the DomainTopicEventSubscriptionsClient object to access its operations.
*
- * @return the SystemTopicEventSubscriptionsClient object.
+ * @return the DomainTopicEventSubscriptionsClient object.
*/
- SystemTopicEventSubscriptionsClient getSystemTopicEventSubscriptions();
+ DomainTopicEventSubscriptionsClient getDomainTopicEventSubscriptions();
/**
- * Gets the NamespaceTopicEventSubscriptionsClient object to access its operations.
+ * Gets the SystemTopicEventSubscriptionsClient object to access its operations.
*
- * @return the NamespaceTopicEventSubscriptionsClient object.
+ * @return the SystemTopicEventSubscriptionsClient object.
*/
- NamespaceTopicEventSubscriptionsClient getNamespaceTopicEventSubscriptions();
+ SystemTopicEventSubscriptionsClient getSystemTopicEventSubscriptions();
/**
* Gets the PartnerTopicEventSubscriptionsClient object to access its operations.
@@ -160,18 +160,18 @@ public interface EventGridManagementClient {
OperationsClient getOperations();
/**
- * Gets the PartnerConfigurationsClient object to access its operations.
+ * Gets the TopicsClient object to access its operations.
*
- * @return the PartnerConfigurationsClient object.
+ * @return the TopicsClient object.
*/
- PartnerConfigurationsClient getPartnerConfigurations();
+ TopicsClient getTopics();
/**
- * Gets the PartnerDestinationsClient object to access its operations.
+ * Gets the PartnerConfigurationsClient object to access its operations.
*
- * @return the PartnerDestinationsClient object.
+ * @return the PartnerConfigurationsClient object.
*/
- PartnerDestinationsClient getPartnerDestinations();
+ PartnerConfigurationsClient getPartnerConfigurations();
/**
* Gets the PartnerNamespacesClient object to access its operations.
@@ -194,13 +194,6 @@ public interface EventGridManagementClient {
*/
PartnerTopicsClient getPartnerTopics();
- /**
- * Gets the NetworkSecurityPerimeterConfigurationsClient object to access its operations.
- *
- * @return the NetworkSecurityPerimeterConfigurationsClient object.
- */
- NetworkSecurityPerimeterConfigurationsClient getNetworkSecurityPerimeterConfigurations();
-
/**
* Gets the PermissionBindingsClient object to access its operations.
*
@@ -229,13 +222,6 @@ public interface EventGridManagementClient {
*/
SystemTopicsClient getSystemTopics();
- /**
- * Gets the TopicsClient object to access its operations.
- *
- * @return the TopicsClient object.
- */
- TopicsClient getTopics();
-
/**
* Gets the ExtensionTopicsClient object to access its operations.
*
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 1bf427df4875..92c736f7b302 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
@@ -20,52 +20,6 @@
* An instance of this class provides access to all the operations defined in EventSubscriptionsClient.
*/
public interface EventSubscriptionsClient {
- /**
- * 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
- * '/subscriptions/{subscriptionId}/' for a subscription,
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
- * for a resource, and
- * '/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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getDeliveryAttributesWithResponse(String scope,
- String eventSubscriptionName, Context context);
-
- /**
- * 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
- * '/subscriptions/{subscriptionId}/' for a subscription,
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
- * for a resource, and
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
- * for an EventGrid topic.
- * @param eventSubscriptionName Name of the event subscription.
- * @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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DeliveryAttributeListResultInner getDeliveryAttributes(String scope, String eventSubscriptionName);
-
/**
* Get an event subscription.
*
@@ -841,4 +795,50 @@ PagedIterable listByDomainTopic(String resourceGroupName
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByDomainTopic(String resourceGroupName, String domainName,
String topicName, String filter, Integer top, Context context);
+
+ /**
+ * 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
+ * '/subscriptions/{subscriptionId}/' for a subscription,
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
+ * for a resource, and
+ * '/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}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getDeliveryAttributesWithResponse(String scope,
+ String eventSubscriptionName, Context context);
+
+ /**
+ * 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
+ * '/subscriptions/{subscriptionId}/' for a subscription,
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
+ * for a resource, and
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
+ * for an EventGrid topic.
+ * @param eventSubscriptionName Name of the event subscription.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeliveryAttributeListResultInner getDeliveryAttributes(String scope, String eventSubscriptionName);
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/NetworkSecurityPerimeterConfigurationsClient.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/NetworkSecurityPerimeterConfigurationsClient.java
deleted file mode 100644
index c3f2db6d09fd..000000000000
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/NetworkSecurityPerimeterConfigurationsClient.java
+++ /dev/null
@@ -1,185 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.eventgrid.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.eventgrid.fluent.models.NetworkSecurityPerimeterConfigurationInner;
-import com.azure.resourcemanager.eventgrid.models.NetworkSecurityPerimeterResourceType;
-
-/**
- * An instance of this class provides access to all the operations defined in
- * NetworkSecurityPerimeterConfigurationsClient.
- */
-public interface NetworkSecurityPerimeterConfigurationsClient {
- /**
- * Get a specific network security perimeter configuration.
- *
- * Get a specific network security perimeter configuration with a topic or domain.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param resourceType The type of the resource. This can be either \'topics\', or \'domains\'.
- * @param resourceName The name of the resource (namely, either, the topic name or domain name).
- * @param perimeterGuid Unique identifier for perimeter.
- * @param associationName Association name to association network security perimeter resource to profile.
- * @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 network security perimeter configuration with a topic or domain along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName,
- NetworkSecurityPerimeterResourceType resourceType, String resourceName, String perimeterGuid,
- String associationName, Context context);
-
- /**
- * Get a specific network security perimeter configuration.
- *
- * Get a specific network security perimeter configuration with a topic or domain.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param resourceType The type of the resource. This can be either \'topics\', or \'domains\'.
- * @param resourceName The name of the resource (namely, either, the topic name or domain name).
- * @param perimeterGuid Unique identifier for perimeter.
- * @param associationName Association name to association network security perimeter resource to profile.
- * @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 network security perimeter configuration with a topic or domain.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- NetworkSecurityPerimeterConfigurationInner get(String resourceGroupName,
- NetworkSecurityPerimeterResourceType resourceType, String resourceName, String perimeterGuid,
- String associationName);
-
- /**
- * Reconcile a specific network security perimeter configuration for a given network security perimeter association.
- *
- * Reconcile a specific network security perimeter configuration for a given network security perimeter association
- * with a topic or domain.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param resourceType The type of the resource. This can be either \'topics\' or \'domains\'.
- * @param resourceName The name of the resource (namely, either, the topic name or domain name).
- * @param perimeterGuid Unique identifier for perimeter.
- * @param associationName Association name to association network security perimeter resource to profile.
- * @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 SyncPoller} for polling of network security perimeter configuration.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, NetworkSecurityPerimeterConfigurationInner>
- beginReconcile(String resourceGroupName, NetworkSecurityPerimeterResourceType resourceType, String resourceName,
- String perimeterGuid, String associationName);
-
- /**
- * Reconcile a specific network security perimeter configuration for a given network security perimeter association.
- *
- * Reconcile a specific network security perimeter configuration for a given network security perimeter association
- * with a topic or domain.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param resourceType The type of the resource. This can be either \'topics\' or \'domains\'.
- * @param resourceName The name of the resource (namely, either, the topic name or domain name).
- * @param perimeterGuid Unique identifier for perimeter.
- * @param associationName Association name to association network security perimeter resource to profile.
- * @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 SyncPoller} for polling of network security perimeter configuration.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, NetworkSecurityPerimeterConfigurationInner>
- beginReconcile(String resourceGroupName, NetworkSecurityPerimeterResourceType resourceType, String resourceName,
- String perimeterGuid, String associationName, Context context);
-
- /**
- * Reconcile a specific network security perimeter configuration for a given network security perimeter association.
- *
- * Reconcile a specific network security perimeter configuration for a given network security perimeter association
- * with a topic or domain.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param resourceType The type of the resource. This can be either \'topics\' or \'domains\'.
- * @param resourceName The name of the resource (namely, either, the topic name or domain name).
- * @param perimeterGuid Unique identifier for perimeter.
- * @param associationName Association name to association network security perimeter resource to profile.
- * @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 network security perimeter configuration.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- NetworkSecurityPerimeterConfigurationInner reconcile(String resourceGroupName,
- NetworkSecurityPerimeterResourceType resourceType, String resourceName, String perimeterGuid,
- String associationName);
-
- /**
- * Reconcile a specific network security perimeter configuration for a given network security perimeter association.
- *
- * Reconcile a specific network security perimeter configuration for a given network security perimeter association
- * with a topic or domain.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param resourceType The type of the resource. This can be either \'topics\' or \'domains\'.
- * @param resourceName The name of the resource (namely, either, the topic name or domain name).
- * @param perimeterGuid Unique identifier for perimeter.
- * @param associationName Association name to association network security perimeter resource to profile.
- * @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 network security perimeter configuration.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- NetworkSecurityPerimeterConfigurationInner reconcile(String resourceGroupName,
- NetworkSecurityPerimeterResourceType resourceType, String resourceName, String perimeterGuid,
- String associationName, Context context);
-
- /**
- * Get all network security perimeter configurations for resource.
- *
- * Get all network security perimeter configurations associated with a topic or domain.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param resourceType The type of the resource. This can be either \'topics\' or \'domains\'.
- * @param resourceName The name of the resource (namely, either, the topic name or domain name).
- * @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 network security perimeter configurations associated with a topic or domain as paginated response
- * with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName,
- NetworkSecurityPerimeterResourceType resourceType, String resourceName);
-
- /**
- * Get all network security perimeter configurations for resource.
- *
- * Get all network security perimeter configurations associated with a topic or domain.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param resourceType The type of the resource. This can be either \'topics\' or \'domains\'.
- * @param resourceName The name of the resource (namely, either, the topic name or domain name).
- * @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 network security perimeter configurations associated with a topic or domain as paginated response
- * with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName,
- NetworkSecurityPerimeterResourceType resourceType, String resourceName, Context context);
-}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/PartnerDestinationsClient.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/PartnerDestinationsClient.java
deleted file mode 100644
index d53d678fb09a..000000000000
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/PartnerDestinationsClient.java
+++ /dev/null
@@ -1,357 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.eventgrid.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.eventgrid.fluent.models.PartnerDestinationInner;
-import com.azure.resourcemanager.eventgrid.models.PartnerDestinationUpdateParameters;
-
-/**
- * An instance of this class provides access to all the operations defined in PartnerDestinationsClient.
- */
-public interface PartnerDestinationsClient {
- /**
- * Get a partner destination.
- *
- * Get properties of a partner destination.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @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 destination along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(String resourceGroupName,
- String partnerDestinationName, Context context);
-
- /**
- * Get a partner destination.
- *
- * Get properties of a partner destination.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @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 destination.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- PartnerDestinationInner getByResourceGroup(String resourceGroupName, String partnerDestinationName);
-
- /**
- * Create a partner destination.
- *
- * Asynchronously creates a new partner destination with the specified parameters.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @param partnerDestination Partner destination create 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 the {@link SyncPoller} for polling of event Grid Partner Destination.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, PartnerDestinationInner> beginCreateOrUpdate(
- String resourceGroupName, String partnerDestinationName, PartnerDestinationInner partnerDestination);
-
- /**
- * Create a partner destination.
- *
- * Asynchronously creates a new partner destination with the specified parameters.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @param partnerDestination Partner destination create 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 SyncPoller} for polling of event Grid Partner Destination.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, PartnerDestinationInner> beginCreateOrUpdate(
- String resourceGroupName, String partnerDestinationName, PartnerDestinationInner partnerDestination,
- Context context);
-
- /**
- * Create a partner destination.
- *
- * Asynchronously creates a new partner destination with the specified parameters.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @param partnerDestination Partner destination create 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 event Grid Partner Destination.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- PartnerDestinationInner createOrUpdate(String resourceGroupName, String partnerDestinationName,
- PartnerDestinationInner partnerDestination);
-
- /**
- * Create a partner destination.
- *
- * Asynchronously creates a new partner destination with the specified parameters.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @param partnerDestination Partner destination create 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 Destination.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- PartnerDestinationInner createOrUpdate(String resourceGroupName, String partnerDestinationName,
- PartnerDestinationInner partnerDestination, Context context);
-
- /**
- * Delete a partner destination.
- *
- * Delete existing partner destination.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @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 SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String partnerDestinationName);
-
- /**
- * Delete a partner destination.
- *
- * Delete existing partner destination.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @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 SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String partnerDestinationName,
- Context context);
-
- /**
- * Delete a partner destination.
- *
- * Delete existing partner destination.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String partnerDestinationName);
-
- /**
- * Delete a partner destination.
- *
- * Delete existing partner destination.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String partnerDestinationName, Context context);
-
- /**
- * Update a partner destination.
- *
- * Asynchronously updates a partner destination with the specified parameters.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @param partnerDestinationUpdateParameters Partner destination update 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 the {@link SyncPoller} for polling of event Grid Partner Destination.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, PartnerDestinationInner> beginUpdate(String resourceGroupName,
- String partnerDestinationName, PartnerDestinationUpdateParameters partnerDestinationUpdateParameters);
-
- /**
- * Update a partner destination.
- *
- * Asynchronously updates a partner destination with the specified parameters.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @param partnerDestinationUpdateParameters Partner destination 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 SyncPoller} for polling of event Grid Partner Destination.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, PartnerDestinationInner> beginUpdate(String resourceGroupName,
- String partnerDestinationName, PartnerDestinationUpdateParameters partnerDestinationUpdateParameters,
- Context context);
-
- /**
- * Update a partner destination.
- *
- * Asynchronously updates a partner destination with the specified parameters.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @param partnerDestinationUpdateParameters Partner destination update 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 event Grid Partner Destination.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- PartnerDestinationInner update(String resourceGroupName, String partnerDestinationName,
- PartnerDestinationUpdateParameters partnerDestinationUpdateParameters);
-
- /**
- * Update a partner destination.
- *
- * Asynchronously updates a partner destination with the specified parameters.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @param partnerDestinationUpdateParameters Partner destination 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 event Grid Partner Destination.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- PartnerDestinationInner update(String resourceGroupName, String partnerDestinationName,
- PartnerDestinationUpdateParameters partnerDestinationUpdateParameters, Context context);
-
- /**
- * List partner destinations under an Azure subscription.
- *
- * List all the partner destinations 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.
- * @return result of the List Partner Destinations operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
-
- /**
- * List partner destinations under an Azure subscription.
- *
- * List all the partner destinations 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' function
- * as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
- * operations are supported. The following is a valid filter example: $filter=contains(namE, 'PATTERN') and name ne
- * 'PATTERN-1'. The following is not a valid filter example: $filter=location eq 'westus'.
- * @param top The number of results to return per page for the list operation. Valid range for top parameter is 1 to
- * 100. If not specified, the default number of results to be returned is 20 items per page.
- * @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 result of the List Partner Destinations operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String filter, Integer top, Context context);
-
- /**
- * List partner destinations under a resource group.
- *
- * List all the partner destinations 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.
- * @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 result of the List Partner Destinations operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName);
-
- /**
- * List partner destinations under a resource group.
- *
- * List all the partner destinations 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
- * 'name' property only and with limited number of OData operations. These operations are: the 'contains' function
- * as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
- * operations are supported. The following is a valid filter example: $filter=contains(namE, 'PATTERN') and name ne
- * 'PATTERN-1'. The following is not a valid filter example: $filter=location eq 'westus'.
- * @param top The number of results to return per page for the list operation. Valid range for top parameter is 1 to
- * 100. If not specified, the default number of results to be returned is 20 items per page.
- * @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 result of the List Partner Destinations operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, String filter, Integer top,
- Context context);
-
- /**
- * Activate a partner destination.
- *
- * Activate a newly created partner destination.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @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 Destination along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response activateWithResponse(String resourceGroupName, String partnerDestinationName,
- Context context);
-
- /**
- * Activate a partner destination.
- *
- * Activate a newly created partner destination.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @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 Destination.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- PartnerDestinationInner activate(String resourceGroupName, String partnerDestinationName);
-}
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 a7ca8e1f09f8..f4bb82802b7e 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
@@ -20,41 +20,6 @@
* An instance of this class provides access to all the operations defined in SystemTopicEventSubscriptionsClient.
*/
public interface SystemTopicEventSubscriptionsClient {
- /**
- * 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.
- * @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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getDeliveryAttributesWithResponse(String resourceGroupName,
- String systemTopicName, String eventSubscriptionName, Context context);
-
- /**
- * 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.
- * @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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DeliveryAttributeListResultInner getDeliveryAttributes(String resourceGroupName, String systemTopicName,
- String eventSubscriptionName);
-
/**
* Get an event subscription of a system topic.
*
@@ -387,4 +352,39 @@ EventSubscriptionFullUrlInner getFullUrl(String resourceGroupName, String system
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listBySystemTopic(String resourceGroupName, String systemTopicName,
String filter, Integer top, Context context);
+
+ /**
+ * 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.
+ * @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}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getDeliveryAttributesWithResponse(String resourceGroupName,
+ String systemTopicName, String eventSubscriptionName, Context context);
+
+ /**
+ * 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.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeliveryAttributeListResultInner getDeliveryAttributes(String resourceGroupName, String systemTopicName,
+ String eventSubscriptionName);
}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/AzureADPartnerClientAuthenticationProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/AzureADPartnerClientAuthenticationProperties.java
deleted file mode 100644
index cb11cebd1f52..000000000000
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/AzureADPartnerClientAuthenticationProperties.java
+++ /dev/null
@@ -1,134 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.eventgrid.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import java.io.IOException;
-
-/**
- * Properties of an Azure Active Directory Partner Client Authentication.
- */
-@Fluent
-public final class AzureADPartnerClientAuthenticationProperties
- implements JsonSerializable {
- /*
- * The Azure Active Directory Tenant ID to get the access token that will be included as the bearer token in
- * delivery requests.
- */
- 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.
- */
- private String azureActiveDirectoryApplicationIdOrUri;
-
- /**
- * Creates an instance of AzureADPartnerClientAuthenticationProperties class.
- */
- public AzureADPartnerClientAuthenticationProperties() {
- }
-
- /**
- * Get the azureActiveDirectoryTenantId property: The Azure Active Directory Tenant ID to get the access token that
- * will be included as the bearer token in delivery requests.
- *
- * @return the azureActiveDirectoryTenantId value.
- */
- public String azureActiveDirectoryTenantId() {
- return this.azureActiveDirectoryTenantId;
- }
-
- /**
- * Set the azureActiveDirectoryTenantId property: The Azure Active Directory Tenant ID to get the access token that
- * will be included as the bearer token in delivery requests.
- *
- * @param azureActiveDirectoryTenantId the azureActiveDirectoryTenantId value to set.
- * @return the AzureADPartnerClientAuthenticationProperties object itself.
- */
- public AzureADPartnerClientAuthenticationProperties
- withAzureActiveDirectoryTenantId(String azureActiveDirectoryTenantId) {
- this.azureActiveDirectoryTenantId = azureActiveDirectoryTenantId;
- return this;
- }
-
- /**
- * Get the azureActiveDirectoryApplicationIdOrUri property: The Azure Active Directory Application ID or URI to get
- * the access token that will be included as the bearer token in delivery requests.
- *
- * @return the azureActiveDirectoryApplicationIdOrUri value.
- */
- public String azureActiveDirectoryApplicationIdOrUri() {
- return this.azureActiveDirectoryApplicationIdOrUri;
- }
-
- /**
- * Set the azureActiveDirectoryApplicationIdOrUri property: The Azure Active Directory Application ID or URI to get
- * the access token that will be included as the bearer token in delivery requests.
- *
- * @param azureActiveDirectoryApplicationIdOrUri the azureActiveDirectoryApplicationIdOrUri value to set.
- * @return the AzureADPartnerClientAuthenticationProperties object itself.
- */
- public AzureADPartnerClientAuthenticationProperties
- withAzureActiveDirectoryApplicationIdOrUri(String azureActiveDirectoryApplicationIdOrUri) {
- this.azureActiveDirectoryApplicationIdOrUri = azureActiveDirectoryApplicationIdOrUri;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("azureActiveDirectoryTenantId", this.azureActiveDirectoryTenantId);
- jsonWriter.writeStringField("azureActiveDirectoryApplicationIdOrUri",
- this.azureActiveDirectoryApplicationIdOrUri);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of AzureADPartnerClientAuthenticationProperties from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of AzureADPartnerClientAuthenticationProperties if the JsonReader was pointing to an instance
- * of it, or null if it was pointing to JSON null.
- * @throws IOException If an error occurs while reading the AzureADPartnerClientAuthenticationProperties.
- */
- public static AzureADPartnerClientAuthenticationProperties fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- AzureADPartnerClientAuthenticationProperties deserializedAzureADPartnerClientAuthenticationProperties
- = new AzureADPartnerClientAuthenticationProperties();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("azureActiveDirectoryTenantId".equals(fieldName)) {
- deserializedAzureADPartnerClientAuthenticationProperties.azureActiveDirectoryTenantId
- = reader.getString();
- } else if ("azureActiveDirectoryApplicationIdOrUri".equals(fieldName)) {
- deserializedAzureADPartnerClientAuthenticationProperties.azureActiveDirectoryApplicationIdOrUri
- = reader.getString();
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedAzureADPartnerClientAuthenticationProperties;
- });
- }
-}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/CaCertificateInner.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/CaCertificateInner.java
index b2f97edddb40..b8b449ecfdc8 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/CaCertificateInner.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/CaCertificateInner.java
@@ -25,7 +25,7 @@ public final class CaCertificateInner extends ProxyResource {
private CaCertificateProperties innerProperties;
/*
- * The system metadata relating to the CaCertificate resource.
+ * The system metadata relating to the Event Grid resource.
*/
private SystemData systemData;
@@ -60,7 +60,7 @@ private CaCertificateProperties innerProperties() {
}
/**
- * Get the systemData property: The system metadata relating to the CaCertificate resource.
+ * Get the systemData property: The system metadata relating to the Event Grid resource.
*
* @return the systemData value.
*/
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 692a3cbcfef9..ab7c96fe005c 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
@@ -12,7 +12,6 @@
import com.azure.json.JsonWriter;
import com.azure.resourcemanager.eventgrid.models.ChannelProvisioningState;
import com.azure.resourcemanager.eventgrid.models.ChannelType;
-import com.azure.resourcemanager.eventgrid.models.PartnerDestinationInfo;
import com.azure.resourcemanager.eventgrid.models.PartnerTopicInfo;
import com.azure.resourcemanager.eventgrid.models.ReadinessState;
import java.io.IOException;
@@ -29,7 +28,7 @@ public final class ChannelInner extends ProxyResource {
private ChannelProperties innerProperties;
/*
- * The system metadata relating to Channel resource.
+ * The system metadata relating to the Event Grid resource.
*/
private SystemData systemData;
@@ -64,7 +63,7 @@ private ChannelProperties innerProperties() {
}
/**
- * Get the systemData property: The system metadata relating to Channel resource.
+ * Get the systemData property: The system metadata relating to the Event Grid resource.
*
* @return the systemData value.
*/
@@ -150,31 +149,6 @@ public ChannelInner withPartnerTopicInfo(PartnerTopicInfo partnerTopicInfo) {
return this;
}
- /**
- * Get the partnerDestinationInfo property: This property should be populated when channelType is PartnerDestination
- * and represents information about the partner destination resource corresponding to the channel.
- *
- * @return the partnerDestinationInfo value.
- */
- public PartnerDestinationInfo partnerDestinationInfo() {
- return this.innerProperties() == null ? null : this.innerProperties().partnerDestinationInfo();
- }
-
- /**
- * Set the partnerDestinationInfo property: This property should be populated when channelType is PartnerDestination
- * and represents information about the partner destination resource corresponding to the channel.
- *
- * @param partnerDestinationInfo the partnerDestinationInfo value to set.
- * @return the ChannelInner object itself.
- */
- public ChannelInner withPartnerDestinationInfo(PartnerDestinationInfo partnerDestinationInfo) {
- if (this.innerProperties() == null) {
- this.innerProperties = new ChannelProperties();
- }
- this.innerProperties().withPartnerDestinationInfo(partnerDestinationInfo);
- return this;
- }
-
/**
* Get the messageForActivation property: Context or helpful message that can be used during the approval process by
* the subscriber.
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 3260f46876d3..59e5b50aa78f 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
@@ -12,7 +12,6 @@
import com.azure.json.JsonWriter;
import com.azure.resourcemanager.eventgrid.models.ChannelProvisioningState;
import com.azure.resourcemanager.eventgrid.models.ChannelType;
-import com.azure.resourcemanager.eventgrid.models.PartnerDestinationInfo;
import com.azure.resourcemanager.eventgrid.models.PartnerTopicInfo;
import com.azure.resourcemanager.eventgrid.models.ReadinessState;
import java.io.IOException;
@@ -35,12 +34,6 @@ public final class ChannelProperties implements JsonSerializable CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
- } else if ("partnerDestinationInfo".equals(fieldName)) {
- deserializedChannelUpdateParametersProperties.partnerDestinationInfo
- = PartnerUpdateDestinationInfo.fromJson(reader);
} else if ("partnerTopicInfo".equals(fieldName)) {
deserializedChannelUpdateParametersProperties.partnerTopicInfo
= PartnerUpdateTopicInfo.fromJson(reader);
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ClientGroupInner.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ClientGroupInner.java
index cec3f2b3a3fd..8df3ba013b33 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ClientGroupInner.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ClientGroupInner.java
@@ -24,7 +24,7 @@ public final class ClientGroupInner extends ProxyResource {
private ClientGroupProperties innerProperties;
/*
- * The system metadata relating to the ClientGroup resource.
+ * The system metadata relating to the Event Grid resource.
*/
private SystemData systemData;
@@ -59,7 +59,7 @@ private ClientGroupProperties innerProperties() {
}
/**
- * Get the systemData property: The system metadata relating to the ClientGroup resource.
+ * Get the systemData property: The system metadata relating to the Event Grid resource.
*
* @return the systemData value.
*/
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ClientInner.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ClientInner.java
index ca4180ec398a..ba0c34042935 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ClientInner.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/ClientInner.java
@@ -27,7 +27,7 @@ public final class ClientInner extends ProxyResource {
private ClientProperties innerProperties;
/*
- * The system metadata relating to the Client resource.
+ * The system metadata relating to the Event Grid resource.
*/
private SystemData systemData;
@@ -62,7 +62,7 @@ private ClientProperties innerProperties() {
}
/**
- * Get the systemData property: The system metadata relating to the Client resource.
+ * Get the systemData property: The system metadata relating to the Event Grid resource.
*
* @return the systemData value.
*/
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 5d8a635219f0..e45157f67e25 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
@@ -18,7 +18,6 @@
import com.azure.resourcemanager.eventgrid.models.InputSchema;
import com.azure.resourcemanager.eventgrid.models.InputSchemaMapping;
import com.azure.resourcemanager.eventgrid.models.PublicNetworkAccess;
-import com.azure.resourcemanager.eventgrid.models.ResourceSku;
import com.azure.resourcemanager.eventgrid.models.TlsVersion;
import java.io.IOException;
import java.util.List;
@@ -34,18 +33,13 @@ public final class DomainInner extends Resource {
*/
private DomainProperties innerProperties;
- /*
- * The Sku pricing tier for the Event Grid Domain resource.
- */
- private ResourceSku sku;
-
/*
* Identity information for the Event Grid Domain resource.
*/
private IdentityInfo identity;
/*
- * The system metadata relating to the Event Grid Domain resource.
+ * The system metadata relating to the Event Grid resource.
*/
private SystemData systemData;
@@ -79,26 +73,6 @@ private DomainProperties innerProperties() {
return this.innerProperties;
}
- /**
- * Get the sku property: The Sku pricing tier for the Event Grid Domain resource.
- *
- * @return the sku value.
- */
- public ResourceSku sku() {
- return this.sku;
- }
-
- /**
- * Set the sku property: The Sku pricing tier for the Event Grid Domain resource.
- *
- * @param sku the sku value to set.
- * @return the DomainInner object itself.
- */
- public DomainInner withSku(ResourceSku sku) {
- this.sku = sku;
- return this;
- }
-
/**
* Get the identity property: Identity information for the Event Grid Domain resource.
*
@@ -120,7 +94,7 @@ public DomainInner withIdentity(IdentityInfo identity) {
}
/**
- * Get the systemData property: The system metadata relating to the Event Grid Domain resource.
+ * Get the systemData property: The system metadata relating to the Event Grid resource.
*
* @return the systemData value.
*/
@@ -521,9 +495,6 @@ public void validate() {
if (innerProperties() != null) {
innerProperties().validate();
}
- if (sku() != null) {
- sku().validate();
- }
if (identity() != null) {
identity().validate();
}
@@ -538,7 +509,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStringField("location", location());
jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeJsonField("properties", this.innerProperties);
- jsonWriter.writeJsonField("sku", this.sku);
jsonWriter.writeJsonField("identity", this.identity);
return jsonWriter.writeEndObject();
}
@@ -572,8 +542,6 @@ public static DomainInner fromJson(JsonReader jsonReader) throws IOException {
deserializedDomainInner.withTags(tags);
} else if ("properties".equals(fieldName)) {
deserializedDomainInner.innerProperties = DomainProperties.fromJson(reader);
- } else if ("sku".equals(fieldName)) {
- deserializedDomainInner.sku = ResourceSku.fromJson(reader);
} else if ("identity".equals(fieldName)) {
deserializedDomainInner.identity = IdentityInfo.fromJson(reader);
} else if ("systemData".equals(fieldName)) {
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 761356477b9f..99475d92b49c 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
@@ -24,7 +24,7 @@ public final class DomainTopicInner extends ProxyResource {
private DomainTopicProperties innerProperties;
/*
- * The system metadata relating to Domain Topic resource.
+ * The system metadata relating to the Event Grid resource.
*/
private SystemData systemData;
@@ -59,7 +59,7 @@ private DomainTopicProperties innerProperties() {
}
/**
- * Get the systemData property: The system metadata relating to Domain Topic resource.
+ * Get the systemData property: The system metadata relating to the Event Grid resource.
*
* @return the systemData value.
*/
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 050432a1f380..97cdd1405fec 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
@@ -33,7 +33,7 @@ public final class EventSubscriptionInner extends ProxyResource {
private EventSubscriptionProperties innerProperties;
/*
- * The system metadata relating to Event Subscription resource.
+ * The system metadata relating to the Event Grid resource.
*/
private SystemData systemData;
@@ -68,7 +68,7 @@ private EventSubscriptionProperties innerProperties() {
}
/**
- * Get the systemData property: The system metadata relating to Event Subscription resource.
+ * Get the systemData property: The system metadata relating to the Event Grid resource.
*
* @return the systemData value.
*/
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 9ccfa277163f..33d6f77aad88 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
@@ -128,7 +128,7 @@ public EventTypeInner withDescription(String description) {
}
/**
- * Get the schemaUrl property: Url of the schema for this event type.
+ * Get the schemaUrl property: URL of the schema for this event type.
*
* @return the schemaUrl value.
*/
@@ -137,7 +137,7 @@ public String schemaUrl() {
}
/**
- * Set the schemaUrl property: Url of the schema for this event type.
+ * Set the schemaUrl property: URL of the schema for this event type.
*
* @param schemaUrl the schemaUrl value to set.
* @return the EventTypeInner object itself.
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 c94181f91799..48ede06add4d 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
@@ -27,7 +27,7 @@ public final class EventTypeProperties implements JsonSerializable provisioningIssues() {
- return this.innerProperties() == null ? null : this.innerProperties().provisioningIssues();
- }
-
- /**
- * Set the provisioningIssues property: Provisioning issues to reflect status when attempting to retrieve nsp
- * profile configuration.
- *
- * @param provisioningIssues the provisioningIssues value to set.
- * @return the NetworkSecurityPerimeterConfigurationInner object itself.
- */
- public NetworkSecurityPerimeterConfigurationInner
- withProvisioningIssues(List provisioningIssues) {
- if (this.innerProperties() == null) {
- this.innerProperties = new NetworkSecurityPerimeterConfigurationProperties();
- }
- this.innerProperties().withProvisioningIssues(provisioningIssues);
- return this;
- }
-
- /**
- * Get the networkSecurityPerimeter property: Perimeter info for nsp association.
- *
- * @return the networkSecurityPerimeter value.
- */
- public NetworkSecurityPerimeterInfo networkSecurityPerimeter() {
- return this.innerProperties() == null ? null : this.innerProperties().networkSecurityPerimeter();
- }
-
- /**
- * Set the networkSecurityPerimeter property: Perimeter info for nsp association.
- *
- * @param networkSecurityPerimeter the networkSecurityPerimeter value to set.
- * @return the NetworkSecurityPerimeterConfigurationInner object itself.
- */
- public NetworkSecurityPerimeterConfigurationInner
- withNetworkSecurityPerimeter(NetworkSecurityPerimeterInfo networkSecurityPerimeter) {
- if (this.innerProperties() == null) {
- this.innerProperties = new NetworkSecurityPerimeterConfigurationProperties();
- }
- this.innerProperties().withNetworkSecurityPerimeter(networkSecurityPerimeter);
- return this;
- }
-
- /**
- * Get the resourceAssociation property: Nsp association name and access mode of association.
- *
- * @return the resourceAssociation value.
- */
- public ResourceAssociation resourceAssociation() {
- return this.innerProperties() == null ? null : this.innerProperties().resourceAssociation();
- }
-
- /**
- * Set the resourceAssociation property: Nsp association name and access mode of association.
- *
- * @param resourceAssociation the resourceAssociation value to set.
- * @return the NetworkSecurityPerimeterConfigurationInner object itself.
- */
- public NetworkSecurityPerimeterConfigurationInner withResourceAssociation(ResourceAssociation resourceAssociation) {
- if (this.innerProperties() == null) {
- this.innerProperties = new NetworkSecurityPerimeterConfigurationProperties();
- }
- this.innerProperties().withResourceAssociation(resourceAssociation);
- return this;
- }
-
- /**
- * Get the profile property: Nsp profile configuration, access rules and diagnostic settings.
- *
- * @return the profile value.
- */
- public NetworkSecurityPerimeterConfigurationProfile profile() {
- return this.innerProperties() == null ? null : this.innerProperties().profile();
- }
-
- /**
- * Set the profile property: Nsp profile configuration, access rules and diagnostic settings.
- *
- * @param profile the profile value to set.
- * @return the NetworkSecurityPerimeterConfigurationInner object itself.
- */
- public NetworkSecurityPerimeterConfigurationInner
- withProfile(NetworkSecurityPerimeterConfigurationProfile profile) {
- if (this.innerProperties() == null) {
- this.innerProperties = new NetworkSecurityPerimeterConfigurationProperties();
- }
- this.innerProperties().withProfile(profile);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeJsonField("properties", this.innerProperties);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of NetworkSecurityPerimeterConfigurationInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of NetworkSecurityPerimeterConfigurationInner if the JsonReader was pointing to an instance
- * of it, or null if it was pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the NetworkSecurityPerimeterConfigurationInner.
- */
- public static NetworkSecurityPerimeterConfigurationInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- NetworkSecurityPerimeterConfigurationInner deserializedNetworkSecurityPerimeterConfigurationInner
- = new NetworkSecurityPerimeterConfigurationInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("id".equals(fieldName)) {
- deserializedNetworkSecurityPerimeterConfigurationInner.id = reader.getString();
- } else if ("name".equals(fieldName)) {
- deserializedNetworkSecurityPerimeterConfigurationInner.name = reader.getString();
- } else if ("type".equals(fieldName)) {
- deserializedNetworkSecurityPerimeterConfigurationInner.type = reader.getString();
- } else if ("properties".equals(fieldName)) {
- deserializedNetworkSecurityPerimeterConfigurationInner.innerProperties
- = NetworkSecurityPerimeterConfigurationProperties.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedNetworkSecurityPerimeterConfigurationInner;
- });
- }
-}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/NetworkSecurityPerimeterConfigurationIssuesProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/NetworkSecurityPerimeterConfigurationIssuesProperties.java
deleted file mode 100644
index 21c95de41d80..000000000000
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/NetworkSecurityPerimeterConfigurationIssuesProperties.java
+++ /dev/null
@@ -1,225 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.eventgrid.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.eventgrid.models.NetworkSecurityPerimeterConfigurationIssueSeverity;
-import com.azure.resourcemanager.eventgrid.models.NetworkSecurityPerimeterConfigurationIssueType;
-import java.io.IOException;
-import java.util.List;
-
-/**
- * Network security perimeter configuration issues properties.
- */
-@Fluent
-public final class NetworkSecurityPerimeterConfigurationIssuesProperties
- implements JsonSerializable {
- /*
- * Provisioning issue type.
- */
- private NetworkSecurityPerimeterConfigurationIssueType issueType;
-
- /*
- * Provisioning issue severity.
- */
- private NetworkSecurityPerimeterConfigurationIssueSeverity severity;
-
- /*
- * Provisioning issue description.
- */
- private String description;
-
- /*
- * ARM IDs of resources that can be associated to the same perimeter to remediate the issue.
- */
- private List suggestedResourceIds;
-
- /*
- * Access rules that can be added to the same profile to remediate the issue.
- */
- private List suggestedAccessRules;
-
- /**
- * Creates an instance of NetworkSecurityPerimeterConfigurationIssuesProperties class.
- */
- public NetworkSecurityPerimeterConfigurationIssuesProperties() {
- }
-
- /**
- * Get the issueType property: Provisioning issue type.
- *
- * @return the issueType value.
- */
- public NetworkSecurityPerimeterConfigurationIssueType issueType() {
- return this.issueType;
- }
-
- /**
- * Set the issueType property: Provisioning issue type.
- *
- * @param issueType the issueType value to set.
- * @return the NetworkSecurityPerimeterConfigurationIssuesProperties object itself.
- */
- public NetworkSecurityPerimeterConfigurationIssuesProperties
- withIssueType(NetworkSecurityPerimeterConfigurationIssueType issueType) {
- this.issueType = issueType;
- return this;
- }
-
- /**
- * Get the severity property: Provisioning issue severity.
- *
- * @return the severity value.
- */
- public NetworkSecurityPerimeterConfigurationIssueSeverity severity() {
- return this.severity;
- }
-
- /**
- * Set the severity property: Provisioning issue severity.
- *
- * @param severity the severity value to set.
- * @return the NetworkSecurityPerimeterConfigurationIssuesProperties object itself.
- */
- public NetworkSecurityPerimeterConfigurationIssuesProperties
- withSeverity(NetworkSecurityPerimeterConfigurationIssueSeverity severity) {
- this.severity = severity;
- return this;
- }
-
- /**
- * Get the description property: Provisioning issue description.
- *
- * @return the description value.
- */
- public String description() {
- return this.description;
- }
-
- /**
- * Set the description property: Provisioning issue description.
- *
- * @param description the description value to set.
- * @return the NetworkSecurityPerimeterConfigurationIssuesProperties object itself.
- */
- public NetworkSecurityPerimeterConfigurationIssuesProperties withDescription(String description) {
- this.description = description;
- return this;
- }
-
- /**
- * Get the suggestedResourceIds property: ARM IDs of resources that can be associated to the same perimeter to
- * remediate the issue.
- *
- * @return the suggestedResourceIds value.
- */
- public List suggestedResourceIds() {
- return this.suggestedResourceIds;
- }
-
- /**
- * Set the suggestedResourceIds property: ARM IDs of resources that can be associated to the same perimeter to
- * remediate the issue.
- *
- * @param suggestedResourceIds the suggestedResourceIds value to set.
- * @return the NetworkSecurityPerimeterConfigurationIssuesProperties object itself.
- */
- public NetworkSecurityPerimeterConfigurationIssuesProperties
- withSuggestedResourceIds(List suggestedResourceIds) {
- this.suggestedResourceIds = suggestedResourceIds;
- return this;
- }
-
- /**
- * Get the suggestedAccessRules property: Access rules that can be added to the same profile to remediate the issue.
- *
- * @return the suggestedAccessRules value.
- */
- public List suggestedAccessRules() {
- return this.suggestedAccessRules;
- }
-
- /**
- * Set the suggestedAccessRules property: Access rules that can be added to the same profile to remediate the issue.
- *
- * @param suggestedAccessRules the suggestedAccessRules value to set.
- * @return the NetworkSecurityPerimeterConfigurationIssuesProperties object itself.
- */
- public NetworkSecurityPerimeterConfigurationIssuesProperties
- withSuggestedAccessRules(List suggestedAccessRules) {
- this.suggestedAccessRules = suggestedAccessRules;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("issueType", this.issueType == null ? null : this.issueType.toString());
- jsonWriter.writeStringField("severity", this.severity == null ? null : this.severity.toString());
- jsonWriter.writeStringField("description", this.description);
- jsonWriter.writeArrayField("suggestedResourceIds", this.suggestedResourceIds,
- (writer, element) -> writer.writeString(element));
- jsonWriter.writeArrayField("suggestedAccessRules", this.suggestedAccessRules,
- (writer, element) -> writer.writeString(element));
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of NetworkSecurityPerimeterConfigurationIssuesProperties from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of NetworkSecurityPerimeterConfigurationIssuesProperties if the JsonReader was pointing to an
- * instance of it, or null if it was pointing to JSON null.
- * @throws IOException If an error occurs while reading the NetworkSecurityPerimeterConfigurationIssuesProperties.
- */
- public static NetworkSecurityPerimeterConfigurationIssuesProperties fromJson(JsonReader jsonReader)
- throws IOException {
- return jsonReader.readObject(reader -> {
- NetworkSecurityPerimeterConfigurationIssuesProperties deserializedNetworkSecurityPerimeterConfigurationIssuesProperties
- = new NetworkSecurityPerimeterConfigurationIssuesProperties();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("issueType".equals(fieldName)) {
- deserializedNetworkSecurityPerimeterConfigurationIssuesProperties.issueType
- = NetworkSecurityPerimeterConfigurationIssueType.fromString(reader.getString());
- } else if ("severity".equals(fieldName)) {
- deserializedNetworkSecurityPerimeterConfigurationIssuesProperties.severity
- = NetworkSecurityPerimeterConfigurationIssueSeverity.fromString(reader.getString());
- } else if ("description".equals(fieldName)) {
- deserializedNetworkSecurityPerimeterConfigurationIssuesProperties.description = reader.getString();
- } else if ("suggestedResourceIds".equals(fieldName)) {
- List suggestedResourceIds = reader.readArray(reader1 -> reader1.getString());
- deserializedNetworkSecurityPerimeterConfigurationIssuesProperties.suggestedResourceIds
- = suggestedResourceIds;
- } else if ("suggestedAccessRules".equals(fieldName)) {
- List suggestedAccessRules = reader.readArray(reader1 -> reader1.getString());
- deserializedNetworkSecurityPerimeterConfigurationIssuesProperties.suggestedAccessRules
- = suggestedAccessRules;
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedNetworkSecurityPerimeterConfigurationIssuesProperties;
- });
- }
-}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/NetworkSecurityPerimeterConfigurationProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/NetworkSecurityPerimeterConfigurationProperties.java
deleted file mode 100644
index 13357d6ae055..000000000000
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/NetworkSecurityPerimeterConfigurationProperties.java
+++ /dev/null
@@ -1,242 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.eventgrid.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.eventgrid.models.NetworkSecurityPerimeterConfigProvisioningState;
-import com.azure.resourcemanager.eventgrid.models.NetworkSecurityPerimeterConfigurationIssues;
-import com.azure.resourcemanager.eventgrid.models.NetworkSecurityPerimeterConfigurationProfile;
-import com.azure.resourcemanager.eventgrid.models.NetworkSecurityPerimeterInfo;
-import com.azure.resourcemanager.eventgrid.models.ResourceAssociation;
-import java.io.IOException;
-import java.util.List;
-
-/**
- * Network security perimeter configuration information to reflect latest association and nsp profile configuration.
- */
-@Fluent
-public final class NetworkSecurityPerimeterConfigurationProperties
- implements JsonSerializable {
- /*
- * Provisioning state to reflect configuration state and indicate status of nsp profile configuration retrieval.
- */
- private NetworkSecurityPerimeterConfigProvisioningState provisioningState;
-
- /*
- * Provisioning issues to reflect status when attempting to retrieve nsp profile configuration.
- */
- private List provisioningIssues;
-
- /*
- * Perimeter info for nsp association.
- */
- private NetworkSecurityPerimeterInfo networkSecurityPerimeter;
-
- /*
- * Nsp association name and access mode of association.
- */
- private ResourceAssociation resourceAssociation;
-
- /*
- * Nsp profile configuration, access rules and diagnostic settings.
- */
- private NetworkSecurityPerimeterConfigurationProfile profile;
-
- /**
- * Creates an instance of NetworkSecurityPerimeterConfigurationProperties class.
- */
- public NetworkSecurityPerimeterConfigurationProperties() {
- }
-
- /**
- * Get the provisioningState property: Provisioning state to reflect configuration state and indicate status of nsp
- * profile configuration retrieval.
- *
- * @return the provisioningState value.
- */
- public NetworkSecurityPerimeterConfigProvisioningState provisioningState() {
- return this.provisioningState;
- }
-
- /**
- * Set the provisioningState property: Provisioning state to reflect configuration state and indicate status of nsp
- * profile configuration retrieval.
- *
- * @param provisioningState the provisioningState value to set.
- * @return the NetworkSecurityPerimeterConfigurationProperties object itself.
- */
- public NetworkSecurityPerimeterConfigurationProperties
- withProvisioningState(NetworkSecurityPerimeterConfigProvisioningState provisioningState) {
- this.provisioningState = provisioningState;
- return this;
- }
-
- /**
- * Get the provisioningIssues property: Provisioning issues to reflect status when attempting to retrieve nsp
- * profile configuration.
- *
- * @return the provisioningIssues value.
- */
- public List provisioningIssues() {
- return this.provisioningIssues;
- }
-
- /**
- * Set the provisioningIssues property: Provisioning issues to reflect status when attempting to retrieve nsp
- * profile configuration.
- *
- * @param provisioningIssues the provisioningIssues value to set.
- * @return the NetworkSecurityPerimeterConfigurationProperties object itself.
- */
- public NetworkSecurityPerimeterConfigurationProperties
- withProvisioningIssues(List provisioningIssues) {
- this.provisioningIssues = provisioningIssues;
- return this;
- }
-
- /**
- * Get the networkSecurityPerimeter property: Perimeter info for nsp association.
- *
- * @return the networkSecurityPerimeter value.
- */
- public NetworkSecurityPerimeterInfo networkSecurityPerimeter() {
- return this.networkSecurityPerimeter;
- }
-
- /**
- * Set the networkSecurityPerimeter property: Perimeter info for nsp association.
- *
- * @param networkSecurityPerimeter the networkSecurityPerimeter value to set.
- * @return the NetworkSecurityPerimeterConfigurationProperties object itself.
- */
- public NetworkSecurityPerimeterConfigurationProperties
- withNetworkSecurityPerimeter(NetworkSecurityPerimeterInfo networkSecurityPerimeter) {
- this.networkSecurityPerimeter = networkSecurityPerimeter;
- return this;
- }
-
- /**
- * Get the resourceAssociation property: Nsp association name and access mode of association.
- *
- * @return the resourceAssociation value.
- */
- public ResourceAssociation resourceAssociation() {
- return this.resourceAssociation;
- }
-
- /**
- * Set the resourceAssociation property: Nsp association name and access mode of association.
- *
- * @param resourceAssociation the resourceAssociation value to set.
- * @return the NetworkSecurityPerimeterConfigurationProperties object itself.
- */
- public NetworkSecurityPerimeterConfigurationProperties
- withResourceAssociation(ResourceAssociation resourceAssociation) {
- this.resourceAssociation = resourceAssociation;
- return this;
- }
-
- /**
- * Get the profile property: Nsp profile configuration, access rules and diagnostic settings.
- *
- * @return the profile value.
- */
- public NetworkSecurityPerimeterConfigurationProfile profile() {
- return this.profile;
- }
-
- /**
- * Set the profile property: Nsp profile configuration, access rules and diagnostic settings.
- *
- * @param profile the profile value to set.
- * @return the NetworkSecurityPerimeterConfigurationProperties object itself.
- */
- public NetworkSecurityPerimeterConfigurationProperties
- withProfile(NetworkSecurityPerimeterConfigurationProfile profile) {
- this.profile = profile;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (provisioningIssues() != null) {
- provisioningIssues().forEach(e -> e.validate());
- }
- if (networkSecurityPerimeter() != null) {
- networkSecurityPerimeter().validate();
- }
- if (resourceAssociation() != null) {
- resourceAssociation().validate();
- }
- if (profile() != null) {
- profile().validate();
- }
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("provisioningState",
- this.provisioningState == null ? null : this.provisioningState.toString());
- jsonWriter.writeArrayField("provisioningIssues", this.provisioningIssues,
- (writer, element) -> writer.writeJson(element));
- jsonWriter.writeJsonField("networkSecurityPerimeter", this.networkSecurityPerimeter);
- jsonWriter.writeJsonField("resourceAssociation", this.resourceAssociation);
- jsonWriter.writeJsonField("profile", this.profile);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of NetworkSecurityPerimeterConfigurationProperties from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of NetworkSecurityPerimeterConfigurationProperties if the JsonReader was pointing to an
- * instance of it, or null if it was pointing to JSON null.
- * @throws IOException If an error occurs while reading the NetworkSecurityPerimeterConfigurationProperties.
- */
- public static NetworkSecurityPerimeterConfigurationProperties fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- NetworkSecurityPerimeterConfigurationProperties deserializedNetworkSecurityPerimeterConfigurationProperties
- = new NetworkSecurityPerimeterConfigurationProperties();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("provisioningState".equals(fieldName)) {
- deserializedNetworkSecurityPerimeterConfigurationProperties.provisioningState
- = NetworkSecurityPerimeterConfigProvisioningState.fromString(reader.getString());
- } else if ("provisioningIssues".equals(fieldName)) {
- List provisioningIssues
- = reader.readArray(reader1 -> NetworkSecurityPerimeterConfigurationIssues.fromJson(reader1));
- deserializedNetworkSecurityPerimeterConfigurationProperties.provisioningIssues = provisioningIssues;
- } else if ("networkSecurityPerimeter".equals(fieldName)) {
- deserializedNetworkSecurityPerimeterConfigurationProperties.networkSecurityPerimeter
- = NetworkSecurityPerimeterInfo.fromJson(reader);
- } else if ("resourceAssociation".equals(fieldName)) {
- deserializedNetworkSecurityPerimeterConfigurationProperties.resourceAssociation
- = ResourceAssociation.fromJson(reader);
- } else if ("profile".equals(fieldName)) {
- deserializedNetworkSecurityPerimeterConfigurationProperties.profile
- = NetworkSecurityPerimeterConfigurationProfile.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedNetworkSecurityPerimeterConfigurationProperties;
- });
- }
-}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/NetworkSecurityPerimeterProfileAccessRuleProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/NetworkSecurityPerimeterProfileAccessRuleProperties.java
deleted file mode 100644
index e2749f03cfbf..000000000000
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/NetworkSecurityPerimeterProfileAccessRuleProperties.java
+++ /dev/null
@@ -1,293 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.eventgrid.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.eventgrid.models.NetworkSecurityPerimeterInfo;
-import com.azure.resourcemanager.eventgrid.models.NetworkSecurityPerimeterProfileAccessRuleDirection;
-import com.azure.resourcemanager.eventgrid.models.NetworkSecurityPerimeterSubscription;
-import java.io.IOException;
-import java.util.List;
-
-/**
- * Network security perimeter profile access rule properties.
- */
-@Fluent
-public final class NetworkSecurityPerimeterProfileAccessRuleProperties
- implements JsonSerializable {
- /*
- * NSP access rule direction.
- */
- private NetworkSecurityPerimeterProfileAccessRuleDirection direction;
-
- /*
- * Address prefixes.
- */
- private List addressPrefixes;
-
- /*
- * List of subscriptions.
- */
- private List subscriptions;
-
- /*
- * Network security perimeters.
- */
- private List networkSecurityPerimeters;
-
- /*
- * Fully qualified domain names.
- */
- private List fullyQualifiedDomainNames;
-
- /*
- * List of email addresses.
- */
- private List emailAddresses;
-
- /*
- * List of phone numbers.
- */
- private List phoneNumbers;
-
- /**
- * Creates an instance of NetworkSecurityPerimeterProfileAccessRuleProperties class.
- */
- public NetworkSecurityPerimeterProfileAccessRuleProperties() {
- }
-
- /**
- * Get the direction property: NSP access rule direction.
- *
- * @return the direction value.
- */
- public NetworkSecurityPerimeterProfileAccessRuleDirection direction() {
- return this.direction;
- }
-
- /**
- * Set the direction property: NSP access rule direction.
- *
- * @param direction the direction value to set.
- * @return the NetworkSecurityPerimeterProfileAccessRuleProperties object itself.
- */
- public NetworkSecurityPerimeterProfileAccessRuleProperties
- withDirection(NetworkSecurityPerimeterProfileAccessRuleDirection direction) {
- this.direction = direction;
- return this;
- }
-
- /**
- * Get the addressPrefixes property: Address prefixes.
- *
- * @return the addressPrefixes value.
- */
- public List addressPrefixes() {
- return this.addressPrefixes;
- }
-
- /**
- * Set the addressPrefixes property: Address prefixes.
- *
- * @param addressPrefixes the addressPrefixes value to set.
- * @return the NetworkSecurityPerimeterProfileAccessRuleProperties object itself.
- */
- public NetworkSecurityPerimeterProfileAccessRuleProperties withAddressPrefixes(List addressPrefixes) {
- this.addressPrefixes = addressPrefixes;
- return this;
- }
-
- /**
- * Get the subscriptions property: List of subscriptions.
- *
- * @return the subscriptions value.
- */
- public List subscriptions() {
- return this.subscriptions;
- }
-
- /**
- * Set the subscriptions property: List of subscriptions.
- *
- * @param subscriptions the subscriptions value to set.
- * @return the NetworkSecurityPerimeterProfileAccessRuleProperties object itself.
- */
- public NetworkSecurityPerimeterProfileAccessRuleProperties
- withSubscriptions(List subscriptions) {
- this.subscriptions = subscriptions;
- return this;
- }
-
- /**
- * Get the networkSecurityPerimeters property: Network security perimeters.
- *
- * @return the networkSecurityPerimeters value.
- */
- public List networkSecurityPerimeters() {
- return this.networkSecurityPerimeters;
- }
-
- /**
- * Set the networkSecurityPerimeters property: Network security perimeters.
- *
- * @param networkSecurityPerimeters the networkSecurityPerimeters value to set.
- * @return the NetworkSecurityPerimeterProfileAccessRuleProperties object itself.
- */
- public NetworkSecurityPerimeterProfileAccessRuleProperties
- withNetworkSecurityPerimeters(List networkSecurityPerimeters) {
- this.networkSecurityPerimeters = networkSecurityPerimeters;
- return this;
- }
-
- /**
- * Get the fullyQualifiedDomainNames property: Fully qualified domain names.
- *
- * @return the fullyQualifiedDomainNames value.
- */
- public List fullyQualifiedDomainNames() {
- return this.fullyQualifiedDomainNames;
- }
-
- /**
- * Set the fullyQualifiedDomainNames property: Fully qualified domain names.
- *
- * @param fullyQualifiedDomainNames the fullyQualifiedDomainNames value to set.
- * @return the NetworkSecurityPerimeterProfileAccessRuleProperties object itself.
- */
- public NetworkSecurityPerimeterProfileAccessRuleProperties
- withFullyQualifiedDomainNames(List fullyQualifiedDomainNames) {
- this.fullyQualifiedDomainNames = fullyQualifiedDomainNames;
- return this;
- }
-
- /**
- * Get the emailAddresses property: List of email addresses.
- *
- * @return the emailAddresses value.
- */
- public List emailAddresses() {
- return this.emailAddresses;
- }
-
- /**
- * Set the emailAddresses property: List of email addresses.
- *
- * @param emailAddresses the emailAddresses value to set.
- * @return the NetworkSecurityPerimeterProfileAccessRuleProperties object itself.
- */
- public NetworkSecurityPerimeterProfileAccessRuleProperties withEmailAddresses(List emailAddresses) {
- this.emailAddresses = emailAddresses;
- return this;
- }
-
- /**
- * Get the phoneNumbers property: List of phone numbers.
- *
- * @return the phoneNumbers value.
- */
- public List phoneNumbers() {
- return this.phoneNumbers;
- }
-
- /**
- * Set the phoneNumbers property: List of phone numbers.
- *
- * @param phoneNumbers the phoneNumbers value to set.
- * @return the NetworkSecurityPerimeterProfileAccessRuleProperties object itself.
- */
- public NetworkSecurityPerimeterProfileAccessRuleProperties withPhoneNumbers(List phoneNumbers) {
- this.phoneNumbers = phoneNumbers;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (subscriptions() != null) {
- subscriptions().forEach(e -> e.validate());
- }
- if (networkSecurityPerimeters() != null) {
- networkSecurityPerimeters().forEach(e -> e.validate());
- }
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("direction", this.direction == null ? null : this.direction.toString());
- jsonWriter.writeArrayField("addressPrefixes", this.addressPrefixes,
- (writer, element) -> writer.writeString(element));
- jsonWriter.writeArrayField("subscriptions", this.subscriptions, (writer, element) -> writer.writeJson(element));
- jsonWriter.writeArrayField("networkSecurityPerimeters", this.networkSecurityPerimeters,
- (writer, element) -> writer.writeJson(element));
- jsonWriter.writeArrayField("fullyQualifiedDomainNames", this.fullyQualifiedDomainNames,
- (writer, element) -> writer.writeString(element));
- jsonWriter.writeArrayField("emailAddresses", this.emailAddresses,
- (writer, element) -> writer.writeString(element));
- jsonWriter.writeArrayField("phoneNumbers", this.phoneNumbers, (writer, element) -> writer.writeString(element));
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of NetworkSecurityPerimeterProfileAccessRuleProperties from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of NetworkSecurityPerimeterProfileAccessRuleProperties if the JsonReader was pointing to an
- * instance of it, or null if it was pointing to JSON null.
- * @throws IOException If an error occurs while reading the NetworkSecurityPerimeterProfileAccessRuleProperties.
- */
- public static NetworkSecurityPerimeterProfileAccessRuleProperties fromJson(JsonReader jsonReader)
- throws IOException {
- return jsonReader.readObject(reader -> {
- NetworkSecurityPerimeterProfileAccessRuleProperties deserializedNetworkSecurityPerimeterProfileAccessRuleProperties
- = new NetworkSecurityPerimeterProfileAccessRuleProperties();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("direction".equals(fieldName)) {
- deserializedNetworkSecurityPerimeterProfileAccessRuleProperties.direction
- = NetworkSecurityPerimeterProfileAccessRuleDirection.fromString(reader.getString());
- } else if ("addressPrefixes".equals(fieldName)) {
- List addressPrefixes = reader.readArray(reader1 -> reader1.getString());
- deserializedNetworkSecurityPerimeterProfileAccessRuleProperties.addressPrefixes = addressPrefixes;
- } else if ("subscriptions".equals(fieldName)) {
- List subscriptions
- = reader.readArray(reader1 -> NetworkSecurityPerimeterSubscription.fromJson(reader1));
- deserializedNetworkSecurityPerimeterProfileAccessRuleProperties.subscriptions = subscriptions;
- } else if ("networkSecurityPerimeters".equals(fieldName)) {
- List networkSecurityPerimeters
- = reader.readArray(reader1 -> NetworkSecurityPerimeterInfo.fromJson(reader1));
- deserializedNetworkSecurityPerimeterProfileAccessRuleProperties.networkSecurityPerimeters
- = networkSecurityPerimeters;
- } else if ("fullyQualifiedDomainNames".equals(fieldName)) {
- List fullyQualifiedDomainNames = reader.readArray(reader1 -> reader1.getString());
- deserializedNetworkSecurityPerimeterProfileAccessRuleProperties.fullyQualifiedDomainNames
- = fullyQualifiedDomainNames;
- } else if ("emailAddresses".equals(fieldName)) {
- List emailAddresses = reader.readArray(reader1 -> reader1.getString());
- deserializedNetworkSecurityPerimeterProfileAccessRuleProperties.emailAddresses = emailAddresses;
- } else if ("phoneNumbers".equals(fieldName)) {
- List phoneNumbers = reader.readArray(reader1 -> reader1.getString());
- deserializedNetworkSecurityPerimeterProfileAccessRuleProperties.phoneNumbers = phoneNumbers;
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedNetworkSecurityPerimeterProfileAccessRuleProperties;
- });
- }
-}
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 4f53d7605091..c0863cdfebcc 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
@@ -26,7 +26,7 @@ public final class PartnerConfigurationInner extends ProxyResource {
private PartnerConfigurationProperties innerProperties;
/*
- * The system metadata relating to partner configuration resource.
+ * The system metadata relating to the Event Grid resource.
*/
private SystemData systemData;
@@ -71,7 +71,7 @@ private PartnerConfigurationProperties innerProperties() {
}
/**
- * Get the systemData property: The system metadata relating to partner configuration resource.
+ * Get the systemData property: The system metadata relating to the Event Grid resource.
*
* @return the systemData value.
*/
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerDestinationInner.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerDestinationInner.java
deleted file mode 100644
index 8bdb1f288011..000000000000
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerDestinationInner.java
+++ /dev/null
@@ -1,335 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.eventgrid.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.management.Resource;
-import com.azure.core.management.SystemData;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.eventgrid.models.PartnerDestinationActivationState;
-import com.azure.resourcemanager.eventgrid.models.PartnerDestinationProvisioningState;
-import java.io.IOException;
-import java.time.OffsetDateTime;
-import java.util.Map;
-import java.util.UUID;
-
-/**
- * Event Grid Partner Destination.
- */
-@Fluent
-public final class PartnerDestinationInner extends Resource {
- /*
- * Properties of the Partner Destination.
- */
- private PartnerDestinationProperties innerProperties;
-
- /*
- * The system metadata relating to Partner Destination resource.
- */
- private SystemData systemData;
-
- /*
- * The type of the resource.
- */
- private String type;
-
- /*
- * The name of the resource.
- */
- private String name;
-
- /*
- * Fully qualified resource Id for the resource.
- */
- private String id;
-
- /**
- * Creates an instance of PartnerDestinationInner class.
- */
- public PartnerDestinationInner() {
- }
-
- /**
- * Get the innerProperties property: Properties of the Partner Destination.
- *
- * @return the innerProperties value.
- */
- private PartnerDestinationProperties innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the systemData property: The system metadata relating to Partner Destination resource.
- *
- * @return the systemData value.
- */
- public SystemData systemData() {
- return this.systemData;
- }
-
- /**
- * Get the type property: The type of the resource.
- *
- * @return the type value.
- */
- @Override
- public String type() {
- return this.type;
- }
-
- /**
- * Get the name property: The name of the resource.
- *
- * @return the name value.
- */
- @Override
- public String name() {
- return this.name;
- }
-
- /**
- * Get the id property: Fully qualified resource Id for the resource.
- *
- * @return the id value.
- */
- @Override
- public String id() {
- return this.id;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public PartnerDestinationInner withLocation(String location) {
- super.withLocation(location);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public PartnerDestinationInner withTags(Map tags) {
- super.withTags(tags);
- return this;
- }
-
- /**
- * Get the partnerRegistrationImmutableId property: The immutable Id of the corresponding partner registration.
- *
- * @return the partnerRegistrationImmutableId value.
- */
- public UUID partnerRegistrationImmutableId() {
- return this.innerProperties() == null ? null : this.innerProperties().partnerRegistrationImmutableId();
- }
-
- /**
- * Set the partnerRegistrationImmutableId property: The immutable Id of the corresponding partner registration.
- *
- * @param partnerRegistrationImmutableId the partnerRegistrationImmutableId value to set.
- * @return the PartnerDestinationInner object itself.
- */
- public PartnerDestinationInner withPartnerRegistrationImmutableId(UUID partnerRegistrationImmutableId) {
- if (this.innerProperties() == null) {
- this.innerProperties = new PartnerDestinationProperties();
- }
- this.innerProperties().withPartnerRegistrationImmutableId(partnerRegistrationImmutableId);
- return this;
- }
-
- /**
- * Get the endpointServiceContext property: Endpoint context associated with this partner destination.
- *
- * @return the endpointServiceContext value.
- */
- public String endpointServiceContext() {
- return this.innerProperties() == null ? null : this.innerProperties().endpointServiceContext();
- }
-
- /**
- * Set the endpointServiceContext property: Endpoint context associated with this partner destination.
- *
- * @param endpointServiceContext the endpointServiceContext value to set.
- * @return the PartnerDestinationInner object itself.
- */
- public PartnerDestinationInner withEndpointServiceContext(String endpointServiceContext) {
- if (this.innerProperties() == null) {
- this.innerProperties = new PartnerDestinationProperties();
- }
- this.innerProperties().withEndpointServiceContext(endpointServiceContext);
- return this;
- }
-
- /**
- * Get the expirationTimeIfNotActivatedUtc property: Expiration time of the partner destination. If this timer
- * expires and the partner destination was never activated,
- * the partner destination and corresponding channel are deleted.
- *
- * @return the expirationTimeIfNotActivatedUtc value.
- */
- public OffsetDateTime expirationTimeIfNotActivatedUtc() {
- return this.innerProperties() == null ? null : this.innerProperties().expirationTimeIfNotActivatedUtc();
- }
-
- /**
- * Set the expirationTimeIfNotActivatedUtc property: Expiration time of the partner destination. If this timer
- * expires and the partner destination was never activated,
- * the partner destination and corresponding channel are deleted.
- *
- * @param expirationTimeIfNotActivatedUtc the expirationTimeIfNotActivatedUtc value to set.
- * @return the PartnerDestinationInner object itself.
- */
- public PartnerDestinationInner withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc) {
- if (this.innerProperties() == null) {
- this.innerProperties = new PartnerDestinationProperties();
- }
- this.innerProperties().withExpirationTimeIfNotActivatedUtc(expirationTimeIfNotActivatedUtc);
- return this;
- }
-
- /**
- * Get the provisioningState property: Provisioning state of the partner destination.
- *
- * @return the provisioningState value.
- */
- public PartnerDestinationProvisioningState provisioningState() {
- return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
- }
-
- /**
- * Get the activationState property: Activation state of the partner destination.
- *
- * @return the activationState value.
- */
- public PartnerDestinationActivationState activationState() {
- return this.innerProperties() == null ? null : this.innerProperties().activationState();
- }
-
- /**
- * Set the activationState property: Activation state of the partner destination.
- *
- * @param activationState the activationState value to set.
- * @return the PartnerDestinationInner object itself.
- */
- public PartnerDestinationInner withActivationState(PartnerDestinationActivationState activationState) {
- if (this.innerProperties() == null) {
- this.innerProperties = new PartnerDestinationProperties();
- }
- this.innerProperties().withActivationState(activationState);
- return this;
- }
-
- /**
- * Get the endpointBaseUrl property: Endpoint Base URL of the partner destination.
- *
- * @return the endpointBaseUrl value.
- */
- public String endpointBaseUrl() {
- return this.innerProperties() == null ? null : this.innerProperties().endpointBaseUrl();
- }
-
- /**
- * Set the endpointBaseUrl property: Endpoint Base URL of the partner destination.
- *
- * @param endpointBaseUrl the endpointBaseUrl value to set.
- * @return the PartnerDestinationInner object itself.
- */
- public PartnerDestinationInner withEndpointBaseUrl(String endpointBaseUrl) {
- if (this.innerProperties() == null) {
- this.innerProperties = new PartnerDestinationProperties();
- }
- this.innerProperties().withEndpointBaseUrl(endpointBaseUrl);
- return this;
- }
-
- /**
- * Get the messageForActivation property: Context or helpful message that can be used during the approval process.
- *
- * @return the messageForActivation value.
- */
- public String messageForActivation() {
- return this.innerProperties() == null ? null : this.innerProperties().messageForActivation();
- }
-
- /**
- * Set the messageForActivation property: Context or helpful message that can be used during the approval process.
- *
- * @param messageForActivation the messageForActivation value to set.
- * @return the PartnerDestinationInner object itself.
- */
- public PartnerDestinationInner withMessageForActivation(String messageForActivation) {
- if (this.innerProperties() == null) {
- this.innerProperties = new PartnerDestinationProperties();
- }
- this.innerProperties().withMessageForActivation(messageForActivation);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("location", location());
- jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
- jsonWriter.writeJsonField("properties", this.innerProperties);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of PartnerDestinationInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of PartnerDestinationInner if the JsonReader was pointing to an instance of it, or null if it
- * was pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the PartnerDestinationInner.
- */
- public static PartnerDestinationInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- PartnerDestinationInner deserializedPartnerDestinationInner = new PartnerDestinationInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("id".equals(fieldName)) {
- deserializedPartnerDestinationInner.id = reader.getString();
- } else if ("name".equals(fieldName)) {
- deserializedPartnerDestinationInner.name = reader.getString();
- } else if ("type".equals(fieldName)) {
- deserializedPartnerDestinationInner.type = reader.getString();
- } else if ("location".equals(fieldName)) {
- deserializedPartnerDestinationInner.withLocation(reader.getString());
- } else if ("tags".equals(fieldName)) {
- Map tags = reader.readMap(reader1 -> reader1.getString());
- deserializedPartnerDestinationInner.withTags(tags);
- } else if ("properties".equals(fieldName)) {
- deserializedPartnerDestinationInner.innerProperties = PartnerDestinationProperties.fromJson(reader);
- } else if ("systemData".equals(fieldName)) {
- deserializedPartnerDestinationInner.systemData = SystemData.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedPartnerDestinationInner;
- });
- }
-}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerDestinationProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerDestinationProperties.java
deleted file mode 100644
index e23129ce7ca8..000000000000
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerDestinationProperties.java
+++ /dev/null
@@ -1,272 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.eventgrid.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.util.CoreUtils;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.eventgrid.models.PartnerDestinationActivationState;
-import com.azure.resourcemanager.eventgrid.models.PartnerDestinationProvisioningState;
-import java.io.IOException;
-import java.time.OffsetDateTime;
-import java.time.format.DateTimeFormatter;
-import java.util.Objects;
-import java.util.UUID;
-
-/**
- * Properties of the Partner Destination.
- */
-@Fluent
-public final class PartnerDestinationProperties implements JsonSerializable {
- /*
- * The immutable Id of the corresponding partner registration.
- */
- private UUID partnerRegistrationImmutableId;
-
- /*
- * Endpoint context associated with this partner destination.
- */
- private String endpointServiceContext;
-
- /*
- * Expiration time of the partner destination. If this timer expires and the partner destination was never
- * activated,
- * the partner destination and corresponding channel are deleted.
- */
- private OffsetDateTime expirationTimeIfNotActivatedUtc;
-
- /*
- * Provisioning state of the partner destination.
- */
- private PartnerDestinationProvisioningState provisioningState;
-
- /*
- * Activation state of the partner destination.
- */
- private PartnerDestinationActivationState activationState;
-
- /*
- * Endpoint Base URL of the partner destination
- */
- private String endpointBaseUrl;
-
- /*
- * Context or helpful message that can be used during the approval process.
- */
- private String messageForActivation;
-
- /**
- * Creates an instance of PartnerDestinationProperties class.
- */
- public PartnerDestinationProperties() {
- }
-
- /**
- * Get the partnerRegistrationImmutableId property: The immutable Id of the corresponding partner registration.
- *
- * @return the partnerRegistrationImmutableId value.
- */
- public UUID partnerRegistrationImmutableId() {
- return this.partnerRegistrationImmutableId;
- }
-
- /**
- * Set the partnerRegistrationImmutableId property: The immutable Id of the corresponding partner registration.
- *
- * @param partnerRegistrationImmutableId the partnerRegistrationImmutableId value to set.
- * @return the PartnerDestinationProperties object itself.
- */
- public PartnerDestinationProperties withPartnerRegistrationImmutableId(UUID partnerRegistrationImmutableId) {
- this.partnerRegistrationImmutableId = partnerRegistrationImmutableId;
- return this;
- }
-
- /**
- * Get the endpointServiceContext property: Endpoint context associated with this partner destination.
- *
- * @return the endpointServiceContext value.
- */
- public String endpointServiceContext() {
- return this.endpointServiceContext;
- }
-
- /**
- * Set the endpointServiceContext property: Endpoint context associated with this partner destination.
- *
- * @param endpointServiceContext the endpointServiceContext value to set.
- * @return the PartnerDestinationProperties object itself.
- */
- public PartnerDestinationProperties withEndpointServiceContext(String endpointServiceContext) {
- this.endpointServiceContext = endpointServiceContext;
- return this;
- }
-
- /**
- * Get the expirationTimeIfNotActivatedUtc property: Expiration time of the partner destination. If this timer
- * expires and the partner destination was never activated,
- * the partner destination and corresponding channel are deleted.
- *
- * @return the expirationTimeIfNotActivatedUtc value.
- */
- public OffsetDateTime expirationTimeIfNotActivatedUtc() {
- return this.expirationTimeIfNotActivatedUtc;
- }
-
- /**
- * Set the expirationTimeIfNotActivatedUtc property: Expiration time of the partner destination. If this timer
- * expires and the partner destination was never activated,
- * the partner destination and corresponding channel are deleted.
- *
- * @param expirationTimeIfNotActivatedUtc the expirationTimeIfNotActivatedUtc value to set.
- * @return the PartnerDestinationProperties object itself.
- */
- public PartnerDestinationProperties
- withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc) {
- this.expirationTimeIfNotActivatedUtc = expirationTimeIfNotActivatedUtc;
- return this;
- }
-
- /**
- * Get the provisioningState property: Provisioning state of the partner destination.
- *
- * @return the provisioningState value.
- */
- public PartnerDestinationProvisioningState provisioningState() {
- return this.provisioningState;
- }
-
- /**
- * Get the activationState property: Activation state of the partner destination.
- *
- * @return the activationState value.
- */
- public PartnerDestinationActivationState activationState() {
- return this.activationState;
- }
-
- /**
- * Set the activationState property: Activation state of the partner destination.
- *
- * @param activationState the activationState value to set.
- * @return the PartnerDestinationProperties object itself.
- */
- public PartnerDestinationProperties withActivationState(PartnerDestinationActivationState activationState) {
- this.activationState = activationState;
- return this;
- }
-
- /**
- * Get the endpointBaseUrl property: Endpoint Base URL of the partner destination.
- *
- * @return the endpointBaseUrl value.
- */
- public String endpointBaseUrl() {
- return this.endpointBaseUrl;
- }
-
- /**
- * Set the endpointBaseUrl property: Endpoint Base URL of the partner destination.
- *
- * @param endpointBaseUrl the endpointBaseUrl value to set.
- * @return the PartnerDestinationProperties object itself.
- */
- public PartnerDestinationProperties withEndpointBaseUrl(String endpointBaseUrl) {
- this.endpointBaseUrl = endpointBaseUrl;
- return this;
- }
-
- /**
- * Get the messageForActivation property: Context or helpful message that can be used during the approval process.
- *
- * @return the messageForActivation value.
- */
- public String messageForActivation() {
- return this.messageForActivation;
- }
-
- /**
- * Set the messageForActivation property: Context or helpful message that can be used during the approval process.
- *
- * @param messageForActivation the messageForActivation value to set.
- * @return the PartnerDestinationProperties object itself.
- */
- public PartnerDestinationProperties withMessageForActivation(String messageForActivation) {
- this.messageForActivation = messageForActivation;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("partnerRegistrationImmutableId",
- Objects.toString(this.partnerRegistrationImmutableId, null));
- jsonWriter.writeStringField("endpointServiceContext", this.endpointServiceContext);
- jsonWriter.writeStringField("expirationTimeIfNotActivatedUtc",
- this.expirationTimeIfNotActivatedUtc == null
- ? null
- : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.expirationTimeIfNotActivatedUtc));
- jsonWriter.writeStringField("activationState",
- this.activationState == null ? null : this.activationState.toString());
- jsonWriter.writeStringField("endpointBaseUrl", this.endpointBaseUrl);
- jsonWriter.writeStringField("messageForActivation", this.messageForActivation);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of PartnerDestinationProperties from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of PartnerDestinationProperties if the JsonReader was pointing to an instance of it, or null
- * if it was pointing to JSON null.
- * @throws IOException If an error occurs while reading the PartnerDestinationProperties.
- */
- public static PartnerDestinationProperties fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- PartnerDestinationProperties deserializedPartnerDestinationProperties = new PartnerDestinationProperties();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("partnerRegistrationImmutableId".equals(fieldName)) {
- deserializedPartnerDestinationProperties.partnerRegistrationImmutableId
- = reader.getNullable(nonNullReader -> UUID.fromString(nonNullReader.getString()));
- } else if ("endpointServiceContext".equals(fieldName)) {
- deserializedPartnerDestinationProperties.endpointServiceContext = reader.getString();
- } else if ("expirationTimeIfNotActivatedUtc".equals(fieldName)) {
- deserializedPartnerDestinationProperties.expirationTimeIfNotActivatedUtc = reader
- .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
- } else if ("provisioningState".equals(fieldName)) {
- deserializedPartnerDestinationProperties.provisioningState
- = PartnerDestinationProvisioningState.fromString(reader.getString());
- } else if ("activationState".equals(fieldName)) {
- deserializedPartnerDestinationProperties.activationState
- = PartnerDestinationActivationState.fromString(reader.getString());
- } else if ("endpointBaseUrl".equals(fieldName)) {
- deserializedPartnerDestinationProperties.endpointBaseUrl = reader.getString();
- } else if ("messageForActivation".equals(fieldName)) {
- deserializedPartnerDestinationProperties.messageForActivation = reader.getString();
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedPartnerDestinationProperties;
- });
- }
-}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerEventSubscriptionDestinationProperties.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerEventSubscriptionDestinationProperties.java
deleted file mode 100644
index 2c5a9e1f01d7..000000000000
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PartnerEventSubscriptionDestinationProperties.java
+++ /dev/null
@@ -1,97 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.eventgrid.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import java.io.IOException;
-
-/**
- * The PartnerEventSubscriptionDestinationProperties model.
- */
-@Fluent
-public final class PartnerEventSubscriptionDestinationProperties
- implements JsonSerializable {
- /*
- * The Azure Resource Id that represents the endpoint of a Partner Destination of an event subscription.
- */
- private String resourceId;
-
- /**
- * Creates an instance of PartnerEventSubscriptionDestinationProperties class.
- */
- public PartnerEventSubscriptionDestinationProperties() {
- }
-
- /**
- * Get the resourceId property: The Azure Resource Id that represents the endpoint of a Partner Destination of an
- * event subscription.
- *
- * @return the resourceId value.
- */
- public String resourceId() {
- return this.resourceId;
- }
-
- /**
- * Set the resourceId property: The Azure Resource Id that represents the endpoint of a Partner Destination of an
- * event subscription.
- *
- * @param resourceId the resourceId value to set.
- * @return the PartnerEventSubscriptionDestinationProperties object itself.
- */
- public PartnerEventSubscriptionDestinationProperties withResourceId(String resourceId) {
- this.resourceId = resourceId;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("resourceId", this.resourceId);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of PartnerEventSubscriptionDestinationProperties from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of PartnerEventSubscriptionDestinationProperties if the JsonReader was pointing to an
- * instance of it, or null if it was pointing to JSON null.
- * @throws IOException If an error occurs while reading the PartnerEventSubscriptionDestinationProperties.
- */
- public static PartnerEventSubscriptionDestinationProperties fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- PartnerEventSubscriptionDestinationProperties deserializedPartnerEventSubscriptionDestinationProperties
- = new PartnerEventSubscriptionDestinationProperties();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("resourceId".equals(fieldName)) {
- deserializedPartnerEventSubscriptionDestinationProperties.resourceId = reader.getString();
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedPartnerEventSubscriptionDestinationProperties;
- });
- }
-}
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 4f255e5dd197..39fdd1c869ed 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,7 +30,7 @@ public final class PartnerNamespaceInner extends Resource {
private PartnerNamespaceProperties innerProperties;
/*
- * The system metadata relating to Partner Namespace resource.
+ * The system metadata relating to the Event Grid resource.
*/
private SystemData systemData;
@@ -65,7 +65,7 @@ private PartnerNamespaceProperties innerProperties() {
}
/**
- * Get the systemData property: The system metadata relating to Partner Namespace resource.
+ * Get the systemData property: The system metadata relating to the Event Grid resource.
*
* @return the systemData value.
*/
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 3a3a853c9fab..de3739dc71e7 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
@@ -26,7 +26,7 @@ public final class PartnerRegistrationInner extends Resource {
private PartnerRegistrationProperties innerProperties;
/*
- * The system metadata relating to Partner Registration resource.
+ * The system metadata relating to the Event Grid resource.
*/
private SystemData systemData;
@@ -61,7 +61,7 @@ private PartnerRegistrationProperties innerProperties() {
}
/**
- * Get the systemData property: The system metadata relating to Partner Registration resource.
+ * Get the systemData property: The system metadata relating to the Event Grid resource.
*
* @return the systemData value.
*/
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 87fa62213e0b..c30705edf482 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
@@ -30,7 +30,7 @@ public final class PartnerTopicInner extends Resource {
private PartnerTopicProperties innerProperties;
/*
- * The system metadata relating to Partner Topic resource.
+ * The system metadata relating to the Event Grid resource.
*/
private SystemData systemData;
@@ -70,7 +70,7 @@ private PartnerTopicProperties innerProperties() {
}
/**
- * Get the systemData property: The system metadata relating to Partner Topic resource.
+ * Get the systemData property: The system metadata relating to the Event Grid resource.
*
* @return the systemData value.
*/
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PermissionBindingInner.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PermissionBindingInner.java
index 05cc60f1526b..1de668e279cf 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PermissionBindingInner.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/PermissionBindingInner.java
@@ -25,7 +25,7 @@ public final class PermissionBindingInner extends ProxyResource {
private PermissionBindingProperties innerProperties;
/*
- * The system metadata relating to the PermissionBinding resource.
+ * The system metadata relating to the Event Grid resource.
*/
private SystemData systemData;
@@ -60,7 +60,7 @@ private PermissionBindingProperties innerProperties() {
}
/**
- * Get the systemData property: The system metadata relating to the PermissionBinding resource.
+ * Get the systemData property: The system metadata relating to the Event Grid resource.
*
* @return the systemData value.
*/
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/SubscriptionInner.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/SubscriptionInner.java
index c6f43c663c66..71782b9ba522 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/SubscriptionInner.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/SubscriptionInner.java
@@ -28,7 +28,7 @@ public final class SubscriptionInner extends ProxyResource {
private SubscriptionProperties innerProperties;
/*
- * The system metadata relating to Event Subscription resource.
+ * The system metadata relating to the Event Grid resource.
*/
private SystemData systemData;
@@ -63,7 +63,7 @@ private SubscriptionProperties innerProperties() {
}
/**
- * Get the systemData property: The system metadata relating to Event Subscription resource.
+ * Get the systemData property: The system metadata relating to the Event Grid resource.
*
* @return the systemData value.
*/
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 8ac9c352e9c8..26dae4262c4e 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
@@ -26,7 +26,7 @@ public final class SystemTopicInner extends Resource {
private SystemTopicProperties innerProperties;
/*
- * The system metadata relating to System Topic resource.
+ * The system metadata relating to the Event Grid resource.
*/
private SystemData systemData;
@@ -66,7 +66,7 @@ private SystemTopicProperties innerProperties() {
}
/**
- * Get the systemData property: The system metadata relating to System Topic resource.
+ * Get the systemData property: The system metadata relating to the Event Grid resource.
*
* @return the systemData value.
*/
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 1c1b6b223ca4..f7e548c789c0 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
@@ -12,14 +12,11 @@
import com.azure.json.JsonWriter;
import com.azure.resourcemanager.eventgrid.models.DataResidencyBoundary;
import com.azure.resourcemanager.eventgrid.models.EventTypeInfo;
-import com.azure.resourcemanager.eventgrid.models.ExtendedLocation;
import com.azure.resourcemanager.eventgrid.models.IdentityInfo;
import com.azure.resourcemanager.eventgrid.models.InboundIpRule;
import com.azure.resourcemanager.eventgrid.models.InputSchema;
import com.azure.resourcemanager.eventgrid.models.InputSchemaMapping;
import com.azure.resourcemanager.eventgrid.models.PublicNetworkAccess;
-import com.azure.resourcemanager.eventgrid.models.ResourceKind;
-import com.azure.resourcemanager.eventgrid.models.ResourceSku;
import com.azure.resourcemanager.eventgrid.models.TlsVersion;
import com.azure.resourcemanager.eventgrid.models.TopicProvisioningState;
import java.io.IOException;
@@ -36,28 +33,13 @@ public final class TopicInner extends Resource {
*/
private TopicProperties innerProperties;
- /*
- * The Sku pricing tier for the topic.
- */
- private ResourceSku sku;
-
/*
* Identity information for the resource.
*/
private IdentityInfo identity;
/*
- * Kind of the resource.
- */
- private ResourceKind kind;
-
- /*
- * Extended location of the resource.
- */
- private ExtendedLocation extendedLocation;
-
- /*
- * The system metadata relating to Topic resource.
+ * The system metadata relating to the Event Grid resource.
*/
private SystemData systemData;
@@ -91,26 +73,6 @@ private TopicProperties innerProperties() {
return this.innerProperties;
}
- /**
- * Get the sku property: The Sku pricing tier for the topic.
- *
- * @return the sku value.
- */
- public ResourceSku sku() {
- return this.sku;
- }
-
- /**
- * Set the sku property: The Sku pricing tier for the topic.
- *
- * @param sku the sku value to set.
- * @return the TopicInner object itself.
- */
- public TopicInner withSku(ResourceSku sku) {
- this.sku = sku;
- return this;
- }
-
/**
* Get the identity property: Identity information for the resource.
*
@@ -132,47 +94,7 @@ public TopicInner withIdentity(IdentityInfo identity) {
}
/**
- * Get the kind property: Kind of the resource.
- *
- * @return the kind value.
- */
- public ResourceKind kind() {
- return this.kind;
- }
-
- /**
- * Set the kind property: Kind of the resource.
- *
- * @param kind the kind value to set.
- * @return the TopicInner object itself.
- */
- public TopicInner withKind(ResourceKind kind) {
- this.kind = kind;
- return this;
- }
-
- /**
- * Get the extendedLocation property: Extended location of the resource.
- *
- * @return the extendedLocation value.
- */
- public ExtendedLocation extendedLocation() {
- return this.extendedLocation;
- }
-
- /**
- * Set the extendedLocation property: Extended location of the resource.
- *
- * @param extendedLocation the extendedLocation value to set.
- * @return the TopicInner object itself.
- */
- public TopicInner withExtendedLocation(ExtendedLocation extendedLocation) {
- this.extendedLocation = extendedLocation;
- return this;
- }
-
- /**
- * Get the systemData property: The system metadata relating to Topic resource.
+ * Get the systemData property: The system metadata relating to the Event Grid resource.
*
* @return the systemData value.
*/
@@ -479,15 +401,9 @@ public void validate() {
if (innerProperties() != null) {
innerProperties().validate();
}
- if (sku() != null) {
- sku().validate();
- }
if (identity() != null) {
identity().validate();
}
- if (extendedLocation() != null) {
- extendedLocation().validate();
- }
}
/**
@@ -499,10 +415,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStringField("location", location());
jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeJsonField("properties", this.innerProperties);
- jsonWriter.writeJsonField("sku", this.sku);
jsonWriter.writeJsonField("identity", this.identity);
- jsonWriter.writeStringField("kind", this.kind == null ? null : this.kind.toString());
- jsonWriter.writeJsonField("extendedLocation", this.extendedLocation);
return jsonWriter.writeEndObject();
}
@@ -535,14 +448,8 @@ public static TopicInner fromJson(JsonReader jsonReader) throws IOException {
deserializedTopicInner.withTags(tags);
} else if ("properties".equals(fieldName)) {
deserializedTopicInner.innerProperties = TopicProperties.fromJson(reader);
- } else if ("sku".equals(fieldName)) {
- deserializedTopicInner.sku = ResourceSku.fromJson(reader);
} else if ("identity".equals(fieldName)) {
deserializedTopicInner.identity = IdentityInfo.fromJson(reader);
- } else if ("kind".equals(fieldName)) {
- deserializedTopicInner.kind = ResourceKind.fromString(reader.getString());
- } else if ("extendedLocation".equals(fieldName)) {
- deserializedTopicInner.extendedLocation = ExtendedLocation.fromJson(reader);
} else if ("systemData".equals(fieldName)) {
deserializedTopicInner.systemData = SystemData.fromJson(reader);
} else {
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicSpaceInner.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicSpaceInner.java
index 9bb2ebbb2e1a..b64f8bdba866 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicSpaceInner.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/fluent/models/TopicSpaceInner.java
@@ -25,7 +25,7 @@ public final class TopicSpaceInner extends ProxyResource {
private TopicSpaceProperties innerProperties;
/*
- * The system metadata relating to the TopicSpace resource.
+ * The system metadata relating to the Event Grid resource.
*/
private SystemData systemData;
@@ -60,7 +60,7 @@ private TopicSpaceProperties innerProperties() {
}
/**
- * Get the systemData property: The system metadata relating to the TopicSpace resource.
+ * Get the systemData property: The system metadata relating to the Event Grid resource.
*
* @return the systemData value.
*/
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 23dfe124d04b..d15e266f3c81 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
@@ -26,7 +26,7 @@ public final class VerifiedPartnerInner extends ProxyResource {
private VerifiedPartnerProperties innerProperties;
/*
- * The system metadata relating to Verified Partner resource.
+ * The system metadata relating to the Event Grid resource.
*/
private SystemData systemData;
@@ -61,7 +61,7 @@ private VerifiedPartnerProperties innerProperties() {
}
/**
- * Get the systemData property: The system metadata relating to Verified Partner resource.
+ * Get the systemData property: The system metadata relating to the Event Grid resource.
*
* @return the systemData value.
*/
@@ -191,29 +191,6 @@ public VerifiedPartnerInner withPartnerTopicDetails(PartnerDetails partnerTopicD
return this;
}
- /**
- * Get the partnerDestinationDetails property: Details of the partner destination scenario.
- *
- * @return the partnerDestinationDetails value.
- */
- public PartnerDetails partnerDestinationDetails() {
- return this.innerProperties() == null ? null : this.innerProperties().partnerDestinationDetails();
- }
-
- /**
- * Set the partnerDestinationDetails property: Details of the partner destination scenario.
- *
- * @param partnerDestinationDetails the partnerDestinationDetails value to set.
- * @return the VerifiedPartnerInner object itself.
- */
- public VerifiedPartnerInner withPartnerDestinationDetails(PartnerDetails partnerDestinationDetails) {
- if (this.innerProperties() == null) {
- this.innerProperties = new VerifiedPartnerProperties();
- }
- this.innerProperties().withPartnerDestinationDetails(partnerDestinationDetails);
- return this;
- }
-
/**
* Get the provisioningState property: Provisioning state 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 640e1839d218..9b73cd0c9438 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
@@ -40,11 +40,6 @@ public final class VerifiedPartnerProperties implements JsonSerializable {
- /*
- * The URL that represents the endpoint of the partner destination.
- */
- private String endpointUrl;
-
- /*
- * The base URL that represents the endpoint of the partner destination.
- */
- private String endpointBaseUrl;
-
- /*
- * Partner client authentication
- */
- private PartnerClientAuthentication clientAuthentication;
-
- /**
- * Creates an instance of WebhookPartnerDestinationProperties class.
- */
- public WebhookPartnerDestinationProperties() {
- }
-
- /**
- * Get the endpointUrl property: The URL that represents the endpoint of the partner destination.
- *
- * @return the endpointUrl value.
- */
- public String endpointUrl() {
- return this.endpointUrl;
- }
-
- /**
- * Set the endpointUrl property: The URL that represents the endpoint of the partner destination.
- *
- * @param endpointUrl the endpointUrl value to set.
- * @return the WebhookPartnerDestinationProperties object itself.
- */
- public WebhookPartnerDestinationProperties withEndpointUrl(String endpointUrl) {
- this.endpointUrl = endpointUrl;
- return this;
- }
-
- /**
- * Get the endpointBaseUrl property: The base URL that represents the endpoint of the partner destination.
- *
- * @return the endpointBaseUrl value.
- */
- public String endpointBaseUrl() {
- return this.endpointBaseUrl;
- }
-
- /**
- * Set the endpointBaseUrl property: The base URL that represents the endpoint of the partner destination.
- *
- * @param endpointBaseUrl the endpointBaseUrl value to set.
- * @return the WebhookPartnerDestinationProperties object itself.
- */
- public WebhookPartnerDestinationProperties withEndpointBaseUrl(String endpointBaseUrl) {
- this.endpointBaseUrl = endpointBaseUrl;
- return this;
- }
-
- /**
- * Get the clientAuthentication property: Partner client authentication.
- *
- * @return the clientAuthentication value.
- */
- public PartnerClientAuthentication clientAuthentication() {
- return this.clientAuthentication;
- }
-
- /**
- * Set the clientAuthentication property: Partner client authentication.
- *
- * @param clientAuthentication the clientAuthentication value to set.
- * @return the WebhookPartnerDestinationProperties object itself.
- */
- public WebhookPartnerDestinationProperties
- withClientAuthentication(PartnerClientAuthentication clientAuthentication) {
- this.clientAuthentication = clientAuthentication;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (clientAuthentication() != null) {
- clientAuthentication().validate();
- }
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("endpointUrl", this.endpointUrl);
- jsonWriter.writeStringField("endpointBaseUrl", this.endpointBaseUrl);
- jsonWriter.writeJsonField("clientAuthentication", this.clientAuthentication);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of WebhookPartnerDestinationProperties from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of WebhookPartnerDestinationProperties if the JsonReader was pointing to an instance of it,
- * or null if it was pointing to JSON null.
- * @throws IOException If an error occurs while reading the WebhookPartnerDestinationProperties.
- */
- public static WebhookPartnerDestinationProperties fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- WebhookPartnerDestinationProperties deserializedWebhookPartnerDestinationProperties
- = new WebhookPartnerDestinationProperties();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("endpointUrl".equals(fieldName)) {
- deserializedWebhookPartnerDestinationProperties.endpointUrl = reader.getString();
- } else if ("endpointBaseUrl".equals(fieldName)) {
- deserializedWebhookPartnerDestinationProperties.endpointBaseUrl = reader.getString();
- } else if ("clientAuthentication".equals(fieldName)) {
- deserializedWebhookPartnerDestinationProperties.clientAuthentication
- = PartnerClientAuthentication.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedWebhookPartnerDestinationProperties;
- });
- }
-}
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 3e1ea3a071f9..21d70f8e5bed 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
@@ -12,7 +12,6 @@
import com.azure.resourcemanager.eventgrid.models.ChannelProvisioningState;
import com.azure.resourcemanager.eventgrid.models.ChannelType;
import com.azure.resourcemanager.eventgrid.models.EventSubscriptionFullUrl;
-import com.azure.resourcemanager.eventgrid.models.PartnerDestinationInfo;
import com.azure.resourcemanager.eventgrid.models.PartnerTopicInfo;
import com.azure.resourcemanager.eventgrid.models.ReadinessState;
import java.time.OffsetDateTime;
@@ -46,10 +45,6 @@ public PartnerTopicInfo partnerTopicInfo() {
return this.innerModel().partnerTopicInfo();
}
- public PartnerDestinationInfo partnerDestinationInfo() {
- return this.innerModel().partnerDestinationInfo();
- }
-
public String messageForActivation() {
return this.innerModel().messageForActivation();
}
@@ -179,11 +174,6 @@ public ChannelImpl withPartnerTopicInfo(PartnerTopicInfo partnerTopicInfo) {
return this;
}
- public ChannelImpl withPartnerDestinationInfo(PartnerDestinationInfo partnerDestinationInfo) {
- this.innerModel().withPartnerDestinationInfo(partnerDestinationInfo);
- return this;
- }
-
public ChannelImpl withMessageForActivation(String messageForActivation) {
this.innerModel().withMessageForActivation(messageForActivation);
return this;
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 8d7eb937ca16..904d9a450d9d 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
@@ -23,7 +23,6 @@
import com.azure.resourcemanager.eventgrid.models.InputSchemaMapping;
import com.azure.resourcemanager.eventgrid.models.PrivateEndpointConnection;
import com.azure.resourcemanager.eventgrid.models.PublicNetworkAccess;
-import com.azure.resourcemanager.eventgrid.models.ResourceSku;
import com.azure.resourcemanager.eventgrid.models.TlsVersion;
import java.util.Collections;
import java.util.List;
@@ -60,10 +59,6 @@ public Map tags() {
}
}
- public ResourceSku sku() {
- return this.innerModel().sku();
- }
-
public IdentityInfo identity() {
return this.innerModel().identity();
}
@@ -271,16 +266,6 @@ public DomainImpl withTags(Map tags) {
}
}
- public DomainImpl withSku(ResourceSku sku) {
- if (isInCreateMode()) {
- this.innerModel().withSku(sku);
- return this;
- } else {
- this.updateDomainUpdateParameters.withSku(sku);
- return this;
- }
- }
-
public DomainImpl withIdentity(IdentityInfo identity) {
if (isInCreateMode()) {
this.innerModel().withIdentity(identity);
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 86d12c1db3e6..6cec79b5e9db 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
@@ -75,16 +75,6 @@ public final class DomainTopicEventSubscriptionsClientImpl implements DomainTopi
@Host("{$host}")
@ServiceInterface(name = "EventGridManagementC")
public interface DomainTopicEventSubscriptionsService {
- @Headers({ "Content-Type: application/json" })
- @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/topics/{topicName}/eventSubscriptions/{eventSubscriptionName}/getDeliveryAttributes")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> getDeliveryAttributes(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName, @PathParam("domainName") String domainName,
- @PathParam("topicName") String topicName, @PathParam("eventSubscriptionName") String eventSubscriptionName,
- @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
-
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/topics/{topicName}/eventSubscriptions/{eventSubscriptionName}")
@ExpectedResponses({ 200 })
@@ -150,6 +140,16 @@ Mono> list(@HostParam("$host") String end
@QueryParam("$filter") String filter, @QueryParam("$top") Integer top, @HeaderParam("Accept") String accept,
Context context);
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/topics/{topicName}/eventSubscriptions/{eventSubscriptionName}/getDeliveryAttributes")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getDeliveryAttributes(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("domainName") String domainName,
+ @PathParam("topicName") String topicName, @PathParam("eventSubscriptionName") String eventSubscriptionName,
+ @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
+
@Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@@ -159,167 +159,6 @@ Mono> listNext(
@HeaderParam("Accept") String accept, Context context);
}
- /**
- * 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.
- * @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} on
- * successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getDeliveryAttributesWithResponseAsync(
- String resourceGroupName, String domainName, String topicName, String eventSubscriptionName) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (domainName == null) {
- return Mono.error(new IllegalArgumentException("Parameter domainName is required and cannot be null."));
- }
- if (topicName == null) {
- return Mono.error(new IllegalArgumentException("Parameter topicName is required and cannot be null."));
- }
- if (eventSubscriptionName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter eventSubscriptionName is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.getDeliveryAttributes(this.client.getEndpoint(),
- this.client.getSubscriptionId(), resourceGroupName, domainName, topicName, eventSubscriptionName,
- this.client.getApiVersion(), accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * 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} on
- * successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getDeliveryAttributesWithResponseAsync(
- String resourceGroupName, String domainName, String topicName, String eventSubscriptionName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (domainName == null) {
- return Mono.error(new IllegalArgumentException("Parameter domainName is required and cannot be null."));
- }
- if (topicName == null) {
- return Mono.error(new IllegalArgumentException("Parameter topicName is required and cannot be null."));
- }
- if (eventSubscriptionName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter eventSubscriptionName is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.getDeliveryAttributes(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, domainName, topicName, eventSubscriptionName, this.client.getApiVersion(), accept,
- context);
- }
-
- /**
- * 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.
- * @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 on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono getDeliveryAttributesAsync(String resourceGroupName,
- String domainName, String topicName, String eventSubscriptionName) {
- return getDeliveryAttributesWithResponseAsync(resourceGroupName, domainName, topicName, eventSubscriptionName)
- .flatMap(res -> Mono.justOrEmpty(res.getValue()));
- }
-
- /**
- * 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}.
- */
- @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();
- }
-
- /**
- * 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.
- * @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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public DeliveryAttributeListResultInner getDeliveryAttributes(String resourceGroupName, String domainName,
- String topicName, String eventSubscriptionName) {
- return getDeliveryAttributesWithResponse(resourceGroupName, domainName, topicName, eventSubscriptionName,
- Context.NONE).getValue();
- }
-
/**
* Get a nested event subscription for domain topic.
*
@@ -1746,6 +1585,167 @@ public PagedIterable list(String resourceGroupName, Stri
return new PagedIterable<>(listAsync(resourceGroupName, domainName, topicName, filter, top, context));
}
+ /**
+ * 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.
+ * @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} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getDeliveryAttributesWithResponseAsync(
+ String resourceGroupName, String domainName, String topicName, String eventSubscriptionName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (domainName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter domainName is required and cannot be null."));
+ }
+ if (topicName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter topicName is required and cannot be null."));
+ }
+ if (eventSubscriptionName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter eventSubscriptionName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.getDeliveryAttributes(this.client.getEndpoint(),
+ this.client.getSubscriptionId(), resourceGroupName, domainName, topicName, eventSubscriptionName,
+ this.client.getApiVersion(), accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * 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} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getDeliveryAttributesWithResponseAsync(
+ String resourceGroupName, String domainName, String topicName, String eventSubscriptionName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (domainName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter domainName is required and cannot be null."));
+ }
+ if (topicName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter topicName is required and cannot be null."));
+ }
+ if (eventSubscriptionName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter eventSubscriptionName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.getDeliveryAttributes(this.client.getEndpoint(), this.client.getSubscriptionId(),
+ resourceGroupName, domainName, topicName, eventSubscriptionName, this.client.getApiVersion(), accept,
+ context);
+ }
+
+ /**
+ * 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.
+ * @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 on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getDeliveryAttributesAsync(String resourceGroupName,
+ String domainName, String topicName, String eventSubscriptionName) {
+ return getDeliveryAttributesWithResponseAsync(resourceGroupName, domainName, topicName, eventSubscriptionName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * 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}.
+ */
+ @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();
+ }
+
+ /**
+ * 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.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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.
*
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 b1edf8ed312d..7562430e06c4 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
@@ -32,30 +32,6 @@ public DomainTopicEventSubscriptionsImpl(DomainTopicEventSubscriptionsClient inn
this.serviceManager = serviceManager;
}
- public Response getDeliveryAttributesWithResponse(String resourceGroupName,
- String domainName, String topicName, String eventSubscriptionName, Context context) {
- Response inner = this.serviceClient()
- .getDeliveryAttributesWithResponse(resourceGroupName, domainName, topicName, eventSubscriptionName,
- context);
- if (inner != null) {
- return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
- new DeliveryAttributeListResultImpl(inner.getValue(), this.manager()));
- } else {
- return null;
- }
- }
-
- 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 getWithResponse(String resourceGroupName, String domainName, String topicName,
String eventSubscriptionName, Context context) {
Response inner = this.serviceClient()
@@ -171,6 +147,30 @@ public PagedIterable list(String resourceGroupName, String do
return ResourceManagerUtils.mapPage(inner, inner1 -> new EventSubscriptionImpl(inner1, this.manager()));
}
+ public Response getDeliveryAttributesWithResponse(String resourceGroupName,
+ String domainName, String topicName, String eventSubscriptionName, Context context) {
+ Response inner = this.serviceClient()
+ .getDeliveryAttributesWithResponse(resourceGroupName, domainName, topicName, eventSubscriptionName,
+ context);
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new DeliveryAttributeListResultImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ 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/EventGridManagementClientImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/EventGridManagementClientImpl.java
index ab30b2b4b3a5..871179b8bec3 100644
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/EventGridManagementClientImpl.java
+++ b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/EventGridManagementClientImpl.java
@@ -37,10 +37,8 @@
import com.azure.resourcemanager.eventgrid.fluent.NamespaceTopicEventSubscriptionsClient;
import com.azure.resourcemanager.eventgrid.fluent.NamespaceTopicsClient;
import com.azure.resourcemanager.eventgrid.fluent.NamespacesClient;
-import com.azure.resourcemanager.eventgrid.fluent.NetworkSecurityPerimeterConfigurationsClient;
import com.azure.resourcemanager.eventgrid.fluent.OperationsClient;
import com.azure.resourcemanager.eventgrid.fluent.PartnerConfigurationsClient;
-import com.azure.resourcemanager.eventgrid.fluent.PartnerDestinationsClient;
import com.azure.resourcemanager.eventgrid.fluent.PartnerNamespacesClient;
import com.azure.resourcemanager.eventgrid.fluent.PartnerRegistrationsClient;
import com.azure.resourcemanager.eventgrid.fluent.PartnerTopicEventSubscriptionsClient;
@@ -239,20 +237,6 @@ public DomainTopicsClient getDomainTopics() {
return this.domainTopics;
}
- /**
- * The DomainTopicEventSubscriptionsClient object to access its operations.
- */
- private final DomainTopicEventSubscriptionsClient domainTopicEventSubscriptions;
-
- /**
- * Gets the DomainTopicEventSubscriptionsClient object to access its operations.
- *
- * @return the DomainTopicEventSubscriptionsClient object.
- */
- public DomainTopicEventSubscriptionsClient getDomainTopicEventSubscriptions() {
- return this.domainTopicEventSubscriptions;
- }
-
/**
* The TopicEventSubscriptionsClient object to access its operations.
*/
@@ -281,6 +265,20 @@ public DomainEventSubscriptionsClient getDomainEventSubscriptions() {
return this.domainEventSubscriptions;
}
+ /**
+ * The NamespaceTopicEventSubscriptionsClient object to access its operations.
+ */
+ private final NamespaceTopicEventSubscriptionsClient namespaceTopicEventSubscriptions;
+
+ /**
+ * Gets the NamespaceTopicEventSubscriptionsClient object to access its operations.
+ *
+ * @return the NamespaceTopicEventSubscriptionsClient object.
+ */
+ public NamespaceTopicEventSubscriptionsClient getNamespaceTopicEventSubscriptions() {
+ return this.namespaceTopicEventSubscriptions;
+ }
+
/**
* The EventSubscriptionsClient object to access its operations.
*/
@@ -296,31 +294,31 @@ public EventSubscriptionsClient getEventSubscriptions() {
}
/**
- * The SystemTopicEventSubscriptionsClient object to access its operations.
+ * The DomainTopicEventSubscriptionsClient object to access its operations.
*/
- private final SystemTopicEventSubscriptionsClient systemTopicEventSubscriptions;
+ private final DomainTopicEventSubscriptionsClient domainTopicEventSubscriptions;
/**
- * Gets the SystemTopicEventSubscriptionsClient object to access its operations.
+ * Gets the DomainTopicEventSubscriptionsClient object to access its operations.
*
- * @return the SystemTopicEventSubscriptionsClient object.
+ * @return the DomainTopicEventSubscriptionsClient object.
*/
- public SystemTopicEventSubscriptionsClient getSystemTopicEventSubscriptions() {
- return this.systemTopicEventSubscriptions;
+ public DomainTopicEventSubscriptionsClient getDomainTopicEventSubscriptions() {
+ return this.domainTopicEventSubscriptions;
}
/**
- * The NamespaceTopicEventSubscriptionsClient object to access its operations.
+ * The SystemTopicEventSubscriptionsClient object to access its operations.
*/
- private final NamespaceTopicEventSubscriptionsClient namespaceTopicEventSubscriptions;
+ private final SystemTopicEventSubscriptionsClient systemTopicEventSubscriptions;
/**
- * Gets the NamespaceTopicEventSubscriptionsClient object to access its operations.
+ * Gets the SystemTopicEventSubscriptionsClient object to access its operations.
*
- * @return the NamespaceTopicEventSubscriptionsClient object.
+ * @return the SystemTopicEventSubscriptionsClient object.
*/
- public NamespaceTopicEventSubscriptionsClient getNamespaceTopicEventSubscriptions() {
- return this.namespaceTopicEventSubscriptions;
+ public SystemTopicEventSubscriptionsClient getSystemTopicEventSubscriptions() {
+ return this.systemTopicEventSubscriptions;
}
/**
@@ -380,31 +378,31 @@ public OperationsClient getOperations() {
}
/**
- * The PartnerConfigurationsClient object to access its operations.
+ * The TopicsClient object to access its operations.
*/
- private final PartnerConfigurationsClient partnerConfigurations;
+ private final TopicsClient topics;
/**
- * Gets the PartnerConfigurationsClient object to access its operations.
+ * Gets the TopicsClient object to access its operations.
*
- * @return the PartnerConfigurationsClient object.
+ * @return the TopicsClient object.
*/
- public PartnerConfigurationsClient getPartnerConfigurations() {
- return this.partnerConfigurations;
+ public TopicsClient getTopics() {
+ return this.topics;
}
/**
- * The PartnerDestinationsClient object to access its operations.
+ * The PartnerConfigurationsClient object to access its operations.
*/
- private final PartnerDestinationsClient partnerDestinations;
+ private final PartnerConfigurationsClient partnerConfigurations;
/**
- * Gets the PartnerDestinationsClient object to access its operations.
+ * Gets the PartnerConfigurationsClient object to access its operations.
*
- * @return the PartnerDestinationsClient object.
+ * @return the PartnerConfigurationsClient object.
*/
- public PartnerDestinationsClient getPartnerDestinations() {
- return this.partnerDestinations;
+ public PartnerConfigurationsClient getPartnerConfigurations() {
+ return this.partnerConfigurations;
}
/**
@@ -449,20 +447,6 @@ public PartnerTopicsClient getPartnerTopics() {
return this.partnerTopics;
}
- /**
- * The NetworkSecurityPerimeterConfigurationsClient object to access its operations.
- */
- private final NetworkSecurityPerimeterConfigurationsClient networkSecurityPerimeterConfigurations;
-
- /**
- * Gets the NetworkSecurityPerimeterConfigurationsClient object to access its operations.
- *
- * @return the NetworkSecurityPerimeterConfigurationsClient object.
- */
- public NetworkSecurityPerimeterConfigurationsClient getNetworkSecurityPerimeterConfigurations() {
- return this.networkSecurityPerimeterConfigurations;
- }
-
/**
* The PermissionBindingsClient object to access its operations.
*/
@@ -519,20 +503,6 @@ public SystemTopicsClient getSystemTopics() {
return this.systemTopics;
}
- /**
- * The TopicsClient object to access its operations.
- */
- private final TopicsClient topics;
-
- /**
- * Gets the TopicsClient object to access its operations.
- *
- * @return the TopicsClient object.
- */
- public TopicsClient getTopics() {
- return this.topics;
- }
-
/**
* The ExtensionTopicsClient object to access its operations.
*/
@@ -607,34 +577,32 @@ public VerifiedPartnersClient getVerifiedPartners() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2024-06-01-preview";
+ this.apiVersion = "2025-02-15";
this.caCertificates = new CaCertificatesClientImpl(this);
this.channels = new ChannelsClientImpl(this);
this.clientGroups = new ClientGroupsClientImpl(this);
this.clients = new ClientsClientImpl(this);
this.domains = new DomainsClientImpl(this);
this.domainTopics = new DomainTopicsClientImpl(this);
- this.domainTopicEventSubscriptions = new DomainTopicEventSubscriptionsClientImpl(this);
this.topicEventSubscriptions = new TopicEventSubscriptionsClientImpl(this);
this.domainEventSubscriptions = new DomainEventSubscriptionsClientImpl(this);
+ this.namespaceTopicEventSubscriptions = new NamespaceTopicEventSubscriptionsClientImpl(this);
this.eventSubscriptions = new EventSubscriptionsClientImpl(this);
+ this.domainTopicEventSubscriptions = new DomainTopicEventSubscriptionsClientImpl(this);
this.systemTopicEventSubscriptions = new SystemTopicEventSubscriptionsClientImpl(this);
- this.namespaceTopicEventSubscriptions = new NamespaceTopicEventSubscriptionsClientImpl(this);
this.partnerTopicEventSubscriptions = new PartnerTopicEventSubscriptionsClientImpl(this);
this.namespaces = new NamespacesClientImpl(this);
this.namespaceTopics = new NamespaceTopicsClientImpl(this);
this.operations = new OperationsClientImpl(this);
+ this.topics = new TopicsClientImpl(this);
this.partnerConfigurations = new PartnerConfigurationsClientImpl(this);
- this.partnerDestinations = new PartnerDestinationsClientImpl(this);
this.partnerNamespaces = new PartnerNamespacesClientImpl(this);
this.partnerRegistrations = new PartnerRegistrationsClientImpl(this);
this.partnerTopics = new PartnerTopicsClientImpl(this);
- this.networkSecurityPerimeterConfigurations = new NetworkSecurityPerimeterConfigurationsClientImpl(this);
this.permissionBindings = new PermissionBindingsClientImpl(this);
this.privateEndpointConnections = new PrivateEndpointConnectionsClientImpl(this);
this.privateLinkResources = new PrivateLinkResourcesClientImpl(this);
this.systemTopics = new SystemTopicsClientImpl(this);
- this.topics = new TopicsClientImpl(this);
this.extensionTopics = new ExtensionTopicsClientImpl(this);
this.topicSpaces = new TopicSpacesClientImpl(this);
this.topicTypes = new TopicTypesClientImpl(this);
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 08f7b7edb4ff..b683bc4bf0c8 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
@@ -75,15 +75,6 @@ public final class EventSubscriptionsClientImpl implements EventSubscriptionsCli
@Host("{$host}")
@ServiceInterface(name = "EventGridManagementC")
public interface EventSubscriptionsService {
- @Headers({ "Content-Type: application/json" })
- @Post("/{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}/getDeliveryAttributes")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> getDeliveryAttributes(@HostParam("$host") String endpoint,
- @PathParam(value = "scope", encoded = true) String scope,
- @PathParam("eventSubscriptionName") String eventSubscriptionName,
- @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
-
@Headers({ "Content-Type: application/json" })
@Get("/{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}")
@ExpectedResponses({ 200 })
@@ -235,6 +226,15 @@ Mono> listByDomainTopic(@HostParam("$host
@QueryParam("$filter") String filter, @QueryParam("$top") Integer top, @HeaderParam("Accept") String accept,
Context context);
+ @Headers({ "Content-Type: application/json" })
+ @Post("/{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}/getDeliveryAttributes")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getDeliveryAttributes(@HostParam("$host") String endpoint,
+ @PathParam(value = "scope", encoded = true) String scope,
+ @PathParam("eventSubscriptionName") String eventSubscriptionName,
+ @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
+
@Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@@ -316,164 +316,6 @@ Mono> listByDomainTopicNext(
@HeaderParam("Accept") String accept, Context context);
}
- /**
- * 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
- * '/subscriptions/{subscriptionId}/' for a subscription,
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
- * for a resource, and
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
- * for an EventGrid topic.
- * @param eventSubscriptionName Name of the event subscription.
- * @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} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getDeliveryAttributesWithResponseAsync(String scope,
- String eventSubscriptionName) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (scope == null) {
- return Mono.error(new IllegalArgumentException("Parameter scope is required and cannot be null."));
- }
- if (eventSubscriptionName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter eventSubscriptionName is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.getDeliveryAttributes(this.client.getEndpoint(), scope,
- eventSubscriptionName, this.client.getApiVersion(), accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * 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
- * '/subscriptions/{subscriptionId}/' for a subscription,
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
- * for a resource, and
- * '/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} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getDeliveryAttributesWithResponseAsync(String scope,
- String eventSubscriptionName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (scope == null) {
- return Mono.error(new IllegalArgumentException("Parameter scope is required and cannot be null."));
- }
- if (eventSubscriptionName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter eventSubscriptionName is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.getDeliveryAttributes(this.client.getEndpoint(), scope, eventSubscriptionName,
- this.client.getApiVersion(), accept, context);
- }
-
- /**
- * 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
- * '/subscriptions/{subscriptionId}/' for a subscription,
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
- * for a resource, and
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
- * for an EventGrid topic.
- * @param eventSubscriptionName Name of the event subscription.
- * @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 on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono getDeliveryAttributesAsync(String scope,
- String eventSubscriptionName) {
- return getDeliveryAttributesWithResponseAsync(scope, eventSubscriptionName)
- .flatMap(res -> Mono.justOrEmpty(res.getValue()));
- }
-
- /**
- * 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
- * '/subscriptions/{subscriptionId}/' for a subscription,
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
- * for a resource, and
- * '/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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response getDeliveryAttributesWithResponse(String scope,
- String eventSubscriptionName, Context context) {
- return getDeliveryAttributesWithResponseAsync(scope, eventSubscriptionName, context).block();
- }
-
- /**
- * 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
- * '/subscriptions/{subscriptionId}/' for a subscription,
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
- * for a resource, and
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
- * for an EventGrid topic.
- * @param eventSubscriptionName Name of the event subscription.
- * @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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public DeliveryAttributeListResultInner getDeliveryAttributes(String scope, String eventSubscriptionName) {
- return getDeliveryAttributesWithResponse(scope, eventSubscriptionName, Context.NONE).getValue();
- }
-
/**
* Get an event subscription.
*
@@ -3878,6 +3720,164 @@ public PagedIterable listByDomainTopic(String resourceGr
listByDomainTopicAsync(resourceGroupName, domainName, topicName, filter, top, context));
}
+ /**
+ * 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
+ * '/subscriptions/{subscriptionId}/' for a subscription,
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
+ * for a resource, and
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
+ * for an EventGrid topic.
+ * @param eventSubscriptionName Name of the event subscription.
+ * @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} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getDeliveryAttributesWithResponseAsync(String scope,
+ String eventSubscriptionName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (scope == null) {
+ return Mono.error(new IllegalArgumentException("Parameter scope is required and cannot be null."));
+ }
+ if (eventSubscriptionName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter eventSubscriptionName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.getDeliveryAttributes(this.client.getEndpoint(), scope,
+ eventSubscriptionName, this.client.getApiVersion(), accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * 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
+ * '/subscriptions/{subscriptionId}/' for a subscription,
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
+ * for a resource, and
+ * '/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} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getDeliveryAttributesWithResponseAsync(String scope,
+ String eventSubscriptionName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (scope == null) {
+ return Mono.error(new IllegalArgumentException("Parameter scope is required and cannot be null."));
+ }
+ if (eventSubscriptionName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter eventSubscriptionName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.getDeliveryAttributes(this.client.getEndpoint(), scope, eventSubscriptionName,
+ this.client.getApiVersion(), accept, context);
+ }
+
+ /**
+ * 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
+ * '/subscriptions/{subscriptionId}/' for a subscription,
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
+ * for a resource, and
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
+ * for an EventGrid topic.
+ * @param eventSubscriptionName Name of the event subscription.
+ * @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 on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getDeliveryAttributesAsync(String scope,
+ String eventSubscriptionName) {
+ return getDeliveryAttributesWithResponseAsync(scope, eventSubscriptionName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * 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
+ * '/subscriptions/{subscriptionId}/' for a subscription,
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
+ * for a resource, and
+ * '/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}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getDeliveryAttributesWithResponse(String scope,
+ String eventSubscriptionName, Context context) {
+ return getDeliveryAttributesWithResponseAsync(scope, eventSubscriptionName, context).block();
+ }
+
+ /**
+ * 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
+ * '/subscriptions/{subscriptionId}/' for a subscription,
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
+ * for a resource, and
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
+ * for an EventGrid topic.
+ * @param eventSubscriptionName Name of the event subscription.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DeliveryAttributeListResultInner getDeliveryAttributes(String scope, String eventSubscriptionName) {
+ return getDeliveryAttributesWithResponse(scope, eventSubscriptionName, Context.NONE).getValue();
+ }
+
/**
* Get the next page of items.
*
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 c79d5d0b1b67..e112aa6cb649 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,28 +32,6 @@ public EventSubscriptionsImpl(EventSubscriptionsClient innerClient,
this.serviceManager = serviceManager;
}
- public Response getDeliveryAttributesWithResponse(String scope,
- String eventSubscriptionName, Context context) {
- Response inner
- = this.serviceClient().getDeliveryAttributesWithResponse(scope, eventSubscriptionName, context);
- if (inner != null) {
- return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
- new DeliveryAttributeListResultImpl(inner.getValue(), this.manager()));
- } else {
- return null;
- }
- }
-
- 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 getWithResponse(String scope, String eventSubscriptionName, Context context) {
Response inner
= this.serviceClient().getWithResponse(scope, eventSubscriptionName, context);
@@ -277,6 +255,28 @@ public PagedIterable listByDomainTopic(String resourceGroupNa
return ResourceManagerUtils.mapPage(inner, inner1 -> new EventSubscriptionImpl(inner1, this.manager()));
}
+ public Response getDeliveryAttributesWithResponse(String scope,
+ String eventSubscriptionName, Context context) {
+ Response inner
+ = this.serviceClient().getDeliveryAttributesWithResponse(scope, eventSubscriptionName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new DeliveryAttributeListResultImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ 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/NetworkSecurityPerimeterConfigurationImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/NetworkSecurityPerimeterConfigurationImpl.java
deleted file mode 100644
index 50f1c04cc832..000000000000
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/NetworkSecurityPerimeterConfigurationImpl.java
+++ /dev/null
@@ -1,72 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.eventgrid.implementation;
-
-import com.azure.resourcemanager.eventgrid.fluent.models.NetworkSecurityPerimeterConfigurationInner;
-import com.azure.resourcemanager.eventgrid.models.NetworkSecurityPerimeterConfigProvisioningState;
-import com.azure.resourcemanager.eventgrid.models.NetworkSecurityPerimeterConfiguration;
-import com.azure.resourcemanager.eventgrid.models.NetworkSecurityPerimeterConfigurationIssues;
-import com.azure.resourcemanager.eventgrid.models.NetworkSecurityPerimeterConfigurationProfile;
-import com.azure.resourcemanager.eventgrid.models.NetworkSecurityPerimeterInfo;
-import com.azure.resourcemanager.eventgrid.models.ResourceAssociation;
-import java.util.Collections;
-import java.util.List;
-
-public final class NetworkSecurityPerimeterConfigurationImpl implements NetworkSecurityPerimeterConfiguration {
- private NetworkSecurityPerimeterConfigurationInner innerObject;
-
- private final com.azure.resourcemanager.eventgrid.EventGridManager serviceManager;
-
- NetworkSecurityPerimeterConfigurationImpl(NetworkSecurityPerimeterConfigurationInner innerObject,
- com.azure.resourcemanager.eventgrid.EventGridManager serviceManager) {
- this.innerObject = innerObject;
- this.serviceManager = serviceManager;
- }
-
- public String id() {
- return this.innerModel().id();
- }
-
- public String name() {
- return this.innerModel().name();
- }
-
- public String type() {
- return this.innerModel().type();
- }
-
- public NetworkSecurityPerimeterConfigProvisioningState provisioningState() {
- return this.innerModel().provisioningState();
- }
-
- public List provisioningIssues() {
- List inner = this.innerModel().provisioningIssues();
- if (inner != null) {
- return Collections.unmodifiableList(inner);
- } else {
- return Collections.emptyList();
- }
- }
-
- public NetworkSecurityPerimeterInfo networkSecurityPerimeter() {
- return this.innerModel().networkSecurityPerimeter();
- }
-
- public ResourceAssociation resourceAssociation() {
- return this.innerModel().resourceAssociation();
- }
-
- public NetworkSecurityPerimeterConfigurationProfile profile() {
- return this.innerModel().profile();
- }
-
- public NetworkSecurityPerimeterConfigurationInner innerModel() {
- return this.innerObject;
- }
-
- private com.azure.resourcemanager.eventgrid.EventGridManager manager() {
- return this.serviceManager;
- }
-}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/NetworkSecurityPerimeterConfigurationsClientImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/NetworkSecurityPerimeterConfigurationsClientImpl.java
deleted file mode 100644
index 6b71e7d6ceb4..000000000000
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/NetworkSecurityPerimeterConfigurationsClientImpl.java
+++ /dev/null
@@ -1,773 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.eventgrid.implementation;
-
-import com.azure.core.annotation.ExpectedResponses;
-import com.azure.core.annotation.Get;
-import com.azure.core.annotation.HeaderParam;
-import com.azure.core.annotation.Headers;
-import com.azure.core.annotation.Host;
-import com.azure.core.annotation.HostParam;
-import com.azure.core.annotation.PathParam;
-import com.azure.core.annotation.Post;
-import com.azure.core.annotation.QueryParam;
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceInterface;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.annotation.UnexpectedResponseExceptionType;
-import com.azure.core.http.rest.PagedFlux;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.PagedResponse;
-import com.azure.core.http.rest.PagedResponseBase;
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.RestProxy;
-import com.azure.core.management.exception.ManagementException;
-import com.azure.core.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.FluxUtil;
-import com.azure.core.util.polling.PollerFlux;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.eventgrid.fluent.NetworkSecurityPerimeterConfigurationsClient;
-import com.azure.resourcemanager.eventgrid.fluent.models.NetworkSecurityPerimeterConfigurationInner;
-import com.azure.resourcemanager.eventgrid.models.NetworkSecurityPerimeterConfigurationList;
-import com.azure.resourcemanager.eventgrid.models.NetworkSecurityPerimeterResourceType;
-import java.nio.ByteBuffer;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-/**
- * An instance of this class provides access to all the operations defined in
- * NetworkSecurityPerimeterConfigurationsClient.
- */
-public final class NetworkSecurityPerimeterConfigurationsClientImpl
- implements NetworkSecurityPerimeterConfigurationsClient {
- /**
- * The proxy service used to perform REST calls.
- */
- private final NetworkSecurityPerimeterConfigurationsService service;
-
- /**
- * The service client containing this operation class.
- */
- private final EventGridManagementClientImpl client;
-
- /**
- * Initializes an instance of NetworkSecurityPerimeterConfigurationsClientImpl.
- *
- * @param client the instance of the service client containing this operation class.
- */
- NetworkSecurityPerimeterConfigurationsClientImpl(EventGridManagementClientImpl client) {
- this.service = RestProxy.create(NetworkSecurityPerimeterConfigurationsService.class, client.getHttpPipeline(),
- client.getSerializerAdapter());
- this.client = client;
- }
-
- /**
- * The interface defining all the services for EventGridManagementClientNetworkSecurityPerimeterConfigurations to be
- * used by the proxy service to perform REST calls.
- */
- @Host("{$host}")
- @ServiceInterface(name = "EventGridManagementC")
- public interface NetworkSecurityPerimeterConfigurationsService {
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/{resourceType}/{resourceName}/networkSecurityPerimeterConfigurations/{perimeterGuid}.{associationName}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> get(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("resourceType") NetworkSecurityPerimeterResourceType resourceType,
- @PathParam("resourceName") String resourceName, @PathParam("perimeterGuid") String perimeterGuid,
- @PathParam("associationName") String associationName, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/{resourceType}/{resourceName}/networkSecurityPerimeterConfigurations/{perimeterGuid}.{associationName}/reconcile")
- @ExpectedResponses({ 200, 202 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> reconcile(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("resourceType") NetworkSecurityPerimeterResourceType resourceType,
- @PathParam("resourceName") String resourceName, @PathParam("perimeterGuid") String perimeterGuid,
- @PathParam("associationName") String associationName, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/{resourceType}/{resourceName}/networkSecurityPerimeterConfigurations")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> list(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("resourceType") NetworkSecurityPerimeterResourceType resourceType,
- @PathParam("resourceName") String resourceName, @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept, Context context);
- }
-
- /**
- * Get a specific network security perimeter configuration.
- *
- * Get a specific network security perimeter configuration with a topic or domain.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param resourceType The type of the resource. This can be either \'topics\', or \'domains\'.
- * @param resourceName The name of the resource (namely, either, the topic name or domain name).
- * @param perimeterGuid Unique identifier for perimeter.
- * @param associationName Association name to association network security perimeter resource to profile.
- * @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 network security perimeter configuration with a topic or domain along with {@link Response} on
- * successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getWithResponseAsync(String resourceGroupName,
- NetworkSecurityPerimeterResourceType resourceType, String resourceName, String perimeterGuid,
- String associationName) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (resourceType == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceType is required and cannot be null."));
- }
- if (resourceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
- }
- if (perimeterGuid == null) {
- return Mono.error(new IllegalArgumentException("Parameter perimeterGuid is required and cannot be null."));
- }
- if (associationName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter associationName is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, resourceType, resourceName, perimeterGuid, associationName,
- this.client.getApiVersion(), accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Get a specific network security perimeter configuration.
- *
- * Get a specific network security perimeter configuration with a topic or domain.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param resourceType The type of the resource. This can be either \'topics\', or \'domains\'.
- * @param resourceName The name of the resource (namely, either, the topic name or domain name).
- * @param perimeterGuid Unique identifier for perimeter.
- * @param associationName Association name to association network security perimeter resource to profile.
- * @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 network security perimeter configuration with a topic or domain along with {@link Response} on
- * successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getWithResponseAsync(String resourceGroupName,
- NetworkSecurityPerimeterResourceType resourceType, String resourceName, String perimeterGuid,
- String associationName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (resourceType == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceType is required and cannot be null."));
- }
- if (resourceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
- }
- if (perimeterGuid == null) {
- return Mono.error(new IllegalArgumentException("Parameter perimeterGuid is required and cannot be null."));
- }
- if (associationName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter associationName is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, resourceType,
- resourceName, perimeterGuid, associationName, this.client.getApiVersion(), accept, context);
- }
-
- /**
- * Get a specific network security perimeter configuration.
- *
- * Get a specific network security perimeter configuration with a topic or domain.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param resourceType The type of the resource. This can be either \'topics\', or \'domains\'.
- * @param resourceName The name of the resource (namely, either, the topic name or domain name).
- * @param perimeterGuid Unique identifier for perimeter.
- * @param associationName Association name to association network security perimeter resource to profile.
- * @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 network security perimeter configuration with a topic or domain on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono getAsync(String resourceGroupName,
- NetworkSecurityPerimeterResourceType resourceType, String resourceName, String perimeterGuid,
- String associationName) {
- return getWithResponseAsync(resourceGroupName, resourceType, resourceName, perimeterGuid, associationName)
- .flatMap(res -> Mono.justOrEmpty(res.getValue()));
- }
-
- /**
- * Get a specific network security perimeter configuration.
- *
- * Get a specific network security perimeter configuration with a topic or domain.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param resourceType The type of the resource. This can be either \'topics\', or \'domains\'.
- * @param resourceName The name of the resource (namely, either, the topic name or domain name).
- * @param perimeterGuid Unique identifier for perimeter.
- * @param associationName Association name to association network security perimeter resource to profile.
- * @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 network security perimeter configuration with a topic or domain along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response getWithResponse(String resourceGroupName,
- NetworkSecurityPerimeterResourceType resourceType, String resourceName, String perimeterGuid,
- String associationName, Context context) {
- return getWithResponseAsync(resourceGroupName, resourceType, resourceName, perimeterGuid, associationName,
- context).block();
- }
-
- /**
- * Get a specific network security perimeter configuration.
- *
- * Get a specific network security perimeter configuration with a topic or domain.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param resourceType The type of the resource. This can be either \'topics\', or \'domains\'.
- * @param resourceName The name of the resource (namely, either, the topic name or domain name).
- * @param perimeterGuid Unique identifier for perimeter.
- * @param associationName Association name to association network security perimeter resource to profile.
- * @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 network security perimeter configuration with a topic or domain.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public NetworkSecurityPerimeterConfigurationInner get(String resourceGroupName,
- NetworkSecurityPerimeterResourceType resourceType, String resourceName, String perimeterGuid,
- String associationName) {
- return getWithResponse(resourceGroupName, resourceType, resourceName, perimeterGuid, associationName,
- Context.NONE).getValue();
- }
-
- /**
- * Reconcile a specific network security perimeter configuration for a given network security perimeter association.
- *
- * Reconcile a specific network security perimeter configuration for a given network security perimeter association
- * with a topic or domain.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param resourceType The type of the resource. This can be either \'topics\' or \'domains\'.
- * @param resourceName The name of the resource (namely, either, the topic name or domain name).
- * @param perimeterGuid Unique identifier for perimeter.
- * @param associationName Association name to association network security perimeter resource to profile.
- * @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 network security perimeter configuration along with {@link Response} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> reconcileWithResponseAsync(String resourceGroupName,
- NetworkSecurityPerimeterResourceType resourceType, String resourceName, String perimeterGuid,
- String associationName) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (resourceType == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceType is required and cannot be null."));
- }
- if (resourceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
- }
- if (perimeterGuid == null) {
- return Mono.error(new IllegalArgumentException("Parameter perimeterGuid is required and cannot be null."));
- }
- if (associationName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter associationName is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.reconcile(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, resourceType, resourceName, perimeterGuid, associationName,
- this.client.getApiVersion(), accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Reconcile a specific network security perimeter configuration for a given network security perimeter association.
- *
- * Reconcile a specific network security perimeter configuration for a given network security perimeter association
- * with a topic or domain.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param resourceType The type of the resource. This can be either \'topics\' or \'domains\'.
- * @param resourceName The name of the resource (namely, either, the topic name or domain name).
- * @param perimeterGuid Unique identifier for perimeter.
- * @param associationName Association name to association network security perimeter resource to profile.
- * @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 network security perimeter configuration along with {@link Response} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> reconcileWithResponseAsync(String resourceGroupName,
- NetworkSecurityPerimeterResourceType resourceType, String resourceName, String perimeterGuid,
- String associationName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (resourceType == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceType is required and cannot be null."));
- }
- if (resourceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
- }
- if (perimeterGuid == null) {
- return Mono.error(new IllegalArgumentException("Parameter perimeterGuid is required and cannot be null."));
- }
- if (associationName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter associationName is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.reconcile(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- resourceType, resourceName, perimeterGuid, associationName, this.client.getApiVersion(), accept, context);
- }
-
- /**
- * Reconcile a specific network security perimeter configuration for a given network security perimeter association.
- *
- * Reconcile a specific network security perimeter configuration for a given network security perimeter association
- * with a topic or domain.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param resourceType The type of the resource. This can be either \'topics\' or \'domains\'.
- * @param resourceName The name of the resource (namely, either, the topic name or domain name).
- * @param perimeterGuid Unique identifier for perimeter.
- * @param associationName Association name to association network security perimeter resource to profile.
- * @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 PollerFlux} for polling of network security perimeter configuration.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private
- PollerFlux, NetworkSecurityPerimeterConfigurationInner>
- beginReconcileAsync(String resourceGroupName, NetworkSecurityPerimeterResourceType resourceType,
- String resourceName, String perimeterGuid, String associationName) {
- Mono>> mono
- = reconcileWithResponseAsync(resourceGroupName, resourceType, resourceName, perimeterGuid, associationName);
- return this.client
- .getLroResult(mono,
- this.client.getHttpPipeline(), NetworkSecurityPerimeterConfigurationInner.class,
- NetworkSecurityPerimeterConfigurationInner.class, this.client.getContext());
- }
-
- /**
- * Reconcile a specific network security perimeter configuration for a given network security perimeter association.
- *
- * Reconcile a specific network security perimeter configuration for a given network security perimeter association
- * with a topic or domain.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param resourceType The type of the resource. This can be either \'topics\' or \'domains\'.
- * @param resourceName The name of the resource (namely, either, the topic name or domain name).
- * @param perimeterGuid Unique identifier for perimeter.
- * @param associationName Association name to association network security perimeter resource to profile.
- * @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 PollerFlux} for polling of network security perimeter configuration.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private
- PollerFlux, NetworkSecurityPerimeterConfigurationInner>
- beginReconcileAsync(String resourceGroupName, NetworkSecurityPerimeterResourceType resourceType,
- String resourceName, String perimeterGuid, String associationName, Context context) {
- context = this.client.mergeContext(context);
- Mono>> mono = reconcileWithResponseAsync(resourceGroupName, resourceType,
- resourceName, perimeterGuid, associationName, context);
- return this.client
- .getLroResult(mono,
- this.client.getHttpPipeline(), NetworkSecurityPerimeterConfigurationInner.class,
- NetworkSecurityPerimeterConfigurationInner.class, context);
- }
-
- /**
- * Reconcile a specific network security perimeter configuration for a given network security perimeter association.
- *
- * Reconcile a specific network security perimeter configuration for a given network security perimeter association
- * with a topic or domain.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param resourceType The type of the resource. This can be either \'topics\' or \'domains\'.
- * @param resourceName The name of the resource (namely, either, the topic name or domain name).
- * @param perimeterGuid Unique identifier for perimeter.
- * @param associationName Association name to association network security perimeter resource to profile.
- * @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 SyncPoller} for polling of network security perimeter configuration.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public
- SyncPoller, NetworkSecurityPerimeterConfigurationInner>
- beginReconcile(String resourceGroupName, NetworkSecurityPerimeterResourceType resourceType, String resourceName,
- String perimeterGuid, String associationName) {
- return this.beginReconcileAsync(resourceGroupName, resourceType, resourceName, perimeterGuid, associationName)
- .getSyncPoller();
- }
-
- /**
- * Reconcile a specific network security perimeter configuration for a given network security perimeter association.
- *
- * Reconcile a specific network security perimeter configuration for a given network security perimeter association
- * with a topic or domain.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param resourceType The type of the resource. This can be either \'topics\' or \'domains\'.
- * @param resourceName The name of the resource (namely, either, the topic name or domain name).
- * @param perimeterGuid Unique identifier for perimeter.
- * @param associationName Association name to association network security perimeter resource to profile.
- * @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 SyncPoller} for polling of network security perimeter configuration.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public
- SyncPoller, NetworkSecurityPerimeterConfigurationInner>
- beginReconcile(String resourceGroupName, NetworkSecurityPerimeterResourceType resourceType, String resourceName,
- String perimeterGuid, String associationName, Context context) {
- return this
- .beginReconcileAsync(resourceGroupName, resourceType, resourceName, perimeterGuid, associationName, context)
- .getSyncPoller();
- }
-
- /**
- * Reconcile a specific network security perimeter configuration for a given network security perimeter association.
- *
- * Reconcile a specific network security perimeter configuration for a given network security perimeter association
- * with a topic or domain.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param resourceType The type of the resource. This can be either \'topics\' or \'domains\'.
- * @param resourceName The name of the resource (namely, either, the topic name or domain name).
- * @param perimeterGuid Unique identifier for perimeter.
- * @param associationName Association name to association network security perimeter resource to profile.
- * @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 network security perimeter configuration on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono reconcileAsync(String resourceGroupName,
- NetworkSecurityPerimeterResourceType resourceType, String resourceName, String perimeterGuid,
- String associationName) {
- return beginReconcileAsync(resourceGroupName, resourceType, resourceName, perimeterGuid, associationName).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Reconcile a specific network security perimeter configuration for a given network security perimeter association.
- *
- * Reconcile a specific network security perimeter configuration for a given network security perimeter association
- * with a topic or domain.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param resourceType The type of the resource. This can be either \'topics\' or \'domains\'.
- * @param resourceName The name of the resource (namely, either, the topic name or domain name).
- * @param perimeterGuid Unique identifier for perimeter.
- * @param associationName Association name to association network security perimeter resource to profile.
- * @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 network security perimeter configuration on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono reconcileAsync(String resourceGroupName,
- NetworkSecurityPerimeterResourceType resourceType, String resourceName, String perimeterGuid,
- String associationName, Context context) {
- return beginReconcileAsync(resourceGroupName, resourceType, resourceName, perimeterGuid, associationName,
- context).last().flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Reconcile a specific network security perimeter configuration for a given network security perimeter association.
- *
- * Reconcile a specific network security perimeter configuration for a given network security perimeter association
- * with a topic or domain.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param resourceType The type of the resource. This can be either \'topics\' or \'domains\'.
- * @param resourceName The name of the resource (namely, either, the topic name or domain name).
- * @param perimeterGuid Unique identifier for perimeter.
- * @param associationName Association name to association network security perimeter resource to profile.
- * @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 network security perimeter configuration.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public NetworkSecurityPerimeterConfigurationInner reconcile(String resourceGroupName,
- NetworkSecurityPerimeterResourceType resourceType, String resourceName, String perimeterGuid,
- String associationName) {
- return reconcileAsync(resourceGroupName, resourceType, resourceName, perimeterGuid, associationName).block();
- }
-
- /**
- * Reconcile a specific network security perimeter configuration for a given network security perimeter association.
- *
- * Reconcile a specific network security perimeter configuration for a given network security perimeter association
- * with a topic or domain.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param resourceType The type of the resource. This can be either \'topics\' or \'domains\'.
- * @param resourceName The name of the resource (namely, either, the topic name or domain name).
- * @param perimeterGuid Unique identifier for perimeter.
- * @param associationName Association name to association network security perimeter resource to profile.
- * @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 network security perimeter configuration.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public NetworkSecurityPerimeterConfigurationInner reconcile(String resourceGroupName,
- NetworkSecurityPerimeterResourceType resourceType, String resourceName, String perimeterGuid,
- String associationName, Context context) {
- return reconcileAsync(resourceGroupName, resourceType, resourceName, perimeterGuid, associationName, context)
- .block();
- }
-
- /**
- * Get all network security perimeter configurations for resource.
- *
- * Get all network security perimeter configurations associated with a topic or domain.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param resourceType The type of the resource. This can be either \'topics\' or \'domains\'.
- * @param resourceName The name of the resource (namely, either, the topic name or domain name).
- * @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 network security perimeter configurations associated with a topic or domain along with
- * {@link PagedResponse} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync(
- String resourceGroupName, NetworkSecurityPerimeterResourceType resourceType, String resourceName) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (resourceType == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceType is required and cannot be null."));
- }
- if (resourceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, resourceType, resourceName, this.client.getApiVersion(), accept, context))
- .>map(res -> new PagedResponseBase<>(
- res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Get all network security perimeter configurations for resource.
- *
- * Get all network security perimeter configurations associated with a topic or domain.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param resourceType The type of the resource. This can be either \'topics\' or \'domains\'.
- * @param resourceName The name of the resource (namely, either, the topic name or domain name).
- * @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 network security perimeter configurations associated with a topic or domain along with
- * {@link PagedResponse} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync(
- String resourceGroupName, NetworkSecurityPerimeterResourceType resourceType, String resourceName,
- Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (resourceType == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceType is required and cannot be null."));
- }
- if (resourceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, resourceType,
- resourceName, this.client.getApiVersion(), accept, context)
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- res.getValue().value(), null, null));
- }
-
- /**
- * Get all network security perimeter configurations for resource.
- *
- * Get all network security perimeter configurations associated with a topic or domain.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param resourceType The type of the resource. This can be either \'topics\' or \'domains\'.
- * @param resourceName The name of the resource (namely, either, the topic name or domain name).
- * @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 network security perimeter configurations associated with a topic or domain as paginated response
- * with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(String resourceGroupName,
- NetworkSecurityPerimeterResourceType resourceType, String resourceName) {
- return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceType, resourceName));
- }
-
- /**
- * Get all network security perimeter configurations for resource.
- *
- * Get all network security perimeter configurations associated with a topic or domain.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param resourceType The type of the resource. This can be either \'topics\' or \'domains\'.
- * @param resourceName The name of the resource (namely, either, the topic name or domain name).
- * @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 network security perimeter configurations associated with a topic or domain as paginated response
- * with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(String resourceGroupName,
- NetworkSecurityPerimeterResourceType resourceType, String resourceName, Context context) {
- return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceType, resourceName, context));
- }
-
- /**
- * Get all network security perimeter configurations for resource.
- *
- * Get all network security perimeter configurations associated with a topic or domain.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param resourceType The type of the resource. This can be either \'topics\' or \'domains\'.
- * @param resourceName The name of the resource (namely, either, the topic name or domain name).
- * @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 network security perimeter configurations associated with a topic or domain as paginated response
- * with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable list(String resourceGroupName,
- NetworkSecurityPerimeterResourceType resourceType, String resourceName) {
- return new PagedIterable<>(listAsync(resourceGroupName, resourceType, resourceName));
- }
-
- /**
- * Get all network security perimeter configurations for resource.
- *
- * Get all network security perimeter configurations associated with a topic or domain.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param resourceType The type of the resource. This can be either \'topics\' or \'domains\'.
- * @param resourceName The name of the resource (namely, either, the topic name or domain name).
- * @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 network security perimeter configurations associated with a topic or domain as paginated response
- * with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable list(String resourceGroupName,
- NetworkSecurityPerimeterResourceType resourceType, String resourceName, Context context) {
- return new PagedIterable<>(listAsync(resourceGroupName, resourceType, resourceName, context));
- }
-}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/NetworkSecurityPerimeterConfigurationsImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/NetworkSecurityPerimeterConfigurationsImpl.java
deleted file mode 100644
index 3c5277cf48c6..000000000000
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/NetworkSecurityPerimeterConfigurationsImpl.java
+++ /dev/null
@@ -1,103 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.eventgrid.implementation;
-
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.SimpleResponse;
-import com.azure.core.util.Context;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.eventgrid.fluent.NetworkSecurityPerimeterConfigurationsClient;
-import com.azure.resourcemanager.eventgrid.fluent.models.NetworkSecurityPerimeterConfigurationInner;
-import com.azure.resourcemanager.eventgrid.models.NetworkSecurityPerimeterConfiguration;
-import com.azure.resourcemanager.eventgrid.models.NetworkSecurityPerimeterConfigurations;
-import com.azure.resourcemanager.eventgrid.models.NetworkSecurityPerimeterResourceType;
-
-public final class NetworkSecurityPerimeterConfigurationsImpl implements NetworkSecurityPerimeterConfigurations {
- private static final ClientLogger LOGGER = new ClientLogger(NetworkSecurityPerimeterConfigurationsImpl.class);
-
- private final NetworkSecurityPerimeterConfigurationsClient innerClient;
-
- private final com.azure.resourcemanager.eventgrid.EventGridManager serviceManager;
-
- public NetworkSecurityPerimeterConfigurationsImpl(NetworkSecurityPerimeterConfigurationsClient innerClient,
- com.azure.resourcemanager.eventgrid.EventGridManager serviceManager) {
- this.innerClient = innerClient;
- this.serviceManager = serviceManager;
- }
-
- public Response getWithResponse(String resourceGroupName,
- NetworkSecurityPerimeterResourceType resourceType, String resourceName, String perimeterGuid,
- String associationName, Context context) {
- Response inner = this.serviceClient()
- .getWithResponse(resourceGroupName, resourceType, resourceName, perimeterGuid, associationName, context);
- if (inner != null) {
- return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
- new NetworkSecurityPerimeterConfigurationImpl(inner.getValue(), this.manager()));
- } else {
- return null;
- }
- }
-
- public NetworkSecurityPerimeterConfiguration get(String resourceGroupName,
- NetworkSecurityPerimeterResourceType resourceType, String resourceName, String perimeterGuid,
- String associationName) {
- NetworkSecurityPerimeterConfigurationInner inner
- = this.serviceClient().get(resourceGroupName, resourceType, resourceName, perimeterGuid, associationName);
- if (inner != null) {
- return new NetworkSecurityPerimeterConfigurationImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public NetworkSecurityPerimeterConfiguration reconcile(String resourceGroupName,
- NetworkSecurityPerimeterResourceType resourceType, String resourceName, String perimeterGuid,
- String associationName) {
- NetworkSecurityPerimeterConfigurationInner inner = this.serviceClient()
- .reconcile(resourceGroupName, resourceType, resourceName, perimeterGuid, associationName);
- if (inner != null) {
- return new NetworkSecurityPerimeterConfigurationImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public NetworkSecurityPerimeterConfiguration reconcile(String resourceGroupName,
- NetworkSecurityPerimeterResourceType resourceType, String resourceName, String perimeterGuid,
- String associationName, Context context) {
- NetworkSecurityPerimeterConfigurationInner inner = this.serviceClient()
- .reconcile(resourceGroupName, resourceType, resourceName, perimeterGuid, associationName, context);
- if (inner != null) {
- return new NetworkSecurityPerimeterConfigurationImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public PagedIterable list(String resourceGroupName,
- NetworkSecurityPerimeterResourceType resourceType, String resourceName) {
- PagedIterable inner
- = this.serviceClient().list(resourceGroupName, resourceType, resourceName);
- return ResourceManagerUtils.mapPage(inner,
- inner1 -> new NetworkSecurityPerimeterConfigurationImpl(inner1, this.manager()));
- }
-
- public PagedIterable list(String resourceGroupName,
- NetworkSecurityPerimeterResourceType resourceType, String resourceName, Context context) {
- PagedIterable inner
- = this.serviceClient().list(resourceGroupName, resourceType, resourceName, context);
- return ResourceManagerUtils.mapPage(inner,
- inner1 -> new NetworkSecurityPerimeterConfigurationImpl(inner1, this.manager()));
- }
-
- private NetworkSecurityPerimeterConfigurationsClient serviceClient() {
- return this.innerClient;
- }
-
- private com.azure.resourcemanager.eventgrid.EventGridManager manager() {
- return this.serviceManager;
- }
-}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerDestinationImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerDestinationImpl.java
deleted file mode 100644
index c67df06244e9..000000000000
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerDestinationImpl.java
+++ /dev/null
@@ -1,241 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.eventgrid.implementation;
-
-import com.azure.core.http.rest.Response;
-import com.azure.core.management.Region;
-import com.azure.core.management.SystemData;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.eventgrid.fluent.models.PartnerDestinationInner;
-import com.azure.resourcemanager.eventgrid.models.PartnerDestination;
-import com.azure.resourcemanager.eventgrid.models.PartnerDestinationActivationState;
-import com.azure.resourcemanager.eventgrid.models.PartnerDestinationProvisioningState;
-import com.azure.resourcemanager.eventgrid.models.PartnerDestinationUpdateParameters;
-import java.time.OffsetDateTime;
-import java.util.Collections;
-import java.util.Map;
-import java.util.UUID;
-
-public final class PartnerDestinationImpl
- implements PartnerDestination, PartnerDestination.Definition, PartnerDestination.Update {
- private PartnerDestinationInner innerObject;
-
- private final com.azure.resourcemanager.eventgrid.EventGridManager serviceManager;
-
- public String id() {
- return this.innerModel().id();
- }
-
- public String name() {
- return this.innerModel().name();
- }
-
- public String type() {
- return this.innerModel().type();
- }
-
- public String location() {
- return this.innerModel().location();
- }
-
- public Map tags() {
- Map inner = this.innerModel().tags();
- if (inner != null) {
- return Collections.unmodifiableMap(inner);
- } else {
- return Collections.emptyMap();
- }
- }
-
- public SystemData systemData() {
- return this.innerModel().systemData();
- }
-
- public UUID partnerRegistrationImmutableId() {
- return this.innerModel().partnerRegistrationImmutableId();
- }
-
- public String endpointServiceContext() {
- return this.innerModel().endpointServiceContext();
- }
-
- public OffsetDateTime expirationTimeIfNotActivatedUtc() {
- return this.innerModel().expirationTimeIfNotActivatedUtc();
- }
-
- public PartnerDestinationProvisioningState provisioningState() {
- return this.innerModel().provisioningState();
- }
-
- public PartnerDestinationActivationState activationState() {
- return this.innerModel().activationState();
- }
-
- public String endpointBaseUrl() {
- return this.innerModel().endpointBaseUrl();
- }
-
- public String messageForActivation() {
- return this.innerModel().messageForActivation();
- }
-
- public Region region() {
- return Region.fromName(this.regionName());
- }
-
- public String regionName() {
- return this.location();
- }
-
- public String resourceGroupName() {
- return resourceGroupName;
- }
-
- public PartnerDestinationInner innerModel() {
- return this.innerObject;
- }
-
- private com.azure.resourcemanager.eventgrid.EventGridManager manager() {
- return this.serviceManager;
- }
-
- private String resourceGroupName;
-
- private String partnerDestinationName;
-
- private PartnerDestinationUpdateParameters updatePartnerDestinationUpdateParameters;
-
- public PartnerDestinationImpl withExistingResourceGroup(String resourceGroupName) {
- this.resourceGroupName = resourceGroupName;
- return this;
- }
-
- public PartnerDestination create() {
- this.innerObject = serviceManager.serviceClient()
- .getPartnerDestinations()
- .createOrUpdate(resourceGroupName, partnerDestinationName, this.innerModel(), Context.NONE);
- return this;
- }
-
- public PartnerDestination create(Context context) {
- this.innerObject = serviceManager.serviceClient()
- .getPartnerDestinations()
- .createOrUpdate(resourceGroupName, partnerDestinationName, this.innerModel(), context);
- return this;
- }
-
- PartnerDestinationImpl(String name, com.azure.resourcemanager.eventgrid.EventGridManager serviceManager) {
- this.innerObject = new PartnerDestinationInner();
- this.serviceManager = serviceManager;
- this.partnerDestinationName = name;
- }
-
- public PartnerDestinationImpl update() {
- this.updatePartnerDestinationUpdateParameters = new PartnerDestinationUpdateParameters();
- return this;
- }
-
- public PartnerDestination apply() {
- this.innerObject = serviceManager.serviceClient()
- .getPartnerDestinations()
- .update(resourceGroupName, partnerDestinationName, updatePartnerDestinationUpdateParameters, Context.NONE);
- return this;
- }
-
- public PartnerDestination apply(Context context) {
- this.innerObject = serviceManager.serviceClient()
- .getPartnerDestinations()
- .update(resourceGroupName, partnerDestinationName, updatePartnerDestinationUpdateParameters, context);
- return this;
- }
-
- PartnerDestinationImpl(PartnerDestinationInner innerObject,
- com.azure.resourcemanager.eventgrid.EventGridManager serviceManager) {
- this.innerObject = innerObject;
- this.serviceManager = serviceManager;
- this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.partnerDestinationName
- = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "partnerDestinations");
- }
-
- public PartnerDestination refresh() {
- this.innerObject = serviceManager.serviceClient()
- .getPartnerDestinations()
- .getByResourceGroupWithResponse(resourceGroupName, partnerDestinationName, Context.NONE)
- .getValue();
- return this;
- }
-
- public PartnerDestination refresh(Context context) {
- this.innerObject = serviceManager.serviceClient()
- .getPartnerDestinations()
- .getByResourceGroupWithResponse(resourceGroupName, partnerDestinationName, context)
- .getValue();
- return this;
- }
-
- public Response activateWithResponse(Context context) {
- return serviceManager.partnerDestinations()
- .activateWithResponse(resourceGroupName, partnerDestinationName, context);
- }
-
- public PartnerDestination activate() {
- return serviceManager.partnerDestinations().activate(resourceGroupName, partnerDestinationName);
- }
-
- public PartnerDestinationImpl withRegion(Region location) {
- this.innerModel().withLocation(location.toString());
- return this;
- }
-
- public PartnerDestinationImpl withRegion(String location) {
- this.innerModel().withLocation(location);
- return this;
- }
-
- public PartnerDestinationImpl withTags(Map tags) {
- if (isInCreateMode()) {
- this.innerModel().withTags(tags);
- return this;
- } else {
- this.updatePartnerDestinationUpdateParameters.withTags(tags);
- return this;
- }
- }
-
- public PartnerDestinationImpl withPartnerRegistrationImmutableId(UUID partnerRegistrationImmutableId) {
- this.innerModel().withPartnerRegistrationImmutableId(partnerRegistrationImmutableId);
- return this;
- }
-
- public PartnerDestinationImpl withEndpointServiceContext(String endpointServiceContext) {
- this.innerModel().withEndpointServiceContext(endpointServiceContext);
- return this;
- }
-
- public PartnerDestinationImpl withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc) {
- this.innerModel().withExpirationTimeIfNotActivatedUtc(expirationTimeIfNotActivatedUtc);
- return this;
- }
-
- public PartnerDestinationImpl withActivationState(PartnerDestinationActivationState activationState) {
- this.innerModel().withActivationState(activationState);
- return this;
- }
-
- public PartnerDestinationImpl withEndpointBaseUrl(String endpointBaseUrl) {
- this.innerModel().withEndpointBaseUrl(endpointBaseUrl);
- return this;
- }
-
- public PartnerDestinationImpl withMessageForActivation(String messageForActivation) {
- this.innerModel().withMessageForActivation(messageForActivation);
- return this;
- }
-
- private boolean isInCreateMode() {
- return this.innerModel().id() == null;
- }
-}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerDestinationsClientImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerDestinationsClientImpl.java
deleted file mode 100644
index 55283ae61a98..000000000000
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerDestinationsClientImpl.java
+++ /dev/null
@@ -1,1672 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.eventgrid.implementation;
-
-import com.azure.core.annotation.BodyParam;
-import com.azure.core.annotation.Delete;
-import com.azure.core.annotation.ExpectedResponses;
-import com.azure.core.annotation.Get;
-import com.azure.core.annotation.HeaderParam;
-import com.azure.core.annotation.Headers;
-import com.azure.core.annotation.Host;
-import com.azure.core.annotation.HostParam;
-import com.azure.core.annotation.Patch;
-import com.azure.core.annotation.PathParam;
-import com.azure.core.annotation.Post;
-import com.azure.core.annotation.Put;
-import com.azure.core.annotation.QueryParam;
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceInterface;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.annotation.UnexpectedResponseExceptionType;
-import com.azure.core.http.rest.PagedFlux;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.PagedResponse;
-import com.azure.core.http.rest.PagedResponseBase;
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.RestProxy;
-import com.azure.core.management.exception.ManagementException;
-import com.azure.core.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.FluxUtil;
-import com.azure.core.util.polling.PollerFlux;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.eventgrid.fluent.PartnerDestinationsClient;
-import com.azure.resourcemanager.eventgrid.fluent.models.PartnerDestinationInner;
-import com.azure.resourcemanager.eventgrid.models.PartnerDestinationUpdateParameters;
-import com.azure.resourcemanager.eventgrid.models.PartnerDestinationsListResult;
-import java.nio.ByteBuffer;
-import reactor.core.publisher.Flux;
-import reactor.core.publisher.Mono;
-
-/**
- * An instance of this class provides access to all the operations defined in PartnerDestinationsClient.
- */
-public final class PartnerDestinationsClientImpl implements PartnerDestinationsClient {
- /**
- * The proxy service used to perform REST calls.
- */
- private final PartnerDestinationsService service;
-
- /**
- * The service client containing this operation class.
- */
- private final EventGridManagementClientImpl client;
-
- /**
- * Initializes an instance of PartnerDestinationsClientImpl.
- *
- * @param client the instance of the service client containing this operation class.
- */
- PartnerDestinationsClientImpl(EventGridManagementClientImpl client) {
- this.service = RestProxy.create(PartnerDestinationsService.class, client.getHttpPipeline(),
- client.getSerializerAdapter());
- this.client = client;
- }
-
- /**
- * The interface defining all the services for EventGridManagementClientPartnerDestinations to be used by the proxy
- * service to perform REST calls.
- */
- @Host("{$host}")
- @ServiceInterface(name = "EventGridManagementC")
- public interface PartnerDestinationsService {
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerDestinations/{partnerDestinationName}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> getByResourceGroup(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("partnerDestinationName") String partnerDestinationName,
- @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerDestinations/{partnerDestinationName}")
- @ExpectedResponses({ 200, 201 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> createOrUpdate(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("partnerDestinationName") String partnerDestinationName,
- @QueryParam("api-version") String apiVersion,
- @BodyParam("application/json") PartnerDestinationInner partnerDestination,
- @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerDestinations/{partnerDestinationName}")
- @ExpectedResponses({ 200, 202, 204 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> delete(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("partnerDestinationName") String partnerDestinationName,
- @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerDestinations/{partnerDestinationName}")
- @ExpectedResponses({ 200, 201, 202 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> update(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("partnerDestinationName") String partnerDestinationName,
- @QueryParam("api-version") String apiVersion,
- @BodyParam("application/json") PartnerDestinationUpdateParameters partnerDestinationUpdateParameters,
- @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/partnerDestinations")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> list(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion,
- @QueryParam("$filter") String filter, @QueryParam("$top") Integer top, @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerDestinations")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByResourceGroup(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion,
- @QueryParam("$filter") String filter, @QueryParam("$top") Integer top, @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerDestinations/{partnerDestinationName}/activate")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> activate(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("partnerDestinationName") String partnerDestinationName,
- @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Get("{nextLink}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listBySubscriptionNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Get("{nextLink}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByResourceGroupNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept, Context context);
- }
-
- /**
- * Get a partner destination.
- *
- * Get properties of a partner destination.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @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 destination along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
- String partnerDestinationName) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (partnerDestinationName == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter partnerDestinationName is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, partnerDestinationName, this.client.getApiVersion(), accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Get a partner destination.
- *
- * Get properties of a partner destination.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @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 destination along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
- String partnerDestinationName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (partnerDestinationName == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter partnerDestinationName is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.getByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- partnerDestinationName, this.client.getApiVersion(), accept, context);
- }
-
- /**
- * Get a partner destination.
- *
- * Get properties of a partner destination.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @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 destination on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono getByResourceGroupAsync(String resourceGroupName,
- String partnerDestinationName) {
- return getByResourceGroupWithResponseAsync(resourceGroupName, partnerDestinationName)
- .flatMap(res -> Mono.justOrEmpty(res.getValue()));
- }
-
- /**
- * Get a partner destination.
- *
- * Get properties of a partner destination.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @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 destination along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response getByResourceGroupWithResponse(String resourceGroupName,
- String partnerDestinationName, Context context) {
- return getByResourceGroupWithResponseAsync(resourceGroupName, partnerDestinationName, context).block();
- }
-
- /**
- * Get a partner destination.
- *
- * Get properties of a partner destination.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @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 destination.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public PartnerDestinationInner getByResourceGroup(String resourceGroupName, String partnerDestinationName) {
- return getByResourceGroupWithResponse(resourceGroupName, partnerDestinationName, Context.NONE).getValue();
- }
-
- /**
- * Create a partner destination.
- *
- * Asynchronously creates a new partner destination with the specified parameters.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @param partnerDestination Partner destination create information.
- * @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 Destination along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
- String partnerDestinationName, PartnerDestinationInner partnerDestination) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (partnerDestinationName == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter partnerDestinationName is required and cannot be null."));
- }
- if (partnerDestination == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter partnerDestination is required and cannot be null."));
- } else {
- partnerDestination.validate();
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, partnerDestinationName, this.client.getApiVersion(), partnerDestination, accept,
- context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Create a partner destination.
- *
- * Asynchronously creates a new partner destination with the specified parameters.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @param partnerDestination Partner destination create 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 Destination along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
- String partnerDestinationName, PartnerDestinationInner partnerDestination, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (partnerDestinationName == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter partnerDestinationName is required and cannot be null."));
- }
- if (partnerDestination == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter partnerDestination is required and cannot be null."));
- } else {
- partnerDestination.validate();
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- partnerDestinationName, this.client.getApiVersion(), partnerDestination, accept, context);
- }
-
- /**
- * Create a partner destination.
- *
- * Asynchronously creates a new partner destination with the specified parameters.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @param partnerDestination Partner destination create information.
- * @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 PollerFlux} for polling of event Grid Partner Destination.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, PartnerDestinationInner> beginCreateOrUpdateAsync(
- String resourceGroupName, String partnerDestinationName, PartnerDestinationInner partnerDestination) {
- Mono>> mono
- = createOrUpdateWithResponseAsync(resourceGroupName, partnerDestinationName, partnerDestination);
- return this.client.getLroResult(mono,
- this.client.getHttpPipeline(), PartnerDestinationInner.class, PartnerDestinationInner.class,
- this.client.getContext());
- }
-
- /**
- * Create a partner destination.
- *
- * Asynchronously creates a new partner destination with the specified parameters.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @param partnerDestination Partner destination create 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 PollerFlux} for polling of event Grid Partner Destination.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, PartnerDestinationInner> beginCreateOrUpdateAsync(
- String resourceGroupName, String partnerDestinationName, PartnerDestinationInner partnerDestination,
- Context context) {
- context = this.client.mergeContext(context);
- Mono>> mono
- = createOrUpdateWithResponseAsync(resourceGroupName, partnerDestinationName, partnerDestination, context);
- return this.client.getLroResult(mono,
- this.client.getHttpPipeline(), PartnerDestinationInner.class, PartnerDestinationInner.class, context);
- }
-
- /**
- * Create a partner destination.
- *
- * Asynchronously creates a new partner destination with the specified parameters.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @param partnerDestination Partner destination create information.
- * @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 SyncPoller} for polling of event Grid Partner Destination.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, PartnerDestinationInner> beginCreateOrUpdate(
- String resourceGroupName, String partnerDestinationName, PartnerDestinationInner partnerDestination) {
- return this.beginCreateOrUpdateAsync(resourceGroupName, partnerDestinationName, partnerDestination)
- .getSyncPoller();
- }
-
- /**
- * Create a partner destination.
- *
- * Asynchronously creates a new partner destination with the specified parameters.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @param partnerDestination Partner destination create 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 SyncPoller} for polling of event Grid Partner Destination.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, PartnerDestinationInner> beginCreateOrUpdate(
- String resourceGroupName, String partnerDestinationName, PartnerDestinationInner partnerDestination,
- Context context) {
- return this.beginCreateOrUpdateAsync(resourceGroupName, partnerDestinationName, partnerDestination, context)
- .getSyncPoller();
- }
-
- /**
- * Create a partner destination.
- *
- * Asynchronously creates a new partner destination with the specified parameters.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @param partnerDestination Partner destination create information.
- * @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 Destination on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createOrUpdateAsync(String resourceGroupName, String partnerDestinationName,
- PartnerDestinationInner partnerDestination) {
- return beginCreateOrUpdateAsync(resourceGroupName, partnerDestinationName, partnerDestination).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Create a partner destination.
- *
- * Asynchronously creates a new partner destination with the specified parameters.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @param partnerDestination Partner destination create 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 Destination on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createOrUpdateAsync(String resourceGroupName, String partnerDestinationName,
- PartnerDestinationInner partnerDestination, Context context) {
- return beginCreateOrUpdateAsync(resourceGroupName, partnerDestinationName, partnerDestination, context).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Create a partner destination.
- *
- * Asynchronously creates a new partner destination with the specified parameters.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @param partnerDestination Partner destination create information.
- * @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 Destination.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public PartnerDestinationInner createOrUpdate(String resourceGroupName, String partnerDestinationName,
- PartnerDestinationInner partnerDestination) {
- return createOrUpdateAsync(resourceGroupName, partnerDestinationName, partnerDestination).block();
- }
-
- /**
- * Create a partner destination.
- *
- * Asynchronously creates a new partner destination with the specified parameters.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @param partnerDestination Partner destination create 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 Destination.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public PartnerDestinationInner createOrUpdate(String resourceGroupName, String partnerDestinationName,
- PartnerDestinationInner partnerDestination, Context context) {
- return createOrUpdateAsync(resourceGroupName, partnerDestinationName, partnerDestination, context).block();
- }
-
- /**
- * Delete a partner destination.
- *
- * Delete existing partner destination.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @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} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> deleteWithResponseAsync(String resourceGroupName,
- String partnerDestinationName) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (partnerDestinationName == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter partnerDestinationName is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, partnerDestinationName, this.client.getApiVersion(), accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Delete a partner destination.
- *
- * Delete existing partner destination.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @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} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> deleteWithResponseAsync(String resourceGroupName,
- String partnerDestinationName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (partnerDestinationName == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter partnerDestinationName is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- partnerDestinationName, this.client.getApiVersion(), accept, context);
- }
-
- /**
- * Delete a partner destination.
- *
- * Delete existing partner destination.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @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 PollerFlux} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, Void> beginDeleteAsync(String resourceGroupName,
- String partnerDestinationName) {
- Mono>> mono = deleteWithResponseAsync(resourceGroupName, partnerDestinationName);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
- this.client.getContext());
- }
-
- /**
- * Delete a partner destination.
- *
- * Delete existing partner destination.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @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 PollerFlux} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String partnerDestinationName,
- Context context) {
- context = this.client.mergeContext(context);
- Mono>> mono
- = deleteWithResponseAsync(resourceGroupName, partnerDestinationName, context);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
- context);
- }
-
- /**
- * Delete a partner destination.
- *
- * Delete existing partner destination.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @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 SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, Void> beginDelete(String resourceGroupName, String partnerDestinationName) {
- return this.beginDeleteAsync(resourceGroupName, partnerDestinationName).getSyncPoller();
- }
-
- /**
- * Delete a partner destination.
- *
- * Delete existing partner destination.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @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 SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, Void> beginDelete(String resourceGroupName, String partnerDestinationName,
- Context context) {
- return this.beginDeleteAsync(resourceGroupName, partnerDestinationName, context).getSyncPoller();
- }
-
- /**
- * Delete a partner destination.
- *
- * Delete existing partner destination.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @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 {@link Mono} that completes when a successful response is received.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono deleteAsync(String resourceGroupName, String partnerDestinationName) {
- return beginDeleteAsync(resourceGroupName, partnerDestinationName).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Delete a partner destination.
- *
- * Delete existing partner destination.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @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 {@link Mono} that completes when a successful response is received.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono deleteAsync(String resourceGroupName, String partnerDestinationName, Context context) {
- return beginDeleteAsync(resourceGroupName, partnerDestinationName, context).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Delete a partner destination.
- *
- * Delete existing partner destination.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public void delete(String resourceGroupName, String partnerDestinationName) {
- deleteAsync(resourceGroupName, partnerDestinationName).block();
- }
-
- /**
- * Delete a partner destination.
- *
- * Delete existing partner destination.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public void delete(String resourceGroupName, String partnerDestinationName, Context context) {
- deleteAsync(resourceGroupName, partnerDestinationName, context).block();
- }
-
- /**
- * Update a partner destination.
- *
- * Asynchronously updates a partner destination with the specified parameters.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @param partnerDestinationUpdateParameters Partner destination update information.
- * @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 Destination along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> updateWithResponseAsync(String resourceGroupName,
- String partnerDestinationName, PartnerDestinationUpdateParameters partnerDestinationUpdateParameters) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (partnerDestinationName == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter partnerDestinationName is required and cannot be null."));
- }
- if (partnerDestinationUpdateParameters == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter partnerDestinationUpdateParameters is required and cannot be null."));
- } else {
- partnerDestinationUpdateParameters.validate();
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, partnerDestinationName, this.client.getApiVersion(),
- partnerDestinationUpdateParameters, accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Update a partner destination.
- *
- * Asynchronously updates a partner destination with the specified parameters.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @param partnerDestinationUpdateParameters Partner destination 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 event Grid Partner Destination along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> updateWithResponseAsync(String resourceGroupName,
- String partnerDestinationName, PartnerDestinationUpdateParameters partnerDestinationUpdateParameters,
- Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (partnerDestinationName == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter partnerDestinationName is required and cannot be null."));
- }
- if (partnerDestinationUpdateParameters == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter partnerDestinationUpdateParameters is required and cannot be null."));
- } else {
- partnerDestinationUpdateParameters.validate();
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- partnerDestinationName, this.client.getApiVersion(), partnerDestinationUpdateParameters, accept, context);
- }
-
- /**
- * Update a partner destination.
- *
- * Asynchronously updates a partner destination with the specified parameters.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @param partnerDestinationUpdateParameters Partner destination update information.
- * @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 PollerFlux} for polling of event Grid Partner Destination.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, PartnerDestinationInner> beginUpdateAsync(
- String resourceGroupName, String partnerDestinationName,
- PartnerDestinationUpdateParameters partnerDestinationUpdateParameters) {
- Mono>> mono
- = updateWithResponseAsync(resourceGroupName, partnerDestinationName, partnerDestinationUpdateParameters);
- return this.client.getLroResult(mono,
- this.client.getHttpPipeline(), PartnerDestinationInner.class, PartnerDestinationInner.class,
- this.client.getContext());
- }
-
- /**
- * Update a partner destination.
- *
- * Asynchronously updates a partner destination with the specified parameters.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @param partnerDestinationUpdateParameters Partner destination 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 PollerFlux} for polling of event Grid Partner Destination.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, PartnerDestinationInner> beginUpdateAsync(
- String resourceGroupName, String partnerDestinationName,
- PartnerDestinationUpdateParameters partnerDestinationUpdateParameters, Context context) {
- context = this.client.mergeContext(context);
- Mono>> mono = updateWithResponseAsync(resourceGroupName, partnerDestinationName,
- partnerDestinationUpdateParameters, context);
- return this.client.getLroResult(mono,
- this.client.getHttpPipeline(), PartnerDestinationInner.class, PartnerDestinationInner.class, context);
- }
-
- /**
- * Update a partner destination.
- *
- * Asynchronously updates a partner destination with the specified parameters.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @param partnerDestinationUpdateParameters Partner destination update information.
- * @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 SyncPoller} for polling of event Grid Partner Destination.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, PartnerDestinationInner> beginUpdate(
- String resourceGroupName, String partnerDestinationName,
- PartnerDestinationUpdateParameters partnerDestinationUpdateParameters) {
- return this.beginUpdateAsync(resourceGroupName, partnerDestinationName, partnerDestinationUpdateParameters)
- .getSyncPoller();
- }
-
- /**
- * Update a partner destination.
- *
- * Asynchronously updates a partner destination with the specified parameters.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @param partnerDestinationUpdateParameters Partner destination 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 SyncPoller} for polling of event Grid Partner Destination.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, PartnerDestinationInner> beginUpdate(
- String resourceGroupName, String partnerDestinationName,
- PartnerDestinationUpdateParameters partnerDestinationUpdateParameters, Context context) {
- return this
- .beginUpdateAsync(resourceGroupName, partnerDestinationName, partnerDestinationUpdateParameters, context)
- .getSyncPoller();
- }
-
- /**
- * Update a partner destination.
- *
- * Asynchronously updates a partner destination with the specified parameters.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @param partnerDestinationUpdateParameters Partner destination update information.
- * @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 Destination on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono updateAsync(String resourceGroupName, String partnerDestinationName,
- PartnerDestinationUpdateParameters partnerDestinationUpdateParameters) {
- return beginUpdateAsync(resourceGroupName, partnerDestinationName, partnerDestinationUpdateParameters).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Update a partner destination.
- *
- * Asynchronously updates a partner destination with the specified parameters.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @param partnerDestinationUpdateParameters Partner destination 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 event Grid Partner Destination on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono updateAsync(String resourceGroupName, String partnerDestinationName,
- PartnerDestinationUpdateParameters partnerDestinationUpdateParameters, Context context) {
- return beginUpdateAsync(resourceGroupName, partnerDestinationName, partnerDestinationUpdateParameters, context)
- .last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Update a partner destination.
- *
- * Asynchronously updates a partner destination with the specified parameters.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @param partnerDestinationUpdateParameters Partner destination update information.
- * @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 Destination.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public PartnerDestinationInner update(String resourceGroupName, String partnerDestinationName,
- PartnerDestinationUpdateParameters partnerDestinationUpdateParameters) {
- return updateAsync(resourceGroupName, partnerDestinationName, partnerDestinationUpdateParameters).block();
- }
-
- /**
- * Update a partner destination.
- *
- * Asynchronously updates a partner destination with the specified parameters.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @param partnerDestinationUpdateParameters Partner destination 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 event Grid Partner Destination.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public PartnerDestinationInner update(String resourceGroupName, String partnerDestinationName,
- PartnerDestinationUpdateParameters partnerDestinationUpdateParameters, Context context) {
- return updateAsync(resourceGroupName, partnerDestinationName, partnerDestinationUpdateParameters, context)
- .block();
- }
-
- /**
- * List partner destinations under an Azure subscription.
- *
- * List all the partner destinations 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' function
- * as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
- * operations are supported. The following is a valid filter example: $filter=contains(namE, 'PATTERN') and name ne
- * 'PATTERN-1'. The following is not a valid filter example: $filter=location eq 'westus'.
- * @param top The number of results to return per page for the list operation. Valid range for top parameter is 1 to
- * 100. If not specified, the default number of results to be returned is 20 items per page.
- * @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 result of the List Partner Destinations operation along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync(String filter, Integer top) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(),
- this.client.getApiVersion(), filter, top, accept, context))
- .>map(res -> new PagedResponseBase<>(res.getRequest(),
- res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * List partner destinations under an Azure subscription.
- *
- * List all the partner destinations 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' function
- * as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
- * operations are supported. The following is a valid filter example: $filter=contains(namE, 'PATTERN') and name ne
- * 'PATTERN-1'. The following is not a valid filter example: $filter=location eq 'westus'.
- * @param top The number of results to return per page for the list operation. Valid range for top parameter is 1 to
- * 100. If not specified, the default number of results to be returned is 20 items per page.
- * @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 result of the List Partner Destinations operation along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync(String filter, Integer top,
- Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .list(this.client.getEndpoint(), this.client.getSubscriptionId(), this.client.getApiVersion(), filter, top,
- accept, context)
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- res.getValue().value(), res.getValue().nextLink(), null));
- }
-
- /**
- * List partner destinations under an Azure subscription.
- *
- * List all the partner destinations 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' function
- * as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
- * operations are supported. The following is a valid filter example: $filter=contains(namE, 'PATTERN') and name ne
- * 'PATTERN-1'. The following is not a valid filter example: $filter=location eq 'westus'.
- * @param top The number of results to return per page for the list operation. Valid range for top parameter is 1 to
- * 100. If not specified, the default number of results to be returned is 20 items per page.
- * @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 result of the List Partner Destinations operation as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(String filter, Integer top) {
- return new PagedFlux<>(() -> listSinglePageAsync(filter, top),
- nextLink -> listBySubscriptionNextSinglePageAsync(nextLink));
- }
-
- /**
- * List partner destinations under an Azure subscription.
- *
- * List all the partner destinations 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.
- * @return result of the List Partner Destinations operation as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync() {
- final String filter = null;
- final Integer top = null;
- return new PagedFlux<>(() -> listSinglePageAsync(filter, top),
- nextLink -> listBySubscriptionNextSinglePageAsync(nextLink));
- }
-
- /**
- * List partner destinations under an Azure subscription.
- *
- * List all the partner destinations 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' function
- * as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
- * operations are supported. The following is a valid filter example: $filter=contains(namE, 'PATTERN') and name ne
- * 'PATTERN-1'. The following is not a valid filter example: $filter=location eq 'westus'.
- * @param top The number of results to return per page for the list operation. Valid range for top parameter is 1 to
- * 100. If not specified, the default number of results to be returned is 20 items per page.
- * @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 result of the List Partner Destinations operation as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(String filter, Integer top, Context context) {
- return new PagedFlux<>(() -> listSinglePageAsync(filter, top, context),
- nextLink -> listBySubscriptionNextSinglePageAsync(nextLink, context));
- }
-
- /**
- * List partner destinations under an Azure subscription.
- *
- * List all the partner destinations 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.
- * @return result of the List Partner Destinations operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable list() {
- final String filter = null;
- final Integer top = null;
- return new PagedIterable<>(listAsync(filter, top));
- }
-
- /**
- * List partner destinations under an Azure subscription.
- *
- * List all the partner destinations 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' function
- * as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
- * operations are supported. The following is a valid filter example: $filter=contains(namE, 'PATTERN') and name ne
- * 'PATTERN-1'. The following is not a valid filter example: $filter=location eq 'westus'.
- * @param top The number of results to return per page for the list operation. Valid range for top parameter is 1 to
- * 100. If not specified, the default number of results to be returned is 20 items per page.
- * @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 result of the List Partner Destinations operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable list(String filter, Integer top, Context context) {
- return new PagedIterable<>(listAsync(filter, top, context));
- }
-
- /**
- * List partner destinations under a resource group.
- *
- * List all the partner destinations 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
- * 'name' property only and with limited number of OData operations. These operations are: the 'contains' function
- * as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
- * operations are supported. The following is a valid filter example: $filter=contains(namE, 'PATTERN') and name ne
- * 'PATTERN-1'. The following is not a valid filter example: $filter=location eq 'westus'.
- * @param top The number of results to return per page for the list operation. Valid range for top parameter is 1 to
- * 100. If not specified, the default number of results to be returned is 20 items per page.
- * @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 result of the List Partner Destinations operation along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName,
- String filter, Integer top) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, this.client.getApiVersion(), filter, top, accept, context))
- .>map(res -> new PagedResponseBase<>(res.getRequest(),
- res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * List partner destinations under a resource group.
- *
- * List all the partner destinations 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
- * 'name' property only and with limited number of OData operations. These operations are: the 'contains' function
- * as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
- * operations are supported. The following is a valid filter example: $filter=contains(namE, 'PATTERN') and name ne
- * 'PATTERN-1'. The following is not a valid filter example: $filter=location eq 'westus'.
- * @param top The number of results to return per page for the list operation. Valid range for top parameter is 1 to
- * 100. If not specified, the default number of results to be returned is 20 items per page.
- * @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 result of the List Partner Destinations operation along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName,
- String filter, Integer top, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .listByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- this.client.getApiVersion(), filter, top, accept, context)
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- res.getValue().value(), res.getValue().nextLink(), null));
- }
-
- /**
- * List partner destinations under a resource group.
- *
- * List all the partner destinations 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
- * 'name' property only and with limited number of OData operations. These operations are: the 'contains' function
- * as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
- * operations are supported. The following is a valid filter example: $filter=contains(namE, 'PATTERN') and name ne
- * 'PATTERN-1'. The following is not a valid filter example: $filter=location eq 'westus'.
- * @param top The number of results to return per page for the list operation. Valid range for top parameter is 1 to
- * 100. If not specified, the default number of results to be returned is 20 items per page.
- * @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 result of the List Partner Destinations operation as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByResourceGroupAsync(String resourceGroupName, String filter,
- Integer top) {
- return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, filter, top),
- nextLink -> listByResourceGroupNextSinglePageAsync(nextLink));
- }
-
- /**
- * List partner destinations under a resource group.
- *
- * List all the partner destinations 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.
- * @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 result of the List Partner Destinations operation as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByResourceGroupAsync(String resourceGroupName) {
- final String filter = null;
- final Integer top = null;
- return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, filter, top),
- nextLink -> listByResourceGroupNextSinglePageAsync(nextLink));
- }
-
- /**
- * List partner destinations under a resource group.
- *
- * List all the partner destinations 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
- * 'name' property only and with limited number of OData operations. These operations are: the 'contains' function
- * as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
- * operations are supported. The following is a valid filter example: $filter=contains(namE, 'PATTERN') and name ne
- * 'PATTERN-1'. The following is not a valid filter example: $filter=location eq 'westus'.
- * @param top The number of results to return per page for the list operation. Valid range for top parameter is 1 to
- * 100. If not specified, the default number of results to be returned is 20 items per page.
- * @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 result of the List Partner Destinations operation as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByResourceGroupAsync(String resourceGroupName, String filter,
- Integer top, Context context) {
- return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, filter, top, context),
- nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context));
- }
-
- /**
- * List partner destinations under a resource group.
- *
- * List all the partner destinations 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.
- * @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 result of the List Partner Destinations operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByResourceGroup(String resourceGroupName) {
- final String filter = null;
- final Integer top = null;
- return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, filter, top));
- }
-
- /**
- * List partner destinations under a resource group.
- *
- * List all the partner destinations 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
- * 'name' property only and with limited number of OData operations. These operations are: the 'contains' function
- * as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic
- * operations are supported. The following is a valid filter example: $filter=contains(namE, 'PATTERN') and name ne
- * 'PATTERN-1'. The following is not a valid filter example: $filter=location eq 'westus'.
- * @param top The number of results to return per page for the list operation. Valid range for top parameter is 1 to
- * 100. If not specified, the default number of results to be returned is 20 items per page.
- * @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 result of the List Partner Destinations operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByResourceGroup(String resourceGroupName, String filter,
- Integer top, Context context) {
- return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, filter, top, context));
- }
-
- /**
- * Activate a partner destination.
- *
- * Activate a newly created partner destination.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @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 Destination along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> activateWithResponseAsync(String resourceGroupName,
- String partnerDestinationName) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (partnerDestinationName == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter partnerDestinationName is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.activate(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, partnerDestinationName, this.client.getApiVersion(), accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Activate a partner destination.
- *
- * Activate a newly created partner destination.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @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 Destination along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> activateWithResponseAsync(String resourceGroupName,
- String partnerDestinationName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (partnerDestinationName == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter partnerDestinationName is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.activate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
- partnerDestinationName, this.client.getApiVersion(), accept, context);
- }
-
- /**
- * Activate a partner destination.
- *
- * Activate a newly created partner destination.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @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 Destination on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono activateAsync(String resourceGroupName, String partnerDestinationName) {
- return activateWithResponseAsync(resourceGroupName, partnerDestinationName)
- .flatMap(res -> Mono.justOrEmpty(res.getValue()));
- }
-
- /**
- * Activate a partner destination.
- *
- * Activate a newly created partner destination.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @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 Destination along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response activateWithResponse(String resourceGroupName,
- String partnerDestinationName, Context context) {
- return activateWithResponseAsync(resourceGroupName, partnerDestinationName, context).block();
- }
-
- /**
- * Activate a partner destination.
- *
- * Activate a newly created partner destination.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription.
- * @param partnerDestinationName Name of the partner destination.
- * @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 Destination.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public PartnerDestinationInner activate(String resourceGroupName, String partnerDestinationName) {
- return activateWithResponse(resourceGroupName, partnerDestinationName, Context.NONE).getValue();
- }
-
- /**
- * Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items.
- * @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 result of the List Partner Destinations operation along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) {
- if (nextLink == null) {
- return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
- }
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context -> service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context))
- .>map(res -> new PagedResponseBase<>(res.getRequest(),
- res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items.
- * @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 result of the List Partner Destinations operation along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listBySubscriptionNextSinglePageAsync(String nextLink,
- Context context) {
- if (nextLink == null) {
- return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
- }
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context)
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- res.getValue().value(), res.getValue().nextLink(), null));
- }
-
- /**
- * Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items.
- * @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 result of the List Partner Destinations operation along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) {
- if (nextLink == null) {
- return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
- }
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context))
- .>map(res -> new PagedResponseBase<>(res.getRequest(),
- res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items.
- * @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 result of the List Partner Destinations operation along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByResourceGroupNextSinglePageAsync(String nextLink,
- Context context) {
- if (nextLink == null) {
- return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
- }
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- res.getValue().value(), res.getValue().nextLink(), null));
- }
-}
diff --git a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerDestinationsImpl.java b/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerDestinationsImpl.java
deleted file mode 100644
index 80e0d7126b37..000000000000
--- a/sdk/eventgrid/azure-resourcemanager-eventgrid/src/main/java/com/azure/resourcemanager/eventgrid/implementation/PartnerDestinationsImpl.java
+++ /dev/null
@@ -1,170 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.eventgrid.implementation;
-
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.SimpleResponse;
-import com.azure.core.util.Context;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.eventgrid.fluent.PartnerDestinationsClient;
-import com.azure.resourcemanager.eventgrid.fluent.models.PartnerDestinationInner;
-import com.azure.resourcemanager.eventgrid.models.PartnerDestination;
-import com.azure.resourcemanager.eventgrid.models.PartnerDestinations;
-
-public final class PartnerDestinationsImpl implements PartnerDestinations {
- private static final ClientLogger LOGGER = new ClientLogger(PartnerDestinationsImpl.class);
-
- private final PartnerDestinationsClient innerClient;
-
- private final com.azure.resourcemanager.eventgrid.EventGridManager serviceManager;
-
- public PartnerDestinationsImpl(PartnerDestinationsClient innerClient,
- com.azure.resourcemanager.eventgrid.EventGridManager serviceManager) {
- this.innerClient = innerClient;
- this.serviceManager = serviceManager;
- }
-
- public Response getByResourceGroupWithResponse(String resourceGroupName,
- String partnerDestinationName, Context context) {
- Response inner
- = this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, partnerDestinationName, context);
- if (inner != null) {
- return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
- new PartnerDestinationImpl(inner.getValue(), this.manager()));
- } else {
- return null;
- }
- }
-
- public PartnerDestination getByResourceGroup(String resourceGroupName, String partnerDestinationName) {
- PartnerDestinationInner inner
- = this.serviceClient().getByResourceGroup(resourceGroupName, partnerDestinationName);
- if (inner != null) {
- return new PartnerDestinationImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public void deleteByResourceGroup(String resourceGroupName, String partnerDestinationName) {
- this.serviceClient().delete(resourceGroupName, partnerDestinationName);
- }
-
- public void delete(String resourceGroupName, String partnerDestinationName, Context context) {
- this.serviceClient().delete(resourceGroupName, partnerDestinationName, context);
- }
-
- public PagedIterable list() {
- PagedIterable inner = this.serviceClient().list();
- return ResourceManagerUtils.mapPage(inner, inner1 -> new PartnerDestinationImpl(inner1, this.manager()));
- }
-
- public PagedIterable list(String filter, Integer top, Context context) {
- PagedIterable inner = this.serviceClient().list(filter, top, context);
- return ResourceManagerUtils.mapPage(inner, inner1 -> new PartnerDestinationImpl(inner1, this.manager()));
- }
-
- public PagedIterable listByResourceGroup(String resourceGroupName) {
- PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName);
- return ResourceManagerUtils.mapPage(inner, inner1 -> new PartnerDestinationImpl(inner1, this.manager()));
- }
-
- public PagedIterable listByResourceGroup(String resourceGroupName, String filter, Integer top,
- Context context) {
- PagedIterable inner
- = this.serviceClient().listByResourceGroup(resourceGroupName, filter, top, context);
- return ResourceManagerUtils.mapPage(inner, inner1 -> new PartnerDestinationImpl(inner1, this.manager()));
- }
-
- public Response activateWithResponse(String resourceGroupName, String partnerDestinationName,
- Context context) {
- Response inner
- = this.serviceClient().activateWithResponse(resourceGroupName, partnerDestinationName, context);
- if (inner != null) {
- return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
- new PartnerDestinationImpl(inner.getValue(), this.manager()));
- } else {
- return null;
- }
- }
-
- public PartnerDestination activate(String resourceGroupName, String partnerDestinationName) {
- PartnerDestinationInner inner = this.serviceClient().activate(resourceGroupName, partnerDestinationName);
- if (inner != null) {
- return new PartnerDestinationImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public PartnerDestination getById(String id) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String partnerDestinationName = ResourceManagerUtils.getValueFromIdByName(id, "partnerDestinations");
- if (partnerDestinationName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'partnerDestinations'.", id)));
- }
- return this.getByResourceGroupWithResponse(resourceGroupName, partnerDestinationName, Context.NONE).getValue();
- }
-
- public Response getByIdWithResponse(String id, Context context) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String partnerDestinationName = ResourceManagerUtils.getValueFromIdByName(id, "partnerDestinations");
- if (partnerDestinationName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'partnerDestinations'.", id)));
- }
- return this.getByResourceGroupWithResponse(resourceGroupName, partnerDestinationName, context);
- }
-
- public void deleteById(String id) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String partnerDestinationName = ResourceManagerUtils.getValueFromIdByName(id, "partnerDestinations");
- if (partnerDestinationName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'partnerDestinations'.", id)));
- }
- this.delete(resourceGroupName, partnerDestinationName, Context.NONE);
- }
-
- public void deleteByIdWithResponse(String id, Context context) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String partnerDestinationName = ResourceManagerUtils.getValueFromIdByName(id, "partnerDestinations");
- if (partnerDestinationName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'partnerDestinations'.", id)));
- }
- this.delete(resourceGroupName, partnerDestinationName, context);
- }
-
- private PartnerDestinationsClient serviceClient() {
- return this.innerClient;
- }
-
- private com.azure.resourcemanager.eventgrid.EventGridManager manager() {
- return this.serviceManager;
- }
-
- public PartnerDestinationImpl define(String name) {
- return new PartnerDestinationImpl(name, 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 c9c29e288d8d..0e5c3107643d 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
@@ -75,17 +75,6 @@ public final class SystemTopicEventSubscriptionsClientImpl implements SystemTopi
@Host("{$host}")
@ServiceInterface(name = "EventGridManagementC")
public interface SystemTopicEventSubscriptionsService {
- @Headers({ "Content-Type: application/json" })
- @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/systemTopics/{systemTopicName}/eventSubscriptions/{eventSubscriptionName}/getDeliveryAttributes")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> getDeliveryAttributes(@HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("systemTopicName") String systemTopicName,
- @PathParam("eventSubscriptionName") String eventSubscriptionName,
- @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
-
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/systemTopics/{systemTopicName}/eventSubscriptions/{eventSubscriptionName}")
@ExpectedResponses({ 200 })
@@ -156,6 +145,17 @@ Mono> listBySystemTopic(@HostParam("$host
@QueryParam("$filter") String filter, @QueryParam("$top") Integer top, @HeaderParam("Accept") String accept,
Context context);
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/systemTopics/{systemTopicName}/eventSubscriptions/{eventSubscriptionName}/getDeliveryAttributes")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getDeliveryAttributes(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("systemTopicName") String systemTopicName,
+ @PathParam("eventSubscriptionName") String eventSubscriptionName,
+ @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
+
@Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@@ -165,156 +165,6 @@ Mono> listBySystemTopicNext(
@HeaderParam("Accept") String accept, Context context);
}
- /**
- * 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.
- * @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} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getDeliveryAttributesWithResponseAsync(
- String resourceGroupName, String systemTopicName, String eventSubscriptionName) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (systemTopicName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter systemTopicName is required and cannot be null."));
- }
- if (eventSubscriptionName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter eventSubscriptionName is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.getDeliveryAttributes(this.client.getEndpoint(),
- this.client.getSubscriptionId(), resourceGroupName, systemTopicName, eventSubscriptionName,
- this.client.getApiVersion(), accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * 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.
- * @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} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono